@cowprotocol/cow-sdk 6.0.0-RC.9 → 6.0.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 +3 -1
- package/dist/README.md +3 -1
- package/dist/bridging/BridgingSdk/BridgingSdk.d.ts +87 -63
- package/dist/bridging/BridgingSdk/findBridgeProviderFromHook.d.ts +2 -0
- package/dist/bridging/BridgingSdk/getBridgeSignedHook.d.ts +8 -0
- package/dist/bridging/BridgingSdk/getCrossChainOrder.d.ts +16 -0
- package/dist/bridging/BridgingSdk/getQuoteWithBridge.d.ts +3 -0
- package/dist/bridging/BridgingSdk/getQuoteWithoutBridge.d.ts +7 -7
- package/dist/bridging/BridgingSdk/mock/bridgeRequestMocks.d.ts +20 -0
- package/dist/bridging/BridgingSdk/types.d.ts +43 -0
- package/dist/bridging/const.d.ts +4 -2
- package/dist/bridging/errors.d.ts +22 -0
- package/dist/bridging/index.d.ts +8 -5
- package/dist/bridging/providers/across/AcrossApi.d.ts +30 -195
- package/dist/bridging/providers/across/AcrossBridgeProvider.d.ts +44 -41
- package/dist/bridging/providers/across/abi.d.ts +154 -154
- package/dist/bridging/providers/across/const/contracts.d.ts +3 -3
- package/dist/bridging/providers/across/const/interfaces.d.ts +3 -0
- package/dist/bridging/providers/across/const/misc.d.ts +2 -0
- package/dist/bridging/providers/across/const/tokens.d.ts +11 -11
- package/dist/bridging/providers/across/createAcrossDepositCall.d.ts +9 -9
- package/dist/bridging/providers/across/getDepositParams.d.ts +4 -0
- package/dist/bridging/providers/across/types.d.ts +242 -0
- package/dist/bridging/providers/across/util.d.ts +43 -39
- package/dist/bridging/providers/bungee/BungeeApi.d.ts +67 -0
- package/dist/bridging/providers/bungee/BungeeBridgeProvider.d.ts +44 -0
- package/dist/bridging/providers/bungee/abi.d.ts +203 -0
- package/dist/bridging/providers/bungee/const/contracts.d.ts +4 -0
- package/dist/bridging/providers/bungee/const/misc.d.ts +8 -0
- package/dist/bridging/providers/bungee/createBungeeDepositCall.d.ts +7 -0
- package/dist/bridging/providers/bungee/getBridgingStatusFromEvents.d.ts +3 -0
- package/dist/bridging/providers/bungee/types.d.ts +267 -0
- package/dist/bridging/providers/bungee/util.d.ts +62 -0
- package/dist/bridging/providers/mock/MockBridgeProvider.d.ts +26 -20
- package/dist/bridging/providers/utils/getGasLimitEstimationForHook.d.ts +4 -0
- package/dist/bridging/types.d.ts +323 -251
- package/dist/bridging/utils.d.ts +9 -6
- package/dist/chains/const/index.d.ts +25 -25
- package/dist/chains/const/path.d.ts +1 -1
- package/dist/chains/details/arbitrum.d.ts +7 -7
- package/dist/chains/details/avalanche.d.ts +2 -0
- package/dist/chains/details/base.d.ts +7 -7
- package/dist/chains/details/gnosis.d.ts +7 -7
- package/dist/chains/details/index.d.ts +8 -0
- package/dist/chains/details/mainnet.d.ts +7 -7
- package/dist/chains/details/optimism.d.ts +2 -2
- package/dist/chains/details/polygon.d.ts +2 -2
- package/dist/chains/details/sepolia.d.ts +7 -7
- package/dist/chains/index.d.ts +4 -3
- package/dist/chains/types.d.ts +127 -122
- package/dist/chains/utils.d.ts +18 -18
- package/dist/common/consts/config.d.ts +9 -9
- package/dist/common/consts/contracts.d.ts +43 -34
- package/dist/common/consts/ipfs.d.ts +2 -2
- package/dist/common/consts/order.d.ts +1 -0
- package/dist/common/consts/path.d.ts +1 -1
- package/dist/common/consts/tokens.d.ts +9 -9
- package/dist/common/generated/CoWShed.d.ts +219 -219
- package/dist/common/generated/CoWShedFactory.d.ts +191 -191
- package/dist/common/generated/ComposableCoW.d.ts +340 -340
- package/dist/common/generated/EthFlow.d.ts +117 -117
- package/dist/common/generated/ExtensibleFallbackHandler.d.ts +282 -282
- package/dist/common/generated/GPv2Settlement.d.ts +107 -107
- package/dist/common/generated/TWAP.d.ts +141 -141
- package/dist/common/generated/common.d.ts +21 -21
- package/dist/common/generated/factories/CoWShedFactory__factory.d.ts +250 -250
- package/dist/common/generated/factories/CoWShed__factory.d.ts +254 -254
- package/dist/common/generated/factories/ComposableCoW__factory.d.ts +475 -475
- package/dist/common/generated/factories/EthFlow__factory.d.ts +124 -124
- package/dist/common/generated/factories/ExtensibleFallbackHandler__factory.d.ts +389 -389
- package/dist/common/generated/factories/GPv2Settlement__factory.d.ts +81 -81
- package/dist/common/generated/factories/TWAP__factory.d.ts +260 -260
- package/dist/common/generated/factories/index.d.ts +7 -7
- package/dist/common/generated/index.d.ts +15 -15
- package/dist/common/index.d.ts +12 -10
- package/dist/common/types/config.d.ts +70 -70
- package/dist/common/types/cow-error.d.ts +4 -4
- package/dist/common/types/ethereum.d.ts +5 -5
- package/dist/common/types/tokens.d.ts +12 -12
- package/dist/common/types/wallets.d.ts +5 -5
- package/dist/common/utils/common.d.ts +1 -0
- package/dist/common/utils/config.d.ts +4 -4
- package/dist/common/utils/log.d.ts +2 -0
- package/dist/common/utils/math.d.ts +19 -0
- package/dist/common/utils/order.d.ts +4 -0
- package/dist/common/utils/serialize.d.ts +1 -1
- package/dist/common/utils/wallet.d.ts +3 -3
- package/dist/composable/ConditionalOrder.d.ts +206 -206
- package/dist/composable/ConditionalOrderFactory.d.ts +19 -19
- package/dist/composable/Multiplexer.d.ts +174 -174
- package/dist/composable/contracts.d.ts +6 -6
- package/dist/composable/generated/ComposableCoW.d.ts +340 -340
- package/dist/composable/generated/ExtensibleFallbackHandler.d.ts +282 -282
- package/dist/composable/generated/TWAP.d.ts +141 -141
- package/dist/composable/generated/common.d.ts +21 -21
- package/dist/composable/generated/factories/ComposableCoW__factory.d.ts +475 -475
- package/dist/composable/generated/factories/ExtensibleFallbackHandler__factory.d.ts +389 -389
- package/dist/composable/generated/factories/TWAP__factory.d.ts +260 -260
- package/dist/composable/generated/factories/index.d.ts +3 -3
- package/dist/composable/generated/index.d.ts +7 -7
- package/dist/composable/index.d.ts +6 -6
- package/dist/composable/orderTypes/Twap.d.ts +242 -242
- package/dist/composable/orderTypes/index.d.ts +3 -3
- package/dist/composable/orderTypes/test/TestConditionalOrder.d.ts +25 -25
- package/dist/composable/types.d.ts +133 -133
- package/dist/composable/utils.d.ts +37 -37
- package/dist/cow-shed/CowShedSdk.d.ts +74 -69
- package/dist/cow-shed/contracts/CoWShedHooks.d.ts +47 -45
- package/dist/cow-shed/contracts/utils.d.ts +4 -4
- package/dist/cow-shed/index.d.ts +3 -2
- package/dist/cow-shed/types.d.ts +17 -17
- package/dist/hooks/utils.d.ts +3 -2
- package/dist/index-847d9333.js +29 -0
- package/dist/index-847d9333.js.map +1 -0
- package/dist/index.d.ts +11 -10
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.module.js +4 -4
- package/dist/index.module.js.map +1 -1
- package/dist/order-book/api.d.ts +235 -235
- package/dist/order-book/generated/index.d.ts +55 -55
- package/dist/order-book/generated/models/Address.d.ts +4 -4
- package/dist/order-book/generated/models/AppData.d.ts +7 -7
- package/dist/order-book/generated/models/AppDataHash.d.ts +6 -6
- package/dist/order-book/generated/models/AppDataObject.d.ts +7 -7
- package/dist/order-book/generated/models/Auction.d.ts +30 -30
- package/dist/order-book/generated/models/AuctionOrder.d.ts +92 -92
- package/dist/order-book/generated/models/AuctionPrices.d.ts +6 -6
- package/dist/order-book/generated/models/BigUint.d.ts +4 -4
- package/dist/order-book/generated/models/BuyTokenDestination.d.ts +7 -7
- package/dist/order-book/generated/models/CallData.d.ts +4 -4
- package/dist/order-book/generated/models/CompetitionAuction.d.ts +14 -14
- package/dist/order-book/generated/models/CompetitionOrderStatus.d.ts +29 -29
- package/dist/order-book/generated/models/EcdsaSignature.d.ts +4 -4
- package/dist/order-book/generated/models/EcdsaSigningScheme.d.ts +7 -7
- package/dist/order-book/generated/models/EthflowData.d.ts +20 -20
- package/dist/order-book/generated/models/ExecutedAmounts.d.ts +5 -5
- package/dist/order-book/generated/models/ExecutedProtocolFee.d.ts +8 -8
- package/dist/order-book/generated/models/FeePolicy.d.ts +7 -7
- package/dist/order-book/generated/models/InteractionData.d.ts +11 -11
- package/dist/order-book/generated/models/NativePriceResponse.d.ts +10 -10
- package/dist/order-book/generated/models/OnchainOrderData.d.ts +24 -24
- package/dist/order-book/generated/models/Order.d.ts +3 -3
- package/dist/order-book/generated/models/OrderCancellation.d.ts +14 -14
- package/dist/order-book/generated/models/OrderCancellationError.d.ts +15 -15
- package/dist/order-book/generated/models/OrderCancellations.d.ts +18 -18
- package/dist/order-book/generated/models/OrderClass.d.ts +8 -8
- package/dist/order-book/generated/models/OrderCreation.d.ts +80 -80
- package/dist/order-book/generated/models/OrderKind.d.ts +7 -7
- package/dist/order-book/generated/models/OrderMetaData.d.ts +100 -100
- package/dist/order-book/generated/models/OrderParameters.d.ts +53 -53
- package/dist/order-book/generated/models/OrderPostError.d.ts +35 -35
- package/dist/order-book/generated/models/OrderQuoteRequest.d.ts +58 -58
- package/dist/order-book/generated/models/OrderQuoteResponse.d.ts +27 -27
- package/dist/order-book/generated/models/OrderQuoteSide.d.ts +26 -26
- package/dist/order-book/generated/models/OrderQuoteSideKindBuy.d.ts +3 -3
- package/dist/order-book/generated/models/OrderQuoteSideKindSell.d.ts +3 -3
- package/dist/order-book/generated/models/OrderQuoteValidity.d.ts +14 -14
- package/dist/order-book/generated/models/OrderStatus.d.ts +10 -10
- package/dist/order-book/generated/models/PreSignature.d.ts +4 -4
- package/dist/order-book/generated/models/PriceEstimationError.d.ts +12 -12
- package/dist/order-book/generated/models/PriceImprovement.d.ts +12 -12
- package/dist/order-book/generated/models/PriceQuality.d.ts +16 -16
- package/dist/order-book/generated/models/Quote.d.ts +19 -19
- package/dist/order-book/generated/models/SellTokenSource.d.ts +8 -8
- package/dist/order-book/generated/models/Signature.d.ts +6 -6
- package/dist/order-book/generated/models/SigningScheme.d.ts +9 -9
- package/dist/order-book/generated/models/SolverCompetitionResponse.d.ts +30 -30
- package/dist/order-book/generated/models/SolverSettlement.d.ts +47 -47
- package/dist/order-book/generated/models/Surplus.d.ts +7 -7
- package/dist/order-book/generated/models/TokenAmount.d.ts +4 -4
- package/dist/order-book/generated/models/TotalSurplus.d.ts +10 -10
- package/dist/order-book/generated/models/Trade.d.ts +57 -57
- package/dist/order-book/generated/models/TransactionHash.d.ts +4 -4
- package/dist/order-book/generated/models/UID.d.ts +8 -8
- package/dist/order-book/generated/models/Volume.d.ts +6 -6
- package/dist/order-book/index.d.ts +5 -5
- package/dist/order-book/mock.d.ts +63 -63
- package/dist/order-book/quoteAmountsAndCostsUtils.d.ts +35 -22
- package/dist/order-book/request.d.ts +49 -49
- package/dist/order-book/transformOrder.d.ts +10 -10
- package/dist/order-book/types.d.ts +74 -74
- package/dist/order-signing/index.d.ts +2 -2
- package/dist/order-signing/orderSigningUtils.d.ts +97 -97
- package/dist/order-signing/types.d.ts +55 -55
- package/dist/order-signing/utils.d.ts +49 -49
- package/dist/package.json +31 -32
- package/dist/schemas/trading/LimitOrderAdvancedSettings.ts +151 -12
- package/dist/schemas/trading/LimitTradeParameters.ts +136 -15
- package/dist/schemas/trading/QuoteResultsSerialized.ts +292 -27
- package/dist/schemas/trading/QuoterParameters.ts +10 -0
- package/dist/schemas/trading/SwapAdvancedSettings.ts +331 -12
- package/dist/schemas/trading/TradeParameters.ts +136 -15
- package/dist/src/trading/README.md +99 -7
- package/dist/subgraph/api.d.ts +77 -77
- package/dist/subgraph/graphql.d.ts +3203 -3203
- package/dist/subgraph/index.d.ts +1 -1
- package/dist/subgraph/queries.d.ts +14 -14
- package/dist/test/utils.d.ts +1 -0
- package/dist/trading/appDataUtils.d.ts +5 -4
- package/dist/trading/calculateUniqueOrderId.d.ts +5 -5
- package/dist/trading/consts.d.ts +6 -14
- package/dist/trading/getEthFlowTransaction.d.ts +12 -7
- package/dist/trading/getOrderToSign.d.ts +11 -8
- package/dist/trading/getOrderTypedData.d.ts +4 -4
- package/dist/trading/getPreSignTransaction.d.ts +4 -4
- package/dist/trading/getQuote.d.ts +26 -14
- package/dist/trading/index.d.ts +21 -19
- package/dist/trading/postCoWProtocolTrade.d.ts +4 -4
- package/dist/trading/postLimitOrder.d.ts +3 -3
- package/dist/trading/postSellNativeCurrencyOrder.d.ts +4 -7
- package/dist/trading/postSwapOrder.d.ts +5 -5
- package/dist/trading/suggestSlippageBps.d.ts +13 -0
- package/dist/trading/suggestSlippageFromFee.d.ts +19 -0
- package/dist/trading/suggestSlippageFromVolume.d.ts +10 -0
- package/dist/trading/tradingSdk.d.ts +26 -26
- package/dist/trading/types.d.ts +221 -190
- package/dist/trading/utils/getPartnerFeeBps.d.ts +2 -0
- package/dist/trading/{utils.d.ts → utils/misc.d.ts} +27 -27
- package/dist/trading/utils/slippage.d.ts +16 -0
- package/dist/utils-09dadb80.js +2 -0
- package/dist/utils-09dadb80.js.map +1 -0
- package/dist/utils-0ff3f95e.js +2 -0
- package/dist/utils-0ff3f95e.js.map +1 -0
- package/dist/utils-ddcfac77.js +2 -0
- package/dist/utils-ddcfac77.js.map +1 -0
- package/dist/utils.d.ts +3 -3
- package/dist/weiroll/index.d.ts +23 -23
- package/package.json +31 -32
- package/dist/bridging/BridgingSdk/getErc20Decimals.d.ts +0 -4
- package/dist/bridging/BridgingSdk/getQuoteWithBridging.d.ts +0 -9
- package/dist/index-317c25f1.js +0 -29
- package/dist/index-317c25f1.js.map +0 -1
- package/dist/utils-204a9cbe.js +0 -2
- package/dist/utils-204a9cbe.js.map +0 -1
- package/dist/utils-762ee9c3.js +0 -2
- package/dist/utils-762ee9c3.js.map +0 -1
- package/dist/utils-de2eb543.js +0 -2
- package/dist/utils-de2eb543.js.map +0 -1
|
@@ -291,33 +291,172 @@ export default {
|
|
|
291
291
|
"additionalProperties": false
|
|
292
292
|
},
|
|
293
293
|
"partnerFee": {
|
|
294
|
+
"anyOf": [
|
|
295
|
+
{
|
|
296
|
+
"type": "array",
|
|
297
|
+
"items": {
|
|
298
|
+
"anyOf": [
|
|
299
|
+
{
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"volumeBps": {
|
|
303
|
+
"type": "number",
|
|
304
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on volume. Capped at protocol level to 100 BPS (1%)"
|
|
305
|
+
},
|
|
306
|
+
"recipient": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"required": [
|
|
312
|
+
"volumeBps",
|
|
313
|
+
"recipient"
|
|
314
|
+
],
|
|
315
|
+
"additionalProperties": false
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "object",
|
|
319
|
+
"properties": {
|
|
320
|
+
"surplusBps": {
|
|
321
|
+
"type": "number",
|
|
322
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on surplus"
|
|
323
|
+
},
|
|
324
|
+
"maxVolumeBps": {
|
|
325
|
+
"type": "number",
|
|
326
|
+
"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"
|
|
327
|
+
},
|
|
328
|
+
"recipient": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": [
|
|
334
|
+
"surplusBps",
|
|
335
|
+
"maxVolumeBps",
|
|
336
|
+
"recipient"
|
|
337
|
+
],
|
|
338
|
+
"additionalProperties": false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"type": "object",
|
|
342
|
+
"properties": {
|
|
343
|
+
"priceImprovementBps": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on price improvement"
|
|
346
|
+
},
|
|
347
|
+
"maxVolumeBps": {
|
|
348
|
+
"type": "number",
|
|
349
|
+
"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"
|
|
350
|
+
},
|
|
351
|
+
"recipient": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"required": [
|
|
357
|
+
"priceImprovementBps",
|
|
358
|
+
"maxVolumeBps",
|
|
359
|
+
"recipient"
|
|
360
|
+
],
|
|
361
|
+
"additionalProperties": false
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"type": "object",
|
|
368
|
+
"properties": {
|
|
369
|
+
"volumeBps": {
|
|
370
|
+
"type": "number",
|
|
371
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on volume. Capped at protocol level to 100 BPS (1%)"
|
|
372
|
+
},
|
|
373
|
+
"recipient": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": [
|
|
379
|
+
"volumeBps",
|
|
380
|
+
"recipient"
|
|
381
|
+
],
|
|
382
|
+
"additionalProperties": false
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"surplusBps": {
|
|
388
|
+
"type": "number",
|
|
389
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on surplus"
|
|
390
|
+
},
|
|
391
|
+
"maxVolumeBps": {
|
|
392
|
+
"type": "number",
|
|
393
|
+
"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"
|
|
394
|
+
},
|
|
395
|
+
"recipient": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"required": [
|
|
401
|
+
"surplusBps",
|
|
402
|
+
"maxVolumeBps",
|
|
403
|
+
"recipient"
|
|
404
|
+
],
|
|
405
|
+
"additionalProperties": false
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"type": "object",
|
|
409
|
+
"properties": {
|
|
410
|
+
"priceImprovementBps": {
|
|
411
|
+
"type": "number",
|
|
412
|
+
"description": "The fee in basis points (BPS) to be paid to the partner based on price improvement"
|
|
413
|
+
},
|
|
414
|
+
"maxVolumeBps": {
|
|
415
|
+
"type": "number",
|
|
416
|
+
"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"
|
|
417
|
+
},
|
|
418
|
+
"recipient": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"description": "The Ethereum address of the partner to receive the fee."
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"required": [
|
|
424
|
+
"priceImprovementBps",
|
|
425
|
+
"maxVolumeBps",
|
|
426
|
+
"recipient"
|
|
427
|
+
],
|
|
428
|
+
"additionalProperties": false
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
"replacedOrder": {
|
|
294
433
|
"type": "object",
|
|
295
434
|
"properties": {
|
|
296
|
-
"
|
|
297
|
-
"type": "number",
|
|
298
|
-
"description": "The fee in basis points (BPS) to be paid to the partner. One basis point is equivalent to 0.01% (1/100th of a percent)"
|
|
299
|
-
},
|
|
300
|
-
"recipient": {
|
|
435
|
+
"uid": {
|
|
301
436
|
"type": "string",
|
|
302
|
-
"description": "The
|
|
437
|
+
"description": "The replaced order UID."
|
|
303
438
|
}
|
|
304
439
|
},
|
|
305
440
|
"required": [
|
|
306
|
-
"
|
|
307
|
-
"recipient"
|
|
441
|
+
"uid"
|
|
308
442
|
],
|
|
309
443
|
"additionalProperties": false
|
|
310
444
|
},
|
|
311
|
-
"
|
|
445
|
+
"bridging": {
|
|
312
446
|
"type": "object",
|
|
313
447
|
"properties": {
|
|
314
|
-
"
|
|
448
|
+
"destinationChainId": {
|
|
315
449
|
"type": "string",
|
|
316
|
-
"description": "
|
|
450
|
+
"description": "Id of a blockchain where funds will be received"
|
|
451
|
+
},
|
|
452
|
+
"destinationTokenAddress": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"description": "Address of a token that will be received at destination chain. The chain might be EVM or non-EVM. Some chains might even not have a token address. E.g.: Bitcoin"
|
|
317
455
|
}
|
|
318
456
|
},
|
|
319
457
|
"required": [
|
|
320
|
-
"
|
|
458
|
+
"destinationChainId",
|
|
459
|
+
"destinationTokenAddress"
|
|
321
460
|
],
|
|
322
461
|
"additionalProperties": false
|
|
323
462
|
}
|
|
@@ -353,6 +492,186 @@ export default {
|
|
|
353
492
|
},
|
|
354
493
|
"additionalProperties": false,
|
|
355
494
|
"description": "Additional parameters for posting orders. In most of the cases you don't need to use them."
|
|
495
|
+
},
|
|
496
|
+
"quoteSigner": {
|
|
497
|
+
"anyOf": [
|
|
498
|
+
{
|
|
499
|
+
"type": "object",
|
|
500
|
+
"properties": {
|
|
501
|
+
"provider": {
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"_isProvider": {
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"required": [
|
|
509
|
+
"_isProvider"
|
|
510
|
+
],
|
|
511
|
+
"additionalProperties": false
|
|
512
|
+
},
|
|
513
|
+
"_isSigner": {
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"required": [
|
|
518
|
+
"_isSigner"
|
|
519
|
+
],
|
|
520
|
+
"additionalProperties": false
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"isMetaMask": {
|
|
526
|
+
"type": "boolean"
|
|
527
|
+
},
|
|
528
|
+
"isStatus": {
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"host": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
"path": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
},
|
|
537
|
+
"sendAsync": {
|
|
538
|
+
"$comment": "(request: {\n method: string;\n params?: Array<any>;\n }, callback: (error: any, response: any) => void) => void",
|
|
539
|
+
"type": "object",
|
|
540
|
+
"properties": {
|
|
541
|
+
"namedArgs": {
|
|
542
|
+
"type": "object",
|
|
543
|
+
"properties": {
|
|
544
|
+
"request": {
|
|
545
|
+
"type": "object",
|
|
546
|
+
"properties": {
|
|
547
|
+
"method": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"params": {
|
|
551
|
+
"type": "array",
|
|
552
|
+
"items": {}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"required": [
|
|
556
|
+
"method"
|
|
557
|
+
],
|
|
558
|
+
"additionalProperties": false
|
|
559
|
+
},
|
|
560
|
+
"callback": {
|
|
561
|
+
"$comment": "(error: any, response: any) => void",
|
|
562
|
+
"type": "object",
|
|
563
|
+
"properties": {
|
|
564
|
+
"namedArgs": {
|
|
565
|
+
"type": "object",
|
|
566
|
+
"properties": {
|
|
567
|
+
"error": {},
|
|
568
|
+
"response": {}
|
|
569
|
+
},
|
|
570
|
+
"required": [
|
|
571
|
+
"error",
|
|
572
|
+
"response"
|
|
573
|
+
],
|
|
574
|
+
"additionalProperties": false
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"required": [
|
|
580
|
+
"request",
|
|
581
|
+
"callback"
|
|
582
|
+
],
|
|
583
|
+
"additionalProperties": false
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"send": {
|
|
588
|
+
"$comment": "(request: {\n method: string;\n params?: Array<any>;\n }, callback: (error: any, response: any) => void) => void",
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"namedArgs": {
|
|
592
|
+
"type": "object",
|
|
593
|
+
"properties": {
|
|
594
|
+
"request": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"method": {
|
|
598
|
+
"type": "string"
|
|
599
|
+
},
|
|
600
|
+
"params": {
|
|
601
|
+
"type": "array",
|
|
602
|
+
"items": {}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": [
|
|
606
|
+
"method"
|
|
607
|
+
],
|
|
608
|
+
"additionalProperties": false
|
|
609
|
+
},
|
|
610
|
+
"callback": {
|
|
611
|
+
"$comment": "(error: any, response: any) => void",
|
|
612
|
+
"type": "object",
|
|
613
|
+
"properties": {
|
|
614
|
+
"namedArgs": {
|
|
615
|
+
"type": "object",
|
|
616
|
+
"properties": {
|
|
617
|
+
"error": {},
|
|
618
|
+
"response": {}
|
|
619
|
+
},
|
|
620
|
+
"required": [
|
|
621
|
+
"error",
|
|
622
|
+
"response"
|
|
623
|
+
],
|
|
624
|
+
"additionalProperties": false
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"required": [
|
|
630
|
+
"request",
|
|
631
|
+
"callback"
|
|
632
|
+
],
|
|
633
|
+
"additionalProperties": false
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"request": {
|
|
638
|
+
"$comment": "(request: {\n method: string;\n params?: Array<any>;\n }) => Promise<any>",
|
|
639
|
+
"type": "object",
|
|
640
|
+
"properties": {
|
|
641
|
+
"namedArgs": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"request": {
|
|
645
|
+
"type": "object",
|
|
646
|
+
"properties": {
|
|
647
|
+
"method": {
|
|
648
|
+
"type": "string"
|
|
649
|
+
},
|
|
650
|
+
"params": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"items": {}
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"required": [
|
|
656
|
+
"method"
|
|
657
|
+
],
|
|
658
|
+
"additionalProperties": false
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": [
|
|
662
|
+
"request"
|
|
663
|
+
],
|
|
664
|
+
"additionalProperties": false
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"additionalProperties": false
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"type": "string"
|
|
673
|
+
}
|
|
674
|
+
]
|
|
356
675
|
}
|
|
357
676
|
},
|
|
358
677
|
"additionalProperties": false,
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
},
|
|
18
18
|
"slippageBps": {
|
|
19
19
|
"type": "number",
|
|
20
|
-
"description": "Slippage
|
|
20
|
+
"description": "Slippage in basis points. If not provided, it will use AUTO slippage, which would suggest a slippage based on the quote."
|
|
21
21
|
},
|
|
22
22
|
"receiver": {
|
|
23
23
|
"anyOf": [
|
|
@@ -36,22 +36,143 @@ export default {
|
|
|
36
36
|
"description": "Unix timestamp (`uint32`) until which the order is valid."
|
|
37
37
|
},
|
|
38
38
|
"partnerFee": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
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
|
+
}
|
|
44
110
|
},
|
|
45
|
-
|
|
46
|
-
"type": "
|
|
47
|
-
"
|
|
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
|
|
48
174
|
}
|
|
49
|
-
|
|
50
|
-
"required": [
|
|
51
|
-
"bps",
|
|
52
|
-
"recipient"
|
|
53
|
-
],
|
|
54
|
-
"additionalProperties": false
|
|
175
|
+
]
|
|
55
176
|
},
|
|
56
177
|
"kind": {
|
|
57
178
|
"type": "string",
|