{"_id":"@amax/amaxwallet-adapter-unisat","name":"@amax/amaxwallet-adapter-unisat","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@amax/amaxwallet-adapter-unisat","version":"1.1.0","description":"Wallet adapter for metamask snap Wallet.","keywords":["armoniax","amaxScan","metamask"],"author":{"name":"armoniax"},"repository":{"type":"git","url":"git+https://github.com/armoniax/amaxjs.git#main"},"license":"MIT","type":"module","sideEffects":false,"engines":{"node":">=16","pnpm":">=7"},"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","types":"./lib/types/index.d.ts","exports":{"require":"./lib/cjs/index.js","import":"./lib/esm/index.js","types":"./lib/types/index.d.ts"},"publishConfig":{"access":"public"},"scripts":{"clean":"shx mkdir -p lib && shx rm -rf lib","package":"shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json","test":"jest","test:coverage":"jest  --coverage","build:umd":"node ../../../scripts/build-umd.js"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@amax/abstract-adapter":"workspace:^","bip39":"^3.1.0","bitcore-lib":"^10.0.28","bs58":"^5.0.0","crypto-js":"^4.2.0","hdkey":"^2.1.0"},"devDependencies":{"@testing-library/dom":"^8.20.0","@types/crypto-js":"^4.2.2","@types/elliptic":"^6.4.18","@types/hdkey":"^2.0.3","@types/readable-stream":"^4.0.11","jest-environment-jsdom":"^29.3.1","shx":"^0.3.4"},"_id":"@amax/amaxwallet-adapter-unisat@1.1.0","gitHead":"de55903ea4cdf83be634c50176e9c3133e5ebb7c","bugs":{"url":"https://github.com/armoniax/amaxjs/issues"},"homepage":"https://github.com/armoniax/amaxjs/tree/main#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CFyz7kl90faupf/GgHhIPI7a7kpAFdu2rSKZ3UdW93T4P9OxZant0pk2CtHlTjPcB3PdP5frhaKNtTAA9kg7xw==","shasum":"fad8ace62b89556ed4449bdb44a68cefda22cf02","tarball":"https://registry.npmjs.org/@amax/amaxwallet-adapter-unisat/-/amaxwallet-adapter-unisat-1.1.0.tgz","fileCount":35,"unpackedSize":4730775,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArn0CVorDsq7URQ89gkbSHW19A0PR+fPiOgNWV0AojVAiBtqdwTF/smx6+xSnI8a3+IMd+HYlVQ1ls2j40ZCzUxvw=="}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxwallet-adapter-unisat_1.1.0_1718853801041_0.17647137729415485"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-20T03:23:20.949Z","1.1.0":"2024-06-20T03:23:21.334Z","modified":"2024-06-20T03:23:21.597Z"},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"description":"Wallet adapter for metamask snap Wallet.","homepage":"https://github.com/armoniax/amaxjs/tree/main#readme","keywords":["armoniax","amaxScan","metamask"],"repository":{"type":"git","url":"git+https://github.com/armoniax/amaxjs.git#main"},"author":{"name":"armoniax"},"bugs":{"url":"https://github.com/armoniax/amaxjs/issues"},"license":"MIT","readme":"# `@amax/amaxwallet-adapter-unisat`\n\nThis package provides an adapter to enable Amax DApps to connect to the  [Unisat Wallet extension](https://github.com/armoniax/amaxjs/tree/main/packages/amaxwallet-adapter/packages/adapters/wallets/unisat).\n\n## Demo\n\n```typescript\nimport { UnisatAdapter } from '@amax/amaxwallet-adapter-unisat';\n\nconst adapter = new UnisatAdapter();\n// connect to TokenPocket\nawait adapter.connect();\n\n// then you can get account\nconsole.log(adapter.account);\n\n// using adapter push a transaction\nconst TransactResult = await adapter.transact(acions);\n```\n\n## Documentation\n\n### API\n\n-   `Constructor(config: UnisatAdapterConfig)`\n\n```typescript\ninterface UnisatAdapterConfig {\n    rpc?: string;\n    walletProviderLocalStorageKey?: string;\n    btcOwnerContract?: string;\n    btcProxy?: string;\n    checkTimeout?: number;\n}\n```","readmeFilename":"README.md"}