starknet 2.7.1 → 2.7.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 +6 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [2.7.2](https://github.com/seanjameshan/starknet.js/compare/v2.7.1...v2.7.2) (2022-01-20)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **CONTRIBUTING:** wrong link ([2622a6c](https://github.com/seanjameshan/starknet.js/commit/2622a6c984259a6928e9ab02892b8de60b8c749e))
|
|
6
|
+
|
|
1
7
|
## [2.7.1](https://github.com/seanjameshan/starknet.js/compare/v2.7.0...v2.7.1) (2022-01-04)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/CONTRIBUTING.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
We love pull requests. And following this guidelines will make your pull request easier to merge.
|
|
4
4
|
|
|
5
|
-
If you want to contribute but don’t know what to do, take a look at these two labels: [help wanted](https://github.com/seanjameshan/starknet/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) and [good first issue](https://github.com/seanjameshan/starknet/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
|
|
5
|
+
If you want to contribute but don’t know what to do, take a look at these two labels: [help wanted](https://github.com/seanjameshan/starknet.js/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) and [good first issue](https://github.com/seanjameshan/starknet.js/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
|
|
6
6
|
|
|
7
7
|
_[Use GitHub interface](https://blog.sapegin.me/all/open-source-for-everyone/) for simple documentation changes, otherwise follow the steps below._
|
|
8
8
|
|
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ const CONTRACT_ADDRESS =
|
|
|
58
58
|
**/
|
|
59
59
|
|
|
60
60
|
/** Reset the liquidity pool **/
|
|
61
|
-
const addTokenResponse = await
|
|
61
|
+
const addTokenResponse = await defaultProvider.addTransaction({
|
|
62
62
|
type: "INVOKE_FUNCTION",
|
|
63
63
|
contract_address: CONTRACT_ADDRESS,
|
|
64
64
|
entry_point_selector: getSelectorFromName("init_pool"),
|
|
@@ -71,7 +71,7 @@ console.log(addTokenResponse);
|
|
|
71
71
|
**/
|
|
72
72
|
|
|
73
73
|
/** Get the balance of the liquidity pool of token A **/
|
|
74
|
-
const poolBalanceTokenA = await callContract({
|
|
74
|
+
const poolBalanceTokenA = await defaultProvider.callContract({
|
|
75
75
|
contract_address: CONTRACT_ADDRESS,
|
|
76
76
|
entry_point_selector: getSelectorFromName("get_pool_token_balance"),
|
|
77
77
|
calldata: ["1"],
|
|
@@ -80,7 +80,7 @@ const balanceA = poolBalanceTokenA.result[0];
|
|
|
80
80
|
console.log('token a liquidity pool balance: ', parseInt(balanceA, 16));
|
|
81
81
|
|
|
82
82
|
/** Get the balance of the liquidity pool of token B **/
|
|
83
|
-
const poolBalanceTokenB = await callContract({
|
|
83
|
+
const poolBalanceTokenB = await defaultProvider.callContract({
|
|
84
84
|
contract_address: CONTRACT_ADDRESS,
|
|
85
85
|
entry_point_selector: getSelectorFromName("get_pool_token_balance"),
|
|
86
86
|
calldata: ["2"],
|