{"_id":"@gulliant/sdk","name":"@gulliant/sdk","dist-tags":{"latest":"0.1.0-alpha.1"},"versions":{"0.1.0-alpha.1":{"name":"@gulliant/sdk","version":"0.1.0-alpha.1","description":"TypeScript SDK for integrating GulliANT V1 primitive in Solana GameFi applications.","license":"MIT","author":{"name":"Ruslan Shermadov"},"homepage":"https://github.com/gulliant/gulliant-sdk#readme","repository":{"type":"git","url":"git+https://github.com/gulliant/gulliant-sdk.git"},"bugs":{"url":"https://github.com/gulliant/gulliant-sdk/issues"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"clean":"rm -rf dist","build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run","test:devnet":"RUN_DEVNET_TESTS=1 vitest run tests/devnet.integration.test.ts","prepack":"npm run clean && npm run build","pack:dry":"npm pack --dry-run","test:performance":"RUN_PERFORMANCE_TESTS=1 vitest run tests/performance.test.ts"},"keywords":["solana","gamefi","sdk","gulliant","portable-state","user-state","web3","nft","typescript"],"dependencies":{"@solana/web3.js":"^1.95.8","borsh":"^2.0.0","bs58":"^6.0.0"},"devDependencies":{"@types/node":"^22.10.2","tsx":"^4.22.4","typescript":"^5.7.2","vitest":"^2.1.8"},"engines":{"node":">=18"},"_id":"@gulliant/sdk@0.1.0-alpha.1","gitHead":"76b24575812c6fa931cf6a2e78ba65c32164253f","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-unCY3HCVR84re0v6wMQVcWPCAqtA9r1iYYpzXGCaCRZxZYzbeAE1cZd+IMT8FsgkXv1OamzYGaDNHqRKfdZQRQ==","shasum":"180ce4aa74775dad26986e47d3cc5dc65be76a9f","tarball":"https://registry.npmjs.org/@gulliant/sdk/-/sdk-0.1.0-alpha.1.tgz","fileCount":36,"unpackedSize":76418,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDZ6Nh700EFGuFmeRMnnosuacnAjYZDVcJY1y5qZnb1KgIgNqfgPVwJbJC7n3wcTDF7HktA4B9f8wwZLvNxcRsEHqI="}]},"_npmUser":{"name":"gulliant","email":"founder@gulliant.com"},"directories":{},"maintainers":[{"name":"gulliant","email":"founder@gulliant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.0-alpha.1_1781779336644_0.6818457581772088"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T10:42:16.416Z","0.1.0-alpha.1":"2026-06-18T10:42:16.805Z","modified":"2026-06-18T10:42:17.045Z"},"maintainers":[{"name":"gulliant","email":"founder@gulliant.com"}],"description":"TypeScript SDK for integrating GulliANT V1 primitive in Solana GameFi applications.","homepage":"https://github.com/gulliant/gulliant-sdk#readme","keywords":["solana","gamefi","sdk","gulliant","portable-state","user-state","web3","nft","typescript"],"repository":{"type":"git","url":"git+https://github.com/gulliant/gulliant-sdk.git"},"author":{"name":"Ruslan Shermadov"},"bugs":{"url":"https://github.com/gulliant/gulliant-sdk/issues"},"license":"MIT","readme":"# Gulliant SDK\n\nOpen-source TypeScript SDK for the Gulliant V1 on-chain primitive on Solana.\n\n```\nCharacter state (NFT-bound)  → transfers with the asset on sale\nPlayer state   (wallet-bound) → remains with the original wallet\nThe boundary is enforced at the program level.\n```\n\n**Program ID:** `DyQAWvMytpgRiE2T9bhzSFCe9b9actobfHFB7RVReX7g` · Devnet · Upgrade Authority: `none`\n\n---\n\n## Install\n\n```bash\n# After public release:\nnpm install @gulliant/sdk\n```\n\n---\n\n## Quick Start\n\n```ts\nimport { Connection, clusterApiUrl, Keypair } from '@solana/web3.js';\nimport { GulliantClient } from '@gulliant/sdk';\n\nconst gulliant = new GulliantClient(\n  new Connection(clusterApiUrl('devnet'), 'confirmed')\n);\n\nconst authority  = Keypair.generate();\nconst protocolId = Keypair.generate().publicKey;\nconst seller     = Keypair.generate();\nconst buyer      = Keypair.generate();\n\nawait gulliant.initializeProtocolConfig(authority.publicKey, protocolId, authority);\nawait gulliant.initializeUserLog(authority.publicKey, protocolId, seller.publicKey, authority);\nawait gulliant.appendActivityEvent(authority.publicKey, protocolId, seller.publicKey, 1, 100, Date.now(), authority);\nawait gulliant.authorizeExport(authority.publicKey, protocolId, seller.publicKey, buyer.publicKey, authority);\nawait gulliant.migrateState(authority.publicKey, protocolId, seller.publicKey, buyer.publicKey, authority);\n```\n\nSee [`docs/QUICK_START.md`](docs/QUICK_START.md) for the full walkthrough.\n\n---\n\n## Tests\n\n```bash\n# Unit tests\nnpm test\n\n# Devnet integration\nexport RUN_DEVNET_TESTS=1\nexport DEVNET_PAYER_KEYPAIR=/path/to/keypair.json\nnpx vitest run tests/devnet.integration.test.ts\n\n# Performance benchmark\nexport RUN_PERFORMANCE_TESTS=1\nexport DEVNET_PAYER_KEYPAIR=/path/to/keypair.json\nnpm run test:performance\n```\n\n---\n\n## Documentation\n\n| Document | Description |\n| -------- | ----------- |\n| [`docs/QUICK_START.md`](docs/QUICK_START.md) | Full quickstart, SDK surface, PDA helpers |\n| [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) | Account model, state flow, design properties, error reference |\n| [`docs/GAMEFI_INTEGRATION_GUIDE.md`](docs/GAMEFI_INTEGRATION_GUIDE.md) | Step-by-step GameFi integration guide |\n| [`docs/DEVNET_DEMO.md`](docs/DEVNET_DEMO.md) | How to run the demo and verify the deployment |\n| [`docs/COST_BASELINE.md`](docs/COST_BASELINE.md) | Cost, compute, and storage measurements |\n| [`docs/PERFORMANCE.md`](docs/PERFORMANCE.md) | How to run the performance benchmark |\n\n---\n\n## Links\n\n- **Demo video:** https://www.youtube.com/watch?v=hTYoH46X5dg\n- **Primitive repository:** https://github.com/gulliant/gulliant-primitive\n- **Site:** https://gulliant.com\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","readmeFilename":"README.md","_rev":"1-ed227a622feb567141e8af5f234da042"}