@cowprotocol/cow-sdk 6.3.2-RC.2 → 7.0.0-beta.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.
Files changed (246) hide show
  1. package/README.md +276 -192
  2. package/dist/CHANGELOG.md +24 -0
  3. package/dist/README.md +276 -192
  4. package/dist/index.d.mts +73 -0
  5. package/dist/index.d.ts +73 -11
  6. package/dist/index.js +86 -27
  7. package/dist/index.mjs +49 -0
  8. package/dist/package.json +71 -91
  9. package/package.json +71 -91
  10. package/LICENSE-APACHE +0 -201
  11. package/LICENSE-MIT +0 -21
  12. package/dist/COPYRIGHT.md +0 -13
  13. package/dist/bridging/BridgingSdk/BridgingSdk.d.ts +0 -87
  14. package/dist/bridging/BridgingSdk/findBridgeProviderFromHook.d.ts +0 -2
  15. package/dist/bridging/BridgingSdk/getBridgeSignedHook.d.ts +0 -8
  16. package/dist/bridging/BridgingSdk/getCrossChainOrder.d.ts +0 -16
  17. package/dist/bridging/BridgingSdk/getQuoteWithBridge.d.ts +0 -3
  18. package/dist/bridging/BridgingSdk/getQuoteWithoutBridge.d.ts +0 -7
  19. package/dist/bridging/BridgingSdk/mock/bridgeRequestMocks.d.ts +0 -21
  20. package/dist/bridging/BridgingSdk/types.d.ts +0 -43
  21. package/dist/bridging/const.d.ts +0 -6
  22. package/dist/bridging/errors.d.ts +0 -22
  23. package/dist/bridging/index.d.ts +0 -8
  24. package/dist/bridging/providers/across/AcrossApi.d.ts +0 -30
  25. package/dist/bridging/providers/across/AcrossBridgeProvider.d.ts +0 -44
  26. package/dist/bridging/providers/across/abi.d.ts +0 -154
  27. package/dist/bridging/providers/across/const/contracts.d.ts +0 -3
  28. package/dist/bridging/providers/across/const/interfaces.d.ts +0 -3
  29. package/dist/bridging/providers/across/const/misc.d.ts +0 -2
  30. package/dist/bridging/providers/across/const/tokens.d.ts +0 -11
  31. package/dist/bridging/providers/across/createAcrossDepositCall.d.ts +0 -9
  32. package/dist/bridging/providers/across/getDepositParams.d.ts +0 -4
  33. package/dist/bridging/providers/across/types.d.ts +0 -242
  34. package/dist/bridging/providers/across/util.d.ts +0 -43
  35. package/dist/bridging/providers/bungee/BungeeApi.d.ts +0 -67
  36. package/dist/bridging/providers/bungee/BungeeBridgeProvider.d.ts +0 -45
  37. package/dist/bridging/providers/bungee/abi.d.ts +0 -203
  38. package/dist/bridging/providers/bungee/const/contracts.d.ts +0 -4
  39. package/dist/bridging/providers/bungee/const/misc.d.ts +0 -8
  40. package/dist/bridging/providers/bungee/createBungeeDepositCall.d.ts +0 -7
  41. package/dist/bridging/providers/bungee/getBridgingStatusFromEvents.d.ts +0 -3
  42. package/dist/bridging/providers/bungee/types.d.ts +0 -268
  43. package/dist/bridging/providers/bungee/util.d.ts +0 -62
  44. package/dist/bridging/providers/mock/MockBridgeProvider.d.ts +0 -26
  45. package/dist/bridging/providers/utils/getGasLimitEstimationForHook.d.ts +0 -10
  46. package/dist/bridging/types.d.ts +0 -333
  47. package/dist/bridging/utils.d.ts +0 -9
  48. package/dist/chains/const/index.d.ts +0 -25
  49. package/dist/chains/const/path.d.ts +0 -1
  50. package/dist/chains/details/arbitrum.d.ts +0 -7
  51. package/dist/chains/details/avalanche.d.ts +0 -2
  52. package/dist/chains/details/base.d.ts +0 -7
  53. package/dist/chains/details/bnb.d.ts +0 -2
  54. package/dist/chains/details/gnosis.d.ts +0 -7
  55. package/dist/chains/details/index.d.ts +0 -10
  56. package/dist/chains/details/lens.d.ts +0 -2
  57. package/dist/chains/details/mainnet.d.ts +0 -7
  58. package/dist/chains/details/optimism.d.ts +0 -2
  59. package/dist/chains/details/polygon.d.ts +0 -2
  60. package/dist/chains/details/sepolia.d.ts +0 -7
  61. package/dist/chains/index.d.ts +0 -4
  62. package/dist/chains/types.d.ts +0 -133
  63. package/dist/chains/utils.d.ts +0 -19
  64. package/dist/common/consts/config.d.ts +0 -9
  65. package/dist/common/consts/contracts.d.ts +0 -45
  66. package/dist/common/consts/ipfs.d.ts +0 -2
  67. package/dist/common/consts/order.d.ts +0 -1
  68. package/dist/common/consts/path.d.ts +0 -1
  69. package/dist/common/consts/tokens.d.ts +0 -9
  70. package/dist/common/generated/CoWShed.d.ts +0 -219
  71. package/dist/common/generated/CoWShedFactory.d.ts +0 -191
  72. package/dist/common/generated/ComposableCoW.d.ts +0 -340
  73. package/dist/common/generated/EthFlow.d.ts +0 -117
  74. package/dist/common/generated/ExtensibleFallbackHandler.d.ts +0 -282
  75. package/dist/common/generated/GPv2Settlement.d.ts +0 -107
  76. package/dist/common/generated/TWAP.d.ts +0 -141
  77. package/dist/common/generated/common.d.ts +0 -21
  78. package/dist/common/generated/factories/CoWShedFactory__factory.d.ts +0 -250
  79. package/dist/common/generated/factories/CoWShed__factory.d.ts +0 -254
  80. package/dist/common/generated/factories/ComposableCoW__factory.d.ts +0 -475
  81. package/dist/common/generated/factories/EthFlow__factory.d.ts +0 -124
  82. package/dist/common/generated/factories/ExtensibleFallbackHandler__factory.d.ts +0 -389
  83. package/dist/common/generated/factories/GPv2Settlement__factory.d.ts +0 -81
  84. package/dist/common/generated/factories/TWAP__factory.d.ts +0 -260
  85. package/dist/common/generated/factories/index.d.ts +0 -7
  86. package/dist/common/generated/index.d.ts +0 -15
  87. package/dist/common/index.d.ts +0 -12
  88. package/dist/common/types/config.d.ts +0 -70
  89. package/dist/common/types/cow-error.d.ts +0 -4
  90. package/dist/common/types/ethereum.d.ts +0 -5
  91. package/dist/common/types/tokens.d.ts +0 -12
  92. package/dist/common/types/wallets.d.ts +0 -5
  93. package/dist/common/utils/common.d.ts +0 -1
  94. package/dist/common/utils/config.d.ts +0 -4
  95. package/dist/common/utils/log.d.ts +0 -2
  96. package/dist/common/utils/math.d.ts +0 -19
  97. package/dist/common/utils/order.d.ts +0 -4
  98. package/dist/common/utils/serialize.d.ts +0 -1
  99. package/dist/common/utils/wallet.d.ts +0 -3
  100. package/dist/composable/ConditionalOrder.d.ts +0 -206
  101. package/dist/composable/ConditionalOrderFactory.d.ts +0 -19
  102. package/dist/composable/Multiplexer.d.ts +0 -174
  103. package/dist/composable/contracts.d.ts +0 -6
  104. package/dist/composable/generated/ComposableCoW.d.ts +0 -340
  105. package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +0 -282
  106. package/dist/composable/generated/TWAP.d.ts +0 -141
  107. package/dist/composable/generated/common.d.ts +0 -21
  108. package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +0 -475
  109. package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +0 -389
  110. package/dist/composable/generated/factories/TWAP__factory.d.ts +0 -260
  111. package/dist/composable/generated/factories/index.d.ts +0 -3
  112. package/dist/composable/generated/index.d.ts +0 -7
  113. package/dist/composable/index.d.ts +0 -6
  114. package/dist/composable/orderTypes/Twap.d.ts +0 -242
  115. package/dist/composable/orderTypes/index.d.ts +0 -3
  116. package/dist/composable/orderTypes/test/TestConditionalOrder.d.ts +0 -25
  117. package/dist/composable/types.d.ts +0 -133
  118. package/dist/composable/utils.d.ts +0 -37
  119. package/dist/cow-shed/CowShedSdk.d.ts +0 -74
  120. package/dist/cow-shed/contracts/CoWShedHooks.d.ts +0 -46
  121. package/dist/cow-shed/contracts/utils.d.ts +0 -4
  122. package/dist/cow-shed/index.d.ts +0 -3
  123. package/dist/cow-shed/types.d.ts +0 -17
  124. package/dist/docs/architecture.md +0 -353
  125. package/dist/examples/cra/README.md +0 -21
  126. package/dist/hooks/utils.d.ts +0 -3
  127. package/dist/index-30eefcb8.js +0 -29
  128. package/dist/index-30eefcb8.js.map +0 -1
  129. package/dist/index.js.map +0 -1
  130. package/dist/index.modern.mjs +0 -2
  131. package/dist/index.modern.mjs.map +0 -1
  132. package/dist/index.module.js +0 -29
  133. package/dist/index.module.js.map +0 -1
  134. package/dist/order-book/api.d.ts +0 -235
  135. package/dist/order-book/generated/index.d.ts +0 -55
  136. package/dist/order-book/generated/models/Address.d.ts +0 -4
  137. package/dist/order-book/generated/models/AppData.d.ts +0 -7
  138. package/dist/order-book/generated/models/AppDataHash.d.ts +0 -6
  139. package/dist/order-book/generated/models/AppDataObject.d.ts +0 -7
  140. package/dist/order-book/generated/models/Auction.d.ts +0 -30
  141. package/dist/order-book/generated/models/AuctionOrder.d.ts +0 -92
  142. package/dist/order-book/generated/models/AuctionPrices.d.ts +0 -6
  143. package/dist/order-book/generated/models/BigUint.d.ts +0 -4
  144. package/dist/order-book/generated/models/BuyTokenDestination.d.ts +0 -7
  145. package/dist/order-book/generated/models/CallData.d.ts +0 -4
  146. package/dist/order-book/generated/models/CompetitionAuction.d.ts +0 -14
  147. package/dist/order-book/generated/models/CompetitionOrderStatus.d.ts +0 -29
  148. package/dist/order-book/generated/models/EcdsaSignature.d.ts +0 -4
  149. package/dist/order-book/generated/models/EcdsaSigningScheme.d.ts +0 -7
  150. package/dist/order-book/generated/models/EthflowData.d.ts +0 -20
  151. package/dist/order-book/generated/models/ExecutedAmounts.d.ts +0 -5
  152. package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +0 -8
  153. package/dist/order-book/generated/models/FeePolicy.d.ts +0 -7
  154. package/dist/order-book/generated/models/InteractionData.d.ts +0 -11
  155. package/dist/order-book/generated/models/NativePriceResponse.d.ts +0 -10
  156. package/dist/order-book/generated/models/OnchainOrderData.d.ts +0 -24
  157. package/dist/order-book/generated/models/Order.d.ts +0 -3
  158. package/dist/order-book/generated/models/OrderCancellation.d.ts +0 -14
  159. package/dist/order-book/generated/models/OrderCancellationError.d.ts +0 -15
  160. package/dist/order-book/generated/models/OrderCancellations.d.ts +0 -18
  161. package/dist/order-book/generated/models/OrderClass.d.ts +0 -8
  162. package/dist/order-book/generated/models/OrderCreation.d.ts +0 -80
  163. package/dist/order-book/generated/models/OrderKind.d.ts +0 -7
  164. package/dist/order-book/generated/models/OrderMetaData.d.ts +0 -100
  165. package/dist/order-book/generated/models/OrderParameters.d.ts +0 -53
  166. package/dist/order-book/generated/models/OrderPostError.d.ts +0 -35
  167. package/dist/order-book/generated/models/OrderQuoteRequest.d.ts +0 -58
  168. package/dist/order-book/generated/models/OrderQuoteResponse.d.ts +0 -27
  169. package/dist/order-book/generated/models/OrderQuoteSide.d.ts +0 -26
  170. package/dist/order-book/generated/models/OrderQuoteSideKindBuy.d.ts +0 -3
  171. package/dist/order-book/generated/models/OrderQuoteSideKindSell.d.ts +0 -3
  172. package/dist/order-book/generated/models/OrderQuoteValidity.d.ts +0 -14
  173. package/dist/order-book/generated/models/OrderStatus.d.ts +0 -10
  174. package/dist/order-book/generated/models/PreSignature.d.ts +0 -4
  175. package/dist/order-book/generated/models/PriceEstimationError.d.ts +0 -12
  176. package/dist/order-book/generated/models/PriceImprovement.d.ts +0 -12
  177. package/dist/order-book/generated/models/PriceQuality.d.ts +0 -16
  178. package/dist/order-book/generated/models/Quote.d.ts +0 -19
  179. package/dist/order-book/generated/models/SellTokenSource.d.ts +0 -8
  180. package/dist/order-book/generated/models/Signature.d.ts +0 -6
  181. package/dist/order-book/generated/models/SigningScheme.d.ts +0 -9
  182. package/dist/order-book/generated/models/SolverCompetitionResponse.d.ts +0 -30
  183. package/dist/order-book/generated/models/SolverSettlement.d.ts +0 -47
  184. package/dist/order-book/generated/models/Surplus.d.ts +0 -7
  185. package/dist/order-book/generated/models/TokenAmount.d.ts +0 -4
  186. package/dist/order-book/generated/models/TotalSurplus.d.ts +0 -10
  187. package/dist/order-book/generated/models/Trade.d.ts +0 -57
  188. package/dist/order-book/generated/models/TransactionHash.d.ts +0 -4
  189. package/dist/order-book/generated/models/UID.d.ts +0 -8
  190. package/dist/order-book/generated/models/Volume.d.ts +0 -6
  191. package/dist/order-book/index.d.ts +0 -5
  192. package/dist/order-book/mock.d.ts +0 -63
  193. package/dist/order-book/quoteAmountsAndCostsUtils.d.ts +0 -35
  194. package/dist/order-book/request.d.ts +0 -49
  195. package/dist/order-book/transformOrder.d.ts +0 -10
  196. package/dist/order-book/types.d.ts +0 -74
  197. package/dist/order-signing/index.d.ts +0 -2
  198. package/dist/order-signing/orderSigningUtils.d.ts +0 -97
  199. package/dist/order-signing/types.d.ts +0 -55
  200. package/dist/order-signing/utils.d.ts +0 -49
  201. package/dist/schemas/trading/LimitOrderAdvancedSettings.ts +0 -422
  202. package/dist/schemas/trading/LimitTradeParameters.ts +0 -229
  203. package/dist/schemas/trading/QuoteResultsSerialized.ts +0 -1151
  204. package/dist/schemas/trading/QuoterParameters.ts +0 -43
  205. package/dist/schemas/trading/SwapAdvancedSettings.ts +0 -708
  206. package/dist/schemas/trading/TradeParameters.ts +0 -217
  207. package/dist/src/bridging/PROVIDER_README.md +0 -796
  208. package/dist/src/bridging/README.md +0 -718
  209. package/dist/src/cow-shed/README.md +0 -60
  210. package/dist/src/trading/README.md +0 -544
  211. package/dist/src/weiroll/README.md +0 -58
  212. package/dist/subgraph/api.d.ts +0 -77
  213. package/dist/subgraph/graphql.d.ts +0 -3203
  214. package/dist/subgraph/index.d.ts +0 -1
  215. package/dist/subgraph/queries.d.ts +0 -14
  216. package/dist/test/getWallet.d.ts +0 -5
  217. package/dist/test/utils.d.ts +0 -1
  218. package/dist/trading/appDataUtils.d.ts +0 -5
  219. package/dist/trading/calculateUniqueOrderId.d.ts +0 -5
  220. package/dist/trading/consts.d.ts +0 -6
  221. package/dist/trading/getEthFlowTransaction.d.ts +0 -12
  222. package/dist/trading/getOrderToSign.d.ts +0 -11
  223. package/dist/trading/getOrderTypedData.d.ts +0 -4
  224. package/dist/trading/getPreSignTransaction.d.ts +0 -4
  225. package/dist/trading/getQuote.d.ts +0 -26
  226. package/dist/trading/index.d.ts +0 -21
  227. package/dist/trading/postCoWProtocolTrade.d.ts +0 -4
  228. package/dist/trading/postLimitOrder.d.ts +0 -3
  229. package/dist/trading/postSellNativeCurrencyOrder.d.ts +0 -4
  230. package/dist/trading/postSwapOrder.d.ts +0 -5
  231. package/dist/trading/suggestSlippageBps.d.ts +0 -13
  232. package/dist/trading/suggestSlippageFromFee.d.ts +0 -19
  233. package/dist/trading/suggestSlippageFromVolume.d.ts +0 -10
  234. package/dist/trading/tradingSdk.d.ts +0 -26
  235. package/dist/trading/types.d.ts +0 -221
  236. package/dist/trading/utils/getPartnerFeeBps.d.ts +0 -2
  237. package/dist/trading/utils/misc.d.ts +0 -27
  238. package/dist/trading/utils/slippage.d.ts +0 -16
  239. package/dist/utils-9f8a0370.js +0 -2
  240. package/dist/utils-9f8a0370.js.map +0 -1
  241. package/dist/utils-a846dcac.js +0 -2
  242. package/dist/utils-a846dcac.js.map +0 -1
  243. package/dist/utils-ea990520.js +0 -2
  244. package/dist/utils-ea990520.js.map +0 -1
  245. package/dist/utils.d.ts +0 -3
  246. package/dist/weiroll/index.d.ts +0 -23
@@ -1,475 +0,0 @@
1
- import { Signer } from "ethers";
2
- import type { Provider } from "@ethersproject/providers";
3
- import type { ComposableCoW, ComposableCoWInterface } from "../ComposableCoW";
4
- export declare class ComposableCoW__factory {
5
- static readonly abi: readonly [{
6
- readonly inputs: readonly [{
7
- readonly internalType: "address";
8
- readonly name: "_settlement";
9
- readonly type: "address";
10
- }];
11
- readonly stateMutability: "nonpayable";
12
- readonly type: "constructor";
13
- }, {
14
- readonly inputs: readonly [];
15
- readonly name: "InterfaceNotSupported";
16
- readonly type: "error";
17
- }, {
18
- readonly inputs: readonly [];
19
- readonly name: "InvalidHandler";
20
- readonly type: "error";
21
- }, {
22
- readonly inputs: readonly [];
23
- readonly name: "ProofNotAuthed";
24
- readonly type: "error";
25
- }, {
26
- readonly inputs: readonly [];
27
- readonly name: "SingleOrderNotAuthed";
28
- readonly type: "error";
29
- }, {
30
- readonly inputs: readonly [];
31
- readonly name: "SwapGuardRestricted";
32
- readonly type: "error";
33
- }, {
34
- readonly anonymous: false;
35
- readonly inputs: readonly [{
36
- readonly indexed: true;
37
- readonly internalType: "address";
38
- readonly name: "owner";
39
- readonly type: "address";
40
- }, {
41
- readonly components: readonly [{
42
- readonly internalType: "contract IConditionalOrder";
43
- readonly name: "handler";
44
- readonly type: "address";
45
- }, {
46
- readonly internalType: "bytes32";
47
- readonly name: "salt";
48
- readonly type: "bytes32";
49
- }, {
50
- readonly internalType: "bytes";
51
- readonly name: "staticInput";
52
- readonly type: "bytes";
53
- }];
54
- readonly indexed: false;
55
- readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
56
- readonly name: "params";
57
- readonly type: "tuple";
58
- }];
59
- readonly name: "ConditionalOrderCreated";
60
- readonly type: "event";
61
- }, {
62
- readonly anonymous: false;
63
- readonly inputs: readonly [{
64
- readonly indexed: true;
65
- readonly internalType: "address";
66
- readonly name: "owner";
67
- readonly type: "address";
68
- }, {
69
- readonly indexed: false;
70
- readonly internalType: "bytes32";
71
- readonly name: "root";
72
- readonly type: "bytes32";
73
- }, {
74
- readonly components: readonly [{
75
- readonly internalType: "uint256";
76
- readonly name: "location";
77
- readonly type: "uint256";
78
- }, {
79
- readonly internalType: "bytes";
80
- readonly name: "data";
81
- readonly type: "bytes";
82
- }];
83
- readonly indexed: false;
84
- readonly internalType: "struct ComposableCoW.Proof";
85
- readonly name: "proof";
86
- readonly type: "tuple";
87
- }];
88
- readonly name: "MerkleRootSet";
89
- readonly type: "event";
90
- }, {
91
- readonly anonymous: false;
92
- readonly inputs: readonly [{
93
- readonly indexed: true;
94
- readonly internalType: "address";
95
- readonly name: "owner";
96
- readonly type: "address";
97
- }, {
98
- readonly indexed: false;
99
- readonly internalType: "contract ISwapGuard";
100
- readonly name: "swapGuard";
101
- readonly type: "address";
102
- }];
103
- readonly name: "SwapGuardSet";
104
- readonly type: "event";
105
- }, {
106
- readonly inputs: readonly [{
107
- readonly internalType: "address";
108
- readonly name: "";
109
- readonly type: "address";
110
- }, {
111
- readonly internalType: "bytes32";
112
- readonly name: "";
113
- readonly type: "bytes32";
114
- }];
115
- readonly name: "cabinet";
116
- readonly outputs: readonly [{
117
- readonly internalType: "bytes32";
118
- readonly name: "";
119
- readonly type: "bytes32";
120
- }];
121
- readonly stateMutability: "view";
122
- readonly type: "function";
123
- }, {
124
- readonly inputs: readonly [{
125
- readonly components: readonly [{
126
- readonly internalType: "contract IConditionalOrder";
127
- readonly name: "handler";
128
- readonly type: "address";
129
- }, {
130
- readonly internalType: "bytes32";
131
- readonly name: "salt";
132
- readonly type: "bytes32";
133
- }, {
134
- readonly internalType: "bytes";
135
- readonly name: "staticInput";
136
- readonly type: "bytes";
137
- }];
138
- readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
139
- readonly name: "params";
140
- readonly type: "tuple";
141
- }, {
142
- readonly internalType: "bool";
143
- readonly name: "dispatch";
144
- readonly type: "bool";
145
- }];
146
- readonly name: "create";
147
- readonly outputs: readonly [];
148
- readonly stateMutability: "nonpayable";
149
- readonly type: "function";
150
- }, {
151
- readonly inputs: readonly [{
152
- readonly components: readonly [{
153
- readonly internalType: "contract IConditionalOrder";
154
- readonly name: "handler";
155
- readonly type: "address";
156
- }, {
157
- readonly internalType: "bytes32";
158
- readonly name: "salt";
159
- readonly type: "bytes32";
160
- }, {
161
- readonly internalType: "bytes";
162
- readonly name: "staticInput";
163
- readonly type: "bytes";
164
- }];
165
- readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
166
- readonly name: "params";
167
- readonly type: "tuple";
168
- }, {
169
- readonly internalType: "contract IValueFactory";
170
- readonly name: "factory";
171
- readonly type: "address";
172
- }, {
173
- readonly internalType: "bytes";
174
- readonly name: "data";
175
- readonly type: "bytes";
176
- }, {
177
- readonly internalType: "bool";
178
- readonly name: "dispatch";
179
- readonly type: "bool";
180
- }];
181
- readonly name: "createWithContext";
182
- readonly outputs: readonly [];
183
- readonly stateMutability: "nonpayable";
184
- readonly type: "function";
185
- }, {
186
- readonly inputs: readonly [];
187
- readonly name: "domainSeparator";
188
- readonly outputs: readonly [{
189
- readonly internalType: "bytes32";
190
- readonly name: "";
191
- readonly type: "bytes32";
192
- }];
193
- readonly stateMutability: "view";
194
- readonly type: "function";
195
- }, {
196
- readonly inputs: readonly [{
197
- readonly internalType: "address";
198
- readonly name: "owner";
199
- readonly type: "address";
200
- }, {
201
- readonly components: readonly [{
202
- readonly internalType: "contract IConditionalOrder";
203
- readonly name: "handler";
204
- readonly type: "address";
205
- }, {
206
- readonly internalType: "bytes32";
207
- readonly name: "salt";
208
- readonly type: "bytes32";
209
- }, {
210
- readonly internalType: "bytes";
211
- readonly name: "staticInput";
212
- readonly type: "bytes";
213
- }];
214
- readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
215
- readonly name: "params";
216
- readonly type: "tuple";
217
- }, {
218
- readonly internalType: "bytes";
219
- readonly name: "offchainInput";
220
- readonly type: "bytes";
221
- }, {
222
- readonly internalType: "bytes32[]";
223
- readonly name: "proof";
224
- readonly type: "bytes32[]";
225
- }];
226
- readonly name: "getTradeableOrderWithSignature";
227
- readonly outputs: readonly [{
228
- readonly components: readonly [{
229
- readonly internalType: "contract IERC20";
230
- readonly name: "sellToken";
231
- readonly type: "address";
232
- }, {
233
- readonly internalType: "contract IERC20";
234
- readonly name: "buyToken";
235
- readonly type: "address";
236
- }, {
237
- readonly internalType: "address";
238
- readonly name: "receiver";
239
- readonly type: "address";
240
- }, {
241
- readonly internalType: "uint256";
242
- readonly name: "sellAmount";
243
- readonly type: "uint256";
244
- }, {
245
- readonly internalType: "uint256";
246
- readonly name: "buyAmount";
247
- readonly type: "uint256";
248
- }, {
249
- readonly internalType: "uint32";
250
- readonly name: "validTo";
251
- readonly type: "uint32";
252
- }, {
253
- readonly internalType: "bytes32";
254
- readonly name: "appData";
255
- readonly type: "bytes32";
256
- }, {
257
- readonly internalType: "uint256";
258
- readonly name: "feeAmount";
259
- readonly type: "uint256";
260
- }, {
261
- readonly internalType: "bytes32";
262
- readonly name: "kind";
263
- readonly type: "bytes32";
264
- }, {
265
- readonly internalType: "bool";
266
- readonly name: "partiallyFillable";
267
- readonly type: "bool";
268
- }, {
269
- readonly internalType: "bytes32";
270
- readonly name: "sellTokenBalance";
271
- readonly type: "bytes32";
272
- }, {
273
- readonly internalType: "bytes32";
274
- readonly name: "buyTokenBalance";
275
- readonly type: "bytes32";
276
- }];
277
- readonly internalType: "struct GPv2Order.Data";
278
- readonly name: "order";
279
- readonly type: "tuple";
280
- }, {
281
- readonly internalType: "bytes";
282
- readonly name: "signature";
283
- readonly type: "bytes";
284
- }];
285
- readonly stateMutability: "view";
286
- readonly type: "function";
287
- }, {
288
- readonly inputs: readonly [{
289
- readonly components: readonly [{
290
- readonly internalType: "contract IConditionalOrder";
291
- readonly name: "handler";
292
- readonly type: "address";
293
- }, {
294
- readonly internalType: "bytes32";
295
- readonly name: "salt";
296
- readonly type: "bytes32";
297
- }, {
298
- readonly internalType: "bytes";
299
- readonly name: "staticInput";
300
- readonly type: "bytes";
301
- }];
302
- readonly internalType: "struct IConditionalOrder.ConditionalOrderParams";
303
- readonly name: "params";
304
- readonly type: "tuple";
305
- }];
306
- readonly name: "hash";
307
- readonly outputs: readonly [{
308
- readonly internalType: "bytes32";
309
- readonly name: "";
310
- readonly type: "bytes32";
311
- }];
312
- readonly stateMutability: "pure";
313
- readonly type: "function";
314
- }, {
315
- readonly inputs: readonly [{
316
- readonly internalType: "contract Safe";
317
- readonly name: "safe";
318
- readonly type: "address";
319
- }, {
320
- readonly internalType: "address";
321
- readonly name: "sender";
322
- readonly type: "address";
323
- }, {
324
- readonly internalType: "bytes32";
325
- readonly name: "_hash";
326
- readonly type: "bytes32";
327
- }, {
328
- readonly internalType: "bytes32";
329
- readonly name: "_domainSeparator";
330
- readonly type: "bytes32";
331
- }, {
332
- readonly internalType: "bytes32";
333
- readonly name: "";
334
- readonly type: "bytes32";
335
- }, {
336
- readonly internalType: "bytes";
337
- readonly name: "encodeData";
338
- readonly type: "bytes";
339
- }, {
340
- readonly internalType: "bytes";
341
- readonly name: "payload";
342
- readonly type: "bytes";
343
- }];
344
- readonly name: "isValidSafeSignature";
345
- readonly outputs: readonly [{
346
- readonly internalType: "bytes4";
347
- readonly name: "magic";
348
- readonly type: "bytes4";
349
- }];
350
- readonly stateMutability: "view";
351
- readonly type: "function";
352
- }, {
353
- readonly inputs: readonly [{
354
- readonly internalType: "bytes32";
355
- readonly name: "singleOrderHash";
356
- readonly type: "bytes32";
357
- }];
358
- readonly name: "remove";
359
- readonly outputs: readonly [];
360
- readonly stateMutability: "nonpayable";
361
- readonly type: "function";
362
- }, {
363
- readonly inputs: readonly [{
364
- readonly internalType: "address";
365
- readonly name: "";
366
- readonly type: "address";
367
- }];
368
- readonly name: "roots";
369
- readonly outputs: readonly [{
370
- readonly internalType: "bytes32";
371
- readonly name: "";
372
- readonly type: "bytes32";
373
- }];
374
- readonly stateMutability: "view";
375
- readonly type: "function";
376
- }, {
377
- readonly inputs: readonly [{
378
- readonly internalType: "bytes32";
379
- readonly name: "root";
380
- readonly type: "bytes32";
381
- }, {
382
- readonly components: readonly [{
383
- readonly internalType: "uint256";
384
- readonly name: "location";
385
- readonly type: "uint256";
386
- }, {
387
- readonly internalType: "bytes";
388
- readonly name: "data";
389
- readonly type: "bytes";
390
- }];
391
- readonly internalType: "struct ComposableCoW.Proof";
392
- readonly name: "proof";
393
- readonly type: "tuple";
394
- }];
395
- readonly name: "setRoot";
396
- readonly outputs: readonly [];
397
- readonly stateMutability: "nonpayable";
398
- readonly type: "function";
399
- }, {
400
- readonly inputs: readonly [{
401
- readonly internalType: "bytes32";
402
- readonly name: "root";
403
- readonly type: "bytes32";
404
- }, {
405
- readonly components: readonly [{
406
- readonly internalType: "uint256";
407
- readonly name: "location";
408
- readonly type: "uint256";
409
- }, {
410
- readonly internalType: "bytes";
411
- readonly name: "data";
412
- readonly type: "bytes";
413
- }];
414
- readonly internalType: "struct ComposableCoW.Proof";
415
- readonly name: "proof";
416
- readonly type: "tuple";
417
- }, {
418
- readonly internalType: "contract IValueFactory";
419
- readonly name: "factory";
420
- readonly type: "address";
421
- }, {
422
- readonly internalType: "bytes";
423
- readonly name: "data";
424
- readonly type: "bytes";
425
- }];
426
- readonly name: "setRootWithContext";
427
- readonly outputs: readonly [];
428
- readonly stateMutability: "nonpayable";
429
- readonly type: "function";
430
- }, {
431
- readonly inputs: readonly [{
432
- readonly internalType: "contract ISwapGuard";
433
- readonly name: "swapGuard";
434
- readonly type: "address";
435
- }];
436
- readonly name: "setSwapGuard";
437
- readonly outputs: readonly [];
438
- readonly stateMutability: "nonpayable";
439
- readonly type: "function";
440
- }, {
441
- readonly inputs: readonly [{
442
- readonly internalType: "address";
443
- readonly name: "";
444
- readonly type: "address";
445
- }, {
446
- readonly internalType: "bytes32";
447
- readonly name: "";
448
- readonly type: "bytes32";
449
- }];
450
- readonly name: "singleOrders";
451
- readonly outputs: readonly [{
452
- readonly internalType: "bool";
453
- readonly name: "";
454
- readonly type: "bool";
455
- }];
456
- readonly stateMutability: "view";
457
- readonly type: "function";
458
- }, {
459
- readonly inputs: readonly [{
460
- readonly internalType: "address";
461
- readonly name: "";
462
- readonly type: "address";
463
- }];
464
- readonly name: "swapGuards";
465
- readonly outputs: readonly [{
466
- readonly internalType: "contract ISwapGuard";
467
- readonly name: "";
468
- readonly type: "address";
469
- }];
470
- readonly stateMutability: "view";
471
- readonly type: "function";
472
- }];
473
- static createInterface(): ComposableCoWInterface;
474
- static connect(address: string, signerOrProvider: Signer | Provider): ComposableCoW;
475
- }
@@ -1,124 +0,0 @@
1
- import { Signer } from "ethers";
2
- import type { Provider } from "@ethersproject/providers";
3
- import type { EthFlow, EthFlowInterface } from "../EthFlow";
4
- export declare class EthFlow__factory {
5
- static readonly abi: readonly [{
6
- readonly inputs: readonly [{
7
- readonly components: readonly [{
8
- readonly internalType: "contract IERC20";
9
- readonly name: "buyToken";
10
- readonly type: "address";
11
- }, {
12
- readonly internalType: "address";
13
- readonly name: "receiver";
14
- readonly type: "address";
15
- }, {
16
- readonly internalType: "uint256";
17
- readonly name: "sellAmount";
18
- readonly type: "uint256";
19
- }, {
20
- readonly internalType: "uint256";
21
- readonly name: "buyAmount";
22
- readonly type: "uint256";
23
- }, {
24
- readonly internalType: "bytes32";
25
- readonly name: "appData";
26
- readonly type: "bytes32";
27
- }, {
28
- readonly internalType: "uint256";
29
- readonly name: "feeAmount";
30
- readonly type: "uint256";
31
- }, {
32
- readonly internalType: "uint32";
33
- readonly name: "validTo";
34
- readonly type: "uint32";
35
- }, {
36
- readonly internalType: "bool";
37
- readonly name: "partiallyFillable";
38
- readonly type: "bool";
39
- }, {
40
- readonly internalType: "int64";
41
- readonly name: "quoteId";
42
- readonly type: "int64";
43
- }];
44
- readonly internalType: "struct EthFlowOrder.Data";
45
- readonly name: "order";
46
- readonly type: "tuple";
47
- }];
48
- readonly name: "createOrder";
49
- readonly outputs: readonly [{
50
- readonly internalType: "bytes32";
51
- readonly name: "orderHash";
52
- readonly type: "bytes32";
53
- }];
54
- readonly stateMutability: "payable";
55
- readonly type: "function";
56
- }, {
57
- readonly inputs: readonly [{
58
- readonly components: readonly [{
59
- readonly internalType: "contract IERC20";
60
- readonly name: "buyToken";
61
- readonly type: "address";
62
- }, {
63
- readonly internalType: "address";
64
- readonly name: "receiver";
65
- readonly type: "address";
66
- }, {
67
- readonly internalType: "uint256";
68
- readonly name: "sellAmount";
69
- readonly type: "uint256";
70
- }, {
71
- readonly internalType: "uint256";
72
- readonly name: "buyAmount";
73
- readonly type: "uint256";
74
- }, {
75
- readonly internalType: "bytes32";
76
- readonly name: "appData";
77
- readonly type: "bytes32";
78
- }, {
79
- readonly internalType: "uint256";
80
- readonly name: "feeAmount";
81
- readonly type: "uint256";
82
- }, {
83
- readonly internalType: "uint32";
84
- readonly name: "validTo";
85
- readonly type: "uint32";
86
- }, {
87
- readonly internalType: "bool";
88
- readonly name: "partiallyFillable";
89
- readonly type: "bool";
90
- }, {
91
- readonly internalType: "int64";
92
- readonly name: "quoteId";
93
- readonly type: "int64";
94
- }];
95
- readonly internalType: "struct EthFlowOrder.Data";
96
- readonly name: "order";
97
- readonly type: "tuple";
98
- }];
99
- readonly name: "invalidateOrder";
100
- readonly outputs: readonly [];
101
- readonly stateMutability: "nonpayable";
102
- readonly type: "function";
103
- }, {
104
- readonly inputs: readonly [{
105
- readonly internalType: "bytes32";
106
- readonly name: "";
107
- readonly type: "bytes32";
108
- }];
109
- readonly name: "orders";
110
- readonly outputs: readonly [{
111
- readonly internalType: "address";
112
- readonly name: "owner";
113
- readonly type: "address";
114
- }, {
115
- readonly internalType: "uint32";
116
- readonly name: "validTo";
117
- readonly type: "uint32";
118
- }];
119
- readonly stateMutability: "view";
120
- readonly type: "function";
121
- }];
122
- static createInterface(): EthFlowInterface;
123
- static connect(address: string, signerOrProvider: Signer | Provider): EthFlow;
124
- }