@skip-go/client 1.6.0-alpha.2 → 1.6.0-alpha.3
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/package.json +1 -1
- package/dist/cjs/api/getAssets.cjs +0 -16
- package/dist/cjs/api/getAssetsBetweenChains.cjs +0 -12
- package/dist/cjs/api/getBridges.cjs +0 -12
- package/dist/cjs/api/getChains.cjs +0 -12
- package/dist/cjs/api/getVenues.cjs +0 -12
- package/dist/cjs/api/postAssetsFromSource.cjs +0 -13
- package/dist/cjs/api/postBalances.cjs +0 -12
- package/dist/cjs/api/postIbcOriginAssets.cjs +0 -12
- package/dist/cjs/api/postMessages.cjs +0 -12
- package/dist/cjs/api/postMessagesDirect.cjs +0 -12
- package/dist/cjs/api/postRecommendAssets.cjs +0 -12
- package/dist/cjs/api/postRoute.cjs +0 -12
- package/dist/cjs/api/postSubmitTransaction.cjs +0 -12
- package/dist/cjs/api/postTrackTransaction.cjs +0 -12
- package/dist/cjs/api/postTransactionStatus.cjs +0 -12
- package/dist/cjs/chunk-25TA7Z7R.cjs +0 -460
- package/dist/cjs/chunk-2QPPD3BB.cjs +0 -210
- package/dist/cjs/chunk-2SA3OAIJ.cjs +0 -18
- package/dist/cjs/chunk-4BWE7SOV.cjs +0 -68
- package/dist/cjs/chunk-4GHUZDDP.cjs +0 -16
- package/dist/cjs/chunk-4ZIVDKQN.cjs +0 -387
- package/dist/cjs/chunk-A3UNNRKD.cjs +0 -574
- package/dist/cjs/chunk-A5S6SIYN.cjs +0 -12
- package/dist/cjs/chunk-AQTXZWLA.cjs +0 -55
- package/dist/cjs/chunk-ASDMDYTC.cjs +0 -11
- package/dist/cjs/chunk-ATW6UNT5.cjs +0 -136
- package/dist/cjs/chunk-AUTOIM57.cjs +0 -22
- package/dist/cjs/chunk-AVWWCQ5P.cjs +0 -2264
- package/dist/cjs/chunk-CIZTNJ3K.cjs +0 -24
- package/dist/cjs/chunk-CK6CQWQU.cjs +0 -49
- package/dist/cjs/chunk-EAZQ2ECA.cjs +0 -185
- package/dist/cjs/chunk-F3EB2AQG.cjs +0 -28
- package/dist/cjs/chunk-FCTBCHOT.cjs +0 -12
- package/dist/cjs/chunk-IJIBMN2F.cjs +0 -12
- package/dist/cjs/chunk-JRXPJ45U.cjs +0 -12
- package/dist/cjs/chunk-LJF74VNZ.cjs +0 -214
- package/dist/cjs/chunk-LJV45UGL.cjs +0 -582
- package/dist/cjs/chunk-MUJBB64F.cjs +0 -291
- package/dist/cjs/chunk-NCFH5MGF.cjs +0 -39
- package/dist/cjs/chunk-NM4PISTQ.cjs +0 -3359
- package/dist/cjs/chunk-OJISEAMX.cjs +0 -13
- package/dist/cjs/chunk-OVKHTOBP.cjs +0 -99
- package/dist/cjs/chunk-PDNKS5R2.cjs +0 -13
- package/dist/cjs/chunk-TEH6UMUR.cjs +0 -280
- package/dist/cjs/chunk-UXW4XVHF.cjs +0 -15
- package/dist/cjs/chunk-WVMDZODS.cjs +0 -1495
- package/dist/cjs/chunk-YX56UXDX.cjs +0 -189
- package/dist/cjs/index.cjs +0 -349
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +0 -27
- package/dist/cjs/public-functions/executeRoute.cjs +0 -27
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +0 -16
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +0 -11
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +0 -14
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +0 -15
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +0 -41
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +0 -15
- package/dist/cjs/public-functions/setApiOptions.cjs +0 -12
- package/dist/cjs/public-functions/setClientOptions.cjs +0 -16
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +0 -26
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +0 -18
- package/dist/cjs/public-functions/waitForTransaction.cjs +0 -18
- package/dist/esm/api/getAssets.d.ts +0 -19
- package/dist/esm/api/getAssets.js +0 -3
- package/dist/esm/api/getAssetsBetweenChains.d.ts +0 -56
- package/dist/esm/api/getAssetsBetweenChains.js +0 -3
- package/dist/esm/api/getBridges.d.ts +0 -55
- package/dist/esm/api/getBridges.js +0 -3
- package/dist/esm/api/getChains.d.ts +0 -41
- package/dist/esm/api/getChains.js +0 -3
- package/dist/esm/api/getVenues.d.ts +0 -13
- package/dist/esm/api/getVenues.js +0 -3
- package/dist/esm/api/postAssetsFromSource.d.ts +0 -22
- package/dist/esm/api/postAssetsFromSource.js +0 -4
- package/dist/esm/api/postBalances.d.ts +0 -35
- package/dist/esm/api/postBalances.js +0 -3
- package/dist/esm/api/postIbcOriginAssets.d.ts +0 -32
- package/dist/esm/api/postIbcOriginAssets.js +0 -3
- package/dist/esm/api/postMessages.d.ts +0 -101
- package/dist/esm/api/postMessages.js +0 -3
- package/dist/esm/api/postMessagesDirect.d.ts +0 -640
- package/dist/esm/api/postMessagesDirect.js +0 -3
- package/dist/esm/api/postRecommendAssets.d.ts +0 -40
- package/dist/esm/api/postRecommendAssets.js +0 -3
- package/dist/esm/api/postRoute.d.ts +0 -530
- package/dist/esm/api/postRoute.js +0 -3
- package/dist/esm/api/postSubmitTransaction.d.ts +0 -17
- package/dist/esm/api/postSubmitTransaction.js +0 -3
- package/dist/esm/api/postTrackTransaction.d.ts +0 -12
- package/dist/esm/api/postTrackTransaction.js +0 -3
- package/dist/esm/api/postTransactionStatus.d.ts +0 -639
- package/dist/esm/api/postTransactionStatus.js +0 -3
- package/dist/esm/apiState-1VvikVK-.d.ts +0 -8
- package/dist/esm/callbacks-DdC6QMlE.d.ts +0 -158
- package/dist/esm/chunk-3DIX6KRJ.js +0 -566
- package/dist/esm/chunk-3JHLVPRG.js +0 -10
- package/dist/esm/chunk-5WYMRZIO.js +0 -97
- package/dist/esm/chunk-6QW6MRVQ.js +0 -53
- package/dist/esm/chunk-A5NZMSTI.js +0 -10
- package/dist/esm/chunk-CGJRRAFS.js +0 -22
- package/dist/esm/chunk-DMJMN4J3.js +0 -379
- package/dist/esm/chunk-E4NRDAVO.js +0 -65
- package/dist/esm/chunk-ETBJVFQP.js +0 -10
- package/dist/esm/chunk-F2LQB2DP.js +0 -3323
- package/dist/esm/chunk-F66EKL3W.js +0 -203
- package/dist/esm/chunk-GV2QOWB4.js +0 -26
- package/dist/esm/chunk-GZJLX2CP.js +0 -2258
- package/dist/esm/chunk-HNU2Y3JI.js +0 -13
- package/dist/esm/chunk-J24LYWJE.js +0 -130
- package/dist/esm/chunk-KZKAL5ZN.js +0 -16
- package/dist/esm/chunk-N4PTRCNT.js +0 -11
- package/dist/esm/chunk-NUHMTWHP.js +0 -180
- package/dist/esm/chunk-OMOVHXSC.js +0 -212
- package/dist/esm/chunk-P36PE4CR.js +0 -37
- package/dist/esm/chunk-PZ2624FK.js +0 -187
- package/dist/esm/chunk-QYXGDTUU.js +0 -47
- package/dist/esm/chunk-R2GHDOWX.js +0 -272
- package/dist/esm/chunk-RH7PDDI5.js +0 -433
- package/dist/esm/chunk-RTDD7HZ3.js +0 -275
- package/dist/esm/chunk-SXBG57J3.js +0 -20
- package/dist/esm/chunk-TGTOO2ZQ.js +0 -14
- package/dist/esm/chunk-UHCKOKBM.js +0 -9
- package/dist/esm/chunk-ULUX2CVU.js +0 -557
- package/dist/esm/chunk-UN46DUOV.js +0 -11
- package/dist/esm/chunk-XNU3TKKM.js +0 -10
- package/dist/esm/chunk-ZVFYCNA5.js +0 -1492
- package/dist/esm/client-types-D03Tellv.d.ts +0 -114
- package/dist/esm/generateApi-Bv02Xt5y.d.ts +0 -56
- package/dist/esm/index.d.ts +0 -1859
- package/dist/esm/index.js +0 -32
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +0 -80
- package/dist/esm/public-functions/executeMultipleRoutes.js +0 -18
- package/dist/esm/public-functions/executeRoute.d.ts +0 -12
- package/dist/esm/public-functions/executeRoute.js +0 -18
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +0 -8
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +0 -3
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +0 -14
- package/dist/esm/public-functions/getEvmGasAmountForMessage.js +0 -2
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +0 -9
- package/dist/esm/public-functions/getFeeInfoForChain.js +0 -5
- package/dist/esm/public-functions/getRecommendedGasPrice.d.ts +0 -9
- package/dist/esm/public-functions/getRecommendedGasPrice.js +0 -6
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +0 -20
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +0 -32
- package/dist/esm/public-functions/getSigningStargateClient.d.ts +0 -13
- package/dist/esm/public-functions/getSigningStargateClient.js +0 -6
- package/dist/esm/public-functions/setApiOptions.d.ts +0 -9
- package/dist/esm/public-functions/setApiOptions.js +0 -3
- package/dist/esm/public-functions/setClientOptions.d.ts +0 -11
- package/dist/esm/public-functions/setClientOptions.js +0 -7
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +0 -12
- package/dist/esm/public-functions/subscribeToRouteStatus.js +0 -5
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +0 -44
- package/dist/esm/public-functions/validateCosmosGasBalance.js +0 -9
- package/dist/esm/public-functions/waitForTransaction.d.ts +0 -1279
- package/dist/esm/public-functions/waitForTransaction.js +0 -5
- package/dist/esm/setClientOptions-CTwe8YVX.d.ts +0 -76
- package/dist/esm/swaggerTypes-CzGbnX_b.d.ts +0 -2067
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { api } from './chunk-F66EKL3W.js';
|
|
2
|
-
|
|
3
|
-
// src/api/postRecommendAssets.ts
|
|
4
|
-
var recommendAssets = api({
|
|
5
|
-
methodName: "assetRecommendations",
|
|
6
|
-
method: "post",
|
|
7
|
-
path: "v2/fungible/recommend_assets",
|
|
8
|
-
transformResponse(response) {
|
|
9
|
-
return response.recommendationEntries;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export { recommendAssets };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { api } from './chunk-F66EKL3W.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: "assets",
|
|
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: "balances",
|
|
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 (props.chainId && this.skipAssets?.[props.chainId] || !props.chainId && 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: "chains",
|
|
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,16 +0,0 @@
|
|
|
1
|
-
import { ApiState, api } from './chunk-F66EKL3W.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: "route",
|
|
11
|
-
method: "post",
|
|
12
|
-
path: "v2/fungible/route"
|
|
13
|
-
})(requestWithAffiliateFeeBps);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { route };
|