starknet 1.6.0 → 2.0.2
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 +36 -1
- package/README.md +13 -2
- package/__mocks__/ArgentAccount.json +42401 -49045
- package/__mocks__/ERC20.json +3721 -3274
- package/__mocks__/Readme.md +2 -0
- package/__tests__/account.test.ts +6 -6
- package/__tests__/provider.test.ts +4 -4
- package/__tests__/signer.test.ts +1 -1
- package/__tests__/utils/__snapshots__/utils.browser.test.ts.snap +2 -2
- package/__tests__/utils/__snapshots__/utils.test.ts.snap +2 -2
- package/__tests__/utils/ellipticalCurve.test.ts +18 -6
- package/__tests__/utils/utils.test.ts +19 -1
- package/constants.d.ts +5 -5
- package/contract.d.ts +5 -1
- package/contract.js +32 -7
- package/dist/constants.d.ts +5 -5
- package/dist/contract.d.ts +5 -1
- package/dist/contract.js +29 -7
- package/dist/provider/default.js +6 -4
- package/dist/signer/default.js +2 -3
- package/dist/types.d.ts +17 -10
- package/dist/utils/ellipticCurve.js +1 -1
- package/dist/utils/hash.d.ts +1 -0
- package/dist/utils/hash.js +7 -15
- package/package.json +1 -1
- package/provider/default.js +6 -4
- package/signer/default.js +2 -2
- package/src/constants.ts +6 -4
- package/src/contract.ts +42 -11
- package/src/provider/default.ts +5 -3
- package/src/signer/default.ts +2 -2
- package/src/types.ts +16 -4
- package/src/utils/ellipticCurve.ts +1 -1
- package/src/utils/hash.ts +6 -14
- package/tsconfig.json +3 -2
- package/types.d.ts +17 -10
- package/utils/ellipticCurve.js +1 -1
- package/utils/hash.d.ts +1 -0
- package/utils/hash.js +16 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## [2.0.2](https://github.com/seanjameshan/starknet.js/compare/v2.0.1...v2.0.2) (2021-11-22)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- correctly parse structs in Starknet return types ([5a4a318](https://github.com/seanjameshan/starknet.js/commit/5a4a318dad4c78fe84540ad92063fc1879317ac1))
|
|
6
|
+
- make Typescript compiler happy with constant types ([aedd895](https://github.com/seanjameshan/starknet.js/commit/aedd895a62e6018dd1d7330b004d54360007967f))
|
|
7
|
+
|
|
8
|
+
## [2.0.1](https://github.com/seanjameshan/starknet.js/compare/v2.0.0...v2.0.1) (2021-11-18)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- msgHash length fix in signature verify function ([589b126](https://github.com/seanjameshan/starknet.js/commit/589b126b2b87bf7d0b2730f53a40ee2d9ef9aca0))
|
|
13
|
+
|
|
14
|
+
# [2.0.0](https://github.com/seanjameshan/starknet.js/compare/v1.7.0...v2.0.0) (2021-11-18)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- alpha 4 ([f12db5a](https://github.com/seanjameshan/starknet.js/commit/f12db5a9d3d00902792a292e5258263edb7ac7a2))
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
- implements alpha 4
|
|
23
|
+
|
|
24
|
+
# [1.7.0](https://github.com/seanjameshan/starknet.js/compare/v1.6.0...v1.7.0) (2021-11-17)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- add computeHashOnElements ([ec6d3d3](https://github.com/seanjameshan/starknet.js/commit/ec6d3d35abd0e4aecea820d6702adf174e5e37e7))
|
|
29
|
+
|
|
1
30
|
# [1.6.0](https://github.com/seanjameshan/starknet.js/compare/v1.5.4...v1.6.0) (2021-11-09)
|
|
2
31
|
|
|
3
32
|
### Bug Fixes
|
|
@@ -7,7 +36,13 @@
|
|
|
7
36
|
### Features
|
|
8
37
|
|
|
9
38
|
- add invokeFunction ([7e04b5e](https://github.com/seanjameshan/starknet.js/commit/7e04b5ec383fa6d466e9e06d9fa02e2d0c36b020))
|
|
10
|
-
- add signer and provider v1 ([909fdc0](https://github.com/seanjameshan/starknet.js/commit/909fdc0b2b211755b9124b62f97476d89b655de1))
|
|
39
|
+
- # add signer and provider v1 ([909fdc0](https://github.com/seanjameshan/starknet.js/commit/909fdc0b2b211755b9124b62f97476d89b655de1))
|
|
40
|
+
|
|
41
|
+
## [1.5.5](https://github.com/seanjameshan/starknet.js/compare/v1.5.4...v1.5.5) (2021-11-13)
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
- msgHash length fix in signature verify function ([589b126](https://github.com/seanjameshan/starknet.js/commit/589b126b2b87bf7d0b2730f53a40ee2d9ef9aca0))
|
|
11
46
|
|
|
12
47
|
## [1.5.4](https://github.com/seanjameshan/starknet.js/compare/v1.5.3...v1.5.4) (2021-11-05)
|
|
13
48
|
|
package/README.md
CHANGED
|
@@ -56,11 +56,22 @@ defaultProvider.getContractAddresses().then((data) => {
|
|
|
56
56
|
|
|
57
57
|
[Click Here](https://www.starknetjs.com/modules.html)
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## 🚀 Powered by Starknet.js
|
|
60
|
+
|
|
61
|
+
- [Argent X - the first StarkNet wallet](https://github.com/argentlabs/argent-x)
|
|
62
|
+
- [React + Starknet.js boilerplate](https://github.com/fracek/starknet-react-example)
|
|
63
|
+
|
|
64
|
+
## ✏️ Contributing
|
|
60
65
|
|
|
61
66
|
If you consider to contribute to this project please read [CONTRIBUTING.md](https://github.com/seanjameshan/starknet.js/blob/main/CONTRIBUTING.md) first.
|
|
62
67
|
|
|
63
|
-
##
|
|
68
|
+
## ❤️ Special Thanks
|
|
69
|
+
|
|
70
|
+
Special thanks to all the [contributors](https://github.com/seanjameshan/starknet.js/graphs/contributors), and especially Janek ([@janek26](https://github.com/janek26)) from [Argent](https://github.com/argentlabs) for driving the development of Starknet.js.
|
|
71
|
+
|
|
72
|
+
This library would not be possible without these rockstars.
|
|
73
|
+
|
|
74
|
+
## 📜 License
|
|
64
75
|
|
|
65
76
|
Copyright (c) 2021 Sean James Han
|
|
66
77
|
|