{"_id":"@dexlens/holders-gate","_rev":"1-1454a5423712f4becd0b9063441ab792","name":"@dexlens/holders-gate","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@dexlens/holders-gate","version":"0.0.1","author":{"name":"dexlens"},"license":"MIT","_id":"@dexlens/holders-gate@0.0.1","maintainers":[{"name":"dexlens","email":"youcancallmeliquid@gmail.com"}],"homepage":"https://github.com/dexlens/holdergate#readme","bugs":{"url":"https://github.com/dexlens/holdergate/issues"},"dist":{"shasum":"2748aef442315fc591ec34380c991c6dee4cf392","tarball":"https://registry.npmjs.org/@dexlens/holders-gate/-/holders-gate-0.0.1.tgz","fileCount":8,"integrity":"sha512-AGGJwuEQlMffcMxahMoKKRCUNqnGRtuJM6NyH5QjV5Y8SmnGo6wfgeMUcYuGwMEnbFFaR8leGIRL+B/CFhPzuA==","signatures":[{"sig":"MEUCIQCY+ahMOoUBOljxOX6Z4O88hRkLyfQbQ5IxilePS4ha2wIgb0+OBuqW4SeA6xemfp9V+IAuES2DFYS5WEMpFl6Ue0M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2440},"main":"dist/main.cjs","type":"commonjs","types":"dist/main.d.ts","module":"dist/main.js","engines":{"node":">=14"},"exports":{".":{"types":"./dist/main.d.ts","import":"./dist/main.mjs","require":"./dist/main.js"}},"gitHead":"74aeb3c49944517e55b9cf18723565301a8b24af","scripts":{"fix":"run-s fix:lint","test":"run-s test:lint test:build test:unit","build":"tsup","watch":"tsup --watch","fix:lint":"npx @biomejs/biome format --write src","test:lint":"npx @biomejs/biome lint src","test:unit":"node --test","test:build":"tsup --env.TEST=yes"},"_npmUser":{"name":"dexlens","email":"youcancallmeliquid@gmail.com"},"repository":{"url":"git+https://github.com/dexlens/holdergate.git","type":"git"},"_npmVersion":"8.19.4","description":"Holders Gate for DexLens Dapps","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2","npm-run-all":"^4.1.5","@biomejs/biome":"1.9.2"},"_npmOperationalInternal":{"tmp":"tmp/holders-gate_0.0.1_1727866701131_0.20190873825111688","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@dexlens/holders-gate","version":"0.0.2","description":"Holders Gate for DexLens Dapps","type":"commonjs","main":"dist/main.cjs","module":"dist/main.js","types":"dist/main.d.ts","exports":{".":{"types":"./dist/main.d.ts","require":"./dist/main.js","import":"./dist/main.mjs"}},"scripts":{"build":"tsup","watch":"tsup --watch","fix":"run-s fix:lint","fix:lint":"npx @biomejs/biome format --write src","test":"run-s test:lint test:build test:unit","test:build":"tsup --env.TEST=yes","test:lint":"npx @biomejs/biome lint src","test:unit":"node --test"},"repository":{"type":"git","url":"git+https://github.com/dexlens/holdergate.git"},"author":{"name":"dexlens"},"license":"MIT","bugs":{"url":"https://github.com/dexlens/holdergate/issues"},"homepage":"https://github.com/dexlens/holdergate#readme","engines":{"node":">=14"},"devDependencies":{"@biomejs/biome":"1.9.2","npm-run-all":"^4.1.5","tsup":"^8.3.0","typescript":"^5.6.2"},"gitHead":"022c26206350e739d9fde467626b1e384b68854f","_id":"@dexlens/holders-gate@0.0.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-n8ysqWeyL36upEN9Q2aCsRCuJKx22urHg5fPAyuP1b8NZWjsHyxtTbMJNXxgASIa69lC4QgklF6RwtueSOWjag==","shasum":"5804fc8384ac42839220aedf620f82f3a1399c16","tarball":"https://registry.npmjs.org/@dexlens/holders-gate/-/holders-gate-0.0.2.tgz","fileCount":8,"unpackedSize":2881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfq58yi5ithRhWDZg/lMl+aDCPAMXo6Uf1qpFmVrmrLgIgHfjP78UJg6T2415bC3YcsTkpEESL96v9qBPe2K3tR50="}]},"_npmUser":{"name":"dexlens","email":"youcancallmeliquid@gmail.com"},"directories":{},"maintainers":[{"name":"dexlens","email":"youcancallmeliquid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/holders-gate_0.0.2_1727867339353_0.9106682674356545"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-02T10:58:21.036Z","modified":"2024-10-02T11:08:59.747Z","0.0.1":"2024-10-02T10:58:21.313Z","0.0.2":"2024-10-02T11:08:59.562Z"},"bugs":{"url":"https://github.com/dexlens/holdergate/issues"},"author":{"name":"dexlens"},"license":"MIT","homepage":"https://github.com/dexlens/holdergate#readme","repository":{"type":"git","url":"git+https://github.com/dexlens/holdergate.git"},"description":"Holders Gate for DexLens Dapps","maintainers":[{"name":"dexlens","email":"youcancallmeliquid@gmail.com"}],"readme":"# Holders Gate for DexLens Dapps\n\nHolder Gate SDK for DexLens Dapps to allow different types of access control to dapps. \n\n## Getting started\n\nRun `npm install @dexlens/holders-gate` to install the package.\n\n## What's in the box?\n\n- [tsup](https://github.com/egoist/tsup) for TypeScript building\n- [Node.js test runner](https://nodejs.org/api/test.html) for testing\n- [Biome](https://biomejs.dev) for formatting\n\n## How to use\n\n```typescript\nimport { holderGate } from \"@dexlens/holders-gate\";\n\nconst gate = new holderGate({\n  tokenAddress: \"0x1234567890123456789012345678901234567890\",\n  tokenId: \"1\",\n  gateType: \"whitelist\",\n});\n\nconst isHolder = await gate.isHolder();\n\nif (isHolder) {\n  // do something with the gate allowed\n} else {\n  // do something else with the gate not allowed\n}\n```\n","readmeFilename":"README.md"}