Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native-issue-fixes #92

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
/logs
coverage
package-lock.json
/dist
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ web3.js library for Aptos

@martiandao/aptos-web3-bip44.js is an npm module which allows developers to communicate with the Aptos core code. This module is built on top of [Typescript SDK of Aptos](https://github.com/aptos-labs/aptos-core/tree/main/ecosystem/typescript/sdk).

⚠️ Note: This library is still under development
# Import

```
npm i @martiandao/aptos-web3-bip44.js.js
npm i @martiandao/aptos-web3-bip44.js
```
or
```
yarn add @martiandao/aptos-web3-bip44.js
```

Checkout the [documents page](https://github.com/martian-dao/aptos-web3.js/blob/main/docs/classes/WalletClient.md) for the function definitions.

# Usage Example Wallet
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"@types/tiny-secp256k1": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"assert": "^2.0.0",
"dotenv": "16.0.2",
"eslint": "^8.20.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
Expand All @@ -48,33 +50,33 @@
"jest": "^27.5.1",
"lint-staged": "^13.0.3",
"node-fetch": "^2.6.7",
"openapi-typescript-codegen": "https://github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.23.0-p4/openapi-typescript-codegen-v0.23.0-p4.tgz",
"prettier": "^2.7.1",
"ts-jest": "^27.1.5",
"ts-loader": "^9.3.0",
"ts-node": "^10.8.0",
"tsup": "6.2.3",
"typedoc": "^0.23.9",
"typedoc-plugin-markdown": "^3.13.4",
"typescript": "^4.6.4",
"dotenv": "16.0.2",
"openapi-typescript-codegen": "https://github.com/aptos-labs/openapi-typescript-codegen/releases/download/v0.23.0-p4/openapi-typescript-codegen-v0.23.0-p4.tgz",
"tsup": "6.2.3"
"typescript": "^4.6.4"
},
"dependencies": {
"@microsoft/eslint-formatter-sarif": "^2.1.7",
"@noble/hashes": "1.1.2",
"@polkadot/x-textdecoder": "^10.1.13",
"@scure/bip32": "^1.0.1",
"@scure/bip39": "^1.0.0",
"axios": "^0.26.1",
"brfs": "^2.0.2",
"buffer": "^6.0.3",
"cross-fetch": "^3.1.5",
"ed25519-hd-key": "^1.3.0",
"form-data": "4.0.0",
"js-sha3": "^0.8.0",
"node-cache": "^5.1.2",
"pre-commit": "^1.2.2",
"tweetnacl": "^1.0.3",
"typescript-memoize": "^1.1.0",
"@noble/hashes": "1.1.2",
"form-data": "4.0.0"
"typescript-memoize": "^1.1.0"
},
"version": "1.2.20"
"version": "1.2.21"
}
1 change: 1 addition & 0 deletions src/bcs/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* eslint-disable no-bitwise */
import { MAX_U32_NUMBER } from "./consts";
import { Bytes, Uint128, Uint16, Uint32, Uint64, Uint8 } from "./types";
import {TextDecoder} from '@polkadot/x-textdecoder';

export class Deserializer {
private buffer: ArrayBuffer;
Expand Down