@defisaver/sdk 0.1.22 → 0.1.23

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/ACTIONS.md CHANGED
@@ -81,6 +81,12 @@
81
81
  <dd></dd>
82
82
  <dt><a href="#CurveMintCrvAction">CurveMintCrvAction</a></dt>
83
83
  <dd></dd>
84
+ <dt><a href="#CurveStethPoolDepositAction">CurveStethPoolDepositAction</a></dt>
85
+ <dd><p>CurveStethPoolDepositAction - Deposits tokens into curve steth pool</p>
86
+ </dd>
87
+ <dt><a href="#CurveStethPoolWithdrawAction">CurveStethPoolWithdrawAction</a></dt>
88
+ <dd><p>CurveStethPoolWithdrawAction - Withdraws tokens from curve steth pool</p>
89
+ </dd>
84
90
  <dt><a href="#CurveSwapAction">CurveSwapAction</a></dt>
85
91
  <dd></dd>
86
92
  <dt><a href="#CurveWithdrawAction">CurveWithdrawAction</a></dt>
@@ -175,6 +181,9 @@
175
181
  <dt><a href="#LiquityWithdrawAction">LiquityWithdrawAction</a></dt>
176
182
  <dd><p>LiquityWithdrawAction - Withdraws collateral from the trove</p>
177
183
  </dd>
184
+ <dt><a href="#MakerClaimAction">MakerClaimAction</a></dt>
185
+ <dd><p>MakerClaimAction - Claim bonus tokens in CropJoin types</p>
186
+ </dd>
178
187
  <dt><a href="#MakerGenerateAction">MakerGenerateAction</a></dt>
179
188
  <dd><p>MakerGenerateAction - Generated Dai from a Vault</p>
180
189
  </dd>
@@ -666,6 +675,39 @@ CompoundWithdrawAction - Withdraw token from an Compound position
666
675
  - gaugeAddrs <code>Array.&lt;EthAddress&gt;</code>
667
676
  - receiver <code>EthAddress</code>
668
677
 
678
+ <a name="CurveStethPoolDepositAction"></a>
679
+
680
+ ## CurveStethPoolDepositAction
681
+ CurveStethPoolDepositAction - Deposits tokens into curve steth pool
682
+
683
+ **Kind**: global class
684
+ <a name="new_CurveStethPoolDepositAction_new"></a>
685
+
686
+ ### new CurveStethPoolDepositAction(from, to, amounts, minMintAmount)
687
+ **Params**
688
+
689
+ - from <code>address</code>
690
+ - to <code>address</code>
691
+ - amounts <code>Array.&lt;string&gt;</code>
692
+ - minMintAmount <code>string</code>
693
+
694
+ <a name="CurveStethPoolWithdrawAction"></a>
695
+
696
+ ## CurveStethPoolWithdrawAction
697
+ CurveStethPoolWithdrawAction - Withdraws tokens from curve steth pool
698
+
699
+ **Kind**: global class
700
+ <a name="new_CurveStethPoolWithdrawAction_new"></a>
701
+
702
+ ### new CurveStethPoolWithdrawAction(from, to, amounts, maxBurnAmount, returnValue)
703
+ **Params**
704
+
705
+ - from <code>address</code>
706
+ - to <code>address</code>
707
+ - amounts <code>Array.&lt;string&gt;</code>
708
+ - maxBurnAmount <code>string</code>
709
+ - returnValue <code>string</code>
710
+
669
711
  <a name="CurveSwapAction"></a>
670
712
 
671
713
  ## CurveSwapAction
@@ -1133,6 +1175,21 @@ LiquityWithdrawAction - Withdraws collateral from the trove
1133
1175
  - collAmount - Amount of WETH tokens to withdraw
1134
1176
  - to - Address that will receive the withdrawn tokens
1135
1177
 
1178
+ <a name="MakerClaimAction"></a>
1179
+
1180
+ ## MakerClaimAction
1181
+ MakerClaimAction - Claim bonus tokens in CropJoin types
1182
+
1183
+ **Kind**: global class
1184
+ <a name="new_MakerClaimAction_new"></a>
1185
+
1186
+ ### new MakerClaimAction(vaultId, joinAddr, to)
1187
+ **Params**
1188
+
1189
+ - vaultId <code>VaultId</code>
1190
+ - joinAddr <code>EthAddress</code>
1191
+ - to <code>EthAddress</code> - Tokens will be sent to this address
1192
+
1136
1193
  <a name="MakerGenerateAction"></a>
1137
1194
 
1138
1195
  ## MakerGenerateAction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,8 +9,8 @@ class CurveStethPoolDepositAction extends Action {
9
9
  /**
10
10
  * @param from {address}
11
11
  * @param to {address}
12
- * @param amounts {uint256[2]}
13
- * @param minMintAmount {uint256}
12
+ * @param amounts {string[]}
13
+ * @param minMintAmount {string}
14
14
  */
15
15
  constructor(
16
16
  from,
@@ -9,21 +9,23 @@ class CurveStethPoolWithdrawAction extends Action {
9
9
  /**
10
10
  * @param from {address}
11
11
  * @param to {address}
12
- * @param amounts {uint256[2]}
13
- * @param maxBurnAmount {uint256}
12
+ * @param amounts {string[]}
13
+ * @param maxBurnAmount {string}
14
+ * @param returnValue {string}
14
15
  */
15
16
  constructor(
16
17
  from,
17
18
  to,
18
19
  amounts,
19
20
  maxBurnAmount,
21
+ returnValue,
20
22
  ) {
21
23
  requireAddress(to);
22
24
 
23
25
  super(
24
26
  'CurveStethPoolWithdraw',
25
27
  getAddr('CurveStethPoolWithdraw'),
26
- [['address', 'address', 'uint256[2]', 'uint256']],
28
+ [['address', 'address', 'uint256[2]', 'uint256', 'uint256']],
27
29
  [[...arguments]],
28
30
  );
29
31
 
package/src/addresses.js CHANGED
@@ -125,9 +125,9 @@ const actionAddresses = {
125
125
  'MStableWithdrawNew': '0x6468215Bf4811244Ab78599e1df9206716A35aB7',
126
126
 
127
127
  'MStableClaim': '0x28279A806aDeDedFD33e39C7375dc0c0ee943847',
128
-
128
+
129
129
  'CurveStethPoolDeposit': '0x0f042a5CC97C4cd8D8136c28F966839f195D08B9',
130
- 'CurveStethPoolWithdraw': '0x2F4ad71Bd8045d0633B304BD2d94ef349eB09105',
130
+ 'CurveStethPoolWithdraw': '0x8029828e2184DA070C370dCCbAf7A55599AeBe51',
131
131
  };
132
132
 
133
133
  const otherAddresses = {