@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.
- package/README.md +276 -192
- package/dist/CHANGELOG.md +24 -0
- package/dist/README.md +276 -192
- package/dist/index.d.mts +73 -0
- package/dist/index.d.ts +73 -11
- package/dist/index.js +86 -27
- package/dist/index.mjs +49 -0
- package/dist/package.json +71 -91
- package/package.json +71 -91
- package/LICENSE-APACHE +0 -201
- package/LICENSE-MIT +0 -21
- package/dist/COPYRIGHT.md +0 -13
- package/dist/bridging/BridgingSdk/BridgingSdk.d.ts +0 -87
- package/dist/bridging/BridgingSdk/findBridgeProviderFromHook.d.ts +0 -2
- package/dist/bridging/BridgingSdk/getBridgeSignedHook.d.ts +0 -8
- package/dist/bridging/BridgingSdk/getCrossChainOrder.d.ts +0 -16
- package/dist/bridging/BridgingSdk/getQuoteWithBridge.d.ts +0 -3
- package/dist/bridging/BridgingSdk/getQuoteWithoutBridge.d.ts +0 -7
- package/dist/bridging/BridgingSdk/mock/bridgeRequestMocks.d.ts +0 -21
- package/dist/bridging/BridgingSdk/types.d.ts +0 -43
- package/dist/bridging/const.d.ts +0 -6
- package/dist/bridging/errors.d.ts +0 -22
- package/dist/bridging/index.d.ts +0 -8
- package/dist/bridging/providers/across/AcrossApi.d.ts +0 -30
- package/dist/bridging/providers/across/AcrossBridgeProvider.d.ts +0 -44
- package/dist/bridging/providers/across/abi.d.ts +0 -154
- package/dist/bridging/providers/across/const/contracts.d.ts +0 -3
- package/dist/bridging/providers/across/const/interfaces.d.ts +0 -3
- package/dist/bridging/providers/across/const/misc.d.ts +0 -2
- package/dist/bridging/providers/across/const/tokens.d.ts +0 -11
- package/dist/bridging/providers/across/createAcrossDepositCall.d.ts +0 -9
- package/dist/bridging/providers/across/getDepositParams.d.ts +0 -4
- package/dist/bridging/providers/across/types.d.ts +0 -242
- package/dist/bridging/providers/across/util.d.ts +0 -43
- package/dist/bridging/providers/bungee/BungeeApi.d.ts +0 -67
- package/dist/bridging/providers/bungee/BungeeBridgeProvider.d.ts +0 -45
- package/dist/bridging/providers/bungee/abi.d.ts +0 -203
- package/dist/bridging/providers/bungee/const/contracts.d.ts +0 -4
- package/dist/bridging/providers/bungee/const/misc.d.ts +0 -8
- package/dist/bridging/providers/bungee/createBungeeDepositCall.d.ts +0 -7
- package/dist/bridging/providers/bungee/getBridgingStatusFromEvents.d.ts +0 -3
- package/dist/bridging/providers/bungee/types.d.ts +0 -268
- package/dist/bridging/providers/bungee/util.d.ts +0 -62
- package/dist/bridging/providers/mock/MockBridgeProvider.d.ts +0 -26
- package/dist/bridging/providers/utils/getGasLimitEstimationForHook.d.ts +0 -10
- package/dist/bridging/types.d.ts +0 -333
- package/dist/bridging/utils.d.ts +0 -9
- package/dist/chains/const/index.d.ts +0 -25
- package/dist/chains/const/path.d.ts +0 -1
- package/dist/chains/details/arbitrum.d.ts +0 -7
- package/dist/chains/details/avalanche.d.ts +0 -2
- package/dist/chains/details/base.d.ts +0 -7
- package/dist/chains/details/bnb.d.ts +0 -2
- package/dist/chains/details/gnosis.d.ts +0 -7
- package/dist/chains/details/index.d.ts +0 -10
- package/dist/chains/details/lens.d.ts +0 -2
- package/dist/chains/details/mainnet.d.ts +0 -7
- package/dist/chains/details/optimism.d.ts +0 -2
- package/dist/chains/details/polygon.d.ts +0 -2
- package/dist/chains/details/sepolia.d.ts +0 -7
- package/dist/chains/index.d.ts +0 -4
- package/dist/chains/types.d.ts +0 -133
- package/dist/chains/utils.d.ts +0 -19
- package/dist/common/consts/config.d.ts +0 -9
- package/dist/common/consts/contracts.d.ts +0 -45
- package/dist/common/consts/ipfs.d.ts +0 -2
- package/dist/common/consts/order.d.ts +0 -1
- package/dist/common/consts/path.d.ts +0 -1
- package/dist/common/consts/tokens.d.ts +0 -9
- package/dist/common/generated/CoWShed.d.ts +0 -219
- package/dist/common/generated/CoWShedFactory.d.ts +0 -191
- package/dist/common/generated/ComposableCoW.d.ts +0 -340
- package/dist/common/generated/EthFlow.d.ts +0 -117
- package/dist/common/generated/ExtensibleFallbackHandler.d.ts +0 -282
- package/dist/common/generated/GPv2Settlement.d.ts +0 -107
- package/dist/common/generated/TWAP.d.ts +0 -141
- package/dist/common/generated/common.d.ts +0 -21
- package/dist/common/generated/factories/CoWShedFactory__factory.d.ts +0 -250
- package/dist/common/generated/factories/CoWShed__factory.d.ts +0 -254
- package/dist/common/generated/factories/ComposableCoW__factory.d.ts +0 -475
- package/dist/common/generated/factories/EthFlow__factory.d.ts +0 -124
- package/dist/common/generated/factories/ExtensibleFallbackHandler__factory.d.ts +0 -389
- package/dist/common/generated/factories/GPv2Settlement__factory.d.ts +0 -81
- package/dist/common/generated/factories/TWAP__factory.d.ts +0 -260
- package/dist/common/generated/factories/index.d.ts +0 -7
- package/dist/common/generated/index.d.ts +0 -15
- package/dist/common/index.d.ts +0 -12
- package/dist/common/types/config.d.ts +0 -70
- package/dist/common/types/cow-error.d.ts +0 -4
- package/dist/common/types/ethereum.d.ts +0 -5
- package/dist/common/types/tokens.d.ts +0 -12
- package/dist/common/types/wallets.d.ts +0 -5
- package/dist/common/utils/common.d.ts +0 -1
- package/dist/common/utils/config.d.ts +0 -4
- package/dist/common/utils/log.d.ts +0 -2
- package/dist/common/utils/math.d.ts +0 -19
- package/dist/common/utils/order.d.ts +0 -4
- package/dist/common/utils/serialize.d.ts +0 -1
- package/dist/common/utils/wallet.d.ts +0 -3
- package/dist/composable/ConditionalOrder.d.ts +0 -206
- package/dist/composable/ConditionalOrderFactory.d.ts +0 -19
- package/dist/composable/Multiplexer.d.ts +0 -174
- package/dist/composable/contracts.d.ts +0 -6
- package/dist/composable/generated/ComposableCoW.d.ts +0 -340
- package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +0 -282
- package/dist/composable/generated/TWAP.d.ts +0 -141
- package/dist/composable/generated/common.d.ts +0 -21
- package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +0 -475
- package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +0 -389
- package/dist/composable/generated/factories/TWAP__factory.d.ts +0 -260
- package/dist/composable/generated/factories/index.d.ts +0 -3
- package/dist/composable/generated/index.d.ts +0 -7
- package/dist/composable/index.d.ts +0 -6
- package/dist/composable/orderTypes/Twap.d.ts +0 -242
- package/dist/composable/orderTypes/index.d.ts +0 -3
- package/dist/composable/orderTypes/test/TestConditionalOrder.d.ts +0 -25
- package/dist/composable/types.d.ts +0 -133
- package/dist/composable/utils.d.ts +0 -37
- package/dist/cow-shed/CowShedSdk.d.ts +0 -74
- package/dist/cow-shed/contracts/CoWShedHooks.d.ts +0 -46
- package/dist/cow-shed/contracts/utils.d.ts +0 -4
- package/dist/cow-shed/index.d.ts +0 -3
- package/dist/cow-shed/types.d.ts +0 -17
- package/dist/docs/architecture.md +0 -353
- package/dist/examples/cra/README.md +0 -21
- package/dist/hooks/utils.d.ts +0 -3
- package/dist/index-30eefcb8.js +0 -29
- package/dist/index-30eefcb8.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.modern.mjs +0 -2
- package/dist/index.modern.mjs.map +0 -1
- package/dist/index.module.js +0 -29
- package/dist/index.module.js.map +0 -1
- package/dist/order-book/api.d.ts +0 -235
- package/dist/order-book/generated/index.d.ts +0 -55
- package/dist/order-book/generated/models/Address.d.ts +0 -4
- package/dist/order-book/generated/models/AppData.d.ts +0 -7
- package/dist/order-book/generated/models/AppDataHash.d.ts +0 -6
- package/dist/order-book/generated/models/AppDataObject.d.ts +0 -7
- package/dist/order-book/generated/models/Auction.d.ts +0 -30
- package/dist/order-book/generated/models/AuctionOrder.d.ts +0 -92
- package/dist/order-book/generated/models/AuctionPrices.d.ts +0 -6
- package/dist/order-book/generated/models/BigUint.d.ts +0 -4
- package/dist/order-book/generated/models/BuyTokenDestination.d.ts +0 -7
- package/dist/order-book/generated/models/CallData.d.ts +0 -4
- package/dist/order-book/generated/models/CompetitionAuction.d.ts +0 -14
- package/dist/order-book/generated/models/CompetitionOrderStatus.d.ts +0 -29
- package/dist/order-book/generated/models/EcdsaSignature.d.ts +0 -4
- package/dist/order-book/generated/models/EcdsaSigningScheme.d.ts +0 -7
- package/dist/order-book/generated/models/EthflowData.d.ts +0 -20
- package/dist/order-book/generated/models/ExecutedAmounts.d.ts +0 -5
- package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +0 -8
- package/dist/order-book/generated/models/FeePolicy.d.ts +0 -7
- package/dist/order-book/generated/models/InteractionData.d.ts +0 -11
- package/dist/order-book/generated/models/NativePriceResponse.d.ts +0 -10
- package/dist/order-book/generated/models/OnchainOrderData.d.ts +0 -24
- package/dist/order-book/generated/models/Order.d.ts +0 -3
- package/dist/order-book/generated/models/OrderCancellation.d.ts +0 -14
- package/dist/order-book/generated/models/OrderCancellationError.d.ts +0 -15
- package/dist/order-book/generated/models/OrderCancellations.d.ts +0 -18
- package/dist/order-book/generated/models/OrderClass.d.ts +0 -8
- package/dist/order-book/generated/models/OrderCreation.d.ts +0 -80
- package/dist/order-book/generated/models/OrderKind.d.ts +0 -7
- package/dist/order-book/generated/models/OrderMetaData.d.ts +0 -100
- package/dist/order-book/generated/models/OrderParameters.d.ts +0 -53
- package/dist/order-book/generated/models/OrderPostError.d.ts +0 -35
- package/dist/order-book/generated/models/OrderQuoteRequest.d.ts +0 -58
- package/dist/order-book/generated/models/OrderQuoteResponse.d.ts +0 -27
- package/dist/order-book/generated/models/OrderQuoteSide.d.ts +0 -26
- package/dist/order-book/generated/models/OrderQuoteSideKindBuy.d.ts +0 -3
- package/dist/order-book/generated/models/OrderQuoteSideKindSell.d.ts +0 -3
- package/dist/order-book/generated/models/OrderQuoteValidity.d.ts +0 -14
- package/dist/order-book/generated/models/OrderStatus.d.ts +0 -10
- package/dist/order-book/generated/models/PreSignature.d.ts +0 -4
- package/dist/order-book/generated/models/PriceEstimationError.d.ts +0 -12
- package/dist/order-book/generated/models/PriceImprovement.d.ts +0 -12
- package/dist/order-book/generated/models/PriceQuality.d.ts +0 -16
- package/dist/order-book/generated/models/Quote.d.ts +0 -19
- package/dist/order-book/generated/models/SellTokenSource.d.ts +0 -8
- package/dist/order-book/generated/models/Signature.d.ts +0 -6
- package/dist/order-book/generated/models/SigningScheme.d.ts +0 -9
- package/dist/order-book/generated/models/SolverCompetitionResponse.d.ts +0 -30
- package/dist/order-book/generated/models/SolverSettlement.d.ts +0 -47
- package/dist/order-book/generated/models/Surplus.d.ts +0 -7
- package/dist/order-book/generated/models/TokenAmount.d.ts +0 -4
- package/dist/order-book/generated/models/TotalSurplus.d.ts +0 -10
- package/dist/order-book/generated/models/Trade.d.ts +0 -57
- package/dist/order-book/generated/models/TransactionHash.d.ts +0 -4
- package/dist/order-book/generated/models/UID.d.ts +0 -8
- package/dist/order-book/generated/models/Volume.d.ts +0 -6
- package/dist/order-book/index.d.ts +0 -5
- package/dist/order-book/mock.d.ts +0 -63
- package/dist/order-book/quoteAmountsAndCostsUtils.d.ts +0 -35
- package/dist/order-book/request.d.ts +0 -49
- package/dist/order-book/transformOrder.d.ts +0 -10
- package/dist/order-book/types.d.ts +0 -74
- package/dist/order-signing/index.d.ts +0 -2
- package/dist/order-signing/orderSigningUtils.d.ts +0 -97
- package/dist/order-signing/types.d.ts +0 -55
- package/dist/order-signing/utils.d.ts +0 -49
- package/dist/schemas/trading/LimitOrderAdvancedSettings.ts +0 -422
- package/dist/schemas/trading/LimitTradeParameters.ts +0 -229
- package/dist/schemas/trading/QuoteResultsSerialized.ts +0 -1151
- package/dist/schemas/trading/QuoterParameters.ts +0 -43
- package/dist/schemas/trading/SwapAdvancedSettings.ts +0 -708
- package/dist/schemas/trading/TradeParameters.ts +0 -217
- package/dist/src/bridging/PROVIDER_README.md +0 -796
- package/dist/src/bridging/README.md +0 -718
- package/dist/src/cow-shed/README.md +0 -60
- package/dist/src/trading/README.md +0 -544
- package/dist/src/weiroll/README.md +0 -58
- package/dist/subgraph/api.d.ts +0 -77
- package/dist/subgraph/graphql.d.ts +0 -3203
- package/dist/subgraph/index.d.ts +0 -1
- package/dist/subgraph/queries.d.ts +0 -14
- package/dist/test/getWallet.d.ts +0 -5
- package/dist/test/utils.d.ts +0 -1
- package/dist/trading/appDataUtils.d.ts +0 -5
- package/dist/trading/calculateUniqueOrderId.d.ts +0 -5
- package/dist/trading/consts.d.ts +0 -6
- package/dist/trading/getEthFlowTransaction.d.ts +0 -12
- package/dist/trading/getOrderToSign.d.ts +0 -11
- package/dist/trading/getOrderTypedData.d.ts +0 -4
- package/dist/trading/getPreSignTransaction.d.ts +0 -4
- package/dist/trading/getQuote.d.ts +0 -26
- package/dist/trading/index.d.ts +0 -21
- package/dist/trading/postCoWProtocolTrade.d.ts +0 -4
- package/dist/trading/postLimitOrder.d.ts +0 -3
- package/dist/trading/postSellNativeCurrencyOrder.d.ts +0 -4
- package/dist/trading/postSwapOrder.d.ts +0 -5
- package/dist/trading/suggestSlippageBps.d.ts +0 -13
- package/dist/trading/suggestSlippageFromFee.d.ts +0 -19
- package/dist/trading/suggestSlippageFromVolume.d.ts +0 -10
- package/dist/trading/tradingSdk.d.ts +0 -26
- package/dist/trading/types.d.ts +0 -221
- package/dist/trading/utils/getPartnerFeeBps.d.ts +0 -2
- package/dist/trading/utils/misc.d.ts +0 -27
- package/dist/trading/utils/slippage.d.ts +0 -16
- package/dist/utils-9f8a0370.js +0 -2
- package/dist/utils-9f8a0370.js.map +0 -1
- package/dist/utils-a846dcac.js +0 -2
- package/dist/utils-a846dcac.js.map +0 -1
- package/dist/utils-ea990520.js +0 -2
- package/dist/utils-ea990520.js.map +0 -1
- package/dist/utils.d.ts +0 -3
- package/dist/weiroll/index.d.ts +0 -23
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"additionalProperties": false,
|
|
5
|
-
"properties": {
|
|
6
|
-
"env": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"enum": [
|
|
9
|
-
"prod",
|
|
10
|
-
"staging"
|
|
11
|
-
],
|
|
12
|
-
"description": "The environment to use for the Cow API."
|
|
13
|
-
},
|
|
14
|
-
"partiallyFillable": {
|
|
15
|
-
"type": "boolean",
|
|
16
|
-
"description": "Is the order fill-or-kill or partially fillable?"
|
|
17
|
-
},
|
|
18
|
-
"slippageBps": {
|
|
19
|
-
"type": "number",
|
|
20
|
-
"description": "Slippage in basis points. If not provided, it will use AUTO slippage, which would suggest a slippage based on the quote."
|
|
21
|
-
},
|
|
22
|
-
"receiver": {
|
|
23
|
-
"anyOf": [
|
|
24
|
-
{
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "20 byte Ethereum address encoded as a hex with `0x` prefix."
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "null"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"description": "An optional Ethereum address to receive the proceeds of the trade instead of the owner (i.e. the order signer)."
|
|
33
|
-
},
|
|
34
|
-
"validFor": {
|
|
35
|
-
"type": "number",
|
|
36
|
-
"description": "Unix timestamp (`uint32`) until which the order is valid."
|
|
37
|
-
},
|
|
38
|
-
"partnerFee": {
|
|
39
|
-
"anyOf": [
|
|
40
|
-
{
|
|
41
|
-
"type": "array",
|
|
42
|
-
"items": {
|
|
43
|
-
"anyOf": [
|
|
44
|
-
{
|
|
45
|
-
"type": "object",
|
|
46
|
-
"properties": {
|
|
47
|
-
"volumeBps": {
|
|
48
|
-
"type": "number",
|
|
49
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on volume. Capped at protocol level to 100 BPS (1%)"
|
|
50
|
-
},
|
|
51
|
-
"recipient": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"required": [
|
|
57
|
-
"volumeBps",
|
|
58
|
-
"recipient"
|
|
59
|
-
],
|
|
60
|
-
"additionalProperties": false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "object",
|
|
64
|
-
"properties": {
|
|
65
|
-
"surplusBps": {
|
|
66
|
-
"type": "number",
|
|
67
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on surplus"
|
|
68
|
-
},
|
|
69
|
-
"maxVolumeBps": {
|
|
70
|
-
"type": "number",
|
|
71
|
-
"description": "The maximum volume in basis points (BPS) to be paid to the partner. Capped at protocol level to 100 BPS (1%). You can chose to go lower but not higher"
|
|
72
|
-
},
|
|
73
|
-
"recipient": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"required": [
|
|
79
|
-
"surplusBps",
|
|
80
|
-
"maxVolumeBps",
|
|
81
|
-
"recipient"
|
|
82
|
-
],
|
|
83
|
-
"additionalProperties": false
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"type": "object",
|
|
87
|
-
"properties": {
|
|
88
|
-
"priceImprovementBps": {
|
|
89
|
-
"type": "number",
|
|
90
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on price improvement"
|
|
91
|
-
},
|
|
92
|
-
"maxVolumeBps": {
|
|
93
|
-
"type": "number",
|
|
94
|
-
"description": "The maximum volume in basis points (BPS) to be paid to the partner. Capped at protocol level to 100 BPS (1%). You can chose to go lower but not higher"
|
|
95
|
-
},
|
|
96
|
-
"recipient": {
|
|
97
|
-
"type": "string",
|
|
98
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"required": [
|
|
102
|
-
"priceImprovementBps",
|
|
103
|
-
"maxVolumeBps",
|
|
104
|
-
"recipient"
|
|
105
|
-
],
|
|
106
|
-
"additionalProperties": false
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"type": "object",
|
|
113
|
-
"properties": {
|
|
114
|
-
"volumeBps": {
|
|
115
|
-
"type": "number",
|
|
116
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on volume. Capped at protocol level to 100 BPS (1%)"
|
|
117
|
-
},
|
|
118
|
-
"recipient": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"required": [
|
|
124
|
-
"volumeBps",
|
|
125
|
-
"recipient"
|
|
126
|
-
],
|
|
127
|
-
"additionalProperties": false
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"type": "object",
|
|
131
|
-
"properties": {
|
|
132
|
-
"surplusBps": {
|
|
133
|
-
"type": "number",
|
|
134
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on surplus"
|
|
135
|
-
},
|
|
136
|
-
"maxVolumeBps": {
|
|
137
|
-
"type": "number",
|
|
138
|
-
"description": "The maximum volume in basis points (BPS) to be paid to the partner. Capped at protocol level to 100 BPS (1%). You can chose to go lower but not higher"
|
|
139
|
-
},
|
|
140
|
-
"recipient": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"required": [
|
|
146
|
-
"surplusBps",
|
|
147
|
-
"maxVolumeBps",
|
|
148
|
-
"recipient"
|
|
149
|
-
],
|
|
150
|
-
"additionalProperties": false
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "object",
|
|
154
|
-
"properties": {
|
|
155
|
-
"priceImprovementBps": {
|
|
156
|
-
"type": "number",
|
|
157
|
-
"description": "The fee in basis points (BPS) to be paid to the partner based on price improvement"
|
|
158
|
-
},
|
|
159
|
-
"maxVolumeBps": {
|
|
160
|
-
"type": "number",
|
|
161
|
-
"description": "The maximum volume in basis points (BPS) to be paid to the partner. Capped at protocol level to 100 BPS (1%). You can chose to go lower but not higher"
|
|
162
|
-
},
|
|
163
|
-
"recipient": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "The Ethereum address of the partner to receive the fee."
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"required": [
|
|
169
|
-
"priceImprovementBps",
|
|
170
|
-
"maxVolumeBps",
|
|
171
|
-
"recipient"
|
|
172
|
-
],
|
|
173
|
-
"additionalProperties": false
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"kind": {
|
|
178
|
-
"type": "string",
|
|
179
|
-
"enum": [
|
|
180
|
-
"buy",
|
|
181
|
-
"sell"
|
|
182
|
-
],
|
|
183
|
-
"description": "Is this order a buy or sell?"
|
|
184
|
-
},
|
|
185
|
-
"owner": {
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
"sellToken": {
|
|
189
|
-
"type": "string",
|
|
190
|
-
"description": "ERC-20 token to be sold."
|
|
191
|
-
},
|
|
192
|
-
"sellTokenDecimals": {
|
|
193
|
-
"type": "number"
|
|
194
|
-
},
|
|
195
|
-
"buyToken": {
|
|
196
|
-
"type": "string",
|
|
197
|
-
"description": "ERC-20 token to be bought."
|
|
198
|
-
},
|
|
199
|
-
"buyTokenDecimals": {
|
|
200
|
-
"type": "number"
|
|
201
|
-
},
|
|
202
|
-
"amount": {
|
|
203
|
-
"type": "string",
|
|
204
|
-
"description": "Amount of a token. `uint256` encoded in decimal."
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"required": [
|
|
208
|
-
"amount",
|
|
209
|
-
"buyToken",
|
|
210
|
-
"buyTokenDecimals",
|
|
211
|
-
"kind",
|
|
212
|
-
"sellToken",
|
|
213
|
-
"sellTokenDecimals"
|
|
214
|
-
],
|
|
215
|
-
"description": "Trade type, assets, amounts, and optional parameters.",
|
|
216
|
-
"definitions": {}
|
|
217
|
-
} as const
|