@morpho-org/midnight-sdk 1.8.0 → 2.1.0-next.0
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/MIGRATION-v1-to-v2.md +6 -0
- package/README.md +17 -15
- package/lib/cjs/abis.d.ts +1870 -1461
- package/lib/cjs/abis.js +2151 -1626
- package/lib/cjs/api/MidnightApi.d.ts +10 -8
- package/lib/cjs/api/MidnightApi.js +13 -11
- package/lib/cjs/api/helpers.d.ts +2 -18
- package/lib/cjs/api/helpers.js +4 -5
- package/lib/cjs/api/types.d.ts +6 -5
- package/lib/cjs/api/version.generated.d.ts +1 -1
- package/lib/cjs/api/version.generated.js +2 -2
- package/lib/cjs/bundlesV2.d.ts +15 -0
- package/lib/cjs/bundlesV2.js +2 -0
- package/lib/cjs/errors.d.ts +13 -27
- package/lib/cjs/errors.js +8 -39
- package/lib/cjs/fetch/Ratifier.js +1 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/position/PositionUtils.js +11 -35
- package/lib/esm/abis.d.ts +1870 -1461
- package/lib/esm/abis.js +2150 -1625
- package/lib/esm/api/MidnightApi.d.ts +10 -8
- package/lib/esm/api/MidnightApi.js +13 -11
- package/lib/esm/api/helpers.d.ts +2 -18
- package/lib/esm/api/helpers.js +8 -5
- package/lib/esm/api/types.d.ts +6 -5
- package/lib/esm/api/version.generated.d.ts +1 -1
- package/lib/esm/api/version.generated.js +2 -2
- package/lib/esm/bundlesV2.d.ts +15 -0
- package/lib/esm/bundlesV2.js +1 -0
- package/lib/esm/errors.d.ts +13 -27
- package/lib/esm/errors.js +8 -36
- package/lib/esm/fetch/Ratifier.js +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/position/PositionUtils.js +12 -36
- package/package.json +8 -7
package/lib/esm/abis.d.ts
CHANGED
|
@@ -1940,994 +1940,669 @@ export declare const midnightAbi: readonly [{
|
|
|
1940
1940
|
readonly inputs: readonly [];
|
|
1941
1941
|
}];
|
|
1942
1942
|
/**
|
|
1943
|
-
* ABI JSON for the
|
|
1943
|
+
* Pinned ABI JSON for the EcrecoverRatifier.
|
|
1944
1944
|
*
|
|
1945
|
-
* Source: `morpho-org/
|
|
1946
|
-
* `src/
|
|
1947
|
-
* `morpho-org/midnight` `Market` and `Offer` struct fields exported by this package.
|
|
1945
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
1946
|
+
* `src/ratifiers/interfaces/IEcrecoverRatifier.sol`, Forge artifact `out/IEcrecoverRatifier.sol/IEcrecoverRatifier.json`.
|
|
1948
1947
|
*
|
|
1949
1948
|
* @example
|
|
1950
1949
|
* ```ts
|
|
1951
|
-
* import {
|
|
1950
|
+
* import { ecrecoverRatifierAbi } from "@morpho-org/midnight-sdk";
|
|
1952
1951
|
*
|
|
1953
|
-
* console.log(
|
|
1952
|
+
* console.log(ecrecoverRatifierAbi.length);
|
|
1954
1953
|
* ```
|
|
1955
1954
|
*/
|
|
1956
|
-
export declare const
|
|
1957
|
-
readonly
|
|
1958
|
-
readonly name: "ContinuousFeeAboveMax";
|
|
1959
|
-
readonly type: "error";
|
|
1960
|
-
}, {
|
|
1961
|
-
readonly inputs: readonly [];
|
|
1962
|
-
readonly name: "DeadlinePassed";
|
|
1963
|
-
readonly type: "error";
|
|
1964
|
-
}, {
|
|
1965
|
-
readonly inputs: readonly [];
|
|
1966
|
-
readonly name: "InconsistentMarket";
|
|
1967
|
-
readonly type: "error";
|
|
1968
|
-
}, {
|
|
1969
|
-
readonly inputs: readonly [];
|
|
1970
|
-
readonly name: "InconsistentSide";
|
|
1971
|
-
readonly type: "error";
|
|
1972
|
-
}, {
|
|
1973
|
-
readonly inputs: readonly [];
|
|
1974
|
-
readonly name: "NotReduceOnly";
|
|
1975
|
-
readonly type: "error";
|
|
1976
|
-
}, {
|
|
1977
|
-
readonly inputs: readonly [];
|
|
1978
|
-
readonly name: "OutOfOffers";
|
|
1979
|
-
readonly type: "error";
|
|
1980
|
-
}, {
|
|
1981
|
-
readonly inputs: readonly [];
|
|
1982
|
-
readonly name: "PctExceeded";
|
|
1983
|
-
readonly type: "error";
|
|
1984
|
-
}, {
|
|
1985
|
-
readonly inputs: readonly [];
|
|
1986
|
-
readonly name: "SellerAssetsTooLow";
|
|
1987
|
-
readonly type: "error";
|
|
1988
|
-
}, {
|
|
1989
|
-
readonly inputs: readonly [];
|
|
1990
|
-
readonly name: "Unauthorized";
|
|
1991
|
-
readonly type: "error";
|
|
1992
|
-
}, {
|
|
1993
|
-
readonly inputs: readonly [];
|
|
1994
|
-
readonly name: "UnitsTooHigh";
|
|
1995
|
-
readonly type: "error";
|
|
1996
|
-
}, {
|
|
1997
|
-
readonly inputs: readonly [];
|
|
1998
|
-
readonly name: "UnitsTooLow";
|
|
1999
|
-
readonly type: "error";
|
|
2000
|
-
}, {
|
|
2001
|
-
readonly inputs: readonly [];
|
|
1955
|
+
export declare const ecrecoverRatifierAbi: readonly [{
|
|
1956
|
+
readonly type: "function";
|
|
2002
1957
|
readonly name: "MIDNIGHT";
|
|
1958
|
+
readonly inputs: readonly [];
|
|
2003
1959
|
readonly outputs: readonly [{
|
|
2004
|
-
readonly internalType: "address";
|
|
2005
1960
|
readonly name: "";
|
|
2006
1961
|
readonly type: "address";
|
|
1962
|
+
readonly internalType: "address";
|
|
2007
1963
|
}];
|
|
2008
1964
|
readonly stateMutability: "view";
|
|
2009
|
-
readonly type: "function";
|
|
2010
1965
|
}, {
|
|
1966
|
+
readonly type: "function";
|
|
1967
|
+
readonly name: "cancelRoot";
|
|
2011
1968
|
readonly inputs: readonly [{
|
|
2012
|
-
readonly
|
|
2013
|
-
readonly name: "targetBuyerAssets";
|
|
2014
|
-
readonly type: "uint256";
|
|
2015
|
-
}, {
|
|
2016
|
-
readonly internalType: "uint256";
|
|
2017
|
-
readonly name: "minUnits";
|
|
2018
|
-
readonly type: "uint256";
|
|
2019
|
-
}, {
|
|
2020
|
-
readonly internalType: "address";
|
|
2021
|
-
readonly name: "taker";
|
|
1969
|
+
readonly name: "maker";
|
|
2022
1970
|
readonly type: "address";
|
|
1971
|
+
readonly internalType: "address";
|
|
2023
1972
|
}, {
|
|
2024
|
-
readonly
|
|
2025
|
-
readonly
|
|
2026
|
-
readonly
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
readonly type: "bytes";
|
|
2036
|
-
}];
|
|
2037
|
-
readonly internalType: "struct TokenPermit";
|
|
2038
|
-
readonly name: "loanTokenPermit";
|
|
1973
|
+
readonly name: "root";
|
|
1974
|
+
readonly type: "bytes32";
|
|
1975
|
+
readonly internalType: "bytes32";
|
|
1976
|
+
}];
|
|
1977
|
+
readonly outputs: readonly [];
|
|
1978
|
+
readonly stateMutability: "nonpayable";
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "function";
|
|
1981
|
+
readonly name: "isRatified";
|
|
1982
|
+
readonly inputs: readonly [{
|
|
1983
|
+
readonly name: "offer";
|
|
2039
1984
|
readonly type: "tuple";
|
|
2040
|
-
|
|
1985
|
+
readonly internalType: "struct Offer";
|
|
2041
1986
|
readonly components: readonly [{
|
|
1987
|
+
readonly name: "market";
|
|
1988
|
+
readonly type: "tuple";
|
|
1989
|
+
readonly internalType: "struct Market";
|
|
2042
1990
|
readonly components: readonly [{
|
|
1991
|
+
readonly name: "chainId";
|
|
1992
|
+
readonly type: "uint256";
|
|
1993
|
+
readonly internalType: "uint256";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly name: "midnight";
|
|
1996
|
+
readonly type: "address";
|
|
1997
|
+
readonly internalType: "address";
|
|
1998
|
+
}, {
|
|
1999
|
+
readonly name: "loanToken";
|
|
2000
|
+
readonly type: "address";
|
|
2001
|
+
readonly internalType: "address";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly name: "collateralParams";
|
|
2004
|
+
readonly type: "tuple[]";
|
|
2005
|
+
readonly internalType: "struct CollateralParams[]";
|
|
2043
2006
|
readonly components: readonly [{
|
|
2044
|
-
readonly
|
|
2045
|
-
readonly name: "chainId";
|
|
2046
|
-
readonly type: "uint256";
|
|
2047
|
-
}, {
|
|
2048
|
-
readonly internalType: "address";
|
|
2049
|
-
readonly name: "midnight";
|
|
2007
|
+
readonly name: "token";
|
|
2050
2008
|
readonly type: "address";
|
|
2051
|
-
}, {
|
|
2052
2009
|
readonly internalType: "address";
|
|
2053
|
-
readonly name: "loanToken";
|
|
2054
|
-
readonly type: "address";
|
|
2055
|
-
}, {
|
|
2056
|
-
readonly components: readonly [{
|
|
2057
|
-
readonly internalType: "address";
|
|
2058
|
-
readonly name: "token";
|
|
2059
|
-
readonly type: "address";
|
|
2060
|
-
}, {
|
|
2061
|
-
readonly internalType: "uint256";
|
|
2062
|
-
readonly name: "lltv";
|
|
2063
|
-
readonly type: "uint256";
|
|
2064
|
-
}, {
|
|
2065
|
-
readonly internalType: "uint256";
|
|
2066
|
-
readonly name: "liquidationCursor";
|
|
2067
|
-
readonly type: "uint256";
|
|
2068
|
-
}, {
|
|
2069
|
-
readonly internalType: "address";
|
|
2070
|
-
readonly name: "oracle";
|
|
2071
|
-
readonly type: "address";
|
|
2072
|
-
}];
|
|
2073
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2074
|
-
readonly name: "collateralParams";
|
|
2075
|
-
readonly type: "tuple[]";
|
|
2076
2010
|
}, {
|
|
2077
|
-
readonly
|
|
2078
|
-
readonly name: "maturity";
|
|
2011
|
+
readonly name: "lltv";
|
|
2079
2012
|
readonly type: "uint256";
|
|
2080
|
-
}, {
|
|
2081
2013
|
readonly internalType: "uint256";
|
|
2082
|
-
|
|
2014
|
+
}, {
|
|
2015
|
+
readonly name: "liquidationCursor";
|
|
2083
2016
|
readonly type: "uint256";
|
|
2017
|
+
readonly internalType: "uint256";
|
|
2084
2018
|
}, {
|
|
2085
|
-
readonly
|
|
2086
|
-
readonly name: "enterGate";
|
|
2019
|
+
readonly name: "oracle";
|
|
2087
2020
|
readonly type: "address";
|
|
2088
|
-
}, {
|
|
2089
2021
|
readonly internalType: "address";
|
|
2090
|
-
readonly name: "liquidatorGate";
|
|
2091
|
-
readonly type: "address";
|
|
2092
2022
|
}];
|
|
2093
|
-
readonly internalType: "struct Market";
|
|
2094
|
-
readonly name: "market";
|
|
2095
|
-
readonly type: "tuple";
|
|
2096
|
-
}, {
|
|
2097
|
-
readonly internalType: "bool";
|
|
2098
|
-
readonly name: "buy";
|
|
2099
|
-
readonly type: "bool";
|
|
2100
|
-
}, {
|
|
2101
|
-
readonly internalType: "address";
|
|
2102
|
-
readonly name: "maker";
|
|
2103
|
-
readonly type: "address";
|
|
2104
2023
|
}, {
|
|
2105
|
-
readonly
|
|
2106
|
-
readonly name: "start";
|
|
2024
|
+
readonly name: "maturity";
|
|
2107
2025
|
readonly type: "uint256";
|
|
2108
|
-
}, {
|
|
2109
2026
|
readonly internalType: "uint256";
|
|
2110
|
-
readonly name: "expiry";
|
|
2111
|
-
readonly type: "uint256";
|
|
2112
2027
|
}, {
|
|
2113
|
-
readonly
|
|
2114
|
-
readonly name: "tick";
|
|
2028
|
+
readonly name: "rcfThreshold";
|
|
2115
2029
|
readonly type: "uint256";
|
|
2030
|
+
readonly internalType: "uint256";
|
|
2116
2031
|
}, {
|
|
2117
|
-
readonly
|
|
2118
|
-
readonly name: "group";
|
|
2119
|
-
readonly type: "bytes32";
|
|
2120
|
-
}, {
|
|
2121
|
-
readonly internalType: "address";
|
|
2122
|
-
readonly name: "callback";
|
|
2032
|
+
readonly name: "enterGate";
|
|
2123
2033
|
readonly type: "address";
|
|
2124
|
-
}, {
|
|
2125
|
-
readonly internalType: "bytes";
|
|
2126
|
-
readonly name: "callbackData";
|
|
2127
|
-
readonly type: "bytes";
|
|
2128
|
-
}, {
|
|
2129
2034
|
readonly internalType: "address";
|
|
2130
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
2131
|
-
readonly type: "address";
|
|
2132
2035
|
}, {
|
|
2133
|
-
readonly
|
|
2134
|
-
readonly name: "ratifier";
|
|
2036
|
+
readonly name: "liquidatorGate";
|
|
2135
2037
|
readonly type: "address";
|
|
2136
|
-
|
|
2137
|
-
readonly internalType: "bool";
|
|
2138
|
-
readonly name: "reduceOnly";
|
|
2139
|
-
readonly type: "bool";
|
|
2140
|
-
}, {
|
|
2141
|
-
readonly internalType: "uint128";
|
|
2142
|
-
readonly name: "maxUnits";
|
|
2143
|
-
readonly type: "uint128";
|
|
2144
|
-
}, {
|
|
2145
|
-
readonly internalType: "uint128";
|
|
2146
|
-
readonly name: "maxAssets";
|
|
2147
|
-
readonly type: "uint128";
|
|
2148
|
-
}, {
|
|
2149
|
-
readonly internalType: "uint256";
|
|
2150
|
-
readonly name: "continuousFeeCap";
|
|
2151
|
-
readonly type: "uint256";
|
|
2038
|
+
readonly internalType: "address";
|
|
2152
2039
|
}];
|
|
2153
|
-
readonly internalType: "struct Offer";
|
|
2154
|
-
readonly name: "offer";
|
|
2155
|
-
readonly type: "tuple";
|
|
2156
2040
|
}, {
|
|
2157
|
-
readonly
|
|
2158
|
-
readonly
|
|
2159
|
-
readonly
|
|
2041
|
+
readonly name: "buy";
|
|
2042
|
+
readonly type: "bool";
|
|
2043
|
+
readonly internalType: "bool";
|
|
2160
2044
|
}, {
|
|
2161
|
-
readonly
|
|
2162
|
-
readonly
|
|
2045
|
+
readonly name: "maker";
|
|
2046
|
+
readonly type: "address";
|
|
2047
|
+
readonly internalType: "address";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly name: "start";
|
|
2163
2050
|
readonly type: "uint256";
|
|
2164
|
-
}];
|
|
2165
|
-
readonly internalType: "struct OfferFill[]";
|
|
2166
|
-
readonly name: "offerFills";
|
|
2167
|
-
readonly type: "tuple[]";
|
|
2168
|
-
}, {
|
|
2169
|
-
readonly components: readonly [{
|
|
2170
2051
|
readonly internalType: "uint256";
|
|
2171
|
-
readonly name: "collateralIndex";
|
|
2172
|
-
readonly type: "uint256";
|
|
2173
2052
|
}, {
|
|
2053
|
+
readonly name: "expiry";
|
|
2054
|
+
readonly type: "uint256";
|
|
2174
2055
|
readonly internalType: "uint256";
|
|
2175
|
-
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly name: "tick";
|
|
2176
2058
|
readonly type: "uint256";
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2059
|
+
readonly internalType: "uint256";
|
|
2060
|
+
}, {
|
|
2061
|
+
readonly name: "group";
|
|
2062
|
+
readonly type: "bytes32";
|
|
2063
|
+
readonly internalType: "bytes32";
|
|
2064
|
+
}, {
|
|
2065
|
+
readonly name: "callback";
|
|
2066
|
+
readonly type: "address";
|
|
2067
|
+
readonly internalType: "address";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly name: "callbackData";
|
|
2070
|
+
readonly type: "bytes";
|
|
2071
|
+
readonly internalType: "bytes";
|
|
2072
|
+
}, {
|
|
2073
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
2074
|
+
readonly type: "address";
|
|
2075
|
+
readonly internalType: "address";
|
|
2076
|
+
}, {
|
|
2077
|
+
readonly name: "ratifier";
|
|
2078
|
+
readonly type: "address";
|
|
2079
|
+
readonly internalType: "address";
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly name: "reduceOnly";
|
|
2082
|
+
readonly type: "bool";
|
|
2083
|
+
readonly internalType: "bool";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly name: "maxUnits";
|
|
2086
|
+
readonly type: "uint128";
|
|
2087
|
+
readonly internalType: "uint128";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly name: "maxAssets";
|
|
2090
|
+
readonly type: "uint128";
|
|
2091
|
+
readonly internalType: "uint128";
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly name: "continuousFeeCap";
|
|
2094
|
+
readonly type: "uint256";
|
|
2095
|
+
readonly internalType: "uint256";
|
|
2096
|
+
}];
|
|
2197
2097
|
}, {
|
|
2198
|
-
readonly
|
|
2199
|
-
readonly
|
|
2200
|
-
readonly
|
|
2098
|
+
readonly name: "ratifierData";
|
|
2099
|
+
readonly type: "bytes";
|
|
2100
|
+
readonly internalType: "bytes";
|
|
2101
|
+
}, {
|
|
2102
|
+
readonly name: "taker";
|
|
2103
|
+
readonly type: "address";
|
|
2104
|
+
readonly internalType: "address";
|
|
2201
2105
|
}];
|
|
2202
|
-
readonly
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2106
|
+
readonly outputs: readonly [{
|
|
2107
|
+
readonly name: "";
|
|
2108
|
+
readonly type: "bytes32";
|
|
2109
|
+
readonly internalType: "bytes32";
|
|
2110
|
+
}];
|
|
2111
|
+
readonly stateMutability: "view";
|
|
2206
2112
|
}, {
|
|
2113
|
+
readonly type: "function";
|
|
2114
|
+
readonly name: "isRootCanceled";
|
|
2207
2115
|
readonly inputs: readonly [{
|
|
2208
|
-
readonly
|
|
2209
|
-
readonly name: "targetUnits";
|
|
2210
|
-
readonly type: "uint256";
|
|
2211
|
-
}, {
|
|
2212
|
-
readonly internalType: "uint256";
|
|
2213
|
-
readonly name: "maxBuyerAssets";
|
|
2214
|
-
readonly type: "uint256";
|
|
2215
|
-
}, {
|
|
2216
|
-
readonly internalType: "address";
|
|
2217
|
-
readonly name: "taker";
|
|
2116
|
+
readonly name: "maker";
|
|
2218
2117
|
readonly type: "address";
|
|
2118
|
+
readonly internalType: "address";
|
|
2219
2119
|
}, {
|
|
2220
|
-
readonly
|
|
2221
|
-
readonly
|
|
2120
|
+
readonly name: "root";
|
|
2121
|
+
readonly type: "bytes32";
|
|
2122
|
+
readonly internalType: "bytes32";
|
|
2123
|
+
}];
|
|
2124
|
+
readonly outputs: readonly [{
|
|
2125
|
+
readonly name: "";
|
|
2222
2126
|
readonly type: "bool";
|
|
2127
|
+
readonly internalType: "bool";
|
|
2128
|
+
}];
|
|
2129
|
+
readonly stateMutability: "view";
|
|
2130
|
+
}, {
|
|
2131
|
+
readonly type: "event";
|
|
2132
|
+
readonly name: "CancelRoot";
|
|
2133
|
+
readonly inputs: readonly [{
|
|
2134
|
+
readonly name: "caller";
|
|
2135
|
+
readonly type: "address";
|
|
2136
|
+
readonly indexed: true;
|
|
2137
|
+
readonly internalType: "address";
|
|
2223
2138
|
}, {
|
|
2224
|
-
readonly
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
}, {
|
|
2229
|
-
readonly internalType: "bytes";
|
|
2230
|
-
readonly name: "data";
|
|
2231
|
-
readonly type: "bytes";
|
|
2232
|
-
}];
|
|
2233
|
-
readonly internalType: "struct TokenPermit";
|
|
2234
|
-
readonly name: "loanTokenPermit";
|
|
2235
|
-
readonly type: "tuple";
|
|
2139
|
+
readonly name: "maker";
|
|
2140
|
+
readonly type: "address";
|
|
2141
|
+
readonly indexed: true;
|
|
2142
|
+
readonly internalType: "address";
|
|
2236
2143
|
}, {
|
|
2144
|
+
readonly name: "root";
|
|
2145
|
+
readonly type: "bytes32";
|
|
2146
|
+
readonly indexed: true;
|
|
2147
|
+
readonly internalType: "bytes32";
|
|
2148
|
+
}];
|
|
2149
|
+
readonly anonymous: false;
|
|
2150
|
+
}, {
|
|
2151
|
+
readonly type: "error";
|
|
2152
|
+
readonly name: "InvalidProof";
|
|
2153
|
+
readonly inputs: readonly [];
|
|
2154
|
+
}, {
|
|
2155
|
+
readonly type: "error";
|
|
2156
|
+
readonly name: "InvalidSignature";
|
|
2157
|
+
readonly inputs: readonly [];
|
|
2158
|
+
}, {
|
|
2159
|
+
readonly type: "error";
|
|
2160
|
+
readonly name: "RootCanceled";
|
|
2161
|
+
readonly inputs: readonly [];
|
|
2162
|
+
}, {
|
|
2163
|
+
readonly type: "error";
|
|
2164
|
+
readonly name: "Unauthorized";
|
|
2165
|
+
readonly inputs: readonly [];
|
|
2166
|
+
}];
|
|
2167
|
+
/**
|
|
2168
|
+
* Pinned ABI JSON for the SetterRatifier.
|
|
2169
|
+
*
|
|
2170
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
2171
|
+
* `src/ratifiers/interfaces/ISetterRatifier.sol`, Forge artifact `out/ISetterRatifier.sol/ISetterRatifier.json`.
|
|
2172
|
+
*
|
|
2173
|
+
* @example
|
|
2174
|
+
* ```ts
|
|
2175
|
+
* import { setterRatifierAbi } from "@morpho-org/midnight-sdk";
|
|
2176
|
+
*
|
|
2177
|
+
* console.log(setterRatifierAbi.length);
|
|
2178
|
+
* ```
|
|
2179
|
+
*/
|
|
2180
|
+
export declare const setterRatifierAbi: readonly [{
|
|
2181
|
+
readonly type: "function";
|
|
2182
|
+
readonly name: "MIDNIGHT";
|
|
2183
|
+
readonly inputs: readonly [];
|
|
2184
|
+
readonly outputs: readonly [{
|
|
2185
|
+
readonly name: "";
|
|
2186
|
+
readonly type: "address";
|
|
2187
|
+
readonly internalType: "address";
|
|
2188
|
+
}];
|
|
2189
|
+
readonly stateMutability: "view";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly type: "function";
|
|
2192
|
+
readonly name: "isRatified";
|
|
2193
|
+
readonly inputs: readonly [{
|
|
2194
|
+
readonly name: "offer";
|
|
2195
|
+
readonly type: "tuple";
|
|
2196
|
+
readonly internalType: "struct Offer";
|
|
2237
2197
|
readonly components: readonly [{
|
|
2198
|
+
readonly name: "market";
|
|
2199
|
+
readonly type: "tuple";
|
|
2200
|
+
readonly internalType: "struct Market";
|
|
2238
2201
|
readonly components: readonly [{
|
|
2202
|
+
readonly name: "chainId";
|
|
2203
|
+
readonly type: "uint256";
|
|
2204
|
+
readonly internalType: "uint256";
|
|
2205
|
+
}, {
|
|
2206
|
+
readonly name: "midnight";
|
|
2207
|
+
readonly type: "address";
|
|
2208
|
+
readonly internalType: "address";
|
|
2209
|
+
}, {
|
|
2210
|
+
readonly name: "loanToken";
|
|
2211
|
+
readonly type: "address";
|
|
2212
|
+
readonly internalType: "address";
|
|
2213
|
+
}, {
|
|
2214
|
+
readonly name: "collateralParams";
|
|
2215
|
+
readonly type: "tuple[]";
|
|
2216
|
+
readonly internalType: "struct CollateralParams[]";
|
|
2239
2217
|
readonly components: readonly [{
|
|
2240
|
-
readonly
|
|
2241
|
-
readonly name: "chainId";
|
|
2242
|
-
readonly type: "uint256";
|
|
2243
|
-
}, {
|
|
2244
|
-
readonly internalType: "address";
|
|
2245
|
-
readonly name: "midnight";
|
|
2218
|
+
readonly name: "token";
|
|
2246
2219
|
readonly type: "address";
|
|
2247
|
-
}, {
|
|
2248
2220
|
readonly internalType: "address";
|
|
2249
|
-
readonly name: "loanToken";
|
|
2250
|
-
readonly type: "address";
|
|
2251
|
-
}, {
|
|
2252
|
-
readonly components: readonly [{
|
|
2253
|
-
readonly internalType: "address";
|
|
2254
|
-
readonly name: "token";
|
|
2255
|
-
readonly type: "address";
|
|
2256
|
-
}, {
|
|
2257
|
-
readonly internalType: "uint256";
|
|
2258
|
-
readonly name: "lltv";
|
|
2259
|
-
readonly type: "uint256";
|
|
2260
|
-
}, {
|
|
2261
|
-
readonly internalType: "uint256";
|
|
2262
|
-
readonly name: "liquidationCursor";
|
|
2263
|
-
readonly type: "uint256";
|
|
2264
|
-
}, {
|
|
2265
|
-
readonly internalType: "address";
|
|
2266
|
-
readonly name: "oracle";
|
|
2267
|
-
readonly type: "address";
|
|
2268
|
-
}];
|
|
2269
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2270
|
-
readonly name: "collateralParams";
|
|
2271
|
-
readonly type: "tuple[]";
|
|
2272
2221
|
}, {
|
|
2273
|
-
readonly
|
|
2274
|
-
readonly name: "maturity";
|
|
2222
|
+
readonly name: "lltv";
|
|
2275
2223
|
readonly type: "uint256";
|
|
2276
|
-
}, {
|
|
2277
2224
|
readonly internalType: "uint256";
|
|
2278
|
-
|
|
2225
|
+
}, {
|
|
2226
|
+
readonly name: "liquidationCursor";
|
|
2279
2227
|
readonly type: "uint256";
|
|
2228
|
+
readonly internalType: "uint256";
|
|
2280
2229
|
}, {
|
|
2281
|
-
readonly
|
|
2282
|
-
readonly name: "enterGate";
|
|
2230
|
+
readonly name: "oracle";
|
|
2283
2231
|
readonly type: "address";
|
|
2284
|
-
}, {
|
|
2285
2232
|
readonly internalType: "address";
|
|
2286
|
-
readonly name: "liquidatorGate";
|
|
2287
|
-
readonly type: "address";
|
|
2288
2233
|
}];
|
|
2289
|
-
readonly internalType: "struct Market";
|
|
2290
|
-
readonly name: "market";
|
|
2291
|
-
readonly type: "tuple";
|
|
2292
|
-
}, {
|
|
2293
|
-
readonly internalType: "bool";
|
|
2294
|
-
readonly name: "buy";
|
|
2295
|
-
readonly type: "bool";
|
|
2296
|
-
}, {
|
|
2297
|
-
readonly internalType: "address";
|
|
2298
|
-
readonly name: "maker";
|
|
2299
|
-
readonly type: "address";
|
|
2300
2234
|
}, {
|
|
2301
|
-
readonly
|
|
2302
|
-
readonly name: "start";
|
|
2235
|
+
readonly name: "maturity";
|
|
2303
2236
|
readonly type: "uint256";
|
|
2304
|
-
}, {
|
|
2305
2237
|
readonly internalType: "uint256";
|
|
2306
|
-
readonly name: "expiry";
|
|
2307
|
-
readonly type: "uint256";
|
|
2308
2238
|
}, {
|
|
2309
|
-
readonly
|
|
2310
|
-
readonly name: "tick";
|
|
2239
|
+
readonly name: "rcfThreshold";
|
|
2311
2240
|
readonly type: "uint256";
|
|
2241
|
+
readonly internalType: "uint256";
|
|
2312
2242
|
}, {
|
|
2313
|
-
readonly
|
|
2314
|
-
readonly name: "group";
|
|
2315
|
-
readonly type: "bytes32";
|
|
2316
|
-
}, {
|
|
2317
|
-
readonly internalType: "address";
|
|
2318
|
-
readonly name: "callback";
|
|
2243
|
+
readonly name: "enterGate";
|
|
2319
2244
|
readonly type: "address";
|
|
2320
|
-
}, {
|
|
2321
|
-
readonly internalType: "bytes";
|
|
2322
|
-
readonly name: "callbackData";
|
|
2323
|
-
readonly type: "bytes";
|
|
2324
|
-
}, {
|
|
2325
2245
|
readonly internalType: "address";
|
|
2326
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
2327
|
-
readonly type: "address";
|
|
2328
2246
|
}, {
|
|
2329
|
-
readonly
|
|
2330
|
-
readonly name: "ratifier";
|
|
2247
|
+
readonly name: "liquidatorGate";
|
|
2331
2248
|
readonly type: "address";
|
|
2332
|
-
|
|
2333
|
-
readonly internalType: "bool";
|
|
2334
|
-
readonly name: "reduceOnly";
|
|
2335
|
-
readonly type: "bool";
|
|
2336
|
-
}, {
|
|
2337
|
-
readonly internalType: "uint128";
|
|
2338
|
-
readonly name: "maxUnits";
|
|
2339
|
-
readonly type: "uint128";
|
|
2340
|
-
}, {
|
|
2341
|
-
readonly internalType: "uint128";
|
|
2342
|
-
readonly name: "maxAssets";
|
|
2343
|
-
readonly type: "uint128";
|
|
2344
|
-
}, {
|
|
2345
|
-
readonly internalType: "uint256";
|
|
2346
|
-
readonly name: "continuousFeeCap";
|
|
2347
|
-
readonly type: "uint256";
|
|
2249
|
+
readonly internalType: "address";
|
|
2348
2250
|
}];
|
|
2349
|
-
readonly internalType: "struct Offer";
|
|
2350
|
-
readonly name: "offer";
|
|
2351
|
-
readonly type: "tuple";
|
|
2352
2251
|
}, {
|
|
2353
|
-
readonly
|
|
2354
|
-
readonly
|
|
2355
|
-
readonly
|
|
2252
|
+
readonly name: "buy";
|
|
2253
|
+
readonly type: "bool";
|
|
2254
|
+
readonly internalType: "bool";
|
|
2356
2255
|
}, {
|
|
2357
|
-
readonly
|
|
2358
|
-
readonly
|
|
2256
|
+
readonly name: "maker";
|
|
2257
|
+
readonly type: "address";
|
|
2258
|
+
readonly internalType: "address";
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly name: "start";
|
|
2359
2261
|
readonly type: "uint256";
|
|
2360
|
-
}];
|
|
2361
|
-
readonly internalType: "struct OfferFill[]";
|
|
2362
|
-
readonly name: "offerFills";
|
|
2363
|
-
readonly type: "tuple[]";
|
|
2364
|
-
}, {
|
|
2365
|
-
readonly components: readonly [{
|
|
2366
2262
|
readonly internalType: "uint256";
|
|
2367
|
-
readonly name: "collateralIndex";
|
|
2368
|
-
readonly type: "uint256";
|
|
2369
2263
|
}, {
|
|
2370
|
-
readonly
|
|
2371
|
-
readonly name: "assets";
|
|
2264
|
+
readonly name: "expiry";
|
|
2372
2265
|
readonly type: "uint256";
|
|
2373
|
-
}];
|
|
2374
|
-
readonly internalType: "struct CollateralWithdrawal[]";
|
|
2375
|
-
readonly name: "collateralWithdrawals";
|
|
2376
|
-
readonly type: "tuple[]";
|
|
2377
|
-
}, {
|
|
2378
|
-
readonly internalType: "address";
|
|
2379
|
-
readonly name: "collateralReceiver";
|
|
2380
|
-
readonly type: "address";
|
|
2381
|
-
}, {
|
|
2382
|
-
readonly internalType: "uint256";
|
|
2383
|
-
readonly name: "referralFeePct";
|
|
2384
|
-
readonly type: "uint256";
|
|
2385
|
-
}, {
|
|
2386
|
-
readonly internalType: "address";
|
|
2387
|
-
readonly name: "referralFeeRecipient";
|
|
2388
|
-
readonly type: "address";
|
|
2389
|
-
}, {
|
|
2390
|
-
readonly internalType: "uint256";
|
|
2391
|
-
readonly name: "maxContinuousFee";
|
|
2392
|
-
readonly type: "uint256";
|
|
2393
|
-
}, {
|
|
2394
|
-
readonly internalType: "uint256";
|
|
2395
|
-
readonly name: "deadline";
|
|
2396
|
-
readonly type: "uint256";
|
|
2397
|
-
}];
|
|
2398
|
-
readonly name: "midnightBundlesV1BuyWithUnitsTargetAndWithdrawCollateral";
|
|
2399
|
-
readonly outputs: readonly [];
|
|
2400
|
-
readonly stateMutability: "nonpayable";
|
|
2401
|
-
readonly type: "function";
|
|
2402
|
-
}, {
|
|
2403
|
-
readonly inputs: readonly [{
|
|
2404
|
-
readonly components: readonly [{
|
|
2405
2266
|
readonly internalType: "uint256";
|
|
2406
|
-
|
|
2267
|
+
}, {
|
|
2268
|
+
readonly name: "tick";
|
|
2407
2269
|
readonly type: "uint256";
|
|
2270
|
+
readonly internalType: "uint256";
|
|
2408
2271
|
}, {
|
|
2409
|
-
readonly
|
|
2410
|
-
readonly
|
|
2411
|
-
readonly
|
|
2272
|
+
readonly name: "group";
|
|
2273
|
+
readonly type: "bytes32";
|
|
2274
|
+
readonly internalType: "bytes32";
|
|
2412
2275
|
}, {
|
|
2413
|
-
readonly
|
|
2414
|
-
readonly name: "loanToken";
|
|
2276
|
+
readonly name: "callback";
|
|
2415
2277
|
readonly type: "address";
|
|
2278
|
+
readonly internalType: "address";
|
|
2416
2279
|
}, {
|
|
2417
|
-
readonly
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
readonly type: "address";
|
|
2421
|
-
}, {
|
|
2422
|
-
readonly internalType: "uint256";
|
|
2423
|
-
readonly name: "lltv";
|
|
2424
|
-
readonly type: "uint256";
|
|
2425
|
-
}, {
|
|
2426
|
-
readonly internalType: "uint256";
|
|
2427
|
-
readonly name: "liquidationCursor";
|
|
2428
|
-
readonly type: "uint256";
|
|
2429
|
-
}, {
|
|
2430
|
-
readonly internalType: "address";
|
|
2431
|
-
readonly name: "oracle";
|
|
2432
|
-
readonly type: "address";
|
|
2433
|
-
}];
|
|
2434
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2435
|
-
readonly name: "collateralParams";
|
|
2436
|
-
readonly type: "tuple[]";
|
|
2437
|
-
}, {
|
|
2438
|
-
readonly internalType: "uint256";
|
|
2439
|
-
readonly name: "maturity";
|
|
2440
|
-
readonly type: "uint256";
|
|
2441
|
-
}, {
|
|
2442
|
-
readonly internalType: "uint256";
|
|
2443
|
-
readonly name: "rcfThreshold";
|
|
2444
|
-
readonly type: "uint256";
|
|
2280
|
+
readonly name: "callbackData";
|
|
2281
|
+
readonly type: "bytes";
|
|
2282
|
+
readonly internalType: "bytes";
|
|
2445
2283
|
}, {
|
|
2446
|
-
readonly
|
|
2447
|
-
readonly name: "enterGate";
|
|
2284
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
2448
2285
|
readonly type: "address";
|
|
2449
|
-
}, {
|
|
2450
2286
|
readonly internalType: "address";
|
|
2451
|
-
|
|
2287
|
+
}, {
|
|
2288
|
+
readonly name: "ratifier";
|
|
2452
2289
|
readonly type: "address";
|
|
2453
|
-
|
|
2454
|
-
readonly internalType: "struct Market";
|
|
2455
|
-
readonly name: "market";
|
|
2456
|
-
readonly type: "tuple";
|
|
2457
|
-
}, {
|
|
2458
|
-
readonly internalType: "uint256";
|
|
2459
|
-
readonly name: "assets";
|
|
2460
|
-
readonly type: "uint256";
|
|
2461
|
-
}, {
|
|
2462
|
-
readonly internalType: "address";
|
|
2463
|
-
readonly name: "onBehalf";
|
|
2464
|
-
readonly type: "address";
|
|
2465
|
-
}, {
|
|
2466
|
-
readonly components: readonly [{
|
|
2467
|
-
readonly internalType: "enum PermitKind";
|
|
2468
|
-
readonly name: "kind";
|
|
2469
|
-
readonly type: "uint8";
|
|
2290
|
+
readonly internalType: "address";
|
|
2470
2291
|
}, {
|
|
2471
|
-
readonly
|
|
2472
|
-
readonly
|
|
2473
|
-
readonly
|
|
2474
|
-
}];
|
|
2475
|
-
readonly internalType: "struct TokenPermit";
|
|
2476
|
-
readonly name: "loanTokenPermit";
|
|
2477
|
-
readonly type: "tuple";
|
|
2478
|
-
}, {
|
|
2479
|
-
readonly components: readonly [{
|
|
2480
|
-
readonly internalType: "uint256";
|
|
2481
|
-
readonly name: "collateralIndex";
|
|
2482
|
-
readonly type: "uint256";
|
|
2292
|
+
readonly name: "reduceOnly";
|
|
2293
|
+
readonly type: "bool";
|
|
2294
|
+
readonly internalType: "bool";
|
|
2483
2295
|
}, {
|
|
2484
|
-
readonly
|
|
2485
|
-
readonly
|
|
2296
|
+
readonly name: "maxUnits";
|
|
2297
|
+
readonly type: "uint128";
|
|
2298
|
+
readonly internalType: "uint128";
|
|
2299
|
+
}, {
|
|
2300
|
+
readonly name: "maxAssets";
|
|
2301
|
+
readonly type: "uint128";
|
|
2302
|
+
readonly internalType: "uint128";
|
|
2303
|
+
}, {
|
|
2304
|
+
readonly name: "continuousFeeCap";
|
|
2486
2305
|
readonly type: "uint256";
|
|
2306
|
+
readonly internalType: "uint256";
|
|
2487
2307
|
}];
|
|
2488
|
-
readonly internalType: "struct CollateralWithdrawal[]";
|
|
2489
|
-
readonly name: "collateralWithdrawals";
|
|
2490
|
-
readonly type: "tuple[]";
|
|
2491
2308
|
}, {
|
|
2309
|
+
readonly name: "ratifierData";
|
|
2310
|
+
readonly type: "bytes";
|
|
2311
|
+
readonly internalType: "bytes";
|
|
2312
|
+
}, {
|
|
2313
|
+
readonly name: "taker";
|
|
2314
|
+
readonly type: "address";
|
|
2492
2315
|
readonly internalType: "address";
|
|
2493
|
-
|
|
2316
|
+
}];
|
|
2317
|
+
readonly outputs: readonly [{
|
|
2318
|
+
readonly name: "";
|
|
2319
|
+
readonly type: "bytes32";
|
|
2320
|
+
readonly internalType: "bytes32";
|
|
2321
|
+
}];
|
|
2322
|
+
readonly stateMutability: "view";
|
|
2323
|
+
}, {
|
|
2324
|
+
readonly type: "function";
|
|
2325
|
+
readonly name: "isRootRatified";
|
|
2326
|
+
readonly inputs: readonly [{
|
|
2327
|
+
readonly name: "maker";
|
|
2494
2328
|
readonly type: "address";
|
|
2495
|
-
}, {
|
|
2496
|
-
readonly internalType: "uint256";
|
|
2497
|
-
readonly name: "referralFeePct";
|
|
2498
|
-
readonly type: "uint256";
|
|
2499
|
-
}, {
|
|
2500
2329
|
readonly internalType: "address";
|
|
2501
|
-
|
|
2330
|
+
}, {
|
|
2331
|
+
readonly name: "root";
|
|
2332
|
+
readonly type: "bytes32";
|
|
2333
|
+
readonly internalType: "bytes32";
|
|
2334
|
+
}];
|
|
2335
|
+
readonly outputs: readonly [{
|
|
2336
|
+
readonly name: "";
|
|
2337
|
+
readonly type: "bool";
|
|
2338
|
+
readonly internalType: "bool";
|
|
2339
|
+
}];
|
|
2340
|
+
readonly stateMutability: "view";
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly type: "function";
|
|
2343
|
+
readonly name: "setIsRootRatified";
|
|
2344
|
+
readonly inputs: readonly [{
|
|
2345
|
+
readonly name: "maker";
|
|
2502
2346
|
readonly type: "address";
|
|
2347
|
+
readonly internalType: "address";
|
|
2503
2348
|
}, {
|
|
2504
|
-
readonly
|
|
2505
|
-
readonly
|
|
2506
|
-
readonly
|
|
2349
|
+
readonly name: "root";
|
|
2350
|
+
readonly type: "bytes32";
|
|
2351
|
+
readonly internalType: "bytes32";
|
|
2352
|
+
}, {
|
|
2353
|
+
readonly name: "newIsRootRatified";
|
|
2354
|
+
readonly type: "bool";
|
|
2355
|
+
readonly internalType: "bool";
|
|
2507
2356
|
}];
|
|
2508
|
-
readonly name: "midnightBundlesV1RepayAndWithdrawCollateral";
|
|
2509
2357
|
readonly outputs: readonly [];
|
|
2510
2358
|
readonly stateMutability: "nonpayable";
|
|
2511
|
-
readonly type: "function";
|
|
2512
2359
|
}, {
|
|
2360
|
+
readonly type: "event";
|
|
2361
|
+
readonly name: "SetIsRootRatified";
|
|
2513
2362
|
readonly inputs: readonly [{
|
|
2514
|
-
readonly
|
|
2515
|
-
readonly name: "targetSellerAssets";
|
|
2516
|
-
readonly type: "uint256";
|
|
2517
|
-
}, {
|
|
2518
|
-
readonly internalType: "uint256";
|
|
2519
|
-
readonly name: "maxUnits";
|
|
2520
|
-
readonly type: "uint256";
|
|
2521
|
-
}, {
|
|
2522
|
-
readonly internalType: "address";
|
|
2523
|
-
readonly name: "taker";
|
|
2363
|
+
readonly name: "caller";
|
|
2524
2364
|
readonly type: "address";
|
|
2525
|
-
|
|
2526
|
-
readonly internalType: "bool";
|
|
2527
|
-
readonly name: "reduceOnly";
|
|
2528
|
-
readonly type: "bool";
|
|
2529
|
-
}, {
|
|
2365
|
+
readonly indexed: true;
|
|
2530
2366
|
readonly internalType: "address";
|
|
2531
|
-
|
|
2367
|
+
}, {
|
|
2368
|
+
readonly name: "maker";
|
|
2532
2369
|
readonly type: "address";
|
|
2370
|
+
readonly indexed: true;
|
|
2371
|
+
readonly internalType: "address";
|
|
2533
2372
|
}, {
|
|
2534
|
-
readonly
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
}, {
|
|
2539
|
-
readonly internalType: "uint256";
|
|
2540
|
-
readonly name: "assets";
|
|
2541
|
-
readonly type: "uint256";
|
|
2542
|
-
}, {
|
|
2543
|
-
readonly components: readonly [{
|
|
2544
|
-
readonly internalType: "enum PermitKind";
|
|
2545
|
-
readonly name: "kind";
|
|
2546
|
-
readonly type: "uint8";
|
|
2547
|
-
}, {
|
|
2548
|
-
readonly internalType: "bytes";
|
|
2549
|
-
readonly name: "data";
|
|
2550
|
-
readonly type: "bytes";
|
|
2551
|
-
}];
|
|
2552
|
-
readonly internalType: "struct TokenPermit";
|
|
2553
|
-
readonly name: "permit";
|
|
2554
|
-
readonly type: "tuple";
|
|
2555
|
-
}];
|
|
2556
|
-
readonly internalType: "struct CollateralSupply[]";
|
|
2557
|
-
readonly name: "collateralSupplies";
|
|
2558
|
-
readonly type: "tuple[]";
|
|
2373
|
+
readonly name: "root";
|
|
2374
|
+
readonly type: "bytes32";
|
|
2375
|
+
readonly indexed: true;
|
|
2376
|
+
readonly internalType: "bytes32";
|
|
2559
2377
|
}, {
|
|
2378
|
+
readonly name: "newIsRootRatified";
|
|
2379
|
+
readonly type: "bool";
|
|
2380
|
+
readonly indexed: false;
|
|
2381
|
+
readonly internalType: "bool";
|
|
2382
|
+
}];
|
|
2383
|
+
readonly anonymous: false;
|
|
2384
|
+
}, {
|
|
2385
|
+
readonly type: "error";
|
|
2386
|
+
readonly name: "InvalidProof";
|
|
2387
|
+
readonly inputs: readonly [];
|
|
2388
|
+
}, {
|
|
2389
|
+
readonly type: "error";
|
|
2390
|
+
readonly name: "NotRatified";
|
|
2391
|
+
readonly inputs: readonly [];
|
|
2392
|
+
}, {
|
|
2393
|
+
readonly type: "error";
|
|
2394
|
+
readonly name: "Unauthorized";
|
|
2395
|
+
readonly inputs: readonly [];
|
|
2396
|
+
}];
|
|
2397
|
+
/**
|
|
2398
|
+
* Pinned ABI JSON for the PriceRatifierV1.
|
|
2399
|
+
*
|
|
2400
|
+
* Source: `morpho-org/midnight` commit `11f3d984b53286fd9137eb89e5d1385e23fe1b30`,
|
|
2401
|
+
* `src/ratifiers/interfaces/IPriceRatifierV1.sol`, Forge artifact `out/IPriceRatifierV1.sol/IPriceRatifierV1.json`.
|
|
2402
|
+
*
|
|
2403
|
+
* @example
|
|
2404
|
+
* ```ts
|
|
2405
|
+
* import { priceRatifierV1Abi } from "@morpho-org/midnight-sdk";
|
|
2406
|
+
*
|
|
2407
|
+
* console.log(priceRatifierV1Abi.length);
|
|
2408
|
+
* ```
|
|
2409
|
+
*/
|
|
2410
|
+
export declare const priceRatifierV1Abi: readonly [{
|
|
2411
|
+
readonly type: "function";
|
|
2412
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
2413
|
+
readonly inputs: readonly [];
|
|
2414
|
+
readonly outputs: readonly [{
|
|
2415
|
+
readonly name: "";
|
|
2416
|
+
readonly type: "bytes32";
|
|
2417
|
+
readonly internalType: "bytes32";
|
|
2418
|
+
}];
|
|
2419
|
+
readonly stateMutability: "view";
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly type: "function";
|
|
2422
|
+
readonly name: "MIDNIGHT";
|
|
2423
|
+
readonly inputs: readonly [];
|
|
2424
|
+
readonly outputs: readonly [{
|
|
2425
|
+
readonly name: "";
|
|
2426
|
+
readonly type: "address";
|
|
2427
|
+
readonly internalType: "address";
|
|
2428
|
+
}];
|
|
2429
|
+
readonly stateMutability: "view";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly type: "function";
|
|
2432
|
+
readonly name: "isRatified";
|
|
2433
|
+
readonly inputs: readonly [{
|
|
2434
|
+
readonly name: "offer";
|
|
2435
|
+
readonly type: "tuple";
|
|
2436
|
+
readonly internalType: "struct Offer";
|
|
2560
2437
|
readonly components: readonly [{
|
|
2438
|
+
readonly name: "market";
|
|
2439
|
+
readonly type: "tuple";
|
|
2440
|
+
readonly internalType: "struct Market";
|
|
2561
2441
|
readonly components: readonly [{
|
|
2442
|
+
readonly name: "chainId";
|
|
2443
|
+
readonly type: "uint256";
|
|
2444
|
+
readonly internalType: "uint256";
|
|
2445
|
+
}, {
|
|
2446
|
+
readonly name: "midnight";
|
|
2447
|
+
readonly type: "address";
|
|
2448
|
+
readonly internalType: "address";
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly name: "loanToken";
|
|
2451
|
+
readonly type: "address";
|
|
2452
|
+
readonly internalType: "address";
|
|
2453
|
+
}, {
|
|
2454
|
+
readonly name: "collateralParams";
|
|
2455
|
+
readonly type: "tuple[]";
|
|
2456
|
+
readonly internalType: "struct CollateralParams[]";
|
|
2562
2457
|
readonly components: readonly [{
|
|
2563
|
-
readonly
|
|
2564
|
-
readonly name: "chainId";
|
|
2565
|
-
readonly type: "uint256";
|
|
2566
|
-
}, {
|
|
2567
|
-
readonly internalType: "address";
|
|
2568
|
-
readonly name: "midnight";
|
|
2458
|
+
readonly name: "token";
|
|
2569
2459
|
readonly type: "address";
|
|
2570
|
-
}, {
|
|
2571
2460
|
readonly internalType: "address";
|
|
2572
|
-
readonly name: "loanToken";
|
|
2573
|
-
readonly type: "address";
|
|
2574
|
-
}, {
|
|
2575
|
-
readonly components: readonly [{
|
|
2576
|
-
readonly internalType: "address";
|
|
2577
|
-
readonly name: "token";
|
|
2578
|
-
readonly type: "address";
|
|
2579
|
-
}, {
|
|
2580
|
-
readonly internalType: "uint256";
|
|
2581
|
-
readonly name: "lltv";
|
|
2582
|
-
readonly type: "uint256";
|
|
2583
|
-
}, {
|
|
2584
|
-
readonly internalType: "uint256";
|
|
2585
|
-
readonly name: "liquidationCursor";
|
|
2586
|
-
readonly type: "uint256";
|
|
2587
|
-
}, {
|
|
2588
|
-
readonly internalType: "address";
|
|
2589
|
-
readonly name: "oracle";
|
|
2590
|
-
readonly type: "address";
|
|
2591
|
-
}];
|
|
2592
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2593
|
-
readonly name: "collateralParams";
|
|
2594
|
-
readonly type: "tuple[]";
|
|
2595
2461
|
}, {
|
|
2596
|
-
readonly
|
|
2597
|
-
readonly name: "maturity";
|
|
2462
|
+
readonly name: "lltv";
|
|
2598
2463
|
readonly type: "uint256";
|
|
2599
|
-
}, {
|
|
2600
2464
|
readonly internalType: "uint256";
|
|
2601
|
-
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly name: "liquidationCursor";
|
|
2602
2467
|
readonly type: "uint256";
|
|
2468
|
+
readonly internalType: "uint256";
|
|
2603
2469
|
}, {
|
|
2604
|
-
readonly
|
|
2605
|
-
readonly name: "enterGate";
|
|
2470
|
+
readonly name: "oracle";
|
|
2606
2471
|
readonly type: "address";
|
|
2607
|
-
}, {
|
|
2608
2472
|
readonly internalType: "address";
|
|
2609
|
-
readonly name: "liquidatorGate";
|
|
2610
|
-
readonly type: "address";
|
|
2611
2473
|
}];
|
|
2612
|
-
readonly internalType: "struct Market";
|
|
2613
|
-
readonly name: "market";
|
|
2614
|
-
readonly type: "tuple";
|
|
2615
|
-
}, {
|
|
2616
|
-
readonly internalType: "bool";
|
|
2617
|
-
readonly name: "buy";
|
|
2618
|
-
readonly type: "bool";
|
|
2619
|
-
}, {
|
|
2620
|
-
readonly internalType: "address";
|
|
2621
|
-
readonly name: "maker";
|
|
2622
|
-
readonly type: "address";
|
|
2623
2474
|
}, {
|
|
2624
|
-
readonly
|
|
2625
|
-
readonly name: "start";
|
|
2475
|
+
readonly name: "maturity";
|
|
2626
2476
|
readonly type: "uint256";
|
|
2627
|
-
}, {
|
|
2628
2477
|
readonly internalType: "uint256";
|
|
2629
|
-
readonly name: "expiry";
|
|
2630
|
-
readonly type: "uint256";
|
|
2631
2478
|
}, {
|
|
2632
|
-
readonly
|
|
2633
|
-
readonly name: "tick";
|
|
2479
|
+
readonly name: "rcfThreshold";
|
|
2634
2480
|
readonly type: "uint256";
|
|
2481
|
+
readonly internalType: "uint256";
|
|
2635
2482
|
}, {
|
|
2636
|
-
readonly
|
|
2637
|
-
readonly name: "group";
|
|
2638
|
-
readonly type: "bytes32";
|
|
2639
|
-
}, {
|
|
2640
|
-
readonly internalType: "address";
|
|
2641
|
-
readonly name: "callback";
|
|
2483
|
+
readonly name: "enterGate";
|
|
2642
2484
|
readonly type: "address";
|
|
2643
|
-
}, {
|
|
2644
|
-
readonly internalType: "bytes";
|
|
2645
|
-
readonly name: "callbackData";
|
|
2646
|
-
readonly type: "bytes";
|
|
2647
|
-
}, {
|
|
2648
2485
|
readonly internalType: "address";
|
|
2649
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
2650
|
-
readonly type: "address";
|
|
2651
2486
|
}, {
|
|
2652
|
-
readonly
|
|
2653
|
-
readonly name: "ratifier";
|
|
2487
|
+
readonly name: "liquidatorGate";
|
|
2654
2488
|
readonly type: "address";
|
|
2655
|
-
|
|
2656
|
-
readonly internalType: "bool";
|
|
2657
|
-
readonly name: "reduceOnly";
|
|
2658
|
-
readonly type: "bool";
|
|
2659
|
-
}, {
|
|
2660
|
-
readonly internalType: "uint128";
|
|
2661
|
-
readonly name: "maxUnits";
|
|
2662
|
-
readonly type: "uint128";
|
|
2663
|
-
}, {
|
|
2664
|
-
readonly internalType: "uint128";
|
|
2665
|
-
readonly name: "maxAssets";
|
|
2666
|
-
readonly type: "uint128";
|
|
2667
|
-
}, {
|
|
2668
|
-
readonly internalType: "uint256";
|
|
2669
|
-
readonly name: "continuousFeeCap";
|
|
2670
|
-
readonly type: "uint256";
|
|
2489
|
+
readonly internalType: "address";
|
|
2671
2490
|
}];
|
|
2672
|
-
readonly internalType: "struct Offer";
|
|
2673
|
-
readonly name: "offer";
|
|
2674
|
-
readonly type: "tuple";
|
|
2675
2491
|
}, {
|
|
2676
|
-
readonly
|
|
2677
|
-
readonly
|
|
2678
|
-
readonly
|
|
2492
|
+
readonly name: "buy";
|
|
2493
|
+
readonly type: "bool";
|
|
2494
|
+
readonly internalType: "bool";
|
|
2679
2495
|
}, {
|
|
2680
|
-
readonly
|
|
2681
|
-
readonly
|
|
2496
|
+
readonly name: "maker";
|
|
2497
|
+
readonly type: "address";
|
|
2498
|
+
readonly internalType: "address";
|
|
2499
|
+
}, {
|
|
2500
|
+
readonly name: "start";
|
|
2682
2501
|
readonly type: "uint256";
|
|
2683
|
-
}];
|
|
2684
|
-
readonly internalType: "struct OfferFill[]";
|
|
2685
|
-
readonly name: "offerFills";
|
|
2686
|
-
readonly type: "tuple[]";
|
|
2687
|
-
}, {
|
|
2688
|
-
readonly internalType: "uint256";
|
|
2689
|
-
readonly name: "referralFeePct";
|
|
2690
|
-
readonly type: "uint256";
|
|
2691
|
-
}, {
|
|
2692
|
-
readonly internalType: "address";
|
|
2693
|
-
readonly name: "referralFeeRecipient";
|
|
2694
|
-
readonly type: "address";
|
|
2695
|
-
}, {
|
|
2696
|
-
readonly internalType: "uint256";
|
|
2697
|
-
readonly name: "maxContinuousFee";
|
|
2698
|
-
readonly type: "uint256";
|
|
2699
|
-
}, {
|
|
2700
|
-
readonly internalType: "uint256";
|
|
2701
|
-
readonly name: "deadline";
|
|
2702
|
-
readonly type: "uint256";
|
|
2703
|
-
}];
|
|
2704
|
-
readonly name: "midnightBundlesV1SupplyCollateralAndSellWithAssetsTarget";
|
|
2705
|
-
readonly outputs: readonly [];
|
|
2706
|
-
readonly stateMutability: "nonpayable";
|
|
2707
|
-
readonly type: "function";
|
|
2708
|
-
}, {
|
|
2709
|
-
readonly inputs: readonly [{
|
|
2710
|
-
readonly internalType: "uint256";
|
|
2711
|
-
readonly name: "targetUnits";
|
|
2712
|
-
readonly type: "uint256";
|
|
2713
|
-
}, {
|
|
2714
|
-
readonly internalType: "uint256";
|
|
2715
|
-
readonly name: "minSellerAssets";
|
|
2716
|
-
readonly type: "uint256";
|
|
2717
|
-
}, {
|
|
2718
|
-
readonly internalType: "address";
|
|
2719
|
-
readonly name: "taker";
|
|
2720
|
-
readonly type: "address";
|
|
2721
|
-
}, {
|
|
2722
|
-
readonly internalType: "bool";
|
|
2723
|
-
readonly name: "reduceOnly";
|
|
2724
|
-
readonly type: "bool";
|
|
2725
|
-
}, {
|
|
2726
|
-
readonly internalType: "address";
|
|
2727
|
-
readonly name: "receiver";
|
|
2728
|
-
readonly type: "address";
|
|
2729
|
-
}, {
|
|
2730
|
-
readonly components: readonly [{
|
|
2731
2502
|
readonly internalType: "uint256";
|
|
2732
|
-
readonly name: "collateralIndex";
|
|
2733
|
-
readonly type: "uint256";
|
|
2734
2503
|
}, {
|
|
2735
|
-
readonly
|
|
2736
|
-
readonly name: "assets";
|
|
2504
|
+
readonly name: "expiry";
|
|
2737
2505
|
readonly type: "uint256";
|
|
2506
|
+
readonly internalType: "uint256";
|
|
2738
2507
|
}, {
|
|
2739
|
-
readonly
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
readonly type: "uint8";
|
|
2743
|
-
}, {
|
|
2744
|
-
readonly internalType: "bytes";
|
|
2745
|
-
readonly name: "data";
|
|
2746
|
-
readonly type: "bytes";
|
|
2747
|
-
}];
|
|
2748
|
-
readonly internalType: "struct TokenPermit";
|
|
2749
|
-
readonly name: "permit";
|
|
2750
|
-
readonly type: "tuple";
|
|
2751
|
-
}];
|
|
2752
|
-
readonly internalType: "struct CollateralSupply[]";
|
|
2753
|
-
readonly name: "collateralSupplies";
|
|
2754
|
-
readonly type: "tuple[]";
|
|
2755
|
-
}, {
|
|
2756
|
-
readonly components: readonly [{
|
|
2757
|
-
readonly components: readonly [{
|
|
2758
|
-
readonly components: readonly [{
|
|
2759
|
-
readonly internalType: "uint256";
|
|
2760
|
-
readonly name: "chainId";
|
|
2761
|
-
readonly type: "uint256";
|
|
2762
|
-
}, {
|
|
2763
|
-
readonly internalType: "address";
|
|
2764
|
-
readonly name: "midnight";
|
|
2765
|
-
readonly type: "address";
|
|
2766
|
-
}, {
|
|
2767
|
-
readonly internalType: "address";
|
|
2768
|
-
readonly name: "loanToken";
|
|
2769
|
-
readonly type: "address";
|
|
2770
|
-
}, {
|
|
2771
|
-
readonly components: readonly [{
|
|
2772
|
-
readonly internalType: "address";
|
|
2773
|
-
readonly name: "token";
|
|
2774
|
-
readonly type: "address";
|
|
2775
|
-
}, {
|
|
2776
|
-
readonly internalType: "uint256";
|
|
2777
|
-
readonly name: "lltv";
|
|
2778
|
-
readonly type: "uint256";
|
|
2779
|
-
}, {
|
|
2780
|
-
readonly internalType: "uint256";
|
|
2781
|
-
readonly name: "liquidationCursor";
|
|
2782
|
-
readonly type: "uint256";
|
|
2783
|
-
}, {
|
|
2784
|
-
readonly internalType: "address";
|
|
2785
|
-
readonly name: "oracle";
|
|
2786
|
-
readonly type: "address";
|
|
2787
|
-
}];
|
|
2788
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2789
|
-
readonly name: "collateralParams";
|
|
2790
|
-
readonly type: "tuple[]";
|
|
2791
|
-
}, {
|
|
2792
|
-
readonly internalType: "uint256";
|
|
2793
|
-
readonly name: "maturity";
|
|
2794
|
-
readonly type: "uint256";
|
|
2795
|
-
}, {
|
|
2796
|
-
readonly internalType: "uint256";
|
|
2797
|
-
readonly name: "rcfThreshold";
|
|
2798
|
-
readonly type: "uint256";
|
|
2799
|
-
}, {
|
|
2800
|
-
readonly internalType: "address";
|
|
2801
|
-
readonly name: "enterGate";
|
|
2802
|
-
readonly type: "address";
|
|
2803
|
-
}, {
|
|
2804
|
-
readonly internalType: "address";
|
|
2805
|
-
readonly name: "liquidatorGate";
|
|
2806
|
-
readonly type: "address";
|
|
2807
|
-
}];
|
|
2808
|
-
readonly internalType: "struct Market";
|
|
2809
|
-
readonly name: "market";
|
|
2810
|
-
readonly type: "tuple";
|
|
2811
|
-
}, {
|
|
2812
|
-
readonly internalType: "bool";
|
|
2813
|
-
readonly name: "buy";
|
|
2814
|
-
readonly type: "bool";
|
|
2815
|
-
}, {
|
|
2816
|
-
readonly internalType: "address";
|
|
2817
|
-
readonly name: "maker";
|
|
2818
|
-
readonly type: "address";
|
|
2819
|
-
}, {
|
|
2820
|
-
readonly internalType: "uint256";
|
|
2821
|
-
readonly name: "start";
|
|
2822
|
-
readonly type: "uint256";
|
|
2823
|
-
}, {
|
|
2824
|
-
readonly internalType: "uint256";
|
|
2825
|
-
readonly name: "expiry";
|
|
2826
|
-
readonly type: "uint256";
|
|
2827
|
-
}, {
|
|
2828
|
-
readonly internalType: "uint256";
|
|
2829
|
-
readonly name: "tick";
|
|
2830
|
-
readonly type: "uint256";
|
|
2831
|
-
}, {
|
|
2832
|
-
readonly internalType: "bytes32";
|
|
2833
|
-
readonly name: "group";
|
|
2834
|
-
readonly type: "bytes32";
|
|
2835
|
-
}, {
|
|
2836
|
-
readonly internalType: "address";
|
|
2837
|
-
readonly name: "callback";
|
|
2838
|
-
readonly type: "address";
|
|
2839
|
-
}, {
|
|
2840
|
-
readonly internalType: "bytes";
|
|
2841
|
-
readonly name: "callbackData";
|
|
2842
|
-
readonly type: "bytes";
|
|
2843
|
-
}, {
|
|
2844
|
-
readonly internalType: "address";
|
|
2845
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
2846
|
-
readonly type: "address";
|
|
2847
|
-
}, {
|
|
2848
|
-
readonly internalType: "address";
|
|
2849
|
-
readonly name: "ratifier";
|
|
2850
|
-
readonly type: "address";
|
|
2851
|
-
}, {
|
|
2852
|
-
readonly internalType: "bool";
|
|
2853
|
-
readonly name: "reduceOnly";
|
|
2854
|
-
readonly type: "bool";
|
|
2855
|
-
}, {
|
|
2856
|
-
readonly internalType: "uint128";
|
|
2857
|
-
readonly name: "maxUnits";
|
|
2858
|
-
readonly type: "uint128";
|
|
2859
|
-
}, {
|
|
2860
|
-
readonly internalType: "uint128";
|
|
2861
|
-
readonly name: "maxAssets";
|
|
2862
|
-
readonly type: "uint128";
|
|
2863
|
-
}, {
|
|
2864
|
-
readonly internalType: "uint256";
|
|
2865
|
-
readonly name: "continuousFeeCap";
|
|
2866
|
-
readonly type: "uint256";
|
|
2867
|
-
}];
|
|
2868
|
-
readonly internalType: "struct Offer";
|
|
2869
|
-
readonly name: "offer";
|
|
2870
|
-
readonly type: "tuple";
|
|
2508
|
+
readonly name: "tick";
|
|
2509
|
+
readonly type: "uint256";
|
|
2510
|
+
readonly internalType: "uint256";
|
|
2871
2511
|
}, {
|
|
2872
|
-
readonly
|
|
2873
|
-
readonly
|
|
2512
|
+
readonly name: "group";
|
|
2513
|
+
readonly type: "bytes32";
|
|
2514
|
+
readonly internalType: "bytes32";
|
|
2515
|
+
}, {
|
|
2516
|
+
readonly name: "callback";
|
|
2517
|
+
readonly type: "address";
|
|
2518
|
+
readonly internalType: "address";
|
|
2519
|
+
}, {
|
|
2520
|
+
readonly name: "callbackData";
|
|
2874
2521
|
readonly type: "bytes";
|
|
2522
|
+
readonly internalType: "bytes";
|
|
2875
2523
|
}, {
|
|
2876
|
-
readonly
|
|
2877
|
-
readonly
|
|
2524
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
2525
|
+
readonly type: "address";
|
|
2526
|
+
readonly internalType: "address";
|
|
2527
|
+
}, {
|
|
2528
|
+
readonly name: "ratifier";
|
|
2529
|
+
readonly type: "address";
|
|
2530
|
+
readonly internalType: "address";
|
|
2531
|
+
}, {
|
|
2532
|
+
readonly name: "reduceOnly";
|
|
2533
|
+
readonly type: "bool";
|
|
2534
|
+
readonly internalType: "bool";
|
|
2535
|
+
}, {
|
|
2536
|
+
readonly name: "maxUnits";
|
|
2537
|
+
readonly type: "uint128";
|
|
2538
|
+
readonly internalType: "uint128";
|
|
2539
|
+
}, {
|
|
2540
|
+
readonly name: "maxAssets";
|
|
2541
|
+
readonly type: "uint128";
|
|
2542
|
+
readonly internalType: "uint128";
|
|
2543
|
+
}, {
|
|
2544
|
+
readonly name: "continuousFeeCap";
|
|
2878
2545
|
readonly type: "uint256";
|
|
2546
|
+
readonly internalType: "uint256";
|
|
2879
2547
|
}];
|
|
2880
|
-
readonly internalType: "struct OfferFill[]";
|
|
2881
|
-
readonly name: "offerFills";
|
|
2882
|
-
readonly type: "tuple[]";
|
|
2883
2548
|
}, {
|
|
2884
|
-
readonly
|
|
2885
|
-
readonly
|
|
2886
|
-
readonly
|
|
2549
|
+
readonly name: "ratifierData";
|
|
2550
|
+
readonly type: "bytes";
|
|
2551
|
+
readonly internalType: "bytes";
|
|
2887
2552
|
}, {
|
|
2553
|
+
readonly name: "taker";
|
|
2554
|
+
readonly type: "address";
|
|
2888
2555
|
readonly internalType: "address";
|
|
2889
|
-
|
|
2556
|
+
}];
|
|
2557
|
+
readonly outputs: readonly [{
|
|
2558
|
+
readonly name: "";
|
|
2559
|
+
readonly type: "bytes32";
|
|
2560
|
+
readonly internalType: "bytes32";
|
|
2561
|
+
}];
|
|
2562
|
+
readonly stateMutability: "view";
|
|
2563
|
+
}, {
|
|
2564
|
+
readonly type: "function";
|
|
2565
|
+
readonly name: "isRootRatified";
|
|
2566
|
+
readonly inputs: readonly [{
|
|
2567
|
+
readonly name: "maker";
|
|
2890
2568
|
readonly type: "address";
|
|
2569
|
+
readonly internalType: "address";
|
|
2891
2570
|
}, {
|
|
2892
|
-
readonly
|
|
2893
|
-
readonly
|
|
2894
|
-
readonly
|
|
2895
|
-
}, {
|
|
2896
|
-
readonly internalType: "uint256";
|
|
2897
|
-
readonly name: "deadline";
|
|
2898
|
-
readonly type: "uint256";
|
|
2571
|
+
readonly name: "root";
|
|
2572
|
+
readonly type: "bytes32";
|
|
2573
|
+
readonly internalType: "bytes32";
|
|
2899
2574
|
}];
|
|
2900
|
-
readonly name: "midnightBundlesV1SupplyCollateralAndSellWithUnitsTarget";
|
|
2901
|
-
readonly outputs: readonly [];
|
|
2902
|
-
readonly stateMutability: "nonpayable";
|
|
2903
|
-
readonly type: "function";
|
|
2904
|
-
}];
|
|
2905
|
-
/**
|
|
2906
|
-
* Pinned ABI JSON for the EcrecoverRatifier.
|
|
2907
|
-
*
|
|
2908
|
-
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
2909
|
-
* `src/ratifiers/interfaces/IEcrecoverRatifier.sol`, Forge artifact `out/IEcrecoverRatifier.sol/IEcrecoverRatifier.json`.
|
|
2910
|
-
*
|
|
2911
|
-
* @example
|
|
2912
|
-
* ```ts
|
|
2913
|
-
* import { ecrecoverRatifierAbi } from "@morpho-org/midnight-sdk";
|
|
2914
|
-
*
|
|
2915
|
-
* console.log(ecrecoverRatifierAbi.length);
|
|
2916
|
-
* ```
|
|
2917
|
-
*/
|
|
2918
|
-
export declare const ecrecoverRatifierAbi: readonly [{
|
|
2919
|
-
readonly type: "function";
|
|
2920
|
-
readonly name: "MIDNIGHT";
|
|
2921
|
-
readonly inputs: readonly [];
|
|
2922
2575
|
readonly outputs: readonly [{
|
|
2923
2576
|
readonly name: "";
|
|
2577
|
+
readonly type: "bool";
|
|
2578
|
+
readonly internalType: "bool";
|
|
2579
|
+
}];
|
|
2580
|
+
readonly stateMutability: "view";
|
|
2581
|
+
}, {
|
|
2582
|
+
readonly type: "function";
|
|
2583
|
+
readonly name: "ratification";
|
|
2584
|
+
readonly inputs: readonly [{
|
|
2585
|
+
readonly name: "maker";
|
|
2924
2586
|
readonly type: "address";
|
|
2925
2587
|
readonly internalType: "address";
|
|
2588
|
+
}, {
|
|
2589
|
+
readonly name: "root";
|
|
2590
|
+
readonly type: "bytes32";
|
|
2591
|
+
readonly internalType: "bytes32";
|
|
2592
|
+
}];
|
|
2593
|
+
readonly outputs: readonly [{
|
|
2594
|
+
readonly name: "isRootRatified";
|
|
2595
|
+
readonly type: "bool";
|
|
2596
|
+
readonly internalType: "bool";
|
|
2597
|
+
}, {
|
|
2598
|
+
readonly name: "rootNonce";
|
|
2599
|
+
readonly type: "uint128";
|
|
2600
|
+
readonly internalType: "uint128";
|
|
2926
2601
|
}];
|
|
2927
2602
|
readonly stateMutability: "view";
|
|
2928
2603
|
}, {
|
|
2929
2604
|
readonly type: "function";
|
|
2930
|
-
readonly name: "
|
|
2605
|
+
readonly name: "rootNonce";
|
|
2931
2606
|
readonly inputs: readonly [{
|
|
2932
2607
|
readonly name: "maker";
|
|
2933
2608
|
readonly type: "address";
|
|
@@ -2937,144 +2612,37 @@ export declare const ecrecoverRatifierAbi: readonly [{
|
|
|
2937
2612
|
readonly type: "bytes32";
|
|
2938
2613
|
readonly internalType: "bytes32";
|
|
2939
2614
|
}];
|
|
2940
|
-
readonly outputs: readonly [
|
|
2941
|
-
|
|
2615
|
+
readonly outputs: readonly [{
|
|
2616
|
+
readonly name: "";
|
|
2617
|
+
readonly type: "uint128";
|
|
2618
|
+
readonly internalType: "uint128";
|
|
2619
|
+
}];
|
|
2620
|
+
readonly stateMutability: "view";
|
|
2942
2621
|
}, {
|
|
2943
2622
|
readonly type: "function";
|
|
2944
|
-
readonly name: "
|
|
2623
|
+
readonly name: "setIsRootRatified";
|
|
2945
2624
|
readonly inputs: readonly [{
|
|
2946
|
-
readonly name: "
|
|
2947
|
-
readonly type: "tuple";
|
|
2948
|
-
readonly internalType: "struct Offer";
|
|
2949
|
-
readonly components: readonly [{
|
|
2950
|
-
readonly name: "market";
|
|
2951
|
-
readonly type: "tuple";
|
|
2952
|
-
readonly internalType: "struct Market";
|
|
2953
|
-
readonly components: readonly [{
|
|
2954
|
-
readonly name: "chainId";
|
|
2955
|
-
readonly type: "uint256";
|
|
2956
|
-
readonly internalType: "uint256";
|
|
2957
|
-
}, {
|
|
2958
|
-
readonly name: "midnight";
|
|
2959
|
-
readonly type: "address";
|
|
2960
|
-
readonly internalType: "address";
|
|
2961
|
-
}, {
|
|
2962
|
-
readonly name: "loanToken";
|
|
2963
|
-
readonly type: "address";
|
|
2964
|
-
readonly internalType: "address";
|
|
2965
|
-
}, {
|
|
2966
|
-
readonly name: "collateralParams";
|
|
2967
|
-
readonly type: "tuple[]";
|
|
2968
|
-
readonly internalType: "struct CollateralParams[]";
|
|
2969
|
-
readonly components: readonly [{
|
|
2970
|
-
readonly name: "token";
|
|
2971
|
-
readonly type: "address";
|
|
2972
|
-
readonly internalType: "address";
|
|
2973
|
-
}, {
|
|
2974
|
-
readonly name: "lltv";
|
|
2975
|
-
readonly type: "uint256";
|
|
2976
|
-
readonly internalType: "uint256";
|
|
2977
|
-
}, {
|
|
2978
|
-
readonly name: "liquidationCursor";
|
|
2979
|
-
readonly type: "uint256";
|
|
2980
|
-
readonly internalType: "uint256";
|
|
2981
|
-
}, {
|
|
2982
|
-
readonly name: "oracle";
|
|
2983
|
-
readonly type: "address";
|
|
2984
|
-
readonly internalType: "address";
|
|
2985
|
-
}];
|
|
2986
|
-
}, {
|
|
2987
|
-
readonly name: "maturity";
|
|
2988
|
-
readonly type: "uint256";
|
|
2989
|
-
readonly internalType: "uint256";
|
|
2990
|
-
}, {
|
|
2991
|
-
readonly name: "rcfThreshold";
|
|
2992
|
-
readonly type: "uint256";
|
|
2993
|
-
readonly internalType: "uint256";
|
|
2994
|
-
}, {
|
|
2995
|
-
readonly name: "enterGate";
|
|
2996
|
-
readonly type: "address";
|
|
2997
|
-
readonly internalType: "address";
|
|
2998
|
-
}, {
|
|
2999
|
-
readonly name: "liquidatorGate";
|
|
3000
|
-
readonly type: "address";
|
|
3001
|
-
readonly internalType: "address";
|
|
3002
|
-
}];
|
|
3003
|
-
}, {
|
|
3004
|
-
readonly name: "buy";
|
|
3005
|
-
readonly type: "bool";
|
|
3006
|
-
readonly internalType: "bool";
|
|
3007
|
-
}, {
|
|
3008
|
-
readonly name: "maker";
|
|
3009
|
-
readonly type: "address";
|
|
3010
|
-
readonly internalType: "address";
|
|
3011
|
-
}, {
|
|
3012
|
-
readonly name: "start";
|
|
3013
|
-
readonly type: "uint256";
|
|
3014
|
-
readonly internalType: "uint256";
|
|
3015
|
-
}, {
|
|
3016
|
-
readonly name: "expiry";
|
|
3017
|
-
readonly type: "uint256";
|
|
3018
|
-
readonly internalType: "uint256";
|
|
3019
|
-
}, {
|
|
3020
|
-
readonly name: "tick";
|
|
3021
|
-
readonly type: "uint256";
|
|
3022
|
-
readonly internalType: "uint256";
|
|
3023
|
-
}, {
|
|
3024
|
-
readonly name: "group";
|
|
3025
|
-
readonly type: "bytes32";
|
|
3026
|
-
readonly internalType: "bytes32";
|
|
3027
|
-
}, {
|
|
3028
|
-
readonly name: "callback";
|
|
3029
|
-
readonly type: "address";
|
|
3030
|
-
readonly internalType: "address";
|
|
3031
|
-
}, {
|
|
3032
|
-
readonly name: "callbackData";
|
|
3033
|
-
readonly type: "bytes";
|
|
3034
|
-
readonly internalType: "bytes";
|
|
3035
|
-
}, {
|
|
3036
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
3037
|
-
readonly type: "address";
|
|
3038
|
-
readonly internalType: "address";
|
|
3039
|
-
}, {
|
|
3040
|
-
readonly name: "ratifier";
|
|
3041
|
-
readonly type: "address";
|
|
3042
|
-
readonly internalType: "address";
|
|
3043
|
-
}, {
|
|
3044
|
-
readonly name: "reduceOnly";
|
|
3045
|
-
readonly type: "bool";
|
|
3046
|
-
readonly internalType: "bool";
|
|
3047
|
-
}, {
|
|
3048
|
-
readonly name: "maxUnits";
|
|
3049
|
-
readonly type: "uint128";
|
|
3050
|
-
readonly internalType: "uint128";
|
|
3051
|
-
}, {
|
|
3052
|
-
readonly name: "maxAssets";
|
|
3053
|
-
readonly type: "uint128";
|
|
3054
|
-
readonly internalType: "uint128";
|
|
3055
|
-
}, {
|
|
3056
|
-
readonly name: "continuousFeeCap";
|
|
3057
|
-
readonly type: "uint256";
|
|
3058
|
-
readonly internalType: "uint256";
|
|
3059
|
-
}];
|
|
3060
|
-
}, {
|
|
3061
|
-
readonly name: "ratifierData";
|
|
3062
|
-
readonly type: "bytes";
|
|
3063
|
-
readonly internalType: "bytes";
|
|
3064
|
-
}, {
|
|
3065
|
-
readonly name: "taker";
|
|
2625
|
+
readonly name: "maker";
|
|
3066
2626
|
readonly type: "address";
|
|
3067
2627
|
readonly internalType: "address";
|
|
2628
|
+
}, {
|
|
2629
|
+
readonly name: "root";
|
|
2630
|
+
readonly type: "bytes32";
|
|
2631
|
+
readonly internalType: "bytes32";
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly name: "newIsRootRatified";
|
|
2634
|
+
readonly type: "bool";
|
|
2635
|
+
readonly internalType: "bool";
|
|
3068
2636
|
}];
|
|
3069
2637
|
readonly outputs: readonly [{
|
|
3070
2638
|
readonly name: "";
|
|
3071
2639
|
readonly type: "bytes32";
|
|
3072
2640
|
readonly internalType: "bytes32";
|
|
3073
2641
|
}];
|
|
3074
|
-
readonly stateMutability: "
|
|
2642
|
+
readonly stateMutability: "nonpayable";
|
|
3075
2643
|
}, {
|
|
3076
2644
|
readonly type: "function";
|
|
3077
|
-
readonly name: "
|
|
2645
|
+
readonly name: "setIsRootRatifiedWithSig";
|
|
3078
2646
|
readonly inputs: readonly [{
|
|
3079
2647
|
readonly name: "maker";
|
|
3080
2648
|
readonly type: "address";
|
|
@@ -3083,19 +2651,77 @@ export declare const ecrecoverRatifierAbi: readonly [{
|
|
|
3083
2651
|
readonly name: "root";
|
|
3084
2652
|
readonly type: "bytes32";
|
|
3085
2653
|
readonly internalType: "bytes32";
|
|
2654
|
+
}, {
|
|
2655
|
+
readonly name: "height";
|
|
2656
|
+
readonly type: "uint256";
|
|
2657
|
+
readonly internalType: "uint256";
|
|
2658
|
+
}, {
|
|
2659
|
+
readonly name: "newIsRootRatified";
|
|
2660
|
+
readonly type: "bool";
|
|
2661
|
+
readonly internalType: "bool";
|
|
2662
|
+
}, {
|
|
2663
|
+
readonly name: "nonce";
|
|
2664
|
+
readonly type: "uint128";
|
|
2665
|
+
readonly internalType: "uint128";
|
|
2666
|
+
}, {
|
|
2667
|
+
readonly name: "deadline";
|
|
2668
|
+
readonly type: "uint256";
|
|
2669
|
+
readonly internalType: "uint256";
|
|
2670
|
+
}, {
|
|
2671
|
+
readonly name: "v";
|
|
2672
|
+
readonly type: "uint8";
|
|
2673
|
+
readonly internalType: "uint8";
|
|
2674
|
+
}, {
|
|
2675
|
+
readonly name: "r";
|
|
2676
|
+
readonly type: "bytes32";
|
|
2677
|
+
readonly internalType: "bytes32";
|
|
2678
|
+
}, {
|
|
2679
|
+
readonly name: "s";
|
|
2680
|
+
readonly type: "bytes32";
|
|
2681
|
+
readonly internalType: "bytes32";
|
|
3086
2682
|
}];
|
|
3087
2683
|
readonly outputs: readonly [{
|
|
3088
2684
|
readonly name: "";
|
|
2685
|
+
readonly type: "bytes32";
|
|
2686
|
+
readonly internalType: "bytes32";
|
|
2687
|
+
}];
|
|
2688
|
+
readonly stateMutability: "nonpayable";
|
|
2689
|
+
}, {
|
|
2690
|
+
readonly type: "event";
|
|
2691
|
+
readonly name: "SetIsRootRatified";
|
|
2692
|
+
readonly inputs: readonly [{
|
|
2693
|
+
readonly name: "caller";
|
|
2694
|
+
readonly type: "address";
|
|
2695
|
+
readonly indexed: true;
|
|
2696
|
+
readonly internalType: "address";
|
|
2697
|
+
}, {
|
|
2698
|
+
readonly name: "maker";
|
|
2699
|
+
readonly type: "address";
|
|
2700
|
+
readonly indexed: true;
|
|
2701
|
+
readonly internalType: "address";
|
|
2702
|
+
}, {
|
|
2703
|
+
readonly name: "root";
|
|
2704
|
+
readonly type: "bytes32";
|
|
2705
|
+
readonly indexed: true;
|
|
2706
|
+
readonly internalType: "bytes32";
|
|
2707
|
+
}, {
|
|
2708
|
+
readonly name: "newIsRootRatified";
|
|
3089
2709
|
readonly type: "bool";
|
|
2710
|
+
readonly indexed: false;
|
|
3090
2711
|
readonly internalType: "bool";
|
|
3091
2712
|
}];
|
|
3092
|
-
readonly
|
|
2713
|
+
readonly anonymous: false;
|
|
3093
2714
|
}, {
|
|
3094
2715
|
readonly type: "event";
|
|
3095
|
-
readonly name: "
|
|
2716
|
+
readonly name: "SetIsRootRatifiedWithSig";
|
|
3096
2717
|
readonly inputs: readonly [{
|
|
3097
2718
|
readonly name: "caller";
|
|
3098
2719
|
readonly type: "address";
|
|
2720
|
+
readonly indexed: false;
|
|
2721
|
+
readonly internalType: "address";
|
|
2722
|
+
}, {
|
|
2723
|
+
readonly name: "signer";
|
|
2724
|
+
readonly type: "address";
|
|
3099
2725
|
readonly indexed: true;
|
|
3100
2726
|
readonly internalType: "address";
|
|
3101
2727
|
}, {
|
|
@@ -3108,8 +2734,36 @@ export declare const ecrecoverRatifierAbi: readonly [{
|
|
|
3108
2734
|
readonly type: "bytes32";
|
|
3109
2735
|
readonly indexed: true;
|
|
3110
2736
|
readonly internalType: "bytes32";
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly name: "height";
|
|
2739
|
+
readonly type: "uint256";
|
|
2740
|
+
readonly indexed: false;
|
|
2741
|
+
readonly internalType: "uint256";
|
|
2742
|
+
}, {
|
|
2743
|
+
readonly name: "newIsRootRatified";
|
|
2744
|
+
readonly type: "bool";
|
|
2745
|
+
readonly indexed: false;
|
|
2746
|
+
readonly internalType: "bool";
|
|
2747
|
+
}, {
|
|
2748
|
+
readonly name: "signatureNonce";
|
|
2749
|
+
readonly type: "uint128";
|
|
2750
|
+
readonly indexed: false;
|
|
2751
|
+
readonly internalType: "uint128";
|
|
2752
|
+
}, {
|
|
2753
|
+
readonly name: "previousNonce";
|
|
2754
|
+
readonly type: "uint128";
|
|
2755
|
+
readonly indexed: false;
|
|
2756
|
+
readonly internalType: "uint128";
|
|
3111
2757
|
}];
|
|
3112
2758
|
readonly anonymous: false;
|
|
2759
|
+
}, {
|
|
2760
|
+
readonly type: "error";
|
|
2761
|
+
readonly name: "DeadlineExpired";
|
|
2762
|
+
readonly inputs: readonly [];
|
|
2763
|
+
}, {
|
|
2764
|
+
readonly type: "error";
|
|
2765
|
+
readonly name: "InvalidNonce";
|
|
2766
|
+
readonly inputs: readonly [];
|
|
3113
2767
|
}, {
|
|
3114
2768
|
readonly type: "error";
|
|
3115
2769
|
readonly name: "InvalidProof";
|
|
@@ -3120,27 +2774,45 @@ export declare const ecrecoverRatifierAbi: readonly [{
|
|
|
3120
2774
|
readonly inputs: readonly [];
|
|
3121
2775
|
}, {
|
|
3122
2776
|
readonly type: "error";
|
|
3123
|
-
readonly name: "
|
|
2777
|
+
readonly name: "NotRatified";
|
|
2778
|
+
readonly inputs: readonly [];
|
|
2779
|
+
}, {
|
|
2780
|
+
readonly type: "error";
|
|
2781
|
+
readonly name: "RatifiedStatusChanged";
|
|
3124
2782
|
readonly inputs: readonly [];
|
|
3125
2783
|
}, {
|
|
3126
2784
|
readonly type: "error";
|
|
3127
2785
|
readonly name: "Unauthorized";
|
|
3128
2786
|
readonly inputs: readonly [];
|
|
2787
|
+
}, {
|
|
2788
|
+
readonly type: "error";
|
|
2789
|
+
readonly name: "UnauthorizedTaker";
|
|
2790
|
+
readonly inputs: readonly [];
|
|
3129
2791
|
}];
|
|
3130
2792
|
/**
|
|
3131
|
-
* Pinned ABI JSON for the
|
|
2793
|
+
* Pinned ABI JSON for the RateRatifierV1.
|
|
3132
2794
|
*
|
|
3133
|
-
* Source: `morpho-org/midnight` commit `
|
|
3134
|
-
* `src/ratifiers/interfaces/
|
|
2795
|
+
* Source: `morpho-org/midnight` commit `11f3d984b53286fd9137eb89e5d1385e23fe1b30`,
|
|
2796
|
+
* `src/ratifiers/interfaces/IRateRatifierV1.sol`, Forge artifact `out/IRateRatifierV1.sol/IRateRatifierV1.json`.
|
|
3135
2797
|
*
|
|
3136
2798
|
* @example
|
|
3137
2799
|
* ```ts
|
|
3138
|
-
* import {
|
|
2800
|
+
* import { rateRatifierV1Abi } from "@morpho-org/midnight-sdk";
|
|
3139
2801
|
*
|
|
3140
|
-
* console.log(
|
|
2802
|
+
* console.log(rateRatifierV1Abi.length);
|
|
3141
2803
|
* ```
|
|
3142
2804
|
*/
|
|
3143
|
-
export declare const
|
|
2805
|
+
export declare const rateRatifierV1Abi: readonly [{
|
|
2806
|
+
readonly type: "function";
|
|
2807
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
2808
|
+
readonly inputs: readonly [];
|
|
2809
|
+
readonly outputs: readonly [{
|
|
2810
|
+
readonly name: "";
|
|
2811
|
+
readonly type: "bytes32";
|
|
2812
|
+
readonly internalType: "bytes32";
|
|
2813
|
+
}];
|
|
2814
|
+
readonly stateMutability: "view";
|
|
2815
|
+
}, {
|
|
3144
2816
|
readonly type: "function";
|
|
3145
2817
|
readonly name: "MIDNIGHT";
|
|
3146
2818
|
readonly inputs: readonly [];
|
|
@@ -3303,247 +2975,7 @@ export declare const setterRatifierAbi: readonly [{
|
|
|
3303
2975
|
readonly stateMutability: "view";
|
|
3304
2976
|
}, {
|
|
3305
2977
|
readonly type: "function";
|
|
3306
|
-
readonly name: "
|
|
3307
|
-
readonly inputs: readonly [{
|
|
3308
|
-
readonly name: "maker";
|
|
3309
|
-
readonly type: "address";
|
|
3310
|
-
readonly internalType: "address";
|
|
3311
|
-
}, {
|
|
3312
|
-
readonly name: "root";
|
|
3313
|
-
readonly type: "bytes32";
|
|
3314
|
-
readonly internalType: "bytes32";
|
|
3315
|
-
}, {
|
|
3316
|
-
readonly name: "newIsRootRatified";
|
|
3317
|
-
readonly type: "bool";
|
|
3318
|
-
readonly internalType: "bool";
|
|
3319
|
-
}];
|
|
3320
|
-
readonly outputs: readonly [];
|
|
3321
|
-
readonly stateMutability: "nonpayable";
|
|
3322
|
-
}, {
|
|
3323
|
-
readonly type: "event";
|
|
3324
|
-
readonly name: "SetIsRootRatified";
|
|
3325
|
-
readonly inputs: readonly [{
|
|
3326
|
-
readonly name: "caller";
|
|
3327
|
-
readonly type: "address";
|
|
3328
|
-
readonly indexed: true;
|
|
3329
|
-
readonly internalType: "address";
|
|
3330
|
-
}, {
|
|
3331
|
-
readonly name: "maker";
|
|
3332
|
-
readonly type: "address";
|
|
3333
|
-
readonly indexed: true;
|
|
3334
|
-
readonly internalType: "address";
|
|
3335
|
-
}, {
|
|
3336
|
-
readonly name: "root";
|
|
3337
|
-
readonly type: "bytes32";
|
|
3338
|
-
readonly indexed: true;
|
|
3339
|
-
readonly internalType: "bytes32";
|
|
3340
|
-
}, {
|
|
3341
|
-
readonly name: "newIsRootRatified";
|
|
3342
|
-
readonly type: "bool";
|
|
3343
|
-
readonly indexed: false;
|
|
3344
|
-
readonly internalType: "bool";
|
|
3345
|
-
}];
|
|
3346
|
-
readonly anonymous: false;
|
|
3347
|
-
}, {
|
|
3348
|
-
readonly type: "error";
|
|
3349
|
-
readonly name: "InvalidProof";
|
|
3350
|
-
readonly inputs: readonly [];
|
|
3351
|
-
}, {
|
|
3352
|
-
readonly type: "error";
|
|
3353
|
-
readonly name: "NotRatified";
|
|
3354
|
-
readonly inputs: readonly [];
|
|
3355
|
-
}, {
|
|
3356
|
-
readonly type: "error";
|
|
3357
|
-
readonly name: "Unauthorized";
|
|
3358
|
-
readonly inputs: readonly [];
|
|
3359
|
-
}];
|
|
3360
|
-
/**
|
|
3361
|
-
* Pinned ABI JSON for the PriceRatifierV1.
|
|
3362
|
-
*
|
|
3363
|
-
* Source: `morpho-org/midnight` commit `11f3d984b53286fd9137eb89e5d1385e23fe1b30`,
|
|
3364
|
-
* `src/ratifiers/interfaces/IPriceRatifierV1.sol`, Forge artifact `out/IPriceRatifierV1.sol/IPriceRatifierV1.json`.
|
|
3365
|
-
*
|
|
3366
|
-
* @example
|
|
3367
|
-
* ```ts
|
|
3368
|
-
* import { priceRatifierV1Abi } from "@morpho-org/midnight-sdk";
|
|
3369
|
-
*
|
|
3370
|
-
* console.log(priceRatifierV1Abi.length);
|
|
3371
|
-
* ```
|
|
3372
|
-
*/
|
|
3373
|
-
export declare const priceRatifierV1Abi: readonly [{
|
|
3374
|
-
readonly type: "function";
|
|
3375
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
3376
|
-
readonly inputs: readonly [];
|
|
3377
|
-
readonly outputs: readonly [{
|
|
3378
|
-
readonly name: "";
|
|
3379
|
-
readonly type: "bytes32";
|
|
3380
|
-
readonly internalType: "bytes32";
|
|
3381
|
-
}];
|
|
3382
|
-
readonly stateMutability: "view";
|
|
3383
|
-
}, {
|
|
3384
|
-
readonly type: "function";
|
|
3385
|
-
readonly name: "MIDNIGHT";
|
|
3386
|
-
readonly inputs: readonly [];
|
|
3387
|
-
readonly outputs: readonly [{
|
|
3388
|
-
readonly name: "";
|
|
3389
|
-
readonly type: "address";
|
|
3390
|
-
readonly internalType: "address";
|
|
3391
|
-
}];
|
|
3392
|
-
readonly stateMutability: "view";
|
|
3393
|
-
}, {
|
|
3394
|
-
readonly type: "function";
|
|
3395
|
-
readonly name: "isRatified";
|
|
3396
|
-
readonly inputs: readonly [{
|
|
3397
|
-
readonly name: "offer";
|
|
3398
|
-
readonly type: "tuple";
|
|
3399
|
-
readonly internalType: "struct Offer";
|
|
3400
|
-
readonly components: readonly [{
|
|
3401
|
-
readonly name: "market";
|
|
3402
|
-
readonly type: "tuple";
|
|
3403
|
-
readonly internalType: "struct Market";
|
|
3404
|
-
readonly components: readonly [{
|
|
3405
|
-
readonly name: "chainId";
|
|
3406
|
-
readonly type: "uint256";
|
|
3407
|
-
readonly internalType: "uint256";
|
|
3408
|
-
}, {
|
|
3409
|
-
readonly name: "midnight";
|
|
3410
|
-
readonly type: "address";
|
|
3411
|
-
readonly internalType: "address";
|
|
3412
|
-
}, {
|
|
3413
|
-
readonly name: "loanToken";
|
|
3414
|
-
readonly type: "address";
|
|
3415
|
-
readonly internalType: "address";
|
|
3416
|
-
}, {
|
|
3417
|
-
readonly name: "collateralParams";
|
|
3418
|
-
readonly type: "tuple[]";
|
|
3419
|
-
readonly internalType: "struct CollateralParams[]";
|
|
3420
|
-
readonly components: readonly [{
|
|
3421
|
-
readonly name: "token";
|
|
3422
|
-
readonly type: "address";
|
|
3423
|
-
readonly internalType: "address";
|
|
3424
|
-
}, {
|
|
3425
|
-
readonly name: "lltv";
|
|
3426
|
-
readonly type: "uint256";
|
|
3427
|
-
readonly internalType: "uint256";
|
|
3428
|
-
}, {
|
|
3429
|
-
readonly name: "liquidationCursor";
|
|
3430
|
-
readonly type: "uint256";
|
|
3431
|
-
readonly internalType: "uint256";
|
|
3432
|
-
}, {
|
|
3433
|
-
readonly name: "oracle";
|
|
3434
|
-
readonly type: "address";
|
|
3435
|
-
readonly internalType: "address";
|
|
3436
|
-
}];
|
|
3437
|
-
}, {
|
|
3438
|
-
readonly name: "maturity";
|
|
3439
|
-
readonly type: "uint256";
|
|
3440
|
-
readonly internalType: "uint256";
|
|
3441
|
-
}, {
|
|
3442
|
-
readonly name: "rcfThreshold";
|
|
3443
|
-
readonly type: "uint256";
|
|
3444
|
-
readonly internalType: "uint256";
|
|
3445
|
-
}, {
|
|
3446
|
-
readonly name: "enterGate";
|
|
3447
|
-
readonly type: "address";
|
|
3448
|
-
readonly internalType: "address";
|
|
3449
|
-
}, {
|
|
3450
|
-
readonly name: "liquidatorGate";
|
|
3451
|
-
readonly type: "address";
|
|
3452
|
-
readonly internalType: "address";
|
|
3453
|
-
}];
|
|
3454
|
-
}, {
|
|
3455
|
-
readonly name: "buy";
|
|
3456
|
-
readonly type: "bool";
|
|
3457
|
-
readonly internalType: "bool";
|
|
3458
|
-
}, {
|
|
3459
|
-
readonly name: "maker";
|
|
3460
|
-
readonly type: "address";
|
|
3461
|
-
readonly internalType: "address";
|
|
3462
|
-
}, {
|
|
3463
|
-
readonly name: "start";
|
|
3464
|
-
readonly type: "uint256";
|
|
3465
|
-
readonly internalType: "uint256";
|
|
3466
|
-
}, {
|
|
3467
|
-
readonly name: "expiry";
|
|
3468
|
-
readonly type: "uint256";
|
|
3469
|
-
readonly internalType: "uint256";
|
|
3470
|
-
}, {
|
|
3471
|
-
readonly name: "tick";
|
|
3472
|
-
readonly type: "uint256";
|
|
3473
|
-
readonly internalType: "uint256";
|
|
3474
|
-
}, {
|
|
3475
|
-
readonly name: "group";
|
|
3476
|
-
readonly type: "bytes32";
|
|
3477
|
-
readonly internalType: "bytes32";
|
|
3478
|
-
}, {
|
|
3479
|
-
readonly name: "callback";
|
|
3480
|
-
readonly type: "address";
|
|
3481
|
-
readonly internalType: "address";
|
|
3482
|
-
}, {
|
|
3483
|
-
readonly name: "callbackData";
|
|
3484
|
-
readonly type: "bytes";
|
|
3485
|
-
readonly internalType: "bytes";
|
|
3486
|
-
}, {
|
|
3487
|
-
readonly name: "receiverIfMakerIsSeller";
|
|
3488
|
-
readonly type: "address";
|
|
3489
|
-
readonly internalType: "address";
|
|
3490
|
-
}, {
|
|
3491
|
-
readonly name: "ratifier";
|
|
3492
|
-
readonly type: "address";
|
|
3493
|
-
readonly internalType: "address";
|
|
3494
|
-
}, {
|
|
3495
|
-
readonly name: "reduceOnly";
|
|
3496
|
-
readonly type: "bool";
|
|
3497
|
-
readonly internalType: "bool";
|
|
3498
|
-
}, {
|
|
3499
|
-
readonly name: "maxUnits";
|
|
3500
|
-
readonly type: "uint128";
|
|
3501
|
-
readonly internalType: "uint128";
|
|
3502
|
-
}, {
|
|
3503
|
-
readonly name: "maxAssets";
|
|
3504
|
-
readonly type: "uint128";
|
|
3505
|
-
readonly internalType: "uint128";
|
|
3506
|
-
}, {
|
|
3507
|
-
readonly name: "continuousFeeCap";
|
|
3508
|
-
readonly type: "uint256";
|
|
3509
|
-
readonly internalType: "uint256";
|
|
3510
|
-
}];
|
|
3511
|
-
}, {
|
|
3512
|
-
readonly name: "ratifierData";
|
|
3513
|
-
readonly type: "bytes";
|
|
3514
|
-
readonly internalType: "bytes";
|
|
3515
|
-
}, {
|
|
3516
|
-
readonly name: "taker";
|
|
3517
|
-
readonly type: "address";
|
|
3518
|
-
readonly internalType: "address";
|
|
3519
|
-
}];
|
|
3520
|
-
readonly outputs: readonly [{
|
|
3521
|
-
readonly name: "";
|
|
3522
|
-
readonly type: "bytes32";
|
|
3523
|
-
readonly internalType: "bytes32";
|
|
3524
|
-
}];
|
|
3525
|
-
readonly stateMutability: "view";
|
|
3526
|
-
}, {
|
|
3527
|
-
readonly type: "function";
|
|
3528
|
-
readonly name: "isRootRatified";
|
|
3529
|
-
readonly inputs: readonly [{
|
|
3530
|
-
readonly name: "maker";
|
|
3531
|
-
readonly type: "address";
|
|
3532
|
-
readonly internalType: "address";
|
|
3533
|
-
}, {
|
|
3534
|
-
readonly name: "root";
|
|
3535
|
-
readonly type: "bytes32";
|
|
3536
|
-
readonly internalType: "bytes32";
|
|
3537
|
-
}];
|
|
3538
|
-
readonly outputs: readonly [{
|
|
3539
|
-
readonly name: "";
|
|
3540
|
-
readonly type: "bool";
|
|
3541
|
-
readonly internalType: "bool";
|
|
3542
|
-
}];
|
|
3543
|
-
readonly stateMutability: "view";
|
|
3544
|
-
}, {
|
|
3545
|
-
readonly type: "function";
|
|
3546
|
-
readonly name: "ratification";
|
|
2978
|
+
readonly name: "ratification";
|
|
3547
2979
|
readonly inputs: readonly [{
|
|
3548
2980
|
readonly name: "maker";
|
|
3549
2981
|
readonly type: "address";
|
|
@@ -3751,28 +3183,73 @@ export declare const priceRatifierV1Abi: readonly [{
|
|
|
3751
3183
|
readonly type: "error";
|
|
3752
3184
|
readonly name: "UnauthorizedTaker";
|
|
3753
3185
|
readonly inputs: readonly [];
|
|
3186
|
+
}, {
|
|
3187
|
+
readonly type: "error";
|
|
3188
|
+
readonly name: "WorsePrice";
|
|
3189
|
+
readonly inputs: readonly [];
|
|
3754
3190
|
}];
|
|
3755
3191
|
/**
|
|
3756
|
-
*
|
|
3192
|
+
* ABI JSON for the Midnight Bundles V2 periphery used by maker cancel-and-make and taker flows.
|
|
3757
3193
|
*
|
|
3758
|
-
* Source: `morpho-org/
|
|
3759
|
-
* `src/
|
|
3194
|
+
* Source: `morpho-org/bundles` commit `07f293b383824b35adc745454ac2622a27eb0502`,
|
|
3195
|
+
* `src/midnight/MidnightBundlesV2.sol` (compiled with `forge inspect ... abi`).
|
|
3196
|
+
* V2 acts on `msg.sender` only and does not accept inline token permits.
|
|
3760
3197
|
*
|
|
3761
3198
|
* @example
|
|
3762
3199
|
* ```ts
|
|
3763
|
-
* import {
|
|
3200
|
+
* import { midnightBundlesV2Abi } from "@morpho-org/midnight-sdk";
|
|
3764
3201
|
*
|
|
3765
|
-
* console.log(
|
|
3202
|
+
* console.log(midnightBundlesV2Abi.length);
|
|
3766
3203
|
* ```
|
|
3767
3204
|
*/
|
|
3768
|
-
export declare const
|
|
3769
|
-
readonly type: "
|
|
3770
|
-
readonly
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
readonly
|
|
3774
|
-
|
|
3775
|
-
readonly
|
|
3205
|
+
export declare const midnightBundlesV2Abi: readonly [{
|
|
3206
|
+
readonly type: "constructor";
|
|
3207
|
+
readonly inputs: readonly [{
|
|
3208
|
+
readonly name: "_midnight";
|
|
3209
|
+
readonly type: "address";
|
|
3210
|
+
readonly internalType: "address";
|
|
3211
|
+
}, {
|
|
3212
|
+
readonly name: "_blue";
|
|
3213
|
+
readonly type: "address";
|
|
3214
|
+
readonly internalType: "address";
|
|
3215
|
+
}, {
|
|
3216
|
+
readonly name: "_blueBuyCallbackFactory";
|
|
3217
|
+
readonly type: "address";
|
|
3218
|
+
readonly internalType: "address";
|
|
3219
|
+
}, {
|
|
3220
|
+
readonly name: "_log";
|
|
3221
|
+
readonly type: "address";
|
|
3222
|
+
readonly internalType: "address";
|
|
3223
|
+
}];
|
|
3224
|
+
readonly stateMutability: "nonpayable";
|
|
3225
|
+
}, {
|
|
3226
|
+
readonly type: "function";
|
|
3227
|
+
readonly name: "BLUE";
|
|
3228
|
+
readonly inputs: readonly [];
|
|
3229
|
+
readonly outputs: readonly [{
|
|
3230
|
+
readonly name: "";
|
|
3231
|
+
readonly type: "address";
|
|
3232
|
+
readonly internalType: "address";
|
|
3233
|
+
}];
|
|
3234
|
+
readonly stateMutability: "view";
|
|
3235
|
+
}, {
|
|
3236
|
+
readonly type: "function";
|
|
3237
|
+
readonly name: "BLUE_BUY_CALLBACK_FACTORY";
|
|
3238
|
+
readonly inputs: readonly [];
|
|
3239
|
+
readonly outputs: readonly [{
|
|
3240
|
+
readonly name: "";
|
|
3241
|
+
readonly type: "address";
|
|
3242
|
+
readonly internalType: "address";
|
|
3243
|
+
}];
|
|
3244
|
+
readonly stateMutability: "view";
|
|
3245
|
+
}, {
|
|
3246
|
+
readonly type: "function";
|
|
3247
|
+
readonly name: "LOG";
|
|
3248
|
+
readonly inputs: readonly [];
|
|
3249
|
+
readonly outputs: readonly [{
|
|
3250
|
+
readonly name: "";
|
|
3251
|
+
readonly type: "address";
|
|
3252
|
+
readonly internalType: "address";
|
|
3776
3253
|
}];
|
|
3777
3254
|
readonly stateMutability: "view";
|
|
3778
3255
|
}, {
|
|
@@ -3787,367 +3264,1299 @@ export declare const rateRatifierV1Abi: readonly [{
|
|
|
3787
3264
|
readonly stateMutability: "view";
|
|
3788
3265
|
}, {
|
|
3789
3266
|
readonly type: "function";
|
|
3790
|
-
readonly name: "
|
|
3267
|
+
readonly name: "midnightBundlesV2BuyWithAssetsTargetAndWithdrawCollateral";
|
|
3791
3268
|
readonly inputs: readonly [{
|
|
3792
|
-
readonly name: "
|
|
3269
|
+
readonly name: "market";
|
|
3793
3270
|
readonly type: "tuple";
|
|
3794
|
-
readonly internalType: "struct
|
|
3271
|
+
readonly internalType: "struct Market";
|
|
3795
3272
|
readonly components: readonly [{
|
|
3796
|
-
readonly name: "
|
|
3273
|
+
readonly name: "chainId";
|
|
3274
|
+
readonly type: "uint256";
|
|
3275
|
+
readonly internalType: "uint256";
|
|
3276
|
+
}, {
|
|
3277
|
+
readonly name: "midnight";
|
|
3278
|
+
readonly type: "address";
|
|
3279
|
+
readonly internalType: "address";
|
|
3280
|
+
}, {
|
|
3281
|
+
readonly name: "loanToken";
|
|
3282
|
+
readonly type: "address";
|
|
3283
|
+
readonly internalType: "address";
|
|
3284
|
+
}, {
|
|
3285
|
+
readonly name: "collateralParams";
|
|
3286
|
+
readonly type: "tuple[]";
|
|
3287
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3288
|
+
readonly components: readonly [{
|
|
3289
|
+
readonly name: "token";
|
|
3290
|
+
readonly type: "address";
|
|
3291
|
+
readonly internalType: "address";
|
|
3292
|
+
}, {
|
|
3293
|
+
readonly name: "lltv";
|
|
3294
|
+
readonly type: "uint256";
|
|
3295
|
+
readonly internalType: "uint256";
|
|
3296
|
+
}, {
|
|
3297
|
+
readonly name: "liquidationCursor";
|
|
3298
|
+
readonly type: "uint256";
|
|
3299
|
+
readonly internalType: "uint256";
|
|
3300
|
+
}, {
|
|
3301
|
+
readonly name: "oracle";
|
|
3302
|
+
readonly type: "address";
|
|
3303
|
+
readonly internalType: "address";
|
|
3304
|
+
}];
|
|
3305
|
+
}, {
|
|
3306
|
+
readonly name: "maturity";
|
|
3307
|
+
readonly type: "uint256";
|
|
3308
|
+
readonly internalType: "uint256";
|
|
3309
|
+
}, {
|
|
3310
|
+
readonly name: "rcfThreshold";
|
|
3311
|
+
readonly type: "uint256";
|
|
3312
|
+
readonly internalType: "uint256";
|
|
3313
|
+
}, {
|
|
3314
|
+
readonly name: "enterGate";
|
|
3315
|
+
readonly type: "address";
|
|
3316
|
+
readonly internalType: "address";
|
|
3317
|
+
}, {
|
|
3318
|
+
readonly name: "liquidatorGate";
|
|
3319
|
+
readonly type: "address";
|
|
3320
|
+
readonly internalType: "address";
|
|
3321
|
+
}];
|
|
3322
|
+
}, {
|
|
3323
|
+
readonly name: "targetBuyerAssets";
|
|
3324
|
+
readonly type: "uint256";
|
|
3325
|
+
readonly internalType: "uint256";
|
|
3326
|
+
}, {
|
|
3327
|
+
readonly name: "minUnits";
|
|
3328
|
+
readonly type: "uint256";
|
|
3329
|
+
readonly internalType: "uint256";
|
|
3330
|
+
}, {
|
|
3331
|
+
readonly name: "reduceOnly";
|
|
3332
|
+
readonly type: "bool";
|
|
3333
|
+
readonly internalType: "bool";
|
|
3334
|
+
}, {
|
|
3335
|
+
readonly name: "repayEnabled";
|
|
3336
|
+
readonly type: "bool";
|
|
3337
|
+
readonly internalType: "bool";
|
|
3338
|
+
}, {
|
|
3339
|
+
readonly name: "offerFills";
|
|
3340
|
+
readonly type: "tuple[]";
|
|
3341
|
+
readonly internalType: "struct OfferFill[]";
|
|
3342
|
+
readonly components: readonly [{
|
|
3343
|
+
readonly name: "offer";
|
|
3797
3344
|
readonly type: "tuple";
|
|
3798
|
-
readonly internalType: "struct
|
|
3345
|
+
readonly internalType: "struct Offer";
|
|
3346
|
+
readonly components: readonly [{
|
|
3347
|
+
readonly name: "market";
|
|
3348
|
+
readonly type: "tuple";
|
|
3349
|
+
readonly internalType: "struct Market";
|
|
3350
|
+
readonly components: readonly [{
|
|
3351
|
+
readonly name: "chainId";
|
|
3352
|
+
readonly type: "uint256";
|
|
3353
|
+
readonly internalType: "uint256";
|
|
3354
|
+
}, {
|
|
3355
|
+
readonly name: "midnight";
|
|
3356
|
+
readonly type: "address";
|
|
3357
|
+
readonly internalType: "address";
|
|
3358
|
+
}, {
|
|
3359
|
+
readonly name: "loanToken";
|
|
3360
|
+
readonly type: "address";
|
|
3361
|
+
readonly internalType: "address";
|
|
3362
|
+
}, {
|
|
3363
|
+
readonly name: "collateralParams";
|
|
3364
|
+
readonly type: "tuple[]";
|
|
3365
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3366
|
+
readonly components: readonly [{
|
|
3367
|
+
readonly name: "token";
|
|
3368
|
+
readonly type: "address";
|
|
3369
|
+
readonly internalType: "address";
|
|
3370
|
+
}, {
|
|
3371
|
+
readonly name: "lltv";
|
|
3372
|
+
readonly type: "uint256";
|
|
3373
|
+
readonly internalType: "uint256";
|
|
3374
|
+
}, {
|
|
3375
|
+
readonly name: "liquidationCursor";
|
|
3376
|
+
readonly type: "uint256";
|
|
3377
|
+
readonly internalType: "uint256";
|
|
3378
|
+
}, {
|
|
3379
|
+
readonly name: "oracle";
|
|
3380
|
+
readonly type: "address";
|
|
3381
|
+
readonly internalType: "address";
|
|
3382
|
+
}];
|
|
3383
|
+
}, {
|
|
3384
|
+
readonly name: "maturity";
|
|
3385
|
+
readonly type: "uint256";
|
|
3386
|
+
readonly internalType: "uint256";
|
|
3387
|
+
}, {
|
|
3388
|
+
readonly name: "rcfThreshold";
|
|
3389
|
+
readonly type: "uint256";
|
|
3390
|
+
readonly internalType: "uint256";
|
|
3391
|
+
}, {
|
|
3392
|
+
readonly name: "enterGate";
|
|
3393
|
+
readonly type: "address";
|
|
3394
|
+
readonly internalType: "address";
|
|
3395
|
+
}, {
|
|
3396
|
+
readonly name: "liquidatorGate";
|
|
3397
|
+
readonly type: "address";
|
|
3398
|
+
readonly internalType: "address";
|
|
3399
|
+
}];
|
|
3400
|
+
}, {
|
|
3401
|
+
readonly name: "buy";
|
|
3402
|
+
readonly type: "bool";
|
|
3403
|
+
readonly internalType: "bool";
|
|
3404
|
+
}, {
|
|
3405
|
+
readonly name: "maker";
|
|
3406
|
+
readonly type: "address";
|
|
3407
|
+
readonly internalType: "address";
|
|
3408
|
+
}, {
|
|
3409
|
+
readonly name: "start";
|
|
3410
|
+
readonly type: "uint256";
|
|
3411
|
+
readonly internalType: "uint256";
|
|
3412
|
+
}, {
|
|
3413
|
+
readonly name: "expiry";
|
|
3414
|
+
readonly type: "uint256";
|
|
3415
|
+
readonly internalType: "uint256";
|
|
3416
|
+
}, {
|
|
3417
|
+
readonly name: "tick";
|
|
3418
|
+
readonly type: "uint256";
|
|
3419
|
+
readonly internalType: "uint256";
|
|
3420
|
+
}, {
|
|
3421
|
+
readonly name: "group";
|
|
3422
|
+
readonly type: "bytes32";
|
|
3423
|
+
readonly internalType: "bytes32";
|
|
3424
|
+
}, {
|
|
3425
|
+
readonly name: "callback";
|
|
3426
|
+
readonly type: "address";
|
|
3427
|
+
readonly internalType: "address";
|
|
3428
|
+
}, {
|
|
3429
|
+
readonly name: "callbackData";
|
|
3430
|
+
readonly type: "bytes";
|
|
3431
|
+
readonly internalType: "bytes";
|
|
3432
|
+
}, {
|
|
3433
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
3434
|
+
readonly type: "address";
|
|
3435
|
+
readonly internalType: "address";
|
|
3436
|
+
}, {
|
|
3437
|
+
readonly name: "ratifier";
|
|
3438
|
+
readonly type: "address";
|
|
3439
|
+
readonly internalType: "address";
|
|
3440
|
+
}, {
|
|
3441
|
+
readonly name: "reduceOnly";
|
|
3442
|
+
readonly type: "bool";
|
|
3443
|
+
readonly internalType: "bool";
|
|
3444
|
+
}, {
|
|
3445
|
+
readonly name: "maxUnits";
|
|
3446
|
+
readonly type: "uint128";
|
|
3447
|
+
readonly internalType: "uint128";
|
|
3448
|
+
}, {
|
|
3449
|
+
readonly name: "maxAssets";
|
|
3450
|
+
readonly type: "uint128";
|
|
3451
|
+
readonly internalType: "uint128";
|
|
3452
|
+
}, {
|
|
3453
|
+
readonly name: "continuousFeeCap";
|
|
3454
|
+
readonly type: "uint256";
|
|
3455
|
+
readonly internalType: "uint256";
|
|
3456
|
+
}];
|
|
3457
|
+
}, {
|
|
3458
|
+
readonly name: "ratifierData";
|
|
3459
|
+
readonly type: "bytes";
|
|
3460
|
+
readonly internalType: "bytes";
|
|
3461
|
+
}, {
|
|
3462
|
+
readonly name: "units";
|
|
3463
|
+
readonly type: "uint256";
|
|
3464
|
+
readonly internalType: "uint256";
|
|
3465
|
+
}];
|
|
3466
|
+
}, {
|
|
3467
|
+
readonly name: "collateralWithdrawals";
|
|
3468
|
+
readonly type: "tuple[]";
|
|
3469
|
+
readonly internalType: "struct CollateralTransfer[]";
|
|
3470
|
+
readonly components: readonly [{
|
|
3471
|
+
readonly name: "collateralIndex";
|
|
3472
|
+
readonly type: "uint256";
|
|
3473
|
+
readonly internalType: "uint256";
|
|
3474
|
+
}, {
|
|
3475
|
+
readonly name: "assets";
|
|
3476
|
+
readonly type: "uint256";
|
|
3477
|
+
readonly internalType: "uint256";
|
|
3478
|
+
}];
|
|
3479
|
+
}, {
|
|
3480
|
+
readonly name: "collateralReceiver";
|
|
3481
|
+
readonly type: "address";
|
|
3482
|
+
readonly internalType: "address";
|
|
3483
|
+
}, {
|
|
3484
|
+
readonly name: "referralFeePct";
|
|
3485
|
+
readonly type: "uint256";
|
|
3486
|
+
readonly internalType: "uint256";
|
|
3487
|
+
}, {
|
|
3488
|
+
readonly name: "referralFeeRecipient";
|
|
3489
|
+
readonly type: "address";
|
|
3490
|
+
readonly internalType: "address";
|
|
3491
|
+
}, {
|
|
3492
|
+
readonly name: "maxContinuousFee";
|
|
3493
|
+
readonly type: "uint256";
|
|
3494
|
+
readonly internalType: "uint256";
|
|
3495
|
+
}, {
|
|
3496
|
+
readonly name: "deadline";
|
|
3497
|
+
readonly type: "uint256";
|
|
3498
|
+
readonly internalType: "uint256";
|
|
3499
|
+
}, {
|
|
3500
|
+
readonly name: "wrappedNative";
|
|
3501
|
+
readonly type: "address";
|
|
3502
|
+
readonly internalType: "address";
|
|
3503
|
+
}];
|
|
3504
|
+
readonly outputs: readonly [];
|
|
3505
|
+
readonly stateMutability: "payable";
|
|
3506
|
+
}, {
|
|
3507
|
+
readonly type: "function";
|
|
3508
|
+
readonly name: "midnightBundlesV2BuyWithUnitsTargetAndWithdrawCollateral";
|
|
3509
|
+
readonly inputs: readonly [{
|
|
3510
|
+
readonly name: "market";
|
|
3511
|
+
readonly type: "tuple";
|
|
3512
|
+
readonly internalType: "struct Market";
|
|
3513
|
+
readonly components: readonly [{
|
|
3514
|
+
readonly name: "chainId";
|
|
3515
|
+
readonly type: "uint256";
|
|
3516
|
+
readonly internalType: "uint256";
|
|
3517
|
+
}, {
|
|
3518
|
+
readonly name: "midnight";
|
|
3519
|
+
readonly type: "address";
|
|
3520
|
+
readonly internalType: "address";
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly name: "loanToken";
|
|
3523
|
+
readonly type: "address";
|
|
3524
|
+
readonly internalType: "address";
|
|
3525
|
+
}, {
|
|
3526
|
+
readonly name: "collateralParams";
|
|
3527
|
+
readonly type: "tuple[]";
|
|
3528
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3529
|
+
readonly components: readonly [{
|
|
3530
|
+
readonly name: "token";
|
|
3531
|
+
readonly type: "address";
|
|
3532
|
+
readonly internalType: "address";
|
|
3533
|
+
}, {
|
|
3534
|
+
readonly name: "lltv";
|
|
3535
|
+
readonly type: "uint256";
|
|
3536
|
+
readonly internalType: "uint256";
|
|
3537
|
+
}, {
|
|
3538
|
+
readonly name: "liquidationCursor";
|
|
3539
|
+
readonly type: "uint256";
|
|
3540
|
+
readonly internalType: "uint256";
|
|
3541
|
+
}, {
|
|
3542
|
+
readonly name: "oracle";
|
|
3543
|
+
readonly type: "address";
|
|
3544
|
+
readonly internalType: "address";
|
|
3545
|
+
}];
|
|
3546
|
+
}, {
|
|
3547
|
+
readonly name: "maturity";
|
|
3548
|
+
readonly type: "uint256";
|
|
3549
|
+
readonly internalType: "uint256";
|
|
3550
|
+
}, {
|
|
3551
|
+
readonly name: "rcfThreshold";
|
|
3552
|
+
readonly type: "uint256";
|
|
3553
|
+
readonly internalType: "uint256";
|
|
3554
|
+
}, {
|
|
3555
|
+
readonly name: "enterGate";
|
|
3556
|
+
readonly type: "address";
|
|
3557
|
+
readonly internalType: "address";
|
|
3558
|
+
}, {
|
|
3559
|
+
readonly name: "liquidatorGate";
|
|
3560
|
+
readonly type: "address";
|
|
3561
|
+
readonly internalType: "address";
|
|
3562
|
+
}];
|
|
3563
|
+
}, {
|
|
3564
|
+
readonly name: "targetUnits";
|
|
3565
|
+
readonly type: "uint256";
|
|
3566
|
+
readonly internalType: "uint256";
|
|
3567
|
+
}, {
|
|
3568
|
+
readonly name: "maxBuyerAssets";
|
|
3569
|
+
readonly type: "uint256";
|
|
3570
|
+
readonly internalType: "uint256";
|
|
3571
|
+
}, {
|
|
3572
|
+
readonly name: "reduceOnly";
|
|
3573
|
+
readonly type: "bool";
|
|
3574
|
+
readonly internalType: "bool";
|
|
3575
|
+
}, {
|
|
3576
|
+
readonly name: "repayEnabled";
|
|
3577
|
+
readonly type: "bool";
|
|
3578
|
+
readonly internalType: "bool";
|
|
3579
|
+
}, {
|
|
3580
|
+
readonly name: "offerFills";
|
|
3581
|
+
readonly type: "tuple[]";
|
|
3582
|
+
readonly internalType: "struct OfferFill[]";
|
|
3583
|
+
readonly components: readonly [{
|
|
3584
|
+
readonly name: "offer";
|
|
3585
|
+
readonly type: "tuple";
|
|
3586
|
+
readonly internalType: "struct Offer";
|
|
3587
|
+
readonly components: readonly [{
|
|
3588
|
+
readonly name: "market";
|
|
3589
|
+
readonly type: "tuple";
|
|
3590
|
+
readonly internalType: "struct Market";
|
|
3591
|
+
readonly components: readonly [{
|
|
3592
|
+
readonly name: "chainId";
|
|
3593
|
+
readonly type: "uint256";
|
|
3594
|
+
readonly internalType: "uint256";
|
|
3595
|
+
}, {
|
|
3596
|
+
readonly name: "midnight";
|
|
3597
|
+
readonly type: "address";
|
|
3598
|
+
readonly internalType: "address";
|
|
3599
|
+
}, {
|
|
3600
|
+
readonly name: "loanToken";
|
|
3601
|
+
readonly type: "address";
|
|
3602
|
+
readonly internalType: "address";
|
|
3603
|
+
}, {
|
|
3604
|
+
readonly name: "collateralParams";
|
|
3605
|
+
readonly type: "tuple[]";
|
|
3606
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3607
|
+
readonly components: readonly [{
|
|
3608
|
+
readonly name: "token";
|
|
3609
|
+
readonly type: "address";
|
|
3610
|
+
readonly internalType: "address";
|
|
3611
|
+
}, {
|
|
3612
|
+
readonly name: "lltv";
|
|
3613
|
+
readonly type: "uint256";
|
|
3614
|
+
readonly internalType: "uint256";
|
|
3615
|
+
}, {
|
|
3616
|
+
readonly name: "liquidationCursor";
|
|
3617
|
+
readonly type: "uint256";
|
|
3618
|
+
readonly internalType: "uint256";
|
|
3619
|
+
}, {
|
|
3620
|
+
readonly name: "oracle";
|
|
3621
|
+
readonly type: "address";
|
|
3622
|
+
readonly internalType: "address";
|
|
3623
|
+
}];
|
|
3624
|
+
}, {
|
|
3625
|
+
readonly name: "maturity";
|
|
3626
|
+
readonly type: "uint256";
|
|
3627
|
+
readonly internalType: "uint256";
|
|
3628
|
+
}, {
|
|
3629
|
+
readonly name: "rcfThreshold";
|
|
3630
|
+
readonly type: "uint256";
|
|
3631
|
+
readonly internalType: "uint256";
|
|
3632
|
+
}, {
|
|
3633
|
+
readonly name: "enterGate";
|
|
3634
|
+
readonly type: "address";
|
|
3635
|
+
readonly internalType: "address";
|
|
3636
|
+
}, {
|
|
3637
|
+
readonly name: "liquidatorGate";
|
|
3638
|
+
readonly type: "address";
|
|
3639
|
+
readonly internalType: "address";
|
|
3640
|
+
}];
|
|
3641
|
+
}, {
|
|
3642
|
+
readonly name: "buy";
|
|
3643
|
+
readonly type: "bool";
|
|
3644
|
+
readonly internalType: "bool";
|
|
3645
|
+
}, {
|
|
3646
|
+
readonly name: "maker";
|
|
3647
|
+
readonly type: "address";
|
|
3648
|
+
readonly internalType: "address";
|
|
3649
|
+
}, {
|
|
3650
|
+
readonly name: "start";
|
|
3651
|
+
readonly type: "uint256";
|
|
3652
|
+
readonly internalType: "uint256";
|
|
3653
|
+
}, {
|
|
3654
|
+
readonly name: "expiry";
|
|
3655
|
+
readonly type: "uint256";
|
|
3656
|
+
readonly internalType: "uint256";
|
|
3657
|
+
}, {
|
|
3658
|
+
readonly name: "tick";
|
|
3659
|
+
readonly type: "uint256";
|
|
3660
|
+
readonly internalType: "uint256";
|
|
3661
|
+
}, {
|
|
3662
|
+
readonly name: "group";
|
|
3663
|
+
readonly type: "bytes32";
|
|
3664
|
+
readonly internalType: "bytes32";
|
|
3665
|
+
}, {
|
|
3666
|
+
readonly name: "callback";
|
|
3667
|
+
readonly type: "address";
|
|
3668
|
+
readonly internalType: "address";
|
|
3669
|
+
}, {
|
|
3670
|
+
readonly name: "callbackData";
|
|
3671
|
+
readonly type: "bytes";
|
|
3672
|
+
readonly internalType: "bytes";
|
|
3673
|
+
}, {
|
|
3674
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
3675
|
+
readonly type: "address";
|
|
3676
|
+
readonly internalType: "address";
|
|
3677
|
+
}, {
|
|
3678
|
+
readonly name: "ratifier";
|
|
3679
|
+
readonly type: "address";
|
|
3680
|
+
readonly internalType: "address";
|
|
3681
|
+
}, {
|
|
3682
|
+
readonly name: "reduceOnly";
|
|
3683
|
+
readonly type: "bool";
|
|
3684
|
+
readonly internalType: "bool";
|
|
3685
|
+
}, {
|
|
3686
|
+
readonly name: "maxUnits";
|
|
3687
|
+
readonly type: "uint128";
|
|
3688
|
+
readonly internalType: "uint128";
|
|
3689
|
+
}, {
|
|
3690
|
+
readonly name: "maxAssets";
|
|
3691
|
+
readonly type: "uint128";
|
|
3692
|
+
readonly internalType: "uint128";
|
|
3693
|
+
}, {
|
|
3694
|
+
readonly name: "continuousFeeCap";
|
|
3695
|
+
readonly type: "uint256";
|
|
3696
|
+
readonly internalType: "uint256";
|
|
3697
|
+
}];
|
|
3698
|
+
}, {
|
|
3699
|
+
readonly name: "ratifierData";
|
|
3700
|
+
readonly type: "bytes";
|
|
3701
|
+
readonly internalType: "bytes";
|
|
3702
|
+
}, {
|
|
3703
|
+
readonly name: "units";
|
|
3704
|
+
readonly type: "uint256";
|
|
3705
|
+
readonly internalType: "uint256";
|
|
3706
|
+
}];
|
|
3707
|
+
}, {
|
|
3708
|
+
readonly name: "collateralWithdrawals";
|
|
3709
|
+
readonly type: "tuple[]";
|
|
3710
|
+
readonly internalType: "struct CollateralTransfer[]";
|
|
3711
|
+
readonly components: readonly [{
|
|
3712
|
+
readonly name: "collateralIndex";
|
|
3713
|
+
readonly type: "uint256";
|
|
3714
|
+
readonly internalType: "uint256";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly name: "assets";
|
|
3717
|
+
readonly type: "uint256";
|
|
3718
|
+
readonly internalType: "uint256";
|
|
3719
|
+
}];
|
|
3720
|
+
}, {
|
|
3721
|
+
readonly name: "collateralReceiver";
|
|
3722
|
+
readonly type: "address";
|
|
3723
|
+
readonly internalType: "address";
|
|
3724
|
+
}, {
|
|
3725
|
+
readonly name: "referralFeePct";
|
|
3726
|
+
readonly type: "uint256";
|
|
3727
|
+
readonly internalType: "uint256";
|
|
3728
|
+
}, {
|
|
3729
|
+
readonly name: "referralFeeRecipient";
|
|
3730
|
+
readonly type: "address";
|
|
3731
|
+
readonly internalType: "address";
|
|
3732
|
+
}, {
|
|
3733
|
+
readonly name: "maxContinuousFee";
|
|
3734
|
+
readonly type: "uint256";
|
|
3735
|
+
readonly internalType: "uint256";
|
|
3736
|
+
}, {
|
|
3737
|
+
readonly name: "deadline";
|
|
3738
|
+
readonly type: "uint256";
|
|
3739
|
+
readonly internalType: "uint256";
|
|
3740
|
+
}, {
|
|
3741
|
+
readonly name: "wrappedNative";
|
|
3742
|
+
readonly type: "address";
|
|
3743
|
+
readonly internalType: "address";
|
|
3744
|
+
}];
|
|
3745
|
+
readonly outputs: readonly [];
|
|
3746
|
+
readonly stateMutability: "payable";
|
|
3747
|
+
}, {
|
|
3748
|
+
readonly type: "function";
|
|
3749
|
+
readonly name: "midnightBundlesV2CancelAndMake";
|
|
3750
|
+
readonly inputs: readonly [{
|
|
3751
|
+
readonly name: "blueMarket";
|
|
3752
|
+
readonly type: "tuple";
|
|
3753
|
+
readonly internalType: "struct MarketParams";
|
|
3754
|
+
readonly components: readonly [{
|
|
3755
|
+
readonly name: "loanToken";
|
|
3756
|
+
readonly type: "address";
|
|
3757
|
+
readonly internalType: "address";
|
|
3758
|
+
}, {
|
|
3759
|
+
readonly name: "collateralToken";
|
|
3760
|
+
readonly type: "address";
|
|
3761
|
+
readonly internalType: "address";
|
|
3762
|
+
}, {
|
|
3763
|
+
readonly name: "oracle";
|
|
3764
|
+
readonly type: "address";
|
|
3765
|
+
readonly internalType: "address";
|
|
3766
|
+
}, {
|
|
3767
|
+
readonly name: "irm";
|
|
3768
|
+
readonly type: "address";
|
|
3769
|
+
readonly internalType: "address";
|
|
3770
|
+
}, {
|
|
3771
|
+
readonly name: "lltv";
|
|
3772
|
+
readonly type: "uint256";
|
|
3773
|
+
readonly internalType: "uint256";
|
|
3774
|
+
}];
|
|
3775
|
+
}, {
|
|
3776
|
+
readonly name: "assetsToPark";
|
|
3777
|
+
readonly type: "uint256";
|
|
3778
|
+
readonly internalType: "uint256";
|
|
3779
|
+
}, {
|
|
3780
|
+
readonly name: "callbackSalt";
|
|
3781
|
+
readonly type: "bytes32";
|
|
3782
|
+
readonly internalType: "bytes32";
|
|
3783
|
+
}, {
|
|
3784
|
+
readonly name: "market";
|
|
3785
|
+
readonly type: "tuple";
|
|
3786
|
+
readonly internalType: "struct Market";
|
|
3787
|
+
readonly components: readonly [{
|
|
3788
|
+
readonly name: "chainId";
|
|
3789
|
+
readonly type: "uint256";
|
|
3790
|
+
readonly internalType: "uint256";
|
|
3791
|
+
}, {
|
|
3792
|
+
readonly name: "midnight";
|
|
3793
|
+
readonly type: "address";
|
|
3794
|
+
readonly internalType: "address";
|
|
3795
|
+
}, {
|
|
3796
|
+
readonly name: "loanToken";
|
|
3797
|
+
readonly type: "address";
|
|
3798
|
+
readonly internalType: "address";
|
|
3799
|
+
}, {
|
|
3800
|
+
readonly name: "collateralParams";
|
|
3801
|
+
readonly type: "tuple[]";
|
|
3802
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3803
|
+
readonly components: readonly [{
|
|
3804
|
+
readonly name: "token";
|
|
3805
|
+
readonly type: "address";
|
|
3806
|
+
readonly internalType: "address";
|
|
3807
|
+
}, {
|
|
3808
|
+
readonly name: "lltv";
|
|
3809
|
+
readonly type: "uint256";
|
|
3810
|
+
readonly internalType: "uint256";
|
|
3811
|
+
}, {
|
|
3812
|
+
readonly name: "liquidationCursor";
|
|
3813
|
+
readonly type: "uint256";
|
|
3814
|
+
readonly internalType: "uint256";
|
|
3815
|
+
}, {
|
|
3816
|
+
readonly name: "oracle";
|
|
3817
|
+
readonly type: "address";
|
|
3818
|
+
readonly internalType: "address";
|
|
3819
|
+
}];
|
|
3820
|
+
}, {
|
|
3821
|
+
readonly name: "maturity";
|
|
3822
|
+
readonly type: "uint256";
|
|
3823
|
+
readonly internalType: "uint256";
|
|
3824
|
+
}, {
|
|
3825
|
+
readonly name: "rcfThreshold";
|
|
3826
|
+
readonly type: "uint256";
|
|
3827
|
+
readonly internalType: "uint256";
|
|
3828
|
+
}, {
|
|
3829
|
+
readonly name: "enterGate";
|
|
3830
|
+
readonly type: "address";
|
|
3831
|
+
readonly internalType: "address";
|
|
3832
|
+
}, {
|
|
3833
|
+
readonly name: "liquidatorGate";
|
|
3834
|
+
readonly type: "address";
|
|
3835
|
+
readonly internalType: "address";
|
|
3836
|
+
}];
|
|
3837
|
+
}, {
|
|
3838
|
+
readonly name: "collateralSupplies";
|
|
3839
|
+
readonly type: "tuple[]";
|
|
3840
|
+
readonly internalType: "struct CollateralTransfer[]";
|
|
3841
|
+
readonly components: readonly [{
|
|
3842
|
+
readonly name: "collateralIndex";
|
|
3843
|
+
readonly type: "uint256";
|
|
3844
|
+
readonly internalType: "uint256";
|
|
3845
|
+
}, {
|
|
3846
|
+
readonly name: "assets";
|
|
3847
|
+
readonly type: "uint256";
|
|
3848
|
+
readonly internalType: "uint256";
|
|
3849
|
+
}];
|
|
3850
|
+
}, {
|
|
3851
|
+
readonly name: "ratifier";
|
|
3852
|
+
readonly type: "address";
|
|
3853
|
+
readonly internalType: "address";
|
|
3854
|
+
}, {
|
|
3855
|
+
readonly name: "newRoot";
|
|
3856
|
+
readonly type: "bytes32";
|
|
3857
|
+
readonly internalType: "bytes32";
|
|
3858
|
+
}, {
|
|
3859
|
+
readonly name: "signatureHeight";
|
|
3860
|
+
readonly type: "uint256";
|
|
3861
|
+
readonly internalType: "uint256";
|
|
3862
|
+
}, {
|
|
3863
|
+
readonly name: "signatureNonce";
|
|
3864
|
+
readonly type: "uint128";
|
|
3865
|
+
readonly internalType: "uint128";
|
|
3866
|
+
}, {
|
|
3867
|
+
readonly name: "signatureDeadline";
|
|
3868
|
+
readonly type: "uint256";
|
|
3869
|
+
readonly internalType: "uint256";
|
|
3870
|
+
}, {
|
|
3871
|
+
readonly name: "v";
|
|
3872
|
+
readonly type: "uint8";
|
|
3873
|
+
readonly internalType: "uint8";
|
|
3874
|
+
}, {
|
|
3875
|
+
readonly name: "r";
|
|
3876
|
+
readonly type: "bytes32";
|
|
3877
|
+
readonly internalType: "bytes32";
|
|
3878
|
+
}, {
|
|
3879
|
+
readonly name: "s";
|
|
3880
|
+
readonly type: "bytes32";
|
|
3881
|
+
readonly internalType: "bytes32";
|
|
3882
|
+
}, {
|
|
3883
|
+
readonly name: "groupsToCancel";
|
|
3884
|
+
readonly type: "tuple[]";
|
|
3885
|
+
readonly internalType: "struct GroupCancellation[]";
|
|
3886
|
+
readonly components: readonly [{
|
|
3887
|
+
readonly name: "group";
|
|
3888
|
+
readonly type: "bytes32";
|
|
3889
|
+
readonly internalType: "bytes32";
|
|
3890
|
+
}, {
|
|
3891
|
+
readonly name: "maxConsumed";
|
|
3892
|
+
readonly type: "uint128";
|
|
3893
|
+
readonly internalType: "uint128";
|
|
3894
|
+
}];
|
|
3895
|
+
}, {
|
|
3896
|
+
readonly name: "payload";
|
|
3897
|
+
readonly type: "bytes";
|
|
3898
|
+
readonly internalType: "bytes";
|
|
3899
|
+
}, {
|
|
3900
|
+
readonly name: "deadline";
|
|
3901
|
+
readonly type: "uint256";
|
|
3902
|
+
readonly internalType: "uint256";
|
|
3903
|
+
}, {
|
|
3904
|
+
readonly name: "wrappedNative";
|
|
3905
|
+
readonly type: "address";
|
|
3906
|
+
readonly internalType: "address";
|
|
3907
|
+
}];
|
|
3908
|
+
readonly outputs: readonly [];
|
|
3909
|
+
readonly stateMutability: "payable";
|
|
3910
|
+
}, {
|
|
3911
|
+
readonly type: "function";
|
|
3912
|
+
readonly name: "midnightBundlesV2SupplyCollateralAndSellWithAssetsTarget";
|
|
3913
|
+
readonly inputs: readonly [{
|
|
3914
|
+
readonly name: "market";
|
|
3915
|
+
readonly type: "tuple";
|
|
3916
|
+
readonly internalType: "struct Market";
|
|
3917
|
+
readonly components: readonly [{
|
|
3918
|
+
readonly name: "chainId";
|
|
3919
|
+
readonly type: "uint256";
|
|
3920
|
+
readonly internalType: "uint256";
|
|
3921
|
+
}, {
|
|
3922
|
+
readonly name: "midnight";
|
|
3923
|
+
readonly type: "address";
|
|
3924
|
+
readonly internalType: "address";
|
|
3925
|
+
}, {
|
|
3926
|
+
readonly name: "loanToken";
|
|
3927
|
+
readonly type: "address";
|
|
3928
|
+
readonly internalType: "address";
|
|
3929
|
+
}, {
|
|
3930
|
+
readonly name: "collateralParams";
|
|
3931
|
+
readonly type: "tuple[]";
|
|
3932
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3933
|
+
readonly components: readonly [{
|
|
3934
|
+
readonly name: "token";
|
|
3935
|
+
readonly type: "address";
|
|
3936
|
+
readonly internalType: "address";
|
|
3937
|
+
}, {
|
|
3938
|
+
readonly name: "lltv";
|
|
3939
|
+
readonly type: "uint256";
|
|
3940
|
+
readonly internalType: "uint256";
|
|
3941
|
+
}, {
|
|
3942
|
+
readonly name: "liquidationCursor";
|
|
3943
|
+
readonly type: "uint256";
|
|
3944
|
+
readonly internalType: "uint256";
|
|
3945
|
+
}, {
|
|
3946
|
+
readonly name: "oracle";
|
|
3947
|
+
readonly type: "address";
|
|
3948
|
+
readonly internalType: "address";
|
|
3949
|
+
}];
|
|
3950
|
+
}, {
|
|
3951
|
+
readonly name: "maturity";
|
|
3952
|
+
readonly type: "uint256";
|
|
3953
|
+
readonly internalType: "uint256";
|
|
3954
|
+
}, {
|
|
3955
|
+
readonly name: "rcfThreshold";
|
|
3956
|
+
readonly type: "uint256";
|
|
3957
|
+
readonly internalType: "uint256";
|
|
3958
|
+
}, {
|
|
3959
|
+
readonly name: "enterGate";
|
|
3960
|
+
readonly type: "address";
|
|
3961
|
+
readonly internalType: "address";
|
|
3962
|
+
}, {
|
|
3963
|
+
readonly name: "liquidatorGate";
|
|
3964
|
+
readonly type: "address";
|
|
3965
|
+
readonly internalType: "address";
|
|
3966
|
+
}];
|
|
3967
|
+
}, {
|
|
3968
|
+
readonly name: "targetSellerAssets";
|
|
3969
|
+
readonly type: "uint256";
|
|
3970
|
+
readonly internalType: "uint256";
|
|
3971
|
+
}, {
|
|
3972
|
+
readonly name: "maxUnits";
|
|
3973
|
+
readonly type: "uint256";
|
|
3974
|
+
readonly internalType: "uint256";
|
|
3975
|
+
}, {
|
|
3976
|
+
readonly name: "reduceOnly";
|
|
3977
|
+
readonly type: "bool";
|
|
3978
|
+
readonly internalType: "bool";
|
|
3979
|
+
}, {
|
|
3980
|
+
readonly name: "receiver";
|
|
3981
|
+
readonly type: "address";
|
|
3982
|
+
readonly internalType: "address";
|
|
3983
|
+
}, {
|
|
3984
|
+
readonly name: "collateralSupplies";
|
|
3985
|
+
readonly type: "tuple[]";
|
|
3986
|
+
readonly internalType: "struct CollateralTransfer[]";
|
|
3987
|
+
readonly components: readonly [{
|
|
3988
|
+
readonly name: "collateralIndex";
|
|
3989
|
+
readonly type: "uint256";
|
|
3990
|
+
readonly internalType: "uint256";
|
|
3991
|
+
}, {
|
|
3992
|
+
readonly name: "assets";
|
|
3993
|
+
readonly type: "uint256";
|
|
3994
|
+
readonly internalType: "uint256";
|
|
3995
|
+
}];
|
|
3996
|
+
}, {
|
|
3997
|
+
readonly name: "offerFills";
|
|
3998
|
+
readonly type: "tuple[]";
|
|
3999
|
+
readonly internalType: "struct OfferFill[]";
|
|
4000
|
+
readonly components: readonly [{
|
|
4001
|
+
readonly name: "offer";
|
|
4002
|
+
readonly type: "tuple";
|
|
4003
|
+
readonly internalType: "struct Offer";
|
|
4004
|
+
readonly components: readonly [{
|
|
4005
|
+
readonly name: "market";
|
|
4006
|
+
readonly type: "tuple";
|
|
4007
|
+
readonly internalType: "struct Market";
|
|
4008
|
+
readonly components: readonly [{
|
|
4009
|
+
readonly name: "chainId";
|
|
4010
|
+
readonly type: "uint256";
|
|
4011
|
+
readonly internalType: "uint256";
|
|
4012
|
+
}, {
|
|
4013
|
+
readonly name: "midnight";
|
|
4014
|
+
readonly type: "address";
|
|
4015
|
+
readonly internalType: "address";
|
|
4016
|
+
}, {
|
|
4017
|
+
readonly name: "loanToken";
|
|
4018
|
+
readonly type: "address";
|
|
4019
|
+
readonly internalType: "address";
|
|
4020
|
+
}, {
|
|
4021
|
+
readonly name: "collateralParams";
|
|
4022
|
+
readonly type: "tuple[]";
|
|
4023
|
+
readonly internalType: "struct CollateralParams[]";
|
|
4024
|
+
readonly components: readonly [{
|
|
4025
|
+
readonly name: "token";
|
|
4026
|
+
readonly type: "address";
|
|
4027
|
+
readonly internalType: "address";
|
|
4028
|
+
}, {
|
|
4029
|
+
readonly name: "lltv";
|
|
4030
|
+
readonly type: "uint256";
|
|
4031
|
+
readonly internalType: "uint256";
|
|
4032
|
+
}, {
|
|
4033
|
+
readonly name: "liquidationCursor";
|
|
4034
|
+
readonly type: "uint256";
|
|
4035
|
+
readonly internalType: "uint256";
|
|
4036
|
+
}, {
|
|
4037
|
+
readonly name: "oracle";
|
|
4038
|
+
readonly type: "address";
|
|
4039
|
+
readonly internalType: "address";
|
|
4040
|
+
}];
|
|
4041
|
+
}, {
|
|
4042
|
+
readonly name: "maturity";
|
|
4043
|
+
readonly type: "uint256";
|
|
4044
|
+
readonly internalType: "uint256";
|
|
4045
|
+
}, {
|
|
4046
|
+
readonly name: "rcfThreshold";
|
|
4047
|
+
readonly type: "uint256";
|
|
4048
|
+
readonly internalType: "uint256";
|
|
4049
|
+
}, {
|
|
4050
|
+
readonly name: "enterGate";
|
|
4051
|
+
readonly type: "address";
|
|
4052
|
+
readonly internalType: "address";
|
|
4053
|
+
}, {
|
|
4054
|
+
readonly name: "liquidatorGate";
|
|
4055
|
+
readonly type: "address";
|
|
4056
|
+
readonly internalType: "address";
|
|
4057
|
+
}];
|
|
4058
|
+
}, {
|
|
4059
|
+
readonly name: "buy";
|
|
4060
|
+
readonly type: "bool";
|
|
4061
|
+
readonly internalType: "bool";
|
|
4062
|
+
}, {
|
|
4063
|
+
readonly name: "maker";
|
|
4064
|
+
readonly type: "address";
|
|
4065
|
+
readonly internalType: "address";
|
|
4066
|
+
}, {
|
|
4067
|
+
readonly name: "start";
|
|
4068
|
+
readonly type: "uint256";
|
|
4069
|
+
readonly internalType: "uint256";
|
|
4070
|
+
}, {
|
|
4071
|
+
readonly name: "expiry";
|
|
4072
|
+
readonly type: "uint256";
|
|
4073
|
+
readonly internalType: "uint256";
|
|
4074
|
+
}, {
|
|
4075
|
+
readonly name: "tick";
|
|
4076
|
+
readonly type: "uint256";
|
|
4077
|
+
readonly internalType: "uint256";
|
|
4078
|
+
}, {
|
|
4079
|
+
readonly name: "group";
|
|
4080
|
+
readonly type: "bytes32";
|
|
4081
|
+
readonly internalType: "bytes32";
|
|
4082
|
+
}, {
|
|
4083
|
+
readonly name: "callback";
|
|
4084
|
+
readonly type: "address";
|
|
4085
|
+
readonly internalType: "address";
|
|
4086
|
+
}, {
|
|
4087
|
+
readonly name: "callbackData";
|
|
4088
|
+
readonly type: "bytes";
|
|
4089
|
+
readonly internalType: "bytes";
|
|
4090
|
+
}, {
|
|
4091
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
4092
|
+
readonly type: "address";
|
|
4093
|
+
readonly internalType: "address";
|
|
4094
|
+
}, {
|
|
4095
|
+
readonly name: "ratifier";
|
|
4096
|
+
readonly type: "address";
|
|
4097
|
+
readonly internalType: "address";
|
|
4098
|
+
}, {
|
|
4099
|
+
readonly name: "reduceOnly";
|
|
4100
|
+
readonly type: "bool";
|
|
4101
|
+
readonly internalType: "bool";
|
|
4102
|
+
}, {
|
|
4103
|
+
readonly name: "maxUnits";
|
|
4104
|
+
readonly type: "uint128";
|
|
4105
|
+
readonly internalType: "uint128";
|
|
4106
|
+
}, {
|
|
4107
|
+
readonly name: "maxAssets";
|
|
4108
|
+
readonly type: "uint128";
|
|
4109
|
+
readonly internalType: "uint128";
|
|
4110
|
+
}, {
|
|
4111
|
+
readonly name: "continuousFeeCap";
|
|
4112
|
+
readonly type: "uint256";
|
|
4113
|
+
readonly internalType: "uint256";
|
|
4114
|
+
}];
|
|
4115
|
+
}, {
|
|
4116
|
+
readonly name: "ratifierData";
|
|
4117
|
+
readonly type: "bytes";
|
|
4118
|
+
readonly internalType: "bytes";
|
|
4119
|
+
}, {
|
|
4120
|
+
readonly name: "units";
|
|
4121
|
+
readonly type: "uint256";
|
|
4122
|
+
readonly internalType: "uint256";
|
|
4123
|
+
}];
|
|
4124
|
+
}, {
|
|
4125
|
+
readonly name: "referralFeePct";
|
|
4126
|
+
readonly type: "uint256";
|
|
4127
|
+
readonly internalType: "uint256";
|
|
4128
|
+
}, {
|
|
4129
|
+
readonly name: "referralFeeRecipient";
|
|
4130
|
+
readonly type: "address";
|
|
4131
|
+
readonly internalType: "address";
|
|
4132
|
+
}, {
|
|
4133
|
+
readonly name: "deadline";
|
|
4134
|
+
readonly type: "uint256";
|
|
4135
|
+
readonly internalType: "uint256";
|
|
4136
|
+
}, {
|
|
4137
|
+
readonly name: "wrappedNative";
|
|
4138
|
+
readonly type: "address";
|
|
4139
|
+
readonly internalType: "address";
|
|
4140
|
+
}];
|
|
4141
|
+
readonly outputs: readonly [];
|
|
4142
|
+
readonly stateMutability: "payable";
|
|
4143
|
+
}, {
|
|
4144
|
+
readonly type: "function";
|
|
4145
|
+
readonly name: "midnightBundlesV2SupplyCollateralAndSellWithUnitsTarget";
|
|
4146
|
+
readonly inputs: readonly [{
|
|
4147
|
+
readonly name: "market";
|
|
4148
|
+
readonly type: "tuple";
|
|
4149
|
+
readonly internalType: "struct Market";
|
|
4150
|
+
readonly components: readonly [{
|
|
4151
|
+
readonly name: "chainId";
|
|
4152
|
+
readonly type: "uint256";
|
|
4153
|
+
readonly internalType: "uint256";
|
|
4154
|
+
}, {
|
|
4155
|
+
readonly name: "midnight";
|
|
4156
|
+
readonly type: "address";
|
|
4157
|
+
readonly internalType: "address";
|
|
4158
|
+
}, {
|
|
4159
|
+
readonly name: "loanToken";
|
|
4160
|
+
readonly type: "address";
|
|
4161
|
+
readonly internalType: "address";
|
|
4162
|
+
}, {
|
|
4163
|
+
readonly name: "collateralParams";
|
|
4164
|
+
readonly type: "tuple[]";
|
|
4165
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3799
4166
|
readonly components: readonly [{
|
|
3800
|
-
readonly name: "
|
|
4167
|
+
readonly name: "token";
|
|
4168
|
+
readonly type: "address";
|
|
4169
|
+
readonly internalType: "address";
|
|
4170
|
+
}, {
|
|
4171
|
+
readonly name: "lltv";
|
|
3801
4172
|
readonly type: "uint256";
|
|
3802
4173
|
readonly internalType: "uint256";
|
|
3803
4174
|
}, {
|
|
3804
|
-
readonly name: "
|
|
3805
|
-
readonly type: "
|
|
3806
|
-
readonly internalType: "
|
|
4175
|
+
readonly name: "liquidationCursor";
|
|
4176
|
+
readonly type: "uint256";
|
|
4177
|
+
readonly internalType: "uint256";
|
|
3807
4178
|
}, {
|
|
3808
|
-
readonly name: "
|
|
4179
|
+
readonly name: "oracle";
|
|
3809
4180
|
readonly type: "address";
|
|
3810
4181
|
readonly internalType: "address";
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
4182
|
+
}];
|
|
4183
|
+
}, {
|
|
4184
|
+
readonly name: "maturity";
|
|
4185
|
+
readonly type: "uint256";
|
|
4186
|
+
readonly internalType: "uint256";
|
|
4187
|
+
}, {
|
|
4188
|
+
readonly name: "rcfThreshold";
|
|
4189
|
+
readonly type: "uint256";
|
|
4190
|
+
readonly internalType: "uint256";
|
|
4191
|
+
}, {
|
|
4192
|
+
readonly name: "enterGate";
|
|
4193
|
+
readonly type: "address";
|
|
4194
|
+
readonly internalType: "address";
|
|
4195
|
+
}, {
|
|
4196
|
+
readonly name: "liquidatorGate";
|
|
4197
|
+
readonly type: "address";
|
|
4198
|
+
readonly internalType: "address";
|
|
4199
|
+
}];
|
|
4200
|
+
}, {
|
|
4201
|
+
readonly name: "targetUnits";
|
|
4202
|
+
readonly type: "uint256";
|
|
4203
|
+
readonly internalType: "uint256";
|
|
4204
|
+
}, {
|
|
4205
|
+
readonly name: "minSellerAssets";
|
|
4206
|
+
readonly type: "uint256";
|
|
4207
|
+
readonly internalType: "uint256";
|
|
4208
|
+
}, {
|
|
4209
|
+
readonly name: "reduceOnly";
|
|
4210
|
+
readonly type: "bool";
|
|
4211
|
+
readonly internalType: "bool";
|
|
4212
|
+
}, {
|
|
4213
|
+
readonly name: "receiver";
|
|
4214
|
+
readonly type: "address";
|
|
4215
|
+
readonly internalType: "address";
|
|
4216
|
+
}, {
|
|
4217
|
+
readonly name: "collateralSupplies";
|
|
4218
|
+
readonly type: "tuple[]";
|
|
4219
|
+
readonly internalType: "struct CollateralTransfer[]";
|
|
4220
|
+
readonly components: readonly [{
|
|
4221
|
+
readonly name: "collateralIndex";
|
|
4222
|
+
readonly type: "uint256";
|
|
4223
|
+
readonly internalType: "uint256";
|
|
4224
|
+
}, {
|
|
4225
|
+
readonly name: "assets";
|
|
4226
|
+
readonly type: "uint256";
|
|
4227
|
+
readonly internalType: "uint256";
|
|
4228
|
+
}];
|
|
4229
|
+
}, {
|
|
4230
|
+
readonly name: "offerFills";
|
|
4231
|
+
readonly type: "tuple[]";
|
|
4232
|
+
readonly internalType: "struct OfferFill[]";
|
|
4233
|
+
readonly components: readonly [{
|
|
4234
|
+
readonly name: "offer";
|
|
4235
|
+
readonly type: "tuple";
|
|
4236
|
+
readonly internalType: "struct Offer";
|
|
4237
|
+
readonly components: readonly [{
|
|
4238
|
+
readonly name: "market";
|
|
4239
|
+
readonly type: "tuple";
|
|
4240
|
+
readonly internalType: "struct Market";
|
|
3815
4241
|
readonly components: readonly [{
|
|
3816
|
-
readonly name: "
|
|
4242
|
+
readonly name: "chainId";
|
|
4243
|
+
readonly type: "uint256";
|
|
4244
|
+
readonly internalType: "uint256";
|
|
4245
|
+
}, {
|
|
4246
|
+
readonly name: "midnight";
|
|
3817
4247
|
readonly type: "address";
|
|
3818
4248
|
readonly internalType: "address";
|
|
3819
4249
|
}, {
|
|
3820
|
-
readonly name: "
|
|
4250
|
+
readonly name: "loanToken";
|
|
4251
|
+
readonly type: "address";
|
|
4252
|
+
readonly internalType: "address";
|
|
4253
|
+
}, {
|
|
4254
|
+
readonly name: "collateralParams";
|
|
4255
|
+
readonly type: "tuple[]";
|
|
4256
|
+
readonly internalType: "struct CollateralParams[]";
|
|
4257
|
+
readonly components: readonly [{
|
|
4258
|
+
readonly name: "token";
|
|
4259
|
+
readonly type: "address";
|
|
4260
|
+
readonly internalType: "address";
|
|
4261
|
+
}, {
|
|
4262
|
+
readonly name: "lltv";
|
|
4263
|
+
readonly type: "uint256";
|
|
4264
|
+
readonly internalType: "uint256";
|
|
4265
|
+
}, {
|
|
4266
|
+
readonly name: "liquidationCursor";
|
|
4267
|
+
readonly type: "uint256";
|
|
4268
|
+
readonly internalType: "uint256";
|
|
4269
|
+
}, {
|
|
4270
|
+
readonly name: "oracle";
|
|
4271
|
+
readonly type: "address";
|
|
4272
|
+
readonly internalType: "address";
|
|
4273
|
+
}];
|
|
4274
|
+
}, {
|
|
4275
|
+
readonly name: "maturity";
|
|
3821
4276
|
readonly type: "uint256";
|
|
3822
4277
|
readonly internalType: "uint256";
|
|
3823
4278
|
}, {
|
|
3824
|
-
readonly name: "
|
|
4279
|
+
readonly name: "rcfThreshold";
|
|
3825
4280
|
readonly type: "uint256";
|
|
3826
4281
|
readonly internalType: "uint256";
|
|
3827
4282
|
}, {
|
|
3828
|
-
readonly name: "
|
|
4283
|
+
readonly name: "enterGate";
|
|
4284
|
+
readonly type: "address";
|
|
4285
|
+
readonly internalType: "address";
|
|
4286
|
+
}, {
|
|
4287
|
+
readonly name: "liquidatorGate";
|
|
3829
4288
|
readonly type: "address";
|
|
3830
4289
|
readonly internalType: "address";
|
|
3831
4290
|
}];
|
|
3832
4291
|
}, {
|
|
3833
|
-
readonly name: "
|
|
4292
|
+
readonly name: "buy";
|
|
4293
|
+
readonly type: "bool";
|
|
4294
|
+
readonly internalType: "bool";
|
|
4295
|
+
}, {
|
|
4296
|
+
readonly name: "maker";
|
|
4297
|
+
readonly type: "address";
|
|
4298
|
+
readonly internalType: "address";
|
|
4299
|
+
}, {
|
|
4300
|
+
readonly name: "start";
|
|
3834
4301
|
readonly type: "uint256";
|
|
3835
4302
|
readonly internalType: "uint256";
|
|
3836
4303
|
}, {
|
|
3837
|
-
readonly name: "
|
|
4304
|
+
readonly name: "expiry";
|
|
3838
4305
|
readonly type: "uint256";
|
|
3839
4306
|
readonly internalType: "uint256";
|
|
3840
4307
|
}, {
|
|
3841
|
-
readonly name: "
|
|
4308
|
+
readonly name: "tick";
|
|
4309
|
+
readonly type: "uint256";
|
|
4310
|
+
readonly internalType: "uint256";
|
|
4311
|
+
}, {
|
|
4312
|
+
readonly name: "group";
|
|
4313
|
+
readonly type: "bytes32";
|
|
4314
|
+
readonly internalType: "bytes32";
|
|
4315
|
+
}, {
|
|
4316
|
+
readonly name: "callback";
|
|
3842
4317
|
readonly type: "address";
|
|
3843
4318
|
readonly internalType: "address";
|
|
3844
4319
|
}, {
|
|
3845
|
-
readonly name: "
|
|
4320
|
+
readonly name: "callbackData";
|
|
4321
|
+
readonly type: "bytes";
|
|
4322
|
+
readonly internalType: "bytes";
|
|
4323
|
+
}, {
|
|
4324
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
4325
|
+
readonly type: "address";
|
|
4326
|
+
readonly internalType: "address";
|
|
4327
|
+
}, {
|
|
4328
|
+
readonly name: "ratifier";
|
|
3846
4329
|
readonly type: "address";
|
|
3847
4330
|
readonly internalType: "address";
|
|
4331
|
+
}, {
|
|
4332
|
+
readonly name: "reduceOnly";
|
|
4333
|
+
readonly type: "bool";
|
|
4334
|
+
readonly internalType: "bool";
|
|
4335
|
+
}, {
|
|
4336
|
+
readonly name: "maxUnits";
|
|
4337
|
+
readonly type: "uint128";
|
|
4338
|
+
readonly internalType: "uint128";
|
|
4339
|
+
}, {
|
|
4340
|
+
readonly name: "maxAssets";
|
|
4341
|
+
readonly type: "uint128";
|
|
4342
|
+
readonly internalType: "uint128";
|
|
4343
|
+
}, {
|
|
4344
|
+
readonly name: "continuousFeeCap";
|
|
4345
|
+
readonly type: "uint256";
|
|
4346
|
+
readonly internalType: "uint256";
|
|
3848
4347
|
}];
|
|
3849
4348
|
}, {
|
|
3850
|
-
readonly name: "
|
|
3851
|
-
readonly type: "bool";
|
|
3852
|
-
readonly internalType: "bool";
|
|
3853
|
-
}, {
|
|
3854
|
-
readonly name: "maker";
|
|
3855
|
-
readonly type: "address";
|
|
3856
|
-
readonly internalType: "address";
|
|
3857
|
-
}, {
|
|
3858
|
-
readonly name: "start";
|
|
3859
|
-
readonly type: "uint256";
|
|
3860
|
-
readonly internalType: "uint256";
|
|
3861
|
-
}, {
|
|
3862
|
-
readonly name: "expiry";
|
|
3863
|
-
readonly type: "uint256";
|
|
3864
|
-
readonly internalType: "uint256";
|
|
3865
|
-
}, {
|
|
3866
|
-
readonly name: "tick";
|
|
3867
|
-
readonly type: "uint256";
|
|
3868
|
-
readonly internalType: "uint256";
|
|
3869
|
-
}, {
|
|
3870
|
-
readonly name: "group";
|
|
3871
|
-
readonly type: "bytes32";
|
|
3872
|
-
readonly internalType: "bytes32";
|
|
3873
|
-
}, {
|
|
3874
|
-
readonly name: "callback";
|
|
3875
|
-
readonly type: "address";
|
|
3876
|
-
readonly internalType: "address";
|
|
3877
|
-
}, {
|
|
3878
|
-
readonly name: "callbackData";
|
|
4349
|
+
readonly name: "ratifierData";
|
|
3879
4350
|
readonly type: "bytes";
|
|
3880
4351
|
readonly internalType: "bytes";
|
|
3881
4352
|
}, {
|
|
3882
|
-
readonly name: "
|
|
3883
|
-
readonly type: "address";
|
|
3884
|
-
readonly internalType: "address";
|
|
3885
|
-
}, {
|
|
3886
|
-
readonly name: "ratifier";
|
|
3887
|
-
readonly type: "address";
|
|
3888
|
-
readonly internalType: "address";
|
|
3889
|
-
}, {
|
|
3890
|
-
readonly name: "reduceOnly";
|
|
3891
|
-
readonly type: "bool";
|
|
3892
|
-
readonly internalType: "bool";
|
|
3893
|
-
}, {
|
|
3894
|
-
readonly name: "maxUnits";
|
|
3895
|
-
readonly type: "uint128";
|
|
3896
|
-
readonly internalType: "uint128";
|
|
3897
|
-
}, {
|
|
3898
|
-
readonly name: "maxAssets";
|
|
3899
|
-
readonly type: "uint128";
|
|
3900
|
-
readonly internalType: "uint128";
|
|
3901
|
-
}, {
|
|
3902
|
-
readonly name: "continuousFeeCap";
|
|
4353
|
+
readonly name: "units";
|
|
3903
4354
|
readonly type: "uint256";
|
|
3904
4355
|
readonly internalType: "uint256";
|
|
3905
4356
|
}];
|
|
3906
4357
|
}, {
|
|
3907
|
-
readonly name: "
|
|
3908
|
-
readonly type: "
|
|
3909
|
-
readonly internalType: "
|
|
4358
|
+
readonly name: "referralFeePct";
|
|
4359
|
+
readonly type: "uint256";
|
|
4360
|
+
readonly internalType: "uint256";
|
|
3910
4361
|
}, {
|
|
3911
|
-
readonly name: "
|
|
4362
|
+
readonly name: "referralFeeRecipient";
|
|
4363
|
+
readonly type: "address";
|
|
4364
|
+
readonly internalType: "address";
|
|
4365
|
+
}, {
|
|
4366
|
+
readonly name: "deadline";
|
|
4367
|
+
readonly type: "uint256";
|
|
4368
|
+
readonly internalType: "uint256";
|
|
4369
|
+
}, {
|
|
4370
|
+
readonly name: "wrappedNative";
|
|
3912
4371
|
readonly type: "address";
|
|
3913
4372
|
readonly internalType: "address";
|
|
3914
4373
|
}];
|
|
3915
|
-
readonly outputs: readonly [
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
readonly
|
|
4374
|
+
readonly outputs: readonly [];
|
|
4375
|
+
readonly stateMutability: "payable";
|
|
4376
|
+
}, {
|
|
4377
|
+
readonly type: "error";
|
|
4378
|
+
readonly name: "ApproveReturnedFalse";
|
|
4379
|
+
readonly inputs: readonly [];
|
|
4380
|
+
}, {
|
|
4381
|
+
readonly type: "error";
|
|
4382
|
+
readonly name: "ConsumedAboveMax";
|
|
4383
|
+
readonly inputs: readonly [];
|
|
4384
|
+
}, {
|
|
4385
|
+
readonly type: "error";
|
|
4386
|
+
readonly name: "ContinuousFeeAboveMax";
|
|
4387
|
+
readonly inputs: readonly [];
|
|
3921
4388
|
}, {
|
|
3922
|
-
readonly type: "
|
|
3923
|
-
readonly name: "
|
|
4389
|
+
readonly type: "error";
|
|
4390
|
+
readonly name: "DeadlinePassed";
|
|
4391
|
+
readonly inputs: readonly [];
|
|
4392
|
+
}, {
|
|
4393
|
+
readonly type: "error";
|
|
4394
|
+
readonly name: "InconsistentBlue";
|
|
4395
|
+
readonly inputs: readonly [];
|
|
4396
|
+
}, {
|
|
4397
|
+
readonly type: "error";
|
|
4398
|
+
readonly name: "InconsistentMarket";
|
|
4399
|
+
readonly inputs: readonly [];
|
|
4400
|
+
}, {
|
|
4401
|
+
readonly type: "error";
|
|
4402
|
+
readonly name: "InconsistentMidnight";
|
|
4403
|
+
readonly inputs: readonly [];
|
|
4404
|
+
}, {
|
|
4405
|
+
readonly type: "error";
|
|
4406
|
+
readonly name: "InconsistentSide";
|
|
4407
|
+
readonly inputs: readonly [];
|
|
4408
|
+
}, {
|
|
4409
|
+
readonly type: "error";
|
|
4410
|
+
readonly name: "InvalidRatifierResponse";
|
|
4411
|
+
readonly inputs: readonly [];
|
|
4412
|
+
}, {
|
|
4413
|
+
readonly type: "error";
|
|
4414
|
+
readonly name: "NoCode";
|
|
4415
|
+
readonly inputs: readonly [];
|
|
4416
|
+
}, {
|
|
4417
|
+
readonly type: "error";
|
|
4418
|
+
readonly name: "NotReduceOnly";
|
|
4419
|
+
readonly inputs: readonly [];
|
|
4420
|
+
}, {
|
|
4421
|
+
readonly type: "error";
|
|
4422
|
+
readonly name: "OutOfOffers";
|
|
4423
|
+
readonly inputs: readonly [];
|
|
4424
|
+
}, {
|
|
4425
|
+
readonly type: "error";
|
|
4426
|
+
readonly name: "PctExceeded";
|
|
4427
|
+
readonly inputs: readonly [];
|
|
4428
|
+
}, {
|
|
4429
|
+
readonly type: "error";
|
|
4430
|
+
readonly name: "PriceGreaterThanOne";
|
|
4431
|
+
readonly inputs: readonly [];
|
|
4432
|
+
}, {
|
|
4433
|
+
readonly type: "error";
|
|
4434
|
+
readonly name: "SellerAssetsTooLow";
|
|
4435
|
+
readonly inputs: readonly [];
|
|
4436
|
+
}, {
|
|
4437
|
+
readonly type: "error";
|
|
4438
|
+
readonly name: "TickOutOfRange";
|
|
4439
|
+
readonly inputs: readonly [];
|
|
4440
|
+
}, {
|
|
4441
|
+
readonly type: "error";
|
|
4442
|
+
readonly name: "TransferFromReturnedFalse";
|
|
4443
|
+
readonly inputs: readonly [];
|
|
4444
|
+
}, {
|
|
4445
|
+
readonly type: "error";
|
|
4446
|
+
readonly name: "TransferReturnedFalse";
|
|
4447
|
+
readonly inputs: readonly [];
|
|
4448
|
+
}, {
|
|
4449
|
+
readonly type: "error";
|
|
4450
|
+
readonly name: "UnitsTooHigh";
|
|
4451
|
+
readonly inputs: readonly [];
|
|
4452
|
+
}, {
|
|
4453
|
+
readonly type: "error";
|
|
4454
|
+
readonly name: "UnitsTooLow";
|
|
4455
|
+
readonly inputs: readonly [];
|
|
4456
|
+
}];
|
|
4457
|
+
/**
|
|
4458
|
+
* ABI JSON for the BlueBuyCallback factory that deploys per-owner callbacks funding Midnight buy
|
|
4459
|
+
* offers from Morpho Blue supply.
|
|
4460
|
+
*
|
|
4461
|
+
* Source: `morpho-org/midnight` commit `4603969e80d6f911c33586c6b971e8edd7821bbc`,
|
|
4462
|
+
* `src/periphery/blue-buy-callback/BlueBuyCallbackFactory.sol` (compiled with `forge inspect ... abi`).
|
|
4463
|
+
*
|
|
4464
|
+
* @example
|
|
4465
|
+
* ```ts
|
|
4466
|
+
* import { blueBuyCallbackFactoryAbi } from "@morpho-org/midnight-sdk";
|
|
4467
|
+
*
|
|
4468
|
+
* console.log(blueBuyCallbackFactoryAbi.length);
|
|
4469
|
+
* ```
|
|
4470
|
+
*/
|
|
4471
|
+
export declare const blueBuyCallbackFactoryAbi: readonly [{
|
|
4472
|
+
readonly type: "constructor";
|
|
3924
4473
|
readonly inputs: readonly [{
|
|
3925
|
-
readonly name: "
|
|
4474
|
+
readonly name: "_midnight";
|
|
3926
4475
|
readonly type: "address";
|
|
3927
|
-
readonly internalType: "address";
|
|
3928
4476
|
}, {
|
|
3929
|
-
readonly name: "
|
|
3930
|
-
readonly type: "
|
|
3931
|
-
readonly internalType: "bytes32";
|
|
4477
|
+
readonly name: "_blue";
|
|
4478
|
+
readonly type: "address";
|
|
3932
4479
|
}];
|
|
4480
|
+
readonly stateMutability: "nonpayable";
|
|
4481
|
+
}, {
|
|
4482
|
+
readonly type: "function";
|
|
4483
|
+
readonly name: "BLUE";
|
|
4484
|
+
readonly inputs: readonly [];
|
|
3933
4485
|
readonly outputs: readonly [{
|
|
3934
4486
|
readonly name: "";
|
|
3935
|
-
readonly type: "
|
|
3936
|
-
readonly internalType: "bool";
|
|
4487
|
+
readonly type: "address";
|
|
3937
4488
|
}];
|
|
3938
4489
|
readonly stateMutability: "view";
|
|
3939
4490
|
}, {
|
|
3940
4491
|
readonly type: "function";
|
|
3941
|
-
readonly name: "
|
|
3942
|
-
readonly inputs: readonly [
|
|
3943
|
-
readonly name: "maker";
|
|
3944
|
-
readonly type: "address";
|
|
3945
|
-
readonly internalType: "address";
|
|
3946
|
-
}, {
|
|
3947
|
-
readonly name: "root";
|
|
3948
|
-
readonly type: "bytes32";
|
|
3949
|
-
readonly internalType: "bytes32";
|
|
3950
|
-
}];
|
|
4492
|
+
readonly name: "MIDNIGHT";
|
|
4493
|
+
readonly inputs: readonly [];
|
|
3951
4494
|
readonly outputs: readonly [{
|
|
3952
|
-
readonly name: "
|
|
3953
|
-
readonly type: "
|
|
3954
|
-
readonly internalType: "bool";
|
|
3955
|
-
}, {
|
|
3956
|
-
readonly name: "rootNonce";
|
|
3957
|
-
readonly type: "uint128";
|
|
3958
|
-
readonly internalType: "uint128";
|
|
4495
|
+
readonly name: "";
|
|
4496
|
+
readonly type: "address";
|
|
3959
4497
|
}];
|
|
3960
4498
|
readonly stateMutability: "view";
|
|
3961
4499
|
}, {
|
|
3962
4500
|
readonly type: "function";
|
|
3963
|
-
readonly name: "
|
|
4501
|
+
readonly name: "callbackOf";
|
|
3964
4502
|
readonly inputs: readonly [{
|
|
3965
|
-
readonly name: "
|
|
4503
|
+
readonly name: "owner";
|
|
3966
4504
|
readonly type: "address";
|
|
3967
|
-
readonly internalType: "address";
|
|
3968
4505
|
}, {
|
|
3969
|
-
readonly name: "
|
|
4506
|
+
readonly name: "salt";
|
|
3970
4507
|
readonly type: "bytes32";
|
|
3971
|
-
readonly internalType: "bytes32";
|
|
3972
4508
|
}];
|
|
3973
4509
|
readonly outputs: readonly [{
|
|
3974
4510
|
readonly name: "";
|
|
3975
|
-
readonly type: "
|
|
3976
|
-
readonly internalType: "uint128";
|
|
4511
|
+
readonly type: "address";
|
|
3977
4512
|
}];
|
|
3978
4513
|
readonly stateMutability: "view";
|
|
3979
4514
|
}, {
|
|
3980
4515
|
readonly type: "function";
|
|
3981
|
-
readonly name: "
|
|
4516
|
+
readonly name: "createBlueBuyCallback";
|
|
3982
4517
|
readonly inputs: readonly [{
|
|
3983
|
-
readonly name: "
|
|
4518
|
+
readonly name: "owner";
|
|
3984
4519
|
readonly type: "address";
|
|
3985
|
-
readonly internalType: "address";
|
|
3986
4520
|
}, {
|
|
3987
|
-
readonly name: "
|
|
4521
|
+
readonly name: "salt";
|
|
3988
4522
|
readonly type: "bytes32";
|
|
3989
|
-
readonly internalType: "bytes32";
|
|
3990
|
-
}, {
|
|
3991
|
-
readonly name: "newIsRootRatified";
|
|
3992
|
-
readonly type: "bool";
|
|
3993
|
-
readonly internalType: "bool";
|
|
3994
4523
|
}];
|
|
3995
4524
|
readonly outputs: readonly [{
|
|
3996
4525
|
readonly name: "";
|
|
3997
|
-
readonly type: "
|
|
3998
|
-
readonly internalType: "bytes32";
|
|
4526
|
+
readonly type: "address";
|
|
3999
4527
|
}];
|
|
4000
4528
|
readonly stateMutability: "nonpayable";
|
|
4001
4529
|
}, {
|
|
4002
4530
|
readonly type: "function";
|
|
4003
|
-
readonly name: "
|
|
4531
|
+
readonly name: "isBlueBuyCallback";
|
|
4004
4532
|
readonly inputs: readonly [{
|
|
4005
|
-
readonly name: "
|
|
4533
|
+
readonly name: "callback";
|
|
4006
4534
|
readonly type: "address";
|
|
4007
|
-
readonly internalType: "address";
|
|
4008
|
-
}, {
|
|
4009
|
-
readonly name: "root";
|
|
4010
|
-
readonly type: "bytes32";
|
|
4011
|
-
readonly internalType: "bytes32";
|
|
4012
|
-
}, {
|
|
4013
|
-
readonly name: "height";
|
|
4014
|
-
readonly type: "uint256";
|
|
4015
|
-
readonly internalType: "uint256";
|
|
4016
|
-
}, {
|
|
4017
|
-
readonly name: "newIsRootRatified";
|
|
4018
|
-
readonly type: "bool";
|
|
4019
|
-
readonly internalType: "bool";
|
|
4020
|
-
}, {
|
|
4021
|
-
readonly name: "nonce";
|
|
4022
|
-
readonly type: "uint128";
|
|
4023
|
-
readonly internalType: "uint128";
|
|
4024
|
-
}, {
|
|
4025
|
-
readonly name: "deadline";
|
|
4026
|
-
readonly type: "uint256";
|
|
4027
|
-
readonly internalType: "uint256";
|
|
4028
|
-
}, {
|
|
4029
|
-
readonly name: "v";
|
|
4030
|
-
readonly type: "uint8";
|
|
4031
|
-
readonly internalType: "uint8";
|
|
4032
|
-
}, {
|
|
4033
|
-
readonly name: "r";
|
|
4034
|
-
readonly type: "bytes32";
|
|
4035
|
-
readonly internalType: "bytes32";
|
|
4036
|
-
}, {
|
|
4037
|
-
readonly name: "s";
|
|
4038
|
-
readonly type: "bytes32";
|
|
4039
|
-
readonly internalType: "bytes32";
|
|
4040
4535
|
}];
|
|
4041
4536
|
readonly outputs: readonly [{
|
|
4042
4537
|
readonly name: "";
|
|
4043
|
-
readonly type: "bytes32";
|
|
4044
|
-
readonly internalType: "bytes32";
|
|
4045
|
-
}];
|
|
4046
|
-
readonly stateMutability: "nonpayable";
|
|
4047
|
-
}, {
|
|
4048
|
-
readonly type: "event";
|
|
4049
|
-
readonly name: "SetIsRootRatified";
|
|
4050
|
-
readonly inputs: readonly [{
|
|
4051
|
-
readonly name: "caller";
|
|
4052
|
-
readonly type: "address";
|
|
4053
|
-
readonly indexed: true;
|
|
4054
|
-
readonly internalType: "address";
|
|
4055
|
-
}, {
|
|
4056
|
-
readonly name: "maker";
|
|
4057
|
-
readonly type: "address";
|
|
4058
|
-
readonly indexed: true;
|
|
4059
|
-
readonly internalType: "address";
|
|
4060
|
-
}, {
|
|
4061
|
-
readonly name: "root";
|
|
4062
|
-
readonly type: "bytes32";
|
|
4063
|
-
readonly indexed: true;
|
|
4064
|
-
readonly internalType: "bytes32";
|
|
4065
|
-
}, {
|
|
4066
|
-
readonly name: "newIsRootRatified";
|
|
4067
4538
|
readonly type: "bool";
|
|
4068
|
-
readonly indexed: false;
|
|
4069
|
-
readonly internalType: "bool";
|
|
4070
4539
|
}];
|
|
4071
|
-
readonly
|
|
4540
|
+
readonly stateMutability: "view";
|
|
4072
4541
|
}, {
|
|
4073
4542
|
readonly type: "event";
|
|
4074
|
-
readonly name: "
|
|
4543
|
+
readonly name: "CreateBlueBuyCallback";
|
|
4075
4544
|
readonly inputs: readonly [{
|
|
4076
4545
|
readonly name: "caller";
|
|
4077
4546
|
readonly type: "address";
|
|
4078
|
-
readonly indexed: false;
|
|
4079
|
-
readonly internalType: "address";
|
|
4080
|
-
}, {
|
|
4081
|
-
readonly name: "signer";
|
|
4082
|
-
readonly type: "address";
|
|
4083
4547
|
readonly indexed: true;
|
|
4084
|
-
readonly internalType: "address";
|
|
4085
4548
|
}, {
|
|
4086
|
-
readonly name: "
|
|
4549
|
+
readonly name: "owner";
|
|
4087
4550
|
readonly type: "address";
|
|
4088
4551
|
readonly indexed: true;
|
|
4089
|
-
readonly internalType: "address";
|
|
4090
4552
|
}, {
|
|
4091
|
-
readonly name: "
|
|
4553
|
+
readonly name: "salt";
|
|
4092
4554
|
readonly type: "bytes32";
|
|
4093
|
-
readonly indexed: true;
|
|
4094
|
-
readonly internalType: "bytes32";
|
|
4095
|
-
}, {
|
|
4096
|
-
readonly name: "height";
|
|
4097
|
-
readonly type: "uint256";
|
|
4098
|
-
readonly indexed: false;
|
|
4099
|
-
readonly internalType: "uint256";
|
|
4100
|
-
}, {
|
|
4101
|
-
readonly name: "newIsRootRatified";
|
|
4102
|
-
readonly type: "bool";
|
|
4103
|
-
readonly indexed: false;
|
|
4104
|
-
readonly internalType: "bool";
|
|
4105
|
-
}, {
|
|
4106
|
-
readonly name: "signatureNonce";
|
|
4107
|
-
readonly type: "uint128";
|
|
4108
4555
|
readonly indexed: false;
|
|
4109
|
-
readonly internalType: "uint128";
|
|
4110
4556
|
}, {
|
|
4111
|
-
readonly name: "
|
|
4112
|
-
readonly type: "
|
|
4557
|
+
readonly name: "callback";
|
|
4558
|
+
readonly type: "address";
|
|
4113
4559
|
readonly indexed: false;
|
|
4114
|
-
readonly internalType: "uint128";
|
|
4115
4560
|
}];
|
|
4116
4561
|
readonly anonymous: false;
|
|
4117
|
-
}, {
|
|
4118
|
-
readonly type: "error";
|
|
4119
|
-
readonly name: "DeadlineExpired";
|
|
4120
|
-
readonly inputs: readonly [];
|
|
4121
|
-
}, {
|
|
4122
|
-
readonly type: "error";
|
|
4123
|
-
readonly name: "InvalidNonce";
|
|
4124
|
-
readonly inputs: readonly [];
|
|
4125
|
-
}, {
|
|
4126
|
-
readonly type: "error";
|
|
4127
|
-
readonly name: "InvalidProof";
|
|
4128
|
-
readonly inputs: readonly [];
|
|
4129
|
-
}, {
|
|
4130
|
-
readonly type: "error";
|
|
4131
|
-
readonly name: "InvalidSignature";
|
|
4132
|
-
readonly inputs: readonly [];
|
|
4133
|
-
}, {
|
|
4134
|
-
readonly type: "error";
|
|
4135
|
-
readonly name: "NotRatified";
|
|
4136
|
-
readonly inputs: readonly [];
|
|
4137
|
-
}, {
|
|
4138
|
-
readonly type: "error";
|
|
4139
|
-
readonly name: "RatifiedStatusChanged";
|
|
4140
|
-
readonly inputs: readonly [];
|
|
4141
|
-
}, {
|
|
4142
|
-
readonly type: "error";
|
|
4143
|
-
readonly name: "Unauthorized";
|
|
4144
|
-
readonly inputs: readonly [];
|
|
4145
|
-
}, {
|
|
4146
|
-
readonly type: "error";
|
|
4147
|
-
readonly name: "UnauthorizedTaker";
|
|
4148
|
-
readonly inputs: readonly [];
|
|
4149
|
-
}, {
|
|
4150
|
-
readonly type: "error";
|
|
4151
|
-
readonly name: "WorsePrice";
|
|
4152
|
-
readonly inputs: readonly [];
|
|
4153
4562
|
}];
|