@meterio/sumer-js 0.1.10 → 0.1.12
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/dist/browser/sumer.min.js +10 -10
- package/dist/nodejs/abi.d.ts +33 -2
- package/dist/nodejs/abi.js +228 -152
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.js +124 -110
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/index.js +5 -35
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/index.d.ts +33 -2
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +33 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +33 -15
- package/dist/nodejs/typechain/contracts/Comptroller/CompoundLens.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +9 -21
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +9 -25
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP712.d.ts +41 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP712.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IEIP712.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +45 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +59 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +45 -19
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +59 -25
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +27 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +35 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +19 -49
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +25 -65
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +14 -48
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +19 -64
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.d.ts +33 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.js +53 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IEIP712__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +18 -0
- package/dist/nodejs/typechain/index.d.ts +2 -0
- package/dist/nodejs/typechain/index.js +3 -1
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,143 +2,157 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.arbitrum = void 0;
|
|
4
4
|
exports.arbitrum = {
|
|
5
|
-
addresses: {
|
|
6
|
-
ProxyAdmin:
|
|
7
|
-
Multicall2:
|
|
8
|
-
Sumer:
|
|
9
|
-
SUMER:
|
|
10
|
-
CompoundLens:
|
|
11
|
-
FeedPriceOracle:
|
|
12
|
-
AccountLiquidity:
|
|
13
|
-
CompLogic:
|
|
14
|
-
Comptroller:
|
|
15
|
-
sdrETH:
|
|
16
|
-
ETH:
|
|
17
|
-
sdrUSDC:
|
|
18
|
-
USDC:
|
|
19
|
-
sdrUSDT:
|
|
20
|
-
USDT:
|
|
21
|
-
sdrDAI:
|
|
22
|
-
DAI:
|
|
23
|
-
sdrwstETH:
|
|
24
|
-
wstETH:
|
|
25
|
-
sdrRETH:
|
|
26
|
-
RETH:
|
|
27
|
-
sdrWBTC:
|
|
28
|
-
WBTC:
|
|
29
|
-
sdrARB:
|
|
30
|
-
ARB:
|
|
31
|
-
sdrsuUSD:
|
|
32
|
-
suUSD:
|
|
33
|
-
sdrsuETH:
|
|
34
|
-
suETH:
|
|
35
|
-
sdrsuBTC:
|
|
36
|
-
suBTC:
|
|
37
|
-
Timelock:
|
|
5
|
+
"addresses": {
|
|
6
|
+
"ProxyAdmin": "0xF04B152d2E27b5d975A2eb6b7F39EA42A74841Ac",
|
|
7
|
+
"Multicall2": "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
8
|
+
"Sumer": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
9
|
+
"SUMER": "0x553d713e0fB958932b6C40ABAf0b5A1fFae73Da2",
|
|
10
|
+
"CompoundLens": "0x9aa55bCf3E41D0d98FCe816C4eC6E791B0f6d154",
|
|
11
|
+
"FeedPriceOracle": "0x7465fedB29023d11effe8C74E82A7ecEBf15E947",
|
|
12
|
+
"AccountLiquidity": "0xA2e6B85f9A5C90217054350d7893498B8c892546",
|
|
13
|
+
"CompLogic": "0xdb4d020A58e0A1A67823d75437A61044dC02AE4C",
|
|
14
|
+
"Comptroller": "0xBfb69860C91A22A2287df1Ff3Cdf0476c5aab24A",
|
|
15
|
+
"sdrETH": "0x3C752d0D78BbFddA6BF4b6000a01228B732441aE",
|
|
16
|
+
"ETH": "0x0000000000000000000000000000000000000000",
|
|
17
|
+
"sdrUSDC": "0x4DE3741E1676ed14d661b1398196dC221cA4D37A",
|
|
18
|
+
"USDC": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
19
|
+
"sdrUSDT": "0xDb7Fe9c415281E383595c262e49568DDc18e8Bd4",
|
|
20
|
+
"USDT": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
|
|
21
|
+
"sdrDAI": "0x873449359d2d99691436E724C6C219a39b159B4a",
|
|
22
|
+
"DAI": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
|
|
23
|
+
"sdrwstETH": "0x1167e762541374fEBeeA0f6Ed2AD4473AFa1CcEa",
|
|
24
|
+
"wstETH": "0x5979D7b546E38E414F7E9822514be443A4800529",
|
|
25
|
+
"sdrRETH": "0x1a9CFA6c676ebBEd450dB3cef03e399465F1202C",
|
|
26
|
+
"RETH": "0xec70dcb4a1efa46b8f2d97c310c9c4790ba5ffa8",
|
|
27
|
+
"sdrWBTC": "0x59aC82d3EfB5dc6c4389ccfF7AB7ab6C72C6AC05",
|
|
28
|
+
"WBTC": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
29
|
+
"sdrARB": "0x142017b52c99d3dFe55E49d79Df0bAF7F4478c0c",
|
|
30
|
+
"ARB": "0x912CE59144191C1204E64559FE8253a0e49E6548",
|
|
31
|
+
"sdrsuUSD": "0xe4B55045ed14815c7c42eeeF8EE431b89422c389",
|
|
32
|
+
"suUSD": "0x8bf591eae535f93a242d5a954d3cde648b48a5a8",
|
|
33
|
+
"sdrsuETH": "0x9C93423939C4e3D48d99baD147AD808BE89B2043",
|
|
34
|
+
"suETH": "0x1c22531aa9747d76fff8f0a43b37954ca67d28e0",
|
|
35
|
+
"sdrsuBTC": "0xAc6bAF36B28d19EA10959102158Beb3d933C1fbf",
|
|
36
|
+
"suBTC": "0xe85411c030fb32a9d8b14bbbc6cb19417391f711",
|
|
37
|
+
"Timelock": "0x42778d0962884510b85d4D1B30DFe9e9Dd270446"
|
|
38
38
|
},
|
|
39
|
-
tokenPairs: [
|
|
39
|
+
"tokenPairs": [
|
|
40
40
|
{
|
|
41
|
-
ctokenSym:
|
|
42
|
-
underlySym:
|
|
43
|
-
ctokenDecimal: 6,
|
|
44
|
-
underlyDecimal: 6,
|
|
45
|
-
ctokenIsEther: false
|
|
41
|
+
"ctokenSym": "sdrUSDC",
|
|
42
|
+
"underlySym": "USDC",
|
|
43
|
+
"ctokenDecimal": 6,
|
|
44
|
+
"underlyDecimal": 6,
|
|
45
|
+
"ctokenIsEther": false
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
ctokenSym:
|
|
49
|
-
underlySym:
|
|
50
|
-
ctokenDecimal: 6,
|
|
51
|
-
underlyDecimal: 6,
|
|
52
|
-
ctokenIsEther: false
|
|
48
|
+
"ctokenSym": "sdrUSDT",
|
|
49
|
+
"underlySym": "USDT",
|
|
50
|
+
"ctokenDecimal": 6,
|
|
51
|
+
"underlyDecimal": 6,
|
|
52
|
+
"ctokenIsEther": false
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
ctokenSym:
|
|
56
|
-
underlySym:
|
|
57
|
-
ctokenDecimal: 18,
|
|
58
|
-
underlyDecimal: 18,
|
|
59
|
-
ctokenIsEther: false
|
|
55
|
+
"ctokenSym": "sdrDAI",
|
|
56
|
+
"underlySym": "DAI",
|
|
57
|
+
"ctokenDecimal": 18,
|
|
58
|
+
"underlyDecimal": 18,
|
|
59
|
+
"ctokenIsEther": false
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
ctokenSym:
|
|
63
|
-
underlySym:
|
|
64
|
-
ctokenDecimal: 18,
|
|
65
|
-
underlyDecimal: 18,
|
|
66
|
-
ctokenIsEther: false
|
|
62
|
+
"ctokenSym": "sdrwstETH",
|
|
63
|
+
"underlySym": "wstETH",
|
|
64
|
+
"ctokenDecimal": 18,
|
|
65
|
+
"underlyDecimal": 18,
|
|
66
|
+
"ctokenIsEther": false
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
ctokenSym:
|
|
70
|
-
underlySym:
|
|
71
|
-
ctokenDecimal: 18,
|
|
72
|
-
underlyDecimal: 18,
|
|
73
|
-
ctokenIsEther: false
|
|
69
|
+
"ctokenSym": "sdrRETH",
|
|
70
|
+
"underlySym": "RETH",
|
|
71
|
+
"ctokenDecimal": 18,
|
|
72
|
+
"underlyDecimal": 18,
|
|
73
|
+
"ctokenIsEther": false
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
ctokenSym:
|
|
77
|
-
underlySym:
|
|
78
|
-
ctokenDecimal: 8,
|
|
79
|
-
underlyDecimal: 8,
|
|
80
|
-
ctokenIsEther: false
|
|
76
|
+
"ctokenSym": "sdrWBTC",
|
|
77
|
+
"underlySym": "WBTC",
|
|
78
|
+
"ctokenDecimal": 8,
|
|
79
|
+
"underlyDecimal": 8,
|
|
80
|
+
"ctokenIsEther": false
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
ctokenSym:
|
|
84
|
-
underlySym:
|
|
85
|
-
ctokenDecimal: 18,
|
|
86
|
-
underlyDecimal: 18,
|
|
87
|
-
ctokenIsEther: false
|
|
83
|
+
"ctokenSym": "sdrARB",
|
|
84
|
+
"underlySym": "ARB",
|
|
85
|
+
"ctokenDecimal": 18,
|
|
86
|
+
"underlyDecimal": 18,
|
|
87
|
+
"ctokenIsEther": false
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
ctokenSym:
|
|
91
|
-
underlySym:
|
|
92
|
-
ctokenDecimal: 18,
|
|
93
|
-
underlyDecimal: 18,
|
|
94
|
-
ctokenIsEther: false
|
|
90
|
+
"ctokenSym": "sdrsuUSD",
|
|
91
|
+
"underlySym": "suUSD",
|
|
92
|
+
"ctokenDecimal": 18,
|
|
93
|
+
"underlyDecimal": 18,
|
|
94
|
+
"ctokenIsEther": false
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
ctokenSym:
|
|
98
|
-
underlySym:
|
|
99
|
-
ctokenDecimal: 18,
|
|
100
|
-
underlyDecimal: 18,
|
|
101
|
-
ctokenIsEther: false
|
|
97
|
+
"ctokenSym": "sdrsuETH",
|
|
98
|
+
"underlySym": "suETH",
|
|
99
|
+
"ctokenDecimal": 18,
|
|
100
|
+
"underlyDecimal": 18,
|
|
101
|
+
"ctokenIsEther": false
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
ctokenSym:
|
|
105
|
-
underlySym:
|
|
106
|
-
ctokenDecimal: 18,
|
|
107
|
-
underlyDecimal: 18,
|
|
108
|
-
ctokenIsEther: false
|
|
104
|
+
"ctokenSym": "sdrsuBTC",
|
|
105
|
+
"underlySym": "suBTC",
|
|
106
|
+
"ctokenDecimal": 18,
|
|
107
|
+
"underlyDecimal": 18,
|
|
108
|
+
"ctokenIsEther": false
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
ctokenSym:
|
|
112
|
-
underlySym:
|
|
113
|
-
ctokenDecimal: 18,
|
|
114
|
-
underlyDecimal: 18,
|
|
115
|
-
ctokenIsEther: true
|
|
116
|
-
}
|
|
111
|
+
"ctokenSym": "sdrETH",
|
|
112
|
+
"underlySym": "ETH",
|
|
113
|
+
"ctokenDecimal": 18,
|
|
114
|
+
"underlyDecimal": 18,
|
|
115
|
+
"ctokenIsEther": true
|
|
116
|
+
}
|
|
117
117
|
],
|
|
118
|
-
rateModels: [
|
|
118
|
+
"rateModels": [
|
|
119
119
|
{
|
|
120
|
-
name:
|
|
121
|
-
address:
|
|
122
|
-
tokens: [
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
"name": "JumpRateModelV2",
|
|
121
|
+
"address": "0x5096E5cf4f151052ACD615b2635E7FdB6Db0763C",
|
|
122
|
+
"tokens": [
|
|
123
|
+
"USDC",
|
|
124
|
+
"USDT",
|
|
125
|
+
"DAI",
|
|
126
|
+
"WBTC",
|
|
127
|
+
"ETH"
|
|
128
|
+
],
|
|
129
|
+
"baseRatePerYear": 0.02,
|
|
130
|
+
"multiplierPerYear": 0.12,
|
|
131
|
+
"jumpMultiplierPerYear": 1,
|
|
132
|
+
"kink": 0.75
|
|
127
133
|
},
|
|
128
134
|
{
|
|
129
|
-
name:
|
|
130
|
-
address:
|
|
131
|
-
tokens: [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
"name": "JumpRateModelV2",
|
|
136
|
+
"address": "0xE27496Ec5d6E19521d636e78c127fF2Cf59ee914",
|
|
137
|
+
"tokens": [
|
|
138
|
+
"wstETH",
|
|
139
|
+
"RETH",
|
|
140
|
+
"ARB"
|
|
141
|
+
],
|
|
142
|
+
"baseRatePerYear": 0.02,
|
|
143
|
+
"multiplierPerYear": 0.15,
|
|
144
|
+
"jumpMultiplierPerYear": 2,
|
|
145
|
+
"kink": 0.55
|
|
136
146
|
},
|
|
137
147
|
{
|
|
138
|
-
name:
|
|
139
|
-
address:
|
|
140
|
-
tokens: [
|
|
141
|
-
|
|
142
|
-
|
|
148
|
+
"name": "ZeroInterestRateModel",
|
|
149
|
+
"address": "0xc7fFEAa5949d50A408bD92DdB0D1EAcef3F8a3Bc",
|
|
150
|
+
"tokens": [
|
|
151
|
+
"suUSD",
|
|
152
|
+
"suETH",
|
|
153
|
+
"suBTC"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
]
|
|
143
157
|
};
|
|
144
158
|
//# sourceMappingURL=arbitrum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arbitrum.js","sourceRoot":"","sources":["../../../src/constants/arbitrum.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,
|
|
1
|
+
{"version":3,"file":"arbitrum.js","sourceRoot":"","sources":["../../../src/constants/arbitrum.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,WAAW,EAAE;QACX,YAAY,EAAE,4CAA4C;QAC1D,YAAY,EAAE,4CAA4C;QAC1D,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,4CAA4C;QACrD,cAAc,EAAE,4CAA4C;QAC5D,iBAAiB,EAAE,4CAA4C;QAC/D,kBAAkB,EAAE,4CAA4C;QAChE,WAAW,EAAE,4CAA4C;QACzD,aAAa,EAAE,4CAA4C;QAC3D,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CAA4C;QACnD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,QAAQ,EAAE,4CAA4C;QACtD,KAAK,EAAE,4CAA4C;QACnD,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,4CAA4C;QACtD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,SAAS,EAAE,4CAA4C;QACvD,MAAM,EAAE,4CAA4C;QACpD,QAAQ,EAAE,4CAA4C;QACtD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AAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,KAAK;SACvB;QACD;YACE,WAAW,EAAE,UAAU;YACvB,YAAY,EAAE,OAAO;YACrB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,KAAK;SACvB;QACD;YACE,WAAW,EAAE,UAAU;YACvB,YAAY,EAAE,OAAO;YACrB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,KAAK;SACvB;QACD;YACE,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,EAAE;YACnB,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,IAAI;SACtB;KACF;IACD,YAAY,EAAE;QACZ;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,MAAM;gBACN,MAAM;gBACN,KAAK;gBACL,MAAM;gBACN,KAAK;aACN;YACD,iBAAiB,EAAE,IAAI;YACvB,mBAAmB,EAAE,IAAI;YACzB,uBAAuB,EAAE,CAAC;YAC1B,MAAM,EAAE,IAAI;SACb;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,QAAQ;gBACR,MAAM;gBACN,KAAK;aACN;YACD,iBAAiB,EAAE,IAAI;YACvB,mBAAmB,EAAE,IAAI;YACzB,uBAAuB,EAAE,CAAC;YAC1B,MAAM,EAAE,IAAI;SACb;QACD;YACE,MAAM,EAAE,uBAAuB;YAC/B,SAAS,EAAE,4CAA4C;YACvD,QAAQ,EAAE;gBACR,OAAO;gBACP,OAAO;gBACP,OAAO;aACR;SACF;KACF;CACF,CAAA"}
|
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.isEther = exports.getDecimalsOfUnderly = exports.getDecimals = exports.isUnderlyAllowed = exports.isCTokenAllowed = exports.getName = exports.getAddress = exports.getRateModals = exports.getTokenPairs = exports.getNetworkConfig = exports.constants = void 0;
|
|
27
|
-
const path = __importStar(require("path"));
|
|
28
|
-
const fs = __importStar(require("fs"));
|
|
29
4
|
const arbitrum_1 = require("./arbitrum");
|
|
30
5
|
const basemain_1 = require("./basemain");
|
|
31
6
|
const basetest_1 = require("./basetest");
|
|
@@ -43,15 +18,10 @@ const NetworkConfigs = {
|
|
|
43
18
|
sepolia: sepolia_1.sepolia,
|
|
44
19
|
};
|
|
45
20
|
let allTokenSymbols = {};
|
|
46
|
-
for (const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
for (const pair of j.tokenPairs) {
|
|
51
|
-
allTokenSymbols[pair.ctokenSym] = pair.ctokenSym;
|
|
52
|
-
allTokenSymbols[pair.underlySym] = pair.underlySym;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
21
|
+
for (const netName in NetworkConfigs) {
|
|
22
|
+
for (const pair of NetworkConfigs[netName].tokenPairs) {
|
|
23
|
+
allTokenSymbols[pair.ctokenSym] = pair.ctokenSym;
|
|
24
|
+
allTokenSymbols[pair.underlySym] = pair.underlySym;
|
|
55
25
|
}
|
|
56
26
|
}
|
|
57
27
|
// Publicly revealed on the parent class
|
|
@@ -76,7 +46,7 @@ const getRateModals = (networkName) => {
|
|
|
76
46
|
if (!config.rateModels) {
|
|
77
47
|
throw new Error('rateModels is not configured in config file');
|
|
78
48
|
}
|
|
79
|
-
return config.
|
|
49
|
+
return config.rateModels;
|
|
80
50
|
};
|
|
81
51
|
exports.getRateModals = getRateModals;
|
|
82
52
|
const getAddress = (networkName, tokenSym) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,qCAAiC;AACjC,2CAAuC;AACvC,2CAAuC;AACvC,uCAAmC;AAEnC,MAAM,cAAc,GAAG;IACrB,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,MAAM,EAAN,eAAM;IACN,SAAS,EAAT,qBAAS;IACT,SAAS,EAAT,qBAAS;IACT,OAAO,EAAP,iBAAO;CACR,CAAA;AAUD,IAAI,eAAe,GAAG,EAAE,CAAA;AACxB,KAAK,MAAM,OAAO,IAAI,cAAc,EAAE,CAAC;IACrC,KAAK,MAAM,IAAI,IAAI,cA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AAyJ;AACzJ,oJAAoJ;AACpJ,SAAS;AACT,iBAAiB;AACjB,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,0GAA0G;AAC1G,QAAQ;AACR,MAAM;AACN,KAAK"}
|
package/dist/nodejs/index.d.ts
CHANGED
|
@@ -411,7 +411,13 @@ declare const Sumer: {
|
|
|
411
411
|
type: string;
|
|
412
412
|
anonymous?: undefined;
|
|
413
413
|
})[];
|
|
414
|
-
CompoundLens: {
|
|
414
|
+
CompoundLens: ({
|
|
415
|
+
inputs: any[];
|
|
416
|
+
name: string;
|
|
417
|
+
type: string;
|
|
418
|
+
outputs?: undefined;
|
|
419
|
+
stateMutability?: undefined;
|
|
420
|
+
} | {
|
|
415
421
|
inputs: {
|
|
416
422
|
internalType: string;
|
|
417
423
|
name: string;
|
|
@@ -430,7 +436,21 @@ declare const Sumer: {
|
|
|
430
436
|
}[];
|
|
431
437
|
stateMutability: string;
|
|
432
438
|
type: string;
|
|
433
|
-
}
|
|
439
|
+
} | {
|
|
440
|
+
inputs: {
|
|
441
|
+
internalType: string;
|
|
442
|
+
name: string;
|
|
443
|
+
type: string;
|
|
444
|
+
}[];
|
|
445
|
+
name: string;
|
|
446
|
+
outputs: {
|
|
447
|
+
internalType: string;
|
|
448
|
+
name: string;
|
|
449
|
+
type: string;
|
|
450
|
+
}[];
|
|
451
|
+
stateMutability: string;
|
|
452
|
+
type: string;
|
|
453
|
+
})[];
|
|
434
454
|
Comptroller: ({
|
|
435
455
|
inputs: any[];
|
|
436
456
|
name: string;
|
|
@@ -937,6 +957,17 @@ declare const Sumer: {
|
|
|
937
957
|
type: string;
|
|
938
958
|
anonymous?: undefined;
|
|
939
959
|
})[];
|
|
960
|
+
IEIP712: {
|
|
961
|
+
inputs: {
|
|
962
|
+
internalType: string;
|
|
963
|
+
name: string;
|
|
964
|
+
type: string;
|
|
965
|
+
}[];
|
|
966
|
+
name: string;
|
|
967
|
+
outputs: any[];
|
|
968
|
+
stateMutability: string;
|
|
969
|
+
type: string;
|
|
970
|
+
}[];
|
|
940
971
|
IGovernorAlpha: {
|
|
941
972
|
inputs: {
|
|
942
973
|
internalType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CErc20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockNumber" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCToken" | "isDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -51,6 +51,7 @@ export interface CErc20Interface extends Interface {
|
|
|
51
51
|
encodeFunctionData(functionFragment: "liquidateBorrow", values: [AddressLike, BigNumberish, AddressLike]): string;
|
|
52
52
|
encodeFunctionData(functionFragment: "liquidateCalculateSeizeTokens", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
53
53
|
encodeFunctionData(functionFragment: "mint", values: [BigNumberish]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "mintWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
54
55
|
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
55
56
|
encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
|
|
56
57
|
encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
|
|
@@ -58,6 +59,7 @@ export interface CErc20Interface extends Interface {
|
|
|
58
59
|
encodeFunctionData(functionFragment: "redeemUnderlying", values: [BigNumberish]): string;
|
|
59
60
|
encodeFunctionData(functionFragment: "repayBorrow", values: [BigNumberish]): string;
|
|
60
61
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
61
63
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
62
64
|
encodeFunctionData(functionFragment: "seize", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
|
63
65
|
encodeFunctionData(functionFragment: "supplyRatePerBlock", values?: undefined): string;
|
|
@@ -108,6 +110,7 @@ export interface CErc20Interface extends Interface {
|
|
|
108
110
|
decodeFunctionResult(functionFragment: "liquidateBorrow", data: BytesLike): Result;
|
|
109
111
|
decodeFunctionResult(functionFragment: "liquidateCalculateSeizeTokens", data: BytesLike): Result;
|
|
110
112
|
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
113
|
+
decodeFunctionResult(functionFragment: "mintWithPermit", data: BytesLike): Result;
|
|
111
114
|
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
112
115
|
decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
|
|
113
116
|
decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
|
|
@@ -115,6 +118,7 @@ export interface CErc20Interface extends Interface {
|
|
|
115
118
|
decodeFunctionResult(functionFragment: "redeemUnderlying", data: BytesLike): Result;
|
|
116
119
|
decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
|
|
117
120
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
121
|
+
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
118
122
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
119
123
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
120
124
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
@@ -594,6 +598,13 @@ export interface CErc20 extends BaseContract {
|
|
|
594
598
|
[bigint, bigint]
|
|
595
599
|
], "view">;
|
|
596
600
|
mint: TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
|
|
601
|
+
mintWithPermit: TypedContractMethod<[
|
|
602
|
+
mintAmount: BigNumberish,
|
|
603
|
+
deadline: BigNumberish,
|
|
604
|
+
signature: BytesLike
|
|
605
|
+
], [
|
|
606
|
+
bigint
|
|
607
|
+
], "nonpayable">;
|
|
597
608
|
name: TypedContractMethod<[], [string], "view">;
|
|
598
609
|
pendingAdmin: TypedContractMethod<[], [string], "view">;
|
|
599
610
|
protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
@@ -618,6 +629,13 @@ export interface CErc20 extends BaseContract {
|
|
|
618
629
|
], [
|
|
619
630
|
bigint
|
|
620
631
|
], "nonpayable">;
|
|
632
|
+
repayBorrowWithPermit: TypedContractMethod<[
|
|
633
|
+
repayAmount: BigNumberish,
|
|
634
|
+
deadline: BigNumberish,
|
|
635
|
+
signature: BytesLike
|
|
636
|
+
], [
|
|
637
|
+
bigint
|
|
638
|
+
], "nonpayable">;
|
|
621
639
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
622
640
|
seize: TypedContractMethod<[
|
|
623
641
|
liquidator: AddressLike,
|
|
@@ -747,6 +765,13 @@ export interface CErc20 extends BaseContract {
|
|
|
747
765
|
[bigint, bigint]
|
|
748
766
|
], "view">;
|
|
749
767
|
getFunction(nameOrSignature: "mint"): TypedContractMethod<[mintAmount: BigNumberish], [bigint], "nonpayable">;
|
|
768
|
+
getFunction(nameOrSignature: "mintWithPermit"): TypedContractMethod<[
|
|
769
|
+
mintAmount: BigNumberish,
|
|
770
|
+
deadline: BigNumberish,
|
|
771
|
+
signature: BytesLike
|
|
772
|
+
], [
|
|
773
|
+
bigint
|
|
774
|
+
], "nonpayable">;
|
|
750
775
|
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
751
776
|
getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
|
|
752
777
|
getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
@@ -759,6 +784,13 @@ export interface CErc20 extends BaseContract {
|
|
|
759
784
|
], [
|
|
760
785
|
bigint
|
|
761
786
|
], "nonpayable">;
|
|
787
|
+
getFunction(nameOrSignature: "repayBorrowWithPermit"): TypedContractMethod<[
|
|
788
|
+
repayAmount: BigNumberish,
|
|
789
|
+
deadline: BigNumberish,
|
|
790
|
+
signature: BytesLike
|
|
791
|
+
], [
|
|
792
|
+
bigint
|
|
793
|
+
], "nonpayable">;
|
|
762
794
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
763
795
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
764
796
|
liquidator: AddressLike,
|