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

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 (176) hide show
  1. package/dist/api/getAssets.cjs +15 -0
  2. package/dist/api/{getAssets.d.mts → getAssets.d.cts} +2 -2
  3. package/dist/api/getAssets.d.ts +19 -0
  4. package/dist/api/getAssets.js +2 -0
  5. package/dist/api/getAssetsBetweenChains.cjs +11 -0
  6. package/dist/api/{getAssetsBetweenChains.d.mts → getAssetsBetweenChains.d.cts} +2 -2
  7. package/dist/api/getAssetsBetweenChains.d.ts +56 -0
  8. package/dist/api/getAssetsBetweenChains.js +2 -0
  9. package/dist/api/getBridges.cjs +11 -0
  10. package/dist/api/{getBridges.d.mts → getBridges.d.cts} +2 -2
  11. package/dist/api/getBridges.d.ts +54 -0
  12. package/dist/api/getBridges.js +2 -0
  13. package/dist/api/getChains.cjs +11 -0
  14. package/dist/api/{getChains.d.mts → getChains.d.cts} +2 -2
  15. package/dist/api/getChains.d.ts +41 -0
  16. package/dist/api/getChains.js +2 -0
  17. package/dist/api/getVenues.cjs +11 -0
  18. package/dist/api/{getVenues.d.mts → getVenues.d.cts} +1 -1
  19. package/dist/api/getVenues.d.ts +13 -0
  20. package/dist/api/getVenues.js +2 -0
  21. package/dist/api/postAssetsFromSource.cjs +12 -0
  22. package/dist/api/{postAssetsFromSource.d.mts → postAssetsFromSource.d.cts} +2 -2
  23. package/dist/api/postAssetsFromSource.d.ts +13 -0
  24. package/dist/api/postAssetsFromSource.js +3 -0
  25. package/dist/api/postBalances.cjs +11 -0
  26. package/dist/api/{postBalances.d.mts → postBalances.d.cts} +3 -3
  27. package/dist/api/postBalances.d.ts +35 -0
  28. package/dist/api/postBalances.js +2 -0
  29. package/dist/api/postIbcOriginAssets.cjs +11 -0
  30. package/dist/api/{postIbcOriginAssets.d.mts → postIbcOriginAssets.d.cts} +1 -1
  31. package/dist/api/postIbcOriginAssets.d.ts +32 -0
  32. package/dist/api/postIbcOriginAssets.js +2 -0
  33. package/dist/api/postMessages.cjs +11 -0
  34. package/dist/api/{postMessages.d.mts → postMessages.d.cts} +3 -3
  35. package/dist/api/postMessages.d.ts +528 -0
  36. package/dist/api/postMessages.js +2 -0
  37. package/dist/api/postMessagesDirect.cjs +11 -0
  38. package/dist/api/{postMessagesDirect.d.mts → postMessagesDirect.d.cts} +2 -2
  39. package/dist/api/postMessagesDirect.d.ts +568 -0
  40. package/dist/api/postMessagesDirect.js +2 -0
  41. package/dist/api/postRecommendAssets.cjs +11 -0
  42. package/dist/api/{postRecommendAssets.d.mts → postRecommendAssets.d.cts} +2 -2
  43. package/dist/api/postRecommendAssets.d.ts +40 -0
  44. package/dist/api/postRecommendAssets.js +2 -0
  45. package/dist/api/postRoute.cjs +11 -0
  46. package/dist/api/{postRoute.d.mts → postRoute.d.cts} +3 -3
  47. package/dist/api/postRoute.d.ts +460 -0
  48. package/dist/api/postRoute.js +2 -0
  49. package/dist/api/postSubmitTransaction.cjs +11 -0
  50. package/dist/api/{postSubmitTransaction.d.mts → postSubmitTransaction.d.cts} +1 -1
  51. package/dist/api/postSubmitTransaction.d.ts +13 -0
  52. package/dist/api/postSubmitTransaction.js +2 -0
  53. package/dist/api/postTrackTransaction.cjs +11 -0
  54. package/dist/api/{postTrackTransaction.d.mts → postTrackTransaction.d.cts} +1 -1
  55. package/dist/api/postTrackTransaction.d.ts +13 -0
  56. package/dist/api/postTrackTransaction.js +2 -0
  57. package/dist/api/postTransactionStatus.cjs +11 -0
  58. package/dist/api/{postTransactionStatus.d.mts → postTransactionStatus.d.cts} +3 -3
  59. package/dist/api/postTransactionStatus.d.ts +559 -0
  60. package/dist/api/postTransactionStatus.js +2 -0
  61. package/dist/apiState-CdzxTxYd.d.ts +6 -0
  62. package/dist/chunk-32MRDO7V.cjs +12 -0
  63. package/dist/{chunk-C5CGY2X7.mjs → chunk-33K6EESX.js} +1 -1
  64. package/dist/{chunk-ZMEQSFOL.mjs → chunk-3N7XVGLX.js} +18 -23
  65. package/dist/{chunk-OTLFF5OB.mjs → chunk-3OZQ35X3.js} +101 -138
  66. package/dist/chunk-44PBLFB5.cjs +24 -0
  67. package/dist/{chunk-7TBBV2YY.mjs → chunk-4JJWOILI.js} +1 -1
  68. package/dist/chunk-4R6OCWRR.cjs +1346 -0
  69. package/dist/chunk-5IAEEEOQ.cjs +2251 -0
  70. package/dist/chunk-77ITCT75.cjs +15 -0
  71. package/dist/chunk-7OIZPQJB.cjs +3660 -0
  72. package/dist/chunk-7SK3IFXJ.cjs +188 -0
  73. package/dist/{chunk-QZ3X6MP3.mjs → chunk-BQTQJQ5E.js} +1 -1
  74. package/dist/{chunk-IHIJJNTV.mjs → chunk-BRJDNGYH.js} +6 -7
  75. package/dist/chunk-BRMONS6A.js +130 -0
  76. package/dist/{chunk-NNZFCKHP.mjs → chunk-C2EDPY6J.js} +1 -1
  77. package/dist/chunk-DAMZSSOH.cjs +12 -0
  78. package/dist/{chunk-KPK3Z6QZ.mjs → chunk-DW4U6YI6.js} +1 -1
  79. package/dist/chunk-ED2OY55G.cjs +136 -0
  80. package/dist/chunk-GARVPN2H.js +16 -0
  81. package/dist/chunk-HAR3IXDE.cjs +705 -0
  82. package/dist/chunk-ISHM4QWP.cjs +16 -0
  83. package/dist/chunk-J4LI33TK.cjs +95 -0
  84. package/dist/{chunk-NU7MCJOK.mjs → chunk-JTIHU43D.js} +32 -36
  85. package/dist/chunk-KDN7RCGP.cjs +13 -0
  86. package/dist/{chunk-J7GGREYX.mjs → chunk-KNV72XRZ.js} +1 -1
  87. package/dist/chunk-KZOSEIWH.cjs +10 -0
  88. package/dist/chunk-L5V5PASH.cjs +12 -0
  89. package/dist/chunk-LXYLWTNZ.cjs +12 -0
  90. package/dist/{chunk-CAAR7GDJ.mjs → chunk-MGVXJ2U4.js} +1 -1
  91. package/dist/{chunk-IGD32L7C.mjs → chunk-MTMPHY3Y.js} +1 -1
  92. package/dist/chunk-PNWIJSMA.cjs +12 -0
  93. package/dist/{chunk-CZ27FEZ7.mjs → chunk-PRQ2NHRZ.js} +1 -1
  94. package/dist/chunk-RDOSNDAQ.cjs +13 -0
  95. package/dist/{chunk-LJVI5DLG.mjs → chunk-RDRDFJQE.js} +1 -1
  96. package/dist/{chunk-YWYU6P7W.mjs → chunk-RMP3HM5N.js} +2 -2
  97. package/dist/chunk-SFMBRLUS.cjs +18 -0
  98. package/dist/{chunk-DZQJN6OX.mjs → chunk-SQGWZAUC.js} +76 -86
  99. package/dist/chunk-SW3SEQMJ.cjs +273 -0
  100. package/dist/{chunk-2ETF4N4H.mjs → chunk-TW77BXMT.js} +4 -5
  101. package/dist/chunk-URLFWBSC.cjs +11 -0
  102. package/dist/chunk-VI7UMBQ7.cjs +12 -0
  103. package/dist/{chunk-2F4MBSMT.mjs → chunk-VMPFHQ7U.js} +14 -20
  104. package/dist/chunk-W2U2UOFA.js +1790 -0
  105. package/dist/chunk-W6TBGBV3.js +675 -0
  106. package/dist/chunk-WWNTHZ6I.cjs +1812 -0
  107. package/dist/chunk-ZNXE6PUV.cjs +46 -0
  108. package/dist/{client-types-CVch1pZ-.d.mts → client-types-CxjtffyG.d.ts} +1 -1
  109. package/dist/client-types-qvyKvyFh.d.cts +60 -0
  110. package/dist/{executeRoute-CRdeEz1o.d.mts → executeRoute-BKRpODCc.d.cts} +3 -3
  111. package/dist/executeRoute-BKvMVd1I.d.ts +69 -0
  112. package/dist/{generateApi-3mHZ6Zbr.d.mts → generateApi-C0amiydg.d.cts} +1 -1
  113. package/dist/generateApi-DqCp36fX.d.ts +22 -0
  114. package/dist/index.cjs +209 -0
  115. package/dist/{index.d.mts → index.d.cts} +25 -27
  116. package/dist/index.d.ts +35 -0
  117. package/dist/index.js +24 -0
  118. package/dist/public-functions/executeRoute.cjs +21 -0
  119. package/dist/public-functions/{executeRoute.d.mts → executeRoute.d.cts} +4 -4
  120. package/dist/public-functions/executeRoute.d.ts +9 -0
  121. package/dist/public-functions/executeRoute.js +12 -0
  122. package/dist/public-functions/getFeeInfoForChain.cjs +14 -0
  123. package/dist/public-functions/{getFeeInfoForChain.d.mts → getFeeInfoForChain.d.cts} +2 -2
  124. package/dist/public-functions/getFeeInfoForChain.d.ts +9 -0
  125. package/dist/public-functions/getFeeInfoForChain.js +5 -0
  126. package/dist/public-functions/getRecommendedGasPrice.cjs +16 -0
  127. package/dist/public-functions/{getRecommendedGasPrice.d.mts → getRecommendedGasPrice.d.cts} +2 -2
  128. package/dist/public-functions/getRecommendedGasPrice.d.ts +9 -0
  129. package/dist/public-functions/getRecommendedGasPrice.js +7 -0
  130. package/dist/public-functions/getSigningStargateClient.cjs +13 -0
  131. package/dist/public-functions/{getSigningStargateClient.d.mts → getSigningStargateClient.d.cts} +1 -1
  132. package/dist/public-functions/getSigningStargateClient.d.ts +13 -0
  133. package/dist/public-functions/getSigningStargateClient.js +4 -0
  134. package/dist/public-functions/setApiOptions.cjs +11 -0
  135. package/dist/public-functions/{setApiOptions.d.mts → setApiOptions.d.cts} +2 -2
  136. package/dist/public-functions/setApiOptions.d.ts +9 -0
  137. package/dist/public-functions/setApiOptions.js +2 -0
  138. package/dist/public-functions/setClientOptions.cjs +13 -0
  139. package/dist/public-functions/setClientOptions.d.cts +9 -0
  140. package/dist/public-functions/setClientOptions.d.ts +9 -0
  141. package/dist/public-functions/setClientOptions.js +4 -0
  142. package/dist/{setClientOptions-CVB_OUIn.d.mts → setClientOptions-CT6CHI9I.d.cts} +2 -2
  143. package/dist/setClientOptions-DbanEIwL.d.ts +19 -0
  144. package/dist/swaggerTypes-O9-gvCT1.d.ts +1890 -0
  145. package/package.json +12 -3
  146. package/dist/api/getAssets.mjs +0 -2
  147. package/dist/api/getAssetsBetweenChains.mjs +0 -2
  148. package/dist/api/getBridges.mjs +0 -2
  149. package/dist/api/getChains.mjs +0 -2
  150. package/dist/api/getVenues.mjs +0 -2
  151. package/dist/api/postAssetsFromSource.mjs +0 -3
  152. package/dist/api/postBalances.mjs +0 -2
  153. package/dist/api/postIbcOriginAssets.mjs +0 -2
  154. package/dist/api/postMessages.mjs +0 -2
  155. package/dist/api/postMessagesDirect.mjs +0 -2
  156. package/dist/api/postRecommendAssets.mjs +0 -2
  157. package/dist/api/postRoute.mjs +0 -2
  158. package/dist/api/postSubmitTransaction.mjs +0 -2
  159. package/dist/api/postTrackTransaction.mjs +0 -2
  160. package/dist/api/postTransactionStatus.mjs +0 -2
  161. package/dist/chunk-2FYLP573.mjs +0 -15
  162. package/dist/chunk-DKIWPD5I.mjs +0 -124
  163. package/dist/chunk-I2MX24LT.mjs +0 -2316
  164. package/dist/chunk-RXWDHQLG.mjs +0 -231
  165. package/dist/index.mjs +0 -24
  166. package/dist/public-functions/executeRoute.mjs +0 -12
  167. package/dist/public-functions/getFeeInfoForChain.mjs +0 -5
  168. package/dist/public-functions/getRecommendedGasPrice.mjs +0 -7
  169. package/dist/public-functions/getSigningStargateClient.mjs +0 -4
  170. package/dist/public-functions/setApiOptions.mjs +0 -2
  171. package/dist/public-functions/setClientOptions.d.mts +0 -9
  172. package/dist/public-functions/setClientOptions.mjs +0 -4
  173. /package/dist/{apiState-CdzxTxYd.d.mts → apiState-CdzxTxYd.d.cts} +0 -0
  174. /package/dist/{chunk-ZAF3Z56R.mjs → chunk-SWYON2RG.js} +0 -0
  175. /package/dist/{chunk-TUBI6VE6.mjs → chunk-VQ5SIQWU.js} +0 -0
  176. /package/dist/{swaggerTypes-O9-gvCT1.d.mts → swaggerTypes-O9-gvCT1.d.cts} +0 -0
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/postMessagesDirect.ts
4
4
  var messagesDirect = api({
@@ -1,11 +1,10 @@
1
- import { BigNumber } from './chunk-TUBI6VE6.mjs';
2
- import { getFeeInfoForChain } from './chunk-2F4MBSMT.mjs';
3
- import { __async } from './chunk-RXWDHQLG.mjs';
1
+ import { BigNumber } from './chunk-VQ5SIQWU.js';
2
+ import { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
4
3
  import { Decimal } from '@cosmjs/math/build/decimal';
5
- import { GasPrice } from '@cosmjs/stargate/build/fee';
4
+ import { GasPrice } from '@cosmjs/stargate';
6
5
 
7
- var getRecommendedGasPrice = (props) => __async(void 0, null, function* () {
8
- const feeInfo = yield getFeeInfoForChain(props);
6
+ var getRecommendedGasPrice = async (props) => {
7
+ const feeInfo = await getFeeInfoForChain(props);
9
8
  if (!feeInfo || !feeInfo.gasPrice) {
10
9
  return void 0;
11
10
  }
@@ -18,6 +17,6 @@ var getRecommendedGasPrice = (props) => __async(void 0, null, function* () {
18
17
  }
19
18
  if (!price) return;
20
19
  return new GasPrice(Decimal.fromUserInput(BigNumber(price).toFixed(), 18), feeInfo.denom);
21
- });
20
+ };
22
21
 
23
22
  export { getRecommendedGasPrice };
@@ -0,0 +1,130 @@
1
+ import { api } from './chunk-W6TBGBV3.js';
2
+
3
+ // src/private-functions/getMainnetAndTestnetChains.ts
4
+ var getMainnetAndTestnetChains = async (apiOptions) => {
5
+ const [mainnetRes, testnetRes] = await Promise.all([
6
+ chains({
7
+ includeEvm: true,
8
+ includeSvm: true,
9
+ ...apiOptions
10
+ }),
11
+ chains({
12
+ includeEvm: true,
13
+ includeSvm: true,
14
+ onlyTestnets: true,
15
+ ...apiOptions
16
+ })
17
+ ]);
18
+ const combinedChains = [...mainnetRes ?? [], ...testnetRes ?? []];
19
+ ClientState.skipChains = combinedChains;
20
+ return combinedChains;
21
+ };
22
+
23
+ // src/api/getAssets.ts
24
+ var assets = api({
25
+ methodName: "getAssets",
26
+ path: "/v2/fungible/assets",
27
+ transformResponse: (response) => {
28
+ return transformAssetsMap(response.chainToAssetsMap);
29
+ },
30
+ onSuccess: (response, options) => {
31
+ if (options?.includeEvmAssets && options?.includeSvmAssets && options?.includeCw20Assets) {
32
+ ClientState.skipAssets = response;
33
+ }
34
+ }
35
+ });
36
+ var transformAssetsMap = (input) => Object.entries(input ?? {}).reduce(
37
+ (acc, [chainId, { assets: assets2 }]) => {
38
+ acc[chainId] = (assets2 ?? []).map((asset) => asset);
39
+ return acc;
40
+ },
41
+ {}
42
+ );
43
+
44
+ // src/private-functions/getMainnetAndTestnetAssets.ts
45
+ var getMainnetAndTestnetAssets = async ({
46
+ chainId,
47
+ ...apiOptions
48
+ }) => {
49
+ const [assetsMainnet, assetsTestnet] = await Promise.all([
50
+ assets({
51
+ chainIds: chainId ? [chainId] : void 0,
52
+ ...apiOptions
53
+ }),
54
+ assets({
55
+ chainIds: chainId ? [chainId] : void 0,
56
+ onlyTestnets: true,
57
+ ...apiOptions
58
+ })
59
+ ]);
60
+ const mainnet = assetsMainnet;
61
+ const testnet = assetsTestnet;
62
+ const merged = {
63
+ ...mainnet,
64
+ ...testnet
65
+ };
66
+ ClientState.skipAssets = merged;
67
+ return merged;
68
+ };
69
+
70
+ // src/api/postBalances.ts
71
+ var balances = api({
72
+ methodName: "getBalances",
73
+ method: "post",
74
+ path: "/v2/info/balances",
75
+ onSuccess: (response, options) => {
76
+ if (!options) {
77
+ ClientState.skipBalances = response;
78
+ }
79
+ }
80
+ });
81
+
82
+ // src/state/clientState.ts
83
+ var ClientState = class {
84
+ static aminoTypes;
85
+ static registry;
86
+ static endpointOptions;
87
+ static skipChains;
88
+ static skipAssets;
89
+ static skipBalances;
90
+ static async getSkipChains(apiOptions) {
91
+ if (this.skipChains) {
92
+ return this.skipChains;
93
+ }
94
+ const response = await getMainnetAndTestnetChains(apiOptions);
95
+ this.skipChains = response;
96
+ return response;
97
+ }
98
+ static async getSkipAssets(props) {
99
+ if (this.skipAssets) {
100
+ return this.skipAssets;
101
+ }
102
+ const response = await getMainnetAndTestnetAssets(props);
103
+ this.skipAssets = response;
104
+ return response;
105
+ }
106
+ static async getSkipBalances() {
107
+ if (this.skipBalances) {
108
+ return this.skipBalances;
109
+ }
110
+ const response = await balances();
111
+ this.skipBalances = response;
112
+ return response;
113
+ }
114
+ static signingStargateClientByChainId = {};
115
+ static validateGasResults;
116
+ };
117
+
118
+ // src/api/getChains.ts
119
+ var chains = api({
120
+ methodName: "getChains",
121
+ path: "/v2/info/chains",
122
+ transformResponse: (response) => response.chains,
123
+ onSuccess: (response, options) => {
124
+ if (options?.includeEvm && options?.includeSvm) {
125
+ ClientState.skipChains = response;
126
+ }
127
+ }
128
+ });
129
+
130
+ export { ClientState, assets, balances, chains, transformAssetsMap };
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/getVenues.ts
4
4
  var venues = api({
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
4
+
5
+ // src/api/postTransactionStatus.ts
6
+ var transactionStatus = chunkHAR3IXDE_cjs.pollingApi({
7
+ methodName: "getTransactionStatusV2",
8
+ path: "/v2/tx/status",
9
+ method: "get"
10
+ });
11
+
12
+ exports.transactionStatus = transactionStatus;
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/postMessages.ts
4
4
  var messages = api({
@@ -0,0 +1,136 @@
1
+ 'use strict';
2
+
3
+ var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
4
+
5
+ // src/private-functions/getMainnetAndTestnetChains.ts
6
+ var getMainnetAndTestnetChains = async (apiOptions) => {
7
+ const [mainnetRes, testnetRes] = await Promise.all([
8
+ chains({
9
+ includeEvm: true,
10
+ includeSvm: true,
11
+ ...apiOptions
12
+ }),
13
+ chains({
14
+ includeEvm: true,
15
+ includeSvm: true,
16
+ onlyTestnets: true,
17
+ ...apiOptions
18
+ })
19
+ ]);
20
+ const combinedChains = [...mainnetRes ?? [], ...testnetRes ?? []];
21
+ ClientState.skipChains = combinedChains;
22
+ return combinedChains;
23
+ };
24
+
25
+ // src/api/getAssets.ts
26
+ var assets = chunkHAR3IXDE_cjs.api({
27
+ methodName: "getAssets",
28
+ path: "/v2/fungible/assets",
29
+ transformResponse: (response) => {
30
+ return transformAssetsMap(response.chainToAssetsMap);
31
+ },
32
+ onSuccess: (response, options) => {
33
+ if (options?.includeEvmAssets && options?.includeSvmAssets && options?.includeCw20Assets) {
34
+ ClientState.skipAssets = response;
35
+ }
36
+ }
37
+ });
38
+ var transformAssetsMap = (input) => Object.entries(input ?? {}).reduce(
39
+ (acc, [chainId, { assets: assets2 }]) => {
40
+ acc[chainId] = (assets2 ?? []).map((asset) => asset);
41
+ return acc;
42
+ },
43
+ {}
44
+ );
45
+
46
+ // src/private-functions/getMainnetAndTestnetAssets.ts
47
+ var getMainnetAndTestnetAssets = async ({
48
+ chainId,
49
+ ...apiOptions
50
+ }) => {
51
+ const [assetsMainnet, assetsTestnet] = await Promise.all([
52
+ assets({
53
+ chainIds: chainId ? [chainId] : void 0,
54
+ ...apiOptions
55
+ }),
56
+ assets({
57
+ chainIds: chainId ? [chainId] : void 0,
58
+ onlyTestnets: true,
59
+ ...apiOptions
60
+ })
61
+ ]);
62
+ const mainnet = assetsMainnet;
63
+ const testnet = assetsTestnet;
64
+ const merged = {
65
+ ...mainnet,
66
+ ...testnet
67
+ };
68
+ ClientState.skipAssets = merged;
69
+ return merged;
70
+ };
71
+
72
+ // src/api/postBalances.ts
73
+ var balances = chunkHAR3IXDE_cjs.api({
74
+ methodName: "getBalances",
75
+ method: "post",
76
+ path: "/v2/info/balances",
77
+ onSuccess: (response, options) => {
78
+ if (!options) {
79
+ ClientState.skipBalances = response;
80
+ }
81
+ }
82
+ });
83
+
84
+ // src/state/clientState.ts
85
+ var ClientState = class {
86
+ static aminoTypes;
87
+ static registry;
88
+ static endpointOptions;
89
+ static skipChains;
90
+ static skipAssets;
91
+ static skipBalances;
92
+ static async getSkipChains(apiOptions) {
93
+ if (this.skipChains) {
94
+ return this.skipChains;
95
+ }
96
+ const response = await getMainnetAndTestnetChains(apiOptions);
97
+ this.skipChains = response;
98
+ return response;
99
+ }
100
+ static async getSkipAssets(props) {
101
+ if (this.skipAssets) {
102
+ return this.skipAssets;
103
+ }
104
+ const response = await getMainnetAndTestnetAssets(props);
105
+ this.skipAssets = response;
106
+ return response;
107
+ }
108
+ static async getSkipBalances() {
109
+ if (this.skipBalances) {
110
+ return this.skipBalances;
111
+ }
112
+ const response = await balances();
113
+ this.skipBalances = response;
114
+ return response;
115
+ }
116
+ static signingStargateClientByChainId = {};
117
+ static validateGasResults;
118
+ };
119
+
120
+ // src/api/getChains.ts
121
+ var chains = chunkHAR3IXDE_cjs.api({
122
+ methodName: "getChains",
123
+ path: "/v2/info/chains",
124
+ transformResponse: (response) => response.chains,
125
+ onSuccess: (response, options) => {
126
+ if (options?.includeEvm && options?.includeSvm) {
127
+ ClientState.skipChains = response;
128
+ }
129
+ }
130
+ });
131
+
132
+ exports.ClientState = ClientState;
133
+ exports.assets = assets;
134
+ exports.balances = balances;
135
+ exports.chains = chains;
136
+ exports.transformAssetsMap = transformAssetsMap;
@@ -0,0 +1,16 @@
1
+ import { ApiState, api } from './chunk-W6TBGBV3.js';
2
+
3
+ // src/api/postRoute.ts
4
+ var route = async (request) => {
5
+ const requestWithAffiliateFeeBps = {
6
+ ...request,
7
+ cumulativeAffiliateFeeBps: ApiState.cumulativeAffiliateFeeBPS
8
+ };
9
+ return api({
10
+ methodName: "getRouteV2",
11
+ method: "post",
12
+ path: "/v2/fungible/route"
13
+ })(requestWithAffiliateFeeBps);
14
+ };
15
+
16
+ export { route };