@meterio/sumer-js 0.1.20 → 0.1.21
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 +6 -3
- package/dist/nodejs/abi.js +2131 -1481
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/cToken.d.ts +1 -0
- package/dist/nodejs/cToken.js +42 -3
- package/dist/nodejs/cToken.js.map +1 -1
- package/dist/nodejs/constants/metertest.js +1 -1
- package/dist/nodejs/errors.d.ts +45 -149
- package/dist/nodejs/errors.js +91 -195
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +51 -152
- package/dist/nodejs/typechain/contracts/Comptroller/AccountLiquidity.d.ts +2 -2
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +14 -12
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +14 -12
- package/dist/nodejs/typechain/contracts/SumerErrors.d.ts +20 -0
- package/dist/nodejs/typechain/contracts/SumerErrors.js +3 -0
- package/dist/nodejs/typechain/contracts/SumerErrors.js.map +1 -0
- package/dist/nodejs/typechain/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +43 -75
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +44 -84
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +48 -64
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +49 -69
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +81 -33
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +93 -33
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +36 -84
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +40 -100
- 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 -5
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +1 -6
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +3 -3
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +3 -3
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +209 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +261 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +153 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +191 -1
- 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/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +2 -2
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +2 -2
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +234 -0
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +305 -0
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock.sol/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.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
package/dist/nodejs/index.d.ts
CHANGED
|
@@ -78,6 +78,11 @@ declare const Sumer: {
|
|
|
78
78
|
stateMutability: string;
|
|
79
79
|
type: string;
|
|
80
80
|
}[];
|
|
81
|
+
SumerErrors: {
|
|
82
|
+
inputs: any[];
|
|
83
|
+
name: string;
|
|
84
|
+
type: string;
|
|
85
|
+
}[];
|
|
81
86
|
SumerTimelockController: ({
|
|
82
87
|
inputs: {
|
|
83
88
|
internalType: string;
|
|
@@ -726,9 +731,7 @@ declare const Sumer: {
|
|
|
726
731
|
type: string;
|
|
727
732
|
anonymous?: undefined;
|
|
728
733
|
})[];
|
|
729
|
-
|
|
730
|
-
Exponential: any[];
|
|
731
|
-
ExponentialNoError: any[];
|
|
734
|
+
ExponentialNoErrorNew: any[];
|
|
732
735
|
InterestRateModel: {
|
|
733
736
|
inputs: {
|
|
734
737
|
internalType: string;
|
|
@@ -1976,83 +1979,43 @@ declare const Sumer: {
|
|
|
1976
1979
|
})[];
|
|
1977
1980
|
};
|
|
1978
1981
|
errors: {
|
|
1979
|
-
"0x47556579": {
|
|
1980
|
-
err: string;
|
|
1981
|
-
explain: string;
|
|
1982
|
-
};
|
|
1983
|
-
"0xd1ec4b23": {
|
|
1984
|
-
err: string;
|
|
1985
|
-
explain: string;
|
|
1986
|
-
};
|
|
1987
|
-
"0x880ed0f3": {
|
|
1988
|
-
err: string;
|
|
1989
|
-
explain: string;
|
|
1990
|
-
};
|
|
1991
1982
|
"0x91f53656": {
|
|
1992
1983
|
err: string;
|
|
1993
1984
|
explain: string;
|
|
1994
1985
|
};
|
|
1995
|
-
"
|
|
1996
|
-
err: string;
|
|
1997
|
-
explain: string;
|
|
1998
|
-
};
|
|
1999
|
-
"0x2f028cfb": {
|
|
2000
|
-
err: string;
|
|
2001
|
-
explain: string;
|
|
2002
|
-
};
|
|
2003
|
-
"0x8ddb9aa6": {
|
|
2004
|
-
err: string;
|
|
2005
|
-
explain: string;
|
|
2006
|
-
};
|
|
2007
|
-
"0xcaab38a0": {
|
|
2008
|
-
err: string;
|
|
2009
|
-
explain: string;
|
|
2010
|
-
};
|
|
2011
|
-
"0xe610f326": {
|
|
2012
|
-
err: string;
|
|
2013
|
-
explain: string;
|
|
2014
|
-
};
|
|
2015
|
-
"0x8cd22d19": {
|
|
2016
|
-
err: string;
|
|
2017
|
-
explain: string;
|
|
2018
|
-
};
|
|
2019
|
-
"0x8e10cbd3": {
|
|
2020
|
-
err: string;
|
|
2021
|
-
explain: string;
|
|
2022
|
-
};
|
|
2023
|
-
"0x431f269d": {
|
|
1986
|
+
"0xa31ab54a": {
|
|
2024
1987
|
err: string;
|
|
2025
1988
|
explain: string;
|
|
2026
1989
|
};
|
|
2027
|
-
"
|
|
1990
|
+
"0x69609fc6": {
|
|
2028
1991
|
err: string;
|
|
2029
1992
|
explain: string;
|
|
2030
1993
|
};
|
|
2031
|
-
"
|
|
1994
|
+
"0x095bf333": {
|
|
2032
1995
|
err: string;
|
|
2033
1996
|
explain: string;
|
|
2034
1997
|
};
|
|
2035
|
-
"
|
|
1998
|
+
"0xe46c1559": {
|
|
2036
1999
|
err: string;
|
|
2037
2000
|
explain: string;
|
|
2038
2001
|
};
|
|
2039
|
-
"
|
|
2002
|
+
"0x3024a2a2": {
|
|
2040
2003
|
err: string;
|
|
2041
2004
|
explain: string;
|
|
2042
2005
|
};
|
|
2043
|
-
"
|
|
2006
|
+
"0x5012e145": {
|
|
2044
2007
|
err: string;
|
|
2045
2008
|
explain: string;
|
|
2046
2009
|
};
|
|
2047
|
-
"
|
|
2010
|
+
"0x17255816": {
|
|
2048
2011
|
err: string;
|
|
2049
2012
|
explain: string;
|
|
2050
2013
|
};
|
|
2051
|
-
"
|
|
2014
|
+
"0xaf0b004c": {
|
|
2052
2015
|
err: string;
|
|
2053
2016
|
explain: string;
|
|
2054
2017
|
};
|
|
2055
|
-
"
|
|
2018
|
+
"0x4d5eeb49": {
|
|
2056
2019
|
err: string;
|
|
2057
2020
|
explain: string;
|
|
2058
2021
|
};
|
|
@@ -2060,147 +2023,147 @@ declare const Sumer: {
|
|
|
2060
2023
|
err: string;
|
|
2061
2024
|
explain: string;
|
|
2062
2025
|
};
|
|
2063
|
-
"
|
|
2026
|
+
"0x2534adb4": {
|
|
2064
2027
|
err: string;
|
|
2065
2028
|
explain: string;
|
|
2066
2029
|
};
|
|
2067
|
-
"
|
|
2030
|
+
"0xd7d248ba": {
|
|
2068
2031
|
err: string;
|
|
2069
2032
|
explain: string;
|
|
2070
2033
|
};
|
|
2071
|
-
"
|
|
2034
|
+
"0x12b0cb46": {
|
|
2072
2035
|
err: string;
|
|
2073
2036
|
explain: string;
|
|
2074
2037
|
};
|
|
2075
|
-
"
|
|
2038
|
+
"0xcd1fda9f": {
|
|
2076
2039
|
err: string;
|
|
2077
2040
|
explain: string;
|
|
2078
2041
|
};
|
|
2079
|
-
"
|
|
2042
|
+
"0x0fe80ef6": {
|
|
2080
2043
|
err: string;
|
|
2081
2044
|
explain: string;
|
|
2082
2045
|
};
|
|
2083
|
-
"
|
|
2046
|
+
"0x47556579": {
|
|
2084
2047
|
err: string;
|
|
2085
2048
|
explain: string;
|
|
2086
2049
|
};
|
|
2087
|
-
"
|
|
2050
|
+
"0xd1ec4b23": {
|
|
2088
2051
|
err: string;
|
|
2089
2052
|
explain: string;
|
|
2090
2053
|
};
|
|
2091
|
-
"
|
|
2054
|
+
"0x880ed0f3": {
|
|
2092
2055
|
err: string;
|
|
2093
2056
|
explain: string;
|
|
2094
2057
|
};
|
|
2095
|
-
"
|
|
2058
|
+
"0x8ddb9aa6": {
|
|
2096
2059
|
err: string;
|
|
2097
2060
|
explain: string;
|
|
2098
2061
|
};
|
|
2099
|
-
"
|
|
2062
|
+
"0x47435475": {
|
|
2100
2063
|
err: string;
|
|
2101
2064
|
explain: string;
|
|
2102
2065
|
};
|
|
2103
|
-
"
|
|
2066
|
+
"0x2f028cfb": {
|
|
2104
2067
|
err: string;
|
|
2105
2068
|
explain: string;
|
|
2106
2069
|
};
|
|
2107
|
-
"
|
|
2070
|
+
"0xcaab38a0": {
|
|
2108
2071
|
err: string;
|
|
2109
2072
|
explain: string;
|
|
2110
2073
|
};
|
|
2111
|
-
"
|
|
2074
|
+
"0xe610f326": {
|
|
2112
2075
|
err: string;
|
|
2113
2076
|
explain: string;
|
|
2114
2077
|
};
|
|
2115
|
-
"
|
|
2078
|
+
"0x8cd22d19": {
|
|
2116
2079
|
err: string;
|
|
2117
2080
|
explain: string;
|
|
2118
2081
|
};
|
|
2119
|
-
"
|
|
2082
|
+
"0x8e10cbd3": {
|
|
2120
2083
|
err: string;
|
|
2121
2084
|
explain: string;
|
|
2122
2085
|
};
|
|
2123
|
-
"
|
|
2086
|
+
"0x431f269d": {
|
|
2124
2087
|
err: string;
|
|
2125
2088
|
explain: string;
|
|
2126
2089
|
};
|
|
2127
|
-
"
|
|
2090
|
+
"0xd725cf1c": {
|
|
2128
2091
|
err: string;
|
|
2129
2092
|
explain: string;
|
|
2130
2093
|
};
|
|
2131
|
-
"
|
|
2094
|
+
"0x6f7bdc53": {
|
|
2132
2095
|
err: string;
|
|
2133
2096
|
explain: string;
|
|
2134
2097
|
};
|
|
2135
|
-
"
|
|
2098
|
+
"0xf630766b": {
|
|
2136
2099
|
err: string;
|
|
2137
2100
|
explain: string;
|
|
2138
2101
|
};
|
|
2139
|
-
"
|
|
2102
|
+
"0x2977522e": {
|
|
2140
2103
|
err: string;
|
|
2141
2104
|
explain: string;
|
|
2142
2105
|
};
|
|
2143
|
-
"
|
|
2106
|
+
"0xa2ec3a55": {
|
|
2144
2107
|
err: string;
|
|
2145
2108
|
explain: string;
|
|
2146
2109
|
};
|
|
2147
|
-
"
|
|
2110
|
+
"0x548497dc": {
|
|
2148
2111
|
err: string;
|
|
2149
2112
|
explain: string;
|
|
2150
2113
|
};
|
|
2151
|
-
"
|
|
2114
|
+
"0x373792d2": {
|
|
2152
2115
|
err: string;
|
|
2153
2116
|
explain: string;
|
|
2154
2117
|
};
|
|
2155
|
-
"
|
|
2118
|
+
"0x83aebebd": {
|
|
2156
2119
|
err: string;
|
|
2157
2120
|
explain: string;
|
|
2158
2121
|
};
|
|
2159
|
-
"
|
|
2122
|
+
"0xee39b725": {
|
|
2160
2123
|
err: string;
|
|
2161
2124
|
explain: string;
|
|
2162
2125
|
};
|
|
2163
|
-
"
|
|
2126
|
+
"0x2c5211c6": {
|
|
2164
2127
|
err: string;
|
|
2165
2128
|
explain: string;
|
|
2166
2129
|
};
|
|
2167
|
-
"
|
|
2130
|
+
"0x015f7140": {
|
|
2168
2131
|
err: string;
|
|
2169
2132
|
explain: string;
|
|
2170
2133
|
};
|
|
2171
|
-
"
|
|
2134
|
+
"0x3393b257": {
|
|
2172
2135
|
err: string;
|
|
2173
2136
|
explain: string;
|
|
2174
2137
|
};
|
|
2175
|
-
"
|
|
2138
|
+
"0xa42bc390": {
|
|
2176
2139
|
err: string;
|
|
2177
2140
|
explain: string;
|
|
2178
2141
|
};
|
|
2179
|
-
"
|
|
2142
|
+
"0xc714a2d5": {
|
|
2180
2143
|
err: string;
|
|
2181
2144
|
explain: string;
|
|
2182
2145
|
};
|
|
2183
|
-
"
|
|
2146
|
+
"0xa17754ef": {
|
|
2184
2147
|
err: string;
|
|
2185
2148
|
explain: string;
|
|
2186
2149
|
};
|
|
2187
|
-
"
|
|
2150
|
+
"0xe2ff51f2": {
|
|
2188
2151
|
err: string;
|
|
2189
2152
|
explain: string;
|
|
2190
2153
|
};
|
|
2191
|
-
"
|
|
2154
|
+
"0x0a2af062": {
|
|
2192
2155
|
err: string;
|
|
2193
2156
|
explain: string;
|
|
2194
2157
|
};
|
|
2195
|
-
"
|
|
2158
|
+
"0xee366600": {
|
|
2196
2159
|
err: string;
|
|
2197
2160
|
explain: string;
|
|
2198
2161
|
};
|
|
2199
|
-
"
|
|
2162
|
+
"0x4a8af12d": {
|
|
2200
2163
|
err: string;
|
|
2201
2164
|
explain: string;
|
|
2202
2165
|
};
|
|
2203
|
-
"
|
|
2166
|
+
"0xae664e2f": {
|
|
2204
2167
|
err: string;
|
|
2205
2168
|
explain: string;
|
|
2206
2169
|
};
|
|
@@ -2220,78 +2183,14 @@ declare const Sumer: {
|
|
|
2220
2183
|
err: string;
|
|
2221
2184
|
explain: string;
|
|
2222
2185
|
};
|
|
2223
|
-
"0x53d9d519": {
|
|
2224
|
-
err: string;
|
|
2225
|
-
explain: string;
|
|
2226
|
-
};
|
|
2227
2186
|
"0x7a2d3db3": {
|
|
2228
2187
|
err: string;
|
|
2229
2188
|
explain: string;
|
|
2230
2189
|
};
|
|
2231
|
-
"0xca22d86c": {
|
|
2232
|
-
err: string;
|
|
2233
|
-
explain: string;
|
|
2234
|
-
};
|
|
2235
2190
|
"0x7ccfa2dc": {
|
|
2236
2191
|
err: string;
|
|
2237
2192
|
explain: string;
|
|
2238
2193
|
};
|
|
2239
|
-
"0xa31ab54a": {
|
|
2240
|
-
err: string;
|
|
2241
|
-
explain: string;
|
|
2242
|
-
};
|
|
2243
|
-
"0x69609fc6": {
|
|
2244
|
-
err: string;
|
|
2245
|
-
explain: string;
|
|
2246
|
-
};
|
|
2247
|
-
"0x095bf333": {
|
|
2248
|
-
err: string;
|
|
2249
|
-
explain: string;
|
|
2250
|
-
};
|
|
2251
|
-
"0xe46c1559": {
|
|
2252
|
-
err: string;
|
|
2253
|
-
explain: string;
|
|
2254
|
-
};
|
|
2255
|
-
"0x3024a2a2": {
|
|
2256
|
-
err: string;
|
|
2257
|
-
explain: string;
|
|
2258
|
-
};
|
|
2259
|
-
"0x5012e145": {
|
|
2260
|
-
err: string;
|
|
2261
|
-
explain: string;
|
|
2262
|
-
};
|
|
2263
|
-
"0x17255816": {
|
|
2264
|
-
err: string;
|
|
2265
|
-
explain: string;
|
|
2266
|
-
};
|
|
2267
|
-
"0xaf0b004c": {
|
|
2268
|
-
err: string;
|
|
2269
|
-
explain: string;
|
|
2270
|
-
};
|
|
2271
|
-
"0x4d5eeb49": {
|
|
2272
|
-
err: string;
|
|
2273
|
-
explain: string;
|
|
2274
|
-
};
|
|
2275
|
-
"0x2534adb4": {
|
|
2276
|
-
err: string;
|
|
2277
|
-
explain: string;
|
|
2278
|
-
};
|
|
2279
|
-
"0xd7d248ba": {
|
|
2280
|
-
err: string;
|
|
2281
|
-
explain: string;
|
|
2282
|
-
};
|
|
2283
|
-
"0x12b0cb46": {
|
|
2284
|
-
err: string;
|
|
2285
|
-
explain: string;
|
|
2286
|
-
};
|
|
2287
|
-
"0xcd1fda9f": {
|
|
2288
|
-
err: string;
|
|
2289
|
-
explain: string;
|
|
2290
|
-
};
|
|
2291
|
-
"0x0fe80ef6": {
|
|
2292
|
-
err: string;
|
|
2293
|
-
explain: string;
|
|
2294
|
-
};
|
|
2295
2194
|
"0x1a8fefc3": {
|
|
2296
2195
|
err: string;
|
|
2297
2196
|
explain: string;
|
|
@@ -119,7 +119,7 @@ export interface AccountLiquidity extends BaseContract {
|
|
|
119
119
|
redeemTokens: BigNumberish,
|
|
120
120
|
borrowAmount: BigNumberish
|
|
121
121
|
], [
|
|
122
|
-
[bigint, bigint
|
|
122
|
+
[bigint, bigint]
|
|
123
123
|
], "view">;
|
|
124
124
|
getHypotheticalSafeLimit: TypedContractMethod<[
|
|
125
125
|
account: AddressLike,
|
|
@@ -181,7 +181,7 @@ export interface AccountLiquidity extends BaseContract {
|
|
|
181
181
|
redeemTokens: BigNumberish,
|
|
182
182
|
borrowAmount: BigNumberish
|
|
183
183
|
], [
|
|
184
|
-
[bigint, bigint
|
|
184
|
+
[bigint, bigint]
|
|
185
185
|
], "view">;
|
|
186
186
|
getFunction(nameOrSignature: "getHypotheticalSafeLimit"): TypedContractMethod<[
|
|
187
187
|
account: AddressLike,
|
|
@@ -1,11 +1,13 @@
|
|
|
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
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
mantissa: bigint
|
|
8
|
-
|
|
3
|
+
export declare namespace ExponentialNoErrorNew {
|
|
4
|
+
type ExpStruct = {
|
|
5
|
+
mantissa: BigNumberish;
|
|
6
|
+
};
|
|
7
|
+
type ExpStructOutput = [mantissa: bigint] & {
|
|
8
|
+
mantissa: bigint;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
9
11
|
export interface CompLogicInterface extends Interface {
|
|
10
12
|
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "_grantComp" | "_setCompSpeeds" | "_setContributorCompSpeed" | "calculateComp" | "claimSumer(address[],address[],bool,bool)" | "claimSumer(address)" | "claimSumer(address,address[])" | "comp" | "compAccrued" | "compBorrowSpeeds" | "compBorrowState" | "compBorrowerIndex" | "compContributorSpeeds" | "compInitialIndex" | "compSupplierIndex" | "compSupplySpeeds" | "compSupplyState" | "comptroller" | "distributeBorrowerComp" | "distributeSupplierComp" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "initialize" | "initializeMarket" | "lastContributorBlock" | "renounceRole" | "revokeRole" | "setCompSpeed" | "setComptroller" | "supportsInterface" | "updateCompBorrowIndex" | "updateCompSupplyIndex" | "updateContributorRewards"): FunctionFragment;
|
|
11
13
|
getEvent(nameOrSignatureOrTopic: "CompBorrowSpeedUpdated" | "CompGranted" | "CompSupplySpeedUpdated" | "ContributorCompSpeedUpdated" | "DistributedBorrowerComp" | "DistributedSupplierComp" | "Initialized" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetComptroller"): EventFragment;
|
|
@@ -28,7 +30,7 @@ export interface CompLogicInterface extends Interface {
|
|
|
28
30
|
encodeFunctionData(functionFragment: "compSupplySpeeds", values: [AddressLike]): string;
|
|
29
31
|
encodeFunctionData(functionFragment: "compSupplyState", values: [AddressLike]): string;
|
|
30
32
|
encodeFunctionData(functionFragment: "comptroller", values?: undefined): string;
|
|
31
|
-
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ExpStruct]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ExponentialNoErrorNew.ExpStruct]): string;
|
|
32
34
|
encodeFunctionData(functionFragment: "distributeSupplierComp", values: [AddressLike, AddressLike]): string;
|
|
33
35
|
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
34
36
|
encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
|
|
@@ -43,7 +45,7 @@ export interface CompLogicInterface extends Interface {
|
|
|
43
45
|
encodeFunctionData(functionFragment: "setCompSpeed", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
44
46
|
encodeFunctionData(functionFragment: "setComptroller", values: [AddressLike]): string;
|
|
45
47
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
46
|
-
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ExpStruct]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ExponentialNoErrorNew.ExpStruct]): string;
|
|
47
49
|
encodeFunctionData(functionFragment: "updateCompSupplyIndex", values: [AddressLike]): string;
|
|
48
50
|
encodeFunctionData(functionFragment: "updateContributorRewards", values: [AddressLike]): string;
|
|
49
51
|
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
|
@@ -352,7 +354,7 @@ export interface CompLogic extends BaseContract {
|
|
|
352
354
|
distributeBorrowerComp: TypedContractMethod<[
|
|
353
355
|
cToken: AddressLike,
|
|
354
356
|
borrower: AddressLike,
|
|
355
|
-
marketBorrowIndex: ExpStruct
|
|
357
|
+
marketBorrowIndex: ExponentialNoErrorNew.ExpStruct
|
|
356
358
|
], [
|
|
357
359
|
void
|
|
358
360
|
], "nonpayable">;
|
|
@@ -430,7 +432,7 @@ export interface CompLogic extends BaseContract {
|
|
|
430
432
|
], "view">;
|
|
431
433
|
updateCompBorrowIndex: TypedContractMethod<[
|
|
432
434
|
cToken: AddressLike,
|
|
433
|
-
marketBorrowIndex: ExpStruct
|
|
435
|
+
marketBorrowIndex: ExponentialNoErrorNew.ExpStruct
|
|
434
436
|
], [
|
|
435
437
|
void
|
|
436
438
|
], "nonpayable">;
|
|
@@ -519,7 +521,7 @@ export interface CompLogic extends BaseContract {
|
|
|
519
521
|
getFunction(nameOrSignature: "distributeBorrowerComp"): TypedContractMethod<[
|
|
520
522
|
cToken: AddressLike,
|
|
521
523
|
borrower: AddressLike,
|
|
522
|
-
marketBorrowIndex: ExpStruct
|
|
524
|
+
marketBorrowIndex: ExponentialNoErrorNew.ExpStruct
|
|
523
525
|
], [
|
|
524
526
|
void
|
|
525
527
|
], "nonpayable">;
|
|
@@ -585,7 +587,7 @@ export interface CompLogic extends BaseContract {
|
|
|
585
587
|
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
586
588
|
getFunction(nameOrSignature: "updateCompBorrowIndex"): TypedContractMethod<[
|
|
587
589
|
cToken: AddressLike,
|
|
588
|
-
marketBorrowIndex: ExpStruct
|
|
590
|
+
marketBorrowIndex: ExponentialNoErrorNew.ExpStruct
|
|
589
591
|
], [
|
|
590
592
|
void
|
|
591
593
|
], "nonpayable">;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
mantissa: bigint
|
|
8
|
-
|
|
3
|
+
export declare namespace ICompLogic {
|
|
4
|
+
type ExpStruct = {
|
|
5
|
+
mantissa: BigNumberish;
|
|
6
|
+
};
|
|
7
|
+
type ExpStructOutput = [mantissa: bigint] & {
|
|
8
|
+
mantissa: bigint;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
9
11
|
export interface ICompLogicInterface extends Interface {
|
|
10
12
|
getFunction(nameOrSignature: "distributeBorrowerComp" | "distributeSupplierComp" | "getRedemptionRate" | "initializeMarket" | "setCompSpeed" | "updateBaseRateFromRedemption" | "updateCompBorrowIndex" | "updateCompSupplyIndex"): FunctionFragment;
|
|
11
|
-
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ExpStruct]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "distributeBorrowerComp", values: [AddressLike, AddressLike, ICompLogic.ExpStruct]): string;
|
|
12
14
|
encodeFunctionData(functionFragment: "distributeSupplierComp", values: [AddressLike, AddressLike]): string;
|
|
13
15
|
encodeFunctionData(functionFragment: "getRedemptionRate", values?: undefined): string;
|
|
14
16
|
encodeFunctionData(functionFragment: "initializeMarket", values: [AddressLike, BigNumberish]): string;
|
|
15
17
|
encodeFunctionData(functionFragment: "setCompSpeed", values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
16
18
|
encodeFunctionData(functionFragment: "updateBaseRateFromRedemption", values: [BigNumberish, BigNumberish]): string;
|
|
17
|
-
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ExpStruct]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "updateCompBorrowIndex", values: [AddressLike, ICompLogic.ExpStruct]): string;
|
|
18
20
|
encodeFunctionData(functionFragment: "updateCompSupplyIndex", values: [AddressLike]): string;
|
|
19
21
|
decodeFunctionResult(functionFragment: "distributeBorrowerComp", data: BytesLike): Result;
|
|
20
22
|
decodeFunctionResult(functionFragment: "distributeSupplierComp", data: BytesLike): Result;
|
|
@@ -41,7 +43,7 @@ export interface ICompLogic extends BaseContract {
|
|
|
41
43
|
distributeBorrowerComp: TypedContractMethod<[
|
|
42
44
|
cToken: AddressLike,
|
|
43
45
|
borrower: AddressLike,
|
|
44
|
-
marketBorrowIndex: ExpStruct
|
|
46
|
+
marketBorrowIndex: ICompLogic.ExpStruct
|
|
45
47
|
], [
|
|
46
48
|
void
|
|
47
49
|
], "nonpayable">;
|
|
@@ -73,7 +75,7 @@ export interface ICompLogic extends BaseContract {
|
|
|
73
75
|
], "nonpayable">;
|
|
74
76
|
updateCompBorrowIndex: TypedContractMethod<[
|
|
75
77
|
cToken: AddressLike,
|
|
76
|
-
marketBorrowIndex: ExpStruct
|
|
78
|
+
marketBorrowIndex: ICompLogic.ExpStruct
|
|
77
79
|
], [
|
|
78
80
|
void
|
|
79
81
|
], "nonpayable">;
|
|
@@ -86,7 +88,7 @@ export interface ICompLogic extends BaseContract {
|
|
|
86
88
|
getFunction(nameOrSignature: "distributeBorrowerComp"): TypedContractMethod<[
|
|
87
89
|
cToken: AddressLike,
|
|
88
90
|
borrower: AddressLike,
|
|
89
|
-
marketBorrowIndex: ExpStruct
|
|
91
|
+
marketBorrowIndex: ICompLogic.ExpStruct
|
|
90
92
|
], [
|
|
91
93
|
void
|
|
92
94
|
], "nonpayable">;
|
|
@@ -118,7 +120,7 @@ export interface ICompLogic extends BaseContract {
|
|
|
118
120
|
], "nonpayable">;
|
|
119
121
|
getFunction(nameOrSignature: "updateCompBorrowIndex"): TypedContractMethod<[
|
|
120
122
|
cToken: AddressLike,
|
|
121
|
-
marketBorrowIndex: ExpStruct
|
|
123
|
+
marketBorrowIndex: ICompLogic.ExpStruct
|
|
122
124
|
], [
|
|
123
125
|
void
|
|
124
126
|
], "nonpayable">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../common";
|
|
3
|
+
export interface SumerErrorsInterface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface SumerErrors extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): SumerErrors;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: SumerErrorsInterface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SumerErrors.js","sourceRoot":"","sources":["../../../../src/typechain/contracts/SumerErrors.ts"],"names":[],"mappings":""}
|
|
@@ -17,4 +17,5 @@ export type { proxy };
|
|
|
17
17
|
import type * as stake from "./stake";
|
|
18
18
|
export type { stake };
|
|
19
19
|
export type { Multicall2 } from "./Multicall2";
|
|
20
|
+
export type { SumerErrors } from "./SumerErrors";
|
|
20
21
|
export type { SumerTimelockController } from "./SumerTimelockController";
|