javascript-sdk
javascript-sdk copied to clipboard
Javascript SDK to communicate with BNB Beacon Chain.
https://github.com/binance-chain/javascript-sdk/blob/a089e04aa3299ebb9719e44380a1cd694a7829c4/src/decoder/types.js#L1 The type choices in this file are very random and this should be improved.
The tests we have now are **integration** tests because they trigger actions on the blockchain. These can be really flaky and break often! In **unit** tests, I would propose that...
Here you can see mnemonic: https://github.com/binance-chain/javascript-sdk/blob/master/__tests__/client.test.js#L7 I found some money on this mnemonic on mainnet too. Is it there for specific purpose?)
We generate keystores using the `pbkdf2` kdf for now, but there are more secure options out there such as argon2 (preferred) and scrypt. We should retain support for unlocking `pbkdf2`...
client/index.js should be only for interacting with binance chain like send token , issue token and so
Right now client has methods that rely on `this.privateKey` and others that take parameters in arguments (such as `checkAddress(address)`). These separate concerns should be separated out into two classes.
The client should behave differently depending on whether it connects to an accelerated or a regular node. Operations like e.g. broadcasting transactions are different depending on the node type.
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6. Commits 35a517c Release version 1.15.6 of the npm package. c4f847f Drop Proxy-Authorization across hosts. 8526b4a Use GitHub for disclosure. b1677ce Release version 1.15.5 of...
Bumps [axios](https://github.com/axios/axios) from 0.24.0 to 0.28.0. Release notes Sourced from axios's releases. Release v0.28.0 Release notes: Bug Fixes fix(security): fixed CVE-2023-45857 by backporting withXSRFToken option to v0.x (#6091) Backports from...
https://github.com/advisories/GHSA-pvrw-g6fx-mcx2 As well this library is not supported at all. Maybe it's good idea to switch to something else or just copy several functions from it, as this sdk doesn't...