{"_id":"@aion-sdk/core","_rev":"2-7d747e9d2404f4bc6992efe76929de7d","name":"@aion-sdk/core","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@aion-sdk/core","version":"0.1.0","keywords":["aion","solana","ai-agents","sdk"],"author":{"name":"AION","email":"aion-moltbook-bot@users.noreply.github.com"},"license":"MIT","_id":"@aion-sdk/core@0.1.0","maintainers":[{"name":"aion-layer","email":"AION721963@proton.me"}],"homepage":"https://github.com/AION721963/aion-sdk#readme","bugs":{"url":"https://github.com/AION721963/aion-sdk/issues"},"dist":{"shasum":"064917300d0cb4275dad994e1a5152a25442f6a9","tarball":"https://registry.npmjs.org/@aion-sdk/core/-/core-0.1.0.tgz","fileCount":5,"integrity":"sha512-oEQle9sOqwbhu7smZ0hR7gF1kRRjnOSkXPoW1ydfFa5ZHP+s10q/eN4eMYu6vD8ddFHY8Yl8Z4VnI+IEvJBGKw==","signatures":[{"sig":"MEUCIQC5hTIFC3VLnHJyIkyCurH32u8OpiNjSpCIC6Y0blkJoAIgGH+MsL9LYKQ0VVqY6QZKUOqrzy4XK3TDGg9muwAum0U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13137},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"051497bc2ca822a9ed819138a19f61ed4cda5055","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"tsc --noEmit","build":"tsup src/index.ts --format cjs,esm --dts","clean":"rm -rf dist"},"_npmUser":{"name":"aion-layer","email":"AION721963@proton.me"},"repository":{"url":"git+https://github.com/AION721963/aion-sdk.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Core types and utilities for AION SDK","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1770382243430_0.8564623686998456","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aion-sdk/core","version":"0.2.0","description":"Core types and utilities for AION SDK","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts"}},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{"@solana/web3.js":"^1.87.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"author":{"name":"AION","email":"aion-moltbook-bot@users.noreply.github.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AION721963/aion-sdk.git","directory":"packages/core"},"keywords":["aion","solana","ai-agents","sdk"],"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch","clean":"rm -rf dist","lint":"tsc --noEmit"},"_id":"@aion-sdk/core@0.2.0","bugs":{"url":"https://github.com/AION721963/aion-sdk/issues"},"homepage":"https://github.com/AION721963/aion-sdk#readme","_integrity":"sha512-DdP9WG9Xc+vaOZ7M9y5jtCsT7IJYCrCeBgDry+evDOJ4UdoGdSlf0Q2co+qbSTWZMlqvI92R7mO1X6scDNNwCg==","_resolved":"/private/var/folders/ky/y6fj_46j2q74b7h4pr444yc40000gn/T/06ddb61769161e1f925b0792e1756993/aion-sdk-core-0.2.0.tgz","_from":"file:aion-sdk-core-0.2.0.tgz","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-DdP9WG9Xc+vaOZ7M9y5jtCsT7IJYCrCeBgDry+evDOJ4UdoGdSlf0Q2co+qbSTWZMlqvI92R7mO1X6scDNNwCg==","shasum":"8311e347ed527825a7845afb651cb16fe99fa9db","tarball":"https://registry.npmjs.org/@aion-sdk/core/-/core-0.2.0.tgz","fileCount":6,"unpackedSize":15572,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDwrKfCDTh3DhgIDNL4j82T9IWnlmL202QEn1btoQrK2AIhALcLCpwzSwwcr9qSt2kbbKdfolz4RzEfCFCKPcMZ7TIH"}]},"_npmUser":{"name":"aion-layer","email":"AION721963@proton.me"},"directories":{},"maintainers":[{"name":"aion-layer","email":"AION721963@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.2.0_1770420358266_0.4235922030562973"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-06T12:50:43.266Z","modified":"2026-02-06T23:25:58.561Z","0.1.0":"2026-02-06T12:50:43.567Z","0.2.0":"2026-02-06T23:25:58.449Z"},"bugs":{"url":"https://github.com/AION721963/aion-sdk/issues"},"author":{"name":"AION","email":"aion-moltbook-bot@users.noreply.github.com"},"license":"MIT","homepage":"https://github.com/AION721963/aion-sdk#readme","keywords":["aion","solana","ai-agents","sdk"],"repository":{"type":"git","url":"git+https://github.com/AION721963/aion-sdk.git","directory":"packages/core"},"description":"Core types and utilities for AION SDK","maintainers":[{"name":"aion-layer","email":"AION721963@proton.me"}],"readme":"# @aion-sdk/core\n\nShared types, enums, and utilities for the AION SDK monorepo.\n\n## Install\n\n```bash\nnpm i @aion-sdk/core\n```\n\n## What's Inside\n\n### Types\n\n- `Signer` — Solana keypair used for signing transactions\n- `Wallet` — Wallet interface (publicKey, secretKey, mnemonic)\n- `Network` — `'mainnet-beta' | 'devnet' | 'localnet'`\n- `Result<T>` — `{ ok: true, value: T } | { ok: false, error: string }`\n- `EscrowConfig`, `EscrowState`, `FeeConfig` — escrow data structures\n- `DisputeWinner` — `'creator' | 'recipient'`\n\n### Enums\n\n- `EscrowStatus` — Created, Accepted, Released, Disputed, Refunded, Resolved\n- `MilestoneStatus` — Pending, Released, Disputed\n\n### Constants\n\n- `AION_TREASURY` — Treasury address for fee collection\n- `DEFAULT_FEE_PERCENT` / `MAX_FEE_PERCENT` — Fee bounds\n- `RPC_ENDPOINTS` — Default RPC URLs per network\n\n### Utilities\n\n- `getRpcEndpoint(network)` — Get RPC URL for a network\n- `isValidSolanaAddress(address)` — Validate base58 address\n- `validateFeePercent(fee)` — Check fee is within bounds\n- `calculateFee(amount, feeBps)` — Calculate fee amount\n- `sleep(ms)` — Promise-based delay\n\n## License\n\nMIT\n","readmeFilename":"README.md"}