@gmx-io/sdk 2.4.0 → 2.7.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 +25 -0
- package/build/cjs/scripts/generate-synthetics-abis.js +17 -2
- package/build/cjs/src/abis/ChainlinkPriceFeedProvider.js +27 -0
- package/build/cjs/src/abis/CustomErrors.js +98 -0
- package/build/cjs/src/abis/CustomErrorsV2_2_1.js +5565 -0
- package/build/cjs/src/abis/ExchangeRouterV2_2_1.js +1462 -0
- package/build/cjs/src/abis/GelatoRelayRouterV2_2_1.js +1945 -0
- package/build/cjs/src/abis/GlvReaderV2_2_1.js +1681 -0
- package/build/cjs/src/abis/MultichainClaimsRouterV2_2_1.js +1281 -0
- package/build/cjs/src/abis/MultichainGlvRouterV2_2_1.js +1176 -0
- package/build/cjs/src/abis/MultichainGmRouterV2_2_1.js +1480 -0
- package/build/cjs/src/abis/MultichainOrderRouterV2_2_1.js +2065 -0
- package/build/cjs/src/abis/MultichainSubaccountRouterV2_2_1.js +2160 -0
- package/build/cjs/src/abis/MultichainTransferRouterV2_2_1.js +1033 -0
- package/build/cjs/src/abis/Pausable.js +11 -0
- package/build/cjs/src/abis/RelayParamsV2_2_1.js +56 -0
- package/build/cjs/src/abis/RewardRouterV3.js +675 -0
- package/build/cjs/src/abis/SubaccountGelatoRelayRouterV2_2_1.js +2502 -0
- package/build/cjs/src/abis/SyntheticsReaderV2_2_1.js +5279 -0
- package/build/cjs/src/abis/__tests__/fixtures/arbitrumSepoliaReaders.json +8 -0
- package/build/cjs/src/abis/__tests__/getAbi.spec.js +84 -0
- package/build/cjs/src/abis/getAbi.js +42 -0
- package/build/cjs/src/abis/index.js +8 -1
- package/build/cjs/src/clients/v1/modules/orders/orders.js +5 -3
- package/build/cjs/src/clients/v1/modules/orders/transactions/createIncreaseOrderTxn.js +3 -1
- package/build/cjs/src/clients/v1/modules/orders/transactions/updateOrderTxn.js +21 -25
- package/build/cjs/src/clients/v1/modules/orders/utils.js +6 -7
- package/build/cjs/src/clients/v1/modules/trades/trades.js +4 -3
- package/build/cjs/src/clients/v1/multicall.js +2 -1
- package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +0 -2
- package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +0 -3
- package/build/cjs/src/clients/v2/__tests__/globalCleanup.js +0 -1
- package/build/cjs/src/clients/v2/__tests__/increase.spec.js +0 -2
- package/build/cjs/src/clients/v2/__tests__/subaccountLifecycle.spec.js +0 -1
- package/build/cjs/src/clients/v2/__tests__/testUtil.js +0 -1
- package/build/cjs/src/configs/__tests__/markets.spec.js +8 -1
- package/build/cjs/src/configs/chains.js +3 -0
- package/build/cjs/src/configs/contracts.js +27 -18
- package/build/cjs/src/configs/dataStore.js +13 -3
- package/build/cjs/src/configs/express.js +1 -0
- package/build/cjs/src/configs/tokens.js +3 -0
- package/build/cjs/src/utils/__tests__/address.spec.js +50 -0
- package/build/cjs/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +41 -4
- package/build/cjs/src/utils/__tests__/orderTransactions/updateOrder.spec.js +4 -0
- package/build/cjs/src/utils/__tests__/referrals.spec.js +36 -4
- package/build/cjs/src/utils/address/index.js +17 -0
- package/build/cjs/src/utils/address/utils.js +32 -0
- package/build/cjs/src/utils/errors/transactionsErrors.js +17 -0
- package/build/cjs/src/utils/express/utils/batchOrderUtils.js +14 -9
- package/build/cjs/src/utils/express/utils/bridgeOutUtils.js +52 -17
- package/build/cjs/src/utils/express/utils/referralUtils.js +38 -25
- package/build/cjs/src/utils/express/utils/relayParamsUtils.js +11 -3
- package/build/cjs/src/utils/multichain/__tests__/api.spec.js +11 -1
- package/build/cjs/src/utils/multichain/api.js +19 -9
- package/build/cjs/src/utils/orderTransactions/api.js +3 -4
- package/build/cjs/src/utils/orderTransactions/utils.js +8 -7
- package/build/cjs/src/utils/referrals/utils.js +24 -15
- package/build/cjs/src/utils/subaccount/getEmptySubaccountApproval.js +2 -0
- package/build/cjs/src/utils/subaccount/getSubaccountApprovalTypedData.js +37 -15
- package/build/cjs/src/utils/subaccount/hashSubaccountApproval.js +32 -18
- package/build/cjs/src/utils/subaccount/index.js +4 -1
- package/build/cjs/src/utils/subaccount/sdkClient.js +1 -1
- package/build/cjs/src/utils/subaccount/state.js +10 -1
- package/build/cjs/src/utils/tradeHistory/utils.js +6 -6
- package/build/esm/scripts/generate-synthetics-abis.js +17 -2
- package/build/esm/src/abis/ChainlinkPriceFeedProvider.js +25 -0
- package/build/esm/src/abis/CustomErrors.js +98 -0
- package/build/esm/src/abis/CustomErrorsV2_2_1.js +5563 -0
- package/build/esm/src/abis/ExchangeRouterV2_2_1.js +1460 -0
- package/build/esm/src/abis/GelatoRelayRouterV2_2_1.js +1943 -0
- package/build/esm/src/abis/GlvReaderV2_2_1.js +1679 -0
- package/build/esm/src/abis/MultichainClaimsRouterV2_2_1.js +1279 -0
- package/build/esm/src/abis/MultichainGlvRouterV2_2_1.js +1174 -0
- package/build/esm/src/abis/MultichainGmRouterV2_2_1.js +1478 -0
- package/build/esm/src/abis/MultichainOrderRouterV2_2_1.js +2063 -0
- package/build/esm/src/abis/MultichainSubaccountRouterV2_2_1.js +2158 -0
- package/build/esm/src/abis/MultichainTransferRouterV2_2_1.js +1031 -0
- package/build/esm/src/abis/Pausable.js +9 -0
- package/build/esm/src/abis/RelayParamsV2_2_1.js +54 -0
- package/build/esm/src/abis/RewardRouterV3.js +673 -0
- package/build/esm/src/abis/SubaccountGelatoRelayRouterV2_2_1.js +2500 -0
- package/build/esm/src/abis/SyntheticsReaderV2_2_1.js +5277 -0
- package/build/esm/src/abis/__tests__/fixtures/arbitrumSepoliaReaders.json +8 -0
- package/build/esm/src/abis/__tests__/getAbi.spec.js +79 -0
- package/build/esm/src/abis/getAbi.js +35 -0
- package/build/esm/src/abis/index.js +8 -1
- package/build/esm/src/clients/v1/modules/orders/orders.js +5 -3
- package/build/esm/src/clients/v1/modules/orders/transactions/createIncreaseOrderTxn.js +3 -1
- package/build/esm/src/clients/v1/modules/orders/transactions/updateOrderTxn.js +21 -25
- package/build/esm/src/clients/v1/modules/orders/utils.js +6 -7
- package/build/esm/src/clients/v1/modules/trades/trades.js +4 -3
- package/build/esm/src/clients/v1/multicall.js +2 -1
- package/build/esm/src/clients/v2/__tests__/decrease.spec.js +0 -2
- package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +0 -3
- package/build/esm/src/clients/v2/__tests__/globalCleanup.js +0 -1
- package/build/esm/src/clients/v2/__tests__/increase.spec.js +0 -2
- package/build/esm/src/clients/v2/__tests__/subaccountLifecycle.spec.js +0 -1
- package/build/esm/src/clients/v2/__tests__/testUtil.js +0 -1
- package/build/esm/src/configs/__tests__/markets.spec.js +9 -2
- package/build/esm/src/configs/chains.js +3 -0
- package/build/esm/src/configs/contracts.js +25 -17
- package/build/esm/src/configs/dataStore.js +8 -0
- package/build/esm/src/configs/express.js +1 -0
- package/build/esm/src/configs/tokens.js +3 -0
- package/build/esm/src/utils/__tests__/address.spec.js +48 -0
- package/build/esm/src/utils/__tests__/orderTransactions/exchangeRouterMulticall.spec.js +43 -6
- package/build/esm/src/utils/__tests__/orderTransactions/updateOrder.spec.js +5 -1
- package/build/esm/src/utils/__tests__/referrals.spec.js +37 -5
- package/build/esm/src/utils/address/index.js +1 -0
- package/build/esm/src/utils/address/utils.js +25 -0
- package/build/esm/src/utils/errors/transactionsErrors.js +17 -0
- package/build/esm/src/utils/express/utils/batchOrderUtils.js +14 -9
- package/build/esm/src/utils/express/utils/bridgeOutUtils.js +53 -18
- package/build/esm/src/utils/express/utils/referralUtils.js +37 -25
- package/build/esm/src/utils/express/utils/relayParamsUtils.js +10 -5
- package/build/esm/src/utils/multichain/__tests__/api.spec.js +11 -1
- package/build/esm/src/utils/multichain/api.js +17 -8
- package/build/esm/src/utils/orderTransactions/api.js +3 -4
- package/build/esm/src/utils/orderTransactions/utils.js +9 -8
- package/build/esm/src/utils/referrals/utils.js +23 -15
- package/build/esm/src/utils/subaccount/getEmptySubaccountApproval.js +2 -0
- package/build/esm/src/utils/subaccount/getSubaccountApprovalTypedData.js +36 -14
- package/build/esm/src/utils/subaccount/hashSubaccountApproval.js +32 -18
- package/build/esm/src/utils/subaccount/index.js +2 -2
- package/build/esm/src/utils/subaccount/sdkClient.js +2 -2
- package/build/esm/src/utils/subaccount/state.js +8 -0
- package/build/esm/src/utils/tradeHistory/utils.js +6 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types/scripts/generate-synthetics-abis.d.ts +6 -0
- package/build/types/src/abis/ChainlinkPriceFeedProvider.d.ts +41 -0
- package/build/types/src/abis/CustomErrors.d.ts +160 -0
- package/build/types/src/abis/CustomErrorsV2_2_1.d.ts +4174 -0
- package/build/types/src/abis/ExchangeRouterV2_2_1.d.ts +1128 -0
- package/build/types/src/abis/GelatoRelayRouterV2_2_1.d.ts +1508 -0
- package/build/types/src/abis/GlvReaderV2_2_1.d.ts +1293 -0
- package/build/types/src/abis/MultichainClaimsRouterV2_2_1.d.ts +985 -0
- package/build/types/src/abis/MultichainGlvRouterV2_2_1.d.ts +906 -0
- package/build/types/src/abis/MultichainGmRouterV2_2_1.d.ts +1142 -0
- package/build/types/src/abis/MultichainOrderRouterV2_2_1.d.ts +1601 -0
- package/build/types/src/abis/MultichainSubaccountRouterV2_2_1.d.ts +1678 -0
- package/build/types/src/abis/MultichainTransferRouterV2_2_1.d.ts +793 -0
- package/build/types/src/abis/Pausable.d.ts +12 -0
- package/build/types/src/abis/RelayParamsV2_2_1.d.ts +118 -0
- package/build/types/src/abis/RewardRouterV3.d.ts +1129 -0
- package/build/types/src/abis/SubaccountGelatoRelayRouterV2_2_1.d.ts +1946 -0
- package/build/types/src/abis/SyntheticsReaderV2_2_1.d.ts +4075 -0
- package/build/types/src/abis/__tests__/getAbi.spec.d.ts +1 -0
- package/build/types/src/abis/getAbi.d.ts +17051 -0
- package/build/types/src/abis/index.d.ts +6201 -4194
- package/build/types/src/clients/v1/modules/orders/transactions/createIncreaseOrderTxn.d.ts +2 -1
- package/build/types/src/clients/v1/modules/orders/transactions/updateOrderTxn.d.ts +8 -3
- package/build/types/src/configs/contracts.d.ts +6 -0
- package/build/types/src/configs/dataStore.d.ts +4 -0
- package/build/types/src/utils/__tests__/address.spec.d.ts +1 -0
- package/build/types/src/utils/address/index.d.ts +1 -0
- package/build/types/src/utils/address/utils.d.ts +11 -0
- package/build/types/src/utils/errors/transactionsErrors.d.ts +18 -1
- package/build/types/src/utils/express/types.d.ts +1 -0
- package/build/types/src/utils/express/utils/batchOrderUtils.d.ts +4 -3
- package/build/types/src/utils/express/utils/bridgeOutUtils.d.ts +8 -2
- package/build/types/src/utils/express/utils/referralUtils.d.ts +21 -0
- package/build/types/src/utils/multichain/api.d.ts +10 -1
- package/build/types/src/utils/orderTransactions/api.d.ts +2 -3
- package/build/types/src/utils/orderTransactions/utils.d.ts +5 -2
- package/build/types/src/utils/referrals/utils.d.ts +7 -1
- package/build/types/src/utils/subaccount/api.d.ts +1 -0
- package/build/types/src/utils/subaccount/getSubaccountApprovalTypedData.d.ts +4 -0
- package/build/types/src/utils/subaccount/hashSubaccountApproval.d.ts +2 -1
- package/build/types/src/utils/subaccount/index.d.ts +2 -2
- package/build/types/src/utils/subaccount/state.d.ts +2 -1
- package/build/types/src/utils/subaccount/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1946 @@
|
|
|
1
|
+
declare const _default: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "contract Router";
|
|
4
|
+
readonly name: "_router";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "contract RoleStore";
|
|
8
|
+
readonly name: "_roleStore";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "contract DataStore";
|
|
12
|
+
readonly name: "_dataStore";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "contract EventEmitter";
|
|
16
|
+
readonly name: "_eventEmitter";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "contract IOracle";
|
|
20
|
+
readonly name: "_oracle";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "contract IOrderHandler";
|
|
24
|
+
readonly name: "_orderHandler";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "contract OrderVault";
|
|
28
|
+
readonly name: "_orderVault";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "contract ISwapHandler";
|
|
32
|
+
readonly name: "_swapHandler";
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
}, {
|
|
35
|
+
readonly internalType: "contract IExternalHandler";
|
|
36
|
+
readonly name: "_externalHandler";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "nonpayable";
|
|
40
|
+
readonly type: "constructor";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
readonly name: "currentTimestamp";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "deadline";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "DeadlinePassed";
|
|
52
|
+
readonly type: "error";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
readonly name: "key";
|
|
57
|
+
readonly type: "bytes32";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "DisabledFeature";
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "EmptyHoldingAddress";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "EmptyOrder";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "EmptyReceiver";
|
|
72
|
+
readonly type: "error";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly name: "token";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "EmptyTokenTranferGasLimit";
|
|
80
|
+
readonly type: "error";
|
|
81
|
+
}, {
|
|
82
|
+
readonly inputs: readonly [{
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
readonly name: "requiredRelayFee";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "uint256";
|
|
88
|
+
readonly name: "availableFeeAmount";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
readonly name: "InsufficientRelayFee";
|
|
92
|
+
readonly type: "error";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [{
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
readonly name: "desChainId";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
readonly name: "InvalidDestinationChainId";
|
|
100
|
+
readonly type: "error";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [{
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
readonly name: "sendTokensLength";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
readonly name: "sendAmountsLength";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "InvalidExternalCalls";
|
|
112
|
+
readonly type: "error";
|
|
113
|
+
}, {
|
|
114
|
+
readonly inputs: readonly [{
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly name: "spender";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}, {
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
readonly name: "expectedSpender";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
}];
|
|
123
|
+
readonly name: "InvalidPermitSpender";
|
|
124
|
+
readonly type: "error";
|
|
125
|
+
}, {
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly name: "srcChainId";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
readonly name: "InvalidSrcChainId";
|
|
132
|
+
readonly type: "error";
|
|
133
|
+
}, {
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly internalType: "bytes32";
|
|
136
|
+
readonly name: "digest";
|
|
137
|
+
readonly type: "bytes32";
|
|
138
|
+
}];
|
|
139
|
+
readonly name: "InvalidUserDigest";
|
|
140
|
+
readonly type: "error";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "feeUsd";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly name: "maxFeeUsd";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "MaxRelayFeeSwapExceeded";
|
|
152
|
+
readonly type: "error";
|
|
153
|
+
}, {
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly name: "feeUsd";
|
|
157
|
+
readonly type: "uint256";
|
|
158
|
+
}, {
|
|
159
|
+
readonly internalType: "uint256";
|
|
160
|
+
readonly name: "maxFeeUsd";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
}];
|
|
163
|
+
readonly name: "MaxRelayFeeSwapForSubaccountExceeded";
|
|
164
|
+
readonly type: "error";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [];
|
|
167
|
+
readonly name: "NonEmptyExternalCallsForSubaccountOrder";
|
|
168
|
+
readonly type: "error";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [];
|
|
171
|
+
readonly name: "RelayEmptyBatch";
|
|
172
|
+
readonly type: "error";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "TokenPermitsNotAllowedForMultichain";
|
|
176
|
+
readonly type: "error";
|
|
177
|
+
}, {
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "token";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
readonly name: "receiver";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}, {
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly name: "amount";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}];
|
|
191
|
+
readonly name: "TokenTransferError";
|
|
192
|
+
readonly type: "error";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [{
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly name: "msgSender";
|
|
197
|
+
readonly type: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly internalType: "string";
|
|
200
|
+
readonly name: "role";
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
}];
|
|
203
|
+
readonly name: "Unauthorized";
|
|
204
|
+
readonly type: "error";
|
|
205
|
+
}, {
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly internalType: "address";
|
|
208
|
+
readonly name: "feeToken";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
readonly name: "expectedFeeToken";
|
|
213
|
+
readonly type: "address";
|
|
214
|
+
}];
|
|
215
|
+
readonly name: "UnexpectedRelayFeeToken";
|
|
216
|
+
readonly type: "error";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
readonly name: "feeToken";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
}, {
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
readonly name: "expectedFeeToken";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "UnsupportedRelayFeeToken";
|
|
228
|
+
readonly type: "error";
|
|
229
|
+
}, {
|
|
230
|
+
readonly anonymous: false;
|
|
231
|
+
readonly inputs: readonly [{
|
|
232
|
+
readonly indexed: false;
|
|
233
|
+
readonly internalType: "string";
|
|
234
|
+
readonly name: "reason";
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
}, {
|
|
237
|
+
readonly indexed: false;
|
|
238
|
+
readonly internalType: "bytes";
|
|
239
|
+
readonly name: "returndata";
|
|
240
|
+
readonly type: "bytes";
|
|
241
|
+
}];
|
|
242
|
+
readonly name: "TokenTransferReverted";
|
|
243
|
+
readonly type: "event";
|
|
244
|
+
}, {
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly components: readonly [{
|
|
247
|
+
readonly components: readonly [{
|
|
248
|
+
readonly internalType: "address[]";
|
|
249
|
+
readonly name: "tokens";
|
|
250
|
+
readonly type: "address[]";
|
|
251
|
+
}, {
|
|
252
|
+
readonly internalType: "address[]";
|
|
253
|
+
readonly name: "providers";
|
|
254
|
+
readonly type: "address[]";
|
|
255
|
+
}, {
|
|
256
|
+
readonly internalType: "bytes[]";
|
|
257
|
+
readonly name: "data";
|
|
258
|
+
readonly type: "bytes[]";
|
|
259
|
+
}];
|
|
260
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
261
|
+
readonly name: "oracleParams";
|
|
262
|
+
readonly type: "tuple";
|
|
263
|
+
}, {
|
|
264
|
+
readonly components: readonly [{
|
|
265
|
+
readonly internalType: "address[]";
|
|
266
|
+
readonly name: "sendTokens";
|
|
267
|
+
readonly type: "address[]";
|
|
268
|
+
}, {
|
|
269
|
+
readonly internalType: "uint256[]";
|
|
270
|
+
readonly name: "sendAmounts";
|
|
271
|
+
readonly type: "uint256[]";
|
|
272
|
+
}, {
|
|
273
|
+
readonly internalType: "address[]";
|
|
274
|
+
readonly name: "externalCallTargets";
|
|
275
|
+
readonly type: "address[]";
|
|
276
|
+
}, {
|
|
277
|
+
readonly internalType: "bytes[]";
|
|
278
|
+
readonly name: "externalCallDataList";
|
|
279
|
+
readonly type: "bytes[]";
|
|
280
|
+
}, {
|
|
281
|
+
readonly internalType: "address[]";
|
|
282
|
+
readonly name: "refundTokens";
|
|
283
|
+
readonly type: "address[]";
|
|
284
|
+
}, {
|
|
285
|
+
readonly internalType: "address[]";
|
|
286
|
+
readonly name: "refundReceivers";
|
|
287
|
+
readonly type: "address[]";
|
|
288
|
+
}];
|
|
289
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
290
|
+
readonly name: "externalCalls";
|
|
291
|
+
readonly type: "tuple";
|
|
292
|
+
}, {
|
|
293
|
+
readonly components: readonly [{
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
readonly name: "owner";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly name: "spender";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
}, {
|
|
302
|
+
readonly internalType: "uint256";
|
|
303
|
+
readonly name: "value";
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
}, {
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
readonly name: "deadline";
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
}, {
|
|
310
|
+
readonly internalType: "uint8";
|
|
311
|
+
readonly name: "v";
|
|
312
|
+
readonly type: "uint8";
|
|
313
|
+
}, {
|
|
314
|
+
readonly internalType: "bytes32";
|
|
315
|
+
readonly name: "r";
|
|
316
|
+
readonly type: "bytes32";
|
|
317
|
+
}, {
|
|
318
|
+
readonly internalType: "bytes32";
|
|
319
|
+
readonly name: "s";
|
|
320
|
+
readonly type: "bytes32";
|
|
321
|
+
}, {
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
readonly name: "token";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
}];
|
|
326
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
327
|
+
readonly name: "tokenPermits";
|
|
328
|
+
readonly type: "tuple[]";
|
|
329
|
+
}, {
|
|
330
|
+
readonly components: readonly [{
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly name: "feeToken";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly internalType: "uint256";
|
|
336
|
+
readonly name: "feeAmount";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly internalType: "address[]";
|
|
340
|
+
readonly name: "feeSwapPath";
|
|
341
|
+
readonly type: "address[]";
|
|
342
|
+
}];
|
|
343
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
344
|
+
readonly name: "fee";
|
|
345
|
+
readonly type: "tuple";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
readonly name: "userNonce";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}, {
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
readonly name: "deadline";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}, {
|
|
355
|
+
readonly internalType: "bytes";
|
|
356
|
+
readonly name: "signature";
|
|
357
|
+
readonly type: "bytes";
|
|
358
|
+
}, {
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
readonly name: "desChainId";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
}, {
|
|
363
|
+
readonly internalType: "bytes32";
|
|
364
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
365
|
+
readonly type: "bytes32";
|
|
366
|
+
}];
|
|
367
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
368
|
+
readonly name: "relayParams";
|
|
369
|
+
readonly type: "tuple";
|
|
370
|
+
}, {
|
|
371
|
+
readonly components: readonly [{
|
|
372
|
+
readonly internalType: "address";
|
|
373
|
+
readonly name: "subaccount";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
}, {
|
|
376
|
+
readonly internalType: "bool";
|
|
377
|
+
readonly name: "shouldAdd";
|
|
378
|
+
readonly type: "bool";
|
|
379
|
+
}, {
|
|
380
|
+
readonly internalType: "uint256";
|
|
381
|
+
readonly name: "expiresAt";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}, {
|
|
384
|
+
readonly internalType: "uint256";
|
|
385
|
+
readonly name: "maxAllowedCount";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}, {
|
|
388
|
+
readonly internalType: "bytes32";
|
|
389
|
+
readonly name: "actionType";
|
|
390
|
+
readonly type: "bytes32";
|
|
391
|
+
}, {
|
|
392
|
+
readonly internalType: "uint256";
|
|
393
|
+
readonly name: "nonce";
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
}, {
|
|
396
|
+
readonly internalType: "uint256";
|
|
397
|
+
readonly name: "desChainId";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}, {
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
readonly name: "deadline";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
}, {
|
|
404
|
+
readonly internalType: "bytes32";
|
|
405
|
+
readonly name: "integrationId";
|
|
406
|
+
readonly type: "bytes32";
|
|
407
|
+
}, {
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly name: "revocationCounter";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
}, {
|
|
412
|
+
readonly internalType: "bytes32";
|
|
413
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
414
|
+
readonly type: "bytes32";
|
|
415
|
+
}, {
|
|
416
|
+
readonly internalType: "bytes";
|
|
417
|
+
readonly name: "signature";
|
|
418
|
+
readonly type: "bytes";
|
|
419
|
+
}];
|
|
420
|
+
readonly internalType: "struct SubaccountApproval";
|
|
421
|
+
readonly name: "subaccountApproval";
|
|
422
|
+
readonly type: "tuple";
|
|
423
|
+
}, {
|
|
424
|
+
readonly internalType: "address";
|
|
425
|
+
readonly name: "account";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
}, {
|
|
428
|
+
readonly internalType: "address";
|
|
429
|
+
readonly name: "subaccount";
|
|
430
|
+
readonly type: "address";
|
|
431
|
+
}, {
|
|
432
|
+
readonly components: readonly [{
|
|
433
|
+
readonly components: readonly [{
|
|
434
|
+
readonly components: readonly [{
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly name: "receiver";
|
|
437
|
+
readonly type: "address";
|
|
438
|
+
}, {
|
|
439
|
+
readonly internalType: "address";
|
|
440
|
+
readonly name: "cancellationReceiver";
|
|
441
|
+
readonly type: "address";
|
|
442
|
+
}, {
|
|
443
|
+
readonly internalType: "address";
|
|
444
|
+
readonly name: "callbackContract";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
}, {
|
|
447
|
+
readonly internalType: "address";
|
|
448
|
+
readonly name: "uiFeeReceiver";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
}, {
|
|
451
|
+
readonly internalType: "address";
|
|
452
|
+
readonly name: "market";
|
|
453
|
+
readonly type: "address";
|
|
454
|
+
}, {
|
|
455
|
+
readonly internalType: "address";
|
|
456
|
+
readonly name: "initialCollateralToken";
|
|
457
|
+
readonly type: "address";
|
|
458
|
+
}, {
|
|
459
|
+
readonly internalType: "address[]";
|
|
460
|
+
readonly name: "swapPath";
|
|
461
|
+
readonly type: "address[]";
|
|
462
|
+
}];
|
|
463
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsAddresses";
|
|
464
|
+
readonly name: "addresses";
|
|
465
|
+
readonly type: "tuple";
|
|
466
|
+
}, {
|
|
467
|
+
readonly components: readonly [{
|
|
468
|
+
readonly internalType: "uint256";
|
|
469
|
+
readonly name: "sizeDeltaUsd";
|
|
470
|
+
readonly type: "uint256";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly name: "initialCollateralDeltaAmount";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}, {
|
|
476
|
+
readonly internalType: "uint256";
|
|
477
|
+
readonly name: "triggerPrice";
|
|
478
|
+
readonly type: "uint256";
|
|
479
|
+
}, {
|
|
480
|
+
readonly internalType: "uint256";
|
|
481
|
+
readonly name: "acceptablePrice";
|
|
482
|
+
readonly type: "uint256";
|
|
483
|
+
}, {
|
|
484
|
+
readonly internalType: "uint256";
|
|
485
|
+
readonly name: "executionFee";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
}, {
|
|
488
|
+
readonly internalType: "uint256";
|
|
489
|
+
readonly name: "callbackGasLimit";
|
|
490
|
+
readonly type: "uint256";
|
|
491
|
+
}, {
|
|
492
|
+
readonly internalType: "uint256";
|
|
493
|
+
readonly name: "minOutputAmount";
|
|
494
|
+
readonly type: "uint256";
|
|
495
|
+
}, {
|
|
496
|
+
readonly internalType: "uint256";
|
|
497
|
+
readonly name: "validFromTime";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
}];
|
|
500
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsNumbers";
|
|
501
|
+
readonly name: "numbers";
|
|
502
|
+
readonly type: "tuple";
|
|
503
|
+
}, {
|
|
504
|
+
readonly internalType: "enum Order.OrderType";
|
|
505
|
+
readonly name: "orderType";
|
|
506
|
+
readonly type: "uint8";
|
|
507
|
+
}, {
|
|
508
|
+
readonly internalType: "enum Order.DecreasePositionSwapType";
|
|
509
|
+
readonly name: "decreasePositionSwapType";
|
|
510
|
+
readonly type: "uint8";
|
|
511
|
+
}, {
|
|
512
|
+
readonly internalType: "bool";
|
|
513
|
+
readonly name: "isLong";
|
|
514
|
+
readonly type: "bool";
|
|
515
|
+
}, {
|
|
516
|
+
readonly internalType: "bool";
|
|
517
|
+
readonly name: "shouldUnwrapNativeToken";
|
|
518
|
+
readonly type: "bool";
|
|
519
|
+
}, {
|
|
520
|
+
readonly internalType: "bool";
|
|
521
|
+
readonly name: "autoCancel";
|
|
522
|
+
readonly type: "bool";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "bytes32";
|
|
525
|
+
readonly name: "referralCode";
|
|
526
|
+
readonly type: "bytes32";
|
|
527
|
+
}, {
|
|
528
|
+
readonly internalType: "bytes32[]";
|
|
529
|
+
readonly name: "dataList";
|
|
530
|
+
readonly type: "bytes32[]";
|
|
531
|
+
}];
|
|
532
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParams[]";
|
|
533
|
+
readonly name: "createOrderParamsList";
|
|
534
|
+
readonly type: "tuple[]";
|
|
535
|
+
}, {
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly internalType: "bytes32";
|
|
538
|
+
readonly name: "key";
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
}, {
|
|
541
|
+
readonly internalType: "uint256";
|
|
542
|
+
readonly name: "sizeDeltaUsd";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
}, {
|
|
545
|
+
readonly internalType: "uint256";
|
|
546
|
+
readonly name: "acceptablePrice";
|
|
547
|
+
readonly type: "uint256";
|
|
548
|
+
}, {
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
readonly name: "triggerPrice";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}, {
|
|
553
|
+
readonly internalType: "uint256";
|
|
554
|
+
readonly name: "minOutputAmount";
|
|
555
|
+
readonly type: "uint256";
|
|
556
|
+
}, {
|
|
557
|
+
readonly internalType: "uint256";
|
|
558
|
+
readonly name: "validFromTime";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
}, {
|
|
561
|
+
readonly internalType: "enum Order.DecreasePositionSwapType";
|
|
562
|
+
readonly name: "decreasePositionSwapType";
|
|
563
|
+
readonly type: "uint8";
|
|
564
|
+
}, {
|
|
565
|
+
readonly internalType: "bool";
|
|
566
|
+
readonly name: "autoCancel";
|
|
567
|
+
readonly type: "bool";
|
|
568
|
+
}, {
|
|
569
|
+
readonly internalType: "uint256";
|
|
570
|
+
readonly name: "executionFeeIncrease";
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
}];
|
|
573
|
+
readonly internalType: "struct IRelayUtils.UpdateOrderParams[]";
|
|
574
|
+
readonly name: "updateOrderParamsList";
|
|
575
|
+
readonly type: "tuple[]";
|
|
576
|
+
}, {
|
|
577
|
+
readonly internalType: "bytes32[]";
|
|
578
|
+
readonly name: "cancelOrderKeys";
|
|
579
|
+
readonly type: "bytes32[]";
|
|
580
|
+
}];
|
|
581
|
+
readonly internalType: "struct IRelayUtils.BatchParams";
|
|
582
|
+
readonly name: "params";
|
|
583
|
+
readonly type: "tuple";
|
|
584
|
+
}];
|
|
585
|
+
readonly name: "batch";
|
|
586
|
+
readonly outputs: readonly [{
|
|
587
|
+
readonly internalType: "bytes32[]";
|
|
588
|
+
readonly name: "";
|
|
589
|
+
readonly type: "bytes32[]";
|
|
590
|
+
}];
|
|
591
|
+
readonly stateMutability: "nonpayable";
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
}, {
|
|
594
|
+
readonly inputs: readonly [{
|
|
595
|
+
readonly components: readonly [{
|
|
596
|
+
readonly components: readonly [{
|
|
597
|
+
readonly internalType: "address[]";
|
|
598
|
+
readonly name: "tokens";
|
|
599
|
+
readonly type: "address[]";
|
|
600
|
+
}, {
|
|
601
|
+
readonly internalType: "address[]";
|
|
602
|
+
readonly name: "providers";
|
|
603
|
+
readonly type: "address[]";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "bytes[]";
|
|
606
|
+
readonly name: "data";
|
|
607
|
+
readonly type: "bytes[]";
|
|
608
|
+
}];
|
|
609
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
610
|
+
readonly name: "oracleParams";
|
|
611
|
+
readonly type: "tuple";
|
|
612
|
+
}, {
|
|
613
|
+
readonly components: readonly [{
|
|
614
|
+
readonly internalType: "address[]";
|
|
615
|
+
readonly name: "sendTokens";
|
|
616
|
+
readonly type: "address[]";
|
|
617
|
+
}, {
|
|
618
|
+
readonly internalType: "uint256[]";
|
|
619
|
+
readonly name: "sendAmounts";
|
|
620
|
+
readonly type: "uint256[]";
|
|
621
|
+
}, {
|
|
622
|
+
readonly internalType: "address[]";
|
|
623
|
+
readonly name: "externalCallTargets";
|
|
624
|
+
readonly type: "address[]";
|
|
625
|
+
}, {
|
|
626
|
+
readonly internalType: "bytes[]";
|
|
627
|
+
readonly name: "externalCallDataList";
|
|
628
|
+
readonly type: "bytes[]";
|
|
629
|
+
}, {
|
|
630
|
+
readonly internalType: "address[]";
|
|
631
|
+
readonly name: "refundTokens";
|
|
632
|
+
readonly type: "address[]";
|
|
633
|
+
}, {
|
|
634
|
+
readonly internalType: "address[]";
|
|
635
|
+
readonly name: "refundReceivers";
|
|
636
|
+
readonly type: "address[]";
|
|
637
|
+
}];
|
|
638
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
639
|
+
readonly name: "externalCalls";
|
|
640
|
+
readonly type: "tuple";
|
|
641
|
+
}, {
|
|
642
|
+
readonly components: readonly [{
|
|
643
|
+
readonly internalType: "address";
|
|
644
|
+
readonly name: "owner";
|
|
645
|
+
readonly type: "address";
|
|
646
|
+
}, {
|
|
647
|
+
readonly internalType: "address";
|
|
648
|
+
readonly name: "spender";
|
|
649
|
+
readonly type: "address";
|
|
650
|
+
}, {
|
|
651
|
+
readonly internalType: "uint256";
|
|
652
|
+
readonly name: "value";
|
|
653
|
+
readonly type: "uint256";
|
|
654
|
+
}, {
|
|
655
|
+
readonly internalType: "uint256";
|
|
656
|
+
readonly name: "deadline";
|
|
657
|
+
readonly type: "uint256";
|
|
658
|
+
}, {
|
|
659
|
+
readonly internalType: "uint8";
|
|
660
|
+
readonly name: "v";
|
|
661
|
+
readonly type: "uint8";
|
|
662
|
+
}, {
|
|
663
|
+
readonly internalType: "bytes32";
|
|
664
|
+
readonly name: "r";
|
|
665
|
+
readonly type: "bytes32";
|
|
666
|
+
}, {
|
|
667
|
+
readonly internalType: "bytes32";
|
|
668
|
+
readonly name: "s";
|
|
669
|
+
readonly type: "bytes32";
|
|
670
|
+
}, {
|
|
671
|
+
readonly internalType: "address";
|
|
672
|
+
readonly name: "token";
|
|
673
|
+
readonly type: "address";
|
|
674
|
+
}];
|
|
675
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
676
|
+
readonly name: "tokenPermits";
|
|
677
|
+
readonly type: "tuple[]";
|
|
678
|
+
}, {
|
|
679
|
+
readonly components: readonly [{
|
|
680
|
+
readonly internalType: "address";
|
|
681
|
+
readonly name: "feeToken";
|
|
682
|
+
readonly type: "address";
|
|
683
|
+
}, {
|
|
684
|
+
readonly internalType: "uint256";
|
|
685
|
+
readonly name: "feeAmount";
|
|
686
|
+
readonly type: "uint256";
|
|
687
|
+
}, {
|
|
688
|
+
readonly internalType: "address[]";
|
|
689
|
+
readonly name: "feeSwapPath";
|
|
690
|
+
readonly type: "address[]";
|
|
691
|
+
}];
|
|
692
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
693
|
+
readonly name: "fee";
|
|
694
|
+
readonly type: "tuple";
|
|
695
|
+
}, {
|
|
696
|
+
readonly internalType: "uint256";
|
|
697
|
+
readonly name: "userNonce";
|
|
698
|
+
readonly type: "uint256";
|
|
699
|
+
}, {
|
|
700
|
+
readonly internalType: "uint256";
|
|
701
|
+
readonly name: "deadline";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
}, {
|
|
704
|
+
readonly internalType: "bytes";
|
|
705
|
+
readonly name: "signature";
|
|
706
|
+
readonly type: "bytes";
|
|
707
|
+
}, {
|
|
708
|
+
readonly internalType: "uint256";
|
|
709
|
+
readonly name: "desChainId";
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
}, {
|
|
712
|
+
readonly internalType: "bytes32";
|
|
713
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
714
|
+
readonly type: "bytes32";
|
|
715
|
+
}];
|
|
716
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
717
|
+
readonly name: "relayParams";
|
|
718
|
+
readonly type: "tuple";
|
|
719
|
+
}, {
|
|
720
|
+
readonly components: readonly [{
|
|
721
|
+
readonly internalType: "address";
|
|
722
|
+
readonly name: "subaccount";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "bool";
|
|
726
|
+
readonly name: "shouldAdd";
|
|
727
|
+
readonly type: "bool";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "uint256";
|
|
730
|
+
readonly name: "expiresAt";
|
|
731
|
+
readonly type: "uint256";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
readonly name: "maxAllowedCount";
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
}, {
|
|
737
|
+
readonly internalType: "bytes32";
|
|
738
|
+
readonly name: "actionType";
|
|
739
|
+
readonly type: "bytes32";
|
|
740
|
+
}, {
|
|
741
|
+
readonly internalType: "uint256";
|
|
742
|
+
readonly name: "nonce";
|
|
743
|
+
readonly type: "uint256";
|
|
744
|
+
}, {
|
|
745
|
+
readonly internalType: "uint256";
|
|
746
|
+
readonly name: "desChainId";
|
|
747
|
+
readonly type: "uint256";
|
|
748
|
+
}, {
|
|
749
|
+
readonly internalType: "uint256";
|
|
750
|
+
readonly name: "deadline";
|
|
751
|
+
readonly type: "uint256";
|
|
752
|
+
}, {
|
|
753
|
+
readonly internalType: "bytes32";
|
|
754
|
+
readonly name: "integrationId";
|
|
755
|
+
readonly type: "bytes32";
|
|
756
|
+
}, {
|
|
757
|
+
readonly internalType: "uint256";
|
|
758
|
+
readonly name: "revocationCounter";
|
|
759
|
+
readonly type: "uint256";
|
|
760
|
+
}, {
|
|
761
|
+
readonly internalType: "bytes32";
|
|
762
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
763
|
+
readonly type: "bytes32";
|
|
764
|
+
}, {
|
|
765
|
+
readonly internalType: "bytes";
|
|
766
|
+
readonly name: "signature";
|
|
767
|
+
readonly type: "bytes";
|
|
768
|
+
}];
|
|
769
|
+
readonly internalType: "struct SubaccountApproval";
|
|
770
|
+
readonly name: "subaccountApproval";
|
|
771
|
+
readonly type: "tuple";
|
|
772
|
+
}, {
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
readonly name: "account";
|
|
775
|
+
readonly type: "address";
|
|
776
|
+
}, {
|
|
777
|
+
readonly internalType: "address";
|
|
778
|
+
readonly name: "subaccount";
|
|
779
|
+
readonly type: "address";
|
|
780
|
+
}, {
|
|
781
|
+
readonly internalType: "bytes32";
|
|
782
|
+
readonly name: "key";
|
|
783
|
+
readonly type: "bytes32";
|
|
784
|
+
}];
|
|
785
|
+
readonly name: "cancelOrder";
|
|
786
|
+
readonly outputs: readonly [];
|
|
787
|
+
readonly stateMutability: "nonpayable";
|
|
788
|
+
readonly type: "function";
|
|
789
|
+
}, {
|
|
790
|
+
readonly inputs: readonly [{
|
|
791
|
+
readonly components: readonly [{
|
|
792
|
+
readonly components: readonly [{
|
|
793
|
+
readonly internalType: "address[]";
|
|
794
|
+
readonly name: "tokens";
|
|
795
|
+
readonly type: "address[]";
|
|
796
|
+
}, {
|
|
797
|
+
readonly internalType: "address[]";
|
|
798
|
+
readonly name: "providers";
|
|
799
|
+
readonly type: "address[]";
|
|
800
|
+
}, {
|
|
801
|
+
readonly internalType: "bytes[]";
|
|
802
|
+
readonly name: "data";
|
|
803
|
+
readonly type: "bytes[]";
|
|
804
|
+
}];
|
|
805
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
806
|
+
readonly name: "oracleParams";
|
|
807
|
+
readonly type: "tuple";
|
|
808
|
+
}, {
|
|
809
|
+
readonly components: readonly [{
|
|
810
|
+
readonly internalType: "address[]";
|
|
811
|
+
readonly name: "sendTokens";
|
|
812
|
+
readonly type: "address[]";
|
|
813
|
+
}, {
|
|
814
|
+
readonly internalType: "uint256[]";
|
|
815
|
+
readonly name: "sendAmounts";
|
|
816
|
+
readonly type: "uint256[]";
|
|
817
|
+
}, {
|
|
818
|
+
readonly internalType: "address[]";
|
|
819
|
+
readonly name: "externalCallTargets";
|
|
820
|
+
readonly type: "address[]";
|
|
821
|
+
}, {
|
|
822
|
+
readonly internalType: "bytes[]";
|
|
823
|
+
readonly name: "externalCallDataList";
|
|
824
|
+
readonly type: "bytes[]";
|
|
825
|
+
}, {
|
|
826
|
+
readonly internalType: "address[]";
|
|
827
|
+
readonly name: "refundTokens";
|
|
828
|
+
readonly type: "address[]";
|
|
829
|
+
}, {
|
|
830
|
+
readonly internalType: "address[]";
|
|
831
|
+
readonly name: "refundReceivers";
|
|
832
|
+
readonly type: "address[]";
|
|
833
|
+
}];
|
|
834
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
835
|
+
readonly name: "externalCalls";
|
|
836
|
+
readonly type: "tuple";
|
|
837
|
+
}, {
|
|
838
|
+
readonly components: readonly [{
|
|
839
|
+
readonly internalType: "address";
|
|
840
|
+
readonly name: "owner";
|
|
841
|
+
readonly type: "address";
|
|
842
|
+
}, {
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
readonly name: "spender";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}, {
|
|
847
|
+
readonly internalType: "uint256";
|
|
848
|
+
readonly name: "value";
|
|
849
|
+
readonly type: "uint256";
|
|
850
|
+
}, {
|
|
851
|
+
readonly internalType: "uint256";
|
|
852
|
+
readonly name: "deadline";
|
|
853
|
+
readonly type: "uint256";
|
|
854
|
+
}, {
|
|
855
|
+
readonly internalType: "uint8";
|
|
856
|
+
readonly name: "v";
|
|
857
|
+
readonly type: "uint8";
|
|
858
|
+
}, {
|
|
859
|
+
readonly internalType: "bytes32";
|
|
860
|
+
readonly name: "r";
|
|
861
|
+
readonly type: "bytes32";
|
|
862
|
+
}, {
|
|
863
|
+
readonly internalType: "bytes32";
|
|
864
|
+
readonly name: "s";
|
|
865
|
+
readonly type: "bytes32";
|
|
866
|
+
}, {
|
|
867
|
+
readonly internalType: "address";
|
|
868
|
+
readonly name: "token";
|
|
869
|
+
readonly type: "address";
|
|
870
|
+
}];
|
|
871
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
872
|
+
readonly name: "tokenPermits";
|
|
873
|
+
readonly type: "tuple[]";
|
|
874
|
+
}, {
|
|
875
|
+
readonly components: readonly [{
|
|
876
|
+
readonly internalType: "address";
|
|
877
|
+
readonly name: "feeToken";
|
|
878
|
+
readonly type: "address";
|
|
879
|
+
}, {
|
|
880
|
+
readonly internalType: "uint256";
|
|
881
|
+
readonly name: "feeAmount";
|
|
882
|
+
readonly type: "uint256";
|
|
883
|
+
}, {
|
|
884
|
+
readonly internalType: "address[]";
|
|
885
|
+
readonly name: "feeSwapPath";
|
|
886
|
+
readonly type: "address[]";
|
|
887
|
+
}];
|
|
888
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
889
|
+
readonly name: "fee";
|
|
890
|
+
readonly type: "tuple";
|
|
891
|
+
}, {
|
|
892
|
+
readonly internalType: "uint256";
|
|
893
|
+
readonly name: "userNonce";
|
|
894
|
+
readonly type: "uint256";
|
|
895
|
+
}, {
|
|
896
|
+
readonly internalType: "uint256";
|
|
897
|
+
readonly name: "deadline";
|
|
898
|
+
readonly type: "uint256";
|
|
899
|
+
}, {
|
|
900
|
+
readonly internalType: "bytes";
|
|
901
|
+
readonly name: "signature";
|
|
902
|
+
readonly type: "bytes";
|
|
903
|
+
}, {
|
|
904
|
+
readonly internalType: "uint256";
|
|
905
|
+
readonly name: "desChainId";
|
|
906
|
+
readonly type: "uint256";
|
|
907
|
+
}, {
|
|
908
|
+
readonly internalType: "bytes32";
|
|
909
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
910
|
+
readonly type: "bytes32";
|
|
911
|
+
}];
|
|
912
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
913
|
+
readonly name: "relayParams";
|
|
914
|
+
readonly type: "tuple";
|
|
915
|
+
}, {
|
|
916
|
+
readonly components: readonly [{
|
|
917
|
+
readonly internalType: "address";
|
|
918
|
+
readonly name: "subaccount";
|
|
919
|
+
readonly type: "address";
|
|
920
|
+
}, {
|
|
921
|
+
readonly internalType: "bool";
|
|
922
|
+
readonly name: "shouldAdd";
|
|
923
|
+
readonly type: "bool";
|
|
924
|
+
}, {
|
|
925
|
+
readonly internalType: "uint256";
|
|
926
|
+
readonly name: "expiresAt";
|
|
927
|
+
readonly type: "uint256";
|
|
928
|
+
}, {
|
|
929
|
+
readonly internalType: "uint256";
|
|
930
|
+
readonly name: "maxAllowedCount";
|
|
931
|
+
readonly type: "uint256";
|
|
932
|
+
}, {
|
|
933
|
+
readonly internalType: "bytes32";
|
|
934
|
+
readonly name: "actionType";
|
|
935
|
+
readonly type: "bytes32";
|
|
936
|
+
}, {
|
|
937
|
+
readonly internalType: "uint256";
|
|
938
|
+
readonly name: "nonce";
|
|
939
|
+
readonly type: "uint256";
|
|
940
|
+
}, {
|
|
941
|
+
readonly internalType: "uint256";
|
|
942
|
+
readonly name: "desChainId";
|
|
943
|
+
readonly type: "uint256";
|
|
944
|
+
}, {
|
|
945
|
+
readonly internalType: "uint256";
|
|
946
|
+
readonly name: "deadline";
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
}, {
|
|
949
|
+
readonly internalType: "bytes32";
|
|
950
|
+
readonly name: "integrationId";
|
|
951
|
+
readonly type: "bytes32";
|
|
952
|
+
}, {
|
|
953
|
+
readonly internalType: "uint256";
|
|
954
|
+
readonly name: "revocationCounter";
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
}, {
|
|
957
|
+
readonly internalType: "bytes32";
|
|
958
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
959
|
+
readonly type: "bytes32";
|
|
960
|
+
}, {
|
|
961
|
+
readonly internalType: "bytes";
|
|
962
|
+
readonly name: "signature";
|
|
963
|
+
readonly type: "bytes";
|
|
964
|
+
}];
|
|
965
|
+
readonly internalType: "struct SubaccountApproval";
|
|
966
|
+
readonly name: "subaccountApproval";
|
|
967
|
+
readonly type: "tuple";
|
|
968
|
+
}, {
|
|
969
|
+
readonly internalType: "address";
|
|
970
|
+
readonly name: "account";
|
|
971
|
+
readonly type: "address";
|
|
972
|
+
}, {
|
|
973
|
+
readonly internalType: "address";
|
|
974
|
+
readonly name: "subaccount";
|
|
975
|
+
readonly type: "address";
|
|
976
|
+
}, {
|
|
977
|
+
readonly components: readonly [{
|
|
978
|
+
readonly components: readonly [{
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
readonly name: "receiver";
|
|
981
|
+
readonly type: "address";
|
|
982
|
+
}, {
|
|
983
|
+
readonly internalType: "address";
|
|
984
|
+
readonly name: "cancellationReceiver";
|
|
985
|
+
readonly type: "address";
|
|
986
|
+
}, {
|
|
987
|
+
readonly internalType: "address";
|
|
988
|
+
readonly name: "callbackContract";
|
|
989
|
+
readonly type: "address";
|
|
990
|
+
}, {
|
|
991
|
+
readonly internalType: "address";
|
|
992
|
+
readonly name: "uiFeeReceiver";
|
|
993
|
+
readonly type: "address";
|
|
994
|
+
}, {
|
|
995
|
+
readonly internalType: "address";
|
|
996
|
+
readonly name: "market";
|
|
997
|
+
readonly type: "address";
|
|
998
|
+
}, {
|
|
999
|
+
readonly internalType: "address";
|
|
1000
|
+
readonly name: "initialCollateralToken";
|
|
1001
|
+
readonly type: "address";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly internalType: "address[]";
|
|
1004
|
+
readonly name: "swapPath";
|
|
1005
|
+
readonly type: "address[]";
|
|
1006
|
+
}];
|
|
1007
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsAddresses";
|
|
1008
|
+
readonly name: "addresses";
|
|
1009
|
+
readonly type: "tuple";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly components: readonly [{
|
|
1012
|
+
readonly internalType: "uint256";
|
|
1013
|
+
readonly name: "sizeDeltaUsd";
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly internalType: "uint256";
|
|
1017
|
+
readonly name: "initialCollateralDeltaAmount";
|
|
1018
|
+
readonly type: "uint256";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly internalType: "uint256";
|
|
1021
|
+
readonly name: "triggerPrice";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly internalType: "uint256";
|
|
1025
|
+
readonly name: "acceptablePrice";
|
|
1026
|
+
readonly type: "uint256";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly internalType: "uint256";
|
|
1029
|
+
readonly name: "executionFee";
|
|
1030
|
+
readonly type: "uint256";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly internalType: "uint256";
|
|
1033
|
+
readonly name: "callbackGasLimit";
|
|
1034
|
+
readonly type: "uint256";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly internalType: "uint256";
|
|
1037
|
+
readonly name: "minOutputAmount";
|
|
1038
|
+
readonly type: "uint256";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly internalType: "uint256";
|
|
1041
|
+
readonly name: "validFromTime";
|
|
1042
|
+
readonly type: "uint256";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsNumbers";
|
|
1045
|
+
readonly name: "numbers";
|
|
1046
|
+
readonly type: "tuple";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly internalType: "enum Order.OrderType";
|
|
1049
|
+
readonly name: "orderType";
|
|
1050
|
+
readonly type: "uint8";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly internalType: "enum Order.DecreasePositionSwapType";
|
|
1053
|
+
readonly name: "decreasePositionSwapType";
|
|
1054
|
+
readonly type: "uint8";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly internalType: "bool";
|
|
1057
|
+
readonly name: "isLong";
|
|
1058
|
+
readonly type: "bool";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly internalType: "bool";
|
|
1061
|
+
readonly name: "shouldUnwrapNativeToken";
|
|
1062
|
+
readonly type: "bool";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly internalType: "bool";
|
|
1065
|
+
readonly name: "autoCancel";
|
|
1066
|
+
readonly type: "bool";
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly internalType: "bytes32";
|
|
1069
|
+
readonly name: "referralCode";
|
|
1070
|
+
readonly type: "bytes32";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly internalType: "bytes32[]";
|
|
1073
|
+
readonly name: "dataList";
|
|
1074
|
+
readonly type: "bytes32[]";
|
|
1075
|
+
}];
|
|
1076
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParams";
|
|
1077
|
+
readonly name: "params";
|
|
1078
|
+
readonly type: "tuple";
|
|
1079
|
+
}];
|
|
1080
|
+
readonly name: "createOrder";
|
|
1081
|
+
readonly outputs: readonly [{
|
|
1082
|
+
readonly internalType: "bytes32";
|
|
1083
|
+
readonly name: "";
|
|
1084
|
+
readonly type: "bytes32";
|
|
1085
|
+
}];
|
|
1086
|
+
readonly stateMutability: "nonpayable";
|
|
1087
|
+
readonly type: "function";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly inputs: readonly [{
|
|
1090
|
+
readonly components: readonly [{
|
|
1091
|
+
readonly components: readonly [{
|
|
1092
|
+
readonly internalType: "address[]";
|
|
1093
|
+
readonly name: "tokens";
|
|
1094
|
+
readonly type: "address[]";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly internalType: "address[]";
|
|
1097
|
+
readonly name: "providers";
|
|
1098
|
+
readonly type: "address[]";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly internalType: "bytes[]";
|
|
1101
|
+
readonly name: "data";
|
|
1102
|
+
readonly type: "bytes[]";
|
|
1103
|
+
}];
|
|
1104
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
1105
|
+
readonly name: "oracleParams";
|
|
1106
|
+
readonly type: "tuple";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly components: readonly [{
|
|
1109
|
+
readonly internalType: "address[]";
|
|
1110
|
+
readonly name: "sendTokens";
|
|
1111
|
+
readonly type: "address[]";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly internalType: "uint256[]";
|
|
1114
|
+
readonly name: "sendAmounts";
|
|
1115
|
+
readonly type: "uint256[]";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly internalType: "address[]";
|
|
1118
|
+
readonly name: "externalCallTargets";
|
|
1119
|
+
readonly type: "address[]";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly internalType: "bytes[]";
|
|
1122
|
+
readonly name: "externalCallDataList";
|
|
1123
|
+
readonly type: "bytes[]";
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly internalType: "address[]";
|
|
1126
|
+
readonly name: "refundTokens";
|
|
1127
|
+
readonly type: "address[]";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly internalType: "address[]";
|
|
1130
|
+
readonly name: "refundReceivers";
|
|
1131
|
+
readonly type: "address[]";
|
|
1132
|
+
}];
|
|
1133
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
1134
|
+
readonly name: "externalCalls";
|
|
1135
|
+
readonly type: "tuple";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly components: readonly [{
|
|
1138
|
+
readonly internalType: "address";
|
|
1139
|
+
readonly name: "owner";
|
|
1140
|
+
readonly type: "address";
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly internalType: "address";
|
|
1143
|
+
readonly name: "spender";
|
|
1144
|
+
readonly type: "address";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly internalType: "uint256";
|
|
1147
|
+
readonly name: "value";
|
|
1148
|
+
readonly type: "uint256";
|
|
1149
|
+
}, {
|
|
1150
|
+
readonly internalType: "uint256";
|
|
1151
|
+
readonly name: "deadline";
|
|
1152
|
+
readonly type: "uint256";
|
|
1153
|
+
}, {
|
|
1154
|
+
readonly internalType: "uint8";
|
|
1155
|
+
readonly name: "v";
|
|
1156
|
+
readonly type: "uint8";
|
|
1157
|
+
}, {
|
|
1158
|
+
readonly internalType: "bytes32";
|
|
1159
|
+
readonly name: "r";
|
|
1160
|
+
readonly type: "bytes32";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly internalType: "bytes32";
|
|
1163
|
+
readonly name: "s";
|
|
1164
|
+
readonly type: "bytes32";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly internalType: "address";
|
|
1167
|
+
readonly name: "token";
|
|
1168
|
+
readonly type: "address";
|
|
1169
|
+
}];
|
|
1170
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
1171
|
+
readonly name: "tokenPermits";
|
|
1172
|
+
readonly type: "tuple[]";
|
|
1173
|
+
}, {
|
|
1174
|
+
readonly components: readonly [{
|
|
1175
|
+
readonly internalType: "address";
|
|
1176
|
+
readonly name: "feeToken";
|
|
1177
|
+
readonly type: "address";
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly internalType: "uint256";
|
|
1180
|
+
readonly name: "feeAmount";
|
|
1181
|
+
readonly type: "uint256";
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly internalType: "address[]";
|
|
1184
|
+
readonly name: "feeSwapPath";
|
|
1185
|
+
readonly type: "address[]";
|
|
1186
|
+
}];
|
|
1187
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
1188
|
+
readonly name: "fee";
|
|
1189
|
+
readonly type: "tuple";
|
|
1190
|
+
}, {
|
|
1191
|
+
readonly internalType: "uint256";
|
|
1192
|
+
readonly name: "userNonce";
|
|
1193
|
+
readonly type: "uint256";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly internalType: "uint256";
|
|
1196
|
+
readonly name: "deadline";
|
|
1197
|
+
readonly type: "uint256";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly internalType: "bytes";
|
|
1200
|
+
readonly name: "signature";
|
|
1201
|
+
readonly type: "bytes";
|
|
1202
|
+
}, {
|
|
1203
|
+
readonly internalType: "uint256";
|
|
1204
|
+
readonly name: "desChainId";
|
|
1205
|
+
readonly type: "uint256";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly internalType: "bytes32";
|
|
1208
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
1209
|
+
readonly type: "bytes32";
|
|
1210
|
+
}];
|
|
1211
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
1212
|
+
readonly name: "relayParams";
|
|
1213
|
+
readonly type: "tuple";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly components: readonly [{
|
|
1216
|
+
readonly internalType: "address";
|
|
1217
|
+
readonly name: "subaccount";
|
|
1218
|
+
readonly type: "address";
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly internalType: "bool";
|
|
1221
|
+
readonly name: "shouldAdd";
|
|
1222
|
+
readonly type: "bool";
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly internalType: "uint256";
|
|
1225
|
+
readonly name: "expiresAt";
|
|
1226
|
+
readonly type: "uint256";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly internalType: "uint256";
|
|
1229
|
+
readonly name: "maxAllowedCount";
|
|
1230
|
+
readonly type: "uint256";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly internalType: "bytes32";
|
|
1233
|
+
readonly name: "actionType";
|
|
1234
|
+
readonly type: "bytes32";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly internalType: "uint256";
|
|
1237
|
+
readonly name: "nonce";
|
|
1238
|
+
readonly type: "uint256";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly internalType: "uint256";
|
|
1241
|
+
readonly name: "desChainId";
|
|
1242
|
+
readonly type: "uint256";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly internalType: "uint256";
|
|
1245
|
+
readonly name: "deadline";
|
|
1246
|
+
readonly type: "uint256";
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly internalType: "bytes32";
|
|
1249
|
+
readonly name: "integrationId";
|
|
1250
|
+
readonly type: "bytes32";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly internalType: "uint256";
|
|
1253
|
+
readonly name: "revocationCounter";
|
|
1254
|
+
readonly type: "uint256";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly internalType: "bytes32";
|
|
1257
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
1258
|
+
readonly type: "bytes32";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly internalType: "bytes";
|
|
1261
|
+
readonly name: "signature";
|
|
1262
|
+
readonly type: "bytes";
|
|
1263
|
+
}];
|
|
1264
|
+
readonly internalType: "struct SubaccountApproval";
|
|
1265
|
+
readonly name: "subaccountApproval";
|
|
1266
|
+
readonly type: "tuple";
|
|
1267
|
+
}, {
|
|
1268
|
+
readonly internalType: "address";
|
|
1269
|
+
readonly name: "account";
|
|
1270
|
+
readonly type: "address";
|
|
1271
|
+
}, {
|
|
1272
|
+
readonly internalType: "address";
|
|
1273
|
+
readonly name: "subaccount";
|
|
1274
|
+
readonly type: "address";
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly components: readonly [{
|
|
1277
|
+
readonly components: readonly [{
|
|
1278
|
+
readonly internalType: "address";
|
|
1279
|
+
readonly name: "receiver";
|
|
1280
|
+
readonly type: "address";
|
|
1281
|
+
}, {
|
|
1282
|
+
readonly internalType: "address";
|
|
1283
|
+
readonly name: "cancellationReceiver";
|
|
1284
|
+
readonly type: "address";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly internalType: "address";
|
|
1287
|
+
readonly name: "callbackContract";
|
|
1288
|
+
readonly type: "address";
|
|
1289
|
+
}, {
|
|
1290
|
+
readonly internalType: "address";
|
|
1291
|
+
readonly name: "uiFeeReceiver";
|
|
1292
|
+
readonly type: "address";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly internalType: "address";
|
|
1295
|
+
readonly name: "market";
|
|
1296
|
+
readonly type: "address";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly internalType: "address";
|
|
1299
|
+
readonly name: "initialCollateralToken";
|
|
1300
|
+
readonly type: "address";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly internalType: "address[]";
|
|
1303
|
+
readonly name: "swapPath";
|
|
1304
|
+
readonly type: "address[]";
|
|
1305
|
+
}];
|
|
1306
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsAddresses";
|
|
1307
|
+
readonly name: "addresses";
|
|
1308
|
+
readonly type: "tuple";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly components: readonly [{
|
|
1311
|
+
readonly internalType: "uint256";
|
|
1312
|
+
readonly name: "sizeDeltaUsd";
|
|
1313
|
+
readonly type: "uint256";
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly internalType: "uint256";
|
|
1316
|
+
readonly name: "initialCollateralDeltaAmount";
|
|
1317
|
+
readonly type: "uint256";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly internalType: "uint256";
|
|
1320
|
+
readonly name: "triggerPrice";
|
|
1321
|
+
readonly type: "uint256";
|
|
1322
|
+
}, {
|
|
1323
|
+
readonly internalType: "uint256";
|
|
1324
|
+
readonly name: "acceptablePrice";
|
|
1325
|
+
readonly type: "uint256";
|
|
1326
|
+
}, {
|
|
1327
|
+
readonly internalType: "uint256";
|
|
1328
|
+
readonly name: "executionFee";
|
|
1329
|
+
readonly type: "uint256";
|
|
1330
|
+
}, {
|
|
1331
|
+
readonly internalType: "uint256";
|
|
1332
|
+
readonly name: "callbackGasLimit";
|
|
1333
|
+
readonly type: "uint256";
|
|
1334
|
+
}, {
|
|
1335
|
+
readonly internalType: "uint256";
|
|
1336
|
+
readonly name: "minOutputAmount";
|
|
1337
|
+
readonly type: "uint256";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly internalType: "uint256";
|
|
1340
|
+
readonly name: "validFromTime";
|
|
1341
|
+
readonly type: "uint256";
|
|
1342
|
+
}];
|
|
1343
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParamsNumbers";
|
|
1344
|
+
readonly name: "numbers";
|
|
1345
|
+
readonly type: "tuple";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly internalType: "enum Order.OrderType";
|
|
1348
|
+
readonly name: "orderType";
|
|
1349
|
+
readonly type: "uint8";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly internalType: "enum Order.DecreasePositionSwapType";
|
|
1352
|
+
readonly name: "decreasePositionSwapType";
|
|
1353
|
+
readonly type: "uint8";
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly internalType: "bool";
|
|
1356
|
+
readonly name: "isLong";
|
|
1357
|
+
readonly type: "bool";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly internalType: "bool";
|
|
1360
|
+
readonly name: "shouldUnwrapNativeToken";
|
|
1361
|
+
readonly type: "bool";
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly internalType: "bool";
|
|
1364
|
+
readonly name: "autoCancel";
|
|
1365
|
+
readonly type: "bool";
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly internalType: "bytes32";
|
|
1368
|
+
readonly name: "referralCode";
|
|
1369
|
+
readonly type: "bytes32";
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly internalType: "bytes32[]";
|
|
1372
|
+
readonly name: "dataList";
|
|
1373
|
+
readonly type: "bytes32[]";
|
|
1374
|
+
}];
|
|
1375
|
+
readonly internalType: "struct IBaseOrderUtils.CreateOrderParams";
|
|
1376
|
+
readonly name: "params";
|
|
1377
|
+
readonly type: "tuple";
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly internalType: "uint256";
|
|
1380
|
+
readonly name: "twapCount";
|
|
1381
|
+
readonly type: "uint256";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly internalType: "uint256";
|
|
1384
|
+
readonly name: "interval";
|
|
1385
|
+
readonly type: "uint256";
|
|
1386
|
+
}];
|
|
1387
|
+
readonly name: "createTwapOrder";
|
|
1388
|
+
readonly outputs: readonly [{
|
|
1389
|
+
readonly internalType: "bytes32[]";
|
|
1390
|
+
readonly name: "";
|
|
1391
|
+
readonly type: "bytes32[]";
|
|
1392
|
+
}];
|
|
1393
|
+
readonly stateMutability: "nonpayable";
|
|
1394
|
+
readonly type: "function";
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly inputs: readonly [];
|
|
1397
|
+
readonly name: "dataStore";
|
|
1398
|
+
readonly outputs: readonly [{
|
|
1399
|
+
readonly internalType: "contract DataStore";
|
|
1400
|
+
readonly name: "";
|
|
1401
|
+
readonly type: "address";
|
|
1402
|
+
}];
|
|
1403
|
+
readonly stateMutability: "view";
|
|
1404
|
+
readonly type: "function";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly inputs: readonly [{
|
|
1407
|
+
readonly internalType: "bytes32";
|
|
1408
|
+
readonly name: "";
|
|
1409
|
+
readonly type: "bytes32";
|
|
1410
|
+
}];
|
|
1411
|
+
readonly name: "digests";
|
|
1412
|
+
readonly outputs: readonly [{
|
|
1413
|
+
readonly internalType: "bool";
|
|
1414
|
+
readonly name: "";
|
|
1415
|
+
readonly type: "bool";
|
|
1416
|
+
}];
|
|
1417
|
+
readonly stateMutability: "view";
|
|
1418
|
+
readonly type: "function";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly inputs: readonly [];
|
|
1421
|
+
readonly name: "eventEmitter";
|
|
1422
|
+
readonly outputs: readonly [{
|
|
1423
|
+
readonly internalType: "contract EventEmitter";
|
|
1424
|
+
readonly name: "";
|
|
1425
|
+
readonly type: "address";
|
|
1426
|
+
}];
|
|
1427
|
+
readonly stateMutability: "view";
|
|
1428
|
+
readonly type: "function";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly inputs: readonly [];
|
|
1431
|
+
readonly name: "externalHandler";
|
|
1432
|
+
readonly outputs: readonly [{
|
|
1433
|
+
readonly internalType: "contract IExternalHandler";
|
|
1434
|
+
readonly name: "";
|
|
1435
|
+
readonly type: "address";
|
|
1436
|
+
}];
|
|
1437
|
+
readonly stateMutability: "view";
|
|
1438
|
+
readonly type: "function";
|
|
1439
|
+
}, {
|
|
1440
|
+
readonly inputs: readonly [{
|
|
1441
|
+
readonly internalType: "bytes[]";
|
|
1442
|
+
readonly name: "data";
|
|
1443
|
+
readonly type: "bytes[]";
|
|
1444
|
+
}];
|
|
1445
|
+
readonly name: "multicall";
|
|
1446
|
+
readonly outputs: readonly [{
|
|
1447
|
+
readonly internalType: "bytes[]";
|
|
1448
|
+
readonly name: "results";
|
|
1449
|
+
readonly type: "bytes[]";
|
|
1450
|
+
}];
|
|
1451
|
+
readonly stateMutability: "payable";
|
|
1452
|
+
readonly type: "function";
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly inputs: readonly [];
|
|
1455
|
+
readonly name: "oracle";
|
|
1456
|
+
readonly outputs: readonly [{
|
|
1457
|
+
readonly internalType: "contract IOracle";
|
|
1458
|
+
readonly name: "";
|
|
1459
|
+
readonly type: "address";
|
|
1460
|
+
}];
|
|
1461
|
+
readonly stateMutability: "view";
|
|
1462
|
+
readonly type: "function";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly inputs: readonly [];
|
|
1465
|
+
readonly name: "orderHandler";
|
|
1466
|
+
readonly outputs: readonly [{
|
|
1467
|
+
readonly internalType: "contract IOrderHandler";
|
|
1468
|
+
readonly name: "";
|
|
1469
|
+
readonly type: "address";
|
|
1470
|
+
}];
|
|
1471
|
+
readonly stateMutability: "view";
|
|
1472
|
+
readonly type: "function";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly inputs: readonly [];
|
|
1475
|
+
readonly name: "orderVault";
|
|
1476
|
+
readonly outputs: readonly [{
|
|
1477
|
+
readonly internalType: "contract OrderVault";
|
|
1478
|
+
readonly name: "";
|
|
1479
|
+
readonly type: "address";
|
|
1480
|
+
}];
|
|
1481
|
+
readonly stateMutability: "view";
|
|
1482
|
+
readonly type: "function";
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly inputs: readonly [{
|
|
1485
|
+
readonly components: readonly [{
|
|
1486
|
+
readonly components: readonly [{
|
|
1487
|
+
readonly internalType: "address[]";
|
|
1488
|
+
readonly name: "tokens";
|
|
1489
|
+
readonly type: "address[]";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly internalType: "address[]";
|
|
1492
|
+
readonly name: "providers";
|
|
1493
|
+
readonly type: "address[]";
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly internalType: "bytes[]";
|
|
1496
|
+
readonly name: "data";
|
|
1497
|
+
readonly type: "bytes[]";
|
|
1498
|
+
}];
|
|
1499
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
1500
|
+
readonly name: "oracleParams";
|
|
1501
|
+
readonly type: "tuple";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly components: readonly [{
|
|
1504
|
+
readonly internalType: "address[]";
|
|
1505
|
+
readonly name: "sendTokens";
|
|
1506
|
+
readonly type: "address[]";
|
|
1507
|
+
}, {
|
|
1508
|
+
readonly internalType: "uint256[]";
|
|
1509
|
+
readonly name: "sendAmounts";
|
|
1510
|
+
readonly type: "uint256[]";
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly internalType: "address[]";
|
|
1513
|
+
readonly name: "externalCallTargets";
|
|
1514
|
+
readonly type: "address[]";
|
|
1515
|
+
}, {
|
|
1516
|
+
readonly internalType: "bytes[]";
|
|
1517
|
+
readonly name: "externalCallDataList";
|
|
1518
|
+
readonly type: "bytes[]";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly internalType: "address[]";
|
|
1521
|
+
readonly name: "refundTokens";
|
|
1522
|
+
readonly type: "address[]";
|
|
1523
|
+
}, {
|
|
1524
|
+
readonly internalType: "address[]";
|
|
1525
|
+
readonly name: "refundReceivers";
|
|
1526
|
+
readonly type: "address[]";
|
|
1527
|
+
}];
|
|
1528
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
1529
|
+
readonly name: "externalCalls";
|
|
1530
|
+
readonly type: "tuple";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly components: readonly [{
|
|
1533
|
+
readonly internalType: "address";
|
|
1534
|
+
readonly name: "owner";
|
|
1535
|
+
readonly type: "address";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly internalType: "address";
|
|
1538
|
+
readonly name: "spender";
|
|
1539
|
+
readonly type: "address";
|
|
1540
|
+
}, {
|
|
1541
|
+
readonly internalType: "uint256";
|
|
1542
|
+
readonly name: "value";
|
|
1543
|
+
readonly type: "uint256";
|
|
1544
|
+
}, {
|
|
1545
|
+
readonly internalType: "uint256";
|
|
1546
|
+
readonly name: "deadline";
|
|
1547
|
+
readonly type: "uint256";
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly internalType: "uint8";
|
|
1550
|
+
readonly name: "v";
|
|
1551
|
+
readonly type: "uint8";
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly internalType: "bytes32";
|
|
1554
|
+
readonly name: "r";
|
|
1555
|
+
readonly type: "bytes32";
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly internalType: "bytes32";
|
|
1558
|
+
readonly name: "s";
|
|
1559
|
+
readonly type: "bytes32";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly internalType: "address";
|
|
1562
|
+
readonly name: "token";
|
|
1563
|
+
readonly type: "address";
|
|
1564
|
+
}];
|
|
1565
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
1566
|
+
readonly name: "tokenPermits";
|
|
1567
|
+
readonly type: "tuple[]";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly components: readonly [{
|
|
1570
|
+
readonly internalType: "address";
|
|
1571
|
+
readonly name: "feeToken";
|
|
1572
|
+
readonly type: "address";
|
|
1573
|
+
}, {
|
|
1574
|
+
readonly internalType: "uint256";
|
|
1575
|
+
readonly name: "feeAmount";
|
|
1576
|
+
readonly type: "uint256";
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly internalType: "address[]";
|
|
1579
|
+
readonly name: "feeSwapPath";
|
|
1580
|
+
readonly type: "address[]";
|
|
1581
|
+
}];
|
|
1582
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
1583
|
+
readonly name: "fee";
|
|
1584
|
+
readonly type: "tuple";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly internalType: "uint256";
|
|
1587
|
+
readonly name: "userNonce";
|
|
1588
|
+
readonly type: "uint256";
|
|
1589
|
+
}, {
|
|
1590
|
+
readonly internalType: "uint256";
|
|
1591
|
+
readonly name: "deadline";
|
|
1592
|
+
readonly type: "uint256";
|
|
1593
|
+
}, {
|
|
1594
|
+
readonly internalType: "bytes";
|
|
1595
|
+
readonly name: "signature";
|
|
1596
|
+
readonly type: "bytes";
|
|
1597
|
+
}, {
|
|
1598
|
+
readonly internalType: "uint256";
|
|
1599
|
+
readonly name: "desChainId";
|
|
1600
|
+
readonly type: "uint256";
|
|
1601
|
+
}, {
|
|
1602
|
+
readonly internalType: "bytes32";
|
|
1603
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
1604
|
+
readonly type: "bytes32";
|
|
1605
|
+
}];
|
|
1606
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
1607
|
+
readonly name: "relayParams";
|
|
1608
|
+
readonly type: "tuple";
|
|
1609
|
+
}, {
|
|
1610
|
+
readonly internalType: "address";
|
|
1611
|
+
readonly name: "account";
|
|
1612
|
+
readonly type: "address";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly internalType: "address";
|
|
1615
|
+
readonly name: "subaccount";
|
|
1616
|
+
readonly type: "address";
|
|
1617
|
+
}];
|
|
1618
|
+
readonly name: "removeSubaccount";
|
|
1619
|
+
readonly outputs: readonly [];
|
|
1620
|
+
readonly stateMutability: "nonpayable";
|
|
1621
|
+
readonly type: "function";
|
|
1622
|
+
}, {
|
|
1623
|
+
readonly inputs: readonly [];
|
|
1624
|
+
readonly name: "roleStore";
|
|
1625
|
+
readonly outputs: readonly [{
|
|
1626
|
+
readonly internalType: "contract RoleStore";
|
|
1627
|
+
readonly name: "";
|
|
1628
|
+
readonly type: "address";
|
|
1629
|
+
}];
|
|
1630
|
+
readonly stateMutability: "view";
|
|
1631
|
+
readonly type: "function";
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly inputs: readonly [];
|
|
1634
|
+
readonly name: "router";
|
|
1635
|
+
readonly outputs: readonly [{
|
|
1636
|
+
readonly internalType: "contract Router";
|
|
1637
|
+
readonly name: "";
|
|
1638
|
+
readonly type: "address";
|
|
1639
|
+
}];
|
|
1640
|
+
readonly stateMutability: "view";
|
|
1641
|
+
readonly type: "function";
|
|
1642
|
+
}, {
|
|
1643
|
+
readonly inputs: readonly [{
|
|
1644
|
+
readonly internalType: "address";
|
|
1645
|
+
readonly name: "receiver";
|
|
1646
|
+
readonly type: "address";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly internalType: "uint256";
|
|
1649
|
+
readonly name: "amount";
|
|
1650
|
+
readonly type: "uint256";
|
|
1651
|
+
}];
|
|
1652
|
+
readonly name: "sendNativeToken";
|
|
1653
|
+
readonly outputs: readonly [];
|
|
1654
|
+
readonly stateMutability: "payable";
|
|
1655
|
+
readonly type: "function";
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly inputs: readonly [{
|
|
1658
|
+
readonly internalType: "address";
|
|
1659
|
+
readonly name: "token";
|
|
1660
|
+
readonly type: "address";
|
|
1661
|
+
}, {
|
|
1662
|
+
readonly internalType: "address";
|
|
1663
|
+
readonly name: "receiver";
|
|
1664
|
+
readonly type: "address";
|
|
1665
|
+
}, {
|
|
1666
|
+
readonly internalType: "uint256";
|
|
1667
|
+
readonly name: "amount";
|
|
1668
|
+
readonly type: "uint256";
|
|
1669
|
+
}];
|
|
1670
|
+
readonly name: "sendTokens";
|
|
1671
|
+
readonly outputs: readonly [];
|
|
1672
|
+
readonly stateMutability: "payable";
|
|
1673
|
+
readonly type: "function";
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly inputs: readonly [{
|
|
1676
|
+
readonly internalType: "address";
|
|
1677
|
+
readonly name: "receiver";
|
|
1678
|
+
readonly type: "address";
|
|
1679
|
+
}, {
|
|
1680
|
+
readonly internalType: "uint256";
|
|
1681
|
+
readonly name: "amount";
|
|
1682
|
+
readonly type: "uint256";
|
|
1683
|
+
}];
|
|
1684
|
+
readonly name: "sendWnt";
|
|
1685
|
+
readonly outputs: readonly [];
|
|
1686
|
+
readonly stateMutability: "payable";
|
|
1687
|
+
readonly type: "function";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly inputs: readonly [{
|
|
1690
|
+
readonly internalType: "address";
|
|
1691
|
+
readonly name: "";
|
|
1692
|
+
readonly type: "address";
|
|
1693
|
+
}];
|
|
1694
|
+
readonly name: "subaccountApprovalNonces";
|
|
1695
|
+
readonly outputs: readonly [{
|
|
1696
|
+
readonly internalType: "uint256";
|
|
1697
|
+
readonly name: "";
|
|
1698
|
+
readonly type: "uint256";
|
|
1699
|
+
}];
|
|
1700
|
+
readonly stateMutability: "view";
|
|
1701
|
+
readonly type: "function";
|
|
1702
|
+
}, {
|
|
1703
|
+
readonly inputs: readonly [];
|
|
1704
|
+
readonly name: "swapHandler";
|
|
1705
|
+
readonly outputs: readonly [{
|
|
1706
|
+
readonly internalType: "contract ISwapHandler";
|
|
1707
|
+
readonly name: "";
|
|
1708
|
+
readonly type: "address";
|
|
1709
|
+
}];
|
|
1710
|
+
readonly stateMutability: "view";
|
|
1711
|
+
readonly type: "function";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly inputs: readonly [{
|
|
1714
|
+
readonly components: readonly [{
|
|
1715
|
+
readonly components: readonly [{
|
|
1716
|
+
readonly internalType: "address[]";
|
|
1717
|
+
readonly name: "tokens";
|
|
1718
|
+
readonly type: "address[]";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly internalType: "address[]";
|
|
1721
|
+
readonly name: "providers";
|
|
1722
|
+
readonly type: "address[]";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly internalType: "bytes[]";
|
|
1725
|
+
readonly name: "data";
|
|
1726
|
+
readonly type: "bytes[]";
|
|
1727
|
+
}];
|
|
1728
|
+
readonly internalType: "struct OracleUtils.SetPricesParams";
|
|
1729
|
+
readonly name: "oracleParams";
|
|
1730
|
+
readonly type: "tuple";
|
|
1731
|
+
}, {
|
|
1732
|
+
readonly components: readonly [{
|
|
1733
|
+
readonly internalType: "address[]";
|
|
1734
|
+
readonly name: "sendTokens";
|
|
1735
|
+
readonly type: "address[]";
|
|
1736
|
+
}, {
|
|
1737
|
+
readonly internalType: "uint256[]";
|
|
1738
|
+
readonly name: "sendAmounts";
|
|
1739
|
+
readonly type: "uint256[]";
|
|
1740
|
+
}, {
|
|
1741
|
+
readonly internalType: "address[]";
|
|
1742
|
+
readonly name: "externalCallTargets";
|
|
1743
|
+
readonly type: "address[]";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly internalType: "bytes[]";
|
|
1746
|
+
readonly name: "externalCallDataList";
|
|
1747
|
+
readonly type: "bytes[]";
|
|
1748
|
+
}, {
|
|
1749
|
+
readonly internalType: "address[]";
|
|
1750
|
+
readonly name: "refundTokens";
|
|
1751
|
+
readonly type: "address[]";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly internalType: "address[]";
|
|
1754
|
+
readonly name: "refundReceivers";
|
|
1755
|
+
readonly type: "address[]";
|
|
1756
|
+
}];
|
|
1757
|
+
readonly internalType: "struct IRelayUtils.ExternalCalls";
|
|
1758
|
+
readonly name: "externalCalls";
|
|
1759
|
+
readonly type: "tuple";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly components: readonly [{
|
|
1762
|
+
readonly internalType: "address";
|
|
1763
|
+
readonly name: "owner";
|
|
1764
|
+
readonly type: "address";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly internalType: "address";
|
|
1767
|
+
readonly name: "spender";
|
|
1768
|
+
readonly type: "address";
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly internalType: "uint256";
|
|
1771
|
+
readonly name: "value";
|
|
1772
|
+
readonly type: "uint256";
|
|
1773
|
+
}, {
|
|
1774
|
+
readonly internalType: "uint256";
|
|
1775
|
+
readonly name: "deadline";
|
|
1776
|
+
readonly type: "uint256";
|
|
1777
|
+
}, {
|
|
1778
|
+
readonly internalType: "uint8";
|
|
1779
|
+
readonly name: "v";
|
|
1780
|
+
readonly type: "uint8";
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly internalType: "bytes32";
|
|
1783
|
+
readonly name: "r";
|
|
1784
|
+
readonly type: "bytes32";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly internalType: "bytes32";
|
|
1787
|
+
readonly name: "s";
|
|
1788
|
+
readonly type: "bytes32";
|
|
1789
|
+
}, {
|
|
1790
|
+
readonly internalType: "address";
|
|
1791
|
+
readonly name: "token";
|
|
1792
|
+
readonly type: "address";
|
|
1793
|
+
}];
|
|
1794
|
+
readonly internalType: "struct IRelayUtils.TokenPermit[]";
|
|
1795
|
+
readonly name: "tokenPermits";
|
|
1796
|
+
readonly type: "tuple[]";
|
|
1797
|
+
}, {
|
|
1798
|
+
readonly components: readonly [{
|
|
1799
|
+
readonly internalType: "address";
|
|
1800
|
+
readonly name: "feeToken";
|
|
1801
|
+
readonly type: "address";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly internalType: "uint256";
|
|
1804
|
+
readonly name: "feeAmount";
|
|
1805
|
+
readonly type: "uint256";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly internalType: "address[]";
|
|
1808
|
+
readonly name: "feeSwapPath";
|
|
1809
|
+
readonly type: "address[]";
|
|
1810
|
+
}];
|
|
1811
|
+
readonly internalType: "struct IRelayUtils.FeeParams";
|
|
1812
|
+
readonly name: "fee";
|
|
1813
|
+
readonly type: "tuple";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly internalType: "uint256";
|
|
1816
|
+
readonly name: "userNonce";
|
|
1817
|
+
readonly type: "uint256";
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly internalType: "uint256";
|
|
1820
|
+
readonly name: "deadline";
|
|
1821
|
+
readonly type: "uint256";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly internalType: "bytes";
|
|
1824
|
+
readonly name: "signature";
|
|
1825
|
+
readonly type: "bytes";
|
|
1826
|
+
}, {
|
|
1827
|
+
readonly internalType: "uint256";
|
|
1828
|
+
readonly name: "desChainId";
|
|
1829
|
+
readonly type: "uint256";
|
|
1830
|
+
}, {
|
|
1831
|
+
readonly internalType: "bytes32";
|
|
1832
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
1833
|
+
readonly type: "bytes32";
|
|
1834
|
+
}];
|
|
1835
|
+
readonly internalType: "struct IRelayUtils.RelayParams";
|
|
1836
|
+
readonly name: "relayParams";
|
|
1837
|
+
readonly type: "tuple";
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly components: readonly [{
|
|
1840
|
+
readonly internalType: "address";
|
|
1841
|
+
readonly name: "subaccount";
|
|
1842
|
+
readonly type: "address";
|
|
1843
|
+
}, {
|
|
1844
|
+
readonly internalType: "bool";
|
|
1845
|
+
readonly name: "shouldAdd";
|
|
1846
|
+
readonly type: "bool";
|
|
1847
|
+
}, {
|
|
1848
|
+
readonly internalType: "uint256";
|
|
1849
|
+
readonly name: "expiresAt";
|
|
1850
|
+
readonly type: "uint256";
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly internalType: "uint256";
|
|
1853
|
+
readonly name: "maxAllowedCount";
|
|
1854
|
+
readonly type: "uint256";
|
|
1855
|
+
}, {
|
|
1856
|
+
readonly internalType: "bytes32";
|
|
1857
|
+
readonly name: "actionType";
|
|
1858
|
+
readonly type: "bytes32";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly internalType: "uint256";
|
|
1861
|
+
readonly name: "nonce";
|
|
1862
|
+
readonly type: "uint256";
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly internalType: "uint256";
|
|
1865
|
+
readonly name: "desChainId";
|
|
1866
|
+
readonly type: "uint256";
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly internalType: "uint256";
|
|
1869
|
+
readonly name: "deadline";
|
|
1870
|
+
readonly type: "uint256";
|
|
1871
|
+
}, {
|
|
1872
|
+
readonly internalType: "bytes32";
|
|
1873
|
+
readonly name: "integrationId";
|
|
1874
|
+
readonly type: "bytes32";
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly internalType: "uint256";
|
|
1877
|
+
readonly name: "revocationCounter";
|
|
1878
|
+
readonly type: "uint256";
|
|
1879
|
+
}, {
|
|
1880
|
+
readonly internalType: "bytes32";
|
|
1881
|
+
readonly name: "eip6492SignatureWrapperHash";
|
|
1882
|
+
readonly type: "bytes32";
|
|
1883
|
+
}, {
|
|
1884
|
+
readonly internalType: "bytes";
|
|
1885
|
+
readonly name: "signature";
|
|
1886
|
+
readonly type: "bytes";
|
|
1887
|
+
}];
|
|
1888
|
+
readonly internalType: "struct SubaccountApproval";
|
|
1889
|
+
readonly name: "subaccountApproval";
|
|
1890
|
+
readonly type: "tuple";
|
|
1891
|
+
}, {
|
|
1892
|
+
readonly internalType: "address";
|
|
1893
|
+
readonly name: "account";
|
|
1894
|
+
readonly type: "address";
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly internalType: "address";
|
|
1897
|
+
readonly name: "subaccount";
|
|
1898
|
+
readonly type: "address";
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly components: readonly [{
|
|
1901
|
+
readonly internalType: "bytes32";
|
|
1902
|
+
readonly name: "key";
|
|
1903
|
+
readonly type: "bytes32";
|
|
1904
|
+
}, {
|
|
1905
|
+
readonly internalType: "uint256";
|
|
1906
|
+
readonly name: "sizeDeltaUsd";
|
|
1907
|
+
readonly type: "uint256";
|
|
1908
|
+
}, {
|
|
1909
|
+
readonly internalType: "uint256";
|
|
1910
|
+
readonly name: "acceptablePrice";
|
|
1911
|
+
readonly type: "uint256";
|
|
1912
|
+
}, {
|
|
1913
|
+
readonly internalType: "uint256";
|
|
1914
|
+
readonly name: "triggerPrice";
|
|
1915
|
+
readonly type: "uint256";
|
|
1916
|
+
}, {
|
|
1917
|
+
readonly internalType: "uint256";
|
|
1918
|
+
readonly name: "minOutputAmount";
|
|
1919
|
+
readonly type: "uint256";
|
|
1920
|
+
}, {
|
|
1921
|
+
readonly internalType: "uint256";
|
|
1922
|
+
readonly name: "validFromTime";
|
|
1923
|
+
readonly type: "uint256";
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly internalType: "enum Order.DecreasePositionSwapType";
|
|
1926
|
+
readonly name: "decreasePositionSwapType";
|
|
1927
|
+
readonly type: "uint8";
|
|
1928
|
+
}, {
|
|
1929
|
+
readonly internalType: "bool";
|
|
1930
|
+
readonly name: "autoCancel";
|
|
1931
|
+
readonly type: "bool";
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly internalType: "uint256";
|
|
1934
|
+
readonly name: "executionFeeIncrease";
|
|
1935
|
+
readonly type: "uint256";
|
|
1936
|
+
}];
|
|
1937
|
+
readonly internalType: "struct IRelayUtils.UpdateOrderParams";
|
|
1938
|
+
readonly name: "params";
|
|
1939
|
+
readonly type: "tuple";
|
|
1940
|
+
}];
|
|
1941
|
+
readonly name: "updateOrder";
|
|
1942
|
+
readonly outputs: readonly [];
|
|
1943
|
+
readonly stateMutability: "nonpayable";
|
|
1944
|
+
readonly type: "function";
|
|
1945
|
+
}];
|
|
1946
|
+
export default _default;
|