@skip-go/client 1.0.0-alpha-2 → 1.0.0-alpha-4
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.d.mts → getAssets.d.ts} +2 -2
- package/dist/api/getAssets.js +2 -0
- package/dist/api/{getAssetsBetweenChains.d.mts → getAssetsBetweenChains.d.ts} +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -0
- package/dist/api/{getBridges.d.mts → getBridges.d.ts} +2 -2
- package/dist/api/getBridges.js +2 -0
- package/dist/api/{getChains.d.mts → getChains.d.ts} +2 -2
- package/dist/api/getChains.js +2 -0
- package/dist/api/{getVenues.d.mts → getVenues.d.ts} +1 -1
- package/dist/api/getVenues.js +2 -0
- package/dist/api/{postAssetsFromSource.d.mts → postAssetsFromSource.d.ts} +2 -2
- package/dist/api/postAssetsFromSource.js +3 -0
- package/dist/api/{postBalances.d.mts → postBalances.d.ts} +3 -3
- package/dist/api/postBalances.js +2 -0
- package/dist/api/{postIbcOriginAssets.d.mts → postIbcOriginAssets.d.ts} +1 -1
- package/dist/api/postIbcOriginAssets.js +2 -0
- package/dist/api/{postMessages.d.mts → postMessages.d.ts} +186 -186
- package/dist/api/postMessages.js +2 -0
- package/dist/api/{postMessagesDirect.d.mts → postMessagesDirect.d.ts} +185 -185
- package/dist/api/postMessagesDirect.js +2 -0
- package/dist/api/{postRecommendAssets.d.mts → postRecommendAssets.d.ts} +2 -2
- package/dist/api/postRecommendAssets.js +2 -0
- package/dist/api/{postRoute.d.mts → postRoute.d.ts} +163 -163
- package/dist/api/postRoute.js +2 -0
- package/dist/api/{postSubmitTransaction.d.mts → postSubmitTransaction.d.ts} +1 -1
- package/dist/api/postSubmitTransaction.js +2 -0
- package/dist/api/{postTrackTransaction.d.mts → postTrackTransaction.d.ts} +1 -1
- package/dist/api/postTrackTransaction.js +2 -0
- package/dist/api/{postTransactionStatus.d.mts → postTransactionStatus.d.ts} +3 -3
- package/dist/api/postTransactionStatus.js +2 -0
- package/dist/{api/postRecommendAssets.mjs → chunk-2H4KT24S.js} +2 -2
- package/dist/chunk-3OZQ35X3.js +3597 -0
- package/dist/chunk-44YEAWRJ.js +22 -0
- package/dist/chunk-66DO7NZD.js +183 -0
- package/dist/chunk-6IZXDY7U.js +93 -0
- package/dist/chunk-6JMGI4N7.js +2229 -0
- package/dist/{api/postAssetsFromSource.mjs → chunk-6MCLH626.js} +3 -3
- package/dist/{api/postTrackTransaction.mjs → chunk-6SEZNZJY.js} +2 -2
- package/dist/{api/postSubmitTransaction.mjs → chunk-BQTWTYWD.js} +2 -2
- package/dist/chunk-DUCP65HQ.js +675 -0
- package/dist/{api/postMessages.mjs → chunk-EAVQIWH7.js} +2 -2
- package/dist/{api/postMessagesDirect.mjs → chunk-HFWTLB35.js} +2 -2
- package/dist/{api/getVenues.mjs → chunk-JBPMJE44.js} +2 -2
- package/dist/{api/postIbcOriginAssets.mjs → chunk-LJ4RFN4L.js} +2 -2
- package/dist/{api/postTransactionStatus.mjs → chunk-MKEROBAQ.js} +2 -2
- package/dist/{api/getBridges.mjs → chunk-QKCJUB43.js} +2 -2
- package/dist/{public-functions/setApiOptions.mjs → chunk-RSUFWUIE.js} +5 -7
- package/dist/chunk-SWYON2RG.js +7 -0
- package/dist/chunk-T3G7MVDN.js +16 -0
- package/dist/{public-functions/getRecommendedGasPrice.mjs → chunk-VQ5SIQWU.js} +1 -23
- package/dist/chunk-XEDYWBEU.js +1792 -0
- package/dist/chunk-XOC57DJF.js +269 -0
- package/dist/{api/getAssetsBetweenChains.mjs → chunk-XS6XFYYD.js} +2 -2
- package/dist/chunk-Y325PIRY.js +130 -0
- package/dist/{client-types-CVch1pZ-.d.mts → client-types-CxjtffyG.d.ts} +1 -1
- package/dist/{executeRoute-CRdeEz1o.d.mts → executeRoute-BKvMVd1I.d.ts} +3 -3
- package/dist/{generateApi-3mHZ6Zbr.d.mts → generateApi-DqCp36fX.d.ts} +1 -1
- package/dist/{index.d.mts → index.d.ts} +25 -25
- package/dist/index.js +24 -0
- package/dist/public-functions/{executeRoute.d.mts → executeRoute.d.ts} +4 -4
- package/dist/public-functions/executeRoute.js +12 -0
- package/dist/public-functions/{getFeeInfoForChain.d.mts → getFeeInfoForChain.d.ts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.js +5 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.mts → getRecommendedGasPrice.d.ts} +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +7 -0
- package/dist/public-functions/getSigningStargateClient.js +4 -0
- package/dist/public-functions/{setApiOptions.d.mts → setApiOptions.d.ts} +2 -2
- package/dist/public-functions/setApiOptions.js +2 -0
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +4 -0
- package/dist/{setClientOptions-CVB_OUIn.d.mts → setClientOptions-DbanEIwL.d.ts} +2 -2
- package/package.json +40 -6
- package/dist/api/getAssets.mjs +0 -25
- package/dist/api/getChains.mjs +0 -16
- package/dist/api/postBalances.mjs +0 -16
- package/dist/api/postRoute.mjs +0 -16
- package/dist/chunk-AXBFBHS2.mjs +0 -41
- package/dist/index.mjs +0 -24
- package/dist/public-functions/executeRoute.mjs +0 -100
- package/dist/public-functions/getFeeInfoForChain.mjs +0 -47
- package/dist/public-functions/getSigningStargateClient.mjs +0 -32
- package/dist/public-functions/setClientOptions.d.mts +0 -9
- package/dist/public-functions/setClientOptions.mjs +0 -34
- /package/dist/{apiState-CdzxTxYd.d.mts → apiState-CdzxTxYd.d.ts} +0 -0
- /package/dist/public-functions/{getSigningStargateClient.d.mts → getSigningStargateClient.d.ts} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.mts → swaggerTypes-O9-gvCT1.d.ts} +0 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { chains, findFirstWorkingEndpoint } from './chunk-66DO7NZD.js';
|
|
2
|
+
import { ClientState } from './chunk-Y325PIRY.js';
|
|
3
|
+
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
4
|
+
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
5
|
+
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary';
|
|
6
|
+
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth';
|
|
7
|
+
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin';
|
|
8
|
+
import { decodePubkey } from '@cosmjs/proto-signing';
|
|
9
|
+
import { accountEthParser } from '@injectivelabs/sdk-ts';
|
|
10
|
+
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys';
|
|
11
|
+
import { encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
|
12
|
+
|
|
13
|
+
var createBaseVestingAccount = () => {
|
|
14
|
+
return {
|
|
15
|
+
// @ts-expect-error
|
|
16
|
+
baseAccount: void 0,
|
|
17
|
+
originalVesting: [],
|
|
18
|
+
delegatedFree: [],
|
|
19
|
+
delegatedVesting: [],
|
|
20
|
+
endTime: BigInt(0)
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
var BaseVestingAccount = {
|
|
24
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
25
|
+
if (message.baseAccount !== void 0) {
|
|
26
|
+
BaseAccount.encode(
|
|
27
|
+
message.baseAccount,
|
|
28
|
+
writer.uint32(10).fork()
|
|
29
|
+
).ldelim();
|
|
30
|
+
}
|
|
31
|
+
for (const v of message.originalVesting) {
|
|
32
|
+
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
for (const v of message.delegatedFree) {
|
|
35
|
+
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
for (const v of message.delegatedVesting) {
|
|
38
|
+
Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
if (message.endTime !== BigInt(0)) {
|
|
41
|
+
writer.uint32(40).int64(message.endTime);
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
decode(input, length) {
|
|
46
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
48
|
+
const message = createBaseVestingAccount();
|
|
49
|
+
while (reader.pos < end) {
|
|
50
|
+
const tag = reader.uint32();
|
|
51
|
+
switch (tag >>> 3) {
|
|
52
|
+
case 1:
|
|
53
|
+
message.baseAccount = BaseAccount.decode(reader, reader.uint32());
|
|
54
|
+
break;
|
|
55
|
+
case 2:
|
|
56
|
+
message.originalVesting.push(Coin.decode(reader, reader.uint32()));
|
|
57
|
+
break;
|
|
58
|
+
case 3:
|
|
59
|
+
message.delegatedFree.push(Coin.decode(reader, reader.uint32()));
|
|
60
|
+
break;
|
|
61
|
+
case 4:
|
|
62
|
+
message.delegatedVesting.push(Coin.decode(reader, reader.uint32()));
|
|
63
|
+
break;
|
|
64
|
+
case 5:
|
|
65
|
+
message.endTime = reader.int64();
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
reader.skipType(tag & 7);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
function createBasePeriod() {
|
|
76
|
+
return {
|
|
77
|
+
startTime: BigInt(0),
|
|
78
|
+
length: BigInt(0),
|
|
79
|
+
amount: [],
|
|
80
|
+
actionType: 0
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
var Period = {
|
|
84
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
85
|
+
if (message.startTime !== BigInt(0)) {
|
|
86
|
+
writer.uint32(8).int64(message.startTime);
|
|
87
|
+
}
|
|
88
|
+
if (message.length !== BigInt(0)) {
|
|
89
|
+
writer.uint32(16).int64(message.length);
|
|
90
|
+
}
|
|
91
|
+
for (const v of message.amount) {
|
|
92
|
+
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
if (message.actionType !== 0) {
|
|
95
|
+
writer.uint32(32).int32(message.actionType);
|
|
96
|
+
}
|
|
97
|
+
return writer;
|
|
98
|
+
},
|
|
99
|
+
decode(input, length) {
|
|
100
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
101
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
102
|
+
const message = createBasePeriod();
|
|
103
|
+
while (reader.pos < end) {
|
|
104
|
+
const tag = reader.uint32();
|
|
105
|
+
switch (tag >>> 3) {
|
|
106
|
+
case 1:
|
|
107
|
+
message.startTime = reader.int64();
|
|
108
|
+
break;
|
|
109
|
+
case 2:
|
|
110
|
+
message.length = reader.int64();
|
|
111
|
+
break;
|
|
112
|
+
case 3:
|
|
113
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
114
|
+
break;
|
|
115
|
+
case 4:
|
|
116
|
+
message.actionType = reader.int32();
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
function createBaseStridePeriodicVestingAccount() {
|
|
127
|
+
return {
|
|
128
|
+
//eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
129
|
+
//@ts-ignore
|
|
130
|
+
baseVestingAccount: void 0,
|
|
131
|
+
vestingPeriods: []
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
var StridePeriodicVestingAccount = {
|
|
135
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
136
|
+
if (message.baseVestingAccount !== void 0) {
|
|
137
|
+
BaseVestingAccount.encode(
|
|
138
|
+
message.baseVestingAccount,
|
|
139
|
+
writer.uint32(10).fork()
|
|
140
|
+
).ldelim();
|
|
141
|
+
}
|
|
142
|
+
for (const v of message.vestingPeriods) {
|
|
143
|
+
Period.encode(v, writer.uint32(26).fork()).ldelim();
|
|
144
|
+
}
|
|
145
|
+
return writer;
|
|
146
|
+
},
|
|
147
|
+
decode(input, length) {
|
|
148
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
149
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
150
|
+
const message = createBaseStridePeriodicVestingAccount();
|
|
151
|
+
while (reader.pos < end) {
|
|
152
|
+
const tag = reader.uint32();
|
|
153
|
+
switch (tag >>> 3) {
|
|
154
|
+
case 1:
|
|
155
|
+
message.baseVestingAccount = BaseVestingAccount.decode(
|
|
156
|
+
reader,
|
|
157
|
+
reader.uint32()
|
|
158
|
+
);
|
|
159
|
+
break;
|
|
160
|
+
case 3:
|
|
161
|
+
message.vestingPeriods.push(Period.decode(reader, reader.uint32()));
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
reader.skipType(tag & 7);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return message;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
var accountParser = (acc) => {
|
|
172
|
+
switch (acc.typeUrl) {
|
|
173
|
+
case "/stride.vesting.StridePeriodicVestingAccount": {
|
|
174
|
+
const baseAccount = StridePeriodicVestingAccount.decode(acc.value).baseVestingAccount?.baseAccount;
|
|
175
|
+
assertDefinedAndNotNull(baseAccount);
|
|
176
|
+
return {
|
|
177
|
+
address: baseAccount.address,
|
|
178
|
+
pubkey: baseAccount.pubKey ? decodePubkey(baseAccount.pubKey) : null,
|
|
179
|
+
accountNumber: Number(baseAccount.accountNumber),
|
|
180
|
+
sequence: Number(baseAccount.sequence)
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
case "/injective.types.v1beta1.EthAccount":
|
|
184
|
+
return accountEthParser(
|
|
185
|
+
acc,
|
|
186
|
+
"/injective.crypto.v1beta1.ethsecp256k1.PubKey"
|
|
187
|
+
);
|
|
188
|
+
case "/ethermint.types.v1.EthAccount":
|
|
189
|
+
return accountEthParser(acc, "/ethermint.crypto.v1.ethsecp256k1.PubKey");
|
|
190
|
+
default: {
|
|
191
|
+
if (acc.typeUrl === "/cosmos.auth.v1beta1.BaseAccount") {
|
|
192
|
+
const { address, pubKey, accountNumber, sequence } = BaseAccount.decode(
|
|
193
|
+
acc.value
|
|
194
|
+
);
|
|
195
|
+
if (pubKey?.typeUrl === "/initia.crypto.v1beta1.ethsecp256k1.PubKey") {
|
|
196
|
+
const { key } = PubKey.decode(pubKey.value);
|
|
197
|
+
const pk = encodeSecp256k1Pubkey(key);
|
|
198
|
+
return {
|
|
199
|
+
address,
|
|
200
|
+
pubkey: pk,
|
|
201
|
+
accountNumber: Number(accountNumber),
|
|
202
|
+
sequence: Number(sequence)
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return accountFromAny(acc);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// src/private-functions/getRpcEndpointForChain.ts
|
|
212
|
+
var getRpcEndpointForChain = async (chainId) => {
|
|
213
|
+
if (ClientState.endpointOptions.getRpcEndpointForChain) {
|
|
214
|
+
return ClientState.endpointOptions.getRpcEndpointForChain(chainId);
|
|
215
|
+
}
|
|
216
|
+
if (ClientState.endpointOptions.endpoints && ClientState.endpointOptions.endpoints[chainId]) {
|
|
217
|
+
const endpointOptions = ClientState.endpointOptions.endpoints[chainId];
|
|
218
|
+
if (endpointOptions?.rpc) {
|
|
219
|
+
return endpointOptions.rpc;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
console.warn(
|
|
223
|
+
"Warning: You are using unreliable public endpoints. We strongly recommend overriding them via endpointOptions for use beyond development settings."
|
|
224
|
+
);
|
|
225
|
+
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
226
|
+
if (!chain) {
|
|
227
|
+
throw new Error(`getRpcEndpointForChain: failed to find chain id '${chainId}' in registry`);
|
|
228
|
+
}
|
|
229
|
+
if (chain.apis?.rpc?.length === 0 || !chain.apis?.rpc) {
|
|
230
|
+
throw new Error(
|
|
231
|
+
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
const endpoints = chain.apis?.rpc?.map((api) => api.address);
|
|
235
|
+
const endpoint = await findFirstWorkingEndpoint(endpoints, "rpc");
|
|
236
|
+
if (!endpoint) {
|
|
237
|
+
throw new Error(
|
|
238
|
+
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
return endpoint;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// src/public-functions/getSigningStargateClient.ts
|
|
245
|
+
var getSigningStargateClient = async ({
|
|
246
|
+
chainId,
|
|
247
|
+
getOfflineSigner
|
|
248
|
+
}) => {
|
|
249
|
+
if (!getOfflineSigner) {
|
|
250
|
+
throw new Error("'getCosmosSigner' is not provided or configured in skip router");
|
|
251
|
+
}
|
|
252
|
+
if (!ClientState.signingStargateClientByChainId?.[chainId]) {
|
|
253
|
+
const [signer, endpoint] = await Promise.all([
|
|
254
|
+
getOfflineSigner(chainId),
|
|
255
|
+
getRpcEndpointForChain(chainId)
|
|
256
|
+
]);
|
|
257
|
+
ClientState.signingStargateClientByChainId[chainId] = await SigningStargateClient.connectWithSigner(endpoint, signer, {
|
|
258
|
+
aminoTypes: ClientState.aminoTypes,
|
|
259
|
+
registry: ClientState.registry,
|
|
260
|
+
accountParser
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
stargateClient: ClientState.signingStargateClientByChainId[chainId],
|
|
265
|
+
signer: await getOfflineSigner(chainId)
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export { accountParser, getRpcEndpointForChain, getSigningStargateClient };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { api } from '../utils/generateApi.mjs';
|
|
1
|
+
import { api } from './chunk-DUCP65HQ.js';
|
|
3
2
|
|
|
3
|
+
// src/api/getAssetsBetweenChains.ts
|
|
4
4
|
var assetsBetweenChains = api({
|
|
5
5
|
methodName: "fungibleAssetsBetweenChainsCreate",
|
|
6
6
|
path: "/v2/fungible/assets_between_chains"
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { api } from './chunk-DUCP65HQ.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 };
|
|
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
|
3
3
|
import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
-
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
6
|
+
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
7
7
|
|
|
8
8
|
/** Common Types */
|
|
9
9
|
type UserAddress = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { A as ApiRequest } from './generateApi-
|
|
3
|
-
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-
|
|
1
|
+
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
import { A as ApiRequest } from './generateApi-DqCp36fX.js';
|
|
3
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-CxjtffyG.js';
|
|
4
4
|
|
|
5
5
|
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
6
6
|
type TransactionCallbacks = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bc as Api } from './swaggerTypes-O9-gvCT1.
|
|
1
|
+
import { bc as Api } from './swaggerTypes-O9-gvCT1.js';
|
|
2
2
|
|
|
3
3
|
type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
|
|
4
4
|
type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
|
|
@@ -1,33 +1,33 @@
|
|
|
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.
|
|
2
|
-
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-
|
|
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-
|
|
4
|
-
export { assets } from './api/getAssets.
|
|
5
|
-
export { assetsBetweenChains } from './api/getAssetsBetweenChains.
|
|
6
|
-
export { bridges } from './api/getBridges.
|
|
7
|
-
export { chains } from './api/getChains.
|
|
8
|
-
export { venues } from './api/getVenues.
|
|
9
|
-
export { ibcOriginAssets } from './api/postIbcOriginAssets.
|
|
10
|
-
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.
|
|
11
|
-
export { messagesDirect } from './api/postMessagesDirect.
|
|
12
|
-
export { recommendAssets } from './api/postRecommendAssets.
|
|
13
|
-
export { assetsFromSource } from './api/postAssetsFromSource.
|
|
14
|
-
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.
|
|
15
|
-
export { RouteRequest, route } from './api/postRoute.
|
|
16
|
-
export { submitTransaction } from './api/postSubmitTransaction.
|
|
17
|
-
export { trackTransaction } from './api/postTrackTransaction.
|
|
18
|
-
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.
|
|
19
|
-
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
-
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.
|
|
22
|
-
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.
|
|
23
|
-
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.
|
|
24
|
-
import './generateApi-
|
|
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.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKvMVd1I.js';
|
|
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-CxjtffyG.js';
|
|
4
|
+
export { assets } from './api/getAssets.js';
|
|
5
|
+
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
|
+
export { bridges } from './api/getBridges.js';
|
|
7
|
+
export { chains } from './api/getChains.js';
|
|
8
|
+
export { venues } from './api/getVenues.js';
|
|
9
|
+
export { ibcOriginAssets } from './api/postIbcOriginAssets.js';
|
|
10
|
+
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.js';
|
|
11
|
+
export { messagesDirect } from './api/postMessagesDirect.js';
|
|
12
|
+
export { recommendAssets } from './api/postRecommendAssets.js';
|
|
13
|
+
export { assetsFromSource } from './api/postAssetsFromSource.js';
|
|
14
|
+
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.js';
|
|
15
|
+
export { RouteRequest, route } from './api/postRoute.js';
|
|
16
|
+
export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
|
+
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
|
+
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DbanEIwL.js';
|
|
21
|
+
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
|
+
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
|
+
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
+
import './generateApi-DqCp36fX.js';
|
|
25
25
|
import '@cosmjs/amino';
|
|
26
26
|
import '@cosmjs/proto-signing';
|
|
27
27
|
import '@cosmjs/stargate';
|
|
28
28
|
import 'viem';
|
|
29
29
|
import '@solana/wallet-adapter-base';
|
|
30
|
-
import './apiState-CdzxTxYd.
|
|
30
|
+
import './apiState-CdzxTxYd.js';
|
|
31
31
|
import '@cosmjs/proto-signing/build/signer';
|
|
32
32
|
|
|
33
33
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { executeRoute } from './chunk-XEDYWBEU.js';
|
|
2
|
+
export { getRecommendedGasPrice } from './chunk-44YEAWRJ.js';
|
|
3
|
+
import './chunk-VQ5SIQWU.js';
|
|
4
|
+
export { getFeeInfoForChain } from './chunk-6IZXDY7U.js';
|
|
5
|
+
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
+
export { getSigningStargateClient } from './chunk-XOC57DJF.js';
|
|
7
|
+
import './chunk-66DO7NZD.js';
|
|
8
|
+
export { setApiOptions } from './chunk-RSUFWUIE.js';
|
|
9
|
+
export { setClientOptions } from './chunk-6JMGI4N7.js';
|
|
10
|
+
import './chunk-3OZQ35X3.js';
|
|
11
|
+
export { ibcOriginAssets } from './chunk-LJ4RFN4L.js';
|
|
12
|
+
export { messages } from './chunk-EAVQIWH7.js';
|
|
13
|
+
export { messagesDirect } from './chunk-HFWTLB35.js';
|
|
14
|
+
export { recommendAssets } from './chunk-2H4KT24S.js';
|
|
15
|
+
export { route } from './chunk-T3G7MVDN.js';
|
|
16
|
+
export { submitTransaction } from './chunk-BQTWTYWD.js';
|
|
17
|
+
export { trackTransaction } from './chunk-6SEZNZJY.js';
|
|
18
|
+
export { transactionStatus } from './chunk-MKEROBAQ.js';
|
|
19
|
+
export { assetsBetweenChains } from './chunk-XS6XFYYD.js';
|
|
20
|
+
export { bridges } from './chunk-QKCJUB43.js';
|
|
21
|
+
export { venues } from './chunk-JBPMJE44.js';
|
|
22
|
+
export { assetsFromSource } from './chunk-6MCLH626.js';
|
|
23
|
+
export { assets, balances, chains } from './chunk-Y325PIRY.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-DUCP65HQ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-
|
|
2
|
-
import '../swaggerTypes-O9-gvCT1.
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-BKvMVd1I.js';
|
|
2
|
+
import '../swaggerTypes-O9-gvCT1.js';
|
|
3
|
+
import '../generateApi-DqCp36fX.js';
|
|
4
|
+
import '../client-types-CxjtffyG.js';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { executeRoute } from '../chunk-XEDYWBEU.js';
|
|
2
|
+
import '../chunk-VQ5SIQWU.js';
|
|
3
|
+
import '../chunk-SWYON2RG.js';
|
|
4
|
+
import '../chunk-XOC57DJF.js';
|
|
5
|
+
import '../chunk-66DO7NZD.js';
|
|
6
|
+
import '../chunk-3OZQ35X3.js';
|
|
7
|
+
import '../chunk-EAVQIWH7.js';
|
|
8
|
+
import '../chunk-BQTWTYWD.js';
|
|
9
|
+
import '../chunk-6SEZNZJY.js';
|
|
10
|
+
import '../chunk-MKEROBAQ.js';
|
|
11
|
+
import '../chunk-Y325PIRY.js';
|
|
12
|
+
import '../chunk-DUCP65HQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a2 as FeeAsset } from '../swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
1
|
+
import { a2 as FeeAsset } from '../swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
3
3
|
|
|
4
4
|
type GetFeeInfoForChainProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
2
|
-
import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.
|
|
1
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
+
import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.js';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-DbanEIwL.js';
|
|
2
|
+
import '@cosmjs/proto-signing';
|
|
3
|
+
import '@cosmjs/stargate';
|
|
4
|
+
import '../apiState-CdzxTxYd.js';
|
|
5
|
+
import '../client-types-CxjtffyG.js';
|
|
6
|
+
import '@cosmjs/amino';
|
|
7
|
+
import 'viem';
|
|
8
|
+
import '@solana/wallet-adapter-base';
|
|
9
|
+
import '../swaggerTypes-O9-gvCT1.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeneratedType } from '@cosmjs/proto-signing';
|
|
2
2
|
import { AminoConverters } from '@cosmjs/stargate';
|
|
3
|
-
import { S as SkipApiOptions } from './apiState-CdzxTxYd.
|
|
4
|
-
import { E as EndpointOptions } from './client-types-
|
|
3
|
+
import { S as SkipApiOptions } from './apiState-CdzxTxYd.js';
|
|
4
|
+
import { E as EndpointOptions } from './client-types-CxjtffyG.js';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|
|
7
7
|
endpointOptions?: {
|