@dzapio/sdk 2.0.9 → 2.0.10
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/types/index.d.ts +16 -29
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -360,39 +360,26 @@ export type SwapInfo = {
|
|
|
360
360
|
toToken: string;
|
|
361
361
|
returnToAmount: bigint;
|
|
362
362
|
};
|
|
363
|
-
export type
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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;
|
|
363
|
+
export type HistoryTokenData = {
|
|
364
|
+
asset: Omit<TokenInfo, 'price' | 'balance'>;
|
|
365
|
+
amount: string;
|
|
366
|
+
amountUSD: string;
|
|
367
|
+
status: keyof typeof STATUS_RESPONSE;
|
|
368
|
+
txHash: string;
|
|
386
369
|
account: string;
|
|
387
|
-
|
|
388
|
-
|
|
370
|
+
timestamp: number;
|
|
371
|
+
};
|
|
372
|
+
export type TxPairData = {
|
|
373
|
+
input: HistoryTokenData;
|
|
374
|
+
output: Omit<HistoryTokenData, 'txHash' | 'status' | 'timestamp'>;
|
|
375
|
+
received: HistoryTokenData;
|
|
376
|
+
provider: ProviderDetails;
|
|
389
377
|
allowUserTxOnDestChain: boolean;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
refundTxHash?: string;
|
|
378
|
+
message?: string;
|
|
379
|
+
providerTxLink?: string;
|
|
393
380
|
};
|
|
394
381
|
export type TradeStatusResponse = {
|
|
395
|
-
[pair: string]:
|
|
382
|
+
[pair: string]: TxPairData;
|
|
396
383
|
};
|
|
397
384
|
export type EIP2612GaslessExecuteTxParams = {
|
|
398
385
|
permitData: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|