@defisaver/positions-sdk 0.0.30-dev → 0.0.32
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/cjs/compoundV3/index.js +1 -1
- package/cjs/config/contracts.d.ts +285 -1037
- package/cjs/config/contracts.js +58 -171
- package/cjs/constants/index.d.ts +2 -0
- package/cjs/constants/index.js +3 -1
- package/cjs/contracts.d.ts +2 -0
- package/cjs/contracts.js +13 -5
- package/cjs/curveUsd/index.js +1 -1
- package/cjs/helpers/curveUsdHelpers/index.d.ts +1 -2
- package/cjs/helpers/curveUsdHelpers/index.js +17 -25
- package/cjs/helpers/index.d.ts +1 -0
- package/cjs/helpers/index.js +2 -1
- package/cjs/helpers/morphoBlueHelpers/index.d.ts +7 -0
- package/cjs/helpers/morphoBlueHelpers/index.js +41 -0
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +3 -1
- package/cjs/markets/index.d.ts +1 -0
- package/cjs/markets/index.js +3 -1
- package/cjs/markets/morphoBlue/index.d.ts +6 -0
- package/cjs/markets/morphoBlue/index.js +24 -0
- package/cjs/moneymarket/moneymarketCommonService.js +1 -1
- package/cjs/morphoBlue/index.d.ts +5 -0
- package/cjs/morphoBlue/index.js +153 -0
- package/cjs/services/utils.d.ts +0 -4
- package/cjs/services/utils.js +1 -13
- package/cjs/types/common.d.ts +1 -1
- package/cjs/types/contracts/generated/CrvUSDView.d.ts +4 -30
- package/cjs/types/contracts/generated/FeedRegistry.d.ts +182 -0
- package/cjs/types/contracts/generated/FeedRegistry.js +5 -0
- package/cjs/types/contracts/generated/MorphoBlueView.d.ts +122 -0
- package/cjs/types/contracts/generated/MorphoBlueView.js +5 -0
- package/cjs/types/contracts/generated/index.d.ts +2 -0
- package/cjs/types/curveUsd.d.ts +0 -6
- package/cjs/types/index.d.ts +1 -0
- package/cjs/types/index.js +1 -0
- package/cjs/types/morphoBlue.d.ts +74 -0
- package/cjs/types/morphoBlue.js +7 -0
- package/esm/compoundV3/index.js +1 -1
- package/esm/config/contracts.d.ts +285 -1037
- package/esm/config/contracts.js +58 -171
- package/esm/constants/index.d.ts +2 -0
- package/esm/constants/index.js +2 -0
- package/esm/contracts.d.ts +2 -0
- package/esm/contracts.js +12 -4
- package/esm/curveUsd/index.js +1 -1
- package/esm/helpers/curveUsdHelpers/index.d.ts +1 -2
- package/esm/helpers/curveUsdHelpers/index.js +18 -26
- package/esm/helpers/index.d.ts +1 -0
- package/esm/helpers/index.js +1 -0
- package/esm/helpers/morphoBlueHelpers/index.d.ts +7 -0
- package/esm/helpers/morphoBlueHelpers/index.js +34 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/markets/index.d.ts +1 -0
- package/esm/markets/index.js +1 -0
- package/esm/markets/morphoBlue/index.d.ts +6 -0
- package/esm/markets/morphoBlue/index.js +19 -0
- package/esm/moneymarket/moneymarketCommonService.js +1 -1
- package/esm/morphoBlue/index.d.ts +5 -0
- package/esm/morphoBlue/index.js +145 -0
- package/esm/services/utils.d.ts +0 -4
- package/esm/services/utils.js +0 -11
- package/esm/types/common.d.ts +1 -1
- package/esm/types/contracts/generated/CrvUSDView.d.ts +4 -30
- package/esm/types/contracts/generated/FeedRegistry.d.ts +182 -0
- package/esm/types/contracts/generated/FeedRegistry.js +4 -0
- package/esm/types/contracts/generated/MorphoBlueView.d.ts +122 -0
- package/esm/types/contracts/generated/MorphoBlueView.js +4 -0
- package/esm/types/contracts/generated/index.d.ts +2 -0
- package/esm/types/curveUsd.d.ts +0 -6
- package/esm/types/index.d.ts +1 -0
- package/esm/types/index.js +1 -0
- package/esm/types/morphoBlue.d.ts +74 -0
- package/esm/types/morphoBlue.js +4 -0
- package/package.json +1 -1
- package/src/compoundV3/index.ts +1 -1
- package/src/config/contracts.js +58 -171
- package/src/constants/index.ts +3 -1
- package/src/contracts.ts +16 -6
- package/src/curveUsd/index.ts +1 -1
- package/src/helpers/curveUsdHelpers/index.ts +20 -28
- package/src/helpers/index.ts +2 -1
- package/src/helpers/morphoBlueHelpers/index.ts +47 -0
- package/src/index.ts +2 -0
- package/src/markets/index.ts +2 -1
- package/src/markets/morphoBlue/index.ts +21 -0
- package/src/moneymarket/moneymarketCommonService.ts +1 -1
- package/src/morphoBlue/index.ts +166 -0
- package/src/services/utils.ts +1 -14
- package/src/types/common.ts +1 -1
- package/src/types/contracts/generated/CrvUSDView.ts +8 -43
- package/src/types/contracts/generated/FeedRegistry.ts +337 -0
- package/src/types/contracts/generated/MorphoBlueView.ts +171 -0
- package/src/types/contracts/generated/index.ts +2 -0
- package/src/types/curveUsd.ts +0 -6
- package/src/types/index.ts +2 -1
- package/src/types/morphoBlue.ts +80 -0
- package/src/morpho/markets.ts +0 -39
- package/yarn-error.log +0 -64
package/esm/config/contracts.js
CHANGED
|
@@ -8,86 +8,35 @@ module.exports = {
|
|
|
8
8
|
"address": "0x8095fFFC3cDdE58C4F537D39f9795A40a103e633",
|
|
9
9
|
"createdBlock": 17870436,
|
|
10
10
|
"oldVersions": {
|
|
11
|
-
"16483408":
|
|
12
|
-
|
|
13
|
-
"address": "0x9ECB0645b357fDD7B92789B91595160862Bd45d0"
|
|
14
|
-
},
|
|
15
|
-
"16690564": {
|
|
16
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
17
|
-
"address": "0xf4B715BB788cC4071061bd67dC8B56681460A2fF"
|
|
18
|
-
}
|
|
11
|
+
"16483408": "0x9ECB0645b357fDD7B92789B91595160862Bd45d0",
|
|
12
|
+
"16690564": "0xf4B715BB788cC4071061bd67dC8B56681460A2fF"
|
|
19
13
|
}
|
|
20
14
|
},
|
|
21
15
|
"10": {
|
|
22
16
|
"address": "0xB6aF2C91E3eBB250615aaa33Bb955f7a7f21AD17",
|
|
23
17
|
"createdBlock": 107950604,
|
|
24
18
|
"oldVersions": {
|
|
25
|
-
"6723401":
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"8908372": {
|
|
34
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
35
|
-
"address": "0x9629685De9Cc4adaC27F7F1733E046A9549D23F5"
|
|
36
|
-
},
|
|
37
|
-
"13445522": {
|
|
38
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
39
|
-
"address": "0x2136949bb2Aa4056A7505Fa0895DD797d4C7c683"
|
|
40
|
-
},
|
|
41
|
-
"18286606": {
|
|
42
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
43
|
-
"address": "0xf924f1E8cdB6AFC02d115fb9C6f80275B2E63cc9"
|
|
44
|
-
},
|
|
45
|
-
"23450199": {
|
|
46
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
47
|
-
"address": "0xcd5380201fdc29Bc417C8aFB926Df60aacc0C0F4"
|
|
48
|
-
},
|
|
49
|
-
"76015698": {
|
|
50
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
51
|
-
"address": "0xC20fA40Dd4f0D3f7431Eb4B6bc0614F36932F6Dc"
|
|
52
|
-
},
|
|
53
|
-
"106560861": {
|
|
54
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
55
|
-
"address": "0x05f8Ba4Db7F7C65a61881297D86Aea3c83C26304"
|
|
56
|
-
},
|
|
19
|
+
"6723401": "0xc3A1859A5B0Ffe9ccF1f70f6F3AaB8e8EF8E6366",
|
|
20
|
+
"6926482": "0x2cB32d185a6211b07bCaaEE79D2FD8566e5711a9",
|
|
21
|
+
"8908372": "0x9629685De9Cc4adaC27F7F1733E046A9549D23F5",
|
|
22
|
+
"13445522": "0x2136949bb2Aa4056A7505Fa0895DD797d4C7c683",
|
|
23
|
+
"18286606": "0xf924f1E8cdB6AFC02d115fb9C6f80275B2E63cc9",
|
|
24
|
+
"23450199": "0xcd5380201fdc29Bc417C8aFB926Df60aacc0C0F4",
|
|
25
|
+
"76015698": "0xC20fA40Dd4f0D3f7431Eb4B6bc0614F36932F6Dc",
|
|
26
|
+
"106560861": "0x05f8Ba4Db7F7C65a61881297D86Aea3c83C26304"
|
|
57
27
|
}
|
|
58
28
|
},
|
|
59
29
|
"42161": {
|
|
60
30
|
"address": "0x2596e41933136E87C04b56f632CEcA2cdCCC2Cc6",
|
|
61
31
|
"createdBlock": 119382184,
|
|
62
32
|
"oldVersions": {
|
|
63
|
-
"12855842":
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
"18522551": {
|
|
72
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
73
|
-
"address": "0x8C589b04a4C1f8F280f0133395451F6c2BE02450"
|
|
74
|
-
},
|
|
75
|
-
"19702666": {
|
|
76
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
77
|
-
"address": "0x48D32ee631ebCe01f2cd8F99B94911D5A059E9dA"
|
|
78
|
-
},
|
|
79
|
-
"24918146": {
|
|
80
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
81
|
-
"address": "0x8EF42fF40e9a9dD3E1ae81e7947D4E89e6d9f968"
|
|
82
|
-
},
|
|
83
|
-
"63484252": {
|
|
84
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
85
|
-
"address": "0xA74a85407D5A940542915458616aC3cf3f404E3b"
|
|
86
|
-
},
|
|
87
|
-
"108724549": {
|
|
88
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
89
|
-
"address": "0x401E66549DF354a21B3CC95e3F548Df6854d6DEE"
|
|
90
|
-
},
|
|
33
|
+
"12855842": "0xfCCB21cAd40ADeB097533E027f335b87c5d6CA21",
|
|
34
|
+
"16400389": "0x710f01037018Daad969B8FeFe69b4823Ef788bc6",
|
|
35
|
+
"18522551": "0x8C589b04a4C1f8F280f0133395451F6c2BE02450",
|
|
36
|
+
"19702666": "0x48D32ee631ebCe01f2cd8F99B94911D5A059E9dA",
|
|
37
|
+
"24918146": "0x8EF42fF40e9a9dD3E1ae81e7947D4E89e6d9f968",
|
|
38
|
+
"63484252": "0xA74a85407D5A940542915458616aC3cf3f404E3b",
|
|
39
|
+
"108724549": "0x401E66549DF354a21B3CC95e3F548Df6854d6DEE"
|
|
91
40
|
}
|
|
92
41
|
},
|
|
93
42
|
"8453": {
|
|
@@ -275,10 +224,7 @@ module.exports = {
|
|
|
275
224
|
"address": "0xf522b1588688b9887623b9C666175684d284D363",
|
|
276
225
|
"createdBlock": 15581957,
|
|
277
226
|
"oldVersions": {
|
|
278
|
-
"15520449":
|
|
279
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanData", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "address[]", "name": "collAddr", "type": "address[]" }, { "internalType": "uint256[]", "name": "collAmounts", "type": "uint256[]" }, { "internalType": "uint256", "name": "depositAmount", "type": "uint256" }, { "internalType": "uint256", "name": "depositValue", "type": "uint256" }, { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" }, { "internalType": "uint256", "name": "borrowValue", "type": "uint256" }, { "internalType": "uint256", "name": "collValue", "type": "uint256" }], "internalType": "struct CompV3View.LoanData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
280
|
-
"address": "0x5e07E953dac1d7c19091c3b493579ba7283572a4",
|
|
281
|
-
}
|
|
227
|
+
"15520449": "0x5e07E953dac1d7c19091c3b493579ba7283572a4"
|
|
282
228
|
}
|
|
283
229
|
},
|
|
284
230
|
"8453": {
|
|
@@ -339,34 +285,14 @@ module.exports = {
|
|
|
339
285
|
"address": "0xEDf1087544a01596b70Da746F861B878F245B08f",
|
|
340
286
|
"createdBlock": 15484097,
|
|
341
287
|
"oldVersions": {
|
|
342
|
-
"11374778":
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"11377499": {
|
|
351
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveLoanInfoV2.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
352
|
-
"address": "0x7ce5B82B44fa3037A1dE3F01133bfC3b945635a1"
|
|
353
|
-
},
|
|
354
|
-
"11420152": {
|
|
355
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveLoanInfoV2.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
356
|
-
"address": "0x8F07659525e78fd73Bf86f8E97AEa41bd54dEb54"
|
|
357
|
-
},
|
|
358
|
-
"11637629": {
|
|
359
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveLoanInfoV2.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
360
|
-
"address": "0xd0C9ADDABbA270493A6503e74E62794435c8F1D3"
|
|
361
|
-
},
|
|
362
|
-
"12317383": {
|
|
363
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveLoanInfoV2.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
364
|
-
"address": "0x21F46013a19Ee99191a04C62C9c88B1F50E00bb2"
|
|
365
|
-
},
|
|
366
|
-
"15484097": {
|
|
367
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveLoanInfoV2.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
368
|
-
"address": "0xEDf1087544a01596b70Da746F861B878F245B08f"
|
|
369
|
-
},
|
|
288
|
+
"11374778": "0xbC18860D3212e97D488cCDa2e37ff4ab8593D31d",
|
|
289
|
+
"11375123": "0xE66d12b13224C0cD490CaC2FF7746e258Bc8E60c",
|
|
290
|
+
"11375721": "0x682868AdbcFC9fECC3506B0A182E7E5D683F83BC",
|
|
291
|
+
"11377499": "0x7ce5B82B44fa3037A1dE3F01133bfC3b945635a1",
|
|
292
|
+
"11420152": "0x8F07659525e78fd73Bf86f8E97AEa41bd54dEb54",
|
|
293
|
+
"11637629": "0xd0C9ADDABbA270493A6503e74E62794435c8F1D3",
|
|
294
|
+
"12317383": "0x21F46013a19Ee99191a04C62C9c88B1F50E00bb2",
|
|
295
|
+
"15484097": "0xEDf1087544a01596b70Da746F861B878F245B08f"
|
|
370
296
|
}
|
|
371
297
|
},
|
|
372
298
|
}
|
|
@@ -402,38 +328,14 @@ module.exports = {
|
|
|
402
328
|
"address": "0xb25b98d3ca2dde635829870f852472bdd0b01b7e",
|
|
403
329
|
"createdBlock": 17819315,
|
|
404
330
|
"oldVersions": {
|
|
405
|
-
"10024350":
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
"
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
"10052917": {
|
|
414
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
415
|
-
"address": "0xEc8cd4B51BCA40D6342d5b880D6Dc0AA4317D506",
|
|
416
|
-
},
|
|
417
|
-
"10411281": {
|
|
418
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
419
|
-
"address": "0x781FDB68cE5EE5Cd7470bbFEec0F98c24eA18c93",
|
|
420
|
-
},
|
|
421
|
-
"10684038": {
|
|
422
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
423
|
-
"address": "0xB1F40B5109bba75C27a302C4E5d2afc30d5D1F30",
|
|
424
|
-
},
|
|
425
|
-
"12503103": {
|
|
426
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
427
|
-
"address": "0x8b7b8a0Ec22d4b2dBfB103947D8cD11e80E1CE22",
|
|
428
|
-
},
|
|
429
|
-
"13416222": {
|
|
430
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
431
|
-
"address": "0x19c76C1EdECd4551Fa8e49D1f96598dCDFF7A65F",
|
|
432
|
-
},
|
|
433
|
-
"15442192": {
|
|
434
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_cTokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "internalType": "uint256[]", "name": "balances", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrows", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
|
|
435
|
-
"address": "0x4D81E17ce35A81b70b2E5eD4a0592e1C2C01219d",
|
|
436
|
-
},
|
|
331
|
+
"10024350": "0x576501AbD98ce5472b03B7AB4F5980941DB7Ef37",
|
|
332
|
+
"10027063": "0x5F0679505134b1a146aD614bD2766A67df584D6b",
|
|
333
|
+
"10052917": "0xEc8cd4B51BCA40D6342d5b880D6Dc0AA4317D506",
|
|
334
|
+
"10411281": "0x781FDB68cE5EE5Cd7470bbFEec0F98c24eA18c93",
|
|
335
|
+
"10684038": "0xB1F40B5109bba75C27a302C4E5d2afc30d5D1F30",
|
|
336
|
+
"12503103": "0x8b7b8a0Ec22d4b2dBfB103947D8cD11e80E1CE22",
|
|
337
|
+
"13416222": "0x19c76C1EdECd4551Fa8e49D1f96598dCDFF7A65F",
|
|
338
|
+
"15442192": "0x4D81E17ce35A81b70b2E5eD4a0592e1C2C01219d"
|
|
437
339
|
}
|
|
438
340
|
}
|
|
439
341
|
}
|
|
@@ -495,10 +397,7 @@ module.exports = {
|
|
|
495
397
|
"address": "0x3667d1DB1f47F2c3a2f2411895d3476cc515b687",
|
|
496
398
|
"createdBlock": 16741545,
|
|
497
399
|
"oldVersions": {
|
|
498
|
-
"16586304":
|
|
499
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_usr", "type": "address" }], "name": "getUserInfo", "outputs": [{ "components": [{ "internalType": "uint256", "name": "userHealthFactor", "type": "uint256" }, { "internalType": "uint256", "name": "morphoClaimed", "type": "uint256" }, { "components": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "underlying", "type": "address" }, { "internalType": "uint256", "name": "userSupplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "userBorrowRate", "type": "uint256" }, { "internalType": "uint256", "name": "supplyBalanceInP2P", "type": "uint256" }, { "internalType": "uint256", "name": "supplyBalanceOnPool", "type": "uint256" }, { "internalType": "uint256", "name": "borrowBalanceInP2P", "type": "uint256" }, { "internalType": "uint256", "name": "borrowBalanceOnPool", "type": "uint256" }], "internalType": "struct MorphoAaveV2View.UserBalance[]", "name": "userBalances", "type": "tuple[]" }], "internalType": "struct MorphoAaveV2View.UserInfo", "name": "userInfo", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
500
|
-
"address": "0x6518a138Da4ecE07cC6263FB2e7c4Ae773360302",
|
|
501
|
-
}
|
|
400
|
+
"16586304": "0x6518a138Da4ecE07cC6263FB2e7c4Ae773360302"
|
|
502
401
|
}
|
|
503
402
|
}
|
|
504
403
|
}
|
|
@@ -510,10 +409,7 @@ module.exports = {
|
|
|
510
409
|
"address": "0xB3B13838F6F57CE76b94f0744Ab0B045B780836e",
|
|
511
410
|
"createdBlock": 17870357,
|
|
512
411
|
"oldVersions": {
|
|
513
|
-
"17734126":
|
|
514
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct SparkView.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }],
|
|
515
|
-
"address": "0x29d01EF37514912ab874D51fEc76c8f5d4d6712e",
|
|
516
|
-
}
|
|
412
|
+
"17734126": "0x29d01EF37514912ab874D51fEc76c8f5d4d6712e"
|
|
517
413
|
}
|
|
518
414
|
}
|
|
519
415
|
}
|
|
@@ -631,24 +527,13 @@ module.exports = {
|
|
|
631
527
|
}
|
|
632
528
|
},
|
|
633
529
|
"crvUSDView": {
|
|
634
|
-
"abi": [{ "inputs": [
|
|
530
|
+
"abi": [{ "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "uint256", "name": "debt", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }], "name": "createLoanData", "outputs": [{ "components": [{ "internalType": "int256", "name": "health", "type": "int256" }, { "internalType": "uint256", "name": "minColl", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrow", "type": "uint256" }, { "components": [{ "internalType": "int256", "name": "id", "type": "int256" }, { "internalType": "uint256", "name": "lowPrice", "type": "uint256" }, { "internalType": "uint256", "name": "highPrice", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }], "internalType": "struct CurveUsdView.Band[]", "name": "bands", "type": "tuple[]" }], "internalType": "struct CurveUsdView.CreateLoanData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "int256", "name": "n", "type": "int256" }], "name": "getBandData", "outputs": [{ "components": [{ "internalType": "int256", "name": "id", "type": "int256" }, { "internalType": "uint256", "name": "lowPrice", "type": "uint256" }, { "internalType": "uint256", "name": "highPrice", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }], "internalType": "struct CurveUsdView.Band", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "uint256", "name": "debt", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }], "name": "getBandsData", "outputs": [{ "components": [{ "internalType": "int256", "name": "id", "type": "int256" }, { "internalType": "uint256", "name": "lowPrice", "type": "uint256" }, { "internalType": "uint256", "name": "highPrice", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }], "internalType": "struct CurveUsdView.Band[]", "name": "bands", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "int256", "name": "from", "type": "int256" }, { "internalType": "int256", "name": "to", "type": "int256" }], "name": "getBandsData", "outputs": [{ "components": [{ "internalType": "int256", "name": "id", "type": "int256" }, { "internalType": "uint256", "name": "lowPrice", "type": "uint256" }, { "internalType": "uint256", "name": "highPrice", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }], "internalType": "struct CurveUsdView.Band[]", "name": "", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }], "name": "globalData", "outputs": [{ "components": [{ "internalType": "address", "name": "collateral", "type": "address" }, { "internalType": "uint256", "name": "decimals", "type": "uint256" }, { "internalType": "int256", "name": "activeBand", "type": "int256" }, { "internalType": "uint256", "name": "A", "type": "uint256" }, { "internalType": "uint256", "name": "totalDebt", "type": "uint256" }, { "internalType": "uint256", "name": "ammPrice", "type": "uint256" }, { "internalType": "uint256", "name": "basePrice", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePrice", "type": "uint256" }, { "internalType": "uint256", "name": "minted", "type": "uint256" }, { "internalType": "uint256", "name": "redeemed", "type": "uint256" }, { "internalType": "uint256", "name": "monetaryPolicyRate", "type": "uint256" }, { "internalType": "uint256", "name": "ammRate", "type": "uint256" }, { "internalType": "int256", "name": "minBand", "type": "int256" }, { "internalType": "int256", "name": "maxBand", "type": "int256" }], "internalType": "struct CurveUsdView.GlobalData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "int256", "name": "collChange", "type": "int256" }, { "internalType": "int256", "name": "debtChange", "type": "int256" }, { "internalType": "bool", "name": "isFull", "type": "bool" }, { "internalType": "uint256", "name": "numBands", "type": "uint256" }], "name": "healthCalculator", "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }], "name": "maxBorrow", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "uint256", "name": "debt", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }], "name": "minCollateral", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }], "name": "userData", "outputs": [{ "components": [{ "internalType": "bool", "name": "loanExists", "type": "bool" }, { "internalType": "uint256", "name": "collateralPrice", "type": "uint256" }, { "internalType": "uint256", "name": "marketCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "curveUsdCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }, { "internalType": "uint256", "name": "priceLow", "type": "uint256" }, { "internalType": "uint256", "name": "priceHigh", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationDiscount", "type": "uint256" }, { "internalType": "int256", "name": "health", "type": "int256" }, { "internalType": "int256[2]", "name": "bandRange", "type": "int256[2]" }, { "internalType": "uint256[][2]", "name": "usersBands", "type": "uint256[][2]" }], "internalType": "struct CurveUsdView.UserData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
635
531
|
"networks": {
|
|
636
532
|
"1": {
|
|
637
|
-
"address": "
|
|
638
|
-
"createdBlock":
|
|
533
|
+
"address": "0x512460CF2Bb80823C135F5DC04D2a1fF258FAA1e",
|
|
534
|
+
"createdBlock": 17683243,
|
|
639
535
|
"oldVersions": {
|
|
640
|
-
"17657253":
|
|
641
|
-
"address": "0xa81430a4eC71466264b9ee50403F8d63E8c72B95",
|
|
642
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }], "name": "userData", "outputs": [{ "components": [{ "internalType": "bool", "name": "loanExists", "type": "bool" }, { "internalType": "uint256", "name": "collateralPrice", "type": "uint256" }, { "internalType": "uint256", "name": "marketCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "curveUsdCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }, { "internalType": "uint256", "name": "priceLow", "type": "uint256" }, { "internalType": "uint256", "name": "priceHigh", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationDiscount", "type": "uint256" }, { "internalType": "int256", "name": "health", "type": "int256" }, { "internalType": "int256[2]", "name": "bandRange", "type": "int256[2]" }, { "internalType": "uint256[][2]", "name": "usersBands", "type": "uint256[][2]" }], "internalType": "struct CurveUsdView.UserData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
643
|
-
},
|
|
644
|
-
"17683243": {
|
|
645
|
-
"address": "0x512460CF2Bb80823C135F5DC04D2a1fF258FAA1e",
|
|
646
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }], "name": "userData", "outputs": [{ "components": [{ "internalType": "bool", "name": "loanExists", "type": "bool" }, { "internalType": "uint256", "name": "collateralPrice", "type": "uint256" }, { "internalType": "uint256", "name": "marketCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "curveUsdCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }, { "internalType": "uint256", "name": "priceLow", "type": "uint256" }, { "internalType": "uint256", "name": "priceHigh", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationDiscount", "type": "uint256" }, { "internalType": "int256", "name": "health", "type": "int256" }, { "internalType": "int256[2]", "name": "bandRange", "type": "int256[2]" }, { "internalType": "uint256[][2]", "name": "usersBands", "type": "uint256[][2]" }], "internalType": "struct CurveUsdView.UserData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
647
|
-
},
|
|
648
|
-
"18419795": {
|
|
649
|
-
"address": "0x4df1281f9d2303be453e0085881702a4b1358692",
|
|
650
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "market", "type": "address" }, { "internalType": "address", "name": "user", "type": "address" }], "name": "userData", "outputs": [{ "components": [{ "internalType": "bool", "name": "loanExists", "type": "bool" }, { "internalType": "uint256", "name": "collateralPrice", "type": "uint256" }, { "internalType": "uint256", "name": "marketCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "curveUsdCollateralAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "N", "type": "uint256" }, { "internalType": "uint256", "name": "priceLow", "type": "uint256" }, { "internalType": "uint256", "name": "priceHigh", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationDiscount", "type": "uint256" }, { "internalType": "int256", "name": "health", "type": "int256" }, { "internalType": "int256[2]", "name": "bandRange", "type": "int256[2]" }, { "internalType": "uint256[][2]", "name": "usersBands", "type": "uint256[][2]" }], "internalType": "struct CurveUsdView.UserData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
651
|
-
},
|
|
536
|
+
"17657253": "0xa81430a4eC71466264b9ee50403F8d63E8c72B95"
|
|
652
537
|
}
|
|
653
538
|
}
|
|
654
539
|
}
|
|
@@ -668,18 +553,9 @@ module.exports = {
|
|
|
668
553
|
"address": "0xb760e60Dff6263E8Ab31B04ee5Cc010beA47e2Df",
|
|
669
554
|
"createdBlock": 17017214,
|
|
670
555
|
"oldVersions": {
|
|
671
|
-
"12549073":
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
},
|
|
675
|
-
"12567960": {
|
|
676
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_troveOwner", "type": "address" }], "name": "getTroveInfo", "outputs": [{ "internalType": "uint256", "name": "troveStatus", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "collPrice", "type": "uint256" }, { "internalType": "uint256", "name": "TCRatio", "type": "uint256" }, { "internalType": "bool", "name": "recoveryMode", "type": "bool" }], "stateMutability": "view", "type": "function" }],
|
|
677
|
-
"address": "0x0bE59e4804d957026a0E31B5d0BEA0fbaE262ba7"
|
|
678
|
-
},
|
|
679
|
-
"12638758": {
|
|
680
|
-
"abi": [{ "inputs": [{ "internalType": "address", "name": "_troveOwner", "type": "address" }], "name": "getTroveInfo", "outputs": [{ "internalType": "uint256", "name": "troveStatus", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "collPrice", "type": "uint256" }, { "internalType": "uint256", "name": "TCRatio", "type": "uint256" }, { "internalType": "bool", "name": "recoveryMode", "type": "bool" }], "stateMutability": "view", "type": "function" }],
|
|
681
|
-
"address": "0x30EFEF27A6919d927E4c684E373198F671c686Dc"
|
|
682
|
-
},
|
|
556
|
+
"12549073": "0xFCDd12C6317adbd033B93486d176f99441344A0f",
|
|
557
|
+
"12567960": "0x0bE59e4804d957026a0E31B5d0BEA0fbaE262ba7",
|
|
558
|
+
"12638758": "0x30EFEF27A6919d927E4c684E373198F671c686Dc",
|
|
683
559
|
"12746821": {
|
|
684
560
|
"abi": [{ "inputs": [{ "internalType": "address", "name": "_troveOwner", "type": "address" }], "name": "getTroveInfo", "outputs": [{ "internalType": "uint256", "name": "troveStatus", "type": "uint256" }, { "internalType": "uint256", "name": "collAmount", "type": "uint256" }, { "internalType": "uint256", "name": "debtAmount", "type": "uint256" }, { "internalType": "uint256", "name": "collPrice", "type": "uint256" }, { "internalType": "uint256", "name": "TCRatio", "type": "uint256" }, { "internalType": "bool", "name": "recoveryMode", "type": "bool" }], "stateMutability": "view", "type": "function" }],
|
|
685
561
|
"address": "0xD1913B977737c9505B8EcFEDB8121546096d3393"
|
|
@@ -727,10 +603,7 @@ module.exports = {
|
|
|
727
603
|
"address": "0x922C795aE0be55Aaeb3FF51813B76AFc78e97C7c",
|
|
728
604
|
"createdBlock": 14410792,
|
|
729
605
|
"oldVersions": {
|
|
730
|
-
"14384301":
|
|
731
|
-
"abi": [{ "inputs": [{ "internalType": "contract IManager", "name": "_manager", "type": "address" }, { "internalType": "uint256", "name": "_cdpId", "type": "uint256" }, { "internalType": "bytes32", "name": "_ilk", "type": "bytes32" }], "name": "getCdpInfo", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
|
|
732
|
-
"address": "0x119a9B532FEe9Ce4a07F86f7053e635dD4E166F9"
|
|
733
|
-
}
|
|
606
|
+
"14384301": "0x119a9B532FEe9Ce4a07F86f7053e635dD4E166F9"
|
|
734
607
|
}
|
|
735
608
|
}
|
|
736
609
|
}
|
|
@@ -799,5 +672,19 @@ module.exports = {
|
|
|
799
672
|
"networks": {
|
|
800
673
|
"1": { "address": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6" }
|
|
801
674
|
}
|
|
675
|
+
},
|
|
676
|
+
"MorphoBlueView": {
|
|
677
|
+
"abi": [{ "inputs": [], "name": "MORPHO_BLUE_ADDRESS", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "loanToken", "type": "address" }, { "internalType": "address", "name": "collateralToken", "type": "address" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "address", "name": "irm", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }], "internalType": "struct MarketParams", "name": "marketParams", "type": "tuple" }], "name": "getMarketId", "outputs": [{ "internalType": "Id", "name": "id", "type": "bytes32" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "loanToken", "type": "address" }, { "internalType": "address", "name": "collateralToken", "type": "address" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "address", "name": "irm", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }], "internalType": "struct MarketParams", "name": "marketParams", "type": "tuple" }], "name": "getMarketInfo", "outputs": [{ "components": [{ "internalType": "Id", "name": "id", "type": "bytes32" }, { "internalType": "uint128", "name": "totalSupplyAssets", "type": "uint128" }, { "internalType": "uint128", "name": "totalSupplyShares", "type": "uint128" }, { "internalType": "uint128", "name": "totalBorrowAssets", "type": "uint128" }, { "internalType": "uint128", "name": "totalBorrowShares", "type": "uint128" }, { "internalType": "uint256", "name": "lastUpdate", "type": "uint256" }, { "internalType": "uint256", "name": "fee", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRate", "type": "uint256" }, { "internalType": "uint256", "name": "oracle", "type": "uint256" }], "internalType": "struct MorphoBlueView.MarketInfo", "name": "", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "loanToken", "type": "address" }, { "internalType": "address", "name": "collToken", "type": "address" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "address", "name": "irm", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }], "name": "getMarketInfoNotTuple", "outputs": [{ "components": [{ "internalType": "Id", "name": "id", "type": "bytes32" }, { "internalType": "uint128", "name": "totalSupplyAssets", "type": "uint128" }, { "internalType": "uint128", "name": "totalSupplyShares", "type": "uint128" }, { "internalType": "uint128", "name": "totalBorrowAssets", "type": "uint128" }, { "internalType": "uint128", "name": "totalBorrowShares", "type": "uint128" }, { "internalType": "uint256", "name": "lastUpdate", "type": "uint256" }, { "internalType": "uint256", "name": "fee", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRate", "type": "uint256" }, { "internalType": "uint256", "name": "oracle", "type": "uint256" }], "internalType": "struct MorphoBlueView.MarketInfo", "name": "", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "loanToken", "type": "address" }, { "internalType": "address", "name": "collateralToken", "type": "address" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "address", "name": "irm", "type": "address" }, { "internalType": "uint256", "name": "lltv", "type": "uint256" }], "internalType": "struct MarketParams", "name": "marketParams", "type": "tuple" }, { "internalType": "address", "name": "owner", "type": "address" }], "name": "getUserInfo", "outputs": [{ "components": [{ "internalType": "uint256", "name": "supplyShares", "type": "uint256" }, { "internalType": "uint256", "name": "suppliedInAssets", "type": "uint256" }, { "internalType": "uint256", "name": "borrowShares", "type": "uint256" }, { "internalType": "uint256", "name": "borrowedInAssets", "type": "uint256" }, { "internalType": "uint256", "name": "collateral", "type": "uint256" }], "internalType": "struct MorphoBlueView.PositionInfo", "name": "", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "morphoBlue", "outputs": [{ "internalType": "contract IMorphoBlue", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }],
|
|
678
|
+
"networks": {
|
|
679
|
+
"1": {
|
|
680
|
+
"address": "0xE29175a86B60138403a9534A391acaDb19f1E9a6",
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"FeedRegistry": {
|
|
685
|
+
"abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "accessController", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "AccessControllerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": true, "internalType": "address", "name": "denomination", "type": "address" }, { "indexed": true, "internalType": "address", "name": "latestAggregator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "previousAggregator", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "nextPhaseId", "type": "uint16" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" }], "name": "FeedConfirmed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "asset", "type": "address" }, { "indexed": true, "internalType": "address", "name": "denomination", "type": "address" }, { "indexed": true, "internalType": "address", "name": "proposedAggregator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "currentAggregator", "type": "address" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" }], "name": "FeedProposed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }], "name": "OwnershipTransferRequested", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "name": "confirmFeed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "description", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAccessController", "outputs": [{ "internalType": "contract AccessControllerInterface", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" }], "name": "getAnswer", "outputs": [{ "internalType": "int256", "name": "answer", "type": "int256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getCurrentPhaseId", "outputs": [{ "internalType": "uint16", "name": "currentPhaseId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getNextRoundId", "outputs": [{ "internalType": "uint80", "name": "nextRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhase", "outputs": [{ "components": [{ "internalType": "uint16", "name": "phaseId", "type": "uint16" }, { "internalType": "uint80", "name": "startingAggregatorRoundId", "type": "uint80" }, { "internalType": "uint80", "name": "endingAggregatorRoundId", "type": "uint80" }], "internalType": "struct FeedRegistryInterface.Phase", "name": "phase", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhaseFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint16", "name": "phaseId", "type": "uint16" }], "name": "getPhaseRange", "outputs": [{ "internalType": "uint80", "name": "startingRoundId", "type": "uint80" }, { "internalType": "uint80", "name": "endingRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getPreviousRoundId", "outputs": [{ "internalType": "uint80", "name": "previousRoundId", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "getProposedFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "proposedAggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "_roundId", "type": "uint80" }], "name": "getRoundData", "outputs": [{ "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "getRoundFeed", "outputs": [{ "internalType": "contract AggregatorV2V3Interface", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint256", "name": "roundId", "type": "uint256" }], "name": "getTimestamp", "outputs": [{ "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregator", "type": "address" }], "name": "isFeedEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestAnswer", "outputs": [{ "internalType": "int256", "name": "answer", "type": "int256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestRound", "outputs": [{ "internalType": "uint256", "name": "roundId", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestRoundData", "outputs": [{ "internalType": "uint80", "name": "roundId", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "latestTimestamp", "outputs": [{ "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "name": "proposeFeed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }, { "internalType": "uint80", "name": "roundId", "type": "uint80" }], "name": "proposedGetRoundData", "outputs": [{ "internalType": "uint80", "name": "id", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "proposedLatestRoundData", "outputs": [{ "internalType": "uint80", "name": "id", "type": "uint80" }, { "internalType": "int256", "name": "answer", "type": "int256" }, { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract AccessControllerInterface", "name": "_accessController", "type": "address" }], "name": "setAccessController", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "typeAndVersion", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "base", "type": "address" }, { "internalType": "address", "name": "quote", "type": "address" }], "name": "version", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
|
|
686
|
+
"networks": {
|
|
687
|
+
"1": { "address": "0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf" }
|
|
688
|
+
}
|
|
802
689
|
}
|
|
803
690
|
};
|
package/esm/constants/index.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export declare const SECONDS_PER_YEAR: number;
|
|
|
2
2
|
export declare const AVG_BLOCK_TIME = 12;
|
|
3
3
|
export declare const BLOCKS_IN_A_YEAR: number;
|
|
4
4
|
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
5
|
+
export declare const WAD = 1000000000000000000;
|
|
6
|
+
export declare const USD_QUOTE = "0x0000000000000000000000000000000000000348";
|
package/esm/constants/index.js
CHANGED
|
@@ -2,3 +2,5 @@ export const SECONDS_PER_YEAR = 365 * 24 * 60 * 60;
|
|
|
2
2
|
export const AVG_BLOCK_TIME = 12;
|
|
3
3
|
export const BLOCKS_IN_A_YEAR = SECONDS_PER_YEAR / AVG_BLOCK_TIME;
|
|
4
4
|
export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
5
|
+
export const WAD = 1e18;
|
|
6
|
+
export const USD_QUOTE = '0x0000000000000000000000000000000000000348';
|
package/esm/contracts.d.ts
CHANGED
|
@@ -42,3 +42,5 @@ export declare const ChickenBondsManagerContract: (web3: Web3, network: NetworkN
|
|
|
42
42
|
export declare const ETHPriceFeedContract: (web3: Web3, network: NetworkNumber, block?: Blockish) => ContractTypes.ETHPriceFeed;
|
|
43
43
|
export declare const COMPPriceFeedContract: (web3: Web3, network: NetworkNumber, block?: Blockish) => ContractTypes.COMPPriceFeed;
|
|
44
44
|
export declare const USDCPriceFeedContract: (web3: Web3, network: NetworkNumber, block?: Blockish) => ContractTypes.USDCPriceFeed;
|
|
45
|
+
export declare const FeedRegistryContract: (web3: Web3, network: NetworkNumber, block?: Blockish) => ContractTypes.FeedRegistry;
|
|
46
|
+
export declare const MorphoBlueViewContract: (web3: Web3, network: NetworkNumber, block?: Blockish) => ContractTypes.MorphoBlueView;
|