@skip-go/client 1.0.1-alpha-0 → 1.0.1

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 (129) hide show
  1. package/dist/api/getAssets.js +15 -2
  2. package/dist/api/getAssetsBetweenChains.js +11 -2
  3. package/dist/api/getBridges.js +11 -2
  4. package/dist/api/getChains.js +11 -2
  5. package/dist/api/getVenues.js +11 -2
  6. package/dist/api/postAssetsFromSource.js +12 -3
  7. package/dist/api/postBalances.js +11 -2
  8. package/dist/api/postIbcOriginAssets.js +11 -2
  9. package/dist/api/postMessages.js +11 -2
  10. package/dist/api/postMessagesDirect.js +11 -2
  11. package/dist/api/postRecommendAssets.js +11 -2
  12. package/dist/api/postRoute.js +11 -2
  13. package/dist/api/postSubmitTransaction.js +11 -2
  14. package/dist/api/postTrackTransaction.js +11 -2
  15. package/dist/api/postTransactionStatus.js +11 -2
  16. package/dist/{chunk-DAMZSSOH.cjs → chunk-2WHYWV4Y.js} +2 -2
  17. package/dist/{chunk-J4LI33TK.cjs → chunk-4XWIXR2P.js} +24 -18
  18. package/dist/chunk-5KVRQLI5.js +17 -0
  19. package/dist/{chunk-VI7UMBQ7.cjs → chunk-5ZJBR5AQ.js} +2 -2
  20. package/dist/{chunk-ISHM4QWP.cjs → chunk-6BTWKTNM.js} +4 -4
  21. package/dist/chunk-6GJEXV5J.js +130 -0
  22. package/dist/chunk-ASPVKNJ7.js +242 -0
  23. package/dist/{chunk-7SK3IFXJ.cjs → chunk-CG5CQQBW.js} +36 -32
  24. package/dist/chunk-EQLA2SEZ.js +2361 -0
  25. package/dist/{chunk-32MRDO7V.cjs → chunk-FVSSCQ6C.js} +2 -2
  26. package/dist/{chunk-5IAEEEOQ.cjs → chunk-GFRPLEJR.js} +227 -217
  27. package/dist/{chunk-L5V5PASH.cjs → chunk-KYFTM3PI.js} +2 -2
  28. package/dist/chunk-L2Q5RP6O.js +25 -0
  29. package/dist/{chunk-URLFWBSC.cjs → chunk-LRIPQQ4M.js} +2 -2
  30. package/dist/{chunk-ZNXE6PUV.cjs → chunk-PKPZTO4H.js} +10 -9
  31. package/dist/{chunk-RDOSNDAQ.cjs → chunk-RE2QZJWE.js} +2 -2
  32. package/dist/{chunk-7OIZPQJB.cjs → chunk-RT5TZAMU.js} +138 -101
  33. package/dist/chunk-SWYON2RG.js +4 -1
  34. package/dist/chunk-VQ5SIQWU.js +3 -1
  35. package/dist/{chunk-LXYLWTNZ.cjs → chunk-X2E2TKVR.js} +2 -2
  36. package/dist/{chunk-SW3SEQMJ.cjs → chunk-X2YPYBVN.js} +30 -25
  37. package/dist/{chunk-KDN7RCGP.cjs → chunk-YYNIFO2A.js} +2 -2
  38. package/dist/{chunk-77ITCT75.cjs → chunk-Z4ZKOUGH.js} +2 -2
  39. package/dist/{chunk-PNWIJSMA.cjs → chunk-ZG23Z3WY.js} +2 -2
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +209 -24
  42. package/dist/public-functions/executeRoute.js +21 -12
  43. package/dist/public-functions/getFeeInfoForChain.js +14 -5
  44. package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
  45. package/dist/public-functions/getRecommendedGasPrice.js +16 -7
  46. package/dist/public-functions/getSigningStargateClient.d.ts +1 -1
  47. package/dist/public-functions/getSigningStargateClient.js +13 -4
  48. package/dist/public-functions/setApiOptions.js +11 -2
  49. package/dist/public-functions/setClientOptions.js +13 -4
  50. package/package.json +1 -10
  51. package/dist/api/getAssets.cjs +0 -15
  52. package/dist/api/getAssets.d.cts +0 -19
  53. package/dist/api/getAssetsBetweenChains.cjs +0 -11
  54. package/dist/api/getAssetsBetweenChains.d.cts +0 -56
  55. package/dist/api/getBridges.cjs +0 -11
  56. package/dist/api/getBridges.d.cts +0 -54
  57. package/dist/api/getChains.cjs +0 -11
  58. package/dist/api/getChains.d.cts +0 -41
  59. package/dist/api/getVenues.cjs +0 -11
  60. package/dist/api/getVenues.d.cts +0 -13
  61. package/dist/api/postAssetsFromSource.cjs +0 -12
  62. package/dist/api/postAssetsFromSource.d.cts +0 -13
  63. package/dist/api/postBalances.cjs +0 -11
  64. package/dist/api/postBalances.d.cts +0 -35
  65. package/dist/api/postIbcOriginAssets.cjs +0 -11
  66. package/dist/api/postIbcOriginAssets.d.cts +0 -32
  67. package/dist/api/postMessages.cjs +0 -11
  68. package/dist/api/postMessages.d.cts +0 -528
  69. package/dist/api/postMessagesDirect.cjs +0 -11
  70. package/dist/api/postMessagesDirect.d.cts +0 -568
  71. package/dist/api/postRecommendAssets.cjs +0 -11
  72. package/dist/api/postRecommendAssets.d.cts +0 -40
  73. package/dist/api/postRoute.cjs +0 -11
  74. package/dist/api/postRoute.d.cts +0 -460
  75. package/dist/api/postSubmitTransaction.cjs +0 -11
  76. package/dist/api/postSubmitTransaction.d.cts +0 -13
  77. package/dist/api/postTrackTransaction.cjs +0 -11
  78. package/dist/api/postTrackTransaction.d.cts +0 -13
  79. package/dist/api/postTransactionStatus.cjs +0 -11
  80. package/dist/api/postTransactionStatus.d.cts +0 -559
  81. package/dist/apiState-CdzxTxYd.d.cts +0 -6
  82. package/dist/chunk-33K6EESX.js +0 -10
  83. package/dist/chunk-3N7XVGLX.js +0 -269
  84. package/dist/chunk-3OZQ35X3.js +0 -3597
  85. package/dist/chunk-44PBLFB5.cjs +0 -24
  86. package/dist/chunk-4JJWOILI.js +0 -13
  87. package/dist/chunk-4R6OCWRR.cjs +0 -1346
  88. package/dist/chunk-BQTQJQ5E.js +0 -10
  89. package/dist/chunk-BRJDNGYH.js +0 -22
  90. package/dist/chunk-BRMONS6A.js +0 -130
  91. package/dist/chunk-C2EDPY6J.js +0 -10
  92. package/dist/chunk-DW4U6YI6.js +0 -10
  93. package/dist/chunk-ED2OY55G.cjs +0 -136
  94. package/dist/chunk-GARVPN2H.js +0 -16
  95. package/dist/chunk-HAR3IXDE.cjs +0 -705
  96. package/dist/chunk-JTIHU43D.js +0 -183
  97. package/dist/chunk-KNV72XRZ.js +0 -10
  98. package/dist/chunk-KZOSEIWH.cjs +0 -10
  99. package/dist/chunk-MGVXJ2U4.js +0 -11
  100. package/dist/chunk-MTMPHY3Y.js +0 -9
  101. package/dist/chunk-PRQ2NHRZ.js +0 -11
  102. package/dist/chunk-RDRDFJQE.js +0 -10
  103. package/dist/chunk-RMP3HM5N.js +0 -14
  104. package/dist/chunk-SFMBRLUS.cjs +0 -18
  105. package/dist/chunk-SQGWZAUC.js +0 -2229
  106. package/dist/chunk-TW77BXMT.js +0 -44
  107. package/dist/chunk-VMPFHQ7U.js +0 -93
  108. package/dist/chunk-W2U2UOFA.js +0 -1790
  109. package/dist/chunk-W6TBGBV3.js +0 -675
  110. package/dist/chunk-WWNTHZ6I.cjs +0 -1812
  111. package/dist/client-types-qvyKvyFh.d.cts +0 -60
  112. package/dist/executeRoute-BKRpODCc.d.cts +0 -69
  113. package/dist/generateApi-C0amiydg.d.cts +0 -22
  114. package/dist/index.cjs +0 -209
  115. package/dist/index.d.cts +0 -35
  116. package/dist/public-functions/executeRoute.cjs +0 -21
  117. package/dist/public-functions/executeRoute.d.cts +0 -9
  118. package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
  119. package/dist/public-functions/getFeeInfoForChain.d.cts +0 -9
  120. package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
  121. package/dist/public-functions/getRecommendedGasPrice.d.cts +0 -9
  122. package/dist/public-functions/getSigningStargateClient.cjs +0 -13
  123. package/dist/public-functions/getSigningStargateClient.d.cts +0 -13
  124. package/dist/public-functions/setApiOptions.cjs +0 -11
  125. package/dist/public-functions/setApiOptions.d.cts +0 -9
  126. package/dist/public-functions/setClientOptions.cjs +0 -13
  127. package/dist/public-functions/setClientOptions.d.cts +0 -9
  128. package/dist/setClientOptions-CT6CHI9I.d.cts +0 -19
  129. package/dist/swaggerTypes-O9-gvCT1.d.cts +0 -1890
@@ -1,60 +0,0 @@
1
- import { OfflineAminoSigner } from '@cosmjs/amino';
2
- import { OfflineDirectSigner } from '@cosmjs/proto-signing';
3
- import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
4
- import { WalletClient } from 'viem';
5
- import { Adapter } from '@solana/wallet-adapter-base';
6
- import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.cjs';
7
-
8
- /** Common Types */
9
- type UserAddress = {
10
- chainId: string;
11
- address: string;
12
- };
13
- type EndpointOptions = {
14
- rpc?: string;
15
- rest?: string;
16
- };
17
- type ValidateGasResult = {
18
- error: null | string;
19
- asset: FeeAsset | null;
20
- fee: StdFee | null;
21
- };
22
- /** Signer Getters */
23
- type SignerGetters = {
24
- getEvmSigner?: (chainId: string) => Promise<WalletClient>;
25
- getCosmosSigner?: (chainId: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
26
- getSvmSigner?: () => Promise<Adapter>;
27
- };
28
- /** Gas Options */
29
- type GetFallbackGasAmount = (chainId: string, chainType: ChainType) => Promise<number | undefined>;
30
- type GetGasPrice = (chainId: string, chainType: ChainType) => Promise<GasPrice | undefined>;
31
- type GasOptions = {
32
- /**
33
- * If `getGasPrice` is undefined, or returns undefined, the router will attempt to set the recommended gas price
34
- **/
35
- getGasPrice?: GetGasPrice;
36
- /**
37
- * If `getFallbackGasAmount` is set, when router fails to simulate the gas amount, it will use the fallback gas amount
38
- */
39
- getFallbackGasAmount?: GetFallbackGasAmount;
40
- gasAmountMultiplier?: number;
41
- };
42
- type SignCosmosMessageOptionsBase = {
43
- signerAddress: string;
44
- chainId: string;
45
- cosmosMsgs: CosmosMsg[];
46
- fee: StdFee;
47
- signerData: SignerData;
48
- };
49
- type SignCosmosMessageDirectOptions = SignCosmosMessageOptionsBase & {
50
- signer: OfflineDirectSigner;
51
- };
52
- type SignCosmosMessageAminoOptions = SignCosmosMessageOptionsBase & {
53
- signer: OfflineAminoSigner;
54
- };
55
- type TxResult = {
56
- txHash: string;
57
- chainId: string;
58
- };
59
-
60
- export type { EndpointOptions as E, GetFallbackGasAmount as G, SignerGetters as S, TxResult as T, UserAddress as U, ValidateGasResult as V, GetGasPrice as a, GasOptions as b, SignCosmosMessageOptionsBase as c, SignCosmosMessageDirectOptions as d, SignCosmosMessageAminoOptions as e };
@@ -1,69 +0,0 @@
1
- import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.cjs';
2
- import { A as ApiRequest } from './generateApi-C0amiydg.cjs';
3
- import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-qvyKvyFh.cjs';
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<"getMsgsV2">, "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 };
@@ -1,22 +0,0 @@
1
- import { bc as Api } from './swaggerTypes-O9-gvCT1.cjs';
2
-
3
- type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
4
- type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
5
- [K in keyof T as K extends string ? CamelKey<K> : never]: Camel<T[K]>;
6
- } : T;
7
-
8
- type ApiInstance = InstanceType<typeof Api>;
9
- type FunctionKeys<T> = {
10
- [K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
11
- }[keyof T];
12
- type ValidApiMethodKeys = {
13
- [K in FunctionKeys<ApiInstance>]: Awaited<ReturnType<ApiInstance[K]>> extends {
14
- data: unknown;
15
- } ? K : never;
16
- }[FunctionKeys<ApiInstance>];
17
- type ApiRequest<K extends ValidApiMethodKeys> = NonNullable<Camel<Parameters<ApiInstance[K]>[0]>>;
18
- type ApiResponse<K extends ValidApiMethodKeys> = Camel<Awaited<ReturnType<ApiInstance[K]>> extends {
19
- data: infer D;
20
- } ? D extends object ? D : never : never>;
21
-
22
- export type { ApiRequest as A, ApiResponse as a };
package/dist/index.cjs DELETED
@@ -1,209 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWWNTHZ6I_cjs = require('./chunk-WWNTHZ6I.cjs');
4
- var chunk44PBLFB5_cjs = require('./chunk-44PBLFB5.cjs');
5
- require('./chunk-4R6OCWRR.cjs');
6
- var chunkJ4LI33TK_cjs = require('./chunk-J4LI33TK.cjs');
7
- var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
8
- var chunkSW3SEQMJ_cjs = require('./chunk-SW3SEQMJ.cjs');
9
- require('./chunk-7SK3IFXJ.cjs');
10
- var chunkZNXE6PUV_cjs = require('./chunk-ZNXE6PUV.cjs');
11
- var chunk5IAEEEOQ_cjs = require('./chunk-5IAEEEOQ.cjs');
12
- require('./chunk-7OIZPQJB.cjs');
13
- var chunkRDOSNDAQ_cjs = require('./chunk-RDOSNDAQ.cjs');
14
- var chunk32MRDO7V_cjs = require('./chunk-32MRDO7V.cjs');
15
- var chunkLXYLWTNZ_cjs = require('./chunk-LXYLWTNZ.cjs');
16
- var chunk77ITCT75_cjs = require('./chunk-77ITCT75.cjs');
17
- var chunkSFMBRLUS_cjs = require('./chunk-SFMBRLUS.cjs');
18
- var chunkL5V5PASH_cjs = require('./chunk-L5V5PASH.cjs');
19
- var chunkKDN7RCGP_cjs = require('./chunk-KDN7RCGP.cjs');
20
- var chunkDAMZSSOH_cjs = require('./chunk-DAMZSSOH.cjs');
21
- var chunkURLFWBSC_cjs = require('./chunk-URLFWBSC.cjs');
22
- var chunkVI7UMBQ7_cjs = require('./chunk-VI7UMBQ7.cjs');
23
- var chunkPNWIJSMA_cjs = require('./chunk-PNWIJSMA.cjs');
24
- var chunkISHM4QWP_cjs = require('./chunk-ISHM4QWP.cjs');
25
- var chunkED2OY55G_cjs = require('./chunk-ED2OY55G.cjs');
26
- var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
27
-
28
-
29
-
30
- Object.defineProperty(exports, "executeRoute", {
31
- enumerable: true,
32
- get: function () { return chunkWWNTHZ6I_cjs.executeRoute; }
33
- });
34
- Object.defineProperty(exports, "getRecommendedGasPrice", {
35
- enumerable: true,
36
- get: function () { return chunk44PBLFB5_cjs.getRecommendedGasPrice; }
37
- });
38
- Object.defineProperty(exports, "getFeeInfoForChain", {
39
- enumerable: true,
40
- get: function () { return chunkJ4LI33TK_cjs.getFeeInfoForChain; }
41
- });
42
- Object.defineProperty(exports, "GAS_STATION_CHAIN_IDS", {
43
- enumerable: true,
44
- get: function () { return chunkKZOSEIWH_cjs.GAS_STATION_CHAIN_IDS; }
45
- });
46
- Object.defineProperty(exports, "getSigningStargateClient", {
47
- enumerable: true,
48
- get: function () { return chunkSW3SEQMJ_cjs.getSigningStargateClient; }
49
- });
50
- Object.defineProperty(exports, "setApiOptions", {
51
- enumerable: true,
52
- get: function () { return chunkZNXE6PUV_cjs.setApiOptions; }
53
- });
54
- Object.defineProperty(exports, "setClientOptions", {
55
- enumerable: true,
56
- get: function () { return chunk5IAEEEOQ_cjs.setClientOptions; }
57
- });
58
- Object.defineProperty(exports, "ibcOriginAssets", {
59
- enumerable: true,
60
- get: function () { return chunkRDOSNDAQ_cjs.ibcOriginAssets; }
61
- });
62
- Object.defineProperty(exports, "messages", {
63
- enumerable: true,
64
- get: function () { return chunk32MRDO7V_cjs.messages; }
65
- });
66
- Object.defineProperty(exports, "messagesDirect", {
67
- enumerable: true,
68
- get: function () { return chunkLXYLWTNZ_cjs.messagesDirect; }
69
- });
70
- Object.defineProperty(exports, "recommendAssets", {
71
- enumerable: true,
72
- get: function () { return chunk77ITCT75_cjs.recommendAssets; }
73
- });
74
- Object.defineProperty(exports, "route", {
75
- enumerable: true,
76
- get: function () { return chunkSFMBRLUS_cjs.route; }
77
- });
78
- Object.defineProperty(exports, "submitTransaction", {
79
- enumerable: true,
80
- get: function () { return chunkL5V5PASH_cjs.submitTransaction; }
81
- });
82
- Object.defineProperty(exports, "trackTransaction", {
83
- enumerable: true,
84
- get: function () { return chunkKDN7RCGP_cjs.trackTransaction; }
85
- });
86
- Object.defineProperty(exports, "transactionStatus", {
87
- enumerable: true,
88
- get: function () { return chunkDAMZSSOH_cjs.transactionStatus; }
89
- });
90
- Object.defineProperty(exports, "assetsBetweenChains", {
91
- enumerable: true,
92
- get: function () { return chunkURLFWBSC_cjs.assetsBetweenChains; }
93
- });
94
- Object.defineProperty(exports, "bridges", {
95
- enumerable: true,
96
- get: function () { return chunkVI7UMBQ7_cjs.bridges; }
97
- });
98
- Object.defineProperty(exports, "venues", {
99
- enumerable: true,
100
- get: function () { return chunkPNWIJSMA_cjs.venues; }
101
- });
102
- Object.defineProperty(exports, "assetsFromSource", {
103
- enumerable: true,
104
- get: function () { return chunkISHM4QWP_cjs.assetsFromSource; }
105
- });
106
- Object.defineProperty(exports, "assets", {
107
- enumerable: true,
108
- get: function () { return chunkED2OY55G_cjs.assets; }
109
- });
110
- Object.defineProperty(exports, "balances", {
111
- enumerable: true,
112
- get: function () { return chunkED2OY55G_cjs.balances; }
113
- });
114
- Object.defineProperty(exports, "chains", {
115
- enumerable: true,
116
- get: function () { return chunkED2OY55G_cjs.chains; }
117
- });
118
- Object.defineProperty(exports, "Api", {
119
- enumerable: true,
120
- get: function () { return chunkHAR3IXDE_cjs.Api; }
121
- });
122
- Object.defineProperty(exports, "AutopilotAction", {
123
- enumerable: true,
124
- get: function () { return chunkHAR3IXDE_cjs.AutopilotAction; }
125
- });
126
- Object.defineProperty(exports, "AxelarTransferState", {
127
- enumerable: true,
128
- get: function () { return chunkHAR3IXDE_cjs.AxelarTransferState; }
129
- });
130
- Object.defineProperty(exports, "AxelarTransferType", {
131
- enumerable: true,
132
- get: function () { return chunkHAR3IXDE_cjs.AxelarTransferType; }
133
- });
134
- Object.defineProperty(exports, "BridgeType", {
135
- enumerable: true,
136
- get: function () { return chunkHAR3IXDE_cjs.BridgeType; }
137
- });
138
- Object.defineProperty(exports, "CCTPTransferState", {
139
- enumerable: true,
140
- get: function () { return chunkHAR3IXDE_cjs.CCTPTransferState; }
141
- });
142
- Object.defineProperty(exports, "ChainType", {
143
- enumerable: true,
144
- get: function () { return chunkHAR3IXDE_cjs.ChainType; }
145
- });
146
- Object.defineProperty(exports, "ContentType", {
147
- enumerable: true,
148
- get: function () { return chunkHAR3IXDE_cjs.ContentType; }
149
- });
150
- Object.defineProperty(exports, "ContractCallWithTokenErrorType", {
151
- enumerable: true,
152
- get: function () { return chunkHAR3IXDE_cjs.ContractCallWithTokenErrorType; }
153
- });
154
- Object.defineProperty(exports, "FeeType", {
155
- enumerable: true,
156
- get: function () { return chunkHAR3IXDE_cjs.FeeType; }
157
- });
158
- Object.defineProperty(exports, "GoFastTransferState", {
159
- enumerable: true,
160
- get: function () { return chunkHAR3IXDE_cjs.GoFastTransferState; }
161
- });
162
- Object.defineProperty(exports, "HttpClient", {
163
- enumerable: true,
164
- get: function () { return chunkHAR3IXDE_cjs.HttpClient; }
165
- });
166
- Object.defineProperty(exports, "HyperlaneTransferState", {
167
- enumerable: true,
168
- get: function () { return chunkHAR3IXDE_cjs.HyperlaneTransferState; }
169
- });
170
- Object.defineProperty(exports, "LayerZeroTransferState", {
171
- enumerable: true,
172
- get: function () { return chunkHAR3IXDE_cjs.LayerZeroTransferState; }
173
- });
174
- Object.defineProperty(exports, "OPInitTransferState", {
175
- enumerable: true,
176
- get: function () { return chunkHAR3IXDE_cjs.OPInitTransferState; }
177
- });
178
- Object.defineProperty(exports, "PacketErrorType", {
179
- enumerable: true,
180
- get: function () { return chunkHAR3IXDE_cjs.PacketErrorType; }
181
- });
182
- Object.defineProperty(exports, "Reason", {
183
- enumerable: true,
184
- get: function () { return chunkHAR3IXDE_cjs.Reason; }
185
- });
186
- Object.defineProperty(exports, "RoutePriceWarningType", {
187
- enumerable: true,
188
- get: function () { return chunkHAR3IXDE_cjs.RoutePriceWarningType; }
189
- });
190
- Object.defineProperty(exports, "SendTokenErrorType", {
191
- enumerable: true,
192
- get: function () { return chunkHAR3IXDE_cjs.SendTokenErrorType; }
193
- });
194
- Object.defineProperty(exports, "StargateTransferState", {
195
- enumerable: true,
196
- get: function () { return chunkHAR3IXDE_cjs.StargateTransferState; }
197
- });
198
- Object.defineProperty(exports, "StatusErrorType", {
199
- enumerable: true,
200
- get: function () { return chunkHAR3IXDE_cjs.StatusErrorType; }
201
- });
202
- Object.defineProperty(exports, "TransactionState", {
203
- enumerable: true,
204
- get: function () { return chunkHAR3IXDE_cjs.TransactionState; }
205
- });
206
- Object.defineProperty(exports, "TransferState", {
207
- enumerable: true,
208
- get: function () { return chunkHAR3IXDE_cjs.TransferState; }
209
- });
package/dist/index.d.cts DELETED
@@ -1,35 +0,0 @@
1
- export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.cjs';
2
- export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKRpODCc.cjs';
3
- export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-qvyKvyFh.cjs';
4
- export { assets } from './api/getAssets.cjs';
5
- export { assetsBetweenChains } from './api/getAssetsBetweenChains.cjs';
6
- export { bridges } from './api/getBridges.cjs';
7
- export { chains } from './api/getChains.cjs';
8
- export { venues } from './api/getVenues.cjs';
9
- export { ibcOriginAssets } from './api/postIbcOriginAssets.cjs';
10
- export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.cjs';
11
- export { messagesDirect } from './api/postMessagesDirect.cjs';
12
- export { recommendAssets } from './api/postRecommendAssets.cjs';
13
- export { assetsFromSource } from './api/postAssetsFromSource.cjs';
14
- export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.cjs';
15
- export { RouteRequest, route } from './api/postRoute.cjs';
16
- export { submitTransaction } from './api/postSubmitTransaction.cjs';
17
- export { trackTransaction } from './api/postTrackTransaction.cjs';
18
- export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.cjs';
19
- export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.cjs';
20
- export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CT6CHI9I.cjs';
21
- export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.cjs';
22
- export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.cjs';
23
- export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.cjs';
24
- import './generateApi-C0amiydg.cjs';
25
- import '@cosmjs/amino';
26
- import '@cosmjs/proto-signing';
27
- import '@cosmjs/stargate';
28
- import 'viem';
29
- import '@solana/wallet-adapter-base';
30
- import './apiState-CdzxTxYd.cjs';
31
- import '@cosmjs/proto-signing/build/signer';
32
-
33
- declare const GAS_STATION_CHAIN_IDS: string[];
34
-
35
- export { GAS_STATION_CHAIN_IDS };
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWWNTHZ6I_cjs = require('../chunk-WWNTHZ6I.cjs');
4
- require('../chunk-4R6OCWRR.cjs');
5
- require('../chunk-KZOSEIWH.cjs');
6
- require('../chunk-SW3SEQMJ.cjs');
7
- require('../chunk-7SK3IFXJ.cjs');
8
- require('../chunk-7OIZPQJB.cjs');
9
- require('../chunk-32MRDO7V.cjs');
10
- require('../chunk-L5V5PASH.cjs');
11
- require('../chunk-KDN7RCGP.cjs');
12
- require('../chunk-DAMZSSOH.cjs');
13
- require('../chunk-ED2OY55G.cjs');
14
- require('../chunk-HAR3IXDE.cjs');
15
-
16
-
17
-
18
- Object.defineProperty(exports, "executeRoute", {
19
- enumerable: true,
20
- get: function () { return chunkWWNTHZ6I_cjs.executeRoute; }
21
- });
@@ -1,9 +0,0 @@
1
- export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-BKRpODCc.cjs';
2
- import '../swaggerTypes-O9-gvCT1.cjs';
3
- import '../generateApi-C0amiydg.cjs';
4
- import '../client-types-qvyKvyFh.cjs';
5
- import '@cosmjs/amino';
6
- import '@cosmjs/proto-signing';
7
- import '@cosmjs/stargate';
8
- import 'viem';
9
- import '@solana/wallet-adapter-base';
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkJ4LI33TK_cjs = require('../chunk-J4LI33TK.cjs');
4
- require('../chunk-KZOSEIWH.cjs');
5
- require('../chunk-7SK3IFXJ.cjs');
6
- require('../chunk-ED2OY55G.cjs');
7
- require('../chunk-HAR3IXDE.cjs');
8
-
9
-
10
-
11
- Object.defineProperty(exports, "getFeeInfoForChain", {
12
- enumerable: true,
13
- get: function () { return chunkJ4LI33TK_cjs.getFeeInfoForChain; }
14
- });
@@ -1,9 +0,0 @@
1
- import { a2 as FeeAsset } from '../swaggerTypes-O9-gvCT1.cjs';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
3
-
4
- type GetFeeInfoForChainProps = {
5
- chainId: string;
6
- } & SkipApiOptions;
7
- declare const getFeeInfoForChain: ({ chainId, apiUrl, apiKey }: GetFeeInfoForChainProps) => Promise<FeeAsset | undefined>;
8
-
9
- export { type GetFeeInfoForChainProps, getFeeInfoForChain };
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk44PBLFB5_cjs = require('../chunk-44PBLFB5.cjs');
4
- require('../chunk-4R6OCWRR.cjs');
5
- require('../chunk-J4LI33TK.cjs');
6
- require('../chunk-KZOSEIWH.cjs');
7
- require('../chunk-7SK3IFXJ.cjs');
8
- require('../chunk-ED2OY55G.cjs');
9
- require('../chunk-HAR3IXDE.cjs');
10
-
11
-
12
-
13
- Object.defineProperty(exports, "getRecommendedGasPrice", {
14
- enumerable: true,
15
- get: function () { return chunk44PBLFB5_cjs.getRecommendedGasPrice; }
16
- });
@@ -1,9 +0,0 @@
1
- import { GasPrice } from '@cosmjs/stargate';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
3
-
4
- type getRecommendedGasPriceProps = {
5
- chainId: string;
6
- } & SkipApiOptions;
7
- declare const getRecommendedGasPrice: (props: getRecommendedGasPriceProps) => Promise<GasPrice | undefined>;
8
-
9
- export { getRecommendedGasPrice, type getRecommendedGasPriceProps };
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkSW3SEQMJ_cjs = require('../chunk-SW3SEQMJ.cjs');
4
- require('../chunk-7SK3IFXJ.cjs');
5
- require('../chunk-ED2OY55G.cjs');
6
- require('../chunk-HAR3IXDE.cjs');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "getSigningStargateClient", {
11
- enumerable: true,
12
- get: function () { return chunkSW3SEQMJ_cjs.getSigningStargateClient; }
13
- });
@@ -1,13 +0,0 @@
1
- import { OfflineSigner } from '@cosmjs/proto-signing/build/signer';
2
- import { SigningStargateClient } from '@cosmjs/stargate';
3
-
4
- type getSigningStargateClientProps = {
5
- chainId: string;
6
- getOfflineSigner?: (chainId: string) => Promise<OfflineSigner>;
7
- };
8
- declare const getSigningStargateClient: ({ chainId, getOfflineSigner, }: getSigningStargateClientProps) => Promise<{
9
- stargateClient: SigningStargateClient;
10
- signer: OfflineSigner;
11
- }>;
12
-
13
- export { getSigningStargateClient, type getSigningStargateClientProps };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkZNXE6PUV_cjs = require('../chunk-ZNXE6PUV.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "setApiOptions", {
9
- enumerable: true,
10
- get: function () { return chunkZNXE6PUV_cjs.setApiOptions; }
11
- });
@@ -1,9 +0,0 @@
1
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
2
- import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.cjs';
3
-
4
- type SetApiOptionsProps = {
5
- chainIdsToAffiliates?: Record<string, ChainAffiliates>;
6
- } & SkipApiOptions;
7
- declare const setApiOptions: (options?: SetApiOptionsProps) => Promise<void>;
8
-
9
- export { type SetApiOptionsProps, setApiOptions };
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk5IAEEEOQ_cjs = require('../chunk-5IAEEEOQ.cjs');
4
- require('../chunk-7OIZPQJB.cjs');
5
- require('../chunk-ED2OY55G.cjs');
6
- require('../chunk-HAR3IXDE.cjs');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "setClientOptions", {
11
- enumerable: true,
12
- get: function () { return chunk5IAEEEOQ_cjs.setClientOptions; }
13
- });
@@ -1,9 +0,0 @@
1
- export { s as setClientOptions } from '../setClientOptions-CT6CHI9I.cjs';
2
- import '@cosmjs/proto-signing';
3
- import '@cosmjs/stargate';
4
- import '../apiState-CdzxTxYd.cjs';
5
- import '../client-types-qvyKvyFh.cjs';
6
- import '@cosmjs/amino';
7
- import 'viem';
8
- import '@solana/wallet-adapter-base';
9
- import '../swaggerTypes-O9-gvCT1.cjs';
@@ -1,19 +0,0 @@
1
- import { GeneratedType } from '@cosmjs/proto-signing';
2
- import { AminoConverters } from '@cosmjs/stargate';
3
- import { S as SkipApiOptions } from './apiState-CdzxTxYd.cjs';
4
- import { E as EndpointOptions } from './client-types-qvyKvyFh.cjs';
5
-
6
- type SkipClientOptions = SkipApiOptions & {
7
- endpointOptions?: {
8
- endpoints?: Record<string, EndpointOptions>;
9
- getRpcEndpointForChain?: (chainId: string) => Promise<string>;
10
- getRestEndpointForChain?: (chainId: string) => Promise<string>;
11
- };
12
- aminoTypes?: AminoConverters;
13
- registryTypes?: Iterable<[string, GeneratedType]>;
14
- cacheDurationMs?: number;
15
- };
16
-
17
- declare const setClientOptions: (options?: SkipClientOptions) => void;
18
-
19
- export { type SkipClientOptions as S, setClientOptions as s };