@dzapio/sdk 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/zap/broadcast.d.ts +15 -0
- package/package.json +1 -1
- package/dist/examples/chain-utils.d.ts +0 -1
- package/dist/examples/chain-utils.js +0 -20
- package/dist/examples/permit-utils.d.ts +0 -1
- package/dist/examples/permit-utils.js +0 -90
- package/dist/examples/token-utils.d.ts +0 -1
- package/dist/examples/token-utils.js +0 -41
- package/dist/examples/trade-operations.d.ts +0 -1
- package/dist/examples/trade-operations.js +0 -89
- package/dist/examples/zap-operations.d.ts +0 -1
- package/dist/examples/zap-operations.js +0 -69
- package/dist/src/api/index.d.ts +0 -27
- package/dist/src/api/index.js +0 -146
- package/dist/src/artifacts/ERC20Permit.d.ts +0 -374
- package/dist/src/artifacts/ERC20Permit.js +0 -469
- package/dist/src/artifacts/Permit2.d.ts +0 -700
- package/dist/src/artifacts/Permit2.js +0 -904
- package/dist/src/artifacts/Permit2Proxy.d.ts +0 -416
- package/dist/src/artifacts/Permit2Proxy.js +0 -206
- package/dist/src/artifacts/default/DZapCoreAbi.d.ts +0 -2
- package/dist/src/artifacts/default/DZapCoreAbi.js +0 -3079
- package/dist/src/artifacts/default/DZapCoreV2Abi.d.ts +0 -2
- package/dist/src/artifacts/default/DZapCoreV2Abi.js +0 -3719
- package/dist/src/artifacts/default/DZapDcaAbi.d.ts +0 -2
- package/dist/src/artifacts/default/DZapDcaAbi.js +0 -1829
- package/dist/src/artifacts/default/Permit2Abi.d.ts +0 -700
- package/dist/src/artifacts/default/Permit2Abi.js +0 -904
- package/dist/src/artifacts/default/erc20Abi.d.ts +0 -165
- package/dist/src/artifacts/default/erc20Abi.js +0 -220
- package/dist/src/artifacts/default/index.d.ts +0 -6
- package/dist/src/artifacts/default/index.js +0 -13
- package/dist/src/artifacts/index.d.ts +0 -2
- package/dist/src/artifacts/index.js +0 -9
- package/dist/src/artifacts/staging/DZapCoreSwapAbi.d.ts +0 -2
- package/dist/src/artifacts/staging/DZapCoreSwapAbi.js +0 -3079
- package/dist/src/artifacts/staging/index.d.ts +0 -2
- package/dist/src/artifacts/staging/index.js +0 -5
- package/dist/src/axios/baseClient.d.ts +0 -2
- package/dist/src/axios/baseClient.js +0 -7
- package/dist/src/axios/index.d.ts +0 -8
- package/dist/src/axios/index.js +0 -34
- package/dist/src/chains/definitions/arthera.d.ts +0 -35
- package/dist/src/chains/definitions/arthera.js +0 -28
- package/dist/src/chains/definitions/fiveIre.d.ts +0 -35
- package/dist/src/chains/definitions/fiveIre.js +0 -28
- package/dist/src/chains/definitions/hyperEvm.d.ts +0 -35
- package/dist/src/chains/definitions/hyperEvm.js +0 -26
- package/dist/src/chains/definitions/hyperliquid.d.ts +0 -35
- package/dist/src/chains/definitions/hyperliquid.js +0 -26
- package/dist/src/chains/definitions/stable.d.ts +0 -36
- package/dist/src/chains/definitions/stable.js +0 -31
- package/dist/src/chains/index.d.ts +0 -179
- package/dist/src/chains/index.js +0 -24
- package/dist/src/config/index.d.ts +0 -36
- package/dist/src/config/index.js +0 -59
- package/dist/src/constants/address.d.ts +0 -13
- package/dist/src/constants/address.js +0 -29
- package/dist/src/constants/approval.d.ts +0 -7
- package/dist/src/constants/approval.js +0 -17
- package/dist/src/constants/axios.d.ts +0 -2
- package/dist/src/constants/axios.js +0 -5
- package/dist/src/constants/chains.d.ts +0 -31
- package/dist/src/constants/chains.js +0 -34
- package/dist/src/constants/contract.d.ts +0 -6
- package/dist/src/constants/contract.js +0 -18
- package/dist/src/constants/erc20.d.ts +0 -25
- package/dist/src/constants/erc20.js +0 -28
- package/dist/src/constants/httpMethods.d.ts +0 -2
- package/dist/src/constants/httpMethods.js +0 -5
- package/dist/src/constants/index.d.ts +0 -48
- package/dist/src/constants/index.js +0 -53
- package/dist/src/constants/permit.d.ts +0 -29
- package/dist/src/constants/permit.js +0 -33
- package/dist/src/constants/permit2.d.ts +0 -2
- package/dist/src/constants/permit2.js +0 -5
- package/dist/src/constants/rpc.d.ts +0 -2
- package/dist/src/constants/rpc.js +0 -5
- package/dist/src/constants/urlConstants.d.ts +0 -15
- package/dist/src/constants/urlConstants.js +0 -18
- package/dist/src/dZapClient/index.d.ts +0 -1015
- package/dist/src/dZapClient/index.js +0 -255
- package/dist/src/enums/index.d.ts +0 -46
- package/dist/src/enums/index.js +0 -57
- package/dist/src/index.d.ts +0 -17
- package/dist/src/index.js +0 -48
- package/dist/src/service/cache/cacheProvider.d.ts +0 -10
- package/dist/src/service/cache/cacheProvider.js +0 -72
- package/dist/src/service/cache/constant.d.ts +0 -2
- package/dist/src/service/cache/constant.js +0 -6
- package/dist/src/service/price/index.d.ts +0 -16
- package/dist/src/service/price/index.js +0 -80
- package/dist/src/service/price/provider/coingecko/config.d.ts +0 -6
- package/dist/src/service/price/provider/coingecko/config.js +0 -9
- package/dist/src/service/price/provider/coingecko/index.d.ts +0 -9
- package/dist/src/service/price/provider/coingecko/index.js +0 -66
- package/dist/src/service/price/provider/defiLlama/config.d.ts +0 -3
- package/dist/src/service/price/provider/defiLlama/config.js +0 -6
- package/dist/src/service/price/provider/defiLlama/index.d.ts +0 -9
- package/dist/src/service/price/provider/defiLlama/index.js +0 -60
- package/dist/src/service/price/provider/defiLlama/types.d.ts +0 -11
- package/dist/src/service/price/provider/defiLlama/types.js +0 -2
- package/dist/src/service/price/provider/dzap/index.d.ts +0 -6
- package/dist/src/service/price/provider/dzap/index.js +0 -22
- package/dist/src/service/price/types/IPriceProvider.d.ts +0 -14
- package/dist/src/service/price/types/IPriceProvider.js +0 -8
- package/dist/src/transactionHandlers/generic.d.ts +0 -24
- package/dist/src/transactionHandlers/generic.js +0 -48
- package/dist/src/transactionHandlers/permit.d.ts +0 -61
- package/dist/src/transactionHandlers/permit.js +0 -177
- package/dist/src/transactionHandlers/trade.d.ts +0 -24
- package/dist/src/transactionHandlers/trade.js +0 -263
- package/dist/src/transactionHandlers/zap.d.ts +0 -37
- package/dist/src/transactionHandlers/zap.js +0 -135
- package/dist/src/types/axiosClient.d.ts +0 -6
- package/dist/src/types/axiosClient.js +0 -2
- package/dist/src/types/btc.d.ts +0 -45
- package/dist/src/types/btc.js +0 -2
- package/dist/src/types/chains.d.ts +0 -3
- package/dist/src/types/chains.js +0 -2
- package/dist/src/types/contract.d.ts +0 -14
- package/dist/src/types/contract.js +0 -2
- package/dist/src/types/eip-2612.d.ts +0 -24
- package/dist/src/types/eip-2612.js +0 -58
- package/dist/src/types/index.d.ts +0 -489
- package/dist/src/types/index.js +0 -8
- package/dist/src/types/permit.d.ts +0 -191
- package/dist/src/types/permit.js +0 -54
- package/dist/src/types/wallet.d.ts +0 -2
- package/dist/src/types/wallet.js +0 -2
- package/dist/src/types/zap/build.d.ts +0 -44
- package/dist/src/types/zap/build.js +0 -2
- package/dist/src/types/zap/index.d.ts +0 -34
- package/dist/src/types/zap/index.js +0 -23
- package/dist/src/types/zap/path.d.ts +0 -33
- package/dist/src/types/zap/path.js +0 -2
- package/dist/src/types/zap/pool.d.ts +0 -39
- package/dist/src/types/zap/pool.js +0 -2
- package/dist/src/types/zap/position.d.ts +0 -27
- package/dist/src/types/zap/position.js +0 -2
- package/dist/src/types/zap/quote.d.ts +0 -7
- package/dist/src/types/zap/quote.js +0 -2
- package/dist/src/types/zap/status.d.ts +0 -28
- package/dist/src/types/zap/status.js +0 -2
- package/dist/src/types/zap/step.d.ts +0 -23
- package/dist/src/types/zap/step.js +0 -2
- package/dist/src/utils/amount.d.ts +0 -82
- package/dist/src/utils/amount.js +0 -71
- package/dist/src/utils/axios.d.ts +0 -13
- package/dist/src/utils/axios.js +0 -42
- package/dist/src/utils/date.d.ts +0 -1
- package/dist/src/utils/date.js +0 -8
- package/dist/src/utils/decoder/swap/abis.d.ts +0 -643
- package/dist/src/utils/decoder/swap/abis.js +0 -831
- package/dist/src/utils/decoder/swap/inputDataDecoder.d.ts +0 -14
- package/dist/src/utils/decoder/swap/inputDataDecoder.js +0 -124
- package/dist/src/utils/eip-2612/eip2612Permit.d.ts +0 -23
- package/dist/src/utils/eip-2612/eip2612Permit.js +0 -121
- package/dist/src/utils/eip-5792/batchApproveTokens.d.ts +0 -21
- package/dist/src/utils/eip-5792/batchApproveTokens.js +0 -49
- package/dist/src/utils/eip-5792/index.d.ts +0 -3
- package/dist/src/utils/eip-5792/index.js +0 -9
- package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.d.ts +0 -6
- package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.js +0 -22
- package/dist/src/utils/eip-5792/sendBatchCalls.d.ts +0 -10
- package/dist/src/utils/eip-5792/sendBatchCalls.js +0 -25
- package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.d.ts +0 -4
- package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.js +0 -26
- package/dist/src/utils/encodeApproveCall.d.ts +0 -6
- package/dist/src/utils/encodeApproveCall.js +0 -13
- package/dist/src/utils/erc20.d.ts +0 -65
- package/dist/src/utils/erc20.js +0 -153
- package/dist/src/utils/errors.d.ts +0 -17
- package/dist/src/utils/errors.js +0 -78
- package/dist/src/utils/index.d.ts +0 -4566
- package/dist/src/utils/index.js +0 -196
- package/dist/src/utils/multicall.d.ts +0 -14
- package/dist/src/utils/multicall.js +0 -25
- package/dist/src/utils/permit2/domain.d.ts +0 -2
- package/dist/src/utils/permit2/domain.js +0 -11
- package/dist/src/utils/permit2/index.d.ts +0 -4
- package/dist/src/utils/permit2/index.js +0 -97
- package/dist/src/utils/permit2/nonce.d.ts +0 -15
- package/dist/src/utils/permit2/nonce.js +0 -61
- package/dist/src/utils/permit2/permitData.d.ts +0 -23
- package/dist/src/utils/permit2/permitData.js +0 -85
- package/dist/src/utils/permit2/values.d.ts +0 -54
- package/dist/src/utils/permit2/values.js +0 -88
- package/dist/src/utils/permit2/witnessData.d.ts +0 -4
- package/dist/src/utils/permit2/witnessData.js +0 -48
- package/dist/src/utils/signIntent/custom.d.ts +0 -11
- package/dist/src/utils/signIntent/custom.js +0 -31
- package/dist/src/utils/signIntent/gasless.d.ts +0 -12
- package/dist/src/utils/signIntent/gasless.js +0 -101
- package/dist/src/utils/signTypedData.d.ts +0 -11
- package/dist/src/utils/signTypedData.js +0 -21
- package/dist/src/utils/tokens.d.ts +0 -8
- package/dist/src/utils/tokens.js +0 -73
- package/dist/src/utils/updateQuotes.d.ts +0 -3
- package/dist/src/utils/updateQuotes.js +0 -69
- package/dist/src/zap/constants/index.d.ts +0 -2
- package/dist/src/zap/constants/index.js +0 -18
- package/dist/src/zap/constants/path.d.ts +0 -8
- package/dist/src/zap/constants/path.js +0 -11
- package/dist/src/zap/constants/step.d.ts +0 -3
- package/dist/src/zap/constants/step.js +0 -6
- package/dist/src/zap/constants/urls.d.ts +0 -13
- package/dist/src/zap/constants/urls.js +0 -16
- package/dist/test/build.test.d.ts +0 -1
- package/dist/test/build.test.js +0 -65
- package/dist/test/permit/permit2Nonce.test.d.ts +0 -2
- package/dist/test/permit/permit2Nonce.test.js +0 -96
- package/dist/test/quotes.test.d.ts +0 -1
- package/dist/test/quotes.test.js +0 -59
- package/dist/test/status.test.d.ts +0 -1
- package/dist/test/status.test.js +0 -37
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,1015 +0,0 @@
|
|
|
1
|
-
import { Signer } from 'ethers';
|
|
2
|
-
import { Prettify, TransactionReceipt, WalletClient } from 'viem';
|
|
3
|
-
import { ContractVersion, StatusCodes, TxnStatus } from '../enums';
|
|
4
|
-
import { ApprovalMode, AvailableDZapServices, BroadcastTxParams, BroadcastTxResponse, CalculatePointsRequest, ChainData, EvmTxData, GaslessTradeBuildTxnResponse, GasSignatureParams, HexString, OtherAvailableAbis, PermitMode, SignPermitResponse, TokenInfo, TokenResponse, TradeBuildTxnRequest, TradeBuildTxnResponse, TradeQuotesRequest, TradeQuotesResponse, TradeStatusResponse } from '../types';
|
|
5
|
-
import { ZapBuildTxnRequest, ZapBuildTxnResponse, ZapChains, ZapPoolDetails, ZapPoolDetailsRequest, ZapPoolsRequest, ZapPoolsResponse, ZapPositionsRequest, ZapPositionsResponse, ZapProviders, ZapQuoteRequest, ZapQuoteResponse, ZapStatusRequest, ZapStatusResponse, ZapTransactionStep } from '../types/zap';
|
|
6
|
-
import { BatchCallParams } from '../utils/eip-5792';
|
|
7
|
-
declare class DZapClient {
|
|
8
|
-
private static instance;
|
|
9
|
-
private cancelTokenSource;
|
|
10
|
-
private static chainConfig;
|
|
11
|
-
private priceService;
|
|
12
|
-
private constructor();
|
|
13
|
-
static getInstance(apiKey?: string, rpcUrlsByChainId?: Record<number, string[]>): DZapClient;
|
|
14
|
-
static getChainConfig(): Promise<ChainData>;
|
|
15
|
-
static getDZapAbi(service: AvailableDZapServices, version: ContractVersion): import("viem").Abi;
|
|
16
|
-
static getOtherAbi: (name: OtherAvailableAbis) => readonly [{
|
|
17
|
-
readonly inputs: readonly [{
|
|
18
|
-
readonly internalType: "uint256";
|
|
19
|
-
readonly name: "deadline";
|
|
20
|
-
readonly type: "uint256";
|
|
21
|
-
}];
|
|
22
|
-
readonly name: "AllowanceExpired";
|
|
23
|
-
readonly type: "error";
|
|
24
|
-
}, {
|
|
25
|
-
readonly inputs: readonly [];
|
|
26
|
-
readonly name: "ExcessiveInvalidation";
|
|
27
|
-
readonly type: "error";
|
|
28
|
-
}, {
|
|
29
|
-
readonly inputs: readonly [{
|
|
30
|
-
readonly internalType: "uint256";
|
|
31
|
-
readonly name: "amount";
|
|
32
|
-
readonly type: "uint256";
|
|
33
|
-
}];
|
|
34
|
-
readonly name: "InsufficientAllowance";
|
|
35
|
-
readonly type: "error";
|
|
36
|
-
}, {
|
|
37
|
-
readonly inputs: readonly [{
|
|
38
|
-
readonly internalType: "uint256";
|
|
39
|
-
readonly name: "maxAmount";
|
|
40
|
-
readonly type: "uint256";
|
|
41
|
-
}];
|
|
42
|
-
readonly name: "InvalidAmount";
|
|
43
|
-
readonly type: "error";
|
|
44
|
-
}, {
|
|
45
|
-
readonly inputs: readonly [];
|
|
46
|
-
readonly name: "InvalidContractSignature";
|
|
47
|
-
readonly type: "error";
|
|
48
|
-
}, {
|
|
49
|
-
readonly inputs: readonly [];
|
|
50
|
-
readonly name: "InvalidNonce";
|
|
51
|
-
readonly type: "error";
|
|
52
|
-
}, {
|
|
53
|
-
readonly inputs: readonly [];
|
|
54
|
-
readonly name: "InvalidSignature";
|
|
55
|
-
readonly type: "error";
|
|
56
|
-
}, {
|
|
57
|
-
readonly inputs: readonly [];
|
|
58
|
-
readonly name: "InvalidSignatureLength";
|
|
59
|
-
readonly type: "error";
|
|
60
|
-
}, {
|
|
61
|
-
readonly inputs: readonly [];
|
|
62
|
-
readonly name: "InvalidSigner";
|
|
63
|
-
readonly type: "error";
|
|
64
|
-
}, {
|
|
65
|
-
readonly inputs: readonly [];
|
|
66
|
-
readonly name: "LengthMismatch";
|
|
67
|
-
readonly type: "error";
|
|
68
|
-
}, {
|
|
69
|
-
readonly inputs: readonly [{
|
|
70
|
-
readonly internalType: "uint256";
|
|
71
|
-
readonly name: "signatureDeadline";
|
|
72
|
-
readonly type: "uint256";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "SignatureExpired";
|
|
75
|
-
readonly type: "error";
|
|
76
|
-
}, {
|
|
77
|
-
readonly anonymous: false;
|
|
78
|
-
readonly inputs: readonly [{
|
|
79
|
-
readonly indexed: true;
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
readonly name: "owner";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly indexed: true;
|
|
85
|
-
readonly internalType: "address";
|
|
86
|
-
readonly name: "token";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
}, {
|
|
89
|
-
readonly indexed: true;
|
|
90
|
-
readonly internalType: "address";
|
|
91
|
-
readonly name: "spender";
|
|
92
|
-
readonly type: "address";
|
|
93
|
-
}, {
|
|
94
|
-
readonly indexed: false;
|
|
95
|
-
readonly internalType: "uint160";
|
|
96
|
-
readonly name: "amount";
|
|
97
|
-
readonly type: "uint160";
|
|
98
|
-
}, {
|
|
99
|
-
readonly indexed: false;
|
|
100
|
-
readonly internalType: "uint48";
|
|
101
|
-
readonly name: "expiration";
|
|
102
|
-
readonly type: "uint48";
|
|
103
|
-
}];
|
|
104
|
-
readonly name: "Approval";
|
|
105
|
-
readonly type: "event";
|
|
106
|
-
}, {
|
|
107
|
-
readonly anonymous: false;
|
|
108
|
-
readonly inputs: readonly [{
|
|
109
|
-
readonly indexed: true;
|
|
110
|
-
readonly internalType: "address";
|
|
111
|
-
readonly name: "owner";
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
}, {
|
|
114
|
-
readonly indexed: false;
|
|
115
|
-
readonly internalType: "address";
|
|
116
|
-
readonly name: "token";
|
|
117
|
-
readonly type: "address";
|
|
118
|
-
}, {
|
|
119
|
-
readonly indexed: false;
|
|
120
|
-
readonly internalType: "address";
|
|
121
|
-
readonly name: "spender";
|
|
122
|
-
readonly type: "address";
|
|
123
|
-
}];
|
|
124
|
-
readonly name: "Lockdown";
|
|
125
|
-
readonly type: "event";
|
|
126
|
-
}, {
|
|
127
|
-
readonly anonymous: false;
|
|
128
|
-
readonly inputs: readonly [{
|
|
129
|
-
readonly indexed: true;
|
|
130
|
-
readonly internalType: "address";
|
|
131
|
-
readonly name: "owner";
|
|
132
|
-
readonly type: "address";
|
|
133
|
-
}, {
|
|
134
|
-
readonly indexed: true;
|
|
135
|
-
readonly internalType: "address";
|
|
136
|
-
readonly name: "token";
|
|
137
|
-
readonly type: "address";
|
|
138
|
-
}, {
|
|
139
|
-
readonly indexed: true;
|
|
140
|
-
readonly internalType: "address";
|
|
141
|
-
readonly name: "spender";
|
|
142
|
-
readonly type: "address";
|
|
143
|
-
}, {
|
|
144
|
-
readonly indexed: false;
|
|
145
|
-
readonly internalType: "uint48";
|
|
146
|
-
readonly name: "newNonce";
|
|
147
|
-
readonly type: "uint48";
|
|
148
|
-
}, {
|
|
149
|
-
readonly indexed: false;
|
|
150
|
-
readonly internalType: "uint48";
|
|
151
|
-
readonly name: "oldNonce";
|
|
152
|
-
readonly type: "uint48";
|
|
153
|
-
}];
|
|
154
|
-
readonly name: "NonceInvalidation";
|
|
155
|
-
readonly type: "event";
|
|
156
|
-
}, {
|
|
157
|
-
readonly anonymous: false;
|
|
158
|
-
readonly inputs: readonly [{
|
|
159
|
-
readonly indexed: true;
|
|
160
|
-
readonly internalType: "address";
|
|
161
|
-
readonly name: "owner";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
}, {
|
|
164
|
-
readonly indexed: true;
|
|
165
|
-
readonly internalType: "address";
|
|
166
|
-
readonly name: "token";
|
|
167
|
-
readonly type: "address";
|
|
168
|
-
}, {
|
|
169
|
-
readonly indexed: true;
|
|
170
|
-
readonly internalType: "address";
|
|
171
|
-
readonly name: "spender";
|
|
172
|
-
readonly type: "address";
|
|
173
|
-
}, {
|
|
174
|
-
readonly indexed: false;
|
|
175
|
-
readonly internalType: "uint160";
|
|
176
|
-
readonly name: "amount";
|
|
177
|
-
readonly type: "uint160";
|
|
178
|
-
}, {
|
|
179
|
-
readonly indexed: false;
|
|
180
|
-
readonly internalType: "uint48";
|
|
181
|
-
readonly name: "expiration";
|
|
182
|
-
readonly type: "uint48";
|
|
183
|
-
}, {
|
|
184
|
-
readonly indexed: false;
|
|
185
|
-
readonly internalType: "uint48";
|
|
186
|
-
readonly name: "nonce";
|
|
187
|
-
readonly type: "uint48";
|
|
188
|
-
}];
|
|
189
|
-
readonly name: "Permit";
|
|
190
|
-
readonly type: "event";
|
|
191
|
-
}, {
|
|
192
|
-
readonly anonymous: false;
|
|
193
|
-
readonly inputs: readonly [{
|
|
194
|
-
readonly indexed: true;
|
|
195
|
-
readonly internalType: "address";
|
|
196
|
-
readonly name: "owner";
|
|
197
|
-
readonly type: "address";
|
|
198
|
-
}, {
|
|
199
|
-
readonly indexed: false;
|
|
200
|
-
readonly internalType: "uint256";
|
|
201
|
-
readonly name: "word";
|
|
202
|
-
readonly type: "uint256";
|
|
203
|
-
}, {
|
|
204
|
-
readonly indexed: false;
|
|
205
|
-
readonly internalType: "uint256";
|
|
206
|
-
readonly name: "mask";
|
|
207
|
-
readonly type: "uint256";
|
|
208
|
-
}];
|
|
209
|
-
readonly name: "UnorderedNonceInvalidation";
|
|
210
|
-
readonly type: "event";
|
|
211
|
-
}, {
|
|
212
|
-
readonly inputs: readonly [];
|
|
213
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
214
|
-
readonly outputs: readonly [{
|
|
215
|
-
readonly internalType: "bytes32";
|
|
216
|
-
readonly name: "";
|
|
217
|
-
readonly type: "bytes32";
|
|
218
|
-
}];
|
|
219
|
-
readonly stateMutability: "view";
|
|
220
|
-
readonly type: "function";
|
|
221
|
-
}, {
|
|
222
|
-
readonly inputs: readonly [{
|
|
223
|
-
readonly internalType: "address";
|
|
224
|
-
readonly name: "";
|
|
225
|
-
readonly type: "address";
|
|
226
|
-
}, {
|
|
227
|
-
readonly internalType: "address";
|
|
228
|
-
readonly name: "";
|
|
229
|
-
readonly type: "address";
|
|
230
|
-
}, {
|
|
231
|
-
readonly internalType: "address";
|
|
232
|
-
readonly name: "";
|
|
233
|
-
readonly type: "address";
|
|
234
|
-
}];
|
|
235
|
-
readonly name: "allowance";
|
|
236
|
-
readonly outputs: readonly [{
|
|
237
|
-
readonly internalType: "uint160";
|
|
238
|
-
readonly name: "amount";
|
|
239
|
-
readonly type: "uint160";
|
|
240
|
-
}, {
|
|
241
|
-
readonly internalType: "uint48";
|
|
242
|
-
readonly name: "expiration";
|
|
243
|
-
readonly type: "uint48";
|
|
244
|
-
}, {
|
|
245
|
-
readonly internalType: "uint48";
|
|
246
|
-
readonly name: "nonce";
|
|
247
|
-
readonly type: "uint48";
|
|
248
|
-
}];
|
|
249
|
-
readonly stateMutability: "view";
|
|
250
|
-
readonly type: "function";
|
|
251
|
-
}, {
|
|
252
|
-
readonly inputs: readonly [{
|
|
253
|
-
readonly internalType: "address";
|
|
254
|
-
readonly name: "token";
|
|
255
|
-
readonly type: "address";
|
|
256
|
-
}, {
|
|
257
|
-
readonly internalType: "address";
|
|
258
|
-
readonly name: "spender";
|
|
259
|
-
readonly type: "address";
|
|
260
|
-
}, {
|
|
261
|
-
readonly internalType: "uint160";
|
|
262
|
-
readonly name: "amount";
|
|
263
|
-
readonly type: "uint160";
|
|
264
|
-
}, {
|
|
265
|
-
readonly internalType: "uint48";
|
|
266
|
-
readonly name: "expiration";
|
|
267
|
-
readonly type: "uint48";
|
|
268
|
-
}];
|
|
269
|
-
readonly name: "approve";
|
|
270
|
-
readonly outputs: readonly [];
|
|
271
|
-
readonly stateMutability: "nonpayable";
|
|
272
|
-
readonly type: "function";
|
|
273
|
-
}, {
|
|
274
|
-
readonly inputs: readonly [{
|
|
275
|
-
readonly internalType: "address";
|
|
276
|
-
readonly name: "token";
|
|
277
|
-
readonly type: "address";
|
|
278
|
-
}, {
|
|
279
|
-
readonly internalType: "address";
|
|
280
|
-
readonly name: "spender";
|
|
281
|
-
readonly type: "address";
|
|
282
|
-
}, {
|
|
283
|
-
readonly internalType: "uint48";
|
|
284
|
-
readonly name: "newNonce";
|
|
285
|
-
readonly type: "uint48";
|
|
286
|
-
}];
|
|
287
|
-
readonly name: "invalidateNonces";
|
|
288
|
-
readonly outputs: readonly [];
|
|
289
|
-
readonly stateMutability: "nonpayable";
|
|
290
|
-
readonly type: "function";
|
|
291
|
-
}, {
|
|
292
|
-
readonly inputs: readonly [{
|
|
293
|
-
readonly internalType: "uint256";
|
|
294
|
-
readonly name: "wordPos";
|
|
295
|
-
readonly type: "uint256";
|
|
296
|
-
}, {
|
|
297
|
-
readonly internalType: "uint256";
|
|
298
|
-
readonly name: "mask";
|
|
299
|
-
readonly type: "uint256";
|
|
300
|
-
}];
|
|
301
|
-
readonly name: "invalidateUnorderedNonces";
|
|
302
|
-
readonly outputs: readonly [];
|
|
303
|
-
readonly stateMutability: "nonpayable";
|
|
304
|
-
readonly type: "function";
|
|
305
|
-
}, {
|
|
306
|
-
readonly inputs: readonly [{
|
|
307
|
-
readonly components: readonly [{
|
|
308
|
-
readonly internalType: "address";
|
|
309
|
-
readonly name: "token";
|
|
310
|
-
readonly type: "address";
|
|
311
|
-
}, {
|
|
312
|
-
readonly internalType: "address";
|
|
313
|
-
readonly name: "spender";
|
|
314
|
-
readonly type: "address";
|
|
315
|
-
}];
|
|
316
|
-
readonly internalType: "struct IAllowanceTransfer.TokenSpenderPair[]";
|
|
317
|
-
readonly name: "approvals";
|
|
318
|
-
readonly type: "tuple[]";
|
|
319
|
-
}];
|
|
320
|
-
readonly name: "lockdown";
|
|
321
|
-
readonly outputs: readonly [];
|
|
322
|
-
readonly stateMutability: "nonpayable";
|
|
323
|
-
readonly type: "function";
|
|
324
|
-
}, {
|
|
325
|
-
readonly inputs: readonly [{
|
|
326
|
-
readonly internalType: "address";
|
|
327
|
-
readonly name: "";
|
|
328
|
-
readonly type: "address";
|
|
329
|
-
}, {
|
|
330
|
-
readonly internalType: "uint256";
|
|
331
|
-
readonly name: "";
|
|
332
|
-
readonly type: "uint256";
|
|
333
|
-
}];
|
|
334
|
-
readonly name: "nonceBitmap";
|
|
335
|
-
readonly outputs: readonly [{
|
|
336
|
-
readonly internalType: "uint256";
|
|
337
|
-
readonly name: "";
|
|
338
|
-
readonly type: "uint256";
|
|
339
|
-
}];
|
|
340
|
-
readonly stateMutability: "view";
|
|
341
|
-
readonly type: "function";
|
|
342
|
-
}, {
|
|
343
|
-
readonly inputs: readonly [{
|
|
344
|
-
readonly internalType: "address";
|
|
345
|
-
readonly name: "owner";
|
|
346
|
-
readonly type: "address";
|
|
347
|
-
}, {
|
|
348
|
-
readonly components: readonly [{
|
|
349
|
-
readonly components: readonly [{
|
|
350
|
-
readonly internalType: "address";
|
|
351
|
-
readonly name: "token";
|
|
352
|
-
readonly type: "address";
|
|
353
|
-
}, {
|
|
354
|
-
readonly internalType: "uint160";
|
|
355
|
-
readonly name: "amount";
|
|
356
|
-
readonly type: "uint160";
|
|
357
|
-
}, {
|
|
358
|
-
readonly internalType: "uint48";
|
|
359
|
-
readonly name: "expiration";
|
|
360
|
-
readonly type: "uint48";
|
|
361
|
-
}, {
|
|
362
|
-
readonly internalType: "uint48";
|
|
363
|
-
readonly name: "nonce";
|
|
364
|
-
readonly type: "uint48";
|
|
365
|
-
}];
|
|
366
|
-
readonly internalType: "struct IAllowanceTransfer.PermitDetails[]";
|
|
367
|
-
readonly name: "details";
|
|
368
|
-
readonly type: "tuple[]";
|
|
369
|
-
}, {
|
|
370
|
-
readonly internalType: "address";
|
|
371
|
-
readonly name: "spender";
|
|
372
|
-
readonly type: "address";
|
|
373
|
-
}, {
|
|
374
|
-
readonly internalType: "uint256";
|
|
375
|
-
readonly name: "sigDeadline";
|
|
376
|
-
readonly type: "uint256";
|
|
377
|
-
}];
|
|
378
|
-
readonly internalType: "struct IAllowanceTransfer.PermitBatch";
|
|
379
|
-
readonly name: "permitBatch";
|
|
380
|
-
readonly type: "tuple";
|
|
381
|
-
}, {
|
|
382
|
-
readonly internalType: "bytes";
|
|
383
|
-
readonly name: "signature";
|
|
384
|
-
readonly type: "bytes";
|
|
385
|
-
}];
|
|
386
|
-
readonly name: "permit";
|
|
387
|
-
readonly outputs: readonly [];
|
|
388
|
-
readonly stateMutability: "nonpayable";
|
|
389
|
-
readonly type: "function";
|
|
390
|
-
}, {
|
|
391
|
-
readonly inputs: readonly [{
|
|
392
|
-
readonly internalType: "address";
|
|
393
|
-
readonly name: "owner";
|
|
394
|
-
readonly type: "address";
|
|
395
|
-
}, {
|
|
396
|
-
readonly components: readonly [{
|
|
397
|
-
readonly components: readonly [{
|
|
398
|
-
readonly internalType: "address";
|
|
399
|
-
readonly name: "token";
|
|
400
|
-
readonly type: "address";
|
|
401
|
-
}, {
|
|
402
|
-
readonly internalType: "uint160";
|
|
403
|
-
readonly name: "amount";
|
|
404
|
-
readonly type: "uint160";
|
|
405
|
-
}, {
|
|
406
|
-
readonly internalType: "uint48";
|
|
407
|
-
readonly name: "expiration";
|
|
408
|
-
readonly type: "uint48";
|
|
409
|
-
}, {
|
|
410
|
-
readonly internalType: "uint48";
|
|
411
|
-
readonly name: "nonce";
|
|
412
|
-
readonly type: "uint48";
|
|
413
|
-
}];
|
|
414
|
-
readonly internalType: "struct IAllowanceTransfer.PermitDetails";
|
|
415
|
-
readonly name: "details";
|
|
416
|
-
readonly type: "tuple";
|
|
417
|
-
}, {
|
|
418
|
-
readonly internalType: "address";
|
|
419
|
-
readonly name: "spender";
|
|
420
|
-
readonly type: "address";
|
|
421
|
-
}, {
|
|
422
|
-
readonly internalType: "uint256";
|
|
423
|
-
readonly name: "sigDeadline";
|
|
424
|
-
readonly type: "uint256";
|
|
425
|
-
}];
|
|
426
|
-
readonly internalType: "struct IAllowanceTransfer.PermitSingle";
|
|
427
|
-
readonly name: "permitSingle";
|
|
428
|
-
readonly type: "tuple";
|
|
429
|
-
}, {
|
|
430
|
-
readonly internalType: "bytes";
|
|
431
|
-
readonly name: "signature";
|
|
432
|
-
readonly type: "bytes";
|
|
433
|
-
}];
|
|
434
|
-
readonly name: "permit";
|
|
435
|
-
readonly outputs: readonly [];
|
|
436
|
-
readonly stateMutability: "nonpayable";
|
|
437
|
-
readonly type: "function";
|
|
438
|
-
}, {
|
|
439
|
-
readonly inputs: readonly [{
|
|
440
|
-
readonly components: readonly [{
|
|
441
|
-
readonly components: readonly [{
|
|
442
|
-
readonly internalType: "address";
|
|
443
|
-
readonly name: "token";
|
|
444
|
-
readonly type: "address";
|
|
445
|
-
}, {
|
|
446
|
-
readonly internalType: "uint256";
|
|
447
|
-
readonly name: "amount";
|
|
448
|
-
readonly type: "uint256";
|
|
449
|
-
}];
|
|
450
|
-
readonly internalType: "struct ISignatureTransfer.TokenPermissions";
|
|
451
|
-
readonly name: "permitted";
|
|
452
|
-
readonly type: "tuple";
|
|
453
|
-
}, {
|
|
454
|
-
readonly internalType: "uint256";
|
|
455
|
-
readonly name: "nonce";
|
|
456
|
-
readonly type: "uint256";
|
|
457
|
-
}, {
|
|
458
|
-
readonly internalType: "uint256";
|
|
459
|
-
readonly name: "deadline";
|
|
460
|
-
readonly type: "uint256";
|
|
461
|
-
}];
|
|
462
|
-
readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
|
|
463
|
-
readonly name: "permit";
|
|
464
|
-
readonly type: "tuple";
|
|
465
|
-
}, {
|
|
466
|
-
readonly components: readonly [{
|
|
467
|
-
readonly internalType: "address";
|
|
468
|
-
readonly name: "to";
|
|
469
|
-
readonly type: "address";
|
|
470
|
-
}, {
|
|
471
|
-
readonly internalType: "uint256";
|
|
472
|
-
readonly name: "requestedAmount";
|
|
473
|
-
readonly type: "uint256";
|
|
474
|
-
}];
|
|
475
|
-
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
|
|
476
|
-
readonly name: "transferDetails";
|
|
477
|
-
readonly type: "tuple";
|
|
478
|
-
}, {
|
|
479
|
-
readonly internalType: "address";
|
|
480
|
-
readonly name: "owner";
|
|
481
|
-
readonly type: "address";
|
|
482
|
-
}, {
|
|
483
|
-
readonly internalType: "bytes";
|
|
484
|
-
readonly name: "signature";
|
|
485
|
-
readonly type: "bytes";
|
|
486
|
-
}];
|
|
487
|
-
readonly name: "permitTransferFrom";
|
|
488
|
-
readonly outputs: readonly [];
|
|
489
|
-
readonly stateMutability: "nonpayable";
|
|
490
|
-
readonly type: "function";
|
|
491
|
-
}, {
|
|
492
|
-
readonly inputs: readonly [{
|
|
493
|
-
readonly components: readonly [{
|
|
494
|
-
readonly components: readonly [{
|
|
495
|
-
readonly internalType: "address";
|
|
496
|
-
readonly name: "token";
|
|
497
|
-
readonly type: "address";
|
|
498
|
-
}, {
|
|
499
|
-
readonly internalType: "uint256";
|
|
500
|
-
readonly name: "amount";
|
|
501
|
-
readonly type: "uint256";
|
|
502
|
-
}];
|
|
503
|
-
readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
|
|
504
|
-
readonly name: "permitted";
|
|
505
|
-
readonly type: "tuple[]";
|
|
506
|
-
}, {
|
|
507
|
-
readonly internalType: "uint256";
|
|
508
|
-
readonly name: "nonce";
|
|
509
|
-
readonly type: "uint256";
|
|
510
|
-
}, {
|
|
511
|
-
readonly internalType: "uint256";
|
|
512
|
-
readonly name: "deadline";
|
|
513
|
-
readonly type: "uint256";
|
|
514
|
-
}];
|
|
515
|
-
readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
|
|
516
|
-
readonly name: "permit";
|
|
517
|
-
readonly type: "tuple";
|
|
518
|
-
}, {
|
|
519
|
-
readonly components: readonly [{
|
|
520
|
-
readonly internalType: "address";
|
|
521
|
-
readonly name: "to";
|
|
522
|
-
readonly type: "address";
|
|
523
|
-
}, {
|
|
524
|
-
readonly internalType: "uint256";
|
|
525
|
-
readonly name: "requestedAmount";
|
|
526
|
-
readonly type: "uint256";
|
|
527
|
-
}];
|
|
528
|
-
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
|
|
529
|
-
readonly name: "transferDetails";
|
|
530
|
-
readonly type: "tuple[]";
|
|
531
|
-
}, {
|
|
532
|
-
readonly internalType: "address";
|
|
533
|
-
readonly name: "owner";
|
|
534
|
-
readonly type: "address";
|
|
535
|
-
}, {
|
|
536
|
-
readonly internalType: "bytes";
|
|
537
|
-
readonly name: "signature";
|
|
538
|
-
readonly type: "bytes";
|
|
539
|
-
}];
|
|
540
|
-
readonly name: "permitTransferFrom";
|
|
541
|
-
readonly outputs: readonly [];
|
|
542
|
-
readonly stateMutability: "nonpayable";
|
|
543
|
-
readonly type: "function";
|
|
544
|
-
}, {
|
|
545
|
-
readonly inputs: readonly [{
|
|
546
|
-
readonly components: readonly [{
|
|
547
|
-
readonly components: readonly [{
|
|
548
|
-
readonly internalType: "address";
|
|
549
|
-
readonly name: "token";
|
|
550
|
-
readonly type: "address";
|
|
551
|
-
}, {
|
|
552
|
-
readonly internalType: "uint256";
|
|
553
|
-
readonly name: "amount";
|
|
554
|
-
readonly type: "uint256";
|
|
555
|
-
}];
|
|
556
|
-
readonly internalType: "struct ISignatureTransfer.TokenPermissions";
|
|
557
|
-
readonly name: "permitted";
|
|
558
|
-
readonly type: "tuple";
|
|
559
|
-
}, {
|
|
560
|
-
readonly internalType: "uint256";
|
|
561
|
-
readonly name: "nonce";
|
|
562
|
-
readonly type: "uint256";
|
|
563
|
-
}, {
|
|
564
|
-
readonly internalType: "uint256";
|
|
565
|
-
readonly name: "deadline";
|
|
566
|
-
readonly type: "uint256";
|
|
567
|
-
}];
|
|
568
|
-
readonly internalType: "struct ISignatureTransfer.PermitTransferFrom";
|
|
569
|
-
readonly name: "permit";
|
|
570
|
-
readonly type: "tuple";
|
|
571
|
-
}, {
|
|
572
|
-
readonly components: readonly [{
|
|
573
|
-
readonly internalType: "address";
|
|
574
|
-
readonly name: "to";
|
|
575
|
-
readonly type: "address";
|
|
576
|
-
}, {
|
|
577
|
-
readonly internalType: "uint256";
|
|
578
|
-
readonly name: "requestedAmount";
|
|
579
|
-
readonly type: "uint256";
|
|
580
|
-
}];
|
|
581
|
-
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails";
|
|
582
|
-
readonly name: "transferDetails";
|
|
583
|
-
readonly type: "tuple";
|
|
584
|
-
}, {
|
|
585
|
-
readonly internalType: "address";
|
|
586
|
-
readonly name: "owner";
|
|
587
|
-
readonly type: "address";
|
|
588
|
-
}, {
|
|
589
|
-
readonly internalType: "bytes32";
|
|
590
|
-
readonly name: "witness";
|
|
591
|
-
readonly type: "bytes32";
|
|
592
|
-
}, {
|
|
593
|
-
readonly internalType: "string";
|
|
594
|
-
readonly name: "witnessTypeString";
|
|
595
|
-
readonly type: "string";
|
|
596
|
-
}, {
|
|
597
|
-
readonly internalType: "bytes";
|
|
598
|
-
readonly name: "signature";
|
|
599
|
-
readonly type: "bytes";
|
|
600
|
-
}];
|
|
601
|
-
readonly name: "permitWitnessTransferFrom";
|
|
602
|
-
readonly outputs: readonly [];
|
|
603
|
-
readonly stateMutability: "nonpayable";
|
|
604
|
-
readonly type: "function";
|
|
605
|
-
}, {
|
|
606
|
-
readonly inputs: readonly [{
|
|
607
|
-
readonly components: readonly [{
|
|
608
|
-
readonly components: readonly [{
|
|
609
|
-
readonly internalType: "address";
|
|
610
|
-
readonly name: "token";
|
|
611
|
-
readonly type: "address";
|
|
612
|
-
}, {
|
|
613
|
-
readonly internalType: "uint256";
|
|
614
|
-
readonly name: "amount";
|
|
615
|
-
readonly type: "uint256";
|
|
616
|
-
}];
|
|
617
|
-
readonly internalType: "struct ISignatureTransfer.TokenPermissions[]";
|
|
618
|
-
readonly name: "permitted";
|
|
619
|
-
readonly type: "tuple[]";
|
|
620
|
-
}, {
|
|
621
|
-
readonly internalType: "uint256";
|
|
622
|
-
readonly name: "nonce";
|
|
623
|
-
readonly type: "uint256";
|
|
624
|
-
}, {
|
|
625
|
-
readonly internalType: "uint256";
|
|
626
|
-
readonly name: "deadline";
|
|
627
|
-
readonly type: "uint256";
|
|
628
|
-
}];
|
|
629
|
-
readonly internalType: "struct ISignatureTransfer.PermitBatchTransferFrom";
|
|
630
|
-
readonly name: "permit";
|
|
631
|
-
readonly type: "tuple";
|
|
632
|
-
}, {
|
|
633
|
-
readonly components: readonly [{
|
|
634
|
-
readonly internalType: "address";
|
|
635
|
-
readonly name: "to";
|
|
636
|
-
readonly type: "address";
|
|
637
|
-
}, {
|
|
638
|
-
readonly internalType: "uint256";
|
|
639
|
-
readonly name: "requestedAmount";
|
|
640
|
-
readonly type: "uint256";
|
|
641
|
-
}];
|
|
642
|
-
readonly internalType: "struct ISignatureTransfer.SignatureTransferDetails[]";
|
|
643
|
-
readonly name: "transferDetails";
|
|
644
|
-
readonly type: "tuple[]";
|
|
645
|
-
}, {
|
|
646
|
-
readonly internalType: "address";
|
|
647
|
-
readonly name: "owner";
|
|
648
|
-
readonly type: "address";
|
|
649
|
-
}, {
|
|
650
|
-
readonly internalType: "bytes32";
|
|
651
|
-
readonly name: "witness";
|
|
652
|
-
readonly type: "bytes32";
|
|
653
|
-
}, {
|
|
654
|
-
readonly internalType: "string";
|
|
655
|
-
readonly name: "witnessTypeString";
|
|
656
|
-
readonly type: "string";
|
|
657
|
-
}, {
|
|
658
|
-
readonly internalType: "bytes";
|
|
659
|
-
readonly name: "signature";
|
|
660
|
-
readonly type: "bytes";
|
|
661
|
-
}];
|
|
662
|
-
readonly name: "permitWitnessTransferFrom";
|
|
663
|
-
readonly outputs: readonly [];
|
|
664
|
-
readonly stateMutability: "nonpayable";
|
|
665
|
-
readonly type: "function";
|
|
666
|
-
}, {
|
|
667
|
-
readonly inputs: readonly [{
|
|
668
|
-
readonly components: readonly [{
|
|
669
|
-
readonly internalType: "address";
|
|
670
|
-
readonly name: "from";
|
|
671
|
-
readonly type: "address";
|
|
672
|
-
}, {
|
|
673
|
-
readonly internalType: "address";
|
|
674
|
-
readonly name: "to";
|
|
675
|
-
readonly type: "address";
|
|
676
|
-
}, {
|
|
677
|
-
readonly internalType: "uint160";
|
|
678
|
-
readonly name: "amount";
|
|
679
|
-
readonly type: "uint160";
|
|
680
|
-
}, {
|
|
681
|
-
readonly internalType: "address";
|
|
682
|
-
readonly name: "token";
|
|
683
|
-
readonly type: "address";
|
|
684
|
-
}];
|
|
685
|
-
readonly internalType: "struct IAllowanceTransfer.AllowanceTransferDetails[]";
|
|
686
|
-
readonly name: "transferDetails";
|
|
687
|
-
readonly type: "tuple[]";
|
|
688
|
-
}];
|
|
689
|
-
readonly name: "transferFrom";
|
|
690
|
-
readonly outputs: readonly [];
|
|
691
|
-
readonly stateMutability: "nonpayable";
|
|
692
|
-
readonly type: "function";
|
|
693
|
-
}, {
|
|
694
|
-
readonly inputs: readonly [{
|
|
695
|
-
readonly internalType: "address";
|
|
696
|
-
readonly name: "from";
|
|
697
|
-
readonly type: "address";
|
|
698
|
-
}, {
|
|
699
|
-
readonly internalType: "address";
|
|
700
|
-
readonly name: "to";
|
|
701
|
-
readonly type: "address";
|
|
702
|
-
}, {
|
|
703
|
-
readonly internalType: "uint160";
|
|
704
|
-
readonly name: "amount";
|
|
705
|
-
readonly type: "uint160";
|
|
706
|
-
}, {
|
|
707
|
-
readonly internalType: "address";
|
|
708
|
-
readonly name: "token";
|
|
709
|
-
readonly type: "address";
|
|
710
|
-
}];
|
|
711
|
-
readonly name: "transferFrom";
|
|
712
|
-
readonly outputs: readonly [];
|
|
713
|
-
readonly stateMutability: "nonpayable";
|
|
714
|
-
readonly type: "function";
|
|
715
|
-
}] | readonly [{
|
|
716
|
-
readonly constant: true;
|
|
717
|
-
readonly inputs: readonly [];
|
|
718
|
-
readonly name: "name";
|
|
719
|
-
readonly outputs: readonly [{
|
|
720
|
-
readonly name: "";
|
|
721
|
-
readonly type: "string";
|
|
722
|
-
}];
|
|
723
|
-
readonly payable: false;
|
|
724
|
-
readonly stateMutability: "view";
|
|
725
|
-
readonly type: "function";
|
|
726
|
-
}, {
|
|
727
|
-
readonly constant: false;
|
|
728
|
-
readonly inputs: readonly [{
|
|
729
|
-
readonly name: "_spender";
|
|
730
|
-
readonly type: "address";
|
|
731
|
-
}, {
|
|
732
|
-
readonly name: "_value";
|
|
733
|
-
readonly type: "uint256";
|
|
734
|
-
}];
|
|
735
|
-
readonly name: "approve";
|
|
736
|
-
readonly outputs: readonly [];
|
|
737
|
-
readonly payable: false;
|
|
738
|
-
readonly stateMutability: "nonpayable";
|
|
739
|
-
readonly type: "function";
|
|
740
|
-
}, {
|
|
741
|
-
readonly constant: true;
|
|
742
|
-
readonly inputs: readonly [];
|
|
743
|
-
readonly name: "totalSupply";
|
|
744
|
-
readonly outputs: readonly [{
|
|
745
|
-
readonly name: "";
|
|
746
|
-
readonly type: "uint256";
|
|
747
|
-
}];
|
|
748
|
-
readonly payable: false;
|
|
749
|
-
readonly stateMutability: "view";
|
|
750
|
-
readonly type: "function";
|
|
751
|
-
}, {
|
|
752
|
-
readonly constant: false;
|
|
753
|
-
readonly inputs: readonly [{
|
|
754
|
-
readonly name: "_from";
|
|
755
|
-
readonly type: "address";
|
|
756
|
-
}, {
|
|
757
|
-
readonly name: "_to";
|
|
758
|
-
readonly type: "address";
|
|
759
|
-
}, {
|
|
760
|
-
readonly name: "_value";
|
|
761
|
-
readonly type: "uint256";
|
|
762
|
-
}];
|
|
763
|
-
readonly name: "transferFrom";
|
|
764
|
-
readonly outputs: readonly [{
|
|
765
|
-
readonly name: "";
|
|
766
|
-
readonly type: "bool";
|
|
767
|
-
}];
|
|
768
|
-
readonly payable: false;
|
|
769
|
-
readonly stateMutability: "nonpayable";
|
|
770
|
-
readonly type: "function";
|
|
771
|
-
}, {
|
|
772
|
-
readonly constant: true;
|
|
773
|
-
readonly inputs: readonly [];
|
|
774
|
-
readonly name: "decimals";
|
|
775
|
-
readonly outputs: readonly [{
|
|
776
|
-
readonly name: "";
|
|
777
|
-
readonly type: "uint8";
|
|
778
|
-
}];
|
|
779
|
-
readonly payable: false;
|
|
780
|
-
readonly stateMutability: "view";
|
|
781
|
-
readonly type: "function";
|
|
782
|
-
}, {
|
|
783
|
-
readonly constant: true;
|
|
784
|
-
readonly inputs: readonly [{
|
|
785
|
-
readonly name: "_owner";
|
|
786
|
-
readonly type: "address";
|
|
787
|
-
}];
|
|
788
|
-
readonly name: "balanceOf";
|
|
789
|
-
readonly outputs: readonly [{
|
|
790
|
-
readonly name: "balance";
|
|
791
|
-
readonly type: "uint256";
|
|
792
|
-
}];
|
|
793
|
-
readonly payable: false;
|
|
794
|
-
readonly stateMutability: "view";
|
|
795
|
-
readonly type: "function";
|
|
796
|
-
}, {
|
|
797
|
-
readonly constant: true;
|
|
798
|
-
readonly inputs: readonly [];
|
|
799
|
-
readonly name: "symbol";
|
|
800
|
-
readonly outputs: readonly [{
|
|
801
|
-
readonly name: "";
|
|
802
|
-
readonly type: "string";
|
|
803
|
-
}];
|
|
804
|
-
readonly payable: false;
|
|
805
|
-
readonly stateMutability: "view";
|
|
806
|
-
readonly type: "function";
|
|
807
|
-
}, {
|
|
808
|
-
readonly constant: false;
|
|
809
|
-
readonly inputs: readonly [{
|
|
810
|
-
readonly name: "_to";
|
|
811
|
-
readonly type: "address";
|
|
812
|
-
}, {
|
|
813
|
-
readonly name: "_value";
|
|
814
|
-
readonly type: "uint256";
|
|
815
|
-
}];
|
|
816
|
-
readonly name: "transfer";
|
|
817
|
-
readonly outputs: readonly [{
|
|
818
|
-
readonly name: "";
|
|
819
|
-
readonly type: "bool";
|
|
820
|
-
}];
|
|
821
|
-
readonly payable: false;
|
|
822
|
-
readonly stateMutability: "nonpayable";
|
|
823
|
-
readonly type: "function";
|
|
824
|
-
}, {
|
|
825
|
-
readonly constant: true;
|
|
826
|
-
readonly inputs: readonly [{
|
|
827
|
-
readonly name: "_owner";
|
|
828
|
-
readonly type: "address";
|
|
829
|
-
}, {
|
|
830
|
-
readonly name: "_spender";
|
|
831
|
-
readonly type: "address";
|
|
832
|
-
}];
|
|
833
|
-
readonly name: "allowance";
|
|
834
|
-
readonly outputs: readonly [{
|
|
835
|
-
readonly name: "";
|
|
836
|
-
readonly type: "uint256";
|
|
837
|
-
}];
|
|
838
|
-
readonly payable: false;
|
|
839
|
-
readonly stateMutability: "view";
|
|
840
|
-
readonly type: "function";
|
|
841
|
-
}, {
|
|
842
|
-
readonly payable: true;
|
|
843
|
-
readonly stateMutability: "payable";
|
|
844
|
-
readonly type: "fallback";
|
|
845
|
-
}, {
|
|
846
|
-
readonly anonymous: false;
|
|
847
|
-
readonly inputs: readonly [{
|
|
848
|
-
readonly indexed: true;
|
|
849
|
-
readonly name: "owner";
|
|
850
|
-
readonly type: "address";
|
|
851
|
-
}, {
|
|
852
|
-
readonly indexed: true;
|
|
853
|
-
readonly name: "spender";
|
|
854
|
-
readonly type: "address";
|
|
855
|
-
}, {
|
|
856
|
-
readonly indexed: false;
|
|
857
|
-
readonly name: "value";
|
|
858
|
-
readonly type: "uint256";
|
|
859
|
-
}];
|
|
860
|
-
readonly name: "Approval";
|
|
861
|
-
readonly type: "event";
|
|
862
|
-
}, {
|
|
863
|
-
readonly anonymous: false;
|
|
864
|
-
readonly inputs: readonly [{
|
|
865
|
-
readonly indexed: true;
|
|
866
|
-
readonly name: "from";
|
|
867
|
-
readonly type: "address";
|
|
868
|
-
}, {
|
|
869
|
-
readonly indexed: true;
|
|
870
|
-
readonly name: "to";
|
|
871
|
-
readonly type: "address";
|
|
872
|
-
}, {
|
|
873
|
-
readonly indexed: false;
|
|
874
|
-
readonly name: "value";
|
|
875
|
-
readonly type: "uint256";
|
|
876
|
-
}];
|
|
877
|
-
readonly name: "Transfer";
|
|
878
|
-
readonly type: "event";
|
|
879
|
-
}];
|
|
880
|
-
getTradeQuotes(request: TradeQuotesRequest): Promise<TradeQuotesResponse>;
|
|
881
|
-
buildTradeTxn(request: TradeBuildTxnRequest): Promise<TradeBuildTxnResponse>;
|
|
882
|
-
getTradeTxnStatus({ txHash, txIds, chainId, }: {
|
|
883
|
-
txHash?: string;
|
|
884
|
-
txIds?: string;
|
|
885
|
-
chainId?: number;
|
|
886
|
-
}): Promise<TradeStatusResponse | Record<string, TradeStatusResponse>>;
|
|
887
|
-
getAllSupportedChains(): Promise<ChainData>;
|
|
888
|
-
getAllTokens(chainId: number, source?: string, account?: string): Promise<any>;
|
|
889
|
-
getTokenDetails(tokenAddress: string, chainId: number, account?: string, includeBalance?: boolean, includePrice?: boolean): Promise<TokenInfo>;
|
|
890
|
-
getTokensDetails(tokenAddresses: string[], chainId: number, account?: string, includeBalance?: boolean, includePrice?: boolean): Promise<Record<string, TokenInfo> | TokenInfo>;
|
|
891
|
-
getTokenPrices(tokenAddresses: string[], chainId: number): Promise<Record<string, string | null>>;
|
|
892
|
-
trade({ request, signer, txnData, batchTransaction, rpcUrls, }: {
|
|
893
|
-
request: TradeBuildTxnRequest;
|
|
894
|
-
signer: Signer | WalletClient;
|
|
895
|
-
txnData?: TradeBuildTxnResponse;
|
|
896
|
-
batchTransaction?: boolean;
|
|
897
|
-
rpcUrls?: string[];
|
|
898
|
-
}): Promise<import("../types").DZapTransactionResponse>;
|
|
899
|
-
tradeGasless({ request, signer, txnData, }: {
|
|
900
|
-
request: TradeBuildTxnRequest;
|
|
901
|
-
signer: Signer | WalletClient;
|
|
902
|
-
txnData?: GaslessTradeBuildTxnResponse;
|
|
903
|
-
}): Promise<import("../types").DZapTransactionResponse>;
|
|
904
|
-
sendTransaction({ chainId, signer, txnData }: {
|
|
905
|
-
chainId: number;
|
|
906
|
-
signer: Signer | WalletClient;
|
|
907
|
-
txnData: EvmTxData;
|
|
908
|
-
}): Promise<{
|
|
909
|
-
status: TxnStatus;
|
|
910
|
-
error: any;
|
|
911
|
-
errorMsg: any;
|
|
912
|
-
code: StatusCodes;
|
|
913
|
-
} | {
|
|
914
|
-
status: TxnStatus;
|
|
915
|
-
code: StatusCodes;
|
|
916
|
-
txnHash: HexString;
|
|
917
|
-
}>;
|
|
918
|
-
waitForBatchTransactionReceipt({ walletClient, batchHash }: {
|
|
919
|
-
walletClient: WalletClient;
|
|
920
|
-
batchHash: HexString;
|
|
921
|
-
}): Promise<import("../types/wallet").WalletCallReceipt>;
|
|
922
|
-
decodeTxnData({ data, service, chainId }: {
|
|
923
|
-
data: TransactionReceipt;
|
|
924
|
-
service: AvailableDZapServices;
|
|
925
|
-
chainId: number;
|
|
926
|
-
}): Promise<{
|
|
927
|
-
swapFailPairs: string[];
|
|
928
|
-
swapInfo: import("../types").SwapInfo | import("../types").SwapInfo[];
|
|
929
|
-
}>;
|
|
930
|
-
calculatePoints(request: CalculatePointsRequest): Promise<{
|
|
931
|
-
points: number;
|
|
932
|
-
}>;
|
|
933
|
-
getDZapContractAddress({ chainId, service }: {
|
|
934
|
-
chainId: number;
|
|
935
|
-
service: AvailableDZapServices;
|
|
936
|
-
}): Promise<string>;
|
|
937
|
-
getAllowance({ chainId, sender, tokens, service, rpcUrls, spender, mode, }: {
|
|
938
|
-
chainId: number;
|
|
939
|
-
sender: HexString;
|
|
940
|
-
tokens: {
|
|
941
|
-
address: HexString;
|
|
942
|
-
amount: string;
|
|
943
|
-
}[];
|
|
944
|
-
service: AvailableDZapServices;
|
|
945
|
-
rpcUrls?: string[];
|
|
946
|
-
spender?: HexString;
|
|
947
|
-
mode?: ApprovalMode;
|
|
948
|
-
}): Promise<{
|
|
949
|
-
status: TxnStatus;
|
|
950
|
-
code: StatusCodes;
|
|
951
|
-
data: {
|
|
952
|
-
[key: string]: {
|
|
953
|
-
allowance: bigint;
|
|
954
|
-
approvalNeeded: boolean;
|
|
955
|
-
signatureNeeded: boolean;
|
|
956
|
-
};
|
|
957
|
-
};
|
|
958
|
-
}>;
|
|
959
|
-
approve({ chainId, signer, tokens, approvalTxnCallback, service, mode, rpcUrls, spender, }: {
|
|
960
|
-
chainId: number;
|
|
961
|
-
signer: WalletClient | Signer;
|
|
962
|
-
tokens: {
|
|
963
|
-
address: HexString;
|
|
964
|
-
amount: string;
|
|
965
|
-
}[];
|
|
966
|
-
approvalTxnCallback?: ({ txnDetails, address, }: {
|
|
967
|
-
txnDetails: {
|
|
968
|
-
txnHash: string;
|
|
969
|
-
code: StatusCodes;
|
|
970
|
-
status: TxnStatus;
|
|
971
|
-
};
|
|
972
|
-
address: HexString;
|
|
973
|
-
}) => Promise<TxnStatus | null>;
|
|
974
|
-
service: AvailableDZapServices;
|
|
975
|
-
spender?: HexString;
|
|
976
|
-
rpcUrls?: string[];
|
|
977
|
-
mode?: ApprovalMode;
|
|
978
|
-
}): Promise<{
|
|
979
|
-
status: TxnStatus;
|
|
980
|
-
code: StatusCodes;
|
|
981
|
-
}>;
|
|
982
|
-
sign(params: Prettify<Omit<GasSignatureParams, 'spender' | 'permitType' | 'rpcUrls' | 'gasless' | 'contractVersion'> & {
|
|
983
|
-
spender?: HexString;
|
|
984
|
-
permitType?: PermitMode;
|
|
985
|
-
rpcUrls?: string[];
|
|
986
|
-
service: AvailableDZapServices;
|
|
987
|
-
}>): Promise<SignPermitResponse>;
|
|
988
|
-
zap({ request, steps, signer }: {
|
|
989
|
-
request: ZapBuildTxnRequest;
|
|
990
|
-
signer: WalletClient | Signer;
|
|
991
|
-
steps?: ZapTransactionStep[];
|
|
992
|
-
}): Promise<import("../types").DZapTransactionResponse | {
|
|
993
|
-
status: TxnStatus.success;
|
|
994
|
-
code: StatusCodes | number;
|
|
995
|
-
txnHash: HexString;
|
|
996
|
-
}>;
|
|
997
|
-
buildZapTxn(request: ZapBuildTxnRequest): Promise<ZapBuildTxnResponse>;
|
|
998
|
-
getZapQuote(request: ZapQuoteRequest): Promise<ZapQuoteResponse>;
|
|
999
|
-
getZapTxnStatus(request: ZapStatusRequest): Promise<ZapStatusResponse>;
|
|
1000
|
-
getBalances(chainId: number, account: string): Promise<TokenResponse>;
|
|
1001
|
-
sendBatchCalls({ walletClient, calls }: {
|
|
1002
|
-
walletClient: WalletClient;
|
|
1003
|
-
calls: BatchCallParams[];
|
|
1004
|
-
}): Promise<{
|
|
1005
|
-
id: string;
|
|
1006
|
-
} | null>;
|
|
1007
|
-
getZapPositions(request: ZapPositionsRequest): Promise<ZapPositionsResponse>;
|
|
1008
|
-
getZapPools(request: ZapPoolsRequest): Promise<ZapPoolsResponse>;
|
|
1009
|
-
getZapPoolDetails(request: ZapPoolDetailsRequest): Promise<ZapPoolDetails>;
|
|
1010
|
-
getZapChains(): Promise<ZapChains>;
|
|
1011
|
-
getZapProviders(): Promise<ZapProviders>;
|
|
1012
|
-
broadcastTradeTx(request: BroadcastTxParams): Promise<BroadcastTxResponse>;
|
|
1013
|
-
broadcastZapTx(request: BroadcastTxParams): Promise<BroadcastTxResponse>;
|
|
1014
|
-
}
|
|
1015
|
-
export default DZapClient;
|