{"_id":"@acentswap/bridge-sdk","_rev":"4-0a3f2f4687d5a3d89644011036b3b20b","name":"@acentswap/bridge-sdk","dist-tags":{"latest":"6.0.0"},"versions":{"6.0.0":{"name":"@acentswap/bridge-sdk","version":"6.0.0","license":"Apache-2.0","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"test":"cross-env NODE_ENV=test jest","test:ledger":"qunit --require babel-polyfiltypl tests-ledger/tests.js","test:ledger:browser":"./tests-ledger/run-browser-tests.sh","build":"rimraf lib && tsc --emitDeclarationOnly && babel --extensions '.ts' src -d lib","build:docs":"rimraf docs/api-docs && typedoc --excludeExternals --excludeNotDocumented --readme none --out docs/api-docs --hideBreadcrumbs --disableSources","prepublishOnly":"npm run build","clean":"rimraf lib","lint":"eslint '**/*.{ts,js}'","format":"prettier --write \"**/*.{js,jsx,ts,tsx,css,json,md,html,yml}\""},"dependencies":{"@babel/runtime":"^7.10.4","@ledgerhq/hw-transport-u2f":"^5.9.0","@ledgerhq/hw-transport-web-ble":"^5.9.0","@types/bech32":"^1.1.2","@types/big.js":"^4.0.5","@types/bn.js":"^4.11.6","@types/crypto-js":"^3.1.43","@types/elliptic":"^6.4.12","@types/jest":"^25.1.4","@types/ledgerhq__hw-transport":"^4.21.2","@types/lodash":"^4.14.149","@types/node":"^13.9.0","@types/pumpify":"^1.4.1","@types/tiny-secp256k1":"^1.0.0","@types/uuid":"^7.0.0","axios":"^0.21.1","bech32":"^1.1.3","big.js":"^5.2.2","bip32":"^2.0.5","bip39":"^3.0.2","bn.js":"^4.11.8","camelcase":"^5.3.1","crypto-browserify":"^3.12.0","crypto-js":"^3.1.9-1","elliptic":"^6.5.4","eslint-utils":"^1.4.2","events":"^3.0.0","is_js":"^0.9.0","lodash":"^4.17.21","minimist":"^1.2.5","ndjson":"^1.5.0","protocol-buffers-encodings":"^1.1.0","pumpify":"^2.0.1","secure-random":"^1.1.2","tiny-secp256k1":"^1.1.3","url":"^0.11.0","uuid":"^3.3.2","websocket-stream":"^5.5.0","@ledgerhq/hw-transport-node-hid":"^5.10.0"},"optionalDependencies":{"@ledgerhq/hw-transport-node-hid":"^5.10.0"},"devDependencies":{"@babel/cli":"^7.10.4","@babel/core":"^7.10.4","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-transform-async-to-generator":"^7.10.4","@babel/plugin-transform-runtime":"^7.10.4","@babel/preset-env":"^7.10.4","@babel/preset-typescript":"^7.10.4","@types/bech32":"^1.1.2","@types/big.js":"^4.0.5","@types/bn.js":"^4.11.6","@types/crypto-js":"^3.1.43","@types/elliptic":"^6.4.12","@types/jest":"^25.1.4","@types/ledgerhq__hw-transport":"^4.21.2","@types/lodash":"^4.14.149","@types/node":"^13.9.0","@types/pumpify":"^1.4.1","@types/tiny-secp256k1":"^1.0.0","@types/uuid":"^7.0.0","@typescript-eslint/eslint-plugin":"^3.0.0","@typescript-eslint/parser":"^3.1.0","babel-core":"^7.0.0-0","babel-eslint":"^10.0.2","babel-jest":"^23.6.0","babel-plugin-external-helpers":"^6.22.0","babel-polyfill":"^6.26.0","babel-preset-latest":"^6.24.1","babel-preset-stage-2":"^6.24.1","browserify":"^16.2.3","buffer":"^5.2.1","bufferutil":"^4.0.1","builtin-modules":"^3.1.0","cross-env":"^5.2.0","eslint":"^7.1.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.20.2","eslint-plugin-prettier":"^3.1.3","http-server":"^0.11.1","husky":"^4.2.5","jest":"^25.1.0","prettier":"^2.0.4","qunit":"^2.9.2","rimraf":"^3.0.2","ts-jest":"^25.2.1","typedoc":"^0.17.8","typedoc-plugin-markdown":"^2.3.1","typescript":"^3.9.3","utf-8-validate":"^5.0.2"},"resolutions":{"**/**/handlebars":"^4.1.2","**/**/ecstatic":"^4.1.4","**/**/mem":"^4.0.0","**/**/minimist":"^1.2.5","**/glob-parent":"^5.1.1","**/qs":"^6.0.4","**/braces":"^2.3.1","**/ws":"^7.4.6","**/node-notifier":"^8.0.1"},"husky":{"hooks":{"pre-commit":"yarn lint --quiet && yarn build:docs"}},"gitHead":"4e6103d4d8f04a78d3f2d1ef0662bd58c53e6ad0","description":"The Acent Chain JavaScript SDK allows browsers and Node.js clients to interact\r with Acent Chain. It includes the following core components.","_id":"@acentswap/bridge-sdk@6.0.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-xeBmheGBRM4K+mYuAfgEyHc2dszRh2RCDJP3RPrXN/+w7uH6HcZzhq6K9dRZoZr/M3zpN0GDcioHZ9tRDXnZWA==","shasum":"ed98fa1cd35b8e33d2202b58af1ec07e4147f42e","tarball":"https://registry.npmjs.org/@acentswap/bridge-sdk/-/bridge-sdk-6.0.0.tgz","fileCount":64,"unpackedSize":113512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxoHTCRA9TVsSAnZWagAA0EMP/A96Tr06RYf/mDgXAap/\nXQK9Pun9KqtXBfzwqg2USroIVHnkp0XNwZXw32mGTSDl7ucwKKx3GUR/x5m1\ndV2SSrKSdplb8Lbc2J29f1dh7+e08g4UGnq3pK7FgkHnP9b8GpUi0UTkdpyr\nW/ocDATBZnb8tofMVlzjUlZ6mHv3i2ono49TFtAjLIINnpd9lFUKCtuLYv7a\nGRnoNI+OWzCOTgY1joXMD0oMcqGx83UIiThAnT5cNCVq0O3xv9REwJwwvuz9\nJwk4mKXddOXnYWUzf6m954/n6twmyNvzempDDvUYhIdA2PCfNlFYbQCN/c6L\nQeGs7f3/GdVnmg5EKreR/sAldNfIsOszIST45hyrAzj8aSGQmmlTjNVrLJNU\ngHo+KmqZbxuO3+Skp6X60l+V6F0RbFPeBxyKobcxkO22kVEZfiOKQnEjOZnq\nvKwQC7rc6rEF5mCF+bQuohI24YjLwBjDbY+XObK63t5LAzPHfhkNXqxU44rE\nOXpsZ8oKV4Pq8m+RjJbFeL+Eh0wOlUUScvWjOquQ1gXkxMIftByd1O4B5Tcz\nWgUOsO0BwZN1PsjX4luhU64gcRmnqyE6T8SpoapJSNQvojDaPdrZ52C/Ef8V\n3zoRvknhED7u5ySdjTZQLxQDzu4/UHPoKW3nWff1IKA8/YoElR0cYKYYzYVd\nuEgZ\r\n=WV3f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0pKc3KkhrBP51frlrD7ej/s6fS1N8smjtwiBuCe9gTQIhAO9R8/+MoLaLGBlLeKU1ErIM2pbm8YpqEUAQRNzTxSm+"}]},"_npmUser":{"name":"webcgi","email":"webcgi@kakao.com"},"directories":{},"maintainers":[{"name":"webcgi","email":"webcgi@kakao.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bridge-sdk_6.0.0_1640399315414_0.23814131612026168"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-25T02:28:35.358Z","6.0.0":"2021-12-25T02:28:35.559Z","modified":"2022-06-03T04:48:18.043Z"},"maintainers":[{"email":"melme890@gmail.com","name":"helloacent"},{"email":"webcgi@kakao.com","name":"webcgi"}],"description":"The Acent Chain JavaScript SDK allows browsers and Node.js clients to interact\r with Acent Chain. It includes the following core components.","license":"Apache-2.0","readme":"The Acent Chain JavaScript SDK allows browsers and Node.js clients to interact\r\nwith Acent Chain. It includes the following core components.\r\n\r\n- **crypto** - core cryptographic functions.\r\n- **amino** -\r\n  [amino](https://github.com/acent-chain/docs-site/blob/master/docs/encoding.md)\r\n  (protobuf-like) encoding and decoding of transactions.\r\n- **client** - implementations of Acent Chain transaction types, such as for\r\n  transfers and trading.\r\n- **accounts** - management of \"accounts\" and wallets, including seed and\r\n  encrypted mnemonic generation.\r\n- **ledger** - Ledger Nano S/X support via HID, U2F and Web BLE (Bluetooth).\r\n- **rpc** - Node RPC client.\r\n- **transaction** - Transaction Class, build and sign.\r\n\r\nYou can find more detailed documentation and examples in our\r\n[Documentation](https://github.com/acent-chain/javascript-sdk/blob/master/docs/README.md)\r\npages.\r\n\r\n## Installation\r\n\r\nIf you **do not** need Ledger support with Node.js:\r\n\r\n```bash\r\n$ npm i @acent-chain/javascript-sdk --no-optional\r\n# Or:\r\n$ yarn add @acent-chain/javascript-sdk --no-optional\r\n```\r\n\r\nIf you **need** Ledger support with Node.js:\r\n\r\n```bash\r\n$ npm i @acent-chain/javascript-sdk\r\n# Or:\r\n$ yarn add @acent-chain/javascript-sdk\r\n```\r\n\r\n### Prerequisites\r\n\r\n- **Windows users:** Please install\r\n  [windows-build-tools](https://www.npmjs.com/package/windows-build-tools)\r\n  first.\r\n\r\n- **Mac users:** Make sure XCode Command Line Tools are installed:\r\n  `xcode-select --install`.\r\n\r\n- **Linux users:** Note that Ubuntu Xenial and newer distributions are\r\n  recommended, especially when using Travis or other CI systems. You may need\r\n  some dev packages to be installed on your system for USB support. On\r\n  Debian-based distributions (like Ubuntu) you should install them with this\r\n  command:\r\n\r\n  ```bash\r\n  $ sudo apt-get install libudev-dev libusb-dev usbutils\r\n  ```\r\n\r\n### Use with Webpack\r\n\r\nWe often see Webpack builds failing with the SDK due to the `usb` dependency,\r\nbut adding this to your Webpack config should fix that:\r\n\r\n```js\r\nmodule.exports = {\r\n  plugins: [new webpack.IgnorePlugin(/^usb$/)],\r\n}\r\n```\r\n\r\n## Testing\r\n\r\nAll new code changes should be covered with unit tests. You can run the tests\r\nwith the following command:\r\n\r\n```bash\r\n$ yarn test\r\n```\r\n\r\nTests for the Ledger hardware wallet integration have their own suite that runs\r\nin both node and in the browser:\r\n\r\n```bash\r\n$ yarn test:ledger\r\n$ yarn test:ledger:browser\r\n```\r\n\r\n## Contributing\r\n\r\nContributions to the Acent Chain JavaScript SDK are welcome. Please ensure\r\nthat you have tested the changes with a local client and have added unit test\r\ncoverage for your code.\r\n","readmeFilename":"README.md"}