@skip-go/client 0.16.19 → 0.16.20
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/index.d.ts +34 -12
- package/dist/index.js +76 -76
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ type SubmitTxResponseJSON = {
|
|
|
32
32
|
type SubmitTxResponse = {
|
|
33
33
|
txHash: string;
|
|
34
34
|
};
|
|
35
|
-
type StatusState =
|
|
35
|
+
type StatusState = "STATE_UNKNOWN" | "STATE_SUBMITTED" | "STATE_PENDING" | "STATE_RECEIVED" | "STATE_COMPLETED" | "STATE_ABANDONED" | "STATE_COMPLETED_SUCCESS" | "STATE_COMPLETED_ERROR" | "STATE_PENDING_ERROR";
|
|
36
36
|
type NextBlockingTransferJSON = {
|
|
37
37
|
transfer_sequence_index: number;
|
|
38
38
|
};
|
|
@@ -47,7 +47,7 @@ type StatusRequest = {
|
|
|
47
47
|
txHash: string;
|
|
48
48
|
chainID: string;
|
|
49
49
|
};
|
|
50
|
-
type TransferState =
|
|
50
|
+
type TransferState = "TRANSFER_UNKNOWN" | "TRANSFER_PENDING" | "TRANSFER_RECEIVED" | "TRANSFER_SUCCESS" | "TRANSFER_FAILURE";
|
|
51
51
|
type TransferInfoJSON = {
|
|
52
52
|
from_chain_id: string;
|
|
53
53
|
to_chain_id: string;
|
|
@@ -60,8 +60,18 @@ type TransferInfo = {
|
|
|
60
60
|
fromChainID: string;
|
|
61
61
|
toChainID: string;
|
|
62
62
|
state: TransferState;
|
|
63
|
+
packetTxs: Packet;
|
|
64
|
+
/**
|
|
65
|
+
* Deprecated use `packetTxs` instead
|
|
66
|
+
*/
|
|
63
67
|
packetTXs: Packet;
|
|
68
|
+
/**
|
|
69
|
+
* Deprecated use `fromChainID` instead
|
|
70
|
+
*/
|
|
64
71
|
srcChainID: string;
|
|
72
|
+
/**
|
|
73
|
+
* Deprecated use `toChainID` instead
|
|
74
|
+
*/
|
|
65
75
|
dstChainID: string;
|
|
66
76
|
};
|
|
67
77
|
type TransferAssetReleaseJSON = {
|
|
@@ -122,7 +132,7 @@ type Packet = {
|
|
|
122
132
|
timeoutTx: ChainTransaction | null;
|
|
123
133
|
error: PacketError | null;
|
|
124
134
|
};
|
|
125
|
-
type StatusErrorType =
|
|
135
|
+
type StatusErrorType = "STATUS_ERROR_UNKNOWN" | "STATUS_ERROR_TRANSACTION_EXECUTION" | "STATUS_ERROR_INDEXING";
|
|
126
136
|
type TransactionExecutionError = {
|
|
127
137
|
code: number;
|
|
128
138
|
message: string;
|
|
@@ -143,7 +153,7 @@ type StatusError = {
|
|
|
143
153
|
transactionExecutionError: TransactionExecutionError;
|
|
144
154
|
};
|
|
145
155
|
};
|
|
146
|
-
type PacketErrorType =
|
|
156
|
+
type PacketErrorType = "PACKET_ERROR_UNKNOWN" | "PACKET_ERROR_ACKNOWLEDGEMENT" | "PACKET_ERROR_TIMEOUT";
|
|
147
157
|
type AcknowledgementError = {
|
|
148
158
|
message: string;
|
|
149
159
|
code: number;
|
|
@@ -190,8 +200,8 @@ type TrackTxResponse = {
|
|
|
190
200
|
txHash: string;
|
|
191
201
|
explorerLink: string;
|
|
192
202
|
};
|
|
193
|
-
type AxelarTransferType =
|
|
194
|
-
type AxelarTransferState =
|
|
203
|
+
type AxelarTransferType = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN" | "AXELAR_TRANSFER_SEND_TOKEN";
|
|
204
|
+
type AxelarTransferState = "AXELAR_TRANSFER_UNKNOWN" | "AXELAR_TRANSFER_PENDING_CONFIRMATION" | "AXELAR_TRANSFER_PENDING_RECEIPT" | "AXELAR_TRANSFER_SUCCESS" | "AXELAR_TRANSFER_FAILURE";
|
|
195
205
|
type AxelarTransferInfoJSON = {
|
|
196
206
|
from_chain_id: string;
|
|
197
207
|
to_chain_id: string;
|
|
@@ -209,7 +219,13 @@ type AxelarTransferInfo = {
|
|
|
209
219
|
state: AxelarTransferState;
|
|
210
220
|
txs: AxelarTransferTransactions;
|
|
211
221
|
axelarScanLink: string;
|
|
222
|
+
/**
|
|
223
|
+
* Deprecated use `fromChainID` instead
|
|
224
|
+
*/
|
|
212
225
|
srcChainID: string;
|
|
226
|
+
/**
|
|
227
|
+
* Deprecated use `toChainID` instead
|
|
228
|
+
*/
|
|
213
229
|
dstChainID: string;
|
|
214
230
|
};
|
|
215
231
|
type AxelarTransferTransactionsJSON = {
|
|
@@ -242,7 +258,7 @@ type ContractCallWithTokenError = {
|
|
|
242
258
|
message: string;
|
|
243
259
|
type: ContractCallWithTokenErrorType;
|
|
244
260
|
};
|
|
245
|
-
type ContractCallWithTokenErrorType =
|
|
261
|
+
type ContractCallWithTokenErrorType = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR";
|
|
246
262
|
type SendTokenTransactionsJSON = {
|
|
247
263
|
send_tx: ChainTransactionJSON | null;
|
|
248
264
|
confirm_tx: ChainTransactionJSON | null;
|
|
@@ -255,12 +271,12 @@ type SendTokenTransactions = {
|
|
|
255
271
|
executeTx: ChainTransaction | null;
|
|
256
272
|
error: SendTokenError | null;
|
|
257
273
|
};
|
|
258
|
-
type SendTokenErrorType =
|
|
274
|
+
type SendTokenErrorType = "SEND_TOKEN_EXECUTION_ERROR";
|
|
259
275
|
type SendTokenError = {
|
|
260
276
|
message: string;
|
|
261
277
|
type: SendTokenErrorType;
|
|
262
278
|
};
|
|
263
|
-
type CCTPTransferState =
|
|
279
|
+
type CCTPTransferState = "CCTP_TRANSFER_UNKNOWN" | "CCTP_TRANSFER_SENT" | "CCTP_TRANSFER_PENDING_CONFIRMATION" | "CCTP_TRANSFER_CONFIRMED" | "CCTP_TRANSFER_RECEIVED";
|
|
264
280
|
type CCTPTransferTransactionsJSON = {
|
|
265
281
|
send_tx: ChainTransactionJSON | null;
|
|
266
282
|
receive_tx: ChainTransactionJSON | null;
|
|
@@ -282,10 +298,16 @@ type CCTPTransferInfo = {
|
|
|
282
298
|
toChainID: string;
|
|
283
299
|
state: CCTPTransferState;
|
|
284
300
|
txs: CCTPTransferTransactions;
|
|
301
|
+
/**
|
|
302
|
+
* Deprecated use `fromChainID` instead
|
|
303
|
+
*/
|
|
285
304
|
srcChainID: string;
|
|
305
|
+
/**
|
|
306
|
+
* Deprecated use `toChainID` instead
|
|
307
|
+
*/
|
|
286
308
|
dstChainID: string;
|
|
287
309
|
};
|
|
288
|
-
type HyperlaneTransferState =
|
|
310
|
+
type HyperlaneTransferState = "HYPERLANE_TRANSFER_UNKNOWN" | "HYPERLANE_TRANSFER_SENT" | "HYPERLANE_TRANSFER_FAILED" | "HYPERLANE_TRANSFER_RECEIVED";
|
|
289
311
|
type HyperlaneTransferTransactionsJSON = {
|
|
290
312
|
send_tx: ChainTransactionJSON | null;
|
|
291
313
|
receive_tx: ChainTransactionJSON | null;
|
|
@@ -356,7 +378,7 @@ type StargateTransferInfo = {
|
|
|
356
378
|
state: StargateTransferState;
|
|
357
379
|
txs: StargateTransferTransactions;
|
|
358
380
|
};
|
|
359
|
-
type OPInitTransferState =
|
|
381
|
+
type OPInitTransferState = "OPINIT_TRANSFER_UNKNOWN" | "OPINIT_TRANSFER_SENT" | "OPINIT_TRANSFER_RECEIVED";
|
|
360
382
|
type OPInitTransferTransactionsJSON = {
|
|
361
383
|
send_tx: ChainTransactionJSON | null;
|
|
362
384
|
receive_tx: ChainTransactionJSON | null;
|
|
@@ -423,7 +445,7 @@ type TransferEvent = {
|
|
|
423
445
|
} | {
|
|
424
446
|
eurekaTransfer: EurekaTransferInfo;
|
|
425
447
|
};
|
|
426
|
-
type CallbackStatus =
|
|
448
|
+
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
427
449
|
interface TransactionCallbacks {
|
|
428
450
|
onTransactionSigned?: (txInfo: {
|
|
429
451
|
chainID: string;
|