@defisaver/sdk 1.2.27-dev-2 → 1.2.28
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/esm/src/actions/liquityV2/{LiquityV2LegacyCloseAction.d.ts → LiquityV2CloseLegacyAction.d.ts} +3 -3
- package/esm/src/actions/liquityV2/{LiquityV2LegacyCloseAction.js → LiquityV2CloseLegacyAction.js} +4 -4
- package/esm/src/actions/liquityV2/{LiquityV2LegacyPaybackAction.d.ts → LiquityV2PaybackLegacyAction.d.ts} +3 -3
- package/esm/src/actions/liquityV2/{LiquityV2LegacyPaybackAction.js → LiquityV2PaybackLegacyAction.js} +4 -4
- package/esm/src/actions/liquityV2/index.d.ts +2 -2
- package/esm/src/actions/liquityV2/index.js +2 -2
- package/esm/src/addresses.d.ts +8 -8
- package/esm/src/addresses.js +11 -10
- package/esm/src/index.d.ts +32 -32
- package/package.json +2 -2
- package/src/actions/liquityV2/{LiquityV2LegacyCloseAction.ts → LiquityV2CloseLegacyAction.ts} +5 -6
- package/src/actions/liquityV2/{LiquityV2LegacyPaybackAction.ts → LiquityV2PaybackLegacyAction.ts} +5 -5
- package/src/actions/liquityV2/index.ts +3 -3
- package/src/addresses.ts +11 -10
- package/umd/index.js +135 -134
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* LiquityV2CloseLegacyAction - Closes trove on first (legacy) LiquityV2 deployment
|
|
5
5
|
*
|
|
6
6
|
* @category LiquityV2
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class LiquityV2CloseLegacyAction extends Action {
|
|
9
9
|
/**
|
|
10
10
|
* @param market liquity address registry for the market
|
|
11
|
-
* @param from address from which to take the BOLD
|
|
11
|
+
* @param from address from which to take the BOLD
|
|
12
12
|
* @param to address to which to send the collateralToken and WETH gas compensation
|
|
13
13
|
* @param troveId id of the trove to close
|
|
14
14
|
*/
|
package/esm/src/actions/liquityV2/{LiquityV2LegacyCloseAction.js → LiquityV2CloseLegacyAction.js}
RENAMED
|
@@ -11,19 +11,19 @@ import { getAssetInfo } from '@defisaver/tokens';
|
|
|
11
11
|
import { Action } from '../../Action';
|
|
12
12
|
import { getAddr } from '../../addresses';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* LiquityV2CloseLegacyAction - Closes trove on first (legacy) LiquityV2 deployment
|
|
15
15
|
*
|
|
16
16
|
* @category LiquityV2
|
|
17
17
|
*/
|
|
18
|
-
export class
|
|
18
|
+
export class LiquityV2CloseLegacyAction extends Action {
|
|
19
19
|
/**
|
|
20
20
|
* @param market liquity address registry for the market
|
|
21
|
-
* @param from address from which to take the BOLD
|
|
21
|
+
* @param from address from which to take the BOLD
|
|
22
22
|
* @param to address to which to send the collateralToken and WETH gas compensation
|
|
23
23
|
* @param troveId id of the trove to close
|
|
24
24
|
*/
|
|
25
25
|
constructor(market, from, to, troveId) {
|
|
26
|
-
super('
|
|
26
|
+
super('LiquityV2CloseLegacy', getAddr('LiquityV2CloseLegacy'), [
|
|
27
27
|
'address',
|
|
28
28
|
'address',
|
|
29
29
|
'address',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* LiquityV2PaybackLegacyAction - Pays back BOLD to a trove on first (legacy) LiquityV2 deployment
|
|
5
5
|
*
|
|
6
6
|
* @category LiquityV2
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class LiquityV2PaybackLegacyAction extends Action {
|
|
9
9
|
/**
|
|
10
10
|
* @param market liquity address registry for the market
|
|
11
|
-
* @param from address from which to take the BOLD
|
|
11
|
+
* @param from address from which to take the BOLD for payback
|
|
12
12
|
* @param troveId id of the trove to pay back to
|
|
13
13
|
* @param amount BOLD amount to pay back
|
|
14
14
|
*/
|
|
@@ -11,19 +11,19 @@ import { getAssetInfo } from '@defisaver/tokens';
|
|
|
11
11
|
import { Action } from '../../Action';
|
|
12
12
|
import { getAddr } from '../../addresses';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* LiquityV2PaybackLegacyAction - Pays back BOLD to a trove on first (legacy) LiquityV2 deployment
|
|
15
15
|
*
|
|
16
16
|
* @category LiquityV2
|
|
17
17
|
*/
|
|
18
|
-
export class
|
|
18
|
+
export class LiquityV2PaybackLegacyAction extends Action {
|
|
19
19
|
/**
|
|
20
20
|
* @param market liquity address registry for the market
|
|
21
|
-
* @param from address from which to take the BOLD
|
|
21
|
+
* @param from address from which to take the BOLD for payback
|
|
22
22
|
* @param troveId id of the trove to pay back to
|
|
23
23
|
* @param amount BOLD amount to pay back
|
|
24
24
|
*/
|
|
25
25
|
constructor(market, from, troveId, amount) {
|
|
26
|
-
super('
|
|
26
|
+
super('LiquityV2PaybackLegacy', getAddr('LiquityV2PaybackLegacy'), [
|
|
27
27
|
'address',
|
|
28
28
|
'address',
|
|
29
29
|
'uint256',
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export * from './LiquityV2OpenAction';
|
|
2
2
|
export * from './LiquityV2CloseAction';
|
|
3
|
-
export * from './LiquityV2LegacyCloseAction';
|
|
4
3
|
export * from './LiquityV2BorrowAction';
|
|
5
4
|
export * from './LiquityV2PaybackAction';
|
|
6
|
-
export * from './LiquityV2LegacyPaybackAction';
|
|
7
5
|
export * from './LiquityV2SupplyAction';
|
|
8
6
|
export * from './LiquityV2WithdrawAction';
|
|
9
7
|
export * from './LiquityV2SPDepositAction';
|
|
@@ -13,3 +11,5 @@ export * from './LiquityV2AdjustAction';
|
|
|
13
11
|
export * from './LiquityV2ClaimAction';
|
|
14
12
|
export * from './LiquityV2AdjustInterestRateAction';
|
|
15
13
|
export * from './LiquityV2AdjustZombieTroveAction';
|
|
14
|
+
export * from './LiquityV2CloseLegacyAction';
|
|
15
|
+
export * from './LiquityV2PaybackLegacyAction';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export * from './LiquityV2OpenAction';
|
|
2
2
|
export * from './LiquityV2CloseAction';
|
|
3
|
-
export * from './LiquityV2LegacyCloseAction';
|
|
4
3
|
export * from './LiquityV2BorrowAction';
|
|
5
4
|
export * from './LiquityV2PaybackAction';
|
|
6
|
-
export * from './LiquityV2LegacyPaybackAction';
|
|
7
5
|
export * from './LiquityV2SupplyAction';
|
|
8
6
|
export * from './LiquityV2WithdrawAction';
|
|
9
7
|
export * from './LiquityV2SPDepositAction';
|
|
@@ -13,3 +11,5 @@ export * from './LiquityV2AdjustAction';
|
|
|
13
11
|
export * from './LiquityV2ClaimAction';
|
|
14
12
|
export * from './LiquityV2AdjustInterestRateAction';
|
|
15
13
|
export * from './LiquityV2AdjustZombieTroveAction';
|
|
14
|
+
export * from './LiquityV2CloseLegacyAction';
|
|
15
|
+
export * from './LiquityV2PaybackLegacyAction';
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -138,14 +138,14 @@ export declare const actionAddresses: {
|
|
|
138
138
|
LiquityClaim: string;
|
|
139
139
|
LiquityRedeem: string;
|
|
140
140
|
LiquityAdjust: string;
|
|
141
|
+
LiquityV2CloseLegacy: string;
|
|
142
|
+
LiquityV2PaybackLegacy: string;
|
|
141
143
|
LiquityV2Open: string;
|
|
142
144
|
LiquityV2Close: string;
|
|
143
|
-
LiquityV2LegacyClose: string;
|
|
144
145
|
LiquityV2Supply: string;
|
|
145
146
|
LiquityV2Withdraw: string;
|
|
146
147
|
LiquityV2Borrow: string;
|
|
147
148
|
LiquityV2Payback: string;
|
|
148
|
-
LiquityV2LegacyPayback: string;
|
|
149
149
|
LiquityV2Claim: string;
|
|
150
150
|
LiquityV2Adjust: string;
|
|
151
151
|
LiquityV2AdjustInterestRate: string;
|
|
@@ -413,14 +413,14 @@ export declare const actionAddresses: {
|
|
|
413
413
|
LiquityClaim?: undefined;
|
|
414
414
|
LiquityRedeem?: undefined;
|
|
415
415
|
LiquityAdjust?: undefined;
|
|
416
|
+
LiquityV2CloseLegacy?: undefined;
|
|
417
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
416
418
|
LiquityV2Open?: undefined;
|
|
417
419
|
LiquityV2Close?: undefined;
|
|
418
|
-
LiquityV2LegacyClose?: undefined;
|
|
419
420
|
LiquityV2Supply?: undefined;
|
|
420
421
|
LiquityV2Withdraw?: undefined;
|
|
421
422
|
LiquityV2Borrow?: undefined;
|
|
422
423
|
LiquityV2Payback?: undefined;
|
|
423
|
-
LiquityV2LegacyPayback?: undefined;
|
|
424
424
|
LiquityV2Claim?: undefined;
|
|
425
425
|
LiquityV2Adjust?: undefined;
|
|
426
426
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -692,14 +692,14 @@ export declare const actionAddresses: {
|
|
|
692
692
|
LiquityClaim?: undefined;
|
|
693
693
|
LiquityRedeem?: undefined;
|
|
694
694
|
LiquityAdjust?: undefined;
|
|
695
|
+
LiquityV2CloseLegacy?: undefined;
|
|
696
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
695
697
|
LiquityV2Open?: undefined;
|
|
696
698
|
LiquityV2Close?: undefined;
|
|
697
|
-
LiquityV2LegacyClose?: undefined;
|
|
698
699
|
LiquityV2Supply?: undefined;
|
|
699
700
|
LiquityV2Withdraw?: undefined;
|
|
700
701
|
LiquityV2Borrow?: undefined;
|
|
701
702
|
LiquityV2Payback?: undefined;
|
|
702
|
-
LiquityV2LegacyPayback?: undefined;
|
|
703
703
|
LiquityV2Claim?: undefined;
|
|
704
704
|
LiquityV2Adjust?: undefined;
|
|
705
705
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -954,14 +954,14 @@ export declare const actionAddresses: {
|
|
|
954
954
|
LiquityClaim?: undefined;
|
|
955
955
|
LiquityRedeem?: undefined;
|
|
956
956
|
LiquityAdjust?: undefined;
|
|
957
|
+
LiquityV2CloseLegacy?: undefined;
|
|
958
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
957
959
|
LiquityV2Open?: undefined;
|
|
958
960
|
LiquityV2Close?: undefined;
|
|
959
|
-
LiquityV2LegacyClose?: undefined;
|
|
960
961
|
LiquityV2Supply?: undefined;
|
|
961
962
|
LiquityV2Withdraw?: undefined;
|
|
962
963
|
LiquityV2Borrow?: undefined;
|
|
963
964
|
LiquityV2Payback?: undefined;
|
|
964
|
-
LiquityV2LegacyPayback?: undefined;
|
|
965
965
|
LiquityV2Claim?: undefined;
|
|
966
966
|
LiquityV2Adjust?: undefined;
|
|
967
967
|
LiquityV2AdjustInterestRate?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -157,22 +157,23 @@ export const actionAddresses = {
|
|
|
157
157
|
LiquityClaim: '0x526735aDcBe5c9059275c5ED2E0574b4a24b875e',
|
|
158
158
|
LiquityRedeem: '0x20B78854658011394C931EF2BF3cEEA2Fe62E7f0',
|
|
159
159
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
160
|
+
// liquity v2 legacy
|
|
161
|
+
LiquityV2CloseLegacy: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
162
|
+
LiquityV2PaybackLegacy: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
160
163
|
// liquity v2
|
|
161
|
-
LiquityV2Open: '
|
|
162
|
-
LiquityV2Close: '
|
|
163
|
-
LiquityV2LegacyClose: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
164
|
+
LiquityV2Open: '0x32491148a6DE3c4D7F8E025721146960373eC5C9',
|
|
165
|
+
LiquityV2Close: '0x4854d11A534224D7bc43455a7084687450020e03',
|
|
164
166
|
LiquityV2Supply: '0x89403Bc80FDb1adbcf4Ea7b6acFB26197E47F2AA',
|
|
165
167
|
LiquityV2Withdraw: '0xDcBd59b7095edC5fd29063873Ec5d62F8BB18E9A',
|
|
166
|
-
LiquityV2Borrow: '
|
|
167
|
-
LiquityV2Payback: '
|
|
168
|
-
LiquityV2LegacyPayback: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
168
|
+
LiquityV2Borrow: '0x9198D8bCe49c3E2819653ce350C82Cd009D3E49E',
|
|
169
|
+
LiquityV2Payback: '0x902cebdbF9ed3EC434C2246CDace1c825F0d5110',
|
|
169
170
|
LiquityV2Claim: '0x1b5a0c2573A1692bB183cC5d6f506e108c0599FC',
|
|
170
|
-
LiquityV2Adjust: '
|
|
171
|
+
LiquityV2Adjust: '0x3BbC88f3b75cB898395C9b5AE8D9c2a26744993b',
|
|
171
172
|
LiquityV2AdjustInterestRate: '0x685f0237D8b85B2018278E975a481b0650dE0b54',
|
|
172
|
-
LiquityV2SPDeposit: '
|
|
173
|
-
LiquityV2SPWithdraw: '
|
|
173
|
+
LiquityV2SPDeposit: '0x73FF552646A7D93764Ff8D1F9e7662c422E715ef',
|
|
174
|
+
LiquityV2SPWithdraw: '0x8E8a4213745Ed68b3fce9d1500f563d885D02FDf',
|
|
174
175
|
LiquityV2SPClaimColl: '0x3f783de20C3095bcB999AEA999aF4DF184b6630f',
|
|
175
|
-
LiquityV2AdjustZombieTrove: '
|
|
176
|
+
LiquityV2AdjustZombieTrove: '0x45F5CEe8f89AdBCe4f5B20f38a49402b152ba99e',
|
|
176
177
|
// b.protocol
|
|
177
178
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
|
178
179
|
BprotocolLiquitySPWithdraw: '0x20Ece7CB4463bB1DbA4C4fA800E321A05dfB028B',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -149,14 +149,14 @@ declare const actionAddressesAllChains: {
|
|
|
149
149
|
LiquityClaim: string;
|
|
150
150
|
LiquityRedeem: string;
|
|
151
151
|
LiquityAdjust: string;
|
|
152
|
+
LiquityV2CloseLegacy: string;
|
|
153
|
+
LiquityV2PaybackLegacy: string;
|
|
152
154
|
LiquityV2Open: string;
|
|
153
155
|
LiquityV2Close: string;
|
|
154
|
-
LiquityV2LegacyClose: string;
|
|
155
156
|
LiquityV2Supply: string;
|
|
156
157
|
LiquityV2Withdraw: string;
|
|
157
158
|
LiquityV2Borrow: string;
|
|
158
159
|
LiquityV2Payback: string;
|
|
159
|
-
LiquityV2LegacyPayback: string;
|
|
160
160
|
LiquityV2Claim: string;
|
|
161
161
|
LiquityV2Adjust: string;
|
|
162
162
|
LiquityV2AdjustInterestRate: string;
|
|
@@ -424,14 +424,14 @@ declare const actionAddressesAllChains: {
|
|
|
424
424
|
LiquityClaim?: undefined;
|
|
425
425
|
LiquityRedeem?: undefined;
|
|
426
426
|
LiquityAdjust?: undefined;
|
|
427
|
+
LiquityV2CloseLegacy?: undefined;
|
|
428
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
427
429
|
LiquityV2Open?: undefined;
|
|
428
430
|
LiquityV2Close?: undefined;
|
|
429
|
-
LiquityV2LegacyClose?: undefined;
|
|
430
431
|
LiquityV2Supply?: undefined;
|
|
431
432
|
LiquityV2Withdraw?: undefined;
|
|
432
433
|
LiquityV2Borrow?: undefined;
|
|
433
434
|
LiquityV2Payback?: undefined;
|
|
434
|
-
LiquityV2LegacyPayback?: undefined;
|
|
435
435
|
LiquityV2Claim?: undefined;
|
|
436
436
|
LiquityV2Adjust?: undefined;
|
|
437
437
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -703,14 +703,14 @@ declare const actionAddressesAllChains: {
|
|
|
703
703
|
LiquityClaim?: undefined;
|
|
704
704
|
LiquityRedeem?: undefined;
|
|
705
705
|
LiquityAdjust?: undefined;
|
|
706
|
+
LiquityV2CloseLegacy?: undefined;
|
|
707
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
706
708
|
LiquityV2Open?: undefined;
|
|
707
709
|
LiquityV2Close?: undefined;
|
|
708
|
-
LiquityV2LegacyClose?: undefined;
|
|
709
710
|
LiquityV2Supply?: undefined;
|
|
710
711
|
LiquityV2Withdraw?: undefined;
|
|
711
712
|
LiquityV2Borrow?: undefined;
|
|
712
713
|
LiquityV2Payback?: undefined;
|
|
713
|
-
LiquityV2LegacyPayback?: undefined;
|
|
714
714
|
LiquityV2Claim?: undefined;
|
|
715
715
|
LiquityV2Adjust?: undefined;
|
|
716
716
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -965,14 +965,14 @@ declare const actionAddressesAllChains: {
|
|
|
965
965
|
LiquityClaim?: undefined;
|
|
966
966
|
LiquityRedeem?: undefined;
|
|
967
967
|
LiquityAdjust?: undefined;
|
|
968
|
+
LiquityV2CloseLegacy?: undefined;
|
|
969
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
968
970
|
LiquityV2Open?: undefined;
|
|
969
971
|
LiquityV2Close?: undefined;
|
|
970
|
-
LiquityV2LegacyClose?: undefined;
|
|
971
972
|
LiquityV2Supply?: undefined;
|
|
972
973
|
LiquityV2Withdraw?: undefined;
|
|
973
974
|
LiquityV2Borrow?: undefined;
|
|
974
975
|
LiquityV2Payback?: undefined;
|
|
975
|
-
LiquityV2LegacyPayback?: undefined;
|
|
976
976
|
LiquityV2Claim?: undefined;
|
|
977
977
|
LiquityV2Adjust?: undefined;
|
|
978
978
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -1203,14 +1203,14 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1203
1203
|
LiquityClaim: string;
|
|
1204
1204
|
LiquityRedeem: string;
|
|
1205
1205
|
LiquityAdjust: string;
|
|
1206
|
+
LiquityV2CloseLegacy: string;
|
|
1207
|
+
LiquityV2PaybackLegacy: string;
|
|
1206
1208
|
LiquityV2Open: string;
|
|
1207
1209
|
LiquityV2Close: string;
|
|
1208
|
-
LiquityV2LegacyClose: string;
|
|
1209
1210
|
LiquityV2Supply: string;
|
|
1210
1211
|
LiquityV2Withdraw: string;
|
|
1211
1212
|
LiquityV2Borrow: string;
|
|
1212
1213
|
LiquityV2Payback: string;
|
|
1213
|
-
LiquityV2LegacyPayback: string;
|
|
1214
1214
|
LiquityV2Claim: string;
|
|
1215
1215
|
LiquityV2Adjust: string;
|
|
1216
1216
|
LiquityV2AdjustInterestRate: string;
|
|
@@ -1478,14 +1478,14 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1478
1478
|
LiquityClaim?: undefined;
|
|
1479
1479
|
LiquityRedeem?: undefined;
|
|
1480
1480
|
LiquityAdjust?: undefined;
|
|
1481
|
+
LiquityV2CloseLegacy?: undefined;
|
|
1482
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
1481
1483
|
LiquityV2Open?: undefined;
|
|
1482
1484
|
LiquityV2Close?: undefined;
|
|
1483
|
-
LiquityV2LegacyClose?: undefined;
|
|
1484
1485
|
LiquityV2Supply?: undefined;
|
|
1485
1486
|
LiquityV2Withdraw?: undefined;
|
|
1486
1487
|
LiquityV2Borrow?: undefined;
|
|
1487
1488
|
LiquityV2Payback?: undefined;
|
|
1488
|
-
LiquityV2LegacyPayback?: undefined;
|
|
1489
1489
|
LiquityV2Claim?: undefined;
|
|
1490
1490
|
LiquityV2Adjust?: undefined;
|
|
1491
1491
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -1757,14 +1757,14 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1757
1757
|
LiquityClaim?: undefined;
|
|
1758
1758
|
LiquityRedeem?: undefined;
|
|
1759
1759
|
LiquityAdjust?: undefined;
|
|
1760
|
+
LiquityV2CloseLegacy?: undefined;
|
|
1761
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
1760
1762
|
LiquityV2Open?: undefined;
|
|
1761
1763
|
LiquityV2Close?: undefined;
|
|
1762
|
-
LiquityV2LegacyClose?: undefined;
|
|
1763
1764
|
LiquityV2Supply?: undefined;
|
|
1764
1765
|
LiquityV2Withdraw?: undefined;
|
|
1765
1766
|
LiquityV2Borrow?: undefined;
|
|
1766
1767
|
LiquityV2Payback?: undefined;
|
|
1767
|
-
LiquityV2LegacyPayback?: undefined;
|
|
1768
1768
|
LiquityV2Claim?: undefined;
|
|
1769
1769
|
LiquityV2Adjust?: undefined;
|
|
1770
1770
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -2019,14 +2019,14 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2019
2019
|
LiquityClaim?: undefined;
|
|
2020
2020
|
LiquityRedeem?: undefined;
|
|
2021
2021
|
LiquityAdjust?: undefined;
|
|
2022
|
+
LiquityV2CloseLegacy?: undefined;
|
|
2023
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
2022
2024
|
LiquityV2Open?: undefined;
|
|
2023
2025
|
LiquityV2Close?: undefined;
|
|
2024
|
-
LiquityV2LegacyClose?: undefined;
|
|
2025
2026
|
LiquityV2Supply?: undefined;
|
|
2026
2027
|
LiquityV2Withdraw?: undefined;
|
|
2027
2028
|
LiquityV2Borrow?: undefined;
|
|
2028
2029
|
LiquityV2Payback?: undefined;
|
|
2029
|
-
LiquityV2LegacyPayback?: undefined;
|
|
2030
2030
|
LiquityV2Claim?: undefined;
|
|
2031
2031
|
LiquityV2Adjust?: undefined;
|
|
2032
2032
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -2400,14 +2400,14 @@ declare const _default: {
|
|
|
2400
2400
|
LiquityClaim: string;
|
|
2401
2401
|
LiquityRedeem: string;
|
|
2402
2402
|
LiquityAdjust: string;
|
|
2403
|
+
LiquityV2CloseLegacy: string;
|
|
2404
|
+
LiquityV2PaybackLegacy: string;
|
|
2403
2405
|
LiquityV2Open: string;
|
|
2404
2406
|
LiquityV2Close: string;
|
|
2405
|
-
LiquityV2LegacyClose: string;
|
|
2406
2407
|
LiquityV2Supply: string;
|
|
2407
2408
|
LiquityV2Withdraw: string;
|
|
2408
2409
|
LiquityV2Borrow: string;
|
|
2409
2410
|
LiquityV2Payback: string;
|
|
2410
|
-
LiquityV2LegacyPayback: string;
|
|
2411
2411
|
LiquityV2Claim: string;
|
|
2412
2412
|
LiquityV2Adjust: string;
|
|
2413
2413
|
LiquityV2AdjustInterestRate: string;
|
|
@@ -2675,14 +2675,14 @@ declare const _default: {
|
|
|
2675
2675
|
LiquityClaim?: undefined;
|
|
2676
2676
|
LiquityRedeem?: undefined;
|
|
2677
2677
|
LiquityAdjust?: undefined;
|
|
2678
|
+
LiquityV2CloseLegacy?: undefined;
|
|
2679
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
2678
2680
|
LiquityV2Open?: undefined;
|
|
2679
2681
|
LiquityV2Close?: undefined;
|
|
2680
|
-
LiquityV2LegacyClose?: undefined;
|
|
2681
2682
|
LiquityV2Supply?: undefined;
|
|
2682
2683
|
LiquityV2Withdraw?: undefined;
|
|
2683
2684
|
LiquityV2Borrow?: undefined;
|
|
2684
2685
|
LiquityV2Payback?: undefined;
|
|
2685
|
-
LiquityV2LegacyPayback?: undefined;
|
|
2686
2686
|
LiquityV2Claim?: undefined;
|
|
2687
2687
|
LiquityV2Adjust?: undefined;
|
|
2688
2688
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -2954,14 +2954,14 @@ declare const _default: {
|
|
|
2954
2954
|
LiquityClaim?: undefined;
|
|
2955
2955
|
LiquityRedeem?: undefined;
|
|
2956
2956
|
LiquityAdjust?: undefined;
|
|
2957
|
+
LiquityV2CloseLegacy?: undefined;
|
|
2958
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
2957
2959
|
LiquityV2Open?: undefined;
|
|
2958
2960
|
LiquityV2Close?: undefined;
|
|
2959
|
-
LiquityV2LegacyClose?: undefined;
|
|
2960
2961
|
LiquityV2Supply?: undefined;
|
|
2961
2962
|
LiquityV2Withdraw?: undefined;
|
|
2962
2963
|
LiquityV2Borrow?: undefined;
|
|
2963
2964
|
LiquityV2Payback?: undefined;
|
|
2964
|
-
LiquityV2LegacyPayback?: undefined;
|
|
2965
2965
|
LiquityV2Claim?: undefined;
|
|
2966
2966
|
LiquityV2Adjust?: undefined;
|
|
2967
2967
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -3216,14 +3216,14 @@ declare const _default: {
|
|
|
3216
3216
|
LiquityClaim?: undefined;
|
|
3217
3217
|
LiquityRedeem?: undefined;
|
|
3218
3218
|
LiquityAdjust?: undefined;
|
|
3219
|
+
LiquityV2CloseLegacy?: undefined;
|
|
3220
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
3219
3221
|
LiquityV2Open?: undefined;
|
|
3220
3222
|
LiquityV2Close?: undefined;
|
|
3221
|
-
LiquityV2LegacyClose?: undefined;
|
|
3222
3223
|
LiquityV2Supply?: undefined;
|
|
3223
3224
|
LiquityV2Withdraw?: undefined;
|
|
3224
3225
|
LiquityV2Borrow?: undefined;
|
|
3225
3226
|
LiquityV2Payback?: undefined;
|
|
3226
|
-
LiquityV2LegacyPayback?: undefined;
|
|
3227
3227
|
LiquityV2Claim?: undefined;
|
|
3228
3228
|
LiquityV2Adjust?: undefined;
|
|
3229
3229
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -3454,14 +3454,14 @@ declare const _default: {
|
|
|
3454
3454
|
LiquityClaim: string;
|
|
3455
3455
|
LiquityRedeem: string;
|
|
3456
3456
|
LiquityAdjust: string;
|
|
3457
|
+
LiquityV2CloseLegacy: string;
|
|
3458
|
+
LiquityV2PaybackLegacy: string;
|
|
3457
3459
|
LiquityV2Open: string;
|
|
3458
3460
|
LiquityV2Close: string;
|
|
3459
|
-
LiquityV2LegacyClose: string;
|
|
3460
3461
|
LiquityV2Supply: string;
|
|
3461
3462
|
LiquityV2Withdraw: string;
|
|
3462
3463
|
LiquityV2Borrow: string;
|
|
3463
3464
|
LiquityV2Payback: string;
|
|
3464
|
-
LiquityV2LegacyPayback: string;
|
|
3465
3465
|
LiquityV2Claim: string;
|
|
3466
3466
|
LiquityV2Adjust: string;
|
|
3467
3467
|
LiquityV2AdjustInterestRate: string;
|
|
@@ -3729,14 +3729,14 @@ declare const _default: {
|
|
|
3729
3729
|
LiquityClaim?: undefined;
|
|
3730
3730
|
LiquityRedeem?: undefined;
|
|
3731
3731
|
LiquityAdjust?: undefined;
|
|
3732
|
+
LiquityV2CloseLegacy?: undefined;
|
|
3733
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
3732
3734
|
LiquityV2Open?: undefined;
|
|
3733
3735
|
LiquityV2Close?: undefined;
|
|
3734
|
-
LiquityV2LegacyClose?: undefined;
|
|
3735
3736
|
LiquityV2Supply?: undefined;
|
|
3736
3737
|
LiquityV2Withdraw?: undefined;
|
|
3737
3738
|
LiquityV2Borrow?: undefined;
|
|
3738
3739
|
LiquityV2Payback?: undefined;
|
|
3739
|
-
LiquityV2LegacyPayback?: undefined;
|
|
3740
3740
|
LiquityV2Claim?: undefined;
|
|
3741
3741
|
LiquityV2Adjust?: undefined;
|
|
3742
3742
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -4008,14 +4008,14 @@ declare const _default: {
|
|
|
4008
4008
|
LiquityClaim?: undefined;
|
|
4009
4009
|
LiquityRedeem?: undefined;
|
|
4010
4010
|
LiquityAdjust?: undefined;
|
|
4011
|
+
LiquityV2CloseLegacy?: undefined;
|
|
4012
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
4011
4013
|
LiquityV2Open?: undefined;
|
|
4012
4014
|
LiquityV2Close?: undefined;
|
|
4013
|
-
LiquityV2LegacyClose?: undefined;
|
|
4014
4015
|
LiquityV2Supply?: undefined;
|
|
4015
4016
|
LiquityV2Withdraw?: undefined;
|
|
4016
4017
|
LiquityV2Borrow?: undefined;
|
|
4017
4018
|
LiquityV2Payback?: undefined;
|
|
4018
|
-
LiquityV2LegacyPayback?: undefined;
|
|
4019
4019
|
LiquityV2Claim?: undefined;
|
|
4020
4020
|
LiquityV2Adjust?: undefined;
|
|
4021
4021
|
LiquityV2AdjustInterestRate?: undefined;
|
|
@@ -4270,14 +4270,14 @@ declare const _default: {
|
|
|
4270
4270
|
LiquityClaim?: undefined;
|
|
4271
4271
|
LiquityRedeem?: undefined;
|
|
4272
4272
|
LiquityAdjust?: undefined;
|
|
4273
|
+
LiquityV2CloseLegacy?: undefined;
|
|
4274
|
+
LiquityV2PaybackLegacy?: undefined;
|
|
4273
4275
|
LiquityV2Open?: undefined;
|
|
4274
4276
|
LiquityV2Close?: undefined;
|
|
4275
|
-
LiquityV2LegacyClose?: undefined;
|
|
4276
4277
|
LiquityV2Supply?: undefined;
|
|
4277
4278
|
LiquityV2Withdraw?: undefined;
|
|
4278
4279
|
LiquityV2Borrow?: undefined;
|
|
4279
4280
|
LiquityV2Payback?: undefined;
|
|
4280
|
-
LiquityV2LegacyPayback?: undefined;
|
|
4281
4281
|
LiquityV2Claim?: undefined;
|
|
4282
4282
|
LiquityV2Adjust?: undefined;
|
|
4283
4283
|
LiquityV2AdjustInterestRate?: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./umd/index.js",
|
|
6
6
|
"module": "./esm/src/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@defisaver/eslint-config": "^1.0.0",
|
|
26
|
-
"@defisaver/tokens": "^1.6.
|
|
26
|
+
"@defisaver/tokens": "^1.6.5",
|
|
27
27
|
"@ethersproject/address": "^5.0.10",
|
|
28
28
|
"@ethersproject/solidity": "^5.0.9",
|
|
29
29
|
"@types/web3-eth-abi": "^1.2.2",
|
package/src/actions/liquityV2/{LiquityV2LegacyCloseAction.ts → LiquityV2CloseLegacyAction.ts}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { getAssetInfo } from '@defisaver/tokens';
|
|
2
2
|
import { Action } from '../../Action';
|
|
3
|
-
import { requireAddress } from '../../utils/general';
|
|
4
3
|
import { getAddr } from '../../addresses';
|
|
5
4
|
import { EthAddress } from '../../types';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* LiquityV2CloseLegacyAction - Closes trove on first (legacy) LiquityV2 deployment
|
|
9
8
|
*
|
|
10
9
|
* @category LiquityV2
|
|
11
10
|
*/
|
|
12
|
-
export class
|
|
11
|
+
export class LiquityV2CloseLegacyAction extends Action {
|
|
13
12
|
/**
|
|
14
13
|
* @param market liquity address registry for the market
|
|
15
|
-
* @param from address from which to take the BOLD
|
|
14
|
+
* @param from address from which to take the BOLD
|
|
16
15
|
* @param to address to which to send the collateralToken and WETH gas compensation
|
|
17
16
|
* @param troveId id of the trove to close
|
|
18
17
|
*/
|
|
@@ -23,8 +22,8 @@ export class LiquityV2LegacyCloseAction extends Action {
|
|
|
23
22
|
troveId: string,
|
|
24
23
|
) {
|
|
25
24
|
super(
|
|
26
|
-
'
|
|
27
|
-
getAddr('
|
|
25
|
+
'LiquityV2CloseLegacy',
|
|
26
|
+
getAddr('LiquityV2CloseLegacy'),
|
|
28
27
|
[
|
|
29
28
|
'address',
|
|
30
29
|
'address',
|
package/src/actions/liquityV2/{LiquityV2LegacyPaybackAction.ts → LiquityV2PaybackLegacyAction.ts}
RENAMED
|
@@ -4,14 +4,14 @@ import { getAddr } from '../../addresses';
|
|
|
4
4
|
import { EthAddress, uint256 } from '../../types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* LiquityV2PaybackLegacyAction - Pays back BOLD to a trove on first (legacy) LiquityV2 deployment
|
|
8
8
|
*
|
|
9
9
|
* @category LiquityV2
|
|
10
10
|
*/
|
|
11
|
-
export class
|
|
11
|
+
export class LiquityV2PaybackLegacyAction extends Action {
|
|
12
12
|
/**
|
|
13
13
|
* @param market liquity address registry for the market
|
|
14
|
-
* @param from address from which to take the BOLD
|
|
14
|
+
* @param from address from which to take the BOLD for payback
|
|
15
15
|
* @param troveId id of the trove to pay back to
|
|
16
16
|
* @param amount BOLD amount to pay back
|
|
17
17
|
*/
|
|
@@ -22,8 +22,8 @@ export class LiquityV2LegacyPaybackAction extends Action {
|
|
|
22
22
|
amount: uint256,
|
|
23
23
|
) {
|
|
24
24
|
super(
|
|
25
|
-
'
|
|
26
|
-
getAddr('
|
|
25
|
+
'LiquityV2PaybackLegacy',
|
|
26
|
+
getAddr('LiquityV2PaybackLegacy'),
|
|
27
27
|
[
|
|
28
28
|
'address',
|
|
29
29
|
'address',
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export * from './LiquityV2OpenAction';
|
|
2
2
|
export * from './LiquityV2CloseAction';
|
|
3
|
-
export * from './LiquityV2LegacyCloseAction';
|
|
4
3
|
export * from './LiquityV2BorrowAction';
|
|
5
4
|
export * from './LiquityV2PaybackAction';
|
|
6
|
-
export * from './LiquityV2LegacyPaybackAction';
|
|
7
5
|
export * from './LiquityV2SupplyAction';
|
|
8
6
|
export * from './LiquityV2WithdrawAction';
|
|
9
7
|
export * from './LiquityV2SPDepositAction';
|
|
@@ -12,4 +10,6 @@ export * from './LiquityV2SPClaimCollAction';
|
|
|
12
10
|
export * from './LiquityV2AdjustAction';
|
|
13
11
|
export * from './LiquityV2ClaimAction';
|
|
14
12
|
export * from './LiquityV2AdjustInterestRateAction';
|
|
15
|
-
export * from './LiquityV2AdjustZombieTroveAction';
|
|
13
|
+
export * from './LiquityV2AdjustZombieTroveAction';
|
|
14
|
+
export * from './LiquityV2CloseLegacyAction';
|
|
15
|
+
export * from './LiquityV2PaybackLegacyAction';
|
package/src/addresses.ts
CHANGED
|
@@ -176,22 +176,23 @@ export const actionAddresses = {
|
|
|
176
176
|
LiquityRedeem: '0x20B78854658011394C931EF2BF3cEEA2Fe62E7f0',
|
|
177
177
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
178
178
|
|
|
179
|
+
// liquity v2 legacy
|
|
180
|
+
LiquityV2CloseLegacy: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
181
|
+
LiquityV2PaybackLegacy: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
179
182
|
// liquity v2
|
|
180
|
-
LiquityV2Open: '
|
|
181
|
-
LiquityV2Close: '
|
|
182
|
-
LiquityV2LegacyClose: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
183
|
+
LiquityV2Open: '0x32491148a6DE3c4D7F8E025721146960373eC5C9',
|
|
184
|
+
LiquityV2Close: '0x4854d11A534224D7bc43455a7084687450020e03',
|
|
183
185
|
LiquityV2Supply: '0x89403Bc80FDb1adbcf4Ea7b6acFB26197E47F2AA',
|
|
184
186
|
LiquityV2Withdraw: '0xDcBd59b7095edC5fd29063873Ec5d62F8BB18E9A',
|
|
185
|
-
LiquityV2Borrow: '
|
|
186
|
-
LiquityV2Payback: '
|
|
187
|
-
LiquityV2LegacyPayback: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
187
|
+
LiquityV2Borrow: '0x9198D8bCe49c3E2819653ce350C82Cd009D3E49E',
|
|
188
|
+
LiquityV2Payback: '0x902cebdbF9ed3EC434C2246CDace1c825F0d5110',
|
|
188
189
|
LiquityV2Claim: '0x1b5a0c2573A1692bB183cC5d6f506e108c0599FC',
|
|
189
|
-
LiquityV2Adjust: '
|
|
190
|
+
LiquityV2Adjust: '0x3BbC88f3b75cB898395C9b5AE8D9c2a26744993b',
|
|
190
191
|
LiquityV2AdjustInterestRate: '0x685f0237D8b85B2018278E975a481b0650dE0b54',
|
|
191
|
-
LiquityV2SPDeposit: '
|
|
192
|
-
LiquityV2SPWithdraw: '
|
|
192
|
+
LiquityV2SPDeposit: '0x73FF552646A7D93764Ff8D1F9e7662c422E715ef',
|
|
193
|
+
LiquityV2SPWithdraw: '0x8E8a4213745Ed68b3fce9d1500f563d885D02FDf',
|
|
193
194
|
LiquityV2SPClaimColl: '0x3f783de20C3095bcB999AEA999aF4DF184b6630f',
|
|
194
|
-
LiquityV2AdjustZombieTrove: '
|
|
195
|
+
LiquityV2AdjustZombieTrove: '0x45F5CEe8f89AdBCe4f5B20f38a49402b152ba99e',
|
|
195
196
|
|
|
196
197
|
// b.protocol
|
|
197
198
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
package/umd/index.js
CHANGED
|
@@ -1446,22 +1446,23 @@ var actionAddresses = {
|
|
|
1446
1446
|
LiquityClaim: '0x526735aDcBe5c9059275c5ED2E0574b4a24b875e',
|
|
1447
1447
|
LiquityRedeem: '0x20B78854658011394C931EF2BF3cEEA2Fe62E7f0',
|
|
1448
1448
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
1449
|
+
// liquity v2 legacy
|
|
1450
|
+
LiquityV2CloseLegacy: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
1451
|
+
LiquityV2PaybackLegacy: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
1449
1452
|
// liquity v2
|
|
1450
|
-
LiquityV2Open: '
|
|
1451
|
-
LiquityV2Close: '
|
|
1452
|
-
LiquityV2LegacyClose: '0xBD97F8fCfdb03ca29F0C9baCA7Cb09c5A51E4adE',
|
|
1453
|
+
LiquityV2Open: '0x32491148a6DE3c4D7F8E025721146960373eC5C9',
|
|
1454
|
+
LiquityV2Close: '0x4854d11A534224D7bc43455a7084687450020e03',
|
|
1453
1455
|
LiquityV2Supply: '0x89403Bc80FDb1adbcf4Ea7b6acFB26197E47F2AA',
|
|
1454
1456
|
LiquityV2Withdraw: '0xDcBd59b7095edC5fd29063873Ec5d62F8BB18E9A',
|
|
1455
|
-
LiquityV2Borrow: '
|
|
1456
|
-
LiquityV2Payback: '
|
|
1457
|
-
LiquityV2LegacyPayback: '0x2B51c21a1af1316Af89f0493b2FF5C5D34D4626f',
|
|
1457
|
+
LiquityV2Borrow: '0x9198D8bCe49c3E2819653ce350C82Cd009D3E49E',
|
|
1458
|
+
LiquityV2Payback: '0x902cebdbF9ed3EC434C2246CDace1c825F0d5110',
|
|
1458
1459
|
LiquityV2Claim: '0x1b5a0c2573A1692bB183cC5d6f506e108c0599FC',
|
|
1459
|
-
LiquityV2Adjust: '
|
|
1460
|
+
LiquityV2Adjust: '0x3BbC88f3b75cB898395C9b5AE8D9c2a26744993b',
|
|
1460
1461
|
LiquityV2AdjustInterestRate: '0x685f0237D8b85B2018278E975a481b0650dE0b54',
|
|
1461
|
-
LiquityV2SPDeposit: '
|
|
1462
|
-
LiquityV2SPWithdraw: '
|
|
1462
|
+
LiquityV2SPDeposit: '0x73FF552646A7D93764Ff8D1F9e7662c422E715ef',
|
|
1463
|
+
LiquityV2SPWithdraw: '0x8E8a4213745Ed68b3fce9d1500f563d885D02FDf',
|
|
1463
1464
|
LiquityV2SPClaimColl: '0x3f783de20C3095bcB999AEA999aF4DF184b6630f',
|
|
1464
|
-
LiquityV2AdjustZombieTrove: '
|
|
1465
|
+
LiquityV2AdjustZombieTrove: '0x45F5CEe8f89AdBCe4f5B20f38a49402b152ba99e',
|
|
1465
1466
|
// b.protocol
|
|
1466
1467
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
|
1467
1468
|
BprotocolLiquitySPWithdraw: '0x20Ece7CB4463bB1DbA4C4fA800E321A05dfB028B',
|
|
@@ -14066,37 +14067,37 @@ class SkyUnstakeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
14066
14067
|
|
|
14067
14068
|
__webpack_require__.r(__webpack_exports__);
|
|
14068
14069
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14069
|
-
/* harmony export */ LiquityV2AdjustAction: () => (/* reexport safe */
|
|
14070
|
-
/* harmony export */ LiquityV2AdjustInterestRateAction: () => (/* reexport safe */
|
|
14071
|
-
/* harmony export */ LiquityV2AdjustZombieTroveAction: () => (/* reexport safe */
|
|
14072
|
-
/* harmony export */ LiquityV2BorrowAction: () => (/* reexport safe */
|
|
14073
|
-
/* harmony export */ LiquityV2ClaimAction: () => (/* reexport safe */
|
|
14070
|
+
/* harmony export */ LiquityV2AdjustAction: () => (/* reexport safe */ _LiquityV2AdjustAction__WEBPACK_IMPORTED_MODULE_9__.LiquityV2AdjustAction),
|
|
14071
|
+
/* harmony export */ LiquityV2AdjustInterestRateAction: () => (/* reexport safe */ _LiquityV2AdjustInterestRateAction__WEBPACK_IMPORTED_MODULE_11__.LiquityV2AdjustInterestRateAction),
|
|
14072
|
+
/* harmony export */ LiquityV2AdjustZombieTroveAction: () => (/* reexport safe */ _LiquityV2AdjustZombieTroveAction__WEBPACK_IMPORTED_MODULE_12__.LiquityV2AdjustZombieTroveAction),
|
|
14073
|
+
/* harmony export */ LiquityV2BorrowAction: () => (/* reexport safe */ _LiquityV2BorrowAction__WEBPACK_IMPORTED_MODULE_2__.LiquityV2BorrowAction),
|
|
14074
|
+
/* harmony export */ LiquityV2ClaimAction: () => (/* reexport safe */ _LiquityV2ClaimAction__WEBPACK_IMPORTED_MODULE_10__.LiquityV2ClaimAction),
|
|
14074
14075
|
/* harmony export */ LiquityV2CloseAction: () => (/* reexport safe */ _LiquityV2CloseAction__WEBPACK_IMPORTED_MODULE_1__.LiquityV2CloseAction),
|
|
14075
|
-
/* harmony export */
|
|
14076
|
-
/* harmony export */ LiquityV2LegacyPaybackAction: () => (/* reexport safe */ _LiquityV2LegacyPaybackAction__WEBPACK_IMPORTED_MODULE_5__.LiquityV2LegacyPaybackAction),
|
|
14076
|
+
/* harmony export */ LiquityV2CloseLegacyAction: () => (/* reexport safe */ _LiquityV2CloseLegacyAction__WEBPACK_IMPORTED_MODULE_13__.LiquityV2CloseLegacyAction),
|
|
14077
14077
|
/* harmony export */ LiquityV2OpenAction: () => (/* reexport safe */ _LiquityV2OpenAction__WEBPACK_IMPORTED_MODULE_0__.LiquityV2OpenAction),
|
|
14078
|
-
/* harmony export */ LiquityV2PaybackAction: () => (/* reexport safe */
|
|
14079
|
-
/* harmony export */
|
|
14080
|
-
/* harmony export */
|
|
14081
|
-
/* harmony export */
|
|
14082
|
-
/* harmony export */
|
|
14083
|
-
/* harmony export */
|
|
14078
|
+
/* harmony export */ LiquityV2PaybackAction: () => (/* reexport safe */ _LiquityV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__.LiquityV2PaybackAction),
|
|
14079
|
+
/* harmony export */ LiquityV2PaybackLegacyAction: () => (/* reexport safe */ _LiquityV2PaybackLegacyAction__WEBPACK_IMPORTED_MODULE_14__.LiquityV2PaybackLegacyAction),
|
|
14080
|
+
/* harmony export */ LiquityV2SPClaimCollAction: () => (/* reexport safe */ _LiquityV2SPClaimCollAction__WEBPACK_IMPORTED_MODULE_8__.LiquityV2SPClaimCollAction),
|
|
14081
|
+
/* harmony export */ LiquityV2SPDepositAction: () => (/* reexport safe */ _LiquityV2SPDepositAction__WEBPACK_IMPORTED_MODULE_6__.LiquityV2SPDepositAction),
|
|
14082
|
+
/* harmony export */ LiquityV2SPWithdrawAction: () => (/* reexport safe */ _LiquityV2SPWithdrawAction__WEBPACK_IMPORTED_MODULE_7__.LiquityV2SPWithdrawAction),
|
|
14083
|
+
/* harmony export */ LiquityV2SupplyAction: () => (/* reexport safe */ _LiquityV2SupplyAction__WEBPACK_IMPORTED_MODULE_4__.LiquityV2SupplyAction),
|
|
14084
|
+
/* harmony export */ LiquityV2WithdrawAction: () => (/* reexport safe */ _LiquityV2WithdrawAction__WEBPACK_IMPORTED_MODULE_5__.LiquityV2WithdrawAction)
|
|
14084
14085
|
/* harmony export */ });
|
|
14085
14086
|
/* harmony import */ var _LiquityV2OpenAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(349);
|
|
14086
14087
|
/* harmony import */ var _LiquityV2CloseAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(350);
|
|
14087
|
-
/* harmony import */ var
|
|
14088
|
-
/* harmony import */ var
|
|
14089
|
-
/* harmony import */ var
|
|
14090
|
-
/* harmony import */ var
|
|
14091
|
-
/* harmony import */ var
|
|
14092
|
-
/* harmony import */ var
|
|
14093
|
-
/* harmony import */ var
|
|
14094
|
-
/* harmony import */ var
|
|
14095
|
-
/* harmony import */ var
|
|
14096
|
-
/* harmony import */ var
|
|
14097
|
-
/* harmony import */ var
|
|
14098
|
-
/* harmony import */ var
|
|
14099
|
-
/* harmony import */ var
|
|
14088
|
+
/* harmony import */ var _LiquityV2BorrowAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(351);
|
|
14089
|
+
/* harmony import */ var _LiquityV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(352);
|
|
14090
|
+
/* harmony import */ var _LiquityV2SupplyAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(353);
|
|
14091
|
+
/* harmony import */ var _LiquityV2WithdrawAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(354);
|
|
14092
|
+
/* harmony import */ var _LiquityV2SPDepositAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(355);
|
|
14093
|
+
/* harmony import */ var _LiquityV2SPWithdrawAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(356);
|
|
14094
|
+
/* harmony import */ var _LiquityV2SPClaimCollAction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(357);
|
|
14095
|
+
/* harmony import */ var _LiquityV2AdjustAction__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(358);
|
|
14096
|
+
/* harmony import */ var _LiquityV2ClaimAction__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(359);
|
|
14097
|
+
/* harmony import */ var _LiquityV2AdjustInterestRateAction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(360);
|
|
14098
|
+
/* harmony import */ var _LiquityV2AdjustZombieTroveAction__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(361);
|
|
14099
|
+
/* harmony import */ var _LiquityV2CloseLegacyAction__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(362);
|
|
14100
|
+
/* harmony import */ var _LiquityV2PaybackLegacyAction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(363);
|
|
14100
14101
|
|
|
14101
14102
|
|
|
14102
14103
|
|
|
@@ -14228,50 +14229,6 @@ class LiquityV2CloseAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
|
|
|
14228
14229
|
/* 351 */
|
|
14229
14230
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14230
14231
|
|
|
14231
|
-
__webpack_require__.r(__webpack_exports__);
|
|
14232
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14233
|
-
/* harmony export */ LiquityV2LegacyCloseAction: () => (/* binding */ LiquityV2LegacyCloseAction)
|
|
14234
|
-
/* harmony export */ });
|
|
14235
|
-
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
14236
|
-
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
|
|
14237
|
-
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
14238
|
-
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
|
|
14239
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14240
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
/**
|
|
14245
|
-
* LiquityV2LegacyCloseAction - Closes trove
|
|
14246
|
-
*
|
|
14247
|
-
* @category LiquityV2
|
|
14248
|
-
*/
|
|
14249
|
-
class LiquityV2LegacyCloseAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
|
|
14250
|
-
/**
|
|
14251
|
-
* @param market liquity address registry for the market
|
|
14252
|
-
* @param from address from which to take the BOLD Legacy
|
|
14253
|
-
* @param to address to which to send the collateralToken and WETH gas compensation
|
|
14254
|
-
* @param troveId id of the trove to close
|
|
14255
|
-
*/
|
|
14256
|
-
constructor(market, from, to, troveId) {
|
|
14257
|
-
super('LiquityV2LegacyClose', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('LiquityV2LegacyClose'), ['address', 'address', 'address', 'uint256'], [market, from, to, troveId]);
|
|
14258
|
-
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
14259
|
-
}
|
|
14260
|
-
getAssetsToApprove() {
|
|
14261
|
-
var _this = this;
|
|
14262
|
-
return _asyncToGenerator(function* () {
|
|
14263
|
-
return [{
|
|
14264
|
-
asset: (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfo)('BOLD Legacy').address,
|
|
14265
|
-
owner: _this.args[1]
|
|
14266
|
-
}];
|
|
14267
|
-
})();
|
|
14268
|
-
}
|
|
14269
|
-
}
|
|
14270
|
-
|
|
14271
|
-
/***/ }),
|
|
14272
|
-
/* 352 */
|
|
14273
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14274
|
-
|
|
14275
14232
|
__webpack_require__.r(__webpack_exports__);
|
|
14276
14233
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14277
14234
|
/* harmony export */ LiquityV2BorrowAction: () => (/* binding */ LiquityV2BorrowAction)
|
|
@@ -14300,7 +14257,7 @@ class LiquityV2BorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
14300
14257
|
}
|
|
14301
14258
|
|
|
14302
14259
|
/***/ }),
|
|
14303
|
-
/*
|
|
14260
|
+
/* 352 */
|
|
14304
14261
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14305
14262
|
|
|
14306
14263
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14344,51 +14301,7 @@ class LiquityV2PaybackAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action
|
|
|
14344
14301
|
}
|
|
14345
14302
|
|
|
14346
14303
|
/***/ }),
|
|
14347
|
-
/*
|
|
14348
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14349
|
-
|
|
14350
|
-
__webpack_require__.r(__webpack_exports__);
|
|
14351
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14352
|
-
/* harmony export */ LiquityV2LegacyPaybackAction: () => (/* binding */ LiquityV2LegacyPaybackAction)
|
|
14353
|
-
/* harmony export */ });
|
|
14354
|
-
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
14355
|
-
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
|
|
14356
|
-
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
14357
|
-
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
|
|
14358
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14359
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
|
|
14363
|
-
/**
|
|
14364
|
-
* LiquityV2LegacyPaybackAction - Pays back BOLD to a trove
|
|
14365
|
-
*
|
|
14366
|
-
* @category LiquityV2
|
|
14367
|
-
*/
|
|
14368
|
-
class LiquityV2LegacyPaybackAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
|
|
14369
|
-
/**
|
|
14370
|
-
* @param market liquity address registry for the market
|
|
14371
|
-
* @param from address from which to take the BOLD Legacy for payback
|
|
14372
|
-
* @param troveId id of the trove to pay back to
|
|
14373
|
-
* @param amount BOLD amount to pay back
|
|
14374
|
-
*/
|
|
14375
|
-
constructor(market, from, troveId, amount) {
|
|
14376
|
-
super('LiquityV2LegacyPayback', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('LiquityV2LegacyPayback'), ['address', 'address', 'uint256', 'uint256'], [market, from, troveId, amount]);
|
|
14377
|
-
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
14378
|
-
}
|
|
14379
|
-
getAssetsToApprove() {
|
|
14380
|
-
var _this = this;
|
|
14381
|
-
return _asyncToGenerator(function* () {
|
|
14382
|
-
return [{
|
|
14383
|
-
asset: (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfo)('BOLD Legacy').address,
|
|
14384
|
-
owner: _this.args[1]
|
|
14385
|
-
}];
|
|
14386
|
-
})();
|
|
14387
|
-
}
|
|
14388
|
-
}
|
|
14389
|
-
|
|
14390
|
-
/***/ }),
|
|
14391
|
-
/* 355 */
|
|
14304
|
+
/* 353 */
|
|
14392
14305
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14393
14306
|
|
|
14394
14307
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14435,7 +14348,7 @@ class LiquityV2SupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
14435
14348
|
}
|
|
14436
14349
|
|
|
14437
14350
|
/***/ }),
|
|
14438
|
-
/*
|
|
14351
|
+
/* 354 */
|
|
14439
14352
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14440
14353
|
|
|
14441
14354
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14465,7 +14378,7 @@ class LiquityV2WithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
14465
14378
|
}
|
|
14466
14379
|
|
|
14467
14380
|
/***/ }),
|
|
14468
|
-
/*
|
|
14381
|
+
/* 355 */
|
|
14469
14382
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14470
14383
|
|
|
14471
14384
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14511,7 +14424,7 @@ class LiquityV2SPDepositAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Acti
|
|
|
14511
14424
|
}
|
|
14512
14425
|
|
|
14513
14426
|
/***/ }),
|
|
14514
|
-
/*
|
|
14427
|
+
/* 356 */
|
|
14515
14428
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14516
14429
|
|
|
14517
14430
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14542,7 +14455,7 @@ class LiquityV2SPWithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Act
|
|
|
14542
14455
|
}
|
|
14543
14456
|
|
|
14544
14457
|
/***/ }),
|
|
14545
|
-
/*
|
|
14458
|
+
/* 357 */
|
|
14546
14459
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14547
14460
|
|
|
14548
14461
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14570,7 +14483,7 @@ class LiquityV2SPClaimCollAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
14570
14483
|
}
|
|
14571
14484
|
|
|
14572
14485
|
/***/ }),
|
|
14573
|
-
/*
|
|
14486
|
+
/* 358 */
|
|
14574
14487
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14575
14488
|
|
|
14576
14489
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14605,7 +14518,7 @@ class LiquityV2AdjustAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
14605
14518
|
}
|
|
14606
14519
|
|
|
14607
14520
|
/***/ }),
|
|
14608
|
-
/*
|
|
14521
|
+
/* 359 */
|
|
14609
14522
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14610
14523
|
|
|
14611
14524
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14633,7 +14546,7 @@ class LiquityV2ClaimAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
14633
14546
|
}
|
|
14634
14547
|
|
|
14635
14548
|
/***/ }),
|
|
14636
|
-
/*
|
|
14549
|
+
/* 360 */
|
|
14637
14550
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14638
14551
|
|
|
14639
14552
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14665,7 +14578,7 @@ class LiquityV2AdjustInterestRateAction extends _Action__WEBPACK_IMPORTED_MODULE
|
|
|
14665
14578
|
}
|
|
14666
14579
|
|
|
14667
14580
|
/***/ }),
|
|
14668
|
-
/*
|
|
14581
|
+
/* 361 */
|
|
14669
14582
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14670
14583
|
|
|
14671
14584
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -14701,6 +14614,94 @@ class LiquityV2AdjustZombieTroveAction extends _Action__WEBPACK_IMPORTED_MODULE_
|
|
|
14701
14614
|
}
|
|
14702
14615
|
}
|
|
14703
14616
|
|
|
14617
|
+
/***/ }),
|
|
14618
|
+
/* 362 */
|
|
14619
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14620
|
+
|
|
14621
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14622
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14623
|
+
/* harmony export */ LiquityV2CloseLegacyAction: () => (/* binding */ LiquityV2CloseLegacyAction)
|
|
14624
|
+
/* harmony export */ });
|
|
14625
|
+
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
14626
|
+
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
|
|
14627
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
14628
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
|
|
14629
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14630
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14631
|
+
|
|
14632
|
+
|
|
14633
|
+
|
|
14634
|
+
/**
|
|
14635
|
+
* LiquityV2CloseLegacyAction - Closes trove on first (legacy) LiquityV2 deployment
|
|
14636
|
+
*
|
|
14637
|
+
* @category LiquityV2
|
|
14638
|
+
*/
|
|
14639
|
+
class LiquityV2CloseLegacyAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
|
|
14640
|
+
/**
|
|
14641
|
+
* @param market liquity address registry for the market
|
|
14642
|
+
* @param from address from which to take the BOLD
|
|
14643
|
+
* @param to address to which to send the collateralToken and WETH gas compensation
|
|
14644
|
+
* @param troveId id of the trove to close
|
|
14645
|
+
*/
|
|
14646
|
+
constructor(market, from, to, troveId) {
|
|
14647
|
+
super('LiquityV2CloseLegacy', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('LiquityV2CloseLegacy'), ['address', 'address', 'address', 'uint256'], [market, from, to, troveId]);
|
|
14648
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
14649
|
+
}
|
|
14650
|
+
getAssetsToApprove() {
|
|
14651
|
+
var _this = this;
|
|
14652
|
+
return _asyncToGenerator(function* () {
|
|
14653
|
+
return [{
|
|
14654
|
+
asset: (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfo)('BOLD Legacy').address,
|
|
14655
|
+
owner: _this.args[1]
|
|
14656
|
+
}];
|
|
14657
|
+
})();
|
|
14658
|
+
}
|
|
14659
|
+
}
|
|
14660
|
+
|
|
14661
|
+
/***/ }),
|
|
14662
|
+
/* 363 */
|
|
14663
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14664
|
+
|
|
14665
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14666
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14667
|
+
/* harmony export */ LiquityV2PaybackLegacyAction: () => (/* binding */ LiquityV2PaybackLegacyAction)
|
|
14668
|
+
/* harmony export */ });
|
|
14669
|
+
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
14670
|
+
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
|
|
14671
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
14672
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
|
|
14673
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
14674
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14675
|
+
|
|
14676
|
+
|
|
14677
|
+
|
|
14678
|
+
/**
|
|
14679
|
+
* LiquityV2PaybackLegacyAction - Pays back BOLD to a trove on first (legacy) LiquityV2 deployment
|
|
14680
|
+
*
|
|
14681
|
+
* @category LiquityV2
|
|
14682
|
+
*/
|
|
14683
|
+
class LiquityV2PaybackLegacyAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
|
|
14684
|
+
/**
|
|
14685
|
+
* @param market liquity address registry for the market
|
|
14686
|
+
* @param from address from which to take the BOLD for payback
|
|
14687
|
+
* @param troveId id of the trove to pay back to
|
|
14688
|
+
* @param amount BOLD amount to pay back
|
|
14689
|
+
*/
|
|
14690
|
+
constructor(market, from, troveId, amount) {
|
|
14691
|
+
super('LiquityV2PaybackLegacy', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('LiquityV2PaybackLegacy'), ['address', 'address', 'uint256', 'uint256'], [market, from, troveId, amount]);
|
|
14692
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
14693
|
+
}
|
|
14694
|
+
getAssetsToApprove() {
|
|
14695
|
+
var _this = this;
|
|
14696
|
+
return _asyncToGenerator(function* () {
|
|
14697
|
+
return [{
|
|
14698
|
+
asset: (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfo)('BOLD Legacy').address,
|
|
14699
|
+
owner: _this.args[1]
|
|
14700
|
+
}];
|
|
14701
|
+
})();
|
|
14702
|
+
}
|
|
14703
|
+
}
|
|
14704
|
+
|
|
14704
14705
|
/***/ }),
|
|
14705
14706
|
/* 364 */
|
|
14706
14707
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|