@xswap-link/sdk 0.3.2 → 0.3.4
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/CHANGELOG.md +14 -0
- package/dist/index.css +1 -1209
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.global.js +642 -0
- package/dist/index.js +432 -476
- package/dist/index.mjs +467 -511
- package/package.json +11 -4
- package/src/components/TxConfigForm/BalanceComponent.tsx +3 -2
- package/src/components/TxConfigForm/ConfirmationView/ErrorView.tsx +38 -0
- package/src/components/TxConfigForm/ConfirmationView/SuccessView.tsx +159 -0
- package/src/components/TxConfigForm/ConfirmationView/index.tsx +149 -0
- package/src/components/TxConfigForm/ConnectWalletPrompt.tsx +21 -0
- package/src/components/TxConfigForm/Form.tsx +83 -432
- package/src/components/TxConfigForm/index.tsx +6 -7
- package/src/components/global.css +0 -1
- package/src/constants/index.ts +1 -0
- package/src/models/payloads/GetSwapTxPayload.ts +1 -1
- package/src/services/api.ts +6 -1
- package/src/services/integrations/transactions.ts +4 -4
- package/src/utils/numbers.ts +1 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useDebounce.tsx +0 -21
package/dist/index.d.mts
CHANGED
|
@@ -151,7 +151,7 @@ type GetSwapTxPayload = {
|
|
|
151
151
|
dstToken: string;
|
|
152
152
|
customContractCalls?: ContractCall[];
|
|
153
153
|
desc?: string;
|
|
154
|
-
|
|
154
|
+
returnTransactions?: boolean;
|
|
155
155
|
dstDisplayToken?: string;
|
|
156
156
|
};
|
|
157
157
|
|
|
@@ -261,10 +261,10 @@ type MonitoredTransaction = {
|
|
|
261
261
|
|
|
262
262
|
declare const renderTxStatus: (txChainId: string, txHash: string) => Promise<void>;
|
|
263
263
|
|
|
264
|
-
declare const openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc,
|
|
264
|
+
declare const openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc, returnTransactions, dstDisplayToken, }: GetSwapTxPayload) => Promise<Transactions | undefined>;
|
|
265
265
|
|
|
266
266
|
declare const XPay: {
|
|
267
|
-
openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc,
|
|
267
|
+
openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc, returnTransactions, dstDisplayToken, }: GetSwapTxPayload) => Promise<Transactions | undefined>;
|
|
268
268
|
renderTxStatus: (txChainId: string, txHash: string) => Promise<void>;
|
|
269
269
|
};
|
|
270
270
|
|
package/dist/index.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ type GetSwapTxPayload = {
|
|
|
151
151
|
dstToken: string;
|
|
152
152
|
customContractCalls?: ContractCall[];
|
|
153
153
|
desc?: string;
|
|
154
|
-
|
|
154
|
+
returnTransactions?: boolean;
|
|
155
155
|
dstDisplayToken?: string;
|
|
156
156
|
};
|
|
157
157
|
|
|
@@ -261,10 +261,10 @@ type MonitoredTransaction = {
|
|
|
261
261
|
|
|
262
262
|
declare const renderTxStatus: (txChainId: string, txHash: string) => Promise<void>;
|
|
263
263
|
|
|
264
|
-
declare const openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc,
|
|
264
|
+
declare const openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc, returnTransactions, dstDisplayToken, }: GetSwapTxPayload) => Promise<Transactions | undefined>;
|
|
265
265
|
|
|
266
266
|
declare const XPay: {
|
|
267
|
-
openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc,
|
|
267
|
+
openTransactionModal: ({ integratorId, dstChain, dstToken, customContractCalls, desc, returnTransactions, dstDisplayToken, }: GetSwapTxPayload) => Promise<Transactions | undefined>;
|
|
268
268
|
renderTxStatus: (txChainId: string, txHash: string) => Promise<void>;
|
|
269
269
|
};
|
|
270
270
|
|