@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.
- package/dist/api/getAssets.js +15 -2
- package/dist/api/getAssetsBetweenChains.js +11 -2
- package/dist/api/getBridges.js +11 -2
- package/dist/api/getChains.js +11 -2
- package/dist/api/getVenues.js +11 -2
- package/dist/api/postAssetsFromSource.js +12 -3
- package/dist/api/postBalances.js +11 -2
- package/dist/api/postIbcOriginAssets.js +11 -2
- package/dist/api/postMessages.js +11 -2
- package/dist/api/postMessagesDirect.js +11 -2
- package/dist/api/postRecommendAssets.js +11 -2
- package/dist/api/postRoute.js +11 -2
- package/dist/api/postSubmitTransaction.js +11 -2
- package/dist/api/postTrackTransaction.js +11 -2
- package/dist/api/postTransactionStatus.js +11 -2
- package/dist/{chunk-DAMZSSOH.cjs → chunk-2WHYWV4Y.js} +2 -2
- package/dist/{chunk-J4LI33TK.cjs → chunk-4XWIXR2P.js} +24 -18
- package/dist/chunk-5KVRQLI5.js +17 -0
- package/dist/{chunk-VI7UMBQ7.cjs → chunk-5ZJBR5AQ.js} +2 -2
- package/dist/{chunk-ISHM4QWP.cjs → chunk-6BTWKTNM.js} +4 -4
- package/dist/chunk-6GJEXV5J.js +130 -0
- package/dist/chunk-ASPVKNJ7.js +242 -0
- package/dist/{chunk-7SK3IFXJ.cjs → chunk-CG5CQQBW.js} +36 -32
- package/dist/chunk-EQLA2SEZ.js +2361 -0
- package/dist/{chunk-32MRDO7V.cjs → chunk-FVSSCQ6C.js} +2 -2
- package/dist/{chunk-5IAEEEOQ.cjs → chunk-GFRPLEJR.js} +227 -217
- package/dist/{chunk-L5V5PASH.cjs → chunk-KYFTM3PI.js} +2 -2
- package/dist/chunk-L2Q5RP6O.js +25 -0
- package/dist/{chunk-URLFWBSC.cjs → chunk-LRIPQQ4M.js} +2 -2
- package/dist/{chunk-ZNXE6PUV.cjs → chunk-PKPZTO4H.js} +10 -9
- package/dist/{chunk-RDOSNDAQ.cjs → chunk-RE2QZJWE.js} +2 -2
- package/dist/{chunk-7OIZPQJB.cjs → chunk-RT5TZAMU.js} +138 -101
- package/dist/chunk-SWYON2RG.js +4 -1
- package/dist/chunk-VQ5SIQWU.js +3 -1
- package/dist/{chunk-LXYLWTNZ.cjs → chunk-X2E2TKVR.js} +2 -2
- package/dist/{chunk-SW3SEQMJ.cjs → chunk-X2YPYBVN.js} +30 -25
- package/dist/{chunk-KDN7RCGP.cjs → chunk-YYNIFO2A.js} +2 -2
- package/dist/{chunk-77ITCT75.cjs → chunk-Z4ZKOUGH.js} +2 -2
- package/dist/{chunk-PNWIJSMA.cjs → chunk-ZG23Z3WY.js} +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +209 -24
- package/dist/public-functions/executeRoute.js +21 -12
- package/dist/public-functions/getFeeInfoForChain.js +14 -5
- package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +16 -7
- package/dist/public-functions/getSigningStargateClient.d.ts +1 -1
- package/dist/public-functions/getSigningStargateClient.js +13 -4
- package/dist/public-functions/setApiOptions.js +11 -2
- package/dist/public-functions/setClientOptions.js +13 -4
- package/package.json +1 -10
- package/dist/api/getAssets.cjs +0 -15
- package/dist/api/getAssets.d.cts +0 -19
- package/dist/api/getAssetsBetweenChains.cjs +0 -11
- package/dist/api/getAssetsBetweenChains.d.cts +0 -56
- package/dist/api/getBridges.cjs +0 -11
- package/dist/api/getBridges.d.cts +0 -54
- package/dist/api/getChains.cjs +0 -11
- package/dist/api/getChains.d.cts +0 -41
- package/dist/api/getVenues.cjs +0 -11
- package/dist/api/getVenues.d.cts +0 -13
- package/dist/api/postAssetsFromSource.cjs +0 -12
- package/dist/api/postAssetsFromSource.d.cts +0 -13
- package/dist/api/postBalances.cjs +0 -11
- package/dist/api/postBalances.d.cts +0 -35
- package/dist/api/postIbcOriginAssets.cjs +0 -11
- package/dist/api/postIbcOriginAssets.d.cts +0 -32
- package/dist/api/postMessages.cjs +0 -11
- package/dist/api/postMessages.d.cts +0 -528
- package/dist/api/postMessagesDirect.cjs +0 -11
- package/dist/api/postMessagesDirect.d.cts +0 -568
- package/dist/api/postRecommendAssets.cjs +0 -11
- package/dist/api/postRecommendAssets.d.cts +0 -40
- package/dist/api/postRoute.cjs +0 -11
- package/dist/api/postRoute.d.cts +0 -460
- package/dist/api/postSubmitTransaction.cjs +0 -11
- package/dist/api/postSubmitTransaction.d.cts +0 -13
- package/dist/api/postTrackTransaction.cjs +0 -11
- package/dist/api/postTrackTransaction.d.cts +0 -13
- package/dist/api/postTransactionStatus.cjs +0 -11
- package/dist/api/postTransactionStatus.d.cts +0 -559
- package/dist/apiState-CdzxTxYd.d.cts +0 -6
- package/dist/chunk-33K6EESX.js +0 -10
- package/dist/chunk-3N7XVGLX.js +0 -269
- package/dist/chunk-3OZQ35X3.js +0 -3597
- package/dist/chunk-44PBLFB5.cjs +0 -24
- package/dist/chunk-4JJWOILI.js +0 -13
- package/dist/chunk-4R6OCWRR.cjs +0 -1346
- package/dist/chunk-BQTQJQ5E.js +0 -10
- package/dist/chunk-BRJDNGYH.js +0 -22
- package/dist/chunk-BRMONS6A.js +0 -130
- package/dist/chunk-C2EDPY6J.js +0 -10
- package/dist/chunk-DW4U6YI6.js +0 -10
- package/dist/chunk-ED2OY55G.cjs +0 -136
- package/dist/chunk-GARVPN2H.js +0 -16
- package/dist/chunk-HAR3IXDE.cjs +0 -705
- package/dist/chunk-JTIHU43D.js +0 -183
- package/dist/chunk-KNV72XRZ.js +0 -10
- package/dist/chunk-KZOSEIWH.cjs +0 -10
- package/dist/chunk-MGVXJ2U4.js +0 -11
- package/dist/chunk-MTMPHY3Y.js +0 -9
- package/dist/chunk-PRQ2NHRZ.js +0 -11
- package/dist/chunk-RDRDFJQE.js +0 -10
- package/dist/chunk-RMP3HM5N.js +0 -14
- package/dist/chunk-SFMBRLUS.cjs +0 -18
- package/dist/chunk-SQGWZAUC.js +0 -2229
- package/dist/chunk-TW77BXMT.js +0 -44
- package/dist/chunk-VMPFHQ7U.js +0 -93
- package/dist/chunk-W2U2UOFA.js +0 -1790
- package/dist/chunk-W6TBGBV3.js +0 -675
- package/dist/chunk-WWNTHZ6I.cjs +0 -1812
- package/dist/client-types-qvyKvyFh.d.cts +0 -60
- package/dist/executeRoute-BKRpODCc.d.cts +0 -69
- package/dist/generateApi-C0amiydg.d.cts +0 -22
- package/dist/index.cjs +0 -209
- package/dist/index.d.cts +0 -35
- package/dist/public-functions/executeRoute.cjs +0 -21
- package/dist/public-functions/executeRoute.d.cts +0 -9
- package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
- package/dist/public-functions/getFeeInfoForChain.d.cts +0 -9
- package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
- package/dist/public-functions/getRecommendedGasPrice.d.cts +0 -9
- package/dist/public-functions/getSigningStargateClient.cjs +0 -13
- package/dist/public-functions/getSigningStargateClient.d.cts +0 -13
- package/dist/public-functions/setApiOptions.cjs +0 -11
- package/dist/public-functions/setApiOptions.d.cts +0 -9
- package/dist/public-functions/setClientOptions.cjs +0 -13
- package/dist/public-functions/setClientOptions.d.cts +0 -9
- package/dist/setClientOptions-CT6CHI9I.d.cts +0 -19
- package/dist/swaggerTypes-O9-gvCT1.d.cts +0 -1890
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCG5CQQBW_js = require('./chunk-CG5CQQBW.js');
|
|
4
|
+
var chunk6GJEXV5J_js = require('./chunk-6GJEXV5J.js');
|
|
5
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
6
|
+
var signingstargateclient = require('@cosmjs/stargate/build/signingstargateclient');
|
|
5
7
|
var stargate = require('@cosmjs/stargate');
|
|
6
8
|
var utils = require('@cosmjs/utils');
|
|
7
9
|
var binary = require('cosmjs-types/binary');
|
|
@@ -171,9 +173,10 @@ var StridePeriodicVestingAccount = {
|
|
|
171
173
|
}
|
|
172
174
|
};
|
|
173
175
|
var accountParser = (acc) => {
|
|
176
|
+
var _a;
|
|
174
177
|
switch (acc.typeUrl) {
|
|
175
178
|
case "/stride.vesting.StridePeriodicVestingAccount": {
|
|
176
|
-
const baseAccount = StridePeriodicVestingAccount.decode(acc.value).baseVestingAccount
|
|
179
|
+
const baseAccount = (_a = StridePeriodicVestingAccount.decode(acc.value).baseVestingAccount) == null ? void 0 : _a.baseAccount;
|
|
177
180
|
utils.assertDefinedAndNotNull(baseAccount);
|
|
178
181
|
return {
|
|
179
182
|
address: baseAccount.address,
|
|
@@ -194,7 +197,7 @@ var accountParser = (acc) => {
|
|
|
194
197
|
const { address, pubKey, accountNumber, sequence } = auth.BaseAccount.decode(
|
|
195
198
|
acc.value
|
|
196
199
|
);
|
|
197
|
-
if (pubKey
|
|
200
|
+
if ((pubKey == null ? void 0 : pubKey.typeUrl) === "/initia.crypto.v1beta1.ethsecp256k1.PubKey") {
|
|
198
201
|
const { key } = keys.PubKey.decode(pubKey.value);
|
|
199
202
|
const pk = amino.encodeSecp256k1Pubkey(key);
|
|
200
203
|
return {
|
|
@@ -211,62 +214,64 @@ var accountParser = (acc) => {
|
|
|
211
214
|
};
|
|
212
215
|
|
|
213
216
|
// src/private-functions/getRpcEndpointForChain.ts
|
|
214
|
-
var getRpcEndpointForChain =
|
|
215
|
-
|
|
216
|
-
|
|
217
|
+
var getRpcEndpointForChain = (chainId) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
|
|
218
|
+
var _a, _b, _c, _d, _e;
|
|
219
|
+
if (chunk6GJEXV5J_js.ClientState.endpointOptions.getRpcEndpointForChain) {
|
|
220
|
+
return chunk6GJEXV5J_js.ClientState.endpointOptions.getRpcEndpointForChain(chainId);
|
|
217
221
|
}
|
|
218
|
-
if (
|
|
219
|
-
const endpointOptions =
|
|
220
|
-
if (endpointOptions
|
|
222
|
+
if (chunk6GJEXV5J_js.ClientState.endpointOptions.endpoints && chunk6GJEXV5J_js.ClientState.endpointOptions.endpoints[chainId]) {
|
|
223
|
+
const endpointOptions = chunk6GJEXV5J_js.ClientState.endpointOptions.endpoints[chainId];
|
|
224
|
+
if (endpointOptions == null ? void 0 : endpointOptions.rpc) {
|
|
221
225
|
return endpointOptions.rpc;
|
|
222
226
|
}
|
|
223
227
|
}
|
|
224
228
|
console.warn(
|
|
225
229
|
"Warning: You are using unreliable public endpoints. We strongly recommend overriding them via endpointOptions for use beyond development settings."
|
|
226
230
|
);
|
|
227
|
-
const chain =
|
|
231
|
+
const chain = chunkCG5CQQBW_js.chains().find((chain2) => chain2.chain_id === chainId);
|
|
228
232
|
if (!chain) {
|
|
229
233
|
throw new Error(`getRpcEndpointForChain: failed to find chain id '${chainId}' in registry`);
|
|
230
234
|
}
|
|
231
|
-
if (chain.apis
|
|
235
|
+
if (((_b = (_a = chain.apis) == null ? void 0 : _a.rpc) == null ? void 0 : _b.length) === 0 || !((_c = chain.apis) == null ? void 0 : _c.rpc)) {
|
|
232
236
|
throw new Error(
|
|
233
237
|
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
234
238
|
);
|
|
235
239
|
}
|
|
236
|
-
const endpoints = chain.apis
|
|
237
|
-
const endpoint =
|
|
240
|
+
const endpoints = (_e = (_d = chain.apis) == null ? void 0 : _d.rpc) == null ? void 0 : _e.map((api) => api.address);
|
|
241
|
+
const endpoint = yield chunkCG5CQQBW_js.findFirstWorkingEndpoint(endpoints, "rpc");
|
|
238
242
|
if (!endpoint) {
|
|
239
243
|
throw new Error(
|
|
240
244
|
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
241
245
|
);
|
|
242
246
|
}
|
|
243
247
|
return endpoint;
|
|
244
|
-
};
|
|
248
|
+
});
|
|
245
249
|
|
|
246
250
|
// src/public-functions/getSigningStargateClient.ts
|
|
247
|
-
var getSigningStargateClient =
|
|
251
|
+
var getSigningStargateClient = (_0) => chunkASPVKNJ7_js.__async(void 0, [_0], function* ({
|
|
248
252
|
chainId,
|
|
249
253
|
getOfflineSigner
|
|
250
|
-
})
|
|
254
|
+
}) {
|
|
255
|
+
var _a;
|
|
251
256
|
if (!getOfflineSigner) {
|
|
252
257
|
throw new Error("'getCosmosSigner' is not provided or configured in skip router");
|
|
253
258
|
}
|
|
254
|
-
if (!
|
|
255
|
-
const [signer, endpoint] =
|
|
259
|
+
if (!((_a = chunk6GJEXV5J_js.ClientState.signingStargateClientByChainId) == null ? void 0 : _a[chainId])) {
|
|
260
|
+
const [signer, endpoint] = yield Promise.all([
|
|
256
261
|
getOfflineSigner(chainId),
|
|
257
262
|
getRpcEndpointForChain(chainId)
|
|
258
263
|
]);
|
|
259
|
-
|
|
260
|
-
aminoTypes:
|
|
261
|
-
registry:
|
|
264
|
+
chunk6GJEXV5J_js.ClientState.signingStargateClientByChainId[chainId] = yield signingstargateclient.SigningStargateClient.connectWithSigner(endpoint, signer, {
|
|
265
|
+
aminoTypes: chunk6GJEXV5J_js.ClientState.aminoTypes,
|
|
266
|
+
registry: chunk6GJEXV5J_js.ClientState.registry,
|
|
262
267
|
accountParser
|
|
263
268
|
});
|
|
264
269
|
}
|
|
265
270
|
return {
|
|
266
|
-
stargateClient:
|
|
267
|
-
signer:
|
|
271
|
+
stargateClient: chunk6GJEXV5J_js.ClientState.signingStargateClientByChainId[chainId],
|
|
272
|
+
signer: yield getOfflineSigner(chainId)
|
|
268
273
|
};
|
|
269
|
-
};
|
|
274
|
+
});
|
|
270
275
|
|
|
271
276
|
exports.accountParser = accountParser;
|
|
272
277
|
exports.getRpcEndpointForChain = getRpcEndpointForChain;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
4
|
|
|
5
5
|
// src/api/postTrackTransaction.ts
|
|
6
|
-
var trackTransaction =
|
|
6
|
+
var trackTransaction = chunkASPVKNJ7_js.pollingApi({
|
|
7
7
|
methodName: "trackTransactionV2",
|
|
8
8
|
path: "/v2/tx/track",
|
|
9
9
|
method: "post",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
4
|
|
|
5
5
|
// src/api/postRecommendAssets.ts
|
|
6
|
-
var recommendAssets =
|
|
6
|
+
var recommendAssets = chunkASPVKNJ7_js.api({
|
|
7
7
|
methodName: "getAssetRecommendations",
|
|
8
8
|
method: "post",
|
|
9
9
|
path: "/v2/fungible/recommend_assets",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
4
|
|
|
5
5
|
// src/api/getVenues.ts
|
|
6
|
-
var venues =
|
|
6
|
+
var venues = chunkASPVKNJ7_js.api({
|
|
7
7
|
methodName: "getVenues",
|
|
8
8
|
path: "/v2/fungible/venues",
|
|
9
9
|
transformResponse: (response) => response.venues
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ import 'viem';
|
|
|
29
29
|
import '@solana/wallet-adapter-base';
|
|
30
30
|
import './apiState-CdzxTxYd.js';
|
|
31
31
|
import '@cosmjs/proto-signing/build/signer';
|
|
32
|
+
import '@cosmjs/stargate/build/signingstargateclient';
|
|
33
|
+
import '@cosmjs/stargate/build/fee';
|
|
32
34
|
|
|
33
35
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
34
36
|
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,209 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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,12 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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,5 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { OfflineSigner } from '@cosmjs/proto-signing/build/signer';
|
|
2
|
-
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
2
|
+
import { SigningStargateClient } from '@cosmjs/stargate/build/signingstargateclient';
|
|
3
3
|
|
|
4
4
|
type getSigningStargateClientProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,2 +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,4 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
});
|
package/package.json
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
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.1",
|
|
5
5
|
"repository": "https://github.com/skip-mev/skip-go",
|
|
6
|
-
"type": "module",
|
|
7
6
|
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
7
|
"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
|
-
},
|
|
17
8
|
"files": [
|
|
18
9
|
"dist/*",
|
|
19
10
|
"*.js",
|
package/dist/api/getAssets.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkED2OY55G_cjs = require('../chunk-ED2OY55G.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkED2OY55G_cjs.assets; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "transformAssetsMap", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkED2OY55G_cjs.transformAssetsMap; }
|
|
15
|
-
});
|
package/dist/api/getAssets.d.cts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
2
|
-
import { c as Asset } from '../swaggerTypes-O9-gvCT1.cjs';
|
|
3
|
-
|
|
4
|
-
declare const assets: (options?: ({
|
|
5
|
-
chainIds?: string[] | undefined;
|
|
6
|
-
nativeOnly?: boolean | undefined;
|
|
7
|
-
includeNoMetadataAssets?: boolean | undefined;
|
|
8
|
-
includeCw20Assets?: boolean | undefined;
|
|
9
|
-
includeEvmAssets?: boolean | undefined;
|
|
10
|
-
includeSvmAssets?: boolean | undefined;
|
|
11
|
-
onlyTestnets?: boolean | undefined;
|
|
12
|
-
} & SkipApiOptions & {
|
|
13
|
-
abortDuplicateRequests?: boolean | undefined;
|
|
14
|
-
}) | undefined) => Promise<Record<string, Asset[]> | undefined>;
|
|
15
|
-
declare const transformAssetsMap: (input?: Record<string, {
|
|
16
|
-
assets?: Asset[];
|
|
17
|
-
}>) => Record<string, Asset[]>;
|
|
18
|
-
|
|
19
|
-
export { assets, transformAssetsMap };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkURLFWBSC_cjs = require('../chunk-URLFWBSC.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assetsBetweenChains", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkURLFWBSC_cjs.assetsBetweenChains; }
|
|
11
|
-
});
|