@masterpeach/market-sdk 0.2.0-beta.20261002.2 → 0.2.0-beta.20261002.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi/index.cjs +1146 -70
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.d.cts +996 -161
- package/dist/abi/index.d.ts +996 -161
- package/dist/abi/index.js +5 -1
- package/dist/{chunk-NXE7V6G6.js → chunk-CHWXMXPR.js} +1145 -71
- package/dist/chunk-CHWXMXPR.js.map +1 -0
- package/dist/index.cjs +1145 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.js +256 -79
- package/dist/index.js.map +1 -1
- package/docs/mainnet-deployments.json +96 -25
- package/docs/zap-router.md +58 -4
- package/package.json +1 -1
- package/dist/chunk-NXE7V6G6.js.map +0 -1
package/dist/abi/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(abi_exports, {
|
|
|
24
24
|
marketAccessManagerAbi: () => marketAccessManagerAbi,
|
|
25
25
|
marketClaimFeePolicyAbi: () => marketClaimFeePolicyAbi,
|
|
26
26
|
marketExtsloadAbi: () => marketExtsloadAbi,
|
|
27
|
+
marketIPeachExecutionRouterAbi: () => marketIPeachExecutionRouterAbi,
|
|
27
28
|
marketMarketCalendarAbi: () => marketMarketCalendarAbi,
|
|
28
29
|
marketPermit2Abi: () => marketPermit2Abi,
|
|
29
30
|
marketPoolRegistryAbi: () => marketPoolRegistryAbi,
|
|
@@ -36,6 +37,7 @@ __export(abi_exports, {
|
|
|
36
37
|
marketSwapExactInParameters: () => marketSwapExactInParameters,
|
|
37
38
|
marketUniversalRouterAbi: () => marketUniversalRouterAbi,
|
|
38
39
|
marketV4QuoterAbi: () => marketV4QuoterAbi,
|
|
40
|
+
marketZapRouteHelperAbi: () => marketZapRouteHelperAbi,
|
|
39
41
|
marketZapRouterAbi: () => marketZapRouterAbi
|
|
40
42
|
});
|
|
41
43
|
module.exports = __toCommonJS(abi_exports);
|
|
@@ -1924,7 +1926,293 @@ var marketMarketCalendarAbi = [
|
|
|
1924
1926
|
];
|
|
1925
1927
|
|
|
1926
1928
|
// src/abi/generated/metadata.ts
|
|
1927
|
-
var marketAbiArtifactCommit = "
|
|
1929
|
+
var marketAbiArtifactCommit = "5c914bfeac22568ade2a5704f4d5844fafd40fbb";
|
|
1930
|
+
|
|
1931
|
+
// src/abi/generated/peach-execution-router.ts
|
|
1932
|
+
var marketIPeachExecutionRouterAbi = [
|
|
1933
|
+
{
|
|
1934
|
+
type: "function",
|
|
1935
|
+
name: "executePlan",
|
|
1936
|
+
inputs: [
|
|
1937
|
+
{
|
|
1938
|
+
name: "plan",
|
|
1939
|
+
type: "tuple",
|
|
1940
|
+
internalType: "struct IPeachExecutionRouter.ExecutionPlan",
|
|
1941
|
+
components: [
|
|
1942
|
+
{
|
|
1943
|
+
name: "version",
|
|
1944
|
+
type: "uint64",
|
|
1945
|
+
internalType: "uint64"
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
name: "signerVersion",
|
|
1949
|
+
type: "uint64",
|
|
1950
|
+
internalType: "uint64"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
name: "chainId",
|
|
1954
|
+
type: "uint256",
|
|
1955
|
+
internalType: "uint256"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
name: "router",
|
|
1959
|
+
type: "address",
|
|
1960
|
+
internalType: "address"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
name: "payer",
|
|
1964
|
+
type: "address",
|
|
1965
|
+
internalType: "address"
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
name: "executor",
|
|
1969
|
+
type: "address",
|
|
1970
|
+
internalType: "address"
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
name: "recipient",
|
|
1974
|
+
type: "address",
|
|
1975
|
+
internalType: "address"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
name: "tokenIn",
|
|
1979
|
+
type: "address",
|
|
1980
|
+
internalType: "address"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
name: "tokenOut",
|
|
1984
|
+
type: "address",
|
|
1985
|
+
internalType: "address"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
name: "nativeMode",
|
|
1989
|
+
type: "uint8",
|
|
1990
|
+
internalType: "uint8"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
name: "fundingMode",
|
|
1994
|
+
type: "uint8",
|
|
1995
|
+
internalType: "uint8"
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
name: "amountIn",
|
|
1999
|
+
type: "uint256",
|
|
2000
|
+
internalType: "uint256"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
name: "minAmountOut",
|
|
2004
|
+
type: "uint256",
|
|
2005
|
+
internalType: "uint256"
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
name: "expectedAmountOut",
|
|
2009
|
+
type: "uint256",
|
|
2010
|
+
internalType: "uint256"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
name: "quoteId",
|
|
2014
|
+
type: "bytes32",
|
|
2015
|
+
internalType: "bytes32"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
name: "routeHash",
|
|
2019
|
+
type: "bytes32",
|
|
2020
|
+
internalType: "bytes32"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
name: "settlementPolicyHash",
|
|
2024
|
+
type: "bytes32",
|
|
2025
|
+
internalType: "bytes32"
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
name: "customFeeBps",
|
|
2029
|
+
type: "uint16",
|
|
2030
|
+
internalType: "uint16"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
name: "customFeeReceiver",
|
|
2034
|
+
type: "address",
|
|
2035
|
+
internalType: "address"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
name: "deadline",
|
|
2039
|
+
type: "uint64",
|
|
2040
|
+
internalType: "uint64"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
name: "nonce",
|
|
2044
|
+
type: "uint256",
|
|
2045
|
+
internalType: "uint256"
|
|
2046
|
+
}
|
|
2047
|
+
]
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
name: "params",
|
|
2051
|
+
type: "tuple",
|
|
2052
|
+
internalType: "struct IPeachExecutionRouter.SwapParams",
|
|
2053
|
+
components: [
|
|
2054
|
+
{
|
|
2055
|
+
name: "srcToken",
|
|
2056
|
+
type: "address",
|
|
2057
|
+
internalType: "address"
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
name: "dstToken",
|
|
2061
|
+
type: "address",
|
|
2062
|
+
internalType: "address"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
name: "amountIn",
|
|
2066
|
+
type: "uint256",
|
|
2067
|
+
internalType: "uint256"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
name: "amountOutMin",
|
|
2071
|
+
type: "uint256",
|
|
2072
|
+
internalType: "uint256"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
name: "steps",
|
|
2076
|
+
type: "tuple[]",
|
|
2077
|
+
internalType: "struct IPeachExecutionRouter.Step[]",
|
|
2078
|
+
components: [
|
|
2079
|
+
{
|
|
2080
|
+
name: "adapter",
|
|
2081
|
+
type: "address",
|
|
2082
|
+
internalType: "address"
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
name: "pool",
|
|
2086
|
+
type: "address",
|
|
2087
|
+
internalType: "address"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
name: "tokenIn",
|
|
2091
|
+
type: "address",
|
|
2092
|
+
internalType: "address"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
name: "tokenOut",
|
|
2096
|
+
type: "address",
|
|
2097
|
+
internalType: "address"
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
name: "amountIn",
|
|
2101
|
+
type: "uint256",
|
|
2102
|
+
internalType: "uint256"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
name: "extraData",
|
|
2106
|
+
type: "bytes",
|
|
2107
|
+
internalType: "bytes"
|
|
2108
|
+
}
|
|
2109
|
+
]
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
name: "intermediateTokens",
|
|
2113
|
+
type: "address[]",
|
|
2114
|
+
internalType: "address[]"
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
name: "deadline",
|
|
2118
|
+
type: "uint256",
|
|
2119
|
+
internalType: "uint256"
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
name: "quoteId",
|
|
2123
|
+
type: "bytes32",
|
|
2124
|
+
internalType: "bytes32"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
name: "expectAmountOut",
|
|
2128
|
+
type: "uint256",
|
|
2129
|
+
internalType: "uint256"
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
name: "customFeeReceiver",
|
|
2133
|
+
type: "address",
|
|
2134
|
+
internalType: "address"
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
name: "customFeeBps",
|
|
2138
|
+
type: "uint16",
|
|
2139
|
+
internalType: "uint16"
|
|
2140
|
+
}
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
name: "logicalPoolIds",
|
|
2145
|
+
type: "bytes32[]",
|
|
2146
|
+
internalType: "bytes32[]"
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
name: "amountModes",
|
|
2150
|
+
type: "uint8[]",
|
|
2151
|
+
internalType: "uint8[]"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
name: "payerSignature",
|
|
2155
|
+
type: "bytes",
|
|
2156
|
+
internalType: "bytes"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
name: "aggregatorSignature",
|
|
2160
|
+
type: "bytes",
|
|
2161
|
+
internalType: "bytes"
|
|
2162
|
+
}
|
|
2163
|
+
],
|
|
2164
|
+
outputs: [
|
|
2165
|
+
{
|
|
2166
|
+
name: "",
|
|
2167
|
+
type: "tuple",
|
|
2168
|
+
internalType: "struct IPeachExecutionRouter.Receipt",
|
|
2169
|
+
components: [
|
|
2170
|
+
{
|
|
2171
|
+
name: "planHash",
|
|
2172
|
+
type: "bytes32",
|
|
2173
|
+
internalType: "bytes32"
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
name: "payer",
|
|
2177
|
+
type: "address",
|
|
2178
|
+
internalType: "address"
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
name: "executor",
|
|
2182
|
+
type: "address",
|
|
2183
|
+
internalType: "address"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
name: "recipient",
|
|
2187
|
+
type: "address",
|
|
2188
|
+
internalType: "address"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
name: "tokenOut",
|
|
2192
|
+
type: "address",
|
|
2193
|
+
internalType: "address"
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
name: "requestedAmountIn",
|
|
2197
|
+
type: "uint256",
|
|
2198
|
+
internalType: "uint256"
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
name: "actualAmountIn",
|
|
2202
|
+
type: "uint256",
|
|
2203
|
+
internalType: "uint256"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
name: "userAmountOut",
|
|
2207
|
+
type: "uint256",
|
|
2208
|
+
internalType: "uint256"
|
|
2209
|
+
}
|
|
2210
|
+
]
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2213
|
+
stateMutability: "payable"
|
|
2214
|
+
}
|
|
2215
|
+
];
|
|
1928
2216
|
|
|
1929
2217
|
// src/abi/generated/pool-registry.ts
|
|
1930
2218
|
var marketPoolRegistryAbi = [
|
|
@@ -14284,47 +14572,382 @@ var marketRwaRampAbi = [
|
|
|
14284
14572
|
}
|
|
14285
14573
|
];
|
|
14286
14574
|
|
|
14287
|
-
// src/abi/generated/zap-
|
|
14288
|
-
var
|
|
14575
|
+
// src/abi/generated/zap-route-helper.ts
|
|
14576
|
+
var marketZapRouteHelperAbi = [
|
|
14289
14577
|
{
|
|
14290
|
-
type: "
|
|
14578
|
+
type: "function",
|
|
14579
|
+
name: "quoteOut",
|
|
14291
14580
|
inputs: [
|
|
14292
14581
|
{
|
|
14293
|
-
name: "
|
|
14294
|
-
type: "address",
|
|
14295
|
-
internalType: "contract IPoolManager"
|
|
14296
|
-
},
|
|
14297
|
-
{
|
|
14298
|
-
name: "authority_",
|
|
14582
|
+
name: "ramp",
|
|
14299
14583
|
type: "address",
|
|
14300
|
-
internalType: "
|
|
14584
|
+
internalType: "contract Ramp"
|
|
14301
14585
|
},
|
|
14302
14586
|
{
|
|
14303
|
-
name: "
|
|
14304
|
-
type: "
|
|
14305
|
-
internalType: "
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
|
|
14309
|
-
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
|
|
14316
|
-
|
|
14317
|
-
|
|
14318
|
-
|
|
14319
|
-
|
|
14320
|
-
|
|
14321
|
-
|
|
14322
|
-
|
|
14323
|
-
|
|
14324
|
-
|
|
14325
|
-
|
|
14326
|
-
|
|
14327
|
-
|
|
14587
|
+
name: "request",
|
|
14588
|
+
type: "tuple",
|
|
14589
|
+
internalType: "struct ZapOutQuoter.Request",
|
|
14590
|
+
components: [
|
|
14591
|
+
{
|
|
14592
|
+
name: "key",
|
|
14593
|
+
type: "tuple",
|
|
14594
|
+
internalType: "struct PoolKey",
|
|
14595
|
+
components: [
|
|
14596
|
+
{
|
|
14597
|
+
name: "currency0",
|
|
14598
|
+
type: "address",
|
|
14599
|
+
internalType: "Currency"
|
|
14600
|
+
},
|
|
14601
|
+
{
|
|
14602
|
+
name: "currency1",
|
|
14603
|
+
type: "address",
|
|
14604
|
+
internalType: "Currency"
|
|
14605
|
+
},
|
|
14606
|
+
{
|
|
14607
|
+
name: "fee",
|
|
14608
|
+
type: "uint24",
|
|
14609
|
+
internalType: "uint24"
|
|
14610
|
+
},
|
|
14611
|
+
{
|
|
14612
|
+
name: "tickSpacing",
|
|
14613
|
+
type: "int24",
|
|
14614
|
+
internalType: "int24"
|
|
14615
|
+
},
|
|
14616
|
+
{
|
|
14617
|
+
name: "hooks",
|
|
14618
|
+
type: "address",
|
|
14619
|
+
internalType: "contract IHooks"
|
|
14620
|
+
}
|
|
14621
|
+
]
|
|
14622
|
+
},
|
|
14623
|
+
{
|
|
14624
|
+
name: "lower",
|
|
14625
|
+
type: "int24",
|
|
14626
|
+
internalType: "int24"
|
|
14627
|
+
},
|
|
14628
|
+
{
|
|
14629
|
+
name: "upper",
|
|
14630
|
+
type: "int24",
|
|
14631
|
+
internalType: "int24"
|
|
14632
|
+
},
|
|
14633
|
+
{
|
|
14634
|
+
name: "shares",
|
|
14635
|
+
type: "uint128",
|
|
14636
|
+
internalType: "uint128"
|
|
14637
|
+
},
|
|
14638
|
+
{
|
|
14639
|
+
name: "outputIs0",
|
|
14640
|
+
type: "bool",
|
|
14641
|
+
internalType: "bool"
|
|
14642
|
+
},
|
|
14643
|
+
{
|
|
14644
|
+
name: "limit",
|
|
14645
|
+
type: "uint160",
|
|
14646
|
+
internalType: "uint160"
|
|
14647
|
+
},
|
|
14648
|
+
{
|
|
14649
|
+
name: "owner",
|
|
14650
|
+
type: "address",
|
|
14651
|
+
internalType: "address"
|
|
14652
|
+
}
|
|
14653
|
+
]
|
|
14654
|
+
}
|
|
14655
|
+
],
|
|
14656
|
+
outputs: [
|
|
14657
|
+
{
|
|
14658
|
+
name: "",
|
|
14659
|
+
type: "tuple",
|
|
14660
|
+
internalType: "struct ZapOutQuoter.Quote",
|
|
14661
|
+
components: [
|
|
14662
|
+
{
|
|
14663
|
+
name: "principal0",
|
|
14664
|
+
type: "uint256",
|
|
14665
|
+
internalType: "uint256"
|
|
14666
|
+
},
|
|
14667
|
+
{
|
|
14668
|
+
name: "principal1",
|
|
14669
|
+
type: "uint256",
|
|
14670
|
+
internalType: "uint256"
|
|
14671
|
+
},
|
|
14672
|
+
{
|
|
14673
|
+
name: "fee0",
|
|
14674
|
+
type: "uint256",
|
|
14675
|
+
internalType: "uint256"
|
|
14676
|
+
},
|
|
14677
|
+
{
|
|
14678
|
+
name: "fee1",
|
|
14679
|
+
type: "uint256",
|
|
14680
|
+
internalType: "uint256"
|
|
14681
|
+
},
|
|
14682
|
+
{
|
|
14683
|
+
name: "swapIn",
|
|
14684
|
+
type: "uint256",
|
|
14685
|
+
internalType: "uint256"
|
|
14686
|
+
},
|
|
14687
|
+
{
|
|
14688
|
+
name: "swapOut",
|
|
14689
|
+
type: "uint256",
|
|
14690
|
+
internalType: "uint256"
|
|
14691
|
+
},
|
|
14692
|
+
{
|
|
14693
|
+
name: "amountOut",
|
|
14694
|
+
type: "uint256",
|
|
14695
|
+
internalType: "uint256"
|
|
14696
|
+
},
|
|
14697
|
+
{
|
|
14698
|
+
name: "priceAfter",
|
|
14699
|
+
type: "uint160",
|
|
14700
|
+
internalType: "uint160"
|
|
14701
|
+
}
|
|
14702
|
+
]
|
|
14703
|
+
}
|
|
14704
|
+
],
|
|
14705
|
+
stateMutability: "view"
|
|
14706
|
+
},
|
|
14707
|
+
{
|
|
14708
|
+
type: "function",
|
|
14709
|
+
name: "quotePrincipal",
|
|
14710
|
+
inputs: [
|
|
14711
|
+
{
|
|
14712
|
+
name: "ramp",
|
|
14713
|
+
type: "address",
|
|
14714
|
+
internalType: "contract Ramp"
|
|
14715
|
+
},
|
|
14716
|
+
{
|
|
14717
|
+
name: "request",
|
|
14718
|
+
type: "tuple",
|
|
14719
|
+
internalType: "struct ZapOutQuoter.Request",
|
|
14720
|
+
components: [
|
|
14721
|
+
{
|
|
14722
|
+
name: "key",
|
|
14723
|
+
type: "tuple",
|
|
14724
|
+
internalType: "struct PoolKey",
|
|
14725
|
+
components: [
|
|
14726
|
+
{
|
|
14727
|
+
name: "currency0",
|
|
14728
|
+
type: "address",
|
|
14729
|
+
internalType: "Currency"
|
|
14730
|
+
},
|
|
14731
|
+
{
|
|
14732
|
+
name: "currency1",
|
|
14733
|
+
type: "address",
|
|
14734
|
+
internalType: "Currency"
|
|
14735
|
+
},
|
|
14736
|
+
{
|
|
14737
|
+
name: "fee",
|
|
14738
|
+
type: "uint24",
|
|
14739
|
+
internalType: "uint24"
|
|
14740
|
+
},
|
|
14741
|
+
{
|
|
14742
|
+
name: "tickSpacing",
|
|
14743
|
+
type: "int24",
|
|
14744
|
+
internalType: "int24"
|
|
14745
|
+
},
|
|
14746
|
+
{
|
|
14747
|
+
name: "hooks",
|
|
14748
|
+
type: "address",
|
|
14749
|
+
internalType: "contract IHooks"
|
|
14750
|
+
}
|
|
14751
|
+
]
|
|
14752
|
+
},
|
|
14753
|
+
{
|
|
14754
|
+
name: "lower",
|
|
14755
|
+
type: "int24",
|
|
14756
|
+
internalType: "int24"
|
|
14757
|
+
},
|
|
14758
|
+
{
|
|
14759
|
+
name: "upper",
|
|
14760
|
+
type: "int24",
|
|
14761
|
+
internalType: "int24"
|
|
14762
|
+
},
|
|
14763
|
+
{
|
|
14764
|
+
name: "shares",
|
|
14765
|
+
type: "uint128",
|
|
14766
|
+
internalType: "uint128"
|
|
14767
|
+
},
|
|
14768
|
+
{
|
|
14769
|
+
name: "outputIs0",
|
|
14770
|
+
type: "bool",
|
|
14771
|
+
internalType: "bool"
|
|
14772
|
+
},
|
|
14773
|
+
{
|
|
14774
|
+
name: "limit",
|
|
14775
|
+
type: "uint160",
|
|
14776
|
+
internalType: "uint160"
|
|
14777
|
+
},
|
|
14778
|
+
{
|
|
14779
|
+
name: "owner",
|
|
14780
|
+
type: "address",
|
|
14781
|
+
internalType: "address"
|
|
14782
|
+
}
|
|
14783
|
+
]
|
|
14784
|
+
}
|
|
14785
|
+
],
|
|
14786
|
+
outputs: [
|
|
14787
|
+
{
|
|
14788
|
+
name: "principal0",
|
|
14789
|
+
type: "uint256",
|
|
14790
|
+
internalType: "uint256"
|
|
14791
|
+
},
|
|
14792
|
+
{
|
|
14793
|
+
name: "principal1",
|
|
14794
|
+
type: "uint256",
|
|
14795
|
+
internalType: "uint256"
|
|
14796
|
+
}
|
|
14797
|
+
],
|
|
14798
|
+
stateMutability: "view"
|
|
14799
|
+
},
|
|
14800
|
+
{
|
|
14801
|
+
type: "function",
|
|
14802
|
+
name: "validate",
|
|
14803
|
+
inputs: [
|
|
14804
|
+
{
|
|
14805
|
+
name: "data",
|
|
14806
|
+
type: "bytes",
|
|
14807
|
+
internalType: "bytes"
|
|
14808
|
+
},
|
|
14809
|
+
{
|
|
14810
|
+
name: "aggregator",
|
|
14811
|
+
type: "address",
|
|
14812
|
+
internalType: "address"
|
|
14813
|
+
},
|
|
14814
|
+
{
|
|
14815
|
+
name: "tokenIn",
|
|
14816
|
+
type: "address",
|
|
14817
|
+
internalType: "address"
|
|
14818
|
+
},
|
|
14819
|
+
{
|
|
14820
|
+
name: "tokenOut",
|
|
14821
|
+
type: "address",
|
|
14822
|
+
internalType: "address"
|
|
14823
|
+
},
|
|
14824
|
+
{
|
|
14825
|
+
name: "amountIn",
|
|
14826
|
+
type: "uint256",
|
|
14827
|
+
internalType: "uint256"
|
|
14828
|
+
},
|
|
14829
|
+
{
|
|
14830
|
+
name: "minAmountOut",
|
|
14831
|
+
type: "uint256",
|
|
14832
|
+
internalType: "uint256"
|
|
14833
|
+
}
|
|
14834
|
+
],
|
|
14835
|
+
outputs: [],
|
|
14836
|
+
stateMutability: "view"
|
|
14837
|
+
},
|
|
14838
|
+
{
|
|
14839
|
+
type: "error",
|
|
14840
|
+
name: "InsufficientBalance",
|
|
14841
|
+
inputs: []
|
|
14842
|
+
},
|
|
14843
|
+
{
|
|
14844
|
+
type: "error",
|
|
14845
|
+
name: "InvalidParams",
|
|
14846
|
+
inputs: []
|
|
14847
|
+
},
|
|
14848
|
+
{
|
|
14849
|
+
type: "error",
|
|
14850
|
+
name: "InvalidRoute",
|
|
14851
|
+
inputs: []
|
|
14852
|
+
},
|
|
14853
|
+
{
|
|
14854
|
+
type: "error",
|
|
14855
|
+
name: "LedgerPaused",
|
|
14856
|
+
inputs: []
|
|
14857
|
+
},
|
|
14858
|
+
{
|
|
14859
|
+
type: "error",
|
|
14860
|
+
name: "PartialSwap",
|
|
14861
|
+
inputs: []
|
|
14862
|
+
},
|
|
14863
|
+
{
|
|
14864
|
+
type: "error",
|
|
14865
|
+
name: "PriceLimitAlreadyExceeded",
|
|
14866
|
+
inputs: [
|
|
14867
|
+
{
|
|
14868
|
+
name: "sqrtPriceCurrentX96",
|
|
14869
|
+
type: "uint160",
|
|
14870
|
+
internalType: "uint160"
|
|
14871
|
+
},
|
|
14872
|
+
{
|
|
14873
|
+
name: "sqrtPriceLimitX96",
|
|
14874
|
+
type: "uint160",
|
|
14875
|
+
internalType: "uint160"
|
|
14876
|
+
}
|
|
14877
|
+
]
|
|
14878
|
+
},
|
|
14879
|
+
{
|
|
14880
|
+
type: "error",
|
|
14881
|
+
name: "PriceLimitOutOfBounds",
|
|
14882
|
+
inputs: [
|
|
14883
|
+
{
|
|
14884
|
+
name: "sqrtPriceLimitX96",
|
|
14885
|
+
type: "uint160",
|
|
14886
|
+
internalType: "uint160"
|
|
14887
|
+
}
|
|
14888
|
+
]
|
|
14889
|
+
},
|
|
14890
|
+
{
|
|
14891
|
+
type: "error",
|
|
14892
|
+
name: "QuoteDuringSettlement",
|
|
14893
|
+
inputs: []
|
|
14894
|
+
}
|
|
14895
|
+
];
|
|
14896
|
+
|
|
14897
|
+
// src/abi/generated/zap-router.ts
|
|
14898
|
+
var marketZapRouterAbi = [
|
|
14899
|
+
{
|
|
14900
|
+
type: "constructor",
|
|
14901
|
+
inputs: [
|
|
14902
|
+
{
|
|
14903
|
+
name: "manager_",
|
|
14904
|
+
type: "address",
|
|
14905
|
+
internalType: "contract IPoolManager"
|
|
14906
|
+
},
|
|
14907
|
+
{
|
|
14908
|
+
name: "authority_",
|
|
14909
|
+
type: "address",
|
|
14910
|
+
internalType: "address"
|
|
14911
|
+
},
|
|
14912
|
+
{
|
|
14913
|
+
name: "hooks",
|
|
14914
|
+
type: "address[]",
|
|
14915
|
+
internalType: "address[]"
|
|
14916
|
+
}
|
|
14917
|
+
],
|
|
14918
|
+
stateMutability: "nonpayable"
|
|
14919
|
+
},
|
|
14920
|
+
{
|
|
14921
|
+
type: "receive",
|
|
14922
|
+
stateMutability: "payable"
|
|
14923
|
+
},
|
|
14924
|
+
{
|
|
14925
|
+
type: "function",
|
|
14926
|
+
name: "SEARCH_STEPS",
|
|
14927
|
+
inputs: [],
|
|
14928
|
+
outputs: [
|
|
14929
|
+
{
|
|
14930
|
+
name: "",
|
|
14931
|
+
type: "uint256",
|
|
14932
|
+
internalType: "uint256"
|
|
14933
|
+
}
|
|
14934
|
+
],
|
|
14935
|
+
stateMutability: "view"
|
|
14936
|
+
},
|
|
14937
|
+
{
|
|
14938
|
+
type: "function",
|
|
14939
|
+
name: "aggregator",
|
|
14940
|
+
inputs: [],
|
|
14941
|
+
outputs: [
|
|
14942
|
+
{
|
|
14943
|
+
name: "",
|
|
14944
|
+
type: "address",
|
|
14945
|
+
internalType: "address"
|
|
14946
|
+
}
|
|
14947
|
+
],
|
|
14948
|
+
stateMutability: "view"
|
|
14949
|
+
},
|
|
14950
|
+
{
|
|
14328
14951
|
type: "function",
|
|
14329
14952
|
name: "authority",
|
|
14330
14953
|
inputs: [],
|
|
@@ -14616,6 +15239,135 @@ var marketZapRouterAbi = [
|
|
|
14616
15239
|
],
|
|
14617
15240
|
stateMutability: "view"
|
|
14618
15241
|
},
|
|
15242
|
+
{
|
|
15243
|
+
type: "function",
|
|
15244
|
+
name: "quoteZapOutPrincipal",
|
|
15245
|
+
inputs: [
|
|
15246
|
+
{
|
|
15247
|
+
name: "p",
|
|
15248
|
+
type: "tuple",
|
|
15249
|
+
internalType: "struct ZapRouter.ZapOutParams",
|
|
15250
|
+
components: [
|
|
15251
|
+
{
|
|
15252
|
+
name: "key",
|
|
15253
|
+
type: "tuple",
|
|
15254
|
+
internalType: "struct PoolKey",
|
|
15255
|
+
components: [
|
|
15256
|
+
{
|
|
15257
|
+
name: "currency0",
|
|
15258
|
+
type: "address",
|
|
15259
|
+
internalType: "Currency"
|
|
15260
|
+
},
|
|
15261
|
+
{
|
|
15262
|
+
name: "currency1",
|
|
15263
|
+
type: "address",
|
|
15264
|
+
internalType: "Currency"
|
|
15265
|
+
},
|
|
15266
|
+
{
|
|
15267
|
+
name: "fee",
|
|
15268
|
+
type: "uint24",
|
|
15269
|
+
internalType: "uint24"
|
|
15270
|
+
},
|
|
15271
|
+
{
|
|
15272
|
+
name: "tickSpacing",
|
|
15273
|
+
type: "int24",
|
|
15274
|
+
internalType: "int24"
|
|
15275
|
+
},
|
|
15276
|
+
{
|
|
15277
|
+
name: "hooks",
|
|
15278
|
+
type: "address",
|
|
15279
|
+
internalType: "contract IHooks"
|
|
15280
|
+
}
|
|
15281
|
+
]
|
|
15282
|
+
},
|
|
15283
|
+
{
|
|
15284
|
+
name: "tickLower",
|
|
15285
|
+
type: "int24",
|
|
15286
|
+
internalType: "int24"
|
|
15287
|
+
},
|
|
15288
|
+
{
|
|
15289
|
+
name: "tickUpper",
|
|
15290
|
+
type: "int24",
|
|
15291
|
+
internalType: "int24"
|
|
15292
|
+
},
|
|
15293
|
+
{
|
|
15294
|
+
name: "shares",
|
|
15295
|
+
type: "uint128",
|
|
15296
|
+
internalType: "uint128"
|
|
15297
|
+
},
|
|
15298
|
+
{
|
|
15299
|
+
name: "outputIs0",
|
|
15300
|
+
type: "bool",
|
|
15301
|
+
internalType: "bool"
|
|
15302
|
+
},
|
|
15303
|
+
{
|
|
15304
|
+
name: "minAmountOut",
|
|
15305
|
+
type: "uint256",
|
|
15306
|
+
internalType: "uint256"
|
|
15307
|
+
},
|
|
15308
|
+
{
|
|
15309
|
+
name: "sqrtPriceLimitX96",
|
|
15310
|
+
type: "uint160",
|
|
15311
|
+
internalType: "uint160"
|
|
15312
|
+
},
|
|
15313
|
+
{
|
|
15314
|
+
name: "recipient",
|
|
15315
|
+
type: "address",
|
|
15316
|
+
internalType: "address"
|
|
15317
|
+
},
|
|
15318
|
+
{
|
|
15319
|
+
name: "deadline",
|
|
15320
|
+
type: "uint256",
|
|
15321
|
+
internalType: "uint256"
|
|
15322
|
+
}
|
|
15323
|
+
]
|
|
15324
|
+
},
|
|
15325
|
+
{
|
|
15326
|
+
name: "owner",
|
|
15327
|
+
type: "address",
|
|
15328
|
+
internalType: "address"
|
|
15329
|
+
}
|
|
15330
|
+
],
|
|
15331
|
+
outputs: [
|
|
15332
|
+
{
|
|
15333
|
+
name: "principal0",
|
|
15334
|
+
type: "uint256",
|
|
15335
|
+
internalType: "uint256"
|
|
15336
|
+
},
|
|
15337
|
+
{
|
|
15338
|
+
name: "principal1",
|
|
15339
|
+
type: "uint256",
|
|
15340
|
+
internalType: "uint256"
|
|
15341
|
+
}
|
|
15342
|
+
],
|
|
15343
|
+
stateMutability: "view"
|
|
15344
|
+
},
|
|
15345
|
+
{
|
|
15346
|
+
type: "function",
|
|
15347
|
+
name: "routeHelper",
|
|
15348
|
+
inputs: [],
|
|
15349
|
+
outputs: [
|
|
15350
|
+
{
|
|
15351
|
+
name: "",
|
|
15352
|
+
type: "address",
|
|
15353
|
+
internalType: "contract ZapRouteHelper"
|
|
15354
|
+
}
|
|
15355
|
+
],
|
|
15356
|
+
stateMutability: "view"
|
|
15357
|
+
},
|
|
15358
|
+
{
|
|
15359
|
+
type: "function",
|
|
15360
|
+
name: "setAggregator",
|
|
15361
|
+
inputs: [
|
|
15362
|
+
{
|
|
15363
|
+
name: "target",
|
|
15364
|
+
type: "address",
|
|
15365
|
+
internalType: "address"
|
|
15366
|
+
}
|
|
15367
|
+
],
|
|
15368
|
+
outputs: [],
|
|
15369
|
+
stateMutability: "nonpayable"
|
|
15370
|
+
},
|
|
14619
15371
|
{
|
|
14620
15372
|
type: "function",
|
|
14621
15373
|
name: "setAuthority",
|
|
@@ -14647,6 +15399,19 @@ var marketZapRouterAbi = [
|
|
|
14647
15399
|
outputs: [],
|
|
14648
15400
|
stateMutability: "nonpayable"
|
|
14649
15401
|
},
|
|
15402
|
+
{
|
|
15403
|
+
type: "function",
|
|
15404
|
+
name: "setWrappedNative",
|
|
15405
|
+
inputs: [
|
|
15406
|
+
{
|
|
15407
|
+
name: "wrapper",
|
|
15408
|
+
type: "address",
|
|
15409
|
+
internalType: "address"
|
|
15410
|
+
}
|
|
15411
|
+
],
|
|
15412
|
+
outputs: [],
|
|
15413
|
+
stateMutability: "nonpayable"
|
|
15414
|
+
},
|
|
14650
15415
|
{
|
|
14651
15416
|
type: "function",
|
|
14652
15417
|
name: "simulateSwap",
|
|
@@ -14765,16 +15530,142 @@ var marketZapRouterAbi = [
|
|
|
14765
15530
|
],
|
|
14766
15531
|
outputs: [
|
|
14767
15532
|
{
|
|
14768
|
-
name: "",
|
|
14769
|
-
type: "bytes",
|
|
14770
|
-
internalType: "bytes"
|
|
15533
|
+
name: "",
|
|
15534
|
+
type: "bytes",
|
|
15535
|
+
internalType: "bytes"
|
|
15536
|
+
}
|
|
15537
|
+
],
|
|
15538
|
+
stateMutability: "nonpayable"
|
|
15539
|
+
},
|
|
15540
|
+
{
|
|
15541
|
+
type: "function",
|
|
15542
|
+
name: "wrappedNative",
|
|
15543
|
+
inputs: [],
|
|
15544
|
+
outputs: [
|
|
15545
|
+
{
|
|
15546
|
+
name: "",
|
|
15547
|
+
type: "address",
|
|
15548
|
+
internalType: "address"
|
|
15549
|
+
}
|
|
15550
|
+
],
|
|
15551
|
+
stateMutability: "view"
|
|
15552
|
+
},
|
|
15553
|
+
{
|
|
15554
|
+
type: "function",
|
|
15555
|
+
name: "zapIn",
|
|
15556
|
+
inputs: [
|
|
15557
|
+
{
|
|
15558
|
+
name: "p",
|
|
15559
|
+
type: "tuple",
|
|
15560
|
+
internalType: "struct ZapRouter.ZapInParams",
|
|
15561
|
+
components: [
|
|
15562
|
+
{
|
|
15563
|
+
name: "key",
|
|
15564
|
+
type: "tuple",
|
|
15565
|
+
internalType: "struct PoolKey",
|
|
15566
|
+
components: [
|
|
15567
|
+
{
|
|
15568
|
+
name: "currency0",
|
|
15569
|
+
type: "address",
|
|
15570
|
+
internalType: "Currency"
|
|
15571
|
+
},
|
|
15572
|
+
{
|
|
15573
|
+
name: "currency1",
|
|
15574
|
+
type: "address",
|
|
15575
|
+
internalType: "Currency"
|
|
15576
|
+
},
|
|
15577
|
+
{
|
|
15578
|
+
name: "fee",
|
|
15579
|
+
type: "uint24",
|
|
15580
|
+
internalType: "uint24"
|
|
15581
|
+
},
|
|
15582
|
+
{
|
|
15583
|
+
name: "tickSpacing",
|
|
15584
|
+
type: "int24",
|
|
15585
|
+
internalType: "int24"
|
|
15586
|
+
},
|
|
15587
|
+
{
|
|
15588
|
+
name: "hooks",
|
|
15589
|
+
type: "address",
|
|
15590
|
+
internalType: "contract IHooks"
|
|
15591
|
+
}
|
|
15592
|
+
]
|
|
15593
|
+
},
|
|
15594
|
+
{
|
|
15595
|
+
name: "tickLower",
|
|
15596
|
+
type: "int24",
|
|
15597
|
+
internalType: "int24"
|
|
15598
|
+
},
|
|
15599
|
+
{
|
|
15600
|
+
name: "tickUpper",
|
|
15601
|
+
type: "int24",
|
|
15602
|
+
internalType: "int24"
|
|
15603
|
+
},
|
|
15604
|
+
{
|
|
15605
|
+
name: "inputIs0",
|
|
15606
|
+
type: "bool",
|
|
15607
|
+
internalType: "bool"
|
|
15608
|
+
},
|
|
15609
|
+
{
|
|
15610
|
+
name: "amountIn",
|
|
15611
|
+
type: "uint128",
|
|
15612
|
+
internalType: "uint128"
|
|
15613
|
+
},
|
|
15614
|
+
{
|
|
15615
|
+
name: "minShares",
|
|
15616
|
+
type: "uint128",
|
|
15617
|
+
internalType: "uint128"
|
|
15618
|
+
},
|
|
15619
|
+
{
|
|
15620
|
+
name: "minSwapOut",
|
|
15621
|
+
type: "uint128",
|
|
15622
|
+
internalType: "uint128"
|
|
15623
|
+
},
|
|
15624
|
+
{
|
|
15625
|
+
name: "sqrtPriceLimitX96",
|
|
15626
|
+
type: "uint160",
|
|
15627
|
+
internalType: "uint160"
|
|
15628
|
+
},
|
|
15629
|
+
{
|
|
15630
|
+
name: "recipient",
|
|
15631
|
+
type: "address",
|
|
15632
|
+
internalType: "address"
|
|
15633
|
+
},
|
|
15634
|
+
{
|
|
15635
|
+
name: "deadline",
|
|
15636
|
+
type: "uint256",
|
|
15637
|
+
internalType: "uint256"
|
|
15638
|
+
}
|
|
15639
|
+
]
|
|
15640
|
+
}
|
|
15641
|
+
],
|
|
15642
|
+
outputs: [
|
|
15643
|
+
{
|
|
15644
|
+
name: "id",
|
|
15645
|
+
type: "uint256",
|
|
15646
|
+
internalType: "uint256"
|
|
15647
|
+
},
|
|
15648
|
+
{
|
|
15649
|
+
name: "shares",
|
|
15650
|
+
type: "uint128",
|
|
15651
|
+
internalType: "uint128"
|
|
15652
|
+
},
|
|
15653
|
+
{
|
|
15654
|
+
name: "refund0",
|
|
15655
|
+
type: "uint256",
|
|
15656
|
+
internalType: "uint256"
|
|
15657
|
+
},
|
|
15658
|
+
{
|
|
15659
|
+
name: "refund1",
|
|
15660
|
+
type: "uint256",
|
|
15661
|
+
internalType: "uint256"
|
|
14771
15662
|
}
|
|
14772
15663
|
],
|
|
14773
|
-
stateMutability: "
|
|
15664
|
+
stateMutability: "payable"
|
|
14774
15665
|
},
|
|
14775
15666
|
{
|
|
14776
15667
|
type: "function",
|
|
14777
|
-
name: "
|
|
15668
|
+
name: "zapInWithRoute",
|
|
14778
15669
|
inputs: [
|
|
14779
15670
|
{
|
|
14780
15671
|
name: "p",
|
|
@@ -14859,6 +15750,33 @@ var marketZapRouterAbi = [
|
|
|
14859
15750
|
internalType: "uint256"
|
|
14860
15751
|
}
|
|
14861
15752
|
]
|
|
15753
|
+
},
|
|
15754
|
+
{
|
|
15755
|
+
name: "route",
|
|
15756
|
+
type: "tuple",
|
|
15757
|
+
internalType: "struct ZapRouter.RouteParams",
|
|
15758
|
+
components: [
|
|
15759
|
+
{
|
|
15760
|
+
name: "aggregator",
|
|
15761
|
+
type: "address",
|
|
15762
|
+
internalType: "address"
|
|
15763
|
+
},
|
|
15764
|
+
{
|
|
15765
|
+
name: "amountIn",
|
|
15766
|
+
type: "uint128",
|
|
15767
|
+
internalType: "uint128"
|
|
15768
|
+
},
|
|
15769
|
+
{
|
|
15770
|
+
name: "minAmountOut",
|
|
15771
|
+
type: "uint128",
|
|
15772
|
+
internalType: "uint128"
|
|
15773
|
+
},
|
|
15774
|
+
{
|
|
15775
|
+
name: "data",
|
|
15776
|
+
type: "bytes",
|
|
15777
|
+
internalType: "bytes"
|
|
15778
|
+
}
|
|
15779
|
+
]
|
|
14862
15780
|
}
|
|
14863
15781
|
],
|
|
14864
15782
|
outputs: [
|
|
@@ -14978,6 +15896,139 @@ var marketZapRouterAbi = [
|
|
|
14978
15896
|
],
|
|
14979
15897
|
stateMutability: "nonpayable"
|
|
14980
15898
|
},
|
|
15899
|
+
{
|
|
15900
|
+
type: "function",
|
|
15901
|
+
name: "zapOutWithRoute",
|
|
15902
|
+
inputs: [
|
|
15903
|
+
{
|
|
15904
|
+
name: "p",
|
|
15905
|
+
type: "tuple",
|
|
15906
|
+
internalType: "struct ZapRouter.ZapOutParams",
|
|
15907
|
+
components: [
|
|
15908
|
+
{
|
|
15909
|
+
name: "key",
|
|
15910
|
+
type: "tuple",
|
|
15911
|
+
internalType: "struct PoolKey",
|
|
15912
|
+
components: [
|
|
15913
|
+
{
|
|
15914
|
+
name: "currency0",
|
|
15915
|
+
type: "address",
|
|
15916
|
+
internalType: "Currency"
|
|
15917
|
+
},
|
|
15918
|
+
{
|
|
15919
|
+
name: "currency1",
|
|
15920
|
+
type: "address",
|
|
15921
|
+
internalType: "Currency"
|
|
15922
|
+
},
|
|
15923
|
+
{
|
|
15924
|
+
name: "fee",
|
|
15925
|
+
type: "uint24",
|
|
15926
|
+
internalType: "uint24"
|
|
15927
|
+
},
|
|
15928
|
+
{
|
|
15929
|
+
name: "tickSpacing",
|
|
15930
|
+
type: "int24",
|
|
15931
|
+
internalType: "int24"
|
|
15932
|
+
},
|
|
15933
|
+
{
|
|
15934
|
+
name: "hooks",
|
|
15935
|
+
type: "address",
|
|
15936
|
+
internalType: "contract IHooks"
|
|
15937
|
+
}
|
|
15938
|
+
]
|
|
15939
|
+
},
|
|
15940
|
+
{
|
|
15941
|
+
name: "tickLower",
|
|
15942
|
+
type: "int24",
|
|
15943
|
+
internalType: "int24"
|
|
15944
|
+
},
|
|
15945
|
+
{
|
|
15946
|
+
name: "tickUpper",
|
|
15947
|
+
type: "int24",
|
|
15948
|
+
internalType: "int24"
|
|
15949
|
+
},
|
|
15950
|
+
{
|
|
15951
|
+
name: "shares",
|
|
15952
|
+
type: "uint128",
|
|
15953
|
+
internalType: "uint128"
|
|
15954
|
+
},
|
|
15955
|
+
{
|
|
15956
|
+
name: "outputIs0",
|
|
15957
|
+
type: "bool",
|
|
15958
|
+
internalType: "bool"
|
|
15959
|
+
},
|
|
15960
|
+
{
|
|
15961
|
+
name: "minAmountOut",
|
|
15962
|
+
type: "uint256",
|
|
15963
|
+
internalType: "uint256"
|
|
15964
|
+
},
|
|
15965
|
+
{
|
|
15966
|
+
name: "sqrtPriceLimitX96",
|
|
15967
|
+
type: "uint160",
|
|
15968
|
+
internalType: "uint160"
|
|
15969
|
+
},
|
|
15970
|
+
{
|
|
15971
|
+
name: "recipient",
|
|
15972
|
+
type: "address",
|
|
15973
|
+
internalType: "address"
|
|
15974
|
+
},
|
|
15975
|
+
{
|
|
15976
|
+
name: "deadline",
|
|
15977
|
+
type: "uint256",
|
|
15978
|
+
internalType: "uint256"
|
|
15979
|
+
}
|
|
15980
|
+
]
|
|
15981
|
+
},
|
|
15982
|
+
{
|
|
15983
|
+
name: "route",
|
|
15984
|
+
type: "tuple",
|
|
15985
|
+
internalType: "struct ZapRouter.RouteParams",
|
|
15986
|
+
components: [
|
|
15987
|
+
{
|
|
15988
|
+
name: "aggregator",
|
|
15989
|
+
type: "address",
|
|
15990
|
+
internalType: "address"
|
|
15991
|
+
},
|
|
15992
|
+
{
|
|
15993
|
+
name: "amountIn",
|
|
15994
|
+
type: "uint128",
|
|
15995
|
+
internalType: "uint128"
|
|
15996
|
+
},
|
|
15997
|
+
{
|
|
15998
|
+
name: "minAmountOut",
|
|
15999
|
+
type: "uint128",
|
|
16000
|
+
internalType: "uint128"
|
|
16001
|
+
},
|
|
16002
|
+
{
|
|
16003
|
+
name: "data",
|
|
16004
|
+
type: "bytes",
|
|
16005
|
+
internalType: "bytes"
|
|
16006
|
+
}
|
|
16007
|
+
]
|
|
16008
|
+
}
|
|
16009
|
+
],
|
|
16010
|
+
outputs: [
|
|
16011
|
+
{
|
|
16012
|
+
name: "amountOut",
|
|
16013
|
+
type: "uint256",
|
|
16014
|
+
internalType: "uint256"
|
|
16015
|
+
}
|
|
16016
|
+
],
|
|
16017
|
+
stateMutability: "nonpayable"
|
|
16018
|
+
},
|
|
16019
|
+
{
|
|
16020
|
+
type: "event",
|
|
16021
|
+
name: "AggregatorConfigured",
|
|
16022
|
+
inputs: [
|
|
16023
|
+
{
|
|
16024
|
+
name: "aggregator",
|
|
16025
|
+
type: "address",
|
|
16026
|
+
indexed: true,
|
|
16027
|
+
internalType: "address"
|
|
16028
|
+
}
|
|
16029
|
+
],
|
|
16030
|
+
anonymous: false
|
|
16031
|
+
},
|
|
14981
16032
|
{
|
|
14982
16033
|
type: "event",
|
|
14983
16034
|
name: "AuthorityUpdated",
|
|
@@ -15010,6 +16061,56 @@ var marketZapRouterAbi = [
|
|
|
15010
16061
|
],
|
|
15011
16062
|
anonymous: false
|
|
15012
16063
|
},
|
|
16064
|
+
{
|
|
16065
|
+
type: "event",
|
|
16066
|
+
name: "WrappedNativeConfigured",
|
|
16067
|
+
inputs: [
|
|
16068
|
+
{
|
|
16069
|
+
name: "wrappedNative",
|
|
16070
|
+
type: "address",
|
|
16071
|
+
indexed: true,
|
|
16072
|
+
internalType: "address"
|
|
16073
|
+
}
|
|
16074
|
+
],
|
|
16075
|
+
anonymous: false
|
|
16076
|
+
},
|
|
16077
|
+
{
|
|
16078
|
+
type: "event",
|
|
16079
|
+
name: "ZapSwap",
|
|
16080
|
+
inputs: [
|
|
16081
|
+
{
|
|
16082
|
+
name: "aggregator",
|
|
16083
|
+
type: "address",
|
|
16084
|
+
indexed: true,
|
|
16085
|
+
internalType: "address"
|
|
16086
|
+
},
|
|
16087
|
+
{
|
|
16088
|
+
name: "tokenIn",
|
|
16089
|
+
type: "address",
|
|
16090
|
+
indexed: true,
|
|
16091
|
+
internalType: "address"
|
|
16092
|
+
},
|
|
16093
|
+
{
|
|
16094
|
+
name: "tokenOut",
|
|
16095
|
+
type: "address",
|
|
16096
|
+
indexed: true,
|
|
16097
|
+
internalType: "address"
|
|
16098
|
+
},
|
|
16099
|
+
{
|
|
16100
|
+
name: "amountIn",
|
|
16101
|
+
type: "uint128",
|
|
16102
|
+
indexed: false,
|
|
16103
|
+
internalType: "uint128"
|
|
16104
|
+
},
|
|
16105
|
+
{
|
|
16106
|
+
name: "amountOut",
|
|
16107
|
+
type: "uint128",
|
|
16108
|
+
indexed: false,
|
|
16109
|
+
internalType: "uint128"
|
|
16110
|
+
}
|
|
16111
|
+
],
|
|
16112
|
+
anonymous: false
|
|
16113
|
+
},
|
|
15013
16114
|
{
|
|
15014
16115
|
type: "event",
|
|
15015
16116
|
name: "ZappedIn",
|
|
@@ -15214,7 +16315,7 @@ var marketZapRouterAbi = [
|
|
|
15214
16315
|
},
|
|
15215
16316
|
{
|
|
15216
16317
|
type: "error",
|
|
15217
|
-
name: "
|
|
16318
|
+
name: "InsufficientRouteInput",
|
|
15218
16319
|
inputs: []
|
|
15219
16320
|
},
|
|
15220
16321
|
{
|
|
@@ -15245,7 +16346,7 @@ var marketZapRouterAbi = [
|
|
|
15245
16346
|
},
|
|
15246
16347
|
{
|
|
15247
16348
|
type: "error",
|
|
15248
|
-
name: "
|
|
16349
|
+
name: "InvalidRoute",
|
|
15249
16350
|
inputs: []
|
|
15250
16351
|
},
|
|
15251
16352
|
{
|
|
@@ -15253,33 +16354,6 @@ var marketZapRouterAbi = [
|
|
|
15253
16354
|
name: "PartialSwap",
|
|
15254
16355
|
inputs: []
|
|
15255
16356
|
},
|
|
15256
|
-
{
|
|
15257
|
-
type: "error",
|
|
15258
|
-
name: "PriceLimitAlreadyExceeded",
|
|
15259
|
-
inputs: [
|
|
15260
|
-
{
|
|
15261
|
-
name: "sqrtPriceCurrentX96",
|
|
15262
|
-
type: "uint160",
|
|
15263
|
-
internalType: "uint160"
|
|
15264
|
-
},
|
|
15265
|
-
{
|
|
15266
|
-
name: "sqrtPriceLimitX96",
|
|
15267
|
-
type: "uint160",
|
|
15268
|
-
internalType: "uint160"
|
|
15269
|
-
}
|
|
15270
|
-
]
|
|
15271
|
-
},
|
|
15272
|
-
{
|
|
15273
|
-
type: "error",
|
|
15274
|
-
name: "PriceLimitOutOfBounds",
|
|
15275
|
-
inputs: [
|
|
15276
|
-
{
|
|
15277
|
-
name: "sqrtPriceLimitX96",
|
|
15278
|
-
type: "uint160",
|
|
15279
|
-
internalType: "uint160"
|
|
15280
|
-
}
|
|
15281
|
-
]
|
|
15282
|
-
},
|
|
15283
16357
|
{
|
|
15284
16358
|
type: "error",
|
|
15285
16359
|
name: "QuoteDuringSettlement",
|
|
@@ -15406,6 +16480,7 @@ var marketExtsloadAbi = (0, import_viem2.parseAbi)([
|
|
|
15406
16480
|
marketAccessManagerAbi,
|
|
15407
16481
|
marketClaimFeePolicyAbi,
|
|
15408
16482
|
marketExtsloadAbi,
|
|
16483
|
+
marketIPeachExecutionRouterAbi,
|
|
15409
16484
|
marketMarketCalendarAbi,
|
|
15410
16485
|
marketPermit2Abi,
|
|
15411
16486
|
marketPoolRegistryAbi,
|
|
@@ -15418,6 +16493,7 @@ var marketExtsloadAbi = (0, import_viem2.parseAbi)([
|
|
|
15418
16493
|
marketSwapExactInParameters,
|
|
15419
16494
|
marketUniversalRouterAbi,
|
|
15420
16495
|
marketV4QuoterAbi,
|
|
16496
|
+
marketZapRouteHelperAbi,
|
|
15421
16497
|
marketZapRouterAbi
|
|
15422
16498
|
});
|
|
15423
16499
|
//# sourceMappingURL=index.cjs.map
|