@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,489 +0,0 @@
|
|
|
1
|
-
import { Signer } from 'ethers';
|
|
2
|
-
import { Prettify, TypedDataDomain, WalletClient } from 'viem';
|
|
3
|
-
import { DZapAbis, GaslessTxType, OtherAbis, QuoteFilters, Services, STATUS, STATUS_RESPONSE } from './../constants';
|
|
4
|
-
import { ApprovalModes } from './../constants/approval';
|
|
5
|
-
import { PermitTypes } from './../constants/permit';
|
|
6
|
-
import { AppEnv, ContractVersion, StatusCodes, TxnStatus } from './../enums';
|
|
7
|
-
import { PsbtInput, PsbtOutput } from './btc';
|
|
8
|
-
import { GaslessBridgeParams, GaslessSwapParams } from './permit';
|
|
9
|
-
export type HexString = `0x${string}`;
|
|
10
|
-
export type ChainData = {
|
|
11
|
-
[key in number]: Chain;
|
|
12
|
-
};
|
|
13
|
-
export type NativeTokenInfo = {
|
|
14
|
-
contract: string;
|
|
15
|
-
symbol: string;
|
|
16
|
-
decimals: number;
|
|
17
|
-
name: string;
|
|
18
|
-
balance: string;
|
|
19
|
-
price?: string;
|
|
20
|
-
logo: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const contractErrorActions: {
|
|
23
|
-
readonly TRY_ANOTHER_ROUTE: "TRY_ANOTHER_ROUTE";
|
|
24
|
-
readonly INCREASE_SLIPPAGE: "INCREASE_SLIPPAGE";
|
|
25
|
-
readonly INCREASE_ALLOWANCE: "INCREASE_ALLOWANCE";
|
|
26
|
-
};
|
|
27
|
-
export type ContractErrorResponse = {
|
|
28
|
-
status: string;
|
|
29
|
-
txId: string;
|
|
30
|
-
code: number;
|
|
31
|
-
message: string;
|
|
32
|
-
error: unknown;
|
|
33
|
-
action: keyof typeof contractErrorActions;
|
|
34
|
-
details?: unknown;
|
|
35
|
-
};
|
|
36
|
-
export type CalculatePointsRequest = {
|
|
37
|
-
srcTokens: {
|
|
38
|
-
amount: string;
|
|
39
|
-
address: string;
|
|
40
|
-
decimals: number;
|
|
41
|
-
}[];
|
|
42
|
-
destTokens: {
|
|
43
|
-
amount: string;
|
|
44
|
-
address: string;
|
|
45
|
-
decimals: number;
|
|
46
|
-
}[];
|
|
47
|
-
providers: string[];
|
|
48
|
-
chainId: number;
|
|
49
|
-
account: string;
|
|
50
|
-
txType: 'swap' | 'bridge';
|
|
51
|
-
};
|
|
52
|
-
export type DisabledPermitTokens = {
|
|
53
|
-
eip2612: string[];
|
|
54
|
-
};
|
|
55
|
-
export type Chain = {
|
|
56
|
-
coinKey: string;
|
|
57
|
-
chainId: number;
|
|
58
|
-
chainType: string;
|
|
59
|
-
name: string;
|
|
60
|
-
coin: string;
|
|
61
|
-
dcaContract: string;
|
|
62
|
-
swapBridgeContract: string;
|
|
63
|
-
logo: string;
|
|
64
|
-
tokenlistUrl?: string;
|
|
65
|
-
multicallAddress?: HexString;
|
|
66
|
-
blockExplorerUrl: string;
|
|
67
|
-
nativeToken: NativeTokenInfo;
|
|
68
|
-
rpcProviders: ApiRpcResponse[];
|
|
69
|
-
pricingAvailable: boolean;
|
|
70
|
-
balanceAvailable: boolean;
|
|
71
|
-
supportedAs: {
|
|
72
|
-
source: boolean;
|
|
73
|
-
destination: boolean;
|
|
74
|
-
};
|
|
75
|
-
contracts?: Partial<{
|
|
76
|
-
router: string;
|
|
77
|
-
dca: string;
|
|
78
|
-
zap: string;
|
|
79
|
-
}>;
|
|
80
|
-
coingecko?: {
|
|
81
|
-
chainKey: string;
|
|
82
|
-
nativeTokenKey: string;
|
|
83
|
-
};
|
|
84
|
-
defiLlama?: {
|
|
85
|
-
chainKey: string;
|
|
86
|
-
nativeTokenKey: string;
|
|
87
|
-
};
|
|
88
|
-
disableMultiTxn: boolean;
|
|
89
|
-
isEnabled: boolean;
|
|
90
|
-
mainnet: boolean;
|
|
91
|
-
tags?: Tag[];
|
|
92
|
-
version?: ContractVersion;
|
|
93
|
-
};
|
|
94
|
-
export type ApiRpcResponse = {
|
|
95
|
-
url: string;
|
|
96
|
-
keyRequired: boolean;
|
|
97
|
-
keyType?: 'ALCHEMY_KEY' | 'BLASTAPI_KEY';
|
|
98
|
-
};
|
|
99
|
-
export type ProviderDetails = {
|
|
100
|
-
id: string;
|
|
101
|
-
name: string;
|
|
102
|
-
icon: string;
|
|
103
|
-
};
|
|
104
|
-
export type FeeDetails = {
|
|
105
|
-
address: string;
|
|
106
|
-
decimals: number;
|
|
107
|
-
chainId: number;
|
|
108
|
-
symbol: string;
|
|
109
|
-
logo?: string;
|
|
110
|
-
amount: string;
|
|
111
|
-
amountUSD: string;
|
|
112
|
-
included: boolean;
|
|
113
|
-
};
|
|
114
|
-
export type Fee = {
|
|
115
|
-
gasFee: FeeDetails[];
|
|
116
|
-
protocolFee: FeeDetails[];
|
|
117
|
-
providerFee: FeeDetails[];
|
|
118
|
-
};
|
|
119
|
-
export type QuoteFilter = keyof typeof QuoteFilters;
|
|
120
|
-
export type TradeQuotesRequest = {
|
|
121
|
-
fromChain: number;
|
|
122
|
-
gasless?: boolean;
|
|
123
|
-
data: TradeQuotesRequestData[];
|
|
124
|
-
disableEstimation?: boolean;
|
|
125
|
-
account?: string;
|
|
126
|
-
allowedProtocols?: string[];
|
|
127
|
-
filter?: QuoteFilter;
|
|
128
|
-
timingStrategy?: Partial<{
|
|
129
|
-
minWaitTimeMs: number;
|
|
130
|
-
maxWaitTimeMs: number;
|
|
131
|
-
subsequentDelayMs: number;
|
|
132
|
-
preferredResultCount: number;
|
|
133
|
-
}>;
|
|
134
|
-
};
|
|
135
|
-
export type TradeQuotesRequestData = {
|
|
136
|
-
amount: string;
|
|
137
|
-
srcToken: string;
|
|
138
|
-
srcDecimals?: number;
|
|
139
|
-
destToken: string;
|
|
140
|
-
destDecimals?: number;
|
|
141
|
-
toChain: number;
|
|
142
|
-
slippage: number;
|
|
143
|
-
selectedSource?: string;
|
|
144
|
-
};
|
|
145
|
-
export type TradeStep = {
|
|
146
|
-
type: string;
|
|
147
|
-
exchange: {
|
|
148
|
-
logo: string;
|
|
149
|
-
name: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export type TradePath = {
|
|
153
|
-
type: string;
|
|
154
|
-
exchange: ProviderDetails;
|
|
155
|
-
srcToken: Token;
|
|
156
|
-
srcAmount: string;
|
|
157
|
-
srcAmountUSD: string;
|
|
158
|
-
destToken: Token;
|
|
159
|
-
destAmount: string;
|
|
160
|
-
destAmountUSD: string;
|
|
161
|
-
fee: Fee;
|
|
162
|
-
};
|
|
163
|
-
export type Tag = {
|
|
164
|
-
title: string;
|
|
165
|
-
link?: string;
|
|
166
|
-
message?: string;
|
|
167
|
-
};
|
|
168
|
-
export type TradeQuote = {
|
|
169
|
-
bridgeDetails?: ProviderDetails;
|
|
170
|
-
providerDetails: ProviderDetails;
|
|
171
|
-
srcAmount: string;
|
|
172
|
-
srcAmountUSD: string;
|
|
173
|
-
destAmount: string;
|
|
174
|
-
destAmountUSD: string;
|
|
175
|
-
minDestAmount: string;
|
|
176
|
-
swapPerUnit: string;
|
|
177
|
-
srcToken: Token;
|
|
178
|
-
destToken: Token;
|
|
179
|
-
fee: Fee;
|
|
180
|
-
priceImpactPercent: string;
|
|
181
|
-
duration: string;
|
|
182
|
-
gasless: boolean;
|
|
183
|
-
steps: TradeStep[];
|
|
184
|
-
path: TradePath[];
|
|
185
|
-
tags?: Tag[];
|
|
186
|
-
additionalInfo?: AdditionalInfo;
|
|
187
|
-
};
|
|
188
|
-
export type TradeQuotesByProviderId = {
|
|
189
|
-
[providerAndBridge: string]: TradeQuote;
|
|
190
|
-
};
|
|
191
|
-
export type TradeQuotesResponse = {
|
|
192
|
-
[pair: string]: {
|
|
193
|
-
status?: string;
|
|
194
|
-
message?: string;
|
|
195
|
-
recommendedSource: string;
|
|
196
|
-
fastestSource?: string;
|
|
197
|
-
bestReturnSource: string;
|
|
198
|
-
questSource?: string;
|
|
199
|
-
quoteRates?: TradeQuotesByProviderId;
|
|
200
|
-
tokensWithoutPrice: Record<number, string[]>;
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
export type AdditionalInfo = {
|
|
204
|
-
[key: string]: unknown;
|
|
205
|
-
};
|
|
206
|
-
export type Token = {
|
|
207
|
-
address: HexString;
|
|
208
|
-
decimals: number;
|
|
209
|
-
chainId: number;
|
|
210
|
-
logo: string;
|
|
211
|
-
symbol: string;
|
|
212
|
-
price?: string;
|
|
213
|
-
};
|
|
214
|
-
export type TokenPermitData = {
|
|
215
|
-
eip2612: {
|
|
216
|
-
supported: boolean;
|
|
217
|
-
data?: {
|
|
218
|
-
domain?: TypedDataDomain;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
permit2: {
|
|
222
|
-
supported: boolean;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
export type TokenInfo = Prettify<NativeTokenInfo & {
|
|
226
|
-
chainId: number;
|
|
227
|
-
balanceInUsd?: number | null;
|
|
228
|
-
isDisabledOnSwapBridge?: {
|
|
229
|
-
source: boolean;
|
|
230
|
-
destination: boolean;
|
|
231
|
-
};
|
|
232
|
-
isDisabledOnZap?: {
|
|
233
|
-
source: boolean;
|
|
234
|
-
destination: boolean;
|
|
235
|
-
};
|
|
236
|
-
permit?: TokenPermitData;
|
|
237
|
-
}>;
|
|
238
|
-
export type TokenResponse = {
|
|
239
|
-
[key: string]: TokenInfo;
|
|
240
|
-
};
|
|
241
|
-
export type TradeBuildTxnRequest = {
|
|
242
|
-
sender: HexString;
|
|
243
|
-
refundee: HexString;
|
|
244
|
-
fromChain: number;
|
|
245
|
-
gasless: boolean;
|
|
246
|
-
disableEstimation?: boolean;
|
|
247
|
-
data: TradeBuildTxnRequestData[];
|
|
248
|
-
hasPermit2ApprovalForAllTokens?: boolean;
|
|
249
|
-
publicKey?: string;
|
|
250
|
-
};
|
|
251
|
-
export type TradeBuildTxnRequestData = {
|
|
252
|
-
amount: string;
|
|
253
|
-
srcToken: string;
|
|
254
|
-
srcDecimals?: number;
|
|
255
|
-
destToken: string;
|
|
256
|
-
destDecimals?: number;
|
|
257
|
-
toChain: number;
|
|
258
|
-
protocol: string;
|
|
259
|
-
recipient: string;
|
|
260
|
-
slippage: number;
|
|
261
|
-
additionalInfo?: AdditionalInfo;
|
|
262
|
-
permitData?: string;
|
|
263
|
-
permit?: TokenPermitData;
|
|
264
|
-
};
|
|
265
|
-
export type ParamQuotes = {
|
|
266
|
-
additionalInfo?: Record<string, unknown>;
|
|
267
|
-
destAmount: string;
|
|
268
|
-
provider: string;
|
|
269
|
-
minDestAmount: string;
|
|
270
|
-
};
|
|
271
|
-
export type EvmTxData = {
|
|
272
|
-
from: HexString;
|
|
273
|
-
data: HexString;
|
|
274
|
-
to: HexString;
|
|
275
|
-
value: string;
|
|
276
|
-
gasLimit: string;
|
|
277
|
-
};
|
|
278
|
-
export type SvmTxData = {
|
|
279
|
-
from: string;
|
|
280
|
-
data: string;
|
|
281
|
-
blockhash?: string;
|
|
282
|
-
lastValidBlockHeight?: number;
|
|
283
|
-
};
|
|
284
|
-
export type BtcTxData = {
|
|
285
|
-
from: string;
|
|
286
|
-
data: string;
|
|
287
|
-
inputs: PsbtInput[];
|
|
288
|
-
outputs: PsbtOutput[];
|
|
289
|
-
feeRate: number;
|
|
290
|
-
};
|
|
291
|
-
export type TxData = EvmTxData | SvmTxData | BtcTxData;
|
|
292
|
-
export type TxRequestData<T> = {
|
|
293
|
-
status: typeof STATUS.success;
|
|
294
|
-
txId: string;
|
|
295
|
-
chainId: number;
|
|
296
|
-
transaction: T;
|
|
297
|
-
};
|
|
298
|
-
export type TradeGasBuildTxnResponse<T = TxData> = TxRequestData<T> & {
|
|
299
|
-
quotes: Record<string, ParamQuotes>;
|
|
300
|
-
gasless: false;
|
|
301
|
-
};
|
|
302
|
-
export type TradeBuildTxnResponse = TradeGasBuildTxnResponse & {
|
|
303
|
-
data: string;
|
|
304
|
-
from: string;
|
|
305
|
-
to?: string;
|
|
306
|
-
value?: string;
|
|
307
|
-
gasLimit?: string;
|
|
308
|
-
svmTxData?: {
|
|
309
|
-
blockhash: string;
|
|
310
|
-
lastValidBlockHeight: number;
|
|
311
|
-
};
|
|
312
|
-
btcTxData?: {
|
|
313
|
-
inputs: PsbtInput[];
|
|
314
|
-
outputs: PsbtOutput[];
|
|
315
|
-
feeRate: number;
|
|
316
|
-
};
|
|
317
|
-
additionalInfo: Record<string, Record<string, unknown>>;
|
|
318
|
-
updatedQuotes: Record<string, string>;
|
|
319
|
-
};
|
|
320
|
-
export type GaslessTxTypes = keyof typeof GaslessTxType;
|
|
321
|
-
type BridgeGaslessTxData = {
|
|
322
|
-
executorFeesHash: HexString;
|
|
323
|
-
swapDataHash?: HexString;
|
|
324
|
-
adapterDataHash: HexString;
|
|
325
|
-
txType: typeof GaslessTxType.bridge;
|
|
326
|
-
value: string;
|
|
327
|
-
};
|
|
328
|
-
type SwapGaslessTxData = {
|
|
329
|
-
executorFeesHash: HexString;
|
|
330
|
-
swapDataHash: HexString;
|
|
331
|
-
txType: typeof GaslessTxType.swap;
|
|
332
|
-
value: string;
|
|
333
|
-
};
|
|
334
|
-
export type GaslessTradeBuildTxnResponse = {
|
|
335
|
-
status: 'success';
|
|
336
|
-
txId: HexString;
|
|
337
|
-
transaction: BridgeGaslessTxData | SwapGaslessTxData;
|
|
338
|
-
quotes: Record<string, ParamQuotes>;
|
|
339
|
-
gasless: true;
|
|
340
|
-
onlySwapData: false;
|
|
341
|
-
};
|
|
342
|
-
export type AvailableDZapServices = (typeof Services)[keyof typeof Services];
|
|
343
|
-
export type DZapAvailableAbis = (typeof DZapAbis)[keyof typeof DZapAbis];
|
|
344
|
-
export type OtherAvailableAbis = (typeof OtherAbis)[keyof typeof OtherAbis];
|
|
345
|
-
export type AppEnvType = `${AppEnv}`;
|
|
346
|
-
export type DZapTransactionResponse = {
|
|
347
|
-
status: TxnStatus;
|
|
348
|
-
errorMsg?: string;
|
|
349
|
-
code: StatusCodes | number;
|
|
350
|
-
action?: keyof typeof contractErrorActions;
|
|
351
|
-
txnHash?: HexString;
|
|
352
|
-
error?: unknown;
|
|
353
|
-
additionalInfo?: Record<string, unknown>;
|
|
354
|
-
updatedQuotes?: Record<string, string>;
|
|
355
|
-
};
|
|
356
|
-
export type SwapInfo = {
|
|
357
|
-
dex: string;
|
|
358
|
-
fromToken: string;
|
|
359
|
-
fromAmount: bigint;
|
|
360
|
-
toToken: string;
|
|
361
|
-
returnToAmount: bigint;
|
|
362
|
-
};
|
|
363
|
-
export type PartialStatusData = {
|
|
364
|
-
receiveToken?: string;
|
|
365
|
-
receiveAmount?: string;
|
|
366
|
-
receiveAmountUSD?: string;
|
|
367
|
-
};
|
|
368
|
-
export type RefundStatusData = {
|
|
369
|
-
refundTxHash?: string;
|
|
370
|
-
refundToken?: string;
|
|
371
|
-
refundAmount?: string;
|
|
372
|
-
refundAmountUSD?: string;
|
|
373
|
-
refundTimeStamp?: string;
|
|
374
|
-
};
|
|
375
|
-
export type TradeStatusResponseData = PartialStatusData & RefundStatusData & {
|
|
376
|
-
srcChainId: number;
|
|
377
|
-
srcToken: string;
|
|
378
|
-
srcAmount: string;
|
|
379
|
-
srcAmountUSD: string;
|
|
380
|
-
srcTxHash: string;
|
|
381
|
-
destChainId: number;
|
|
382
|
-
destToken: string;
|
|
383
|
-
destAmount: string;
|
|
384
|
-
destAmountUSD: string;
|
|
385
|
-
destTxHash: string;
|
|
386
|
-
account: string;
|
|
387
|
-
recipient: string;
|
|
388
|
-
provider: string;
|
|
389
|
-
allowUserTxOnDestChain: boolean;
|
|
390
|
-
status: keyof typeof STATUS_RESPONSE;
|
|
391
|
-
outputToken?: string;
|
|
392
|
-
refundTxHash?: string;
|
|
393
|
-
};
|
|
394
|
-
export type TradeStatusResponse = {
|
|
395
|
-
[pair: string]: TradeStatusResponseData;
|
|
396
|
-
};
|
|
397
|
-
export type EIP2612GaslessExecuteTxParams = {
|
|
398
|
-
permitData: {
|
|
399
|
-
token: HexString;
|
|
400
|
-
amount: string;
|
|
401
|
-
permit: HexString;
|
|
402
|
-
}[];
|
|
403
|
-
gaslessIntentSignature: HexString;
|
|
404
|
-
gaslessIntentDeadline: string;
|
|
405
|
-
gaslessIntentNonce: string;
|
|
406
|
-
};
|
|
407
|
-
export type BatchGaslessExecuteTxParams = {
|
|
408
|
-
batchPermitData: HexString;
|
|
409
|
-
};
|
|
410
|
-
export type GaslessExecuteTxParams = {
|
|
411
|
-
chainId: number;
|
|
412
|
-
txId: HexString;
|
|
413
|
-
permit: EIP2612GaslessExecuteTxParams | BatchGaslessExecuteTxParams;
|
|
414
|
-
};
|
|
415
|
-
export type PermitMode = keyof typeof PermitTypes;
|
|
416
|
-
export type ApprovalMode = Exclude<keyof typeof ApprovalModes, 'EIP2612Permit'>;
|
|
417
|
-
export type SinglePermitCallbackParams = {
|
|
418
|
-
permitData: HexString;
|
|
419
|
-
srcToken: HexString;
|
|
420
|
-
amount: string;
|
|
421
|
-
permitType: Exclude<PermitMode, keyof typeof PermitTypes.PermitBatchWitnessTransferFrom>;
|
|
422
|
-
};
|
|
423
|
-
export type BatchPermitCallbackParams = {
|
|
424
|
-
batchPermitData: HexString;
|
|
425
|
-
tokens: {
|
|
426
|
-
address: HexString;
|
|
427
|
-
amount: string;
|
|
428
|
-
}[];
|
|
429
|
-
permitType: typeof PermitTypes.PermitBatchWitnessTransferFrom;
|
|
430
|
-
};
|
|
431
|
-
export type SignatureCallbackParams = SinglePermitCallbackParams | BatchPermitCallbackParams;
|
|
432
|
-
export type SignatureParamsBase = {
|
|
433
|
-
chainId: number;
|
|
434
|
-
sender: HexString;
|
|
435
|
-
signer: WalletClient | Signer;
|
|
436
|
-
tokens: {
|
|
437
|
-
address: HexString;
|
|
438
|
-
permitData?: HexString;
|
|
439
|
-
amount: string;
|
|
440
|
-
permit?: TokenPermitData;
|
|
441
|
-
}[];
|
|
442
|
-
spender: HexString;
|
|
443
|
-
rpcUrls: string[];
|
|
444
|
-
permitType: PermitMode;
|
|
445
|
-
isBatchPermitAllowed?: boolean;
|
|
446
|
-
signatureCallback?: (params: SignatureCallbackParams) => Promise<void>;
|
|
447
|
-
service: AvailableDZapServices;
|
|
448
|
-
contractVersion: ContractVersion;
|
|
449
|
-
};
|
|
450
|
-
export type GasSignatureParams = SignatureParamsBase & {
|
|
451
|
-
gasless: false;
|
|
452
|
-
};
|
|
453
|
-
export type GaslessSignatureParams = ((SignatureParamsBase & GaslessBridgeParams) | (SignatureParamsBase & GaslessSwapParams)) & {
|
|
454
|
-
gasless: true;
|
|
455
|
-
};
|
|
456
|
-
export type SignatureParams = GasSignatureParams | GaslessSignatureParams;
|
|
457
|
-
export type SignPermitResponse = {
|
|
458
|
-
status: TxnStatus.success;
|
|
459
|
-
code: StatusCodes;
|
|
460
|
-
tokens: {
|
|
461
|
-
address: HexString;
|
|
462
|
-
permitData?: HexString;
|
|
463
|
-
amount: string;
|
|
464
|
-
}[];
|
|
465
|
-
permitType: PermitMode;
|
|
466
|
-
} | {
|
|
467
|
-
status: TxnStatus.success;
|
|
468
|
-
code: StatusCodes;
|
|
469
|
-
batchPermitData: HexString;
|
|
470
|
-
permitType: typeof PermitTypes.PermitBatchWitnessTransferFrom;
|
|
471
|
-
} | {
|
|
472
|
-
status: Exclude<TxnStatus, typeof TxnStatus.success>;
|
|
473
|
-
code: StatusCodes;
|
|
474
|
-
permitType: PermitMode;
|
|
475
|
-
};
|
|
476
|
-
export type BroadcastTxData = string;
|
|
477
|
-
export type BroadcastTxParams = {
|
|
478
|
-
txId: string;
|
|
479
|
-
chainId: number;
|
|
480
|
-
txData: BroadcastTxData;
|
|
481
|
-
};
|
|
482
|
-
export type BroadcastTxResponse = {
|
|
483
|
-
status: TxnStatus.success;
|
|
484
|
-
txnHash: string;
|
|
485
|
-
} | {
|
|
486
|
-
status: Exclude<TxnStatus, typeof TxnStatus.success>;
|
|
487
|
-
message: string;
|
|
488
|
-
};
|
|
489
|
-
export {};
|
package/dist/src/types/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.contractErrorActions = void 0;
|
|
4
|
-
exports.contractErrorActions = {
|
|
5
|
-
TRY_ANOTHER_ROUTE: 'TRY_ANOTHER_ROUTE',
|
|
6
|
-
INCREASE_SLIPPAGE: 'INCREASE_SLIPPAGE',
|
|
7
|
-
INCREASE_ALLOWANCE: 'INCREASE_ALLOWANCE',
|
|
8
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { Signer, TypedDataField } from 'ethers';
|
|
2
|
-
import { HexString, PermitMode, StatusCodes, TxnStatus } from '..';
|
|
3
|
-
import { GaslessTxType } from '../constants';
|
|
4
|
-
import { permit2PrimaryType } from '../constants/permit';
|
|
5
|
-
import { ContractVersion } from '../enums';
|
|
6
|
-
import { Address, TypedDataDomain, WalletClient } from 'viem';
|
|
7
|
-
import { AvailableDZapServices, TokenPermitData } from '.';
|
|
8
|
-
export declare const defaultWitnessType: {
|
|
9
|
-
typeName: string;
|
|
10
|
-
type: {
|
|
11
|
-
DZapTransferWitness: {
|
|
12
|
-
name: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const swapGaslessWitnessType: {
|
|
18
|
-
typeName: string;
|
|
19
|
-
type: {
|
|
20
|
-
DZapSwapWitness: {
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare const bridgeGaslessWitnessType: {
|
|
27
|
-
typeName: string;
|
|
28
|
-
type: {
|
|
29
|
-
DZapBridgeWitness: {
|
|
30
|
-
name: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const BatchPermitAbiParams: readonly [{
|
|
36
|
-
readonly name: "permit";
|
|
37
|
-
readonly type: "tuple";
|
|
38
|
-
readonly components: readonly [{
|
|
39
|
-
readonly name: "permitted";
|
|
40
|
-
readonly type: "tuple[]";
|
|
41
|
-
readonly components: readonly [{
|
|
42
|
-
readonly name: "token";
|
|
43
|
-
readonly type: "address";
|
|
44
|
-
}, {
|
|
45
|
-
readonly name: "amount";
|
|
46
|
-
readonly type: "uint256";
|
|
47
|
-
}];
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "nonce";
|
|
50
|
-
readonly type: "uint256";
|
|
51
|
-
}, {
|
|
52
|
-
readonly name: "deadline";
|
|
53
|
-
readonly type: "uint256";
|
|
54
|
-
}];
|
|
55
|
-
}, {
|
|
56
|
-
readonly name: "permitSignature";
|
|
57
|
-
readonly type: "bytes";
|
|
58
|
-
}];
|
|
59
|
-
type BaseToken = {
|
|
60
|
-
address: HexString;
|
|
61
|
-
amount: string;
|
|
62
|
-
};
|
|
63
|
-
export type TokenWithIndex = {
|
|
64
|
-
index: number;
|
|
65
|
-
} & BaseToken;
|
|
66
|
-
type TokenPermissions = {
|
|
67
|
-
token: Address;
|
|
68
|
-
amount: bigint;
|
|
69
|
-
};
|
|
70
|
-
export type TokenWithPermitData = {
|
|
71
|
-
index: number;
|
|
72
|
-
address: HexString;
|
|
73
|
-
amount: string;
|
|
74
|
-
permit?: TokenPermitData;
|
|
75
|
-
};
|
|
76
|
-
export type Permit2PrimaryType = (typeof permit2PrimaryType)[keyof typeof permit2PrimaryType];
|
|
77
|
-
type GaslessBaseParams = {
|
|
78
|
-
gasless: true;
|
|
79
|
-
txId: HexString;
|
|
80
|
-
executorFeesHash: HexString;
|
|
81
|
-
};
|
|
82
|
-
export type GaslessSwapParams = {
|
|
83
|
-
txType: typeof GaslessTxType.swap;
|
|
84
|
-
swapDataHash: HexString;
|
|
85
|
-
} & GaslessBaseParams;
|
|
86
|
-
export type GaslessBridgeParams = {
|
|
87
|
-
txType: typeof GaslessTxType.bridge;
|
|
88
|
-
adapterDataHash: HexString;
|
|
89
|
-
swapDataHash?: HexString;
|
|
90
|
-
} & GaslessBaseParams;
|
|
91
|
-
export type BasePermitParams = {
|
|
92
|
-
chainId: number;
|
|
93
|
-
account: HexString;
|
|
94
|
-
spender: HexString;
|
|
95
|
-
rpcUrls?: string[];
|
|
96
|
-
deadline?: bigint;
|
|
97
|
-
signer: WalletClient | Signer;
|
|
98
|
-
contractVersion: ContractVersion;
|
|
99
|
-
service: AvailableDZapServices;
|
|
100
|
-
};
|
|
101
|
-
type Permit2612BaseParams = {
|
|
102
|
-
token: TokenWithPermitData;
|
|
103
|
-
version: string;
|
|
104
|
-
sigDeadline?: bigint;
|
|
105
|
-
name: string;
|
|
106
|
-
nonce: bigint;
|
|
107
|
-
} & BasePermitParams;
|
|
108
|
-
export type DefaultPermit2612Params = {
|
|
109
|
-
gasless: false;
|
|
110
|
-
} & Permit2612BaseParams;
|
|
111
|
-
type GaslessSwapPermit2612Params = BasePermitParams & GaslessSwapParams;
|
|
112
|
-
type GaslessBridgePermit2612Params = BasePermitParams & GaslessBridgeParams;
|
|
113
|
-
export type Gasless2612PermitParams = GaslessSwapPermit2612Params | GaslessBridgePermit2612Params;
|
|
114
|
-
export type CustomTypedDataParams = {
|
|
115
|
-
account: HexString;
|
|
116
|
-
signer: WalletClient | Signer;
|
|
117
|
-
domain: TypedDataDomain;
|
|
118
|
-
types: Record<string, Array<TypedDataField>>;
|
|
119
|
-
message: Record<string, any>;
|
|
120
|
-
primaryType: string;
|
|
121
|
-
};
|
|
122
|
-
export type Permit2612Params = DefaultPermit2612Params | Gasless2612PermitParams;
|
|
123
|
-
export type BasePermit2Params = {
|
|
124
|
-
tokens: TokenWithPermitData[];
|
|
125
|
-
expiration?: bigint;
|
|
126
|
-
permitType: Permit2PrimaryType;
|
|
127
|
-
firstTokenNonce?: bigint;
|
|
128
|
-
} & BasePermitParams;
|
|
129
|
-
type DefaultPermit2Params = {
|
|
130
|
-
gasless: false;
|
|
131
|
-
} & BasePermit2Params;
|
|
132
|
-
type GaslessSwapPermit2Params = BasePermit2Params & GaslessSwapParams;
|
|
133
|
-
type GaslessBridgePermit2Params = BasePermit2Params & GaslessBridgeParams;
|
|
134
|
-
export type Permit2Params = DefaultPermit2Params | GaslessSwapPermit2Params | GaslessBridgePermit2Params;
|
|
135
|
-
export type PermitParams = Permit2612Params | Permit2Params;
|
|
136
|
-
export type BasePermitResponse = {
|
|
137
|
-
status: TxnStatus;
|
|
138
|
-
code: StatusCodes;
|
|
139
|
-
permitData?: HexString;
|
|
140
|
-
nonce?: bigint;
|
|
141
|
-
};
|
|
142
|
-
export type PermitResponse = {
|
|
143
|
-
permitType: PermitMode;
|
|
144
|
-
} & BasePermitResponse;
|
|
145
|
-
export type BatchPermitResponse = {
|
|
146
|
-
permitType: typeof permit2PrimaryType.PermitBatchWitnessTransferFrom;
|
|
147
|
-
} & BasePermitResponse;
|
|
148
|
-
type BaseWitnessStructure<T, N extends string, TType> = {
|
|
149
|
-
witness: T;
|
|
150
|
-
witnessTypeName: N;
|
|
151
|
-
witnessType: TType;
|
|
152
|
-
};
|
|
153
|
-
type GaslessWitnessData = {
|
|
154
|
-
txId: HexString;
|
|
155
|
-
user: HexString;
|
|
156
|
-
executorFeesHash: HexString;
|
|
157
|
-
swapDataHash: HexString;
|
|
158
|
-
};
|
|
159
|
-
type BridgeWitnessData = {
|
|
160
|
-
adapterDataHash: HexString;
|
|
161
|
-
} & GaslessWitnessData;
|
|
162
|
-
export type DefaultWitnessData = BaseWitnessStructure<{
|
|
163
|
-
owner: HexString;
|
|
164
|
-
recipient: HexString;
|
|
165
|
-
}, typeof defaultWitnessType.typeName, typeof defaultWitnessType.type>;
|
|
166
|
-
export type SwapGaslessWitnessData = BaseWitnessStructure<GaslessWitnessData, typeof swapGaslessWitnessType.typeName, typeof swapGaslessWitnessType.type>;
|
|
167
|
-
export type BridgeGaslessWitnessData = BaseWitnessStructure<BridgeWitnessData, typeof bridgeGaslessWitnessType.typeName, typeof bridgeGaslessWitnessType.type>;
|
|
168
|
-
export type WitnessData = DefaultWitnessData | SwapGaslessWitnessData | BridgeGaslessWitnessData;
|
|
169
|
-
export type PermitSingleValues = {
|
|
170
|
-
details: {
|
|
171
|
-
token: Address;
|
|
172
|
-
amount: bigint;
|
|
173
|
-
expiration: bigint;
|
|
174
|
-
nonce: number;
|
|
175
|
-
};
|
|
176
|
-
spender: Address;
|
|
177
|
-
sigDeadline: bigint;
|
|
178
|
-
};
|
|
179
|
-
export type PermitTransferFromValues = {
|
|
180
|
-
permitted: TokenPermissions;
|
|
181
|
-
spender: Address;
|
|
182
|
-
nonce: bigint;
|
|
183
|
-
deadline: bigint;
|
|
184
|
-
};
|
|
185
|
-
export type PermitBatchTransferFromValues = {
|
|
186
|
-
permitted: TokenPermissions[];
|
|
187
|
-
spender: Address;
|
|
188
|
-
nonce: bigint;
|
|
189
|
-
deadline: bigint;
|
|
190
|
-
};
|
|
191
|
-
export {};
|