├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierignore ├── .prettierrc.js ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── commitlint.config.js ├── examples ├── basic │ └── index.ts ├── getId │ └── index.ts └── socket │ └── index.ts ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── src ├── api │ ├── generated.ts │ ├── index.ts │ ├── tests │ │ └── utils.test.ts │ └── utils.ts ├── coins │ ├── btc.ts │ ├── dash.ts │ ├── doge.ts │ ├── eth.ts │ ├── index.ts │ ├── lsk.ts │ └── tests │ │ ├── btc.test.ts │ │ ├── dash.test.ts │ │ ├── doge.test.ts │ │ ├── eth.test.ts │ │ ├── lsk.test.ts │ │ └── mock │ │ └── passphrase.ts ├── helpers │ ├── bignumber.ts │ ├── constants.ts │ ├── encryptor.ts │ ├── healthCheck.ts │ ├── keys.ts │ ├── logger.ts │ ├── tests │ │ ├── keys.test.ts │ │ ├── logger.test.ts │ │ ├── mock-data │ │ │ └── address.ts │ │ ├── time.test.ts │ │ ├── transactions.test.ts │ │ └── validator.test.ts │ ├── time.ts │ ├── transactions │ │ ├── hash.ts │ │ ├── id.ts │ │ ├── index.ts │ │ └── tests │ │ │ └── id.test.ts │ ├── url.ts │ ├── utils.ts │ ├── validator.ts │ └── wsClient.ts └── index.ts ├── tsconfig.json └── types ├── coininfo.d.ts ├── socket-io-client.d.ts └── sodium-browserify-tweetnacl.d.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run test 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | ...require('gts/.prettierrc.json') 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /examples/basic/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/examples/basic/index.ts -------------------------------------------------------------------------------- /examples/getId/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/examples/getId/index.ts -------------------------------------------------------------------------------- /examples/socket/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/examples/socket/index.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/api/generated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/api/generated.ts -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/api/index.ts -------------------------------------------------------------------------------- /src/api/tests/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/api/tests/utils.test.ts -------------------------------------------------------------------------------- /src/api/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/api/utils.ts -------------------------------------------------------------------------------- /src/coins/btc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/btc.ts -------------------------------------------------------------------------------- /src/coins/dash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/dash.ts -------------------------------------------------------------------------------- /src/coins/doge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/doge.ts -------------------------------------------------------------------------------- /src/coins/eth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/eth.ts -------------------------------------------------------------------------------- /src/coins/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/index.ts -------------------------------------------------------------------------------- /src/coins/lsk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/lsk.ts -------------------------------------------------------------------------------- /src/coins/tests/btc.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/btc.test.ts -------------------------------------------------------------------------------- /src/coins/tests/dash.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/dash.test.ts -------------------------------------------------------------------------------- /src/coins/tests/doge.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/doge.test.ts -------------------------------------------------------------------------------- /src/coins/tests/eth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/eth.test.ts -------------------------------------------------------------------------------- /src/coins/tests/lsk.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/lsk.test.ts -------------------------------------------------------------------------------- /src/coins/tests/mock/passphrase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/coins/tests/mock/passphrase.ts -------------------------------------------------------------------------------- /src/helpers/bignumber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/bignumber.ts -------------------------------------------------------------------------------- /src/helpers/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/constants.ts -------------------------------------------------------------------------------- /src/helpers/encryptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/encryptor.ts -------------------------------------------------------------------------------- /src/helpers/healthCheck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/healthCheck.ts -------------------------------------------------------------------------------- /src/helpers/keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/keys.ts -------------------------------------------------------------------------------- /src/helpers/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/logger.ts -------------------------------------------------------------------------------- /src/helpers/tests/keys.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/keys.test.ts -------------------------------------------------------------------------------- /src/helpers/tests/logger.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/logger.test.ts -------------------------------------------------------------------------------- /src/helpers/tests/mock-data/address.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/mock-data/address.ts -------------------------------------------------------------------------------- /src/helpers/tests/time.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/time.test.ts -------------------------------------------------------------------------------- /src/helpers/tests/transactions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/transactions.test.ts -------------------------------------------------------------------------------- /src/helpers/tests/validator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/tests/validator.test.ts -------------------------------------------------------------------------------- /src/helpers/time.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/time.ts -------------------------------------------------------------------------------- /src/helpers/transactions/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/transactions/hash.ts -------------------------------------------------------------------------------- /src/helpers/transactions/id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/transactions/id.ts -------------------------------------------------------------------------------- /src/helpers/transactions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/transactions/index.ts -------------------------------------------------------------------------------- /src/helpers/transactions/tests/id.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/transactions/tests/id.test.ts -------------------------------------------------------------------------------- /src/helpers/url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/url.ts -------------------------------------------------------------------------------- /src/helpers/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/utils.ts -------------------------------------------------------------------------------- /src/helpers/validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/validator.ts -------------------------------------------------------------------------------- /src/helpers/wsClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/helpers/wsClient.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/coininfo.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/types/coininfo.d.ts -------------------------------------------------------------------------------- /types/socket-io-client.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/types/socket-io-client.d.ts -------------------------------------------------------------------------------- /types/sodium-browserify-tweetnacl.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Adamant-im/adamant-api-jsclient/HEAD/types/sodium-browserify-tweetnacl.d.ts --------------------------------------------------------------------------------