{"_id":"@amax/amaxsnap","_rev":"4-95735a518aaec9cc98c95217dbba15ab","name":"@amax/amaxsnap","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"@amax/amaxsnap","version":"0.0.1","private":false,"description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","repository":{"type":"git","url":"git+https://github.com/armoniax/amax.evmsnap.git"},"license":"(MIT-0 OR Apache-2.0)","main":"src/index.ts","scripts":{"build":"mm-snap build","build:clean":"yarn clean && yarn build","clean":"rimraf dist","lint":"yarn lint:eslint && yarn lint:misc --check","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@metamask/key-tree":"^9.0.0","@metamask/snaps-types":"^0.32.2","@metamask/snaps-ui":"^0.32.2","buffer":"^6.0.3"},"devDependencies":{"@jest/globals":"^29.5.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/auto-changelog":"^2.6.0","@metamask/eslint-config":"^10.0.0","@metamask/eslint-config-jest":"^10.0.0","@metamask/eslint-config-nodejs":"^10.0.0","@metamask/eslint-config-typescript":"^10.0.0","@metamask/snaps-cli":"^0.38.2-flask.1","@metamask/snaps-jest":"^0.37.3-flask.1","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.2","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","prettier":"^2.2.1","prettier-plugin-packagejson":"^2.2.11","rimraf":"^3.0.2","through2":"^4.0.2","ts-jest":"^29.1.0","typescript":"^4.7.4"},"packageManager":"yarn@3.2.1","engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"bugs":{"url":"https://github.com/armoniax/amax.evmsnap/issues"},"homepage":"https://github.com/armoniax/amax.evmsnap#readme","_id":"@amax/amaxsnap@0.0.1","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Yn7VjwkzyEBlWbNLlu3Dpnexge6g3kQi+1B4FHPTiFmLDhPxySJfs/6kWExwOXTiRlM3+IC8tKXej792m3qThQ==","shasum":"4cca12c51c09f5dda8e44d84d8ea0257dd8f0d31","tarball":"https://registry.npmjs.org/@amax/amaxsnap/-/amaxsnap-0.0.1.tgz","fileCount":7,"unpackedSize":3979378,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVT/8lLYBqPdimAGweIq5is5TXnSVM0RqR4U16kwbPrQIhAOaXTrYYOFRvK4emlTqIt/T146BP8RSlfk3FHhrLYIIs"}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxsnap_0.0.1_1695871530876_0.030245350291490114"},"_hasShrinkwrap":false},"0.0.2":{"name":"@amax/amaxsnap","version":"0.0.2","private":false,"description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","repository":{"type":"git","url":"git+https://github.com/armoniax/amax.evmsnap.git"},"license":"(MIT-0 OR Apache-2.0)","main":"src/index.ts","scripts":{"build":"mm-snap build","build:clean":"yarn clean && yarn build","clean":"rimraf dist","lint":"yarn lint:eslint && yarn lint:misc --check","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@metamask/key-tree":"^9.0.0","@metamask/snaps-types":"^0.32.2","@metamask/snaps-ui":"^0.32.2","buffer":"^6.0.3"},"devDependencies":{"@jest/globals":"^29.5.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/auto-changelog":"^2.6.0","@metamask/eslint-config":"^10.0.0","@metamask/eslint-config-jest":"^10.0.0","@metamask/eslint-config-nodejs":"^10.0.0","@metamask/eslint-config-typescript":"^10.0.0","@metamask/snaps-cli":"^0.38.2-flask.1","@metamask/snaps-jest":"^0.37.3-flask.1","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.2","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","prettier":"^2.2.1","prettier-plugin-packagejson":"^2.2.11","rimraf":"^3.0.2","through2":"^4.0.2","ts-jest":"^29.1.0","typescript":"^4.7.4"},"packageManager":"yarn@3.2.1","engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"gitHead":"da675c02d3dfe8ed3dc805c571af709ead5e9435","bugs":{"url":"https://github.com/armoniax/amax.evmsnap/issues"},"homepage":"https://github.com/armoniax/amax.evmsnap#readme","_id":"@amax/amaxsnap@0.0.2","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-35lOCrTIBz/NrOA3SnyrVgXxUqoXwL/MqPEZnGYk/MgG+W3uL2PAvQweXKnEr3tqJ1KdunWL6H73FKMfk9eCeQ==","shasum":"13d1c8ca837cabed690130891a1cecafaf1e54ce","tarball":"https://registry.npmjs.org/@amax/amaxsnap/-/amaxsnap-0.0.2.tgz","fileCount":7,"unpackedSize":3979374,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbprDt0iigAshbnGUM5IU0ZV/GRCrLUyfXXvLkygpSJwIgEvceUQ7lLV4bOa/3hgVK7nLL5lvRV7ZVQEW4RMM5Uzc="}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxsnap_0.0.2_1695872930761_0.6455813050438024"},"_hasShrinkwrap":false},"0.0.3":{"name":"@amax/amaxsnap","version":"0.0.3","private":false,"description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","repository":{"type":"git","url":"git+https://github.com/armoniax/amax.evmsnap.git"},"license":"(MIT-0 OR Apache-2.0)","main":"src/index.ts","scripts":{"build":"mm-snap build","build:clean":"yarn clean && yarn build","clean":"rimraf dist","lint":"yarn lint:eslint && yarn lint:misc --check","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@metamask/key-tree":"^9.0.0","@metamask/snaps-types":"^0.32.2","@metamask/snaps-ui":"^0.32.2","buffer":"^6.0.3"},"devDependencies":{"@jest/globals":"^29.5.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/auto-changelog":"^2.6.0","@metamask/eslint-config":"^10.0.0","@metamask/eslint-config-jest":"^10.0.0","@metamask/eslint-config-nodejs":"^10.0.0","@metamask/eslint-config-typescript":"^10.0.0","@metamask/snaps-cli":"^0.38.2-flask.1","@metamask/snaps-jest":"^0.37.3-flask.1","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.2","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","prettier":"^2.2.1","prettier-plugin-packagejson":"^2.2.11","rimraf":"^3.0.2","through2":"^4.0.2","ts-jest":"^29.1.0","typescript":"^4.7.4"},"packageManager":"yarn@3.2.1","engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"gitHead":"da675c02d3dfe8ed3dc805c571af709ead5e9435","bugs":{"url":"https://github.com/armoniax/amax.evmsnap/issues"},"homepage":"https://github.com/armoniax/amax.evmsnap#readme","_id":"@amax/amaxsnap@0.0.3","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-bPle7jVr65xTaQaoot3b84hdcmrKae6bVY4OQEIu05NeAAOP72aw+7aAT2swY/yXSsPC3J1WtZ0IGqXZ3HBmKQ==","shasum":"dc8475f763c48f4e7c082ef37e47200f66cb42dc","tarball":"https://registry.npmjs.org/@amax/amaxsnap/-/amaxsnap-0.0.3.tgz","fileCount":7,"unpackedSize":3978873,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLeLk4wdgOdcKz+4fdCOoaPmh3MURYrUZRt54yNXHG6AiEAtbEegOVuttpEuGP11KZPAYuSQWuN/wumoSkWRPdt2T8="}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxsnap_0.0.3_1695873477808_0.04526299621033414"},"_hasShrinkwrap":false},"0.0.4":{"name":"@amax/amaxsnap","version":"0.0.4","description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","repository":{"type":"git","url":"git+https://github.com/armoniax/amaxup.evmsnap.git"},"license":"(MIT-0 OR Apache-2.0)","main":"src/index.ts","scripts":{"build":"mm-snap build","build:clean":"yarn clean && yarn build","clean":"rimraf dist","lint":"yarn lint:eslint && yarn lint:misc --check","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@metamask/key-tree":"^9.0.0","@metamask/snaps-types":"^3.1.0","@metamask/snaps-ui":"^3.1.0","buffer":"^6.0.3"},"devDependencies":{"@jest/globals":"^29.5.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/auto-changelog":"^2.6.0","@metamask/eslint-config":"^10.0.0","@metamask/eslint-config-jest":"^10.0.0","@metamask/eslint-config-nodejs":"^10.0.0","@metamask/eslint-config-typescript":"^10.0.0","@metamask/snaps-cli":"^0.38.2-flask.1","@metamask/snaps-jest":"^0.37.3-flask.1","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.2","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","prettier":"^2.2.1","prettier-plugin-packagejson":"^2.2.11","rimraf":"^3.0.2","through2":"^4.0.2","ts-jest":"^29.1.0","typescript":"^4.7.4"},"packageManager":"yarn@3.2.1","engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"gitHead":"dd242acd7a1e24bf11e3cd75f3325868e7175dba","bugs":{"url":"https://github.com/armoniax/amaxup.evmsnap/issues"},"homepage":"https://github.com/armoniax/amaxup.evmsnap#readme","_id":"@amax/amaxsnap@0.0.4","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-EcXNW3Xi8p2AxPJQ/QGhtynGMlpZj4jyEXRnOxr3hGjNGIWlqer2Df4MArufqUYnaUKrnMOm4UXWKwgFQGi9zg==","shasum":"339bcf4fb393b4f40d2bdc046451f5ac2f9d2d20","tarball":"https://registry.npmjs.org/@amax/amaxsnap/-/amaxsnap-0.0.4.tgz","fileCount":7,"unpackedSize":4014316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN6H4G3yrgUbjx2e9OTm76JGSV+WP9w9z7lgHyPzw7twIgcy31AoqQK0YavirtTndOIOOpoAiGj32MdBgq+elOysQ="}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxsnap_0.0.4_1700550469469_0.8982557855002433"},"_hasShrinkwrap":false},"0.0.5":{"name":"@amax/amaxsnap","version":"0.0.5","description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","repository":{"type":"git","url":"git+https://github.com/armoniax/amaxup.evmsnap.git"},"license":"(MIT-0 OR Apache-2.0)","main":"src/index.ts","scripts":{"build":"mm-snap build","build:clean":"yarn clean && yarn build","clean":"rimraf dist","lint":"yarn lint:eslint && yarn lint:misc --check","lint:eslint":"eslint . --cache --ext js,ts","lint:fix":"yarn lint:eslint --fix && yarn lint:misc --write","lint:misc":"prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore","serve":"mm-snap serve","start":"mm-snap watch","test":"jest"},"dependencies":{"@amax/amaxjs-ecc":"^0.0.2","@amax/amaxjs-v2":"^22.1.1","@metamask/key-tree":"^9.0.0","@metamask/snaps-types":"^3.1.0","@metamask/snaps-ui":"^3.1.0","buffer":"^6.0.3"},"devDependencies":{"@jest/globals":"^29.5.0","@lavamoat/allow-scripts":"^2.0.3","@metamask/auto-changelog":"^2.6.0","@metamask/eslint-config":"^10.0.0","@metamask/eslint-config-jest":"^10.0.0","@metamask/eslint-config-nodejs":"^10.0.0","@metamask/eslint-config-typescript":"^10.0.0","@metamask/snaps-cli":"^0.38.2-flask.1","@metamask/snaps-jest":"^0.37.3-flask.1","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.2","eslint-plugin-jsdoc":"^39.2.9","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","prettier":"^2.2.1","prettier-plugin-packagejson":"^2.2.11","rimraf":"^3.0.2","through2":"^4.0.2","ts-jest":"^29.1.0","typescript":"^4.7.4"},"packageManager":"yarn@3.2.1","engines":{"node":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"bugs":{"url":"https://github.com/armoniax/amaxup.evmsnap/issues"},"homepage":"https://github.com/armoniax/amaxup.evmsnap#readme","_id":"@amax/amaxsnap@0.0.5","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-NEjvW47cNFJQnix3McRvrseLN4KJhvEkD13LU9tY9Bmwitc/e+5iaMCsFBwda38r6pd3AyShCOaSLL84+gC9YQ==","shasum":"c406d8cc754ad0bf6ecd350e7a393f9c906581b6","tarball":"https://registry.npmjs.org/@amax/amaxsnap/-/amaxsnap-0.0.5.tgz","fileCount":8,"unpackedSize":3995133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeKvDTayAYjCv8gO88S2j4HHczuLgxY3KUlDOSoaTfKwIgR2UEu7awe1j/8IBsvd0ikti2WHmH+L+9RiIABKGIhuU="}]},"_npmUser":{"name":"armoniametachain","email":"aplink2022@gmail.com"},"directories":{},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amaxsnap_0.0.5_1702020315254_0.14145413655235006"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-28T03:25:30.774Z","0.0.1":"2023-09-28T03:25:31.190Z","modified":"2023-12-08T07:25:15.747Z","0.0.2":"2023-09-28T03:48:51.030Z","0.0.3":"2023-09-28T03:57:58.131Z","0.0.4":"2023-11-21T07:07:49.729Z","0.0.5":"2023-12-08T07:25:15.542Z"},"maintainers":[{"name":"armoniametachain","email":"aplink2022@gmail.com"}],"description":"Manage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.","homepage":"https://github.com/armoniax/amaxup.evmsnap#readme","repository":{"type":"git","url":"git+https://github.com/armoniax/amaxup.evmsnap.git"},"bugs":{"url":"https://github.com/armoniax/amaxup.evmsnap/issues"},"license":"(MIT-0 OR Apache-2.0)","readme":"# Amax MetaMask Snap\nManage your account, tokens and NFTs and access DAPPs (xChain, Swap, TrueDEX etc.) of Armonia Meta Chain from your MetaMask EVM wallet.\n\n## Install & Initialize\n```javascript\n// Check if the Snap is installed\nlet result = await window.ethereum.request({ method: 'wallet_getSnaps' });\nconst installed = Object.keys(result).includes(\"npm:@amax/amaxsnap\");\n\n// Install Snap\nif (!installed) {\n    const result = await window.ethereum.request({\n        method: 'wallet_requestSnaps',\n        params: {\n            'npm:@amax/amaxsnap': {\n            version: '^0.0.5', // please select last version\n            },\n        },\n    });\n}\n\n```\n## Get Accounts \n```javascript\nawait window.ethereum.request({\n    method: 'wallet_invokeSnap',\n    params: {\n        snapId: 'npm:@amax/amaxsnap',\n        request: {\n            method: 'getAccounts',\n            params: {\n                paths: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100] // get accounts by derive path \n            }\n        },\n    },\n});\n```\n\n## Sign or Push Transaction\n```javascript\nawait window.ethereum.request({\n    method: 'wallet_invokeSnap',\n    params: {\n        snapId: 'npm:@amax/amaxsnap',\n        request: {\n            method: 'signTransaction',\n            params: {\n              actions: [], // action array\n              network: '', // network\n              path: 0, // signer derive path \n              transactConfig: { // config: @amax/amaxjs-v2/dist/eosjs-api-interfaces\n                 broadcast: false,\n                 ...\n              } \n            },\n        },\n    },\n});\n```\n\n## Sign Message\n```javascript\nawait window.ethereum.request({\n    method: 'wallet_invokeSnap',\n    params: {\n        snapId: 'npm:@amax/amaxsnap',\n        request: {\n            method: 'signMessage',\n            params: {\n              message: '', // sign string\n              path: 0, // signer derive path \n            },\n        },\n    },\n});\n```","readmeFilename":"README.md"}