diff --git a/anchor/README.md b/anchor/README.md new file mode 100644 index 00000000..00ac14a4 --- /dev/null +++ b/anchor/README.md @@ -0,0 +1,12 @@ +# GLAM SDK + +## Installation + +```bash +npm i @glamsystems/glam-sdk +``` + +## Getting Started + +- [GLAM docs](https://docs.glam.systems) +- [TypeScript API docs](#) diff --git a/anchor/package.json b/anchor/package.json index c3373aa3..a74574a6 100644 --- a/anchor/package.json +++ b/anchor/package.json @@ -1,8 +1,37 @@ { - "name": "@glam/anchor", - "version": "0.0.1", - "dependencies": {}, - "type": "commonjs", + "name": "@glamsystems/glam-sdk", + "version": "0.1.1", + "description": "TypeScript SDK for GLAM Protocol", "main": "./index.cjs", - "module": "./index.js" + "module": "./index.esm.js", + "homepage": "https://www.glam.systems", + "repository": { + "type": "git", + "url": "git@github.com:glamsystems/glam.git" + }, + "keywords": [ + "glam-protocol", + "solana" + ], + "license": "Apache-2.0", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@coral-xyz/anchor": "^0.30.1", + "@drift-labs/sdk": "2.96.0-beta.14", + "@marinade.finance/marinade-ts-sdk": "^5.0.13", + "@pythnetwork/client": "^2.21.1", + "@solana/spl-stake-pool": "^1.1.5", + "@solana/spl-token": "^0.3.9", + "@solana/spl-token-metadata": "^0.1.4", + "qrcode": "^1.5.4", + "bs58": "^5.0.0", + "buffer": "^6.0.3", + "@solana/web3.js": "^1.94.0", + "@scure/base": "^1.1.7" + }, + "engines": { + "node": ">=20.18.0" + } } diff --git a/anchor/project.json b/anchor/project.json index 6252bfc9..4d05ca26 100644 --- a/anchor/project.json +++ b/anchor/project.json @@ -1,7 +1,7 @@ { "name": "anchor", "$schema": "../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "anchor/src", + "sourceRoot": "anchor/", "projectType": "library", "targets": { "build": { @@ -11,7 +11,7 @@ "outputPath": "dist/anchor", "main": "anchor/src/index.ts", "tsConfig": "anchor/tsconfig.lib.json", - "assets": [], + "assets": ["anchor/README.md"], "project": "anchor/package.json", "compiler": "swc", "format": ["cjs", "esm"] @@ -51,6 +51,13 @@ "options": { "jestConfig": "anchor/jest.config.ts" } + }, + "publish-sdk": { + "executor": "nx:run-commands", + "options": { + "command": "npm publish --access public", + "cwd": "{workspaceRoot}/dist/anchor" + } } }, "tags": []