@defisaver/sdk 1.2.16-dev-liquity-v2-3 → 1.2.16-dev-liquity-v2-5
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/checkers/LiquityV2TargetRatioCheckAction.d.ts +2 -2
- package/esm/src/actions/checkers/LiquityV2TargetRatioCheckAction.js +2 -2
- package/esm/src/addresses.js +13 -13
- package/package.json +2 -2
- package/src/actions/checkers/LiquityV2TargetRatioCheckAction.ts +2 -2
- package/src/addresses.ts +13 -13
- package/umd/index.js +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import {
|
|
2
|
+
import { uint256, EthAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* LiquityV2TargetRatioCheckAction - Checks liquity target ratio for user position and reverts if faulty
|
|
5
5
|
*
|
|
@@ -11,5 +11,5 @@ export declare class LiquityV2TargetRatioCheckAction extends Action {
|
|
|
11
11
|
* @param troveId Trove id of the user
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
*/
|
|
14
|
-
constructor(market: EthAddress, troveId: uint256,
|
|
14
|
+
constructor(market: EthAddress, troveId: uint256, targetRatio: uint256);
|
|
15
15
|
}
|
|
@@ -11,8 +11,8 @@ export class LiquityV2TargetRatioCheckAction extends Action {
|
|
|
11
11
|
* @param troveId Trove id of the user
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
*/
|
|
14
|
-
constructor(market, troveId,
|
|
15
|
-
super('
|
|
14
|
+
constructor(market, troveId, targetRatio) {
|
|
15
|
+
super('LiquityV2TargetRatioCheck', getAddr('Empty'), ['address', 'uint256', 'uint256'], [market, troveId, targetRatio]);
|
|
16
16
|
this.mappableArgs = [
|
|
17
17
|
this.args[0],
|
|
18
18
|
this.args[1],
|
package/esm/src/addresses.js
CHANGED
|
@@ -157,19 +157,19 @@ export const actionAddresses = {
|
|
|
157
157
|
LiquityRedeem: '0x20B78854658011394C931EF2BF3cEEA2Fe62E7f0',
|
|
158
158
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
159
159
|
// liquity v2
|
|
160
|
-
LiquityV2Open: '
|
|
161
|
-
LiquityV2Close: '
|
|
162
|
-
LiquityV2Supply: '
|
|
163
|
-
LiquityV2Withdraw: '
|
|
164
|
-
LiquityV2Borrow: '
|
|
165
|
-
LiquityV2Payback: '
|
|
166
|
-
LiquityV2Claim: '
|
|
167
|
-
LiquityV2Adjust: '
|
|
168
|
-
LiquityV2AdjustInterestRate: '
|
|
169
|
-
LiquityV2SPDeposit: '
|
|
170
|
-
LiquityV2SPWithdraw: '
|
|
171
|
-
LiquityV2SPClaimColl: '
|
|
172
|
-
LiquityV2AdjustZombieTrove: '
|
|
160
|
+
LiquityV2Open: '0x7200F99661a2a379D42dD98218359Df57552EFd9',
|
|
161
|
+
LiquityV2Close: '0xb080DC160415Ffe1a4b80d75b0Be92EE38a0b426',
|
|
162
|
+
LiquityV2Supply: '0xB3b8D20711FF92686ce9F77a2A3bed74d780e78a',
|
|
163
|
+
LiquityV2Withdraw: '0xBAc6dc3edB72Bc705Ab4e31F2a2151Fe06550D9B',
|
|
164
|
+
LiquityV2Borrow: '0x612C0A45eC4916E7eaCEB475DfBFBd0b3053a63B',
|
|
165
|
+
LiquityV2Payback: '0x457d4969d73FfCb656AF9002703EB4B33504dEFF',
|
|
166
|
+
LiquityV2Claim: '0xBFB1DD9f9609CDeD2E2FdA78611512783A113079',
|
|
167
|
+
LiquityV2Adjust: '0x30f333997eA08CA7Af95E32F4f90DACEf284D746',
|
|
168
|
+
LiquityV2AdjustInterestRate: '0x40a28F080A5F0508724Ca9D15E8eCF388054c9E2',
|
|
169
|
+
LiquityV2SPDeposit: '0x2EA69De9d5913959A8A89E4c0773Ce0c98Eefe2C',
|
|
170
|
+
LiquityV2SPWithdraw: '0xCbcbD3b3e0D704Ad26b7dCfe1BdA6e85CDd8DBf0',
|
|
171
|
+
LiquityV2SPClaimColl: '0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D',
|
|
172
|
+
LiquityV2AdjustZombieTrove: '0x544e1a68A2CC8C5d2aE5493CdE472293a89f27A1',
|
|
173
173
|
// b.protocol
|
|
174
174
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
|
175
175
|
BprotocolLiquitySPWithdraw: '0x20Ece7CB4463bB1DbA4C4fA800E321A05dfB028B',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/sdk",
|
|
3
|
-
"version": "1.2.16-dev-liquity-v2-
|
|
3
|
+
"version": "1.2.16-dev-liquity-v2-5",
|
|
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.5.52-dev-
|
|
26
|
+
"@defisaver/tokens": "^1.5.52-dev-5",
|
|
27
27
|
"@ethersproject/address": "^5.0.10",
|
|
28
28
|
"@ethersproject/solidity": "^5.0.9",
|
|
29
29
|
"@types/web3-eth-abi": "^1.2.2",
|
|
@@ -13,9 +13,9 @@ export class LiquityV2TargetRatioCheckAction extends Action {
|
|
|
13
13
|
* @param troveId Trove id of the user
|
|
14
14
|
* @param targetRatio The ratio user want to be at
|
|
15
15
|
*/
|
|
16
|
-
constructor(market: EthAddress, troveId: uint256,
|
|
16
|
+
constructor(market: EthAddress, troveId: uint256, targetRatio:uint256) {
|
|
17
17
|
super(
|
|
18
|
-
'
|
|
18
|
+
'LiquityV2TargetRatioCheck',
|
|
19
19
|
getAddr('Empty'),
|
|
20
20
|
['address', 'uint256', 'uint256'],
|
|
21
21
|
[market, troveId, targetRatio],
|
package/src/addresses.ts
CHANGED
|
@@ -177,19 +177,19 @@ export const actionAddresses = {
|
|
|
177
177
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
178
178
|
|
|
179
179
|
// liquity v2
|
|
180
|
-
LiquityV2Open: '
|
|
181
|
-
LiquityV2Close: '
|
|
182
|
-
LiquityV2Supply: '
|
|
183
|
-
LiquityV2Withdraw: '
|
|
184
|
-
LiquityV2Borrow: '
|
|
185
|
-
LiquityV2Payback: '
|
|
186
|
-
LiquityV2Claim: '
|
|
187
|
-
LiquityV2Adjust: '
|
|
188
|
-
LiquityV2AdjustInterestRate: '
|
|
189
|
-
LiquityV2SPDeposit: '
|
|
190
|
-
LiquityV2SPWithdraw: '
|
|
191
|
-
LiquityV2SPClaimColl: '
|
|
192
|
-
LiquityV2AdjustZombieTrove: '
|
|
180
|
+
LiquityV2Open: '0x7200F99661a2a379D42dD98218359Df57552EFd9',
|
|
181
|
+
LiquityV2Close: '0xb080DC160415Ffe1a4b80d75b0Be92EE38a0b426',
|
|
182
|
+
LiquityV2Supply: '0xB3b8D20711FF92686ce9F77a2A3bed74d780e78a',
|
|
183
|
+
LiquityV2Withdraw: '0xBAc6dc3edB72Bc705Ab4e31F2a2151Fe06550D9B',
|
|
184
|
+
LiquityV2Borrow: '0x612C0A45eC4916E7eaCEB475DfBFBd0b3053a63B',
|
|
185
|
+
LiquityV2Payback: '0x457d4969d73FfCb656AF9002703EB4B33504dEFF',
|
|
186
|
+
LiquityV2Claim: '0xBFB1DD9f9609CDeD2E2FdA78611512783A113079',
|
|
187
|
+
LiquityV2Adjust: '0x30f333997eA08CA7Af95E32F4f90DACEf284D746',
|
|
188
|
+
LiquityV2AdjustInterestRate: '0x40a28F080A5F0508724Ca9D15E8eCF388054c9E2',
|
|
189
|
+
LiquityV2SPDeposit: '0x2EA69De9d5913959A8A89E4c0773Ce0c98Eefe2C',
|
|
190
|
+
LiquityV2SPWithdraw: '0xCbcbD3b3e0D704Ad26b7dCfe1BdA6e85CDd8DBf0',
|
|
191
|
+
LiquityV2SPClaimColl: '0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D',
|
|
192
|
+
LiquityV2AdjustZombieTrove: '0x544e1a68A2CC8C5d2aE5493CdE472293a89f27A1',
|
|
193
193
|
|
|
194
194
|
// b.protocol
|
|
195
195
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
package/umd/index.js
CHANGED
|
@@ -1446,19 +1446,19 @@ var actionAddresses = {
|
|
|
1446
1446
|
LiquityRedeem: '0x20B78854658011394C931EF2BF3cEEA2Fe62E7f0',
|
|
1447
1447
|
LiquityAdjust: '0x0A398f6B97677192A5d5e7Ea8A937383FFf9304c',
|
|
1448
1448
|
// liquity v2
|
|
1449
|
-
LiquityV2Open: '
|
|
1450
|
-
LiquityV2Close: '
|
|
1451
|
-
LiquityV2Supply: '
|
|
1452
|
-
LiquityV2Withdraw: '
|
|
1453
|
-
LiquityV2Borrow: '
|
|
1454
|
-
LiquityV2Payback: '
|
|
1455
|
-
LiquityV2Claim: '
|
|
1456
|
-
LiquityV2Adjust: '
|
|
1457
|
-
LiquityV2AdjustInterestRate: '
|
|
1458
|
-
LiquityV2SPDeposit: '
|
|
1459
|
-
LiquityV2SPWithdraw: '
|
|
1460
|
-
LiquityV2SPClaimColl: '
|
|
1461
|
-
LiquityV2AdjustZombieTrove: '
|
|
1449
|
+
LiquityV2Open: '0x7200F99661a2a379D42dD98218359Df57552EFd9',
|
|
1450
|
+
LiquityV2Close: '0xb080DC160415Ffe1a4b80d75b0Be92EE38a0b426',
|
|
1451
|
+
LiquityV2Supply: '0xB3b8D20711FF92686ce9F77a2A3bed74d780e78a',
|
|
1452
|
+
LiquityV2Withdraw: '0xBAc6dc3edB72Bc705Ab4e31F2a2151Fe06550D9B',
|
|
1453
|
+
LiquityV2Borrow: '0x612C0A45eC4916E7eaCEB475DfBFBd0b3053a63B',
|
|
1454
|
+
LiquityV2Payback: '0x457d4969d73FfCb656AF9002703EB4B33504dEFF',
|
|
1455
|
+
LiquityV2Claim: '0xBFB1DD9f9609CDeD2E2FdA78611512783A113079',
|
|
1456
|
+
LiquityV2Adjust: '0x30f333997eA08CA7Af95E32F4f90DACEf284D746',
|
|
1457
|
+
LiquityV2AdjustInterestRate: '0x40a28F080A5F0508724Ca9D15E8eCF388054c9E2',
|
|
1458
|
+
LiquityV2SPDeposit: '0x2EA69De9d5913959A8A89E4c0773Ce0c98Eefe2C',
|
|
1459
|
+
LiquityV2SPWithdraw: '0xCbcbD3b3e0D704Ad26b7dCfe1BdA6e85CDd8DBf0',
|
|
1460
|
+
LiquityV2SPClaimColl: '0x34b6B5A3e8fB9135EbB47ACE4242b47E51064f5D',
|
|
1461
|
+
LiquityV2AdjustZombieTrove: '0x544e1a68A2CC8C5d2aE5493CdE472293a89f27A1',
|
|
1462
1462
|
// b.protocol
|
|
1463
1463
|
BprotocolLiquitySPDeposit: '0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
|
1464
1464
|
BprotocolLiquitySPWithdraw: '0x20Ece7CB4463bB1DbA4C4fA800E321A05dfB028B',
|
|
@@ -7059,8 +7059,8 @@ class LiquityV2TargetRatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0
|
|
|
7059
7059
|
* @param troveId Trove id of the user
|
|
7060
7060
|
* @param targetRatio The ratio user want to be at
|
|
7061
7061
|
*/
|
|
7062
|
-
constructor(market, troveId,
|
|
7063
|
-
super('
|
|
7062
|
+
constructor(market, troveId, targetRatio) {
|
|
7063
|
+
super('LiquityV2TargetRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['address', 'uint256', 'uint256'], [market, troveId, targetRatio]);
|
|
7064
7064
|
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
7065
7065
|
}
|
|
7066
7066
|
}
|