@skip-go/client 1.0.1 → 1.0.2

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 (62) hide show
  1. package/dist/api/getAssets.js +2 -15
  2. package/dist/api/getAssetsBetweenChains.js +2 -11
  3. package/dist/api/getBridges.js +2 -11
  4. package/dist/api/getChains.js +2 -11
  5. package/dist/api/getVenues.js +2 -11
  6. package/dist/api/postAssetsFromSource.js +3 -12
  7. package/dist/api/postBalances.js +2 -11
  8. package/dist/api/postIbcOriginAssets.js +2 -11
  9. package/dist/api/postMessages.js +2 -11
  10. package/dist/api/postMessagesDirect.js +2 -11
  11. package/dist/api/postRecommendAssets.js +2 -11
  12. package/dist/api/postRoute.js +2 -11
  13. package/dist/api/postSubmitTransaction.js +2 -11
  14. package/dist/api/postTrackTransaction.js +2 -11
  15. package/dist/api/postTransactionStatus.js +2 -11
  16. package/dist/chunk-33K6EESX.js +10 -0
  17. package/dist/{chunk-X2YPYBVN.js → chunk-3N7XVGLX.js} +59 -68
  18. package/dist/{chunk-RT5TZAMU.js → chunk-3OZQ35X3.js} +212 -312
  19. package/dist/{chunk-Z4ZKOUGH.js → chunk-4JJWOILI.js} +3 -5
  20. package/dist/chunk-735L35R6.js +1790 -0
  21. package/dist/chunk-BQTQJQ5E.js +10 -0
  22. package/dist/chunk-BRJDNGYH.js +22 -0
  23. package/dist/chunk-BRMONS6A.js +130 -0
  24. package/dist/{chunk-ZG23Z3WY.js → chunk-C2EDPY6J.js} +3 -5
  25. package/dist/chunk-DW4U6YI6.js +10 -0
  26. package/dist/chunk-GARVPN2H.js +16 -0
  27. package/dist/{chunk-CG5CQQBW.js → chunk-JTIHU43D.js} +33 -42
  28. package/dist/{chunk-5ZJBR5AQ.js → chunk-KNV72XRZ.js} +3 -5
  29. package/dist/chunk-MGVXJ2U4.js +11 -0
  30. package/dist/chunk-MTMPHY3Y.js +9 -0
  31. package/dist/{chunk-RE2QZJWE.js → chunk-PRQ2NHRZ.js} +3 -5
  32. package/dist/chunk-RDRDFJQE.js +10 -0
  33. package/dist/chunk-RMP3HM5N.js +14 -0
  34. package/dist/{chunk-GFRPLEJR.js → chunk-SQGWZAUC.js} +279 -311
  35. package/dist/chunk-SWYON2RG.js +1 -4
  36. package/dist/{chunk-PKPZTO4H.js → chunk-TW77BXMT.js} +10 -13
  37. package/dist/{chunk-4XWIXR2P.js → chunk-VMPFHQ7U.js} +19 -27
  38. package/dist/chunk-VQ5SIQWU.js +1 -3
  39. package/dist/chunk-W6TBGBV3.js +675 -0
  40. package/dist/index.d.ts +0 -2
  41. package/dist/index.js +24 -209
  42. package/dist/public-functions/executeRoute.js +12 -21
  43. package/dist/public-functions/getFeeInfoForChain.js +5 -14
  44. package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
  45. package/dist/public-functions/getRecommendedGasPrice.js +7 -16
  46. package/dist/public-functions/getSigningStargateClient.d.ts +1 -1
  47. package/dist/public-functions/getSigningStargateClient.js +4 -13
  48. package/dist/public-functions/setApiOptions.js +2 -11
  49. package/dist/public-functions/setClientOptions.js +4 -13
  50. package/package.json +12 -3
  51. package/dist/chunk-2WHYWV4Y.js +0 -12
  52. package/dist/chunk-5KVRQLI5.js +0 -17
  53. package/dist/chunk-6BTWKTNM.js +0 -16
  54. package/dist/chunk-6GJEXV5J.js +0 -130
  55. package/dist/chunk-ASPVKNJ7.js +0 -242
  56. package/dist/chunk-EQLA2SEZ.js +0 -2361
  57. package/dist/chunk-FVSSCQ6C.js +0 -12
  58. package/dist/chunk-KYFTM3PI.js +0 -12
  59. package/dist/chunk-L2Q5RP6O.js +0 -25
  60. package/dist/chunk-LRIPQQ4M.js +0 -11
  61. package/dist/chunk-X2E2TKVR.js +0 -12
  62. package/dist/chunk-YYNIFO2A.js +0 -13
package/dist/index.js CHANGED
@@ -1,209 +1,24 @@
1
- 'use strict';
2
-
3
- var chunkEQLA2SEZ_js = require('./chunk-EQLA2SEZ.js');
4
- var chunkL2Q5RP6O_js = require('./chunk-L2Q5RP6O.js');
5
- require('./chunk-VQ5SIQWU.js');
6
- var chunk4XWIXR2P_js = require('./chunk-4XWIXR2P.js');
7
- var chunkSWYON2RG_js = require('./chunk-SWYON2RG.js');
8
- var chunkX2YPYBVN_js = require('./chunk-X2YPYBVN.js');
9
- require('./chunk-CG5CQQBW.js');
10
- var chunkPKPZTO4H_js = require('./chunk-PKPZTO4H.js');
11
- var chunkGFRPLEJR_js = require('./chunk-GFRPLEJR.js');
12
- require('./chunk-RT5TZAMU.js');
13
- var chunkRE2QZJWE_js = require('./chunk-RE2QZJWE.js');
14
- var chunkFVSSCQ6C_js = require('./chunk-FVSSCQ6C.js');
15
- var chunkX2E2TKVR_js = require('./chunk-X2E2TKVR.js');
16
- var chunkZ4ZKOUGH_js = require('./chunk-Z4ZKOUGH.js');
17
- var chunk5KVRQLI5_js = require('./chunk-5KVRQLI5.js');
18
- var chunkKYFTM3PI_js = require('./chunk-KYFTM3PI.js');
19
- var chunkYYNIFO2A_js = require('./chunk-YYNIFO2A.js');
20
- var chunk2WHYWV4Y_js = require('./chunk-2WHYWV4Y.js');
21
- var chunkLRIPQQ4M_js = require('./chunk-LRIPQQ4M.js');
22
- var chunk5ZJBR5AQ_js = require('./chunk-5ZJBR5AQ.js');
23
- var chunkZG23Z3WY_js = require('./chunk-ZG23Z3WY.js');
24
- var chunk6BTWKTNM_js = require('./chunk-6BTWKTNM.js');
25
- var chunk6GJEXV5J_js = require('./chunk-6GJEXV5J.js');
26
- require('./chunk-ASPVKNJ7.js');
27
-
28
-
29
-
30
- Object.defineProperty(exports, "Api", {
31
- enumerable: true,
32
- get: function () { return chunkEQLA2SEZ_js.Api; }
33
- });
34
- Object.defineProperty(exports, "AutopilotAction", {
35
- enumerable: true,
36
- get: function () { return chunkEQLA2SEZ_js.AutopilotAction; }
37
- });
38
- Object.defineProperty(exports, "AxelarTransferState", {
39
- enumerable: true,
40
- get: function () { return chunkEQLA2SEZ_js.AxelarTransferState; }
41
- });
42
- Object.defineProperty(exports, "AxelarTransferType", {
43
- enumerable: true,
44
- get: function () { return chunkEQLA2SEZ_js.AxelarTransferType; }
45
- });
46
- Object.defineProperty(exports, "BridgeType", {
47
- enumerable: true,
48
- get: function () { return chunkEQLA2SEZ_js.BridgeType; }
49
- });
50
- Object.defineProperty(exports, "CCTPTransferState", {
51
- enumerable: true,
52
- get: function () { return chunkEQLA2SEZ_js.CCTPTransferState; }
53
- });
54
- Object.defineProperty(exports, "ChainType", {
55
- enumerable: true,
56
- get: function () { return chunkEQLA2SEZ_js.ChainType; }
57
- });
58
- Object.defineProperty(exports, "ContentType", {
59
- enumerable: true,
60
- get: function () { return chunkEQLA2SEZ_js.ContentType; }
61
- });
62
- Object.defineProperty(exports, "ContractCallWithTokenErrorType", {
63
- enumerable: true,
64
- get: function () { return chunkEQLA2SEZ_js.ContractCallWithTokenErrorType; }
65
- });
66
- Object.defineProperty(exports, "FeeType", {
67
- enumerable: true,
68
- get: function () { return chunkEQLA2SEZ_js.FeeType; }
69
- });
70
- Object.defineProperty(exports, "GoFastTransferState", {
71
- enumerable: true,
72
- get: function () { return chunkEQLA2SEZ_js.GoFastTransferState; }
73
- });
74
- Object.defineProperty(exports, "HttpClient", {
75
- enumerable: true,
76
- get: function () { return chunkEQLA2SEZ_js.HttpClient; }
77
- });
78
- Object.defineProperty(exports, "HyperlaneTransferState", {
79
- enumerable: true,
80
- get: function () { return chunkEQLA2SEZ_js.HyperlaneTransferState; }
81
- });
82
- Object.defineProperty(exports, "LayerZeroTransferState", {
83
- enumerable: true,
84
- get: function () { return chunkEQLA2SEZ_js.LayerZeroTransferState; }
85
- });
86
- Object.defineProperty(exports, "OPInitTransferState", {
87
- enumerable: true,
88
- get: function () { return chunkEQLA2SEZ_js.OPInitTransferState; }
89
- });
90
- Object.defineProperty(exports, "PacketErrorType", {
91
- enumerable: true,
92
- get: function () { return chunkEQLA2SEZ_js.PacketErrorType; }
93
- });
94
- Object.defineProperty(exports, "Reason", {
95
- enumerable: true,
96
- get: function () { return chunkEQLA2SEZ_js.Reason; }
97
- });
98
- Object.defineProperty(exports, "RoutePriceWarningType", {
99
- enumerable: true,
100
- get: function () { return chunkEQLA2SEZ_js.RoutePriceWarningType; }
101
- });
102
- Object.defineProperty(exports, "SendTokenErrorType", {
103
- enumerable: true,
104
- get: function () { return chunkEQLA2SEZ_js.SendTokenErrorType; }
105
- });
106
- Object.defineProperty(exports, "StargateTransferState", {
107
- enumerable: true,
108
- get: function () { return chunkEQLA2SEZ_js.StargateTransferState; }
109
- });
110
- Object.defineProperty(exports, "StatusErrorType", {
111
- enumerable: true,
112
- get: function () { return chunkEQLA2SEZ_js.StatusErrorType; }
113
- });
114
- Object.defineProperty(exports, "TransactionState", {
115
- enumerable: true,
116
- get: function () { return chunkEQLA2SEZ_js.TransactionState; }
117
- });
118
- Object.defineProperty(exports, "TransferState", {
119
- enumerable: true,
120
- get: function () { return chunkEQLA2SEZ_js.TransferState; }
121
- });
122
- Object.defineProperty(exports, "executeRoute", {
123
- enumerable: true,
124
- get: function () { return chunkEQLA2SEZ_js.executeRoute; }
125
- });
126
- Object.defineProperty(exports, "getRecommendedGasPrice", {
127
- enumerable: true,
128
- get: function () { return chunkL2Q5RP6O_js.getRecommendedGasPrice; }
129
- });
130
- Object.defineProperty(exports, "getFeeInfoForChain", {
131
- enumerable: true,
132
- get: function () { return chunk4XWIXR2P_js.getFeeInfoForChain; }
133
- });
134
- Object.defineProperty(exports, "GAS_STATION_CHAIN_IDS", {
135
- enumerable: true,
136
- get: function () { return chunkSWYON2RG_js.GAS_STATION_CHAIN_IDS; }
137
- });
138
- Object.defineProperty(exports, "getSigningStargateClient", {
139
- enumerable: true,
140
- get: function () { return chunkX2YPYBVN_js.getSigningStargateClient; }
141
- });
142
- Object.defineProperty(exports, "setApiOptions", {
143
- enumerable: true,
144
- get: function () { return chunkPKPZTO4H_js.setApiOptions; }
145
- });
146
- Object.defineProperty(exports, "setClientOptions", {
147
- enumerable: true,
148
- get: function () { return chunkGFRPLEJR_js.setClientOptions; }
149
- });
150
- Object.defineProperty(exports, "ibcOriginAssets", {
151
- enumerable: true,
152
- get: function () { return chunkRE2QZJWE_js.ibcOriginAssets; }
153
- });
154
- Object.defineProperty(exports, "messages", {
155
- enumerable: true,
156
- get: function () { return chunkFVSSCQ6C_js.messages; }
157
- });
158
- Object.defineProperty(exports, "messagesDirect", {
159
- enumerable: true,
160
- get: function () { return chunkX2E2TKVR_js.messagesDirect; }
161
- });
162
- Object.defineProperty(exports, "recommendAssets", {
163
- enumerable: true,
164
- get: function () { return chunkZ4ZKOUGH_js.recommendAssets; }
165
- });
166
- Object.defineProperty(exports, "route", {
167
- enumerable: true,
168
- get: function () { return chunk5KVRQLI5_js.route; }
169
- });
170
- Object.defineProperty(exports, "submitTransaction", {
171
- enumerable: true,
172
- get: function () { return chunkKYFTM3PI_js.submitTransaction; }
173
- });
174
- Object.defineProperty(exports, "trackTransaction", {
175
- enumerable: true,
176
- get: function () { return chunkYYNIFO2A_js.trackTransaction; }
177
- });
178
- Object.defineProperty(exports, "transactionStatus", {
179
- enumerable: true,
180
- get: function () { return chunk2WHYWV4Y_js.transactionStatus; }
181
- });
182
- Object.defineProperty(exports, "assetsBetweenChains", {
183
- enumerable: true,
184
- get: function () { return chunkLRIPQQ4M_js.assetsBetweenChains; }
185
- });
186
- Object.defineProperty(exports, "bridges", {
187
- enumerable: true,
188
- get: function () { return chunk5ZJBR5AQ_js.bridges; }
189
- });
190
- Object.defineProperty(exports, "venues", {
191
- enumerable: true,
192
- get: function () { return chunkZG23Z3WY_js.venues; }
193
- });
194
- Object.defineProperty(exports, "assetsFromSource", {
195
- enumerable: true,
196
- get: function () { return chunk6BTWKTNM_js.assetsFromSource; }
197
- });
198
- Object.defineProperty(exports, "assets", {
199
- enumerable: true,
200
- get: function () { return chunk6GJEXV5J_js.assets; }
201
- });
202
- Object.defineProperty(exports, "balances", {
203
- enumerable: true,
204
- get: function () { return chunk6GJEXV5J_js.balances; }
205
- });
206
- Object.defineProperty(exports, "chains", {
207
- enumerable: true,
208
- get: function () { return chunk6GJEXV5J_js.chains; }
209
- });
1
+ export { executeRoute } from './chunk-735L35R6.js';
2
+ export { getRecommendedGasPrice } from './chunk-BRJDNGYH.js';
3
+ import './chunk-VQ5SIQWU.js';
4
+ export { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
5
+ export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
6
+ export { getSigningStargateClient } from './chunk-3N7XVGLX.js';
7
+ import './chunk-JTIHU43D.js';
8
+ export { setApiOptions } from './chunk-TW77BXMT.js';
9
+ export { setClientOptions } from './chunk-SQGWZAUC.js';
10
+ import './chunk-3OZQ35X3.js';
11
+ export { ibcOriginAssets } from './chunk-PRQ2NHRZ.js';
12
+ export { messages } from './chunk-DW4U6YI6.js';
13
+ export { messagesDirect } from './chunk-BQTQJQ5E.js';
14
+ export { recommendAssets } from './chunk-4JJWOILI.js';
15
+ export { route } from './chunk-GARVPN2H.js';
16
+ export { submitTransaction } from './chunk-RDRDFJQE.js';
17
+ export { trackTransaction } from './chunk-MGVXJ2U4.js';
18
+ export { transactionStatus } from './chunk-33K6EESX.js';
19
+ export { assetsBetweenChains } from './chunk-MTMPHY3Y.js';
20
+ export { bridges } from './chunk-KNV72XRZ.js';
21
+ export { venues } from './chunk-C2EDPY6J.js';
22
+ export { assetsFromSource } from './chunk-RMP3HM5N.js';
23
+ export { assets, balances, chains } from './chunk-BRMONS6A.js';
24
+ export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-W6TBGBV3.js';
@@ -1,21 +1,12 @@
1
- 'use strict';
2
-
3
- var chunkEQLA2SEZ_js = require('../chunk-EQLA2SEZ.js');
4
- require('../chunk-VQ5SIQWU.js');
5
- require('../chunk-SWYON2RG.js');
6
- require('../chunk-X2YPYBVN.js');
7
- require('../chunk-CG5CQQBW.js');
8
- require('../chunk-RT5TZAMU.js');
9
- require('../chunk-FVSSCQ6C.js');
10
- require('../chunk-KYFTM3PI.js');
11
- require('../chunk-YYNIFO2A.js');
12
- require('../chunk-2WHYWV4Y.js');
13
- require('../chunk-6GJEXV5J.js');
14
- require('../chunk-ASPVKNJ7.js');
15
-
16
-
17
-
18
- Object.defineProperty(exports, "executeRoute", {
19
- enumerable: true,
20
- get: function () { return chunkEQLA2SEZ_js.executeRoute; }
21
- });
1
+ export { executeRoute } from '../chunk-735L35R6.js';
2
+ import '../chunk-VQ5SIQWU.js';
3
+ import '../chunk-SWYON2RG.js';
4
+ import '../chunk-3N7XVGLX.js';
5
+ import '../chunk-JTIHU43D.js';
6
+ import '../chunk-3OZQ35X3.js';
7
+ import '../chunk-DW4U6YI6.js';
8
+ import '../chunk-RDRDFJQE.js';
9
+ import '../chunk-MGVXJ2U4.js';
10
+ import '../chunk-33K6EESX.js';
11
+ import '../chunk-BRMONS6A.js';
12
+ import '../chunk-W6TBGBV3.js';
@@ -1,14 +1,5 @@
1
- 'use strict';
2
-
3
- var chunk4XWIXR2P_js = require('../chunk-4XWIXR2P.js');
4
- require('../chunk-SWYON2RG.js');
5
- require('../chunk-CG5CQQBW.js');
6
- require('../chunk-6GJEXV5J.js');
7
- require('../chunk-ASPVKNJ7.js');
8
-
9
-
10
-
11
- Object.defineProperty(exports, "getFeeInfoForChain", {
12
- enumerable: true,
13
- get: function () { return chunk4XWIXR2P_js.getFeeInfoForChain; }
14
- });
1
+ export { getFeeInfoForChain } from '../chunk-VMPFHQ7U.js';
2
+ import '../chunk-SWYON2RG.js';
3
+ import '../chunk-JTIHU43D.js';
4
+ import '../chunk-BRMONS6A.js';
5
+ import '../chunk-W6TBGBV3.js';
@@ -1,4 +1,4 @@
1
- import { GasPrice } from '@cosmjs/stargate/build/fee';
1
+ import { GasPrice } from '@cosmjs/stargate';
2
2
  import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
3
3
 
4
4
  type getRecommendedGasPriceProps = {
@@ -1,16 +1,7 @@
1
- 'use strict';
2
-
3
- var chunkL2Q5RP6O_js = require('../chunk-L2Q5RP6O.js');
4
- require('../chunk-VQ5SIQWU.js');
5
- require('../chunk-4XWIXR2P.js');
6
- require('../chunk-SWYON2RG.js');
7
- require('../chunk-CG5CQQBW.js');
8
- require('../chunk-6GJEXV5J.js');
9
- require('../chunk-ASPVKNJ7.js');
10
-
11
-
12
-
13
- Object.defineProperty(exports, "getRecommendedGasPrice", {
14
- enumerable: true,
15
- get: function () { return chunkL2Q5RP6O_js.getRecommendedGasPrice; }
16
- });
1
+ export { getRecommendedGasPrice } from '../chunk-BRJDNGYH.js';
2
+ import '../chunk-VQ5SIQWU.js';
3
+ import '../chunk-VMPFHQ7U.js';
4
+ import '../chunk-SWYON2RG.js';
5
+ import '../chunk-JTIHU43D.js';
6
+ import '../chunk-BRMONS6A.js';
7
+ import '../chunk-W6TBGBV3.js';
@@ -1,5 +1,5 @@
1
1
  import { OfflineSigner } from '@cosmjs/proto-signing/build/signer';
2
- import { SigningStargateClient } from '@cosmjs/stargate/build/signingstargateclient';
2
+ import { SigningStargateClient } from '@cosmjs/stargate';
3
3
 
4
4
  type getSigningStargateClientProps = {
5
5
  chainId: string;
@@ -1,13 +1,4 @@
1
- 'use strict';
2
-
3
- var chunkX2YPYBVN_js = require('../chunk-X2YPYBVN.js');
4
- require('../chunk-CG5CQQBW.js');
5
- require('../chunk-6GJEXV5J.js');
6
- require('../chunk-ASPVKNJ7.js');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "getSigningStargateClient", {
11
- enumerable: true,
12
- get: function () { return chunkX2YPYBVN_js.getSigningStargateClient; }
13
- });
1
+ export { getSigningStargateClient } from '../chunk-3N7XVGLX.js';
2
+ import '../chunk-JTIHU43D.js';
3
+ import '../chunk-BRMONS6A.js';
4
+ import '../chunk-W6TBGBV3.js';
@@ -1,11 +1,2 @@
1
- 'use strict';
2
-
3
- var chunkPKPZTO4H_js = require('../chunk-PKPZTO4H.js');
4
- require('../chunk-ASPVKNJ7.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "setApiOptions", {
9
- enumerable: true,
10
- get: function () { return chunkPKPZTO4H_js.setApiOptions; }
11
- });
1
+ export { setApiOptions } from '../chunk-TW77BXMT.js';
2
+ import '../chunk-W6TBGBV3.js';
@@ -1,13 +1,4 @@
1
- 'use strict';
2
-
3
- var chunkGFRPLEJR_js = require('../chunk-GFRPLEJR.js');
4
- require('../chunk-RT5TZAMU.js');
5
- require('../chunk-6GJEXV5J.js');
6
- require('../chunk-ASPVKNJ7.js');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "setClientOptions", {
11
- enumerable: true,
12
- get: function () { return chunkGFRPLEJR_js.setClientOptions; }
13
- });
1
+ export { setClientOptions } from '../chunk-SQGWZAUC.js';
2
+ import '../chunk-3OZQ35X3.js';
3
+ import '../chunk-BRMONS6A.js';
4
+ import '../chunk-W6TBGBV3.js';
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "@skip-go/client",
3
3
  "description": "JavaScript SDK for Skip Go API",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "repository": "https://github.com/skip-mev/skip-go",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
8
17
  "files": [
9
18
  "dist/*",
10
19
  "*.js",
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
4
-
5
- // src/api/postTransactionStatus.ts
6
- var transactionStatus = chunkASPVKNJ7_js.pollingApi({
7
- methodName: "getTransactionStatusV2",
8
- path: "/v2/tx/status",
9
- method: "get"
10
- });
11
-
12
- exports.transactionStatus = transactionStatus;
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
4
-
5
- // src/api/postRoute.ts
6
- var route = (request) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
7
- const requestWithAffiliateFeeBps = chunkASPVKNJ7_js.__spreadProps(chunkASPVKNJ7_js.__spreadValues({}, request), {
8
- cumulativeAffiliateFeeBps: chunkASPVKNJ7_js.ApiState.cumulativeAffiliateFeeBPS
9
- });
10
- return chunkASPVKNJ7_js.api({
11
- methodName: "getRouteV2",
12
- method: "post",
13
- path: "/v2/fungible/route"
14
- })(requestWithAffiliateFeeBps);
15
- });
16
-
17
- exports.route = route;
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk6GJEXV5J_js = require('./chunk-6GJEXV5J.js');
4
- var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
5
-
6
- // src/api/postAssetsFromSource.ts
7
- var assetsFromSource = chunkASPVKNJ7_js.api({
8
- methodName: "getAssetsFromSource",
9
- method: "post",
10
- path: "/v2/fungible/assets_from_source",
11
- transformResponse(response) {
12
- return chunk6GJEXV5J_js.transformAssetsMap(response.destAssets);
13
- }
14
- });
15
-
16
- exports.assetsFromSource = assetsFromSource;
@@ -1,130 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
4
-
5
- // src/private-functions/getMainnetAndTestnetChains.ts
6
- var getMainnetAndTestnetChains = (apiOptions) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
7
- const [mainnetRes, testnetRes] = yield Promise.all([
8
- chains(chunkASPVKNJ7_js.__spreadValues({
9
- includeEvm: true,
10
- includeSvm: true
11
- }, apiOptions)),
12
- chains(chunkASPVKNJ7_js.__spreadValues({
13
- includeEvm: true,
14
- includeSvm: true,
15
- onlyTestnets: true
16
- }, apiOptions))
17
- ]);
18
- const combinedChains = [...mainnetRes != null ? mainnetRes : [], ...testnetRes != null ? testnetRes : []];
19
- ClientState.skipChains = combinedChains;
20
- return combinedChains;
21
- });
22
-
23
- // src/api/getAssets.ts
24
- var assets = chunkASPVKNJ7_js.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 == null ? void 0 : options.includeEvmAssets) && (options == null ? void 0 : options.includeSvmAssets) && (options == null ? void 0 : options.includeCw20Assets)) {
32
- ClientState.skipAssets = response;
33
- }
34
- }
35
- });
36
- var transformAssetsMap = (input) => Object.entries(input != null ? input : {}).reduce(
37
- (acc, [chainId, { assets: assets2 }]) => {
38
- acc[chainId] = (assets2 != null ? assets2 : []).map((asset) => asset);
39
- return acc;
40
- },
41
- {}
42
- );
43
-
44
- // src/private-functions/getMainnetAndTestnetAssets.ts
45
- var getMainnetAndTestnetAssets = (_a) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
46
- var _b = _a, {
47
- chainId
48
- } = _b, apiOptions = chunkASPVKNJ7_js.__objRest(_b, [
49
- "chainId"
50
- ]);
51
- const [assetsMainnet, assetsTestnet] = yield Promise.all([
52
- assets(chunkASPVKNJ7_js.__spreadValues({
53
- chainIds: chainId ? [chainId] : void 0
54
- }, apiOptions)),
55
- assets(chunkASPVKNJ7_js.__spreadValues({
56
- chainIds: chainId ? [chainId] : void 0,
57
- onlyTestnets: true
58
- }, apiOptions))
59
- ]);
60
- const mainnet = assetsMainnet;
61
- const testnet = assetsTestnet;
62
- const merged = chunkASPVKNJ7_js.__spreadValues(chunkASPVKNJ7_js.__spreadValues({}, mainnet), testnet);
63
- ClientState.skipAssets = merged;
64
- return merged;
65
- });
66
-
67
- // src/api/postBalances.ts
68
- var balances = chunkASPVKNJ7_js.api({
69
- methodName: "getBalances",
70
- method: "post",
71
- path: "/v2/info/balances",
72
- onSuccess: (response, options) => {
73
- if (!options) {
74
- ClientState.skipBalances = response;
75
- }
76
- }
77
- });
78
-
79
- // src/state/clientState.ts
80
- var ClientState = class {
81
- static getSkipChains(apiOptions) {
82
- return chunkASPVKNJ7_js.__async(this, null, function* () {
83
- if (this.skipChains) {
84
- return this.skipChains;
85
- }
86
- const response = yield getMainnetAndTestnetChains(apiOptions);
87
- this.skipChains = response;
88
- return response;
89
- });
90
- }
91
- static getSkipAssets(props) {
92
- return chunkASPVKNJ7_js.__async(this, null, function* () {
93
- if (this.skipAssets) {
94
- return this.skipAssets;
95
- }
96
- const response = yield getMainnetAndTestnetAssets(props);
97
- this.skipAssets = response;
98
- return response;
99
- });
100
- }
101
- static getSkipBalances() {
102
- return chunkASPVKNJ7_js.__async(this, null, function* () {
103
- if (this.skipBalances) {
104
- return this.skipBalances;
105
- }
106
- const response = yield balances();
107
- this.skipBalances = response;
108
- return response;
109
- });
110
- }
111
- };
112
- ClientState.signingStargateClientByChainId = {};
113
-
114
- // src/api/getChains.ts
115
- var chains = chunkASPVKNJ7_js.api({
116
- methodName: "getChains",
117
- path: "/v2/info/chains",
118
- transformResponse: (response) => response.chains,
119
- onSuccess: (response, options) => {
120
- if ((options == null ? void 0 : options.includeEvm) && (options == null ? void 0 : options.includeSvm)) {
121
- ClientState.skipChains = response;
122
- }
123
- }
124
- });
125
-
126
- exports.ClientState = ClientState;
127
- exports.assets = assets;
128
- exports.balances = balances;
129
- exports.chains = chains;
130
- exports.transformAssetsMap = transformAssetsMap;