starknet 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/CONTRIBUTING.md +2 -2
- package/__mocks__/ERC20.json +32561 -29055
- package/__mocks__/l1l2_compiled.json +10107 -0
- package/__tests__/account.test.ts +32 -24
- package/__tests__/contract.test.ts +25 -14
- package/__tests__/defaultProvider.test.ts +19 -49
- package/__tests__/fixtures.ts +11 -1
- package/__tests__/rpcProvider.test.ts +6 -15
- package/__tests__/sequencerProvider.test.ts +57 -11
- package/__tests__/utils/merkle.test.ts +113 -3
- package/__tests__/utils/typedData.test.ts +3 -3
- package/account/default.d.ts +10 -44
- package/account/default.js +255 -61
- package/account/interface.d.ts +78 -7
- package/constants.d.ts +1 -0
- package/constants.js +1 -0
- package/contract/default.js +6 -6
- package/dist/account/default.d.ts +10 -44
- package/dist/account/default.js +255 -61
- package/dist/account/interface.d.ts +78 -7
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/contract/default.js +6 -6
- package/dist/provider/default.d.ts +8 -3
- package/dist/provider/default.js +31 -4
- package/dist/provider/interface.d.ts +67 -5
- package/dist/provider/rpc.d.ts +7 -2
- package/dist/provider/rpc.js +83 -8
- package/dist/provider/sequencer.d.ts +9 -3
- package/dist/provider/sequencer.js +93 -14
- package/dist/signer/default.d.ts +4 -1
- package/dist/signer/default.js +22 -0
- package/dist/signer/interface.d.ts +27 -2
- package/dist/types/api/openrpc.d.ts +24 -2
- package/dist/types/api/sequencer.d.ts +43 -23
- package/dist/types/lib.d.ts +23 -2
- package/dist/types/provider.d.ts +19 -10
- package/dist/types/signer.d.ts +14 -1
- package/dist/utils/hash.d.ts +8 -0
- package/dist/utils/hash.js +28 -2
- package/dist/utils/merkle.js +4 -5
- package/dist/utils/number.d.ts +5 -0
- package/dist/utils/number.js +29 -1
- package/dist/utils/responseParser/rpc.d.ts +2 -6
- package/dist/utils/responseParser/rpc.js +0 -11
- package/dist/utils/responseParser/sequencer.js +11 -33
- package/package.json +1 -1
- package/provider/default.d.ts +8 -3
- package/provider/default.js +31 -4
- package/provider/interface.d.ts +67 -5
- package/provider/rpc.d.ts +7 -2
- package/provider/rpc.js +83 -8
- package/provider/sequencer.d.ts +9 -3
- package/provider/sequencer.js +93 -14
- package/signer/default.d.ts +4 -1
- package/signer/default.js +22 -0
- package/signer/interface.d.ts +27 -2
- package/src/account/default.ts +201 -53
- package/src/account/interface.ts +104 -6
- package/src/constants.ts +1 -0
- package/src/contract/default.ts +6 -6
- package/src/provider/default.ts +43 -5
- package/src/provider/interface.ts +92 -7
- package/src/provider/rpc.ts +86 -12
- package/src/provider/sequencer.ts +105 -13
- package/src/signer/default.ts +54 -2
- package/src/signer/interface.ts +31 -2
- package/src/types/api/openrpc.ts +28 -2
- package/src/types/api/sequencer.ts +54 -25
- package/src/types/lib.ts +30 -2
- package/src/types/provider.ts +31 -11
- package/src/types/signer.ts +18 -1
- package/src/utils/hash.ts +70 -2
- package/src/utils/merkle.ts +4 -5
- package/src/utils/number.ts +27 -0
- package/src/utils/responseParser/rpc.ts +4 -20
- package/src/utils/responseParser/sequencer.ts +14 -7
- package/types/api/openrpc.d.ts +24 -2
- package/types/api/sequencer.d.ts +43 -23
- package/types/lib.d.ts +23 -2
- package/types/provider.d.ts +19 -10
- package/types/signer.d.ts +14 -1
- package/utils/hash.d.ts +8 -0
- package/utils/hash.js +28 -2
- package/utils/merkle.js +4 -5
- package/utils/number.d.ts +5 -0
- package/utils/number.js +29 -1
- package/utils/responseParser/rpc.d.ts +2 -6
- package/utils/responseParser/rpc.js +0 -11
- package/utils/responseParser/sequencer.js +11 -33
- package/www/docs/API/account.md +60 -1
- package/www/docs/API/provider.md +320 -23
- package/www/guides/account.md +1 -1
- package/www/guides/erc20.md +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
# [4.9.0](https://github.com/0xs34n/starknet.js/compare/v4.8.0...v4.9.0) (2022-10-19)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- add back getEstimateFee and estimateFee ([bf7abca](https://github.com/0xs34n/starknet.js/commit/bf7abca616ebbb658fda040959c6103d8998069d))
|
|
6
|
+
- build ([421b9d7](https://github.com/0xs34n/starknet.js/commit/421b9d7a3fa3fd962faab8f22289d69bd521b5ca))
|
|
7
|
+
- erc20 tests ([2b6aa24](https://github.com/0xs34n/starknet.js/commit/2b6aa2455e6d878003157b16ae2e611dbcb017ea))
|
|
8
|
+
- estimateFee response ([546e43b](https://github.com/0xs34n/starknet.js/commit/546e43ba605c79c2f8c1c47b881a554da2f9bad7))
|
|
9
|
+
- getBlock test ([e3750d0](https://github.com/0xs34n/starknet.js/commit/e3750d0c31eb63a6627a6e3cc47542cea7c1915e))
|
|
10
|
+
- linter autofix restored ([07d28f6](https://github.com/0xs34n/starknet.js/commit/07d28f6ac4c91ab3a80f12c1d3ad0a1c4b15ca88))
|
|
11
|
+
- optional address ([95e7e47](https://github.com/0xs34n/starknet.js/commit/95e7e479c7f1d30d43f122bef820f93999453f14))
|
|
12
|
+
- provide all available data from sequencer GetTransaction ([f3d2969](https://github.com/0xs34n/starknet.js/commit/f3d29693f2a349eed089224db9e96a137ab9f236))
|
|
13
|
+
- removed parseGetTransactionReceiptResponse rpc response parser for TransactionReceipt ([7fca26d](https://github.com/0xs34n/starknet.js/commit/7fca26ddf9b830aa1290f6e450daeea5bee03b38))
|
|
14
|
+
- use BigNumberish type for classHash ([0ab4d47](https://github.com/0xs34n/starknet.js/commit/0ab4d478a4930a2044b68280ca4e6cd69f63920a))
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- add and update tests ([b2df4c7](https://github.com/0xs34n/starknet.js/commit/b2df4c7deea96aaefcdf90e640bca67a91b6dab7))
|
|
19
|
+
- add declare flow with estimate fee ([30d5544](https://github.com/0xs34n/starknet.js/commit/30d554442ed3173bf4fa1d80dd3acaf2461b78aa))
|
|
20
|
+
- deploy_account transaction ([8e5d414](https://github.com/0xs34n/starknet.js/commit/8e5d4148fe8edc72e5b5eaac0be56d5127ce828d))
|
|
21
|
+
- **refactor:** contractAddress calculation ([2b791d5](https://github.com/0xs34n/starknet.js/commit/2b791d5db4a78fceb6cc08ae4ed2ef68fe0c3f07))
|
|
22
|
+
- update maxFee logic ([19add10](https://github.com/0xs34n/starknet.js/commit/19add10d53b5b83fb96c8db1043318942f59309c))
|
|
23
|
+
- use updated erc20 contract ([19ca7e8](https://github.com/0xs34n/starknet.js/commit/19ca7e822988d9b82e075c569a1decb4d4d7966a))
|
|
24
|
+
|
|
25
|
+
# [4.8.0](https://github.com/0xs34n/starknet.js/compare/v4.7.0...v4.8.0) (2022-10-05)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
- adapted transactionTrace response ([58c21c0](https://github.com/0xs34n/starknet.js/commit/58c21c0a3c647eae781d57024c3193aa6c98b20b))
|
|
30
|
+
- estimate fee BigInt test ([0489bed](https://github.com/0xs34n/starknet.js/commit/0489bed7ea16790708878d7714df554b84d02153))
|
|
31
|
+
- fixed and one-lined hash sort and added additional test case ([023c7c7](https://github.com/0xs34n/starknet.js/commit/023c7c7c543c0e4382bf3e109140206f7c7cba57))
|
|
32
|
+
- fixed hash arg sorting in merkle tree generation ([ccbfecf](https://github.com/0xs34n/starknet.js/commit/ccbfecfa63aa5037455405d929aea6322590d6ac))
|
|
33
|
+
- is sequencer goerli fix ([2d43d1b](https://github.com/0xs34n/starknet.js/commit/2d43d1b666ccbcaf3a9fda92ebfbb7db3b96f8c1))
|
|
34
|
+
- issue 296 ([bfc1f70](https://github.com/0xs34n/starknet.js/commit/bfc1f7051f8949b4c4d89ee379430e4404c9a2f5))
|
|
35
|
+
- remove linter fix ([272e2ec](https://github.com/0xs34n/starknet.js/commit/272e2ecbe254758bc6d841e16d426446914e18e9))
|
|
36
|
+
- remove optional l1_origin_message from test ([01050e3](https://github.com/0xs34n/starknet.js/commit/01050e333a6d96e3b439bdb3398a634ee18137af))
|
|
37
|
+
- remove status_data as it is optional response parameter ([9bb0a3e](https://github.com/0xs34n/starknet.js/commit/9bb0a3e0afb610817a12c036e3f117a385f4a1d6))
|
|
38
|
+
- sequencer getBlock response ([165bce7](https://github.com/0xs34n/starknet.js/commit/165bce743467cd9de36559c3cb232fccc32064be))
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
- sequencer estimateMessageFee ([f1ffda7](https://github.com/0xs34n/starknet.js/commit/f1ffda7e79e9bfda7f041abc3fd8c5b4ac9f1a66))
|
|
43
|
+
|
|
1
44
|
# [4.7.0](https://github.com/0xs34n/starknet.js/compare/v4.6.0...v4.7.0) (2022-09-22)
|
|
2
45
|
|
|
3
46
|
### Bug Fixes
|
package/CONTRIBUTING.md
CHANGED
|
@@ -19,7 +19,7 @@ ALways start from `develop` branch and merge back to `develop` branch.
|
|
|
19
19
|
To build you changes run:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm build
|
|
22
|
+
npm run build
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Run linters and tests:
|
|
@@ -31,7 +31,7 @@ npm test
|
|
|
31
31
|
Or run tests in watch mode:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npm
|
|
34
|
+
npm test --watch
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
**Don’t forget to add tests and update documentation for your changes.**
|