{"_id":"@ample-launchpad/client","_rev":"4-4bd0b5d169b07764fec735e332e27827","name":"@ample-launchpad/client","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@ample-launchpad/client","version":"0.0.1","author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","_id":"@ample-launchpad/client@0.0.1","maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"homepage":"https://github.com/Ample-Stream/launchpad#readme","bugs":{"url":"https://github.com/Ample-Stream/launchpad/issues"},"dist":{"shasum":"6e8a2048b199ec91bfdf18ff2e9816c31e9adcd2","tarball":"https://registry.npmjs.org/@ample-launchpad/client/-/client-0.0.1.tgz","fileCount":28,"integrity":"sha512-s2pLOWEEWgyPVQENRGQQWPYzxcKd1FgnAe6bB/rYKc5u6Y0srgT+xiOKInT2CRm3Nih2ZBPlYasJHfIfyJ0v1A==","signatures":[{"sig":"MEUCIENoAgqh1NmAy6NQozB5W2u3VZdJutAcEDHi4VD55g2yAiEA3MX3PRU3f5zq4/JMIjlIlTDeSqfXYfXii7qQJ3JWtvg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5130325},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"7f5ad9a99c0c9c7263cb587a5a81d3a1d07ba3fd","scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","publish":"npm publish --access public","prepublish":"npm run build"},"_npmUser":{"name":"menu.rivera","email":"menu.rivera@gmail.com"},"repository":{"url":"git+https://github.com/Ample-Stream/launchpad.git","type":"git"},"_npmVersion":"10.2.1","description":"Main component for direct manipulation of a launchpad deployment.","directories":{},"_nodeVersion":"20.6.1","dependencies":{"axios":"^1.7.2","@near-wallet-selector/core":"^8.9.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^1.5.3","typescript":"^5.4.3","@types/node":"^20.11.30"},"_npmOperationalInternal":{"tmp":"tmp/client_0.0.1_1723080436832_0.8864528075663924","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@ample-launchpad/client","version":"0.0.2","author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","_id":"@ample-launchpad/client@0.0.2","maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"homepage":"https://github.com/Ample-Stream/launchpad#readme","bugs":{"url":"https://github.com/Ample-Stream/launchpad/issues"},"dist":{"shasum":"a859a9fa1dcfb57500cc3d7ead4c52f08c9482d1","tarball":"https://registry.npmjs.org/@ample-launchpad/client/-/client-0.0.2.tgz","fileCount":28,"integrity":"sha512-CHsRzGVPDPp25GIl8g04eP7a2bq8WZvrP6Qx1ZIIXP2gAFqLiouOWbwfEb4jhnVD1PfOZ7N9HExa/m9ycPOPVw==","signatures":[{"sig":"MEUCIDdJ/XOOtihqnR2r13hgEtTa+famboqmzTG+VwvnfN1/AiEApgur78U5Bg1LyPjh/qbEilrJJzPaLnyiMGy70Eu1ALM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5130347},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"7f5ad9a99c0c9c7263cb587a5a81d3a1d07ba3fd","scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","publish":"npm publish --access public","prepublish":"npm run build"},"_npmUser":{"name":"menu.rivera","email":"menu.rivera@gmail.com"},"repository":{"url":"git+https://github.com/Ample-Stream/launchpad.git","type":"git"},"_npmVersion":"10.2.1","description":"Main component for direct manipulation of a launchpad deployment. (Work in progress...)","directories":{},"_nodeVersion":"20.6.1","dependencies":{"axios":"^1.7.2","@near-wallet-selector/core":"^8.9.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^1.5.3","typescript":"^5.4.3","@types/node":"^20.11.30"},"_npmOperationalInternal":{"tmp":"tmp/client_0.0.2_1723080590773_0.9367263212855481","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@ample-launchpad/client","version":"0.0.3","author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","_id":"@ample-launchpad/client@0.0.3","maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"homepage":"https://github.com/Ample-Stream/launchpad#readme","bugs":{"url":"https://github.com/Ample-Stream/launchpad/issues"},"dist":{"shasum":"00b38b84615fa2ca4a7404f7cfd01a054bf1b7db","tarball":"https://registry.npmjs.org/@ample-launchpad/client/-/client-0.0.3.tgz","fileCount":28,"integrity":"sha512-cZUIhREXCLGZNB8yeCBA2p3p1Ze/uG/aOIZ0a9YYYpCZRQL7PAVJzAwYt9unrirbEEyqyZigsykez6AW2kem/w==","signatures":[{"sig":"MEYCIQD7hJTXQaMkFvWnZt7dtZEZbqV1JDP67WRSrLtSARZ3FAIhAMRX4lzjKpDZ5902xp0zFVFzZKbsvMqI7wZjeLPqUQw2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5130348},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"7f5ad9a99c0c9c7263cb587a5a81d3a1d07ba3fd","scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","publish":"npm publish --access public","prepublish":"npm run build"},"_npmUser":{"name":"menu.rivera","email":"menu.rivera@gmail.com"},"repository":{"url":"git+https://github.com/Ample-Stream/launchpad.git","type":"git"},"_npmVersion":"10.2.1","description":"Main component for direct manipulation of a launchpad deployment. (Work in progress...)","directories":{},"_nodeVersion":"20.6.1","dependencies":{"axios":"^1.7.2","@near-wallet-selector/core":"^8.9.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^1.5.3","typescript":"^5.4.3","@types/node":"^20.11.30"},"_npmOperationalInternal":{"tmp":"tmp/client_0.0.3_1723082786540_0.09902345944030033","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@ample-launchpad/client","version":"0.1.0","author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","_id":"@ample-launchpad/client@0.1.0","maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"homepage":"https://github.com/AmpleProtocol/launchpad#readme","bugs":{"url":"https://github.com/AmpleProtocol/launchpad/issues"},"dist":{"shasum":"9cdf538ae9e06cf0ff5825a90154e627a49d6fec","tarball":"https://registry.npmjs.org/@ample-launchpad/client/-/client-0.1.0.tgz","fileCount":8,"integrity":"sha512-+bKJkVv6nN61xvU4MeruApnk6Xb2VLMCLG7Y/1iXtIRO9MZhwklvLdokLGMTN8KFSnzWKwfAwLZfkG6JqhbyuA==","signatures":[{"sig":"MEQCIDCj3ttZxoiGYGA6WtU0hIn6ED4qDoJW5MPjdrsmcB4MAiA+tsaeHN+X5Ptw/YWcxTfIzuvWM3X3e5fUfKXFZSqqvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":345231},"main":"dist/index.js","_from":"file:ample-launchpad-client-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","prepublish":"npm run build"},"_npmUser":{"name":"menu.rivera","email":"menu.rivera@gmail.com"},"_resolved":"/tmp/2b3bada2526b6839c43172b012a3869b/ample-launchpad-client-0.1.0.tgz","_integrity":"sha512-+bKJkVv6nN61xvU4MeruApnk6Xb2VLMCLG7Y/1iXtIRO9MZhwklvLdokLGMTN8KFSnzWKwfAwLZfkG6JqhbyuA==","repository":{"url":"git+https://github.com/AmpleProtocol/launchpad.git","type":"git"},"_npmVersion":"10.5.0","description":"Main component for direct manipulation of a launchpad deployment.","directories":{},"_nodeVersion":"21.7.3","dependencies":{"axios":"^1.7.5","supports-color":"8.1.1","@ample-launchpad/core":"0.1.0","@near-wallet-selector/core":"^8.9.11"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","vitest":"^1.5.3","typescript":"^5.4.3","@types/node":"^20.11.30"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1725675373025_0.7994022214683065","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@ample-launchpad/client","version":"0.1.1","description":"Main component for direct manipulation of a launchpad deployment.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/AmpleProtocol/launchpad.git"},"author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/AmpleProtocol/launchpad/issues"},"homepage":"https://github.com/AmpleProtocol/launchpad#readme","devDependencies":{"@types/node":"^20.11.30","tsup":"^8.0.2","typescript":"^5.4.3","vitest":"^1.5.3"},"dependencies":{"@near-wallet-selector/core":"^8.9.11","axios":"^1.7.5","supports-color":"8.1.1","@ample-launchpad/core":"0.1.1"},"scripts":{"test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","prepublish":"npm run build"},"_id":"@ample-launchpad/client@0.1.1","_integrity":"sha512-SXaeY5Tak8PHiscO/mY6faRxQtae3mA8xvGeXO8pU/E+MFWDcjoOEmA47W674Q9Z7OE/H61rTjD9L3LMB74Kog==","_resolved":"/tmp/6733e6276c19ffb8b2a94aa68af80634/ample-launchpad-client-0.1.1.tgz","_from":"file:ample-launchpad-client-0.1.1.tgz","_nodeVersion":"21.7.3","_npmVersion":"10.8.3","dist":{"integrity":"sha512-SXaeY5Tak8PHiscO/mY6faRxQtae3mA8xvGeXO8pU/E+MFWDcjoOEmA47W674Q9Z7OE/H61rTjD9L3LMB74Kog==","shasum":"a4a707f8ed1a41aae4205b56012f8727652144db","tarball":"https://registry.npmjs.org/@ample-launchpad/client/-/client-0.1.1.tgz","fileCount":8,"unpackedSize":345298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaYgVjiTOGSwWJgIglv/2qUq+JevaajDmbX/EeWvCWBAiEAoNDZzOn4gqbarqlNPAkLuCnfpDWs9G5TDAiacTJAFgQ="}]},"_npmUser":{"name":"menu.rivera","email":"menu.rivera@gmail.com"},"directories":{},"maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/client_0.1.1_1726719089113_0.17445176417780028"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-08T01:27:16.747Z","modified":"2024-09-19T04:11:29.500Z","0.0.1":"2024-08-08T01:27:17.100Z","0.0.2":"2024-08-08T01:29:50.931Z","0.0.3":"2024-08-08T02:06:26.847Z","0.1.0":"2024-09-07T02:16:13.302Z","0.1.1":"2024-09-19T04:11:29.305Z"},"bugs":{"url":"https://github.com/AmpleProtocol/launchpad/issues"},"author":{"name":"Manuel Rivera","email":"menu.rivera@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/AmpleProtocol/launchpad#readme","repository":{"type":"git","url":"git+https://github.com/AmpleProtocol/launchpad.git"},"description":"Main component for direct manipulation of a launchpad deployment.","maintainers":[{"name":"menu.rivera","email":"menu.rivera@gmail.com"}],"readme":"# Ample Launchpad | Client Package\nMain component for direct manipulation of a launchpad deployment.\n\n## Quickstart\nThis guide assumes you have already deployed a [server](../server/README.md) and the NEAR [contracts](../contracts/README.md)\n\n### Install dependencies\n```sh \nnpm install @ample-launchpad/core @ample-launchpad/client\n```\n\n### Setup\n```typescript\nimport { setupLaunchpad } from '@ample-launchpad/client'\n// from @near-wallet-selector\nimport { setupWalletSelector } from \"@near-wallet-selector/core\";\nimport { setupMyNearWallet } from \"@near-wallet-selector/my-near-wallet\";\n\n\nconst init = async () => {\n    // get near-wallet-selector Wallet instance\n    const selector = await setupWalletSelector({\n        network: \"testnet\",\n        modules: [setupMyNearWallet()],\n    });\n    if(!selector.isSignedIn()) throw new Error('User must be signed in in order to setup the launchpad')\n    const wallet = await selector.wallet();\n\n    // get the actual launchpad instance\n    const launchpad = await setupLaunchpad({\n        network: 'testnet',\n        wallet,\n        serverUrl: process.env.SERVER_URL,\n        treasuryAddress: process.env.TREASURY_ADDRESS,\n        seriesAddress: process.env.SERIES_ADDRESS\n    })\n}\n```\n\n### Usage\n```typescript \nconst res = await launchpad.createContent(/* body */)\nconst content = await launchpad.getContent(/* contentId */) \nconst contents = await launchpad.getContents() \n\n// royalties\nconst royalties = await launchpad.contracts.treasury.calculateRoyalties(/* contentId */)\nawait launchpad.contracts.treasury.claimRoyalties(/* contentId */)\n\n// nfts \nconst serieDetails = await launchpad.contracts.series.getSeriesDetails(/* serieId */)\nconst ownedNftSeries = await launchpad.contracts.series.nftSeriesForOwner()\nawait launchpad.contracts.series.mint(/* serieId */)\n```\n","readmeFilename":"README.md"}