@skip-go/client 1.1.4 → 1.1.6

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.
Files changed (79) hide show
  1. package/dist/api/getAssets.d.ts +1 -1
  2. package/dist/api/getAssets.js +3 -2
  3. package/dist/api/getAssetsBetweenChains.d.ts +1 -1
  4. package/dist/api/getAssetsBetweenChains.js +3 -2
  5. package/dist/api/getBridges.d.ts +1 -1
  6. package/dist/api/getBridges.js +3 -2
  7. package/dist/api/getChains.d.ts +1 -1
  8. package/dist/api/getChains.js +3 -2
  9. package/dist/api/getVenues.js +3 -2
  10. package/dist/api/postAssetsFromSource.d.ts +1 -1
  11. package/dist/api/postAssetsFromSource.js +4 -3
  12. package/dist/api/postBalances.d.ts +2 -2
  13. package/dist/api/postBalances.js +3 -2
  14. package/dist/api/postIbcOriginAssets.js +3 -2
  15. package/dist/api/postMessages.d.ts +6 -473
  16. package/dist/api/postMessages.js +3 -2
  17. package/dist/api/postMessagesDirect.d.ts +5 -1
  18. package/dist/api/postMessagesDirect.js +3 -2
  19. package/dist/api/postRecommendAssets.d.ts +1 -1
  20. package/dist/api/postRecommendAssets.js +3 -2
  21. package/dist/api/postRoute.d.ts +6 -2
  22. package/dist/api/postRoute.js +3 -2
  23. package/dist/api/postSubmit.d.ts +17 -0
  24. package/dist/api/postSubmit.js +3 -0
  25. package/dist/api/postSubmitTransaction.js +3 -2
  26. package/dist/api/postTrackTransaction.js +3 -2
  27. package/dist/api/postTransactionStatus.d.ts +2 -2
  28. package/dist/api/postTransactionStatus.js +3 -2
  29. package/dist/callbacks-BGRu2Ule.d.ts +33 -0
  30. package/dist/chunk-25FJ6EBA.js +36 -0
  31. package/dist/{chunk-4TKPLI5S.js → chunk-2YP6FMPV.js} +1 -1
  32. package/dist/{chunk-MB5ENUER.js → chunk-5QPGL2BH.js} +1 -1
  33. package/dist/{chunk-H6RXHDUX.js → chunk-5WMPFEIQ.js} +1 -1
  34. package/dist/{chunk-R2N4D2PY.js → chunk-C4URP37X.js} +1 -1
  35. package/dist/{chunk-7P6AOFMX.js → chunk-CRTTBUO4.js} +1 -1
  36. package/dist/{chunk-LJSGCCOX.js → chunk-DAR753BM.js} +1 -1
  37. package/dist/chunk-DU3RX43W.js +34 -0
  38. package/dist/chunk-DV3I2S3T.js +181 -0
  39. package/dist/chunk-GV2QOWB4.js +26 -0
  40. package/dist/{chunk-R3KHKN33.js → chunk-IWW34V4S.js} +1 -1
  41. package/dist/{chunk-PZM2IB6H.js → chunk-JZBFAMHE.js} +1 -1
  42. package/dist/{chunk-GTJ2EDUG.js → chunk-KKNOCIFN.js} +2 -2
  43. package/dist/{chunk-EAUM5JYS.js → chunk-NWC6BSNB.js} +1 -1
  44. package/dist/{chunk-R4PWQNPU.js → chunk-NXNVAUER.js} +18 -351
  45. package/dist/{chunk-2NYWLY5S.js → chunk-PPUUN7FI.js} +1 -1
  46. package/dist/{chunk-5EU3SRDQ.js → chunk-RCSN7BAU.js} +2 -2
  47. package/dist/{chunk-KWVMUF5R.js → chunk-RFZBKQ35.js} +1 -1
  48. package/dist/{chunk-WWDCZAB5.js → chunk-RYOVQFZO.js} +1 -1
  49. package/dist/{chunk-BCN2WD5Q.js → chunk-T7GKUROO.js} +1 -1
  50. package/dist/chunk-TV2XPAIF.js +295 -0
  51. package/dist/{chunk-VRPPVMXO.js → chunk-U6XZFJW2.js} +1 -1
  52. package/dist/{chunk-SOGMQT4H.js → chunk-UXUJNZOA.js} +1 -181
  53. package/dist/chunk-X67P5URV.js +10 -0
  54. package/dist/{chunk-RL5AVCSG.js → chunk-XXJUDZKJ.js} +1 -1
  55. package/dist/{client-types-B_ihV5t6.d.ts → client-types-BkeR6R_z.d.ts} +1 -1
  56. package/dist/{generateApi-CpUxWvEf.d.ts → generateApi-8YPJU-Al.d.ts} +1 -1
  57. package/dist/index.d.ts +13 -5
  58. package/dist/index.js +26 -21
  59. package/dist/public-functions/executeRoute.d.ts +40 -4
  60. package/dist/public-functions/executeRoute.js +15 -10
  61. package/dist/public-functions/getCosmosGasAmountForMessage.d.ts +8 -0
  62. package/dist/public-functions/getCosmosGasAmountForMessage.js +2 -0
  63. package/dist/public-functions/getEvmGasAmountForMessage.d.ts +11 -0
  64. package/dist/public-functions/getEvmGasAmountForMessage.js +2 -0
  65. package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
  66. package/dist/public-functions/getFeeInfoForChain.js +4 -3
  67. package/dist/public-functions/getRecommendedGasPrice.js +5 -4
  68. package/dist/public-functions/getSigningStargateClient.js +4 -3
  69. package/dist/public-functions/setApiOptions.d.ts +1 -1
  70. package/dist/public-functions/setApiOptions.js +3 -2
  71. package/dist/public-functions/setClientOptions.d.ts +3 -3
  72. package/dist/public-functions/setClientOptions.js +4 -3
  73. package/dist/public-functions/waitForTransaction.d.ts +621 -0
  74. package/dist/public-functions/waitForTransaction.js +5 -0
  75. package/dist/{setClientOptions-C4rwBrB4.d.ts → setClientOptions-CI_7IPLT.d.ts} +1 -1
  76. package/dist/{swaggerTypes-sZ9ALP9m.d.ts → swaggerTypes-CAERZYPb.d.ts} +4 -1
  77. package/package.json +1 -1
  78. package/dist/chunk-7FSLD7Y4.js +0 -10
  79. package/dist/executeRoute-Bob9mV8C.d.ts +0 -69
@@ -1,69 +0,0 @@
1
- import { aU as TransferStatus, T as Erc20Approval, be as RouteResponse, W as CosmosMsg } from './swaggerTypes-sZ9ALP9m.js';
2
- import { A as ApiRequest } from './generateApi-CpUxWvEf.js';
3
- import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-B_ihV5t6.js';
4
-
5
- type CallbackStatus = "success" | "error" | "pending" | "completed";
6
- type TransactionCallbacks = {
7
- onTransactionSigned?: (txInfo: {
8
- chainId: string;
9
- }) => Promise<void>;
10
- onTransactionBroadcast?: (txInfo: {
11
- txHash: string;
12
- chainId: string;
13
- }) => Promise<void>;
14
- onTransactionTracked?: (txInfo: {
15
- txHash: string;
16
- chainId: string;
17
- explorerLink: string;
18
- }) => Promise<void>;
19
- onTransactionCompleted?: (txInfo: {
20
- chainId: string;
21
- txHash: string;
22
- status?: TransferStatus;
23
- }) => Promise<void>;
24
- onValidateGasBalance?: (value: {
25
- chainId?: string;
26
- txIndex?: number;
27
- status: CallbackStatus;
28
- }) => Promise<void>;
29
- onApproveAllowance?: (value: {
30
- allowance?: Erc20Approval;
31
- status: CallbackStatus;
32
- }) => Promise<void>;
33
- };
34
-
35
- /** Execute Route Options */
36
- type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & Pick<ApiRequest<"msgs">, "timeoutSeconds"> & {
37
- route: RouteResponse;
38
- /**
39
- * Addresses should be in the same order with the `chainIDs` in the `route`
40
- */
41
- userAddresses: UserAddress[];
42
- simulate?: boolean;
43
- slippageTolerancePercent?: string;
44
- /**
45
- * Arbitrary Tx to be executed before or after route msgs
46
- */
47
- beforeMsg?: CosmosMsg;
48
- afterMsg?: CosmosMsg;
49
- /**
50
- * Set allowance amount to max if EVM transaction requires allowance approval.
51
- */
52
- useUnlimitedApproval?: boolean;
53
- /**
54
- /**
55
- * If `skipApproval` is set to `true`, the router will bypass checking whether
56
- * the signer has granted approval for the specified token contract on an EVM chain.
57
- * This can be useful if approval has already been handled externally or there are race conditions.
58
- */
59
- bypassApprovalCheck?: boolean;
60
- /**
61
- * defaults to true
62
- * If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
63
- * If `batchSimulate` is set to `false`, it will simulate each message one by one.
64
- */
65
- batchSimulate?: boolean;
66
- };
67
- declare const executeRoute: (options: ExecuteRouteOptions) => Promise<void>;
68
-
69
- export { type ExecuteRouteOptions as E, type TransactionCallbacks as T, executeRoute as e };