@skip-go/client 0.10.2 → 0.11.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -38
- package/dist/index.d.mts +1938 -0
- package/dist/index.mjs +35 -0
- package/package.json +18 -16
- package/vitest.config.mjs +17 -0
- package/vitest.e2e.config.mjs +11 -0
- package/vitest.unit.config.mjs +11 -0
- package/dist/chunk-6FNC3XMI.js +0 -45
- package/dist/chunk-F6SLLVEL.js +0 -2012
- package/dist/chunk-JRIEAGIQ.js +0 -10
- package/dist/chunk-TUX4SN3U.js +0 -3996
- package/dist/index.d.ts +0 -329
- package/dist/index.js +0 -5208
- package/dist/parser.d.ts +0 -1
- package/dist/parser.js +0 -11
- package/dist/shared-IGtrUCgc.d.ts +0 -1035
- package/dist/transactions.d.ts +0 -11
- package/dist/transactions.js +0 -23
- package/dist/types.d.ts +0 -577
- package/dist/types.js +0 -687
- package/parser.d.ts +0 -1
- package/parser.js +0 -1
- package/transactions.d.ts +0 -1
- package/transactions.js +0 -1
- package/types.d.ts +0 -1
- package/types.js +0 -1
package/dist/chunk-F6SLLVEL.js
DELETED
|
@@ -1,2012 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk6FNC3XMI_js = require('./chunk-6FNC3XMI.js');
|
|
4
|
-
|
|
5
|
-
// src/types/converters.ts
|
|
6
|
-
function affiliateFromJSON(affiliateJSON) {
|
|
7
|
-
return {
|
|
8
|
-
address: affiliateJSON.address,
|
|
9
|
-
basisPointsFee: affiliateJSON.basis_points_fee
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function affiliateToJSON(affiliate) {
|
|
13
|
-
return {
|
|
14
|
-
address: affiliate.address,
|
|
15
|
-
basis_points_fee: affiliate.basisPointsFee
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function assetFromJSON(assetJSON) {
|
|
19
|
-
return {
|
|
20
|
-
denom: assetJSON.denom,
|
|
21
|
-
chainID: assetJSON.chain_id,
|
|
22
|
-
originDenom: assetJSON.origin_denom,
|
|
23
|
-
originChainID: assetJSON.origin_chain_id,
|
|
24
|
-
trace: assetJSON.trace,
|
|
25
|
-
isCW20: assetJSON.is_cw20,
|
|
26
|
-
isEVM: assetJSON.is_evm,
|
|
27
|
-
isSVM: assetJSON.is_svm,
|
|
28
|
-
symbol: assetJSON.symbol,
|
|
29
|
-
name: assetJSON.name,
|
|
30
|
-
logoURI: assetJSON.logo_uri,
|
|
31
|
-
decimals: assetJSON.decimals,
|
|
32
|
-
tokenContract: assetJSON.token_contract,
|
|
33
|
-
description: assetJSON.description,
|
|
34
|
-
coingeckoID: assetJSON.coingecko_id,
|
|
35
|
-
recommendedSymbol: assetJSON.recommended_symbol
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function assetToJSON(asset) {
|
|
39
|
-
return {
|
|
40
|
-
denom: asset.denom,
|
|
41
|
-
chain_id: asset.chainID,
|
|
42
|
-
origin_denom: asset.originDenom,
|
|
43
|
-
origin_chain_id: asset.originChainID,
|
|
44
|
-
trace: asset.trace,
|
|
45
|
-
is_cw20: asset.isCW20,
|
|
46
|
-
is_evm: asset.isEVM,
|
|
47
|
-
is_svm: asset.isSVM,
|
|
48
|
-
symbol: asset.symbol,
|
|
49
|
-
name: asset.name,
|
|
50
|
-
logo_uri: asset.logoURI,
|
|
51
|
-
decimals: asset.decimals,
|
|
52
|
-
token_contract: asset.tokenContract,
|
|
53
|
-
description: asset.description,
|
|
54
|
-
coingecko_id: asset.coingeckoID,
|
|
55
|
-
recommended_symbol: asset.recommendedSymbol
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function assetRecommendationFromJSON(assetRecommendationJSON) {
|
|
59
|
-
return {
|
|
60
|
-
asset: assetFromJSON(assetRecommendationJSON.asset),
|
|
61
|
-
reason: assetRecommendationJSON.reason
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function assetRecommendationToJSON(assetRecommendation) {
|
|
65
|
-
return {
|
|
66
|
-
asset: assetToJSON(assetRecommendation.asset),
|
|
67
|
-
reason: assetRecommendation.reason
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function assetsFromSourceRequestFromJSON(assetsFromSourceRequestJSON) {
|
|
71
|
-
return {
|
|
72
|
-
sourceAssetDenom: assetsFromSourceRequestJSON.source_asset_denom,
|
|
73
|
-
sourceAssetChainID: assetsFromSourceRequestJSON.source_asset_chain_id,
|
|
74
|
-
allowMultiTx: assetsFromSourceRequestJSON.allow_multi_tx,
|
|
75
|
-
includeCW20Assets: assetsFromSourceRequestJSON.include_cw20_assets
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function assetsFromSourceRequestToJSON(assetsFromSourceRequest) {
|
|
79
|
-
return {
|
|
80
|
-
source_asset_denom: assetsFromSourceRequest.sourceAssetDenom,
|
|
81
|
-
source_asset_chain_id: assetsFromSourceRequest.sourceAssetChainID,
|
|
82
|
-
allow_multi_tx: assetsFromSourceRequest.allowMultiTx,
|
|
83
|
-
include_cw20_assets: assetsFromSourceRequest.includeCW20Assets
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function assetsRequestFromJSON(assetsRequestJSON) {
|
|
87
|
-
return {
|
|
88
|
-
chainIDs: assetsRequestJSON.chain_ids,
|
|
89
|
-
chainID: assetsRequestJSON.chain_id,
|
|
90
|
-
nativeOnly: assetsRequestJSON.native_only,
|
|
91
|
-
includeNoMetadataAssets: assetsRequestJSON.include_no_metadata_assets,
|
|
92
|
-
includeCW20Assets: assetsRequestJSON.include_cw20_assets,
|
|
93
|
-
includeEvmAssets: assetsRequestJSON.include_evm_assets,
|
|
94
|
-
includeSvmAssets: assetsRequestJSON.include_svm_assets
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function assetsRequestToJSON(assetsRequest) {
|
|
98
|
-
return {
|
|
99
|
-
chain_ids: assetsRequest.chainIDs,
|
|
100
|
-
chain_id: assetsRequest.chainID,
|
|
101
|
-
native_only: assetsRequest.nativeOnly,
|
|
102
|
-
include_no_metadata_assets: assetsRequest.includeNoMetadataAssets,
|
|
103
|
-
include_cw20_assets: assetsRequest.includeCW20Assets,
|
|
104
|
-
include_evm_assets: assetsRequest.includeEvmAssets,
|
|
105
|
-
include_svm_assets: assetsRequest.includeSvmAssets,
|
|
106
|
-
only_testnets: assetsRequest.onlyTestnets
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function chainFromJSON(chainJSON) {
|
|
110
|
-
return {
|
|
111
|
-
chainName: chainJSON.chain_name,
|
|
112
|
-
chainID: chainJSON.chain_id,
|
|
113
|
-
pfmEnabled: chainJSON.pfm_enabled,
|
|
114
|
-
cosmosSDKVersion: chainJSON.cosmos_sdk_version,
|
|
115
|
-
modules: chainJSON.modules,
|
|
116
|
-
cosmosModuleSupport: chainJSON.cosmos_module_support,
|
|
117
|
-
supportsMemo: chainJSON.supports_memo,
|
|
118
|
-
logoURI: chainJSON.logo_uri,
|
|
119
|
-
bech32Prefix: chainJSON.bech32_prefix,
|
|
120
|
-
feeAssets: chainJSON.fee_assets.map(feeAssetFromJSON),
|
|
121
|
-
chainType: chainJSON.chain_type,
|
|
122
|
-
ibcCapabilities: ibcCapabilitiesFromJSON(chainJSON.ibc_capabilities),
|
|
123
|
-
isTestnet: chainJSON.is_testnet,
|
|
124
|
-
prettyName: chainJSON.pretty_name
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function chainToJSON(chain) {
|
|
128
|
-
return {
|
|
129
|
-
chain_name: chain.chainName,
|
|
130
|
-
chain_id: chain.chainID,
|
|
131
|
-
pfm_enabled: chain.pfmEnabled,
|
|
132
|
-
cosmos_sdk_version: chain.cosmosSDKVersion,
|
|
133
|
-
modules: chain.modules,
|
|
134
|
-
cosmos_module_support: chain.cosmosModuleSupport,
|
|
135
|
-
supports_memo: chain.supportsMemo,
|
|
136
|
-
logo_uri: chain.logoURI,
|
|
137
|
-
bech32_prefix: chain.bech32Prefix,
|
|
138
|
-
fee_assets: chain.feeAssets.map(feeAssetToJSON),
|
|
139
|
-
chain_type: chain.chainType,
|
|
140
|
-
ibc_capabilities: ibcCapabilitiesToJSON(chain.ibcCapabilities),
|
|
141
|
-
is_testnet: chain.isTestnet,
|
|
142
|
-
pretty_name: chain.prettyName
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
function feeAssetFromJSON(feeAssetJSON) {
|
|
146
|
-
return {
|
|
147
|
-
denom: feeAssetJSON.denom,
|
|
148
|
-
gasPrice: feeAssetJSON.gas_price
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function feeAssetToJSON(feeAsset) {
|
|
152
|
-
return {
|
|
153
|
-
denom: feeAsset.denom,
|
|
154
|
-
gas_price: feeAsset.gasPrice
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function ibcCapabilitiesFromJSON(ibcCapabilitiesJSON) {
|
|
158
|
-
return {
|
|
159
|
-
cosmosPfm: ibcCapabilitiesJSON.cosmos_pfm,
|
|
160
|
-
cosmosIbcHooks: ibcCapabilitiesJSON.cosmos_ibc_hooks,
|
|
161
|
-
cosmosMemo: ibcCapabilitiesJSON.cosmos_memo,
|
|
162
|
-
cosmosAutopilot: ibcCapabilitiesJSON.cosmos_autopilot
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
function ibcCapabilitiesToJSON(ibcCapabilities) {
|
|
166
|
-
return {
|
|
167
|
-
cosmos_pfm: ibcCapabilities.cosmosPfm,
|
|
168
|
-
cosmos_ibc_hooks: ibcCapabilities.cosmosIbcHooks,
|
|
169
|
-
cosmos_memo: ibcCapabilities.cosmosMemo,
|
|
170
|
-
cosmos_autopilot: ibcCapabilities.cosmosAutopilot
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function recommendAssetsRequestFromJSON(recommendAssetsRequestJSON) {
|
|
174
|
-
return {
|
|
175
|
-
requests: recommendAssetsRequestJSON.requests.map(
|
|
176
|
-
assetRecommendationRequestFromJSON
|
|
177
|
-
)
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function recommendAssetsRequestToJSON(recommendAssetsRequest) {
|
|
181
|
-
return {
|
|
182
|
-
requests: recommendAssetsRequest.requests.map(
|
|
183
|
-
assetRecommendationRequestToJSON
|
|
184
|
-
)
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function recommendAssetsResponseFromJSON(value) {
|
|
188
|
-
return {
|
|
189
|
-
recommendations: value.recommendations.map(assetRecommendationFromJSON),
|
|
190
|
-
recommendationEntries: value.recommendation_entries.map(
|
|
191
|
-
recommendationEntryFromJSON
|
|
192
|
-
)
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function recommendAssetsResponseToJSON(value) {
|
|
196
|
-
return {
|
|
197
|
-
recommendations: value.recommendations.map(assetRecommendationToJSON),
|
|
198
|
-
recommendation_entries: value.recommendationEntries.map(
|
|
199
|
-
recommendationEntryToJSON
|
|
200
|
-
)
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function recommendationEntryFromJSON(value) {
|
|
204
|
-
return {
|
|
205
|
-
recommendations: value.recommendations.map(assetRecommendationFromJSON),
|
|
206
|
-
error: value.error
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function recommendationEntryToJSON(value) {
|
|
210
|
-
return {
|
|
211
|
-
recommendations: value.recommendations.map(assetRecommendationToJSON),
|
|
212
|
-
error: value.error
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function estimatedFeeFromJSON(estimatedFeeJSON) {
|
|
216
|
-
return {
|
|
217
|
-
amount: estimatedFeeJSON.amount,
|
|
218
|
-
bridgeID: estimatedFeeJSON.bridge_id,
|
|
219
|
-
chainID: estimatedFeeJSON.chain_id,
|
|
220
|
-
feeType: estimatedFeeJSON.fee_type,
|
|
221
|
-
originAsset: estimatedFeeJSON.origin_asset && assetFromJSON(estimatedFeeJSON.origin_asset),
|
|
222
|
-
txIndex: estimatedFeeJSON.tx_index,
|
|
223
|
-
usdAmount: estimatedFeeJSON.usd_amount,
|
|
224
|
-
operationIndex: estimatedFeeJSON.operation_index
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function estimatedFeeToJSON(estimatedFee) {
|
|
228
|
-
return {
|
|
229
|
-
amount: estimatedFee.amount,
|
|
230
|
-
bridge_id: estimatedFee.bridgeID,
|
|
231
|
-
chain_id: estimatedFee.chainID,
|
|
232
|
-
fee_type: estimatedFee.feeType,
|
|
233
|
-
origin_asset: estimatedFee.originAsset && assetToJSON(estimatedFee.originAsset),
|
|
234
|
-
tx_index: estimatedFee.txIndex,
|
|
235
|
-
usd_amount: estimatedFee.usdAmount,
|
|
236
|
-
operation_index: estimatedFee.operationIndex
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
function swapVenueFromJSON(swapVenueJSON) {
|
|
240
|
-
return {
|
|
241
|
-
name: swapVenueJSON.name,
|
|
242
|
-
chainID: swapVenueJSON.chain_id,
|
|
243
|
-
logoUri: swapVenueJSON.logo_uri
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
function swapVenueToJSON(swapVenue) {
|
|
247
|
-
return {
|
|
248
|
-
name: swapVenue.name,
|
|
249
|
-
chain_id: swapVenue.chainID,
|
|
250
|
-
logo_uri: swapVenue.logoUri
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
function swapVenueRequestFromJSON(SwapVenueRequestJSON) {
|
|
254
|
-
return {
|
|
255
|
-
name: SwapVenueRequestJSON.name,
|
|
256
|
-
chainID: SwapVenueRequestJSON.chain_id
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function swapVenueRequestToJSON(swapVenueRequest) {
|
|
260
|
-
return {
|
|
261
|
-
name: swapVenueRequest.name,
|
|
262
|
-
chain_id: swapVenueRequest.chainID
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
function routeRequestFromJSON(routeRequestJSON) {
|
|
266
|
-
const swapVenues = routeRequestJSON.swap_venues ? routeRequestJSON.swap_venues.map(swapVenueRequestFromJSON) : void 0;
|
|
267
|
-
if (routeRequestJSON.amount_in !== void 0) {
|
|
268
|
-
return {
|
|
269
|
-
sourceAssetDenom: routeRequestJSON.source_asset_denom,
|
|
270
|
-
sourceAssetChainID: routeRequestJSON.source_asset_chain_id,
|
|
271
|
-
destAssetDenom: routeRequestJSON.dest_asset_denom,
|
|
272
|
-
destAssetChainID: routeRequestJSON.dest_asset_chain_id,
|
|
273
|
-
amountIn: routeRequestJSON.amount_in,
|
|
274
|
-
cumulativeAffiliateFeeBPS: routeRequestJSON.cumulative_affiliate_fee_bps,
|
|
275
|
-
swapVenue: routeRequestJSON.swap_venue ? swapVenueRequestFromJSON(routeRequestJSON.swap_venue) : void 0,
|
|
276
|
-
swapVenues,
|
|
277
|
-
allowUnsafe: routeRequestJSON.allow_unsafe,
|
|
278
|
-
experimentalFeatures: routeRequestJSON.experimental_features,
|
|
279
|
-
bridges: routeRequestJSON.bridges,
|
|
280
|
-
allowMultiTx: routeRequestJSON.allow_multi_tx,
|
|
281
|
-
smartRelay: routeRequestJSON.smart_relay,
|
|
282
|
-
smartSwapOptions: routeRequestJSON.smart_swap_options ? smartSwapOptionsFromJSON(routeRequestJSON.smart_swap_options) : void 0,
|
|
283
|
-
allowSwaps: routeRequestJSON.allow_swaps
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
return {
|
|
287
|
-
sourceAssetDenom: routeRequestJSON.source_asset_denom,
|
|
288
|
-
sourceAssetChainID: routeRequestJSON.source_asset_chain_id,
|
|
289
|
-
destAssetDenom: routeRequestJSON.dest_asset_denom,
|
|
290
|
-
destAssetChainID: routeRequestJSON.dest_asset_chain_id,
|
|
291
|
-
amountOut: routeRequestJSON.amount_out,
|
|
292
|
-
cumulativeAffiliateFeeBPS: routeRequestJSON.cumulative_affiliate_fee_bps,
|
|
293
|
-
swapVenue: routeRequestJSON.swap_venue ? swapVenueRequestFromJSON(routeRequestJSON.swap_venue) : void 0,
|
|
294
|
-
swapVenues,
|
|
295
|
-
allowUnsafe: routeRequestJSON.allow_unsafe,
|
|
296
|
-
experimentalFeatures: routeRequestJSON.experimental_features,
|
|
297
|
-
bridges: routeRequestJSON.bridges,
|
|
298
|
-
allowMultiTx: routeRequestJSON.allow_multi_tx,
|
|
299
|
-
smartRelay: routeRequestJSON.smart_relay,
|
|
300
|
-
smartSwapOptions: routeRequestJSON.smart_swap_options ? smartSwapOptionsFromJSON(routeRequestJSON.smart_swap_options) : void 0,
|
|
301
|
-
allowSwaps: routeRequestJSON.allow_swaps
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
function routeRequestToJSON(routeRequest) {
|
|
305
|
-
const swapVenues = routeRequest.swapVenues ? routeRequest.swapVenues.map(swapVenueRequestToJSON) : void 0;
|
|
306
|
-
if (routeRequest.amountIn !== void 0) {
|
|
307
|
-
return {
|
|
308
|
-
source_asset_denom: routeRequest.sourceAssetDenom,
|
|
309
|
-
source_asset_chain_id: routeRequest.sourceAssetChainID,
|
|
310
|
-
dest_asset_denom: routeRequest.destAssetDenom,
|
|
311
|
-
dest_asset_chain_id: routeRequest.destAssetChainID,
|
|
312
|
-
amount_in: routeRequest.amountIn,
|
|
313
|
-
cumulative_affiliate_fee_bps: routeRequest.cumulativeAffiliateFeeBPS,
|
|
314
|
-
swap_venue: routeRequest.swapVenue ? swapVenueRequestToJSON(routeRequest.swapVenue) : void 0,
|
|
315
|
-
swap_venues: swapVenues,
|
|
316
|
-
allow_unsafe: routeRequest.allowUnsafe,
|
|
317
|
-
experimental_features: routeRequest.experimentalFeatures,
|
|
318
|
-
bridges: routeRequest.bridges,
|
|
319
|
-
allow_multi_tx: routeRequest.allowMultiTx,
|
|
320
|
-
smart_relay: routeRequest.smartRelay,
|
|
321
|
-
smart_swap_options: routeRequest.smartSwapOptions ? smartSwapOptionsToJSON(routeRequest.smartSwapOptions) : void 0,
|
|
322
|
-
allow_swaps: routeRequest.allowSwaps
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
return {
|
|
326
|
-
source_asset_denom: routeRequest.sourceAssetDenom,
|
|
327
|
-
source_asset_chain_id: routeRequest.sourceAssetChainID,
|
|
328
|
-
dest_asset_denom: routeRequest.destAssetDenom,
|
|
329
|
-
dest_asset_chain_id: routeRequest.destAssetChainID,
|
|
330
|
-
amount_out: routeRequest.amountOut,
|
|
331
|
-
cumulative_affiliate_fee_bps: routeRequest.cumulativeAffiliateFeeBPS,
|
|
332
|
-
swap_venue: routeRequest.swapVenue ? swapVenueRequestToJSON(routeRequest.swapVenue) : void 0,
|
|
333
|
-
swap_venues: swapVenues,
|
|
334
|
-
allow_unsafe: routeRequest.allowUnsafe,
|
|
335
|
-
experimental_features: routeRequest.experimentalFeatures,
|
|
336
|
-
bridges: routeRequest.bridges,
|
|
337
|
-
allow_multi_tx: routeRequest.allowMultiTx,
|
|
338
|
-
smart_relay: routeRequest.smartRelay,
|
|
339
|
-
smart_swap_options: routeRequest.smartSwapOptions ? smartSwapOptionsToJSON(routeRequest.smartSwapOptions) : void 0,
|
|
340
|
-
allow_swaps: routeRequest.allowSwaps
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
function transferFromJSON(transferJSON) {
|
|
344
|
-
return {
|
|
345
|
-
port: transferJSON.port,
|
|
346
|
-
channel: transferJSON.channel,
|
|
347
|
-
fromChainID: transferJSON.from_chain_id,
|
|
348
|
-
toChainID: transferJSON.to_chain_id,
|
|
349
|
-
pfmEnabled: transferJSON.pfm_enabled,
|
|
350
|
-
supportsMemo: transferJSON.supports_memo,
|
|
351
|
-
denomIn: transferJSON.denom_in,
|
|
352
|
-
denomOut: transferJSON.denom_out,
|
|
353
|
-
feeAmount: transferJSON.fee_amount,
|
|
354
|
-
usdFeeAmount: transferJSON.usd_fee_amount,
|
|
355
|
-
feeAsset: transferJSON.fee_asset && assetFromJSON(transferJSON.fee_asset),
|
|
356
|
-
bridgeID: transferJSON.bridge_id,
|
|
357
|
-
destDenom: transferJSON.dest_denom,
|
|
358
|
-
chainID: transferJSON.chain_id,
|
|
359
|
-
smartRelay: transferJSON.smart_relay
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function transferToJSON(transfer) {
|
|
363
|
-
return {
|
|
364
|
-
port: transfer.port,
|
|
365
|
-
channel: transfer.channel,
|
|
366
|
-
from_chain_id: transfer.fromChainID,
|
|
367
|
-
to_chain_id: transfer.toChainID,
|
|
368
|
-
pfm_enabled: transfer.pfmEnabled,
|
|
369
|
-
supports_memo: transfer.supportsMemo,
|
|
370
|
-
denom_in: transfer.denomIn,
|
|
371
|
-
denom_out: transfer.denomOut,
|
|
372
|
-
fee_amount: transfer.feeAmount,
|
|
373
|
-
usd_fee_amount: transfer.usdFeeAmount,
|
|
374
|
-
fee_asset: transfer.feeAsset && assetToJSON(transfer.feeAsset),
|
|
375
|
-
bridge_id: transfer.bridgeID,
|
|
376
|
-
dest_denom: transfer.destDenom,
|
|
377
|
-
chain_id: transfer.chainID,
|
|
378
|
-
smart_relay: transfer.smartRelay
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function swapOperationFromJSON(swapOperationJSON) {
|
|
382
|
-
return {
|
|
383
|
-
pool: swapOperationJSON.pool,
|
|
384
|
-
denomIn: swapOperationJSON.denom_in,
|
|
385
|
-
denomOut: swapOperationJSON.denom_out,
|
|
386
|
-
interface: swapOperationJSON.interface
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function swapOperationToJSON(swapOperation) {
|
|
390
|
-
return {
|
|
391
|
-
pool: swapOperation.pool,
|
|
392
|
-
denom_in: swapOperation.denomIn,
|
|
393
|
-
denom_out: swapOperation.denomOut,
|
|
394
|
-
interface: swapOperation.interface
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
function swapRouteFromJSON(swapRouteJSON) {
|
|
398
|
-
return {
|
|
399
|
-
swapAmountIn: swapRouteJSON.swap_amount_in,
|
|
400
|
-
denomIn: swapRouteJSON.denom_in,
|
|
401
|
-
swapOperations: swapRouteJSON.swap_operations.map(swapOperationFromJSON)
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function swapRouteToJSON(swapRoute) {
|
|
405
|
-
return {
|
|
406
|
-
swap_amount_in: swapRoute.swapAmountIn,
|
|
407
|
-
denom_in: swapRoute.denomIn,
|
|
408
|
-
swap_operations: swapRoute.swapOperations.map(swapOperationToJSON)
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
function swapExactCoinInFromJSON(swapExactCoinInJSON) {
|
|
412
|
-
return {
|
|
413
|
-
swapVenue: swapVenueFromJSON(swapExactCoinInJSON.swap_venue),
|
|
414
|
-
swapOperations: swapExactCoinInJSON.swap_operations.map(
|
|
415
|
-
swapOperationFromJSON
|
|
416
|
-
),
|
|
417
|
-
swapAmountIn: swapExactCoinInJSON.swap_amount_in,
|
|
418
|
-
priceImpactPercent: swapExactCoinInJSON.price_impact_percent,
|
|
419
|
-
estimatedAmountOut: swapExactCoinInJSON.estimated_amount_out
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
function swapExactCoinInToJSON(swapExactCoinIn) {
|
|
423
|
-
return {
|
|
424
|
-
swap_venue: swapVenueToJSON(swapExactCoinIn.swapVenue),
|
|
425
|
-
swap_operations: swapExactCoinIn.swapOperations.map(swapOperationToJSON),
|
|
426
|
-
swap_amount_in: swapExactCoinIn.swapAmountIn,
|
|
427
|
-
price_impact_percent: swapExactCoinIn.priceImpactPercent,
|
|
428
|
-
estimated_amount_out: swapExactCoinIn.estimatedAmountOut
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
function smartSwapExactCoinInFromJSON(smartSwapExactCoinInJSON) {
|
|
432
|
-
return {
|
|
433
|
-
swapVenue: swapVenueFromJSON(smartSwapExactCoinInJSON.swap_venue),
|
|
434
|
-
swapRoutes: smartSwapExactCoinInJSON.swap_routes.map(swapRouteFromJSON),
|
|
435
|
-
estimatedAmountOut: smartSwapExactCoinInJSON.estimated_amount_out
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
function smartSwapExactCoinInToJSON(smartSwapExactCoinIn) {
|
|
439
|
-
return {
|
|
440
|
-
swap_venue: swapVenueToJSON(smartSwapExactCoinIn.swapVenue),
|
|
441
|
-
swap_routes: smartSwapExactCoinIn.swapRoutes.map(swapRouteToJSON),
|
|
442
|
-
estimated_amount_out: smartSwapExactCoinIn.estimatedAmountOut
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
function swapExactCoinOutFromJSON(swapExactCoinOutJSON) {
|
|
446
|
-
return {
|
|
447
|
-
swapVenue: swapVenueFromJSON(swapExactCoinOutJSON.swap_venue),
|
|
448
|
-
swapOperations: swapExactCoinOutJSON.swap_operations.map(
|
|
449
|
-
swapOperationFromJSON
|
|
450
|
-
),
|
|
451
|
-
swapAmountOut: swapExactCoinOutJSON.swap_amount_out,
|
|
452
|
-
priceImpactPercent: swapExactCoinOutJSON.price_impact_percent
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
function swapExactCoinOutToJSON(swapExactCoinOut) {
|
|
456
|
-
return {
|
|
457
|
-
swap_venue: swapVenueToJSON(swapExactCoinOut.swapVenue),
|
|
458
|
-
swap_operations: swapExactCoinOut.swapOperations.map(swapOperationToJSON),
|
|
459
|
-
swap_amount_out: swapExactCoinOut.swapAmountOut,
|
|
460
|
-
price_impact_percent: swapExactCoinOut.priceImpactPercent
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
function swapFromJSON(swapJSON) {
|
|
464
|
-
if ("swap_in" in swapJSON) {
|
|
465
|
-
return {
|
|
466
|
-
swapIn: swapExactCoinInFromJSON(swapJSON.swap_in),
|
|
467
|
-
estimatedAffiliateFee: swapJSON.estimated_affiliate_fee,
|
|
468
|
-
fromChainID: swapJSON.from_chain_id,
|
|
469
|
-
chainID: swapJSON.chain_id,
|
|
470
|
-
denomIn: swapJSON.denom_in,
|
|
471
|
-
denomOut: swapJSON.denom_out,
|
|
472
|
-
swapVenues: swapJSON.swap_venues.map(swapVenueFromJSON)
|
|
473
|
-
};
|
|
474
|
-
} else if ("smart_swap_in" in swapJSON) {
|
|
475
|
-
return {
|
|
476
|
-
smartSwapIn: smartSwapExactCoinInFromJSON(swapJSON.smart_swap_in),
|
|
477
|
-
estimatedAffiliateFee: swapJSON.estimated_affiliate_fee,
|
|
478
|
-
fromChainID: swapJSON.from_chain_id,
|
|
479
|
-
chainID: swapJSON.chain_id,
|
|
480
|
-
denomIn: swapJSON.denom_in,
|
|
481
|
-
denomOut: swapJSON.denom_out,
|
|
482
|
-
swapVenues: swapJSON.swap_venues.map(swapVenueFromJSON)
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
return {
|
|
486
|
-
swapOut: swapExactCoinOutFromJSON(swapJSON.swap_out),
|
|
487
|
-
estimatedAffiliateFee: swapJSON.estimated_affiliate_fee,
|
|
488
|
-
fromChainID: swapJSON.from_chain_id,
|
|
489
|
-
chainID: swapJSON.chain_id,
|
|
490
|
-
denomIn: swapJSON.denom_in,
|
|
491
|
-
denomOut: swapJSON.denom_out,
|
|
492
|
-
swapVenues: swapJSON.swap_venues.map(swapVenueFromJSON)
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
function swapToJSON(swap) {
|
|
496
|
-
if ("swapIn" in swap) {
|
|
497
|
-
return {
|
|
498
|
-
swap_in: swapExactCoinInToJSON(swap.swapIn),
|
|
499
|
-
estimated_affiliate_fee: swap.estimatedAffiliateFee,
|
|
500
|
-
from_chain_id: swap.fromChainID,
|
|
501
|
-
chain_id: swap.chainID,
|
|
502
|
-
denom_in: swap.denomIn,
|
|
503
|
-
denom_out: swap.denomOut,
|
|
504
|
-
swap_venues: swap.swapVenues.map(swapVenueToJSON)
|
|
505
|
-
};
|
|
506
|
-
} else if ("smartSwapIn" in swap) {
|
|
507
|
-
return {
|
|
508
|
-
smart_swap_in: smartSwapExactCoinInToJSON(swap.smartSwapIn),
|
|
509
|
-
estimated_affiliate_fee: swap.estimatedAffiliateFee,
|
|
510
|
-
from_chain_id: swap.fromChainID,
|
|
511
|
-
chain_id: swap.chainID,
|
|
512
|
-
denom_in: swap.denomIn,
|
|
513
|
-
denom_out: swap.denomOut,
|
|
514
|
-
swap_venues: swap.swapVenues.map(swapVenueToJSON)
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
return {
|
|
518
|
-
swap_out: swapExactCoinOutToJSON(swap.swapOut),
|
|
519
|
-
estimated_affiliate_fee: swap.estimatedAffiliateFee,
|
|
520
|
-
from_chain_id: swap.fromChainID,
|
|
521
|
-
chain_id: swap.chainID,
|
|
522
|
-
denom_in: swap.denomIn,
|
|
523
|
-
denom_out: swap.denomOut,
|
|
524
|
-
swap_venues: swap.swapVenues.map(swapVenueToJSON)
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
function evmSwapFromJSON(evmSwapJSON) {
|
|
528
|
-
return {
|
|
529
|
-
inputToken: evmSwapJSON.input_token,
|
|
530
|
-
amountIn: evmSwapJSON.amount_in,
|
|
531
|
-
swapCalldata: evmSwapJSON.swap_calldata,
|
|
532
|
-
amountOut: evmSwapJSON.amount_out,
|
|
533
|
-
fromChainID: evmSwapJSON.from_chain_id,
|
|
534
|
-
denomIn: evmSwapJSON.denom_in,
|
|
535
|
-
denomOut: evmSwapJSON.denom_out,
|
|
536
|
-
swapVenues: evmSwapJSON.swap_venues.map(swapVenueFromJSON)
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
function evmSwapToJSON(evmSwap) {
|
|
540
|
-
return {
|
|
541
|
-
input_token: evmSwap.inputToken,
|
|
542
|
-
amount_in: evmSwap.amountIn,
|
|
543
|
-
swap_calldata: evmSwap.swapCalldata,
|
|
544
|
-
amount_out: evmSwap.amountOut,
|
|
545
|
-
from_chain_id: evmSwap.fromChainID,
|
|
546
|
-
denom_in: evmSwap.denomIn,
|
|
547
|
-
denom_out: evmSwap.denomOut,
|
|
548
|
-
swap_venues: evmSwap.swapVenues.map(swapVenueToJSON)
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
function operationFromJSON(operationJSON) {
|
|
552
|
-
if ("transfer" in operationJSON) {
|
|
553
|
-
return {
|
|
554
|
-
transfer: transferFromJSON(operationJSON.transfer),
|
|
555
|
-
txIndex: operationJSON.tx_index,
|
|
556
|
-
amountIn: operationJSON.amount_in,
|
|
557
|
-
amountOut: operationJSON.amount_out
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
if ("bank_send" in operationJSON) {
|
|
561
|
-
return {
|
|
562
|
-
bankSend: bankSendFromJSON(operationJSON.bank_send),
|
|
563
|
-
txIndex: operationJSON.tx_index,
|
|
564
|
-
amountIn: operationJSON.amount_in,
|
|
565
|
-
amountOut: operationJSON.amount_out
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
if ("axelar_transfer" in operationJSON) {
|
|
569
|
-
return {
|
|
570
|
-
axelarTransfer: axelarTransferFromJSON(operationJSON.axelar_transfer),
|
|
571
|
-
txIndex: operationJSON.tx_index,
|
|
572
|
-
amountIn: operationJSON.amount_in,
|
|
573
|
-
amountOut: operationJSON.amount_out
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
if ("cctp_transfer" in operationJSON) {
|
|
577
|
-
return {
|
|
578
|
-
cctpTransfer: cctpTransferFromJSON(operationJSON.cctp_transfer),
|
|
579
|
-
txIndex: operationJSON.tx_index,
|
|
580
|
-
amountIn: operationJSON.amount_in,
|
|
581
|
-
amountOut: operationJSON.amount_out
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
if ("hyperlane_transfer" in operationJSON) {
|
|
585
|
-
return {
|
|
586
|
-
hyperlaneTransfer: hyperlaneTransferFromJSON(
|
|
587
|
-
operationJSON.hyperlane_transfer
|
|
588
|
-
),
|
|
589
|
-
txIndex: operationJSON.tx_index,
|
|
590
|
-
amountIn: operationJSON.amount_in,
|
|
591
|
-
amountOut: operationJSON.amount_out
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
if ("op_init_transfer" in operationJSON) {
|
|
595
|
-
return {
|
|
596
|
-
opInitTransfer: opInitTransferFromJSON(operationJSON.op_init_transfer),
|
|
597
|
-
txIndex: operationJSON.tx_index,
|
|
598
|
-
amountIn: operationJSON.amount_in,
|
|
599
|
-
amountOut: operationJSON.amount_out
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
if ("swap" in operationJSON) {
|
|
603
|
-
return {
|
|
604
|
-
swap: swapFromJSON(operationJSON.swap),
|
|
605
|
-
txIndex: operationJSON.tx_index,
|
|
606
|
-
amountIn: operationJSON.amount_in,
|
|
607
|
-
amountOut: operationJSON.amount_out
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
return {
|
|
611
|
-
evmSwap: evmSwapFromJSON(operationJSON.evm_swap),
|
|
612
|
-
txIndex: operationJSON.tx_index,
|
|
613
|
-
amountIn: operationJSON.amount_in,
|
|
614
|
-
amountOut: operationJSON.amount_out
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
function operationToJSON(operation) {
|
|
618
|
-
if ("transfer" in operation) {
|
|
619
|
-
return {
|
|
620
|
-
transfer: transferToJSON(operation.transfer),
|
|
621
|
-
tx_index: operation.txIndex,
|
|
622
|
-
amount_in: operation.amountIn,
|
|
623
|
-
amount_out: operation.amountOut
|
|
624
|
-
};
|
|
625
|
-
}
|
|
626
|
-
if ("bankSend" in operation) {
|
|
627
|
-
return {
|
|
628
|
-
bank_send: bankSendToJSON(operation.bankSend),
|
|
629
|
-
tx_index: operation.txIndex,
|
|
630
|
-
amount_in: operation.amountIn,
|
|
631
|
-
amount_out: operation.amountOut
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
if ("axelarTransfer" in operation) {
|
|
635
|
-
return {
|
|
636
|
-
axelar_transfer: axelarTransferToJSON(operation.axelarTransfer),
|
|
637
|
-
tx_index: operation.txIndex,
|
|
638
|
-
amount_in: operation.amountIn,
|
|
639
|
-
amount_out: operation.amountOut
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
if ("cctpTransfer" in operation) {
|
|
643
|
-
return {
|
|
644
|
-
cctp_transfer: cctpTransferToJSON(operation.cctpTransfer),
|
|
645
|
-
tx_index: operation.txIndex,
|
|
646
|
-
amount_in: operation.amountIn,
|
|
647
|
-
amount_out: operation.amountOut
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
if ("hyperlaneTransfer" in operation) {
|
|
651
|
-
return {
|
|
652
|
-
hyperlane_transfer: hyperlaneTransferToJSON(operation.hyperlaneTransfer),
|
|
653
|
-
tx_index: operation.txIndex,
|
|
654
|
-
amount_in: operation.amountIn,
|
|
655
|
-
amount_out: operation.amountOut
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
if ("opInitTransfer" in operation) {
|
|
659
|
-
return {
|
|
660
|
-
op_init_transfer: opInitTransferToJSON(operation.opInitTransfer),
|
|
661
|
-
tx_index: operation.txIndex,
|
|
662
|
-
amount_in: operation.amountIn,
|
|
663
|
-
amount_out: operation.amountOut
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
if ("swap" in operation) {
|
|
667
|
-
return {
|
|
668
|
-
swap: swapToJSON(operation.swap),
|
|
669
|
-
tx_index: operation.txIndex,
|
|
670
|
-
amount_in: operation.amountIn,
|
|
671
|
-
amount_out: operation.amountOut
|
|
672
|
-
};
|
|
673
|
-
}
|
|
674
|
-
return {
|
|
675
|
-
evm_swap: evmSwapToJSON(operation.evmSwap),
|
|
676
|
-
tx_index: operation.txIndex,
|
|
677
|
-
amount_in: operation.amountIn,
|
|
678
|
-
amount_out: operation.amountOut
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
function routeResponseFromJSON(routeResponseJSON) {
|
|
682
|
-
var _a;
|
|
683
|
-
return {
|
|
684
|
-
sourceAssetDenom: routeResponseJSON.source_asset_denom,
|
|
685
|
-
sourceAssetChainID: routeResponseJSON.source_asset_chain_id,
|
|
686
|
-
destAssetDenom: routeResponseJSON.dest_asset_denom,
|
|
687
|
-
destAssetChainID: routeResponseJSON.dest_asset_chain_id,
|
|
688
|
-
amountIn: routeResponseJSON.amount_in,
|
|
689
|
-
amountOut: routeResponseJSON.amount_out,
|
|
690
|
-
operations: routeResponseJSON.operations.map(operationFromJSON),
|
|
691
|
-
chainIDs: routeResponseJSON.chain_ids,
|
|
692
|
-
requiredChainAddresses: routeResponseJSON.required_chain_addresses,
|
|
693
|
-
doesSwap: routeResponseJSON.does_swap,
|
|
694
|
-
estimatedAmountOut: routeResponseJSON.estimated_amount_out,
|
|
695
|
-
swapVenues: routeResponseJSON.swap_venues ? routeResponseJSON.swap_venues.map(swapVenueFromJSON) : void 0,
|
|
696
|
-
txsRequired: routeResponseJSON.txs_required,
|
|
697
|
-
usdAmountIn: routeResponseJSON.usd_amount_in,
|
|
698
|
-
usdAmountOut: routeResponseJSON.usd_amount_out,
|
|
699
|
-
swapPriceImpactPercent: routeResponseJSON.swap_price_impact_percent,
|
|
700
|
-
warning: routeResponseJSON.warning,
|
|
701
|
-
estimatedFees: ((_a = routeResponseJSON.estimated_fees) == null ? void 0 : _a.length) ? routeResponseJSON.estimated_fees.map((i) => estimatedFeeFromJSON(i)) : [],
|
|
702
|
-
estimatedRouteDurationSeconds: routeResponseJSON.estimated_route_duration_seconds
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
function routeResponseToJSON(routeResponse) {
|
|
706
|
-
return {
|
|
707
|
-
source_asset_denom: routeResponse.sourceAssetDenom,
|
|
708
|
-
source_asset_chain_id: routeResponse.sourceAssetChainID,
|
|
709
|
-
dest_asset_denom: routeResponse.destAssetDenom,
|
|
710
|
-
dest_asset_chain_id: routeResponse.destAssetChainID,
|
|
711
|
-
amount_in: routeResponse.amountIn,
|
|
712
|
-
amount_out: routeResponse.amountOut,
|
|
713
|
-
operations: routeResponse.operations.map(operationToJSON),
|
|
714
|
-
chain_ids: routeResponse.chainIDs,
|
|
715
|
-
required_chain_addresses: routeResponse.requiredChainAddresses,
|
|
716
|
-
does_swap: routeResponse.doesSwap,
|
|
717
|
-
estimated_amount_out: routeResponse.estimatedAmountOut,
|
|
718
|
-
swap_venues: routeResponse.swapVenues ? routeResponse.swapVenues.map(swapVenueToJSON) : void 0,
|
|
719
|
-
txs_required: routeResponse.txsRequired,
|
|
720
|
-
usd_amount_in: routeResponse.usdAmountIn,
|
|
721
|
-
usd_amount_out: routeResponse.usdAmountOut,
|
|
722
|
-
swap_price_impact_percent: routeResponse.swapPriceImpactPercent,
|
|
723
|
-
warning: routeResponse.warning,
|
|
724
|
-
estimated_fees: routeResponse.estimatedFees.map(
|
|
725
|
-
(i) => estimatedFeeToJSON(i)
|
|
726
|
-
),
|
|
727
|
-
estimated_route_duration_seconds: routeResponse.estimatedRouteDurationSeconds
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
function cosmWasmContractMsgFromJSON(cosmWasmContractMsgJSON) {
|
|
731
|
-
return {
|
|
732
|
-
contractAddress: cosmWasmContractMsgJSON.contract_address,
|
|
733
|
-
msg: cosmWasmContractMsgJSON.msg
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
function cosmWasmContractMsgToJSON(cosmWasmContractMsg) {
|
|
737
|
-
return {
|
|
738
|
-
contract_address: cosmWasmContractMsg.contractAddress,
|
|
739
|
-
msg: cosmWasmContractMsg.msg
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
function postHandlerFromJSON(postHandlerJSON) {
|
|
743
|
-
if ("wasm_msg" in postHandlerJSON) {
|
|
744
|
-
return {
|
|
745
|
-
wasmMsg: cosmWasmContractMsgFromJSON(postHandlerJSON.wasm_msg)
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
return {
|
|
749
|
-
autopilotMsg: postHandlerJSON.autopilot_msg
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
function postHandlerToJSON(postHandler) {
|
|
753
|
-
if ("wasmMsg" in postHandler) {
|
|
754
|
-
return {
|
|
755
|
-
wasm_msg: cosmWasmContractMsgToJSON(postHandler.wasmMsg)
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
return {
|
|
759
|
-
autopilot_msg: postHandler.autopilotMsg
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
function msgsRequestFromJSON(msgsRequestJSON) {
|
|
763
|
-
var _a;
|
|
764
|
-
return {
|
|
765
|
-
sourceAssetDenom: msgsRequestJSON.source_asset_denom,
|
|
766
|
-
sourceAssetChainID: msgsRequestJSON.source_asset_chain_id,
|
|
767
|
-
destAssetDenom: msgsRequestJSON.dest_asset_denom,
|
|
768
|
-
destAssetChainID: msgsRequestJSON.dest_asset_chain_id,
|
|
769
|
-
amountIn: msgsRequestJSON.amount_in,
|
|
770
|
-
amountOut: msgsRequestJSON.amount_out,
|
|
771
|
-
addressList: msgsRequestJSON.address_list,
|
|
772
|
-
operations: msgsRequestJSON.operations.map(operationFromJSON),
|
|
773
|
-
estimatedAmountOut: msgsRequestJSON.estimated_amount_out,
|
|
774
|
-
slippageTolerancePercent: msgsRequestJSON.slippage_tolerance_percent,
|
|
775
|
-
affiliates: (_a = msgsRequestJSON.affiliates) == null ? void 0 : _a.map(affiliateFromJSON),
|
|
776
|
-
chainIDsToAffiliates: msgsRequestJSON.chain_ids_to_affiliates ? chainIDsToAffiliatesMapFromJSON(msgsRequestJSON.chain_ids_to_affiliates) : void 0,
|
|
777
|
-
postRouteHandler: msgsRequestJSON.post_route_handler && postHandlerFromJSON(msgsRequestJSON.post_route_handler),
|
|
778
|
-
enableGasWarnings: msgsRequestJSON.enable_gas_warnings
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
function msgsRequestToJSON(msgsRequest) {
|
|
782
|
-
var _a;
|
|
783
|
-
return {
|
|
784
|
-
source_asset_denom: msgsRequest.sourceAssetDenom,
|
|
785
|
-
source_asset_chain_id: msgsRequest.sourceAssetChainID,
|
|
786
|
-
dest_asset_denom: msgsRequest.destAssetDenom,
|
|
787
|
-
dest_asset_chain_id: msgsRequest.destAssetChainID,
|
|
788
|
-
amount_in: msgsRequest.amountIn,
|
|
789
|
-
amount_out: msgsRequest.amountOut,
|
|
790
|
-
address_list: msgsRequest.addressList,
|
|
791
|
-
operations: msgsRequest.operations.map(operationToJSON),
|
|
792
|
-
estimated_amount_out: msgsRequest.estimatedAmountOut,
|
|
793
|
-
slippage_tolerance_percent: msgsRequest.slippageTolerancePercent,
|
|
794
|
-
affiliates: (_a = msgsRequest.affiliates) == null ? void 0 : _a.map(affiliateToJSON),
|
|
795
|
-
chain_ids_to_affiliates: msgsRequest.chainIDsToAffiliates ? chainIDsToAffiliatesMapToJSON(msgsRequest.chainIDsToAffiliates) : void 0,
|
|
796
|
-
post_route_handler: msgsRequest.postRouteHandler && postHandlerToJSON(msgsRequest.postRouteHandler),
|
|
797
|
-
enable_gas_warnings: msgsRequest.enableGasWarnings
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
function multiChainMsgFromJSON(multiChainMsgJSON) {
|
|
801
|
-
return {
|
|
802
|
-
chainID: multiChainMsgJSON.chain_id,
|
|
803
|
-
path: multiChainMsgJSON.path,
|
|
804
|
-
msg: multiChainMsgJSON.msg,
|
|
805
|
-
msgTypeURL: multiChainMsgJSON.msg_type_url
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
function multiChainMsgToJSON(multiChainMsg) {
|
|
809
|
-
return {
|
|
810
|
-
chain_id: multiChainMsg.chainID,
|
|
811
|
-
path: multiChainMsg.path,
|
|
812
|
-
msg: multiChainMsg.msg,
|
|
813
|
-
msg_type_url: multiChainMsg.msgTypeURL
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
function cosmosMsgFromJSON(cosmosMsgJSON) {
|
|
817
|
-
return {
|
|
818
|
-
msg: cosmosMsgJSON.msg,
|
|
819
|
-
msgTypeURL: cosmosMsgJSON.msg_type_url
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
function cosmosMsgToJSON(cosmosMsg) {
|
|
823
|
-
return {
|
|
824
|
-
msg: cosmosMsg.msg,
|
|
825
|
-
msg_type_url: cosmosMsg.msgTypeURL
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
function submitTxRequestFromJSON(submitTxRequestJSON) {
|
|
829
|
-
return {
|
|
830
|
-
tx: submitTxRequestJSON.tx,
|
|
831
|
-
chainID: submitTxRequestJSON.chain_id
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
function submitTxRequestToJSON(submitTxRequest) {
|
|
835
|
-
return {
|
|
836
|
-
tx: submitTxRequest.tx,
|
|
837
|
-
chain_id: submitTxRequest.chainID
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
function submitTxResponseFromJSON(submitTxResponseJSON) {
|
|
841
|
-
return {
|
|
842
|
-
txHash: submitTxResponseJSON.tx_hash
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
function submitTxResponseToJSON(submitTxResponse) {
|
|
846
|
-
return {
|
|
847
|
-
tx_hash: submitTxResponse.txHash
|
|
848
|
-
};
|
|
849
|
-
}
|
|
850
|
-
function trackTxRequestFromJSON(trackRequestJSON) {
|
|
851
|
-
return {
|
|
852
|
-
txHash: trackRequestJSON.tx_hash,
|
|
853
|
-
chainID: trackRequestJSON.chain_id
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
function trackTxRequestToJSON(trackRequest) {
|
|
857
|
-
return {
|
|
858
|
-
tx_hash: trackRequest.txHash,
|
|
859
|
-
chain_id: trackRequest.chainID
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
function trackTxResponseFromJSON(trackResponseJSON) {
|
|
863
|
-
return {
|
|
864
|
-
txHash: trackResponseJSON.tx_hash,
|
|
865
|
-
explorerLink: trackResponseJSON.explorer_link
|
|
866
|
-
};
|
|
867
|
-
}
|
|
868
|
-
function trackTxResponseToJSON(trackResponse) {
|
|
869
|
-
return {
|
|
870
|
-
tx_hash: trackResponse.txHash,
|
|
871
|
-
explorer_link: trackResponse.explorerLink
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
|
-
function txStatusRequestFromJSON(txStatusRequestJSON) {
|
|
875
|
-
return {
|
|
876
|
-
txHash: txStatusRequestJSON.tx_hash,
|
|
877
|
-
chainID: txStatusRequestJSON.chain_id
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
|
-
function txStatusRequestToJSON(txStatusRequest) {
|
|
881
|
-
return {
|
|
882
|
-
tx_hash: txStatusRequest.txHash,
|
|
883
|
-
chain_id: txStatusRequest.chainID
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
function chainTransactionFromJSON(chainTransactionJSON) {
|
|
887
|
-
return {
|
|
888
|
-
txHash: chainTransactionJSON.tx_hash,
|
|
889
|
-
chainID: chainTransactionJSON.chain_id,
|
|
890
|
-
explorerLink: chainTransactionJSON.explorer_link
|
|
891
|
-
};
|
|
892
|
-
}
|
|
893
|
-
function chainTransactionToJSON(chainTransaction) {
|
|
894
|
-
return {
|
|
895
|
-
tx_hash: chainTransaction.txHash,
|
|
896
|
-
chain_id: chainTransaction.chainID,
|
|
897
|
-
explorer_link: chainTransaction.explorerLink
|
|
898
|
-
};
|
|
899
|
-
}
|
|
900
|
-
function packetFromJSON(packetJSON) {
|
|
901
|
-
return {
|
|
902
|
-
sendTx: packetJSON.send_tx && chainTransactionFromJSON(packetJSON.send_tx),
|
|
903
|
-
receiveTx: packetJSON.receive_tx && chainTransactionFromJSON(packetJSON.receive_tx),
|
|
904
|
-
acknowledgeTx: packetJSON.acknowledge_tx && chainTransactionFromJSON(packetJSON.acknowledge_tx),
|
|
905
|
-
timeoutTx: packetJSON.timeout_tx && chainTransactionFromJSON(packetJSON.timeout_tx),
|
|
906
|
-
error: packetJSON.error
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
function packetToJSON(packet) {
|
|
910
|
-
return {
|
|
911
|
-
send_tx: packet.sendTx && chainTransactionToJSON(packet.sendTx),
|
|
912
|
-
receive_tx: packet.receiveTx && chainTransactionToJSON(packet.receiveTx),
|
|
913
|
-
acknowledge_tx: packet.acknowledgeTx && chainTransactionToJSON(packet.acknowledgeTx),
|
|
914
|
-
timeout_tx: packet.timeoutTx && chainTransactionToJSON(packet.timeoutTx),
|
|
915
|
-
error: packet.error
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
function transferInfoFromJSON(transferInfoJSON) {
|
|
919
|
-
return {
|
|
920
|
-
fromChainID: transferInfoJSON.from_chain_id,
|
|
921
|
-
toChainID: transferInfoJSON.to_chain_id,
|
|
922
|
-
state: transferInfoJSON.state,
|
|
923
|
-
packetTXs: transferInfoJSON.packet_txs && packetFromJSON(transferInfoJSON.packet_txs),
|
|
924
|
-
srcChainID: transferInfoJSON.src_chain_id,
|
|
925
|
-
dstChainID: transferInfoJSON.dst_chain_id
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
function transferInfoToJSON(transferInfo) {
|
|
929
|
-
return {
|
|
930
|
-
from_chain_id: transferInfo.fromChainID,
|
|
931
|
-
to_chain_id: transferInfo.toChainID,
|
|
932
|
-
state: transferInfo.state,
|
|
933
|
-
packet_txs: transferInfo.packetTXs && packetToJSON(transferInfo.packetTXs),
|
|
934
|
-
src_chain_id: transferInfo.srcChainID,
|
|
935
|
-
dst_chain_id: transferInfo.dstChainID
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
function nextBlockingTransferFromJSON(nextBlockingTransferJSON) {
|
|
939
|
-
return {
|
|
940
|
-
transferSequenceIndex: nextBlockingTransferJSON.transfer_sequence_index
|
|
941
|
-
};
|
|
942
|
-
}
|
|
943
|
-
function nextBlockingTransferToJSON(nextBlockingTransfer) {
|
|
944
|
-
return {
|
|
945
|
-
transfer_sequence_index: nextBlockingTransfer.transferSequenceIndex
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
function transferAssetReleaseFromJSON(transferAssetReleaseJSON) {
|
|
949
|
-
return {
|
|
950
|
-
chainID: transferAssetReleaseJSON.chain_id,
|
|
951
|
-
denom: transferAssetReleaseJSON.denom,
|
|
952
|
-
released: transferAssetReleaseJSON.released
|
|
953
|
-
};
|
|
954
|
-
}
|
|
955
|
-
function transferAssetReleaseToJSON(transferAssetRelease) {
|
|
956
|
-
return {
|
|
957
|
-
chain_id: transferAssetRelease.chainID,
|
|
958
|
-
denom: transferAssetRelease.denom,
|
|
959
|
-
released: transferAssetRelease.released
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
function txStatusResponseFromJSON(statusResponseJSON) {
|
|
963
|
-
return {
|
|
964
|
-
status: statusResponseJSON.status,
|
|
965
|
-
nextBlockingTransfer: statusResponseJSON.next_blocking_transfer && nextBlockingTransferFromJSON(statusResponseJSON.next_blocking_transfer),
|
|
966
|
-
transferSequence: statusResponseJSON.transfer_sequence.map(
|
|
967
|
-
transferEventFromJSON
|
|
968
|
-
),
|
|
969
|
-
transferAssetRelease: statusResponseJSON.transfer_asset_release && transferAssetReleaseFromJSON(statusResponseJSON.transfer_asset_release),
|
|
970
|
-
error: statusResponseJSON.error,
|
|
971
|
-
state: statusResponseJSON.state,
|
|
972
|
-
transfers: statusResponseJSON.transfers.map(transferStatusFromJSON)
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
function txStatusResponseToJSON(statusResponse) {
|
|
976
|
-
return {
|
|
977
|
-
status: statusResponse.status,
|
|
978
|
-
next_blocking_transfer: statusResponse.nextBlockingTransfer && nextBlockingTransferToJSON(statusResponse.nextBlockingTransfer),
|
|
979
|
-
transfer_sequence: statusResponse.transferSequence.map(transferEventToJSON),
|
|
980
|
-
transfer_asset_release: statusResponse.transferAssetRelease && transferAssetReleaseToJSON(statusResponse.transferAssetRelease),
|
|
981
|
-
error: statusResponse.error,
|
|
982
|
-
state: statusResponse.state,
|
|
983
|
-
transfers: statusResponse.transfers.map(transferStatusToJSON)
|
|
984
|
-
};
|
|
985
|
-
}
|
|
986
|
-
function ibcAddressFromJSON(ibcAddressJSON) {
|
|
987
|
-
return {
|
|
988
|
-
address: ibcAddressJSON.address,
|
|
989
|
-
chainID: ibcAddressJSON.chain_id
|
|
990
|
-
};
|
|
991
|
-
}
|
|
992
|
-
function ibcAddressToJSON(ibcAddress) {
|
|
993
|
-
return {
|
|
994
|
-
address: ibcAddress.address,
|
|
995
|
-
chain_id: ibcAddress.chainID
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
function axelarTransferFromJSON(axelarTransferJSON) {
|
|
999
|
-
return {
|
|
1000
|
-
fromChain: axelarTransferJSON.from_chain,
|
|
1001
|
-
fromChainID: axelarTransferJSON.from_chain_id,
|
|
1002
|
-
toChain: axelarTransferJSON.to_chain,
|
|
1003
|
-
toChainID: axelarTransferJSON.to_chain_id,
|
|
1004
|
-
asset: axelarTransferJSON.asset,
|
|
1005
|
-
shouldUnwrap: axelarTransferJSON.should_unwrap,
|
|
1006
|
-
denomIn: axelarTransferJSON.denom_in,
|
|
1007
|
-
denomOut: axelarTransferJSON.denom_out,
|
|
1008
|
-
feeAmount: axelarTransferJSON.fee_amount,
|
|
1009
|
-
usdFeeAmount: axelarTransferJSON.usd_fee_amount,
|
|
1010
|
-
feeAsset: assetFromJSON(axelarTransferJSON.fee_asset),
|
|
1011
|
-
isTestnet: axelarTransferJSON.is_testnet,
|
|
1012
|
-
ibcTransferToAxelar: axelarTransferJSON.ibc_transfer_to_axelar ? transferFromJSON(axelarTransferJSON.ibc_transfer_to_axelar) : void 0,
|
|
1013
|
-
bridgeID: axelarTransferJSON.bridge_id,
|
|
1014
|
-
smartRelay: axelarTransferJSON.smart_relay
|
|
1015
|
-
};
|
|
1016
|
-
}
|
|
1017
|
-
function axelarTransferToJSON(axelarTransfer) {
|
|
1018
|
-
return {
|
|
1019
|
-
from_chain: axelarTransfer.fromChain,
|
|
1020
|
-
from_chain_id: axelarTransfer.fromChainID,
|
|
1021
|
-
to_chain: axelarTransfer.toChain,
|
|
1022
|
-
to_chain_id: axelarTransfer.toChainID,
|
|
1023
|
-
asset: axelarTransfer.asset,
|
|
1024
|
-
should_unwrap: axelarTransfer.shouldUnwrap,
|
|
1025
|
-
denom_in: axelarTransfer.denomIn,
|
|
1026
|
-
denom_out: axelarTransfer.denomOut,
|
|
1027
|
-
fee_amount: axelarTransfer.feeAmount,
|
|
1028
|
-
fee_asset: assetToJSON(axelarTransfer.feeAsset),
|
|
1029
|
-
usd_fee_amount: axelarTransfer.usdFeeAmount,
|
|
1030
|
-
is_testnet: axelarTransfer.isTestnet,
|
|
1031
|
-
ibc_transfer_to_axelar: axelarTransfer.ibcTransferToAxelar ? transferToJSON(axelarTransfer.ibcTransferToAxelar) : void 0,
|
|
1032
|
-
bridge_id: axelarTransfer.bridgeID,
|
|
1033
|
-
smart_relay: axelarTransfer.smartRelay
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
function bankSendFromJSON(value) {
|
|
1037
|
-
return {
|
|
1038
|
-
chainID: value.chain_id,
|
|
1039
|
-
denom: value.denom
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
function bankSendToJSON(value) {
|
|
1043
|
-
return {
|
|
1044
|
-
chain_id: value.chainID,
|
|
1045
|
-
denom: value.denom
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
function smartRelayFeeQuoteFromJSON(value) {
|
|
1049
|
-
return {
|
|
1050
|
-
feeAmount: value.fee_amount,
|
|
1051
|
-
relayerAddress: value.relayer_address,
|
|
1052
|
-
expiration: value.expiration,
|
|
1053
|
-
feePaymentAddress: value.fee_payment_address,
|
|
1054
|
-
feeDenom: value.fee_denom
|
|
1055
|
-
};
|
|
1056
|
-
}
|
|
1057
|
-
function smartRelayFeeQuoteToJSON(value) {
|
|
1058
|
-
return {
|
|
1059
|
-
fee_amount: value.feeAmount,
|
|
1060
|
-
relayer_address: value.relayerAddress,
|
|
1061
|
-
expiration: value.expiration,
|
|
1062
|
-
fee_payment_address: value.feePaymentAddress,
|
|
1063
|
-
fee_denom: value.feeDenom
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
function cctpTransferFromJSON(value) {
|
|
1067
|
-
return {
|
|
1068
|
-
fromChainID: value.from_chain_id,
|
|
1069
|
-
toChainID: value.to_chain_id,
|
|
1070
|
-
burnToken: value.burn_token,
|
|
1071
|
-
bridgeID: value.bridge_id,
|
|
1072
|
-
denomIn: value.denom_in,
|
|
1073
|
-
denomOut: value.denom_out,
|
|
1074
|
-
smartRelay: value.smart_relay,
|
|
1075
|
-
smartRelayFeeQuote: smartRelayFeeQuoteFromJSON(value.smart_relay_fee_quote)
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
function cctpTransferToJSON(value) {
|
|
1079
|
-
return {
|
|
1080
|
-
from_chain_id: value.fromChainID,
|
|
1081
|
-
to_chain_id: value.toChainID,
|
|
1082
|
-
burn_token: value.burnToken,
|
|
1083
|
-
bridge_id: value.bridgeID,
|
|
1084
|
-
denom_in: value.denomIn,
|
|
1085
|
-
denom_out: value.denomOut,
|
|
1086
|
-
smart_relay: value.smartRelay,
|
|
1087
|
-
smart_relay_fee_quote: smartRelayFeeQuoteToJSON(value.smartRelayFeeQuote)
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
function hyperlaneTransferFromJSON(value) {
|
|
1091
|
-
return {
|
|
1092
|
-
fromChainID: value.from_chain_id,
|
|
1093
|
-
toChainID: value.to_chain_id,
|
|
1094
|
-
denomIn: value.denom_in,
|
|
1095
|
-
denomOut: value.denom_out,
|
|
1096
|
-
hyperlaneContractAddress: value.hyperlane_contract_address,
|
|
1097
|
-
feeAmount: value.fee_amount,
|
|
1098
|
-
usdFeeAmount: value.usd_fee_amount,
|
|
1099
|
-
feeAsset: assetFromJSON(value.fee_asset),
|
|
1100
|
-
bridgeID: value.bridge_id,
|
|
1101
|
-
smartRelay: value.smart_relay
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
function hyperlaneTransferToJSON(value) {
|
|
1105
|
-
return {
|
|
1106
|
-
from_chain_id: value.fromChainID,
|
|
1107
|
-
to_chain_id: value.toChainID,
|
|
1108
|
-
denom_in: value.denomIn,
|
|
1109
|
-
denom_out: value.denomOut,
|
|
1110
|
-
hyperlane_contract_address: value.hyperlaneContractAddress,
|
|
1111
|
-
fee_amount: value.feeAmount,
|
|
1112
|
-
usd_fee_amount: value.usdFeeAmount,
|
|
1113
|
-
fee_asset: assetToJSON(value.feeAsset),
|
|
1114
|
-
bridge_id: value.bridgeID,
|
|
1115
|
-
smart_relay: value.smartRelay
|
|
1116
|
-
};
|
|
1117
|
-
}
|
|
1118
|
-
function opInitTransferFromJSON(value) {
|
|
1119
|
-
return {
|
|
1120
|
-
fromChainID: value.from_chain_id,
|
|
1121
|
-
toChainID: value.to_chain_id,
|
|
1122
|
-
denomIn: value.denom_in,
|
|
1123
|
-
denomOut: value.denom_out,
|
|
1124
|
-
opInitBridgeID: value.op_init_bridge_id,
|
|
1125
|
-
bridgeID: value.bridge_id,
|
|
1126
|
-
smartRelay: value.smart_relay
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
function opInitTransferToJSON(value) {
|
|
1130
|
-
return {
|
|
1131
|
-
from_chain_id: value.fromChainID,
|
|
1132
|
-
to_chain_id: value.toChainID,
|
|
1133
|
-
denom_in: value.denomIn,
|
|
1134
|
-
denom_out: value.denomOut,
|
|
1135
|
-
op_init_bridge_id: value.opInitBridgeID,
|
|
1136
|
-
bridge_id: value.bridgeID,
|
|
1137
|
-
smart_relay: value.smartRelay
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
function erc20ApprovalFromJSON(erc20ApprovalJSON) {
|
|
1141
|
-
return {
|
|
1142
|
-
tokenContract: erc20ApprovalJSON.token_contract,
|
|
1143
|
-
spender: erc20ApprovalJSON.spender,
|
|
1144
|
-
amount: erc20ApprovalJSON.amount
|
|
1145
|
-
};
|
|
1146
|
-
}
|
|
1147
|
-
function erc20ApprovalToJSON(erc20Approval) {
|
|
1148
|
-
return {
|
|
1149
|
-
token_contract: erc20Approval.tokenContract,
|
|
1150
|
-
spender: erc20Approval.spender,
|
|
1151
|
-
amount: erc20Approval.amount
|
|
1152
|
-
};
|
|
1153
|
-
}
|
|
1154
|
-
function svmTxFromJSON(svmTxJSON) {
|
|
1155
|
-
return {
|
|
1156
|
-
chainID: svmTxJSON.chain_id,
|
|
1157
|
-
tx: svmTxJSON.tx,
|
|
1158
|
-
signerAddress: svmTxJSON.signer_address
|
|
1159
|
-
};
|
|
1160
|
-
}
|
|
1161
|
-
function svmTxToJSON(svmTx) {
|
|
1162
|
-
return {
|
|
1163
|
-
chain_id: svmTx.chainID,
|
|
1164
|
-
tx: svmTx.tx,
|
|
1165
|
-
signer_address: svmTx.signerAddress
|
|
1166
|
-
};
|
|
1167
|
-
}
|
|
1168
|
-
function evmTxFromJSON(evmTxJSON) {
|
|
1169
|
-
return {
|
|
1170
|
-
chainID: evmTxJSON.chain_id,
|
|
1171
|
-
to: evmTxJSON.to,
|
|
1172
|
-
value: evmTxJSON.value,
|
|
1173
|
-
data: evmTxJSON.data,
|
|
1174
|
-
requiredERC20Approvals: evmTxJSON.required_erc20_approvals.map(
|
|
1175
|
-
erc20ApprovalFromJSON
|
|
1176
|
-
),
|
|
1177
|
-
signerAddress: evmTxJSON.signer_address
|
|
1178
|
-
};
|
|
1179
|
-
}
|
|
1180
|
-
function evmTxToJSON(evmTx) {
|
|
1181
|
-
return {
|
|
1182
|
-
chain_id: evmTx.chainID,
|
|
1183
|
-
to: evmTx.to,
|
|
1184
|
-
value: evmTx.value,
|
|
1185
|
-
data: evmTx.data,
|
|
1186
|
-
required_erc20_approvals: evmTx.requiredERC20Approvals.map(erc20ApprovalToJSON),
|
|
1187
|
-
signer_address: evmTx.signerAddress
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
function cosmosTxFromJSON(cosmosTxJSON) {
|
|
1191
|
-
return {
|
|
1192
|
-
chainID: cosmosTxJSON.chain_id,
|
|
1193
|
-
path: cosmosTxJSON.path,
|
|
1194
|
-
msgs: cosmosTxJSON.msgs.map(cosmosMsgFromJSON),
|
|
1195
|
-
signerAddress: cosmosTxJSON.signer_address
|
|
1196
|
-
};
|
|
1197
|
-
}
|
|
1198
|
-
function cosmosTxToJSON(cosmosTx) {
|
|
1199
|
-
return {
|
|
1200
|
-
chain_id: cosmosTx.chainID,
|
|
1201
|
-
path: cosmosTx.path,
|
|
1202
|
-
msgs: cosmosTx.msgs.map(cosmosMsgToJSON),
|
|
1203
|
-
signer_address: cosmosTx.signerAddress
|
|
1204
|
-
};
|
|
1205
|
-
}
|
|
1206
|
-
function txFromJSON(txJSON) {
|
|
1207
|
-
if ("cosmos_tx" in txJSON) {
|
|
1208
|
-
return {
|
|
1209
|
-
cosmosTx: cosmosTxFromJSON(txJSON.cosmos_tx),
|
|
1210
|
-
operationsIndices: txJSON.operations_indices
|
|
1211
|
-
};
|
|
1212
|
-
}
|
|
1213
|
-
if ("svm_tx" in txJSON) {
|
|
1214
|
-
return {
|
|
1215
|
-
svmTx: svmTxFromJSON(txJSON.svm_tx),
|
|
1216
|
-
operationsIndices: txJSON.operations_indices
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
return {
|
|
1220
|
-
evmTx: evmTxFromJSON(txJSON.evm_tx),
|
|
1221
|
-
operationsIndices: txJSON.operations_indices
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
function txToJSON(tx) {
|
|
1225
|
-
if ("cosmosTx" in tx) {
|
|
1226
|
-
return {
|
|
1227
|
-
cosmos_tx: cosmosTxToJSON(tx.cosmosTx),
|
|
1228
|
-
operations_indices: tx.operationsIndices
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
if ("svmTx" in tx) {
|
|
1232
|
-
return {
|
|
1233
|
-
svm_tx: svmTxToJSON(tx.svmTx),
|
|
1234
|
-
operations_indices: tx.operationsIndices
|
|
1235
|
-
};
|
|
1236
|
-
}
|
|
1237
|
-
return {
|
|
1238
|
-
evm_tx: evmTxToJSON(tx.evmTx),
|
|
1239
|
-
operations_indices: tx.operationsIndices
|
|
1240
|
-
};
|
|
1241
|
-
}
|
|
1242
|
-
function msgFromJSON(msgJSON) {
|
|
1243
|
-
if ("multi_chain_msg" in msgJSON) {
|
|
1244
|
-
return {
|
|
1245
|
-
multiChainMsg: multiChainMsgFromJSON(msgJSON.multi_chain_msg)
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
|
-
if ("svm_tx" in msgJSON) {
|
|
1249
|
-
return {
|
|
1250
|
-
svmTx: svmTxFromJSON(msgJSON.svm_tx)
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
return {
|
|
1254
|
-
evmTx: evmTxFromJSON(msgJSON.evm_tx)
|
|
1255
|
-
};
|
|
1256
|
-
}
|
|
1257
|
-
function msgToJSON(msg) {
|
|
1258
|
-
if ("multiChainMsg" in msg) {
|
|
1259
|
-
return {
|
|
1260
|
-
multi_chain_msg: multiChainMsgToJSON(msg.multiChainMsg)
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
if ("svmTx" in msg) {
|
|
1264
|
-
return {
|
|
1265
|
-
svm_tx: svmTxToJSON(msg.svmTx)
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
return {
|
|
1269
|
-
evm_tx: evmTxToJSON(msg.evmTx)
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
|
-
function messageResponseFromJSON(response) {
|
|
1273
|
-
var _a, _b;
|
|
1274
|
-
return {
|
|
1275
|
-
estimatedFees: (_a = response.estimated_fees) == null ? void 0 : _a.map(
|
|
1276
|
-
(fee) => estimatedFeeFromJSON(fee)
|
|
1277
|
-
),
|
|
1278
|
-
msgs: response.msgs.map((msg) => msgFromJSON(msg)),
|
|
1279
|
-
txs: (_b = response.txs) == null ? void 0 : _b.map((tx) => txFromJSON(tx)),
|
|
1280
|
-
warning: response.warning
|
|
1281
|
-
};
|
|
1282
|
-
}
|
|
1283
|
-
function sendTokenTransactionsFromJSON(sendTokenTransactionsJSON) {
|
|
1284
|
-
return {
|
|
1285
|
-
sendTx: sendTokenTransactionsJSON.send_tx ? chainTransactionFromJSON(sendTokenTransactionsJSON.send_tx) : null,
|
|
1286
|
-
confirmTx: sendTokenTransactionsJSON.confirm_tx ? chainTransactionFromJSON(sendTokenTransactionsJSON.confirm_tx) : null,
|
|
1287
|
-
executeTx: sendTokenTransactionsJSON.execute_tx ? chainTransactionFromJSON(sendTokenTransactionsJSON.execute_tx) : null,
|
|
1288
|
-
error: sendTokenTransactionsJSON.error
|
|
1289
|
-
};
|
|
1290
|
-
}
|
|
1291
|
-
function sendTokenTransactionsToJSON(sendTokenTransactions) {
|
|
1292
|
-
return {
|
|
1293
|
-
send_tx: sendTokenTransactions.sendTx ? chainTransactionToJSON(sendTokenTransactions.sendTx) : null,
|
|
1294
|
-
confirm_tx: sendTokenTransactions.confirmTx ? chainTransactionToJSON(sendTokenTransactions.confirmTx) : null,
|
|
1295
|
-
execute_tx: sendTokenTransactions.executeTx ? chainTransactionToJSON(sendTokenTransactions.executeTx) : null,
|
|
1296
|
-
error: sendTokenTransactions.error
|
|
1297
|
-
};
|
|
1298
|
-
}
|
|
1299
|
-
function contractCallWithTokenTransactionsFromJSON(value) {
|
|
1300
|
-
return {
|
|
1301
|
-
sendTx: value.send_tx ? chainTransactionFromJSON(value.send_tx) : null,
|
|
1302
|
-
gasPaidTx: value.gas_paid_tx ? chainTransactionFromJSON(value.gas_paid_tx) : null,
|
|
1303
|
-
confirmTx: value.confirm_tx ? chainTransactionFromJSON(value.confirm_tx) : null,
|
|
1304
|
-
approveTx: value.approve_tx ? chainTransactionFromJSON(value.approve_tx) : null,
|
|
1305
|
-
executeTx: value.execute_tx ? chainTransactionFromJSON(value.execute_tx) : null,
|
|
1306
|
-
error: value.error
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
function contractCallWithTokenTransactionsToJSON(value) {
|
|
1310
|
-
return {
|
|
1311
|
-
send_tx: value.sendTx ? chainTransactionToJSON(value.sendTx) : null,
|
|
1312
|
-
gas_paid_tx: value.gasPaidTx ? chainTransactionToJSON(value.gasPaidTx) : null,
|
|
1313
|
-
confirm_tx: value.confirmTx ? chainTransactionToJSON(value.confirmTx) : null,
|
|
1314
|
-
approve_tx: value.approveTx ? chainTransactionToJSON(value.approveTx) : null,
|
|
1315
|
-
execute_tx: value.executeTx ? chainTransactionToJSON(value.executeTx) : null,
|
|
1316
|
-
error: value.error
|
|
1317
|
-
};
|
|
1318
|
-
}
|
|
1319
|
-
function axelarTransferTransactionsFromJSON(value) {
|
|
1320
|
-
if ("contract_call_with_token_txs" in value) {
|
|
1321
|
-
return {
|
|
1322
|
-
contractCallWithTokenTxs: contractCallWithTokenTransactionsFromJSON(
|
|
1323
|
-
value.contract_call_with_token_txs
|
|
1324
|
-
)
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
return {
|
|
1328
|
-
sendTokenTxs: sendTokenTransactionsFromJSON(value.send_token_txs)
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
function axelarTransferTransactionsToJSON(value) {
|
|
1332
|
-
if ("contractCallWithTokenTxs" in value) {
|
|
1333
|
-
return {
|
|
1334
|
-
contract_call_with_token_txs: contractCallWithTokenTransactionsToJSON(
|
|
1335
|
-
value.contractCallWithTokenTxs
|
|
1336
|
-
)
|
|
1337
|
-
};
|
|
1338
|
-
}
|
|
1339
|
-
return {
|
|
1340
|
-
send_token_txs: sendTokenTransactionsToJSON(value.sendTokenTxs)
|
|
1341
|
-
};
|
|
1342
|
-
}
|
|
1343
|
-
function axelarTransferInfoFromJSON(value) {
|
|
1344
|
-
return {
|
|
1345
|
-
fromChainID: value.from_chain_id,
|
|
1346
|
-
toChainID: value.to_chain_id,
|
|
1347
|
-
type: value.type,
|
|
1348
|
-
state: value.state,
|
|
1349
|
-
txs: value.txs && axelarTransferTransactionsFromJSON(value.txs),
|
|
1350
|
-
axelarScanLink: value.axelar_scan_link,
|
|
1351
|
-
srcChainID: value.src_chain_id,
|
|
1352
|
-
dstChainID: value.dst_chain_id
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
function axelarTransferInfoToJSON(value) {
|
|
1356
|
-
return {
|
|
1357
|
-
from_chain_id: value.fromChainID,
|
|
1358
|
-
to_chain_id: value.toChainID,
|
|
1359
|
-
type: value.type,
|
|
1360
|
-
state: value.state,
|
|
1361
|
-
txs: value.txs && axelarTransferTransactionsToJSON(value.txs),
|
|
1362
|
-
axelar_scan_link: value.axelarScanLink,
|
|
1363
|
-
src_chain_id: value.srcChainID,
|
|
1364
|
-
dst_chain_id: value.dstChainID
|
|
1365
|
-
};
|
|
1366
|
-
}
|
|
1367
|
-
function transferEventFromJSON(value) {
|
|
1368
|
-
if ("ibc_transfer" in value) {
|
|
1369
|
-
return {
|
|
1370
|
-
ibcTransfer: transferInfoFromJSON(value.ibc_transfer)
|
|
1371
|
-
};
|
|
1372
|
-
}
|
|
1373
|
-
if ("cctp_transfer" in value) {
|
|
1374
|
-
return {
|
|
1375
|
-
cctpTransfer: cctpTransferInfoFromJSON(value.cctp_transfer)
|
|
1376
|
-
};
|
|
1377
|
-
}
|
|
1378
|
-
if ("hyperlane_transfer" in value) {
|
|
1379
|
-
return {
|
|
1380
|
-
hyperlaneTransfer: hyperlaneTransferInfoFromJSON(
|
|
1381
|
-
value.hyperlane_transfer
|
|
1382
|
-
)
|
|
1383
|
-
};
|
|
1384
|
-
}
|
|
1385
|
-
if ("op_init_transfer" in value) {
|
|
1386
|
-
return {
|
|
1387
|
-
opInitTransfer: opInitTransferInfoFromJSON(value.op_init_transfer)
|
|
1388
|
-
};
|
|
1389
|
-
}
|
|
1390
|
-
return {
|
|
1391
|
-
axelarTransfer: axelarTransferInfoFromJSON(value.axelar_transfer)
|
|
1392
|
-
};
|
|
1393
|
-
}
|
|
1394
|
-
function transferEventToJSON(value) {
|
|
1395
|
-
if ("ibcTransfer" in value) {
|
|
1396
|
-
return {
|
|
1397
|
-
ibc_transfer: transferInfoToJSON(value.ibcTransfer)
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
if ("cctpTransfer" in value) {
|
|
1401
|
-
return {
|
|
1402
|
-
cctp_transfer: cctpTransferInfoToJSON(value.cctpTransfer)
|
|
1403
|
-
};
|
|
1404
|
-
}
|
|
1405
|
-
if ("hyperlaneTransfer" in value) {
|
|
1406
|
-
return {
|
|
1407
|
-
hyperlane_transfer: hyperlaneTransferInfoToJSON(value.hyperlaneTransfer)
|
|
1408
|
-
};
|
|
1409
|
-
}
|
|
1410
|
-
if ("opInitTransfer" in value) {
|
|
1411
|
-
return {
|
|
1412
|
-
op_init_transfer: opInitTransferInfoToJSON(value.opInitTransfer)
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
return {
|
|
1416
|
-
axelar_transfer: axelarTransferInfoToJSON(value.axelarTransfer)
|
|
1417
|
-
};
|
|
1418
|
-
}
|
|
1419
|
-
function transferStatusFromJSON(value) {
|
|
1420
|
-
return {
|
|
1421
|
-
transferSequence: value.transfer_sequence.map(transferEventFromJSON),
|
|
1422
|
-
transferAssetRelease: value.transfer_asset_release && transferAssetReleaseFromJSON(value.transfer_asset_release),
|
|
1423
|
-
error: value.error,
|
|
1424
|
-
state: value.state,
|
|
1425
|
-
nextBlockingTransfer: value.next_blocking_transfer && nextBlockingTransferFromJSON(value.next_blocking_transfer)
|
|
1426
|
-
};
|
|
1427
|
-
}
|
|
1428
|
-
function transferStatusToJSON(value) {
|
|
1429
|
-
return {
|
|
1430
|
-
transfer_sequence: value.transferSequence.map(transferEventToJSON),
|
|
1431
|
-
transfer_asset_release: value.transferAssetRelease && transferAssetReleaseToJSON(value.transferAssetRelease),
|
|
1432
|
-
error: value.error,
|
|
1433
|
-
state: value.state,
|
|
1434
|
-
next_blocking_transfer: value.nextBlockingTransfer && nextBlockingTransferToJSON(value.nextBlockingTransfer)
|
|
1435
|
-
};
|
|
1436
|
-
}
|
|
1437
|
-
function denomWithChainIDFromJSON(value) {
|
|
1438
|
-
return {
|
|
1439
|
-
chainID: value.chain_id,
|
|
1440
|
-
denom: value.denom
|
|
1441
|
-
};
|
|
1442
|
-
}
|
|
1443
|
-
function denomWithChainIDToJSON(value) {
|
|
1444
|
-
return {
|
|
1445
|
-
chain_id: value.chainID,
|
|
1446
|
-
denom: value.denom
|
|
1447
|
-
};
|
|
1448
|
-
}
|
|
1449
|
-
function assetOrErrorFromJSON(value) {
|
|
1450
|
-
if ("asset" in value) {
|
|
1451
|
-
return { asset: assetFromJSON(value.asset) };
|
|
1452
|
-
}
|
|
1453
|
-
return { error: value.error };
|
|
1454
|
-
}
|
|
1455
|
-
function assetOrErrorToJSON(value) {
|
|
1456
|
-
if ("asset" in value) {
|
|
1457
|
-
return { asset: assetToJSON(value.asset) };
|
|
1458
|
-
}
|
|
1459
|
-
return { error: value.error };
|
|
1460
|
-
}
|
|
1461
|
-
function originAssetsRequestFromJSON(value) {
|
|
1462
|
-
return {
|
|
1463
|
-
assets: value.assets.map(denomWithChainIDFromJSON)
|
|
1464
|
-
};
|
|
1465
|
-
}
|
|
1466
|
-
function originAssetsRequestToJSON(value) {
|
|
1467
|
-
return {
|
|
1468
|
-
assets: value.assets.map(denomWithChainIDToJSON)
|
|
1469
|
-
};
|
|
1470
|
-
}
|
|
1471
|
-
function originAssetsResponseFromJSON(value) {
|
|
1472
|
-
return {
|
|
1473
|
-
originAssets: value.origin_assets.map(assetOrErrorFromJSON)
|
|
1474
|
-
};
|
|
1475
|
-
}
|
|
1476
|
-
function originAssetsResponseToJSON(value) {
|
|
1477
|
-
return {
|
|
1478
|
-
origin_assets: value.originAssets.map(assetOrErrorToJSON)
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
function assetBetweenChainsFromJSON(value) {
|
|
1482
|
-
return {
|
|
1483
|
-
assetOnSource: assetFromJSON(value.asset_on_source),
|
|
1484
|
-
assetOnDest: assetFromJSON(value.asset_on_dest),
|
|
1485
|
-
txsRequired: value.txs_required,
|
|
1486
|
-
bridges: value.bridges
|
|
1487
|
-
};
|
|
1488
|
-
}
|
|
1489
|
-
function assetBetweenChainsToJSON(value) {
|
|
1490
|
-
return {
|
|
1491
|
-
asset_on_source: assetToJSON(value.assetOnSource),
|
|
1492
|
-
asset_on_dest: assetToJSON(value.assetOnDest),
|
|
1493
|
-
txs_required: value.txsRequired,
|
|
1494
|
-
bridges: value.bridges
|
|
1495
|
-
};
|
|
1496
|
-
}
|
|
1497
|
-
function assetsBetweenChainsRequestFromJSON(value) {
|
|
1498
|
-
return {
|
|
1499
|
-
sourceChainID: value.source_chain_id,
|
|
1500
|
-
destChainID: value.dest_chain_id,
|
|
1501
|
-
includeNoMetadataAssets: value.include_no_metadata_assets,
|
|
1502
|
-
includeCW20Assets: value.include_cw20_assets,
|
|
1503
|
-
includeEvmAssets: value.include_evm_assets,
|
|
1504
|
-
allowMultiTx: value.allow_multi_tx
|
|
1505
|
-
};
|
|
1506
|
-
}
|
|
1507
|
-
function assetsBetweenChainsRequestToJSON(value) {
|
|
1508
|
-
return {
|
|
1509
|
-
source_chain_id: value.sourceChainID,
|
|
1510
|
-
dest_chain_id: value.destChainID,
|
|
1511
|
-
include_no_metadata_assets: value.includeNoMetadataAssets,
|
|
1512
|
-
include_cw20_assets: value.includeCW20Assets,
|
|
1513
|
-
include_evm_assets: value.includeEvmAssets,
|
|
1514
|
-
allow_multi_tx: value.allowMultiTx
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
function assetsBetweenChainsResponseFromJSON(value) {
|
|
1518
|
-
return {
|
|
1519
|
-
assetsBetweenChains: value.assets_between_chains.map(
|
|
1520
|
-
assetBetweenChainsFromJSON
|
|
1521
|
-
)
|
|
1522
|
-
};
|
|
1523
|
-
}
|
|
1524
|
-
function assetRecommendationRequestFromJSON(value) {
|
|
1525
|
-
return {
|
|
1526
|
-
sourceAssetDenom: value.source_asset_denom,
|
|
1527
|
-
sourceAssetChainID: value.source_asset_chain_id,
|
|
1528
|
-
destChainID: value.dest_chain_id,
|
|
1529
|
-
reason: value.reason
|
|
1530
|
-
};
|
|
1531
|
-
}
|
|
1532
|
-
function assetRecommendationRequestToJSON(value) {
|
|
1533
|
-
return {
|
|
1534
|
-
source_asset_denom: value.sourceAssetDenom,
|
|
1535
|
-
source_asset_chain_id: value.sourceAssetChainID,
|
|
1536
|
-
dest_chain_id: value.destChainID,
|
|
1537
|
-
reason: value.reason
|
|
1538
|
-
};
|
|
1539
|
-
}
|
|
1540
|
-
function bridgesResponseFromJSON(value) {
|
|
1541
|
-
return {
|
|
1542
|
-
bridges: value.bridges.map(bridgeFromJSON)
|
|
1543
|
-
};
|
|
1544
|
-
}
|
|
1545
|
-
function bridgesResponseToJSON(value) {
|
|
1546
|
-
return {
|
|
1547
|
-
bridges: value.bridges.map(bridgeToJSON)
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
function bridgeFromJSON(value) {
|
|
1551
|
-
return {
|
|
1552
|
-
id: value.id,
|
|
1553
|
-
name: value.name,
|
|
1554
|
-
logoURI: value.logo_uri
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
|
-
function bridgeToJSON(value) {
|
|
1558
|
-
return {
|
|
1559
|
-
id: value.id,
|
|
1560
|
-
name: value.name,
|
|
1561
|
-
logo_uri: value.logoURI
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
function cctpTransferTransactionsFromJSON(value) {
|
|
1565
|
-
return {
|
|
1566
|
-
sendTx: value.send_tx ? chainTransactionFromJSON(value.send_tx) : null,
|
|
1567
|
-
receiveTx: value.receive_tx ? chainTransactionFromJSON(value.receive_tx) : null
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
function cctpTransferTransactionsToJSON(value) {
|
|
1571
|
-
return {
|
|
1572
|
-
send_tx: value.sendTx ? chainTransactionToJSON(value.sendTx) : null,
|
|
1573
|
-
receive_tx: value.receiveTx ? chainTransactionToJSON(value.receiveTx) : null
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
function cctpTransferInfoFromJSON(value) {
|
|
1577
|
-
return {
|
|
1578
|
-
fromChainID: value.from_chain_id,
|
|
1579
|
-
toChainID: value.to_chain_id,
|
|
1580
|
-
state: value.state,
|
|
1581
|
-
txs: value.txs && cctpTransferTransactionsFromJSON(value.txs),
|
|
1582
|
-
srcChainID: value.src_chain_id,
|
|
1583
|
-
dstChainID: value.dst_chain_id
|
|
1584
|
-
};
|
|
1585
|
-
}
|
|
1586
|
-
function cctpTransferInfoToJSON(value) {
|
|
1587
|
-
return {
|
|
1588
|
-
from_chain_id: value.fromChainID,
|
|
1589
|
-
to_chain_id: value.toChainID,
|
|
1590
|
-
state: value.state,
|
|
1591
|
-
txs: value.txs && cctpTransferTransactionsToJSON(value.txs),
|
|
1592
|
-
src_chain_id: value.srcChainID,
|
|
1593
|
-
dst_chain_id: value.dstChainID
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
function hyperlaneTransferTransactionsFromJSON(value) {
|
|
1597
|
-
return {
|
|
1598
|
-
sendTx: value.send_tx ? chainTransactionFromJSON(value.send_tx) : null,
|
|
1599
|
-
receiveTx: value.receive_tx ? chainTransactionFromJSON(value.receive_tx) : null
|
|
1600
|
-
};
|
|
1601
|
-
}
|
|
1602
|
-
function hyperlaneTransferTransactionsToJSON(value) {
|
|
1603
|
-
return {
|
|
1604
|
-
send_tx: value.sendTx ? chainTransactionToJSON(value.sendTx) : null,
|
|
1605
|
-
receive_tx: value.receiveTx ? chainTransactionToJSON(value.receiveTx) : null
|
|
1606
|
-
};
|
|
1607
|
-
}
|
|
1608
|
-
function hyperlaneTransferInfoFromJSON(value) {
|
|
1609
|
-
return {
|
|
1610
|
-
fromChainID: value.from_chain_id,
|
|
1611
|
-
toChainID: value.to_chain_id,
|
|
1612
|
-
state: value.state,
|
|
1613
|
-
txs: value.txs && hyperlaneTransferTransactionsFromJSON(value.txs)
|
|
1614
|
-
};
|
|
1615
|
-
}
|
|
1616
|
-
function hyperlaneTransferInfoToJSON(value) {
|
|
1617
|
-
return {
|
|
1618
|
-
from_chain_id: value.fromChainID,
|
|
1619
|
-
to_chain_id: value.toChainID,
|
|
1620
|
-
state: value.state,
|
|
1621
|
-
txs: value.txs && hyperlaneTransferTransactionsToJSON(value.txs)
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
function opInitTransferTransactionsFromJSON(value) {
|
|
1625
|
-
return {
|
|
1626
|
-
sendTx: value.send_tx ? chainTransactionFromJSON(value.send_tx) : null,
|
|
1627
|
-
receiveTx: value.receive_tx ? chainTransactionFromJSON(value.receive_tx) : null
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
function opInitTransferTransactionsToJSON(value) {
|
|
1631
|
-
return {
|
|
1632
|
-
send_tx: value.sendTx ? chainTransactionToJSON(value.sendTx) : null,
|
|
1633
|
-
receive_tx: value.receiveTx ? chainTransactionToJSON(value.receiveTx) : null
|
|
1634
|
-
};
|
|
1635
|
-
}
|
|
1636
|
-
function opInitTransferInfoFromJSON(value) {
|
|
1637
|
-
return {
|
|
1638
|
-
fromChainID: value.from_chain_id,
|
|
1639
|
-
toChainID: value.to_chain_id,
|
|
1640
|
-
state: value.state,
|
|
1641
|
-
txs: value.txs && opInitTransferTransactionsFromJSON(value.txs)
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
function opInitTransferInfoToJSON(value) {
|
|
1645
|
-
return {
|
|
1646
|
-
from_chain_id: value.fromChainID,
|
|
1647
|
-
to_chain_id: value.toChainID,
|
|
1648
|
-
state: value.state,
|
|
1649
|
-
txs: value.txs && opInitTransferTransactionsToJSON(value.txs)
|
|
1650
|
-
};
|
|
1651
|
-
}
|
|
1652
|
-
function msgsDirectRequestFromJSON(msgDirectRequestJSON) {
|
|
1653
|
-
var _a;
|
|
1654
|
-
const baseRequest = {
|
|
1655
|
-
sourceAssetDenom: msgDirectRequestJSON.source_asset_denom,
|
|
1656
|
-
sourceAssetChainID: msgDirectRequestJSON.source_asset_chain_id,
|
|
1657
|
-
destAssetDenom: msgDirectRequestJSON.dest_asset_denom,
|
|
1658
|
-
destAssetChainID: msgDirectRequestJSON.dest_asset_chain_id,
|
|
1659
|
-
chainIdsToAddresses: msgDirectRequestJSON.chain_ids_to_addresses,
|
|
1660
|
-
slippageTolerancePercent: msgDirectRequestJSON.slippage_tolerance_percent,
|
|
1661
|
-
affiliates: (_a = msgDirectRequestJSON.affiliates) == null ? void 0 : _a.map(affiliateFromJSON),
|
|
1662
|
-
chainIDsToAffiliates: msgDirectRequestJSON.chain_ids_to_affiliates ? chainIDsToAffiliatesMapFromJSON(
|
|
1663
|
-
msgDirectRequestJSON.chain_ids_to_affiliates
|
|
1664
|
-
) : void 0,
|
|
1665
|
-
timeoutSeconds: msgDirectRequestJSON.timeout_seconds,
|
|
1666
|
-
postRouteHandler: msgDirectRequestJSON.post_route_handler && postHandlerFromJSON(msgDirectRequestJSON.post_route_handler),
|
|
1667
|
-
swapVenue: msgDirectRequestJSON.swap_venue && swapVenueFromJSON(msgDirectRequestJSON.swap_venue),
|
|
1668
|
-
swapVenues: msgDirectRequestJSON.swap_venues && msgDirectRequestJSON.swap_venues.map(swapVenueFromJSON),
|
|
1669
|
-
smartRelay: msgDirectRequestJSON.smart_relay,
|
|
1670
|
-
smartSwapOptions: msgDirectRequestJSON.smart_swap_options ? smartSwapOptionsFromJSON(msgDirectRequestJSON.smart_swap_options) : void 0,
|
|
1671
|
-
allowSwaps: msgDirectRequestJSON.allow_swaps,
|
|
1672
|
-
enableGasWarnings: msgDirectRequestJSON.enable_gas_warnings,
|
|
1673
|
-
allowMultiTx: msgDirectRequestJSON.allow_multi_tx,
|
|
1674
|
-
allowUnsafe: msgDirectRequestJSON.allow_unsafe,
|
|
1675
|
-
bridges: msgDirectRequestJSON.bridges,
|
|
1676
|
-
experimentalFeatures: msgDirectRequestJSON.experimental_features
|
|
1677
|
-
};
|
|
1678
|
-
if (msgDirectRequestJSON.amount_in !== void 0) {
|
|
1679
|
-
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1680
|
-
amountIn: msgDirectRequestJSON.amount_in
|
|
1681
|
-
});
|
|
1682
|
-
} else {
|
|
1683
|
-
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1684
|
-
amountOut: msgDirectRequestJSON.amount_out
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
}
|
|
1688
|
-
function msgsDirectRequestToJSON(msgDirectRequest) {
|
|
1689
|
-
var _a;
|
|
1690
|
-
const baseRequest = {
|
|
1691
|
-
source_asset_denom: msgDirectRequest.sourceAssetDenom,
|
|
1692
|
-
source_asset_chain_id: msgDirectRequest.sourceAssetChainID,
|
|
1693
|
-
dest_asset_denom: msgDirectRequest.destAssetDenom,
|
|
1694
|
-
dest_asset_chain_id: msgDirectRequest.destAssetChainID,
|
|
1695
|
-
chain_ids_to_addresses: msgDirectRequest.chainIdsToAddresses,
|
|
1696
|
-
slippage_tolerance_percent: msgDirectRequest.slippageTolerancePercent,
|
|
1697
|
-
affiliates: (_a = msgDirectRequest.affiliates) == null ? void 0 : _a.map(affiliateToJSON),
|
|
1698
|
-
chain_ids_to_affiliates: msgDirectRequest.chainIDsToAffiliates ? chainIDsToAffiliatesMapToJSON(msgDirectRequest.chainIDsToAffiliates) : void 0,
|
|
1699
|
-
allow_multi_tx: msgDirectRequest.allowMultiTx,
|
|
1700
|
-
allow_unsafe: msgDirectRequest.allowUnsafe,
|
|
1701
|
-
bridges: msgDirectRequest.bridges,
|
|
1702
|
-
timeout_seconds: msgDirectRequest.timeoutSeconds,
|
|
1703
|
-
experimental_features: msgDirectRequest.experimentalFeatures,
|
|
1704
|
-
swap_venue: msgDirectRequest.swapVenue && swapVenueToJSON(msgDirectRequest.swapVenue),
|
|
1705
|
-
swap_venues: msgDirectRequest.swapVenues && msgDirectRequest.swapVenues.map(swapVenueToJSON),
|
|
1706
|
-
post_route_handler: msgDirectRequest.postRouteHandler && postHandlerToJSON(msgDirectRequest.postRouteHandler),
|
|
1707
|
-
smart_relay: msgDirectRequest.smartRelay,
|
|
1708
|
-
smart_swap_options: msgDirectRequest.smartSwapOptions ? smartSwapOptionsToJSON(msgDirectRequest.smartSwapOptions) : void 0,
|
|
1709
|
-
allow_swaps: msgDirectRequest.allowSwaps,
|
|
1710
|
-
enable_gas_warnings: msgDirectRequest.enableGasWarnings
|
|
1711
|
-
};
|
|
1712
|
-
if (msgDirectRequest.amountIn !== void 0) {
|
|
1713
|
-
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1714
|
-
amount_in: msgDirectRequest.amountIn
|
|
1715
|
-
});
|
|
1716
|
-
} else {
|
|
1717
|
-
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1718
|
-
amount_out: msgDirectRequest.amountOut
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
function smartSwapOptionsFromJSON(smartSwapOptionsJSON) {
|
|
1723
|
-
return {
|
|
1724
|
-
splitRoutes: Boolean(smartSwapOptionsJSON.split_routes),
|
|
1725
|
-
evmSwaps: Boolean(smartSwapOptionsJSON.evm_swaps)
|
|
1726
|
-
};
|
|
1727
|
-
}
|
|
1728
|
-
function smartSwapOptionsToJSON(smartSwapOptions) {
|
|
1729
|
-
return {
|
|
1730
|
-
split_routes: Boolean(smartSwapOptions.splitRoutes),
|
|
1731
|
-
evm_swaps: Boolean(smartSwapOptions.evmSwaps)
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
|
-
function chainIDsToAffiliatesMapFromJSON(value) {
|
|
1735
|
-
const result = {};
|
|
1736
|
-
for (const key of Object.keys(value)) {
|
|
1737
|
-
result[key] = chainAffiliatesFromJSON(value[key]);
|
|
1738
|
-
}
|
|
1739
|
-
return result;
|
|
1740
|
-
}
|
|
1741
|
-
function chainIDsToAffiliatesMapToJSON(value) {
|
|
1742
|
-
const result = {};
|
|
1743
|
-
for (const key of Object.keys(value)) {
|
|
1744
|
-
result[key] = chainAffiliatesToJSON(value[key]);
|
|
1745
|
-
}
|
|
1746
|
-
return result;
|
|
1747
|
-
}
|
|
1748
|
-
function chainAffiliatesFromJSON(value) {
|
|
1749
|
-
return {
|
|
1750
|
-
affiliates: value.affiliates.map(affiliateFromJSON)
|
|
1751
|
-
};
|
|
1752
|
-
}
|
|
1753
|
-
function chainAffiliatesToJSON(value) {
|
|
1754
|
-
return {
|
|
1755
|
-
affiliates: value.affiliates.map(affiliateToJSON)
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
|
-
function balanceRequestChainEntryFromJSON(value) {
|
|
1759
|
-
return value;
|
|
1760
|
-
}
|
|
1761
|
-
function balanceRequestChainEntryToJSON(value) {
|
|
1762
|
-
return value;
|
|
1763
|
-
}
|
|
1764
|
-
function balanceRequestFromJSON(value) {
|
|
1765
|
-
return value;
|
|
1766
|
-
}
|
|
1767
|
-
function balanceRequestToJSON(value) {
|
|
1768
|
-
return value;
|
|
1769
|
-
}
|
|
1770
|
-
function balanceResponseDenomEntryFromJSON(value) {
|
|
1771
|
-
return {
|
|
1772
|
-
amount: value.amount,
|
|
1773
|
-
decimals: value.decimals,
|
|
1774
|
-
formattedAmount: value.formatted_amount,
|
|
1775
|
-
price: value.price,
|
|
1776
|
-
valueUSD: value.value_usd,
|
|
1777
|
-
error: value.error
|
|
1778
|
-
};
|
|
1779
|
-
}
|
|
1780
|
-
function balanceResponseDenomEntryToJSON(value) {
|
|
1781
|
-
return {
|
|
1782
|
-
amount: value.amount,
|
|
1783
|
-
decimals: value.decimals,
|
|
1784
|
-
formatted_amount: value.formattedAmount,
|
|
1785
|
-
price: value.price,
|
|
1786
|
-
value_usd: value.valueUSD,
|
|
1787
|
-
error: value.error
|
|
1788
|
-
};
|
|
1789
|
-
}
|
|
1790
|
-
function balanceResponseChainEntryFromJSON(value) {
|
|
1791
|
-
const result = {
|
|
1792
|
-
denoms: {}
|
|
1793
|
-
};
|
|
1794
|
-
for (const key of Object.keys(value.denoms)) {
|
|
1795
|
-
const entry = value.denoms[key];
|
|
1796
|
-
if (entry === void 0) {
|
|
1797
|
-
continue;
|
|
1798
|
-
}
|
|
1799
|
-
result.denoms[key] = balanceResponseDenomEntryFromJSON(entry);
|
|
1800
|
-
}
|
|
1801
|
-
return result;
|
|
1802
|
-
}
|
|
1803
|
-
function balanceResponseChainEntryToJSON(value) {
|
|
1804
|
-
const result = {
|
|
1805
|
-
denoms: {}
|
|
1806
|
-
};
|
|
1807
|
-
for (const key of Object.keys(value.denoms)) {
|
|
1808
|
-
const entry = value.denoms[key];
|
|
1809
|
-
if (entry === void 0) {
|
|
1810
|
-
continue;
|
|
1811
|
-
}
|
|
1812
|
-
result.denoms[key] = balanceResponseDenomEntryToJSON(entry);
|
|
1813
|
-
}
|
|
1814
|
-
return result;
|
|
1815
|
-
}
|
|
1816
|
-
function balanceResponseFromJSON(value) {
|
|
1817
|
-
const result = {
|
|
1818
|
-
chains: {}
|
|
1819
|
-
};
|
|
1820
|
-
for (const key of Object.keys(value.chains)) {
|
|
1821
|
-
const entry = value.chains[key];
|
|
1822
|
-
if (entry === void 0) {
|
|
1823
|
-
continue;
|
|
1824
|
-
}
|
|
1825
|
-
result.chains[key] = balanceResponseChainEntryFromJSON(entry);
|
|
1826
|
-
}
|
|
1827
|
-
return result;
|
|
1828
|
-
}
|
|
1829
|
-
function balanceResponseToJSON(value) {
|
|
1830
|
-
const result = {
|
|
1831
|
-
chains: {}
|
|
1832
|
-
};
|
|
1833
|
-
for (const key of Object.keys(value.chains)) {
|
|
1834
|
-
const entry = value.chains[key];
|
|
1835
|
-
if (entry === void 0) {
|
|
1836
|
-
continue;
|
|
1837
|
-
}
|
|
1838
|
-
result.chains[key] = balanceResponseChainEntryToJSON(entry);
|
|
1839
|
-
}
|
|
1840
|
-
return result;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
exports.affiliateFromJSON = affiliateFromJSON;
|
|
1844
|
-
exports.affiliateToJSON = affiliateToJSON;
|
|
1845
|
-
exports.assetBetweenChainsFromJSON = assetBetweenChainsFromJSON;
|
|
1846
|
-
exports.assetBetweenChainsToJSON = assetBetweenChainsToJSON;
|
|
1847
|
-
exports.assetFromJSON = assetFromJSON;
|
|
1848
|
-
exports.assetOrErrorFromJSON = assetOrErrorFromJSON;
|
|
1849
|
-
exports.assetOrErrorToJSON = assetOrErrorToJSON;
|
|
1850
|
-
exports.assetRecommendationFromJSON = assetRecommendationFromJSON;
|
|
1851
|
-
exports.assetRecommendationRequestFromJSON = assetRecommendationRequestFromJSON;
|
|
1852
|
-
exports.assetRecommendationRequestToJSON = assetRecommendationRequestToJSON;
|
|
1853
|
-
exports.assetRecommendationToJSON = assetRecommendationToJSON;
|
|
1854
|
-
exports.assetToJSON = assetToJSON;
|
|
1855
|
-
exports.assetsBetweenChainsRequestFromJSON = assetsBetweenChainsRequestFromJSON;
|
|
1856
|
-
exports.assetsBetweenChainsRequestToJSON = assetsBetweenChainsRequestToJSON;
|
|
1857
|
-
exports.assetsBetweenChainsResponseFromJSON = assetsBetweenChainsResponseFromJSON;
|
|
1858
|
-
exports.assetsFromSourceRequestFromJSON = assetsFromSourceRequestFromJSON;
|
|
1859
|
-
exports.assetsFromSourceRequestToJSON = assetsFromSourceRequestToJSON;
|
|
1860
|
-
exports.assetsRequestFromJSON = assetsRequestFromJSON;
|
|
1861
|
-
exports.assetsRequestToJSON = assetsRequestToJSON;
|
|
1862
|
-
exports.axelarTransferFromJSON = axelarTransferFromJSON;
|
|
1863
|
-
exports.axelarTransferInfoFromJSON = axelarTransferInfoFromJSON;
|
|
1864
|
-
exports.axelarTransferInfoToJSON = axelarTransferInfoToJSON;
|
|
1865
|
-
exports.axelarTransferToJSON = axelarTransferToJSON;
|
|
1866
|
-
exports.axelarTransferTransactionsFromJSON = axelarTransferTransactionsFromJSON;
|
|
1867
|
-
exports.axelarTransferTransactionsToJSON = axelarTransferTransactionsToJSON;
|
|
1868
|
-
exports.balanceRequestChainEntryFromJSON = balanceRequestChainEntryFromJSON;
|
|
1869
|
-
exports.balanceRequestChainEntryToJSON = balanceRequestChainEntryToJSON;
|
|
1870
|
-
exports.balanceRequestFromJSON = balanceRequestFromJSON;
|
|
1871
|
-
exports.balanceRequestToJSON = balanceRequestToJSON;
|
|
1872
|
-
exports.balanceResponseChainEntryFromJSON = balanceResponseChainEntryFromJSON;
|
|
1873
|
-
exports.balanceResponseChainEntryToJSON = balanceResponseChainEntryToJSON;
|
|
1874
|
-
exports.balanceResponseDenomEntryFromJSON = balanceResponseDenomEntryFromJSON;
|
|
1875
|
-
exports.balanceResponseDenomEntryToJSON = balanceResponseDenomEntryToJSON;
|
|
1876
|
-
exports.balanceResponseFromJSON = balanceResponseFromJSON;
|
|
1877
|
-
exports.balanceResponseToJSON = balanceResponseToJSON;
|
|
1878
|
-
exports.bankSendFromJSON = bankSendFromJSON;
|
|
1879
|
-
exports.bankSendToJSON = bankSendToJSON;
|
|
1880
|
-
exports.bridgeFromJSON = bridgeFromJSON;
|
|
1881
|
-
exports.bridgeToJSON = bridgeToJSON;
|
|
1882
|
-
exports.bridgesResponseFromJSON = bridgesResponseFromJSON;
|
|
1883
|
-
exports.bridgesResponseToJSON = bridgesResponseToJSON;
|
|
1884
|
-
exports.cctpTransferFromJSON = cctpTransferFromJSON;
|
|
1885
|
-
exports.cctpTransferInfoFromJSON = cctpTransferInfoFromJSON;
|
|
1886
|
-
exports.cctpTransferInfoToJSON = cctpTransferInfoToJSON;
|
|
1887
|
-
exports.cctpTransferToJSON = cctpTransferToJSON;
|
|
1888
|
-
exports.cctpTransferTransactionsFromJSON = cctpTransferTransactionsFromJSON;
|
|
1889
|
-
exports.cctpTransferTransactionsToJSON = cctpTransferTransactionsToJSON;
|
|
1890
|
-
exports.chainAffiliatesFromJSON = chainAffiliatesFromJSON;
|
|
1891
|
-
exports.chainAffiliatesToJSON = chainAffiliatesToJSON;
|
|
1892
|
-
exports.chainFromJSON = chainFromJSON;
|
|
1893
|
-
exports.chainIDsToAffiliatesMapFromJSON = chainIDsToAffiliatesMapFromJSON;
|
|
1894
|
-
exports.chainIDsToAffiliatesMapToJSON = chainIDsToAffiliatesMapToJSON;
|
|
1895
|
-
exports.chainToJSON = chainToJSON;
|
|
1896
|
-
exports.chainTransactionFromJSON = chainTransactionFromJSON;
|
|
1897
|
-
exports.chainTransactionToJSON = chainTransactionToJSON;
|
|
1898
|
-
exports.contractCallWithTokenTransactionsFromJSON = contractCallWithTokenTransactionsFromJSON;
|
|
1899
|
-
exports.contractCallWithTokenTransactionsToJSON = contractCallWithTokenTransactionsToJSON;
|
|
1900
|
-
exports.cosmWasmContractMsgFromJSON = cosmWasmContractMsgFromJSON;
|
|
1901
|
-
exports.cosmWasmContractMsgToJSON = cosmWasmContractMsgToJSON;
|
|
1902
|
-
exports.cosmosMsgFromJSON = cosmosMsgFromJSON;
|
|
1903
|
-
exports.cosmosMsgToJSON = cosmosMsgToJSON;
|
|
1904
|
-
exports.cosmosTxFromJSON = cosmosTxFromJSON;
|
|
1905
|
-
exports.cosmosTxToJSON = cosmosTxToJSON;
|
|
1906
|
-
exports.denomWithChainIDFromJSON = denomWithChainIDFromJSON;
|
|
1907
|
-
exports.denomWithChainIDToJSON = denomWithChainIDToJSON;
|
|
1908
|
-
exports.erc20ApprovalFromJSON = erc20ApprovalFromJSON;
|
|
1909
|
-
exports.erc20ApprovalToJSON = erc20ApprovalToJSON;
|
|
1910
|
-
exports.estimatedFeeFromJSON = estimatedFeeFromJSON;
|
|
1911
|
-
exports.estimatedFeeToJSON = estimatedFeeToJSON;
|
|
1912
|
-
exports.evmSwapFromJSON = evmSwapFromJSON;
|
|
1913
|
-
exports.evmSwapToJSON = evmSwapToJSON;
|
|
1914
|
-
exports.evmTxFromJSON = evmTxFromJSON;
|
|
1915
|
-
exports.evmTxToJSON = evmTxToJSON;
|
|
1916
|
-
exports.feeAssetFromJSON = feeAssetFromJSON;
|
|
1917
|
-
exports.feeAssetToJSON = feeAssetToJSON;
|
|
1918
|
-
exports.hyperlaneTransferFromJSON = hyperlaneTransferFromJSON;
|
|
1919
|
-
exports.hyperlaneTransferInfoFromJSON = hyperlaneTransferInfoFromJSON;
|
|
1920
|
-
exports.hyperlaneTransferInfoToJSON = hyperlaneTransferInfoToJSON;
|
|
1921
|
-
exports.hyperlaneTransferToJSON = hyperlaneTransferToJSON;
|
|
1922
|
-
exports.hyperlaneTransferTransactionsFromJSON = hyperlaneTransferTransactionsFromJSON;
|
|
1923
|
-
exports.hyperlaneTransferTransactionsToJSON = hyperlaneTransferTransactionsToJSON;
|
|
1924
|
-
exports.ibcAddressFromJSON = ibcAddressFromJSON;
|
|
1925
|
-
exports.ibcAddressToJSON = ibcAddressToJSON;
|
|
1926
|
-
exports.ibcCapabilitiesFromJSON = ibcCapabilitiesFromJSON;
|
|
1927
|
-
exports.ibcCapabilitiesToJSON = ibcCapabilitiesToJSON;
|
|
1928
|
-
exports.messageResponseFromJSON = messageResponseFromJSON;
|
|
1929
|
-
exports.msgFromJSON = msgFromJSON;
|
|
1930
|
-
exports.msgToJSON = msgToJSON;
|
|
1931
|
-
exports.msgsDirectRequestFromJSON = msgsDirectRequestFromJSON;
|
|
1932
|
-
exports.msgsDirectRequestToJSON = msgsDirectRequestToJSON;
|
|
1933
|
-
exports.msgsRequestFromJSON = msgsRequestFromJSON;
|
|
1934
|
-
exports.msgsRequestToJSON = msgsRequestToJSON;
|
|
1935
|
-
exports.multiChainMsgFromJSON = multiChainMsgFromJSON;
|
|
1936
|
-
exports.multiChainMsgToJSON = multiChainMsgToJSON;
|
|
1937
|
-
exports.nextBlockingTransferFromJSON = nextBlockingTransferFromJSON;
|
|
1938
|
-
exports.nextBlockingTransferToJSON = nextBlockingTransferToJSON;
|
|
1939
|
-
exports.opInitTransferFromJSON = opInitTransferFromJSON;
|
|
1940
|
-
exports.opInitTransferInfoFromJSON = opInitTransferInfoFromJSON;
|
|
1941
|
-
exports.opInitTransferInfoToJSON = opInitTransferInfoToJSON;
|
|
1942
|
-
exports.opInitTransferToJSON = opInitTransferToJSON;
|
|
1943
|
-
exports.opInitTransferTransactionsFromJSON = opInitTransferTransactionsFromJSON;
|
|
1944
|
-
exports.opInitTransferTransactionsToJSON = opInitTransferTransactionsToJSON;
|
|
1945
|
-
exports.operationFromJSON = operationFromJSON;
|
|
1946
|
-
exports.operationToJSON = operationToJSON;
|
|
1947
|
-
exports.originAssetsRequestFromJSON = originAssetsRequestFromJSON;
|
|
1948
|
-
exports.originAssetsRequestToJSON = originAssetsRequestToJSON;
|
|
1949
|
-
exports.originAssetsResponseFromJSON = originAssetsResponseFromJSON;
|
|
1950
|
-
exports.originAssetsResponseToJSON = originAssetsResponseToJSON;
|
|
1951
|
-
exports.packetFromJSON = packetFromJSON;
|
|
1952
|
-
exports.packetToJSON = packetToJSON;
|
|
1953
|
-
exports.postHandlerFromJSON = postHandlerFromJSON;
|
|
1954
|
-
exports.postHandlerToJSON = postHandlerToJSON;
|
|
1955
|
-
exports.recommendAssetsRequestFromJSON = recommendAssetsRequestFromJSON;
|
|
1956
|
-
exports.recommendAssetsRequestToJSON = recommendAssetsRequestToJSON;
|
|
1957
|
-
exports.recommendAssetsResponseFromJSON = recommendAssetsResponseFromJSON;
|
|
1958
|
-
exports.recommendAssetsResponseToJSON = recommendAssetsResponseToJSON;
|
|
1959
|
-
exports.recommendationEntryFromJSON = recommendationEntryFromJSON;
|
|
1960
|
-
exports.recommendationEntryToJSON = recommendationEntryToJSON;
|
|
1961
|
-
exports.routeRequestFromJSON = routeRequestFromJSON;
|
|
1962
|
-
exports.routeRequestToJSON = routeRequestToJSON;
|
|
1963
|
-
exports.routeResponseFromJSON = routeResponseFromJSON;
|
|
1964
|
-
exports.routeResponseToJSON = routeResponseToJSON;
|
|
1965
|
-
exports.sendTokenTransactionsFromJSON = sendTokenTransactionsFromJSON;
|
|
1966
|
-
exports.sendTokenTransactionsToJSON = sendTokenTransactionsToJSON;
|
|
1967
|
-
exports.smartRelayFeeQuoteFromJSON = smartRelayFeeQuoteFromJSON;
|
|
1968
|
-
exports.smartRelayFeeQuoteToJSON = smartRelayFeeQuoteToJSON;
|
|
1969
|
-
exports.smartSwapExactCoinInFromJSON = smartSwapExactCoinInFromJSON;
|
|
1970
|
-
exports.smartSwapExactCoinInToJSON = smartSwapExactCoinInToJSON;
|
|
1971
|
-
exports.smartSwapOptionsFromJSON = smartSwapOptionsFromJSON;
|
|
1972
|
-
exports.smartSwapOptionsToJSON = smartSwapOptionsToJSON;
|
|
1973
|
-
exports.submitTxRequestFromJSON = submitTxRequestFromJSON;
|
|
1974
|
-
exports.submitTxRequestToJSON = submitTxRequestToJSON;
|
|
1975
|
-
exports.submitTxResponseFromJSON = submitTxResponseFromJSON;
|
|
1976
|
-
exports.submitTxResponseToJSON = submitTxResponseToJSON;
|
|
1977
|
-
exports.svmTxFromJSON = svmTxFromJSON;
|
|
1978
|
-
exports.svmTxToJSON = svmTxToJSON;
|
|
1979
|
-
exports.swapExactCoinInFromJSON = swapExactCoinInFromJSON;
|
|
1980
|
-
exports.swapExactCoinInToJSON = swapExactCoinInToJSON;
|
|
1981
|
-
exports.swapExactCoinOutFromJSON = swapExactCoinOutFromJSON;
|
|
1982
|
-
exports.swapExactCoinOutToJSON = swapExactCoinOutToJSON;
|
|
1983
|
-
exports.swapFromJSON = swapFromJSON;
|
|
1984
|
-
exports.swapOperationFromJSON = swapOperationFromJSON;
|
|
1985
|
-
exports.swapOperationToJSON = swapOperationToJSON;
|
|
1986
|
-
exports.swapRouteFromJSON = swapRouteFromJSON;
|
|
1987
|
-
exports.swapRouteToJSON = swapRouteToJSON;
|
|
1988
|
-
exports.swapToJSON = swapToJSON;
|
|
1989
|
-
exports.swapVenueFromJSON = swapVenueFromJSON;
|
|
1990
|
-
exports.swapVenueRequestFromJSON = swapVenueRequestFromJSON;
|
|
1991
|
-
exports.swapVenueRequestToJSON = swapVenueRequestToJSON;
|
|
1992
|
-
exports.swapVenueToJSON = swapVenueToJSON;
|
|
1993
|
-
exports.trackTxRequestFromJSON = trackTxRequestFromJSON;
|
|
1994
|
-
exports.trackTxRequestToJSON = trackTxRequestToJSON;
|
|
1995
|
-
exports.trackTxResponseFromJSON = trackTxResponseFromJSON;
|
|
1996
|
-
exports.trackTxResponseToJSON = trackTxResponseToJSON;
|
|
1997
|
-
exports.transferAssetReleaseFromJSON = transferAssetReleaseFromJSON;
|
|
1998
|
-
exports.transferAssetReleaseToJSON = transferAssetReleaseToJSON;
|
|
1999
|
-
exports.transferEventFromJSON = transferEventFromJSON;
|
|
2000
|
-
exports.transferEventToJSON = transferEventToJSON;
|
|
2001
|
-
exports.transferFromJSON = transferFromJSON;
|
|
2002
|
-
exports.transferInfoFromJSON = transferInfoFromJSON;
|
|
2003
|
-
exports.transferInfoToJSON = transferInfoToJSON;
|
|
2004
|
-
exports.transferStatusFromJSON = transferStatusFromJSON;
|
|
2005
|
-
exports.transferStatusToJSON = transferStatusToJSON;
|
|
2006
|
-
exports.transferToJSON = transferToJSON;
|
|
2007
|
-
exports.txFromJSON = txFromJSON;
|
|
2008
|
-
exports.txStatusRequestFromJSON = txStatusRequestFromJSON;
|
|
2009
|
-
exports.txStatusRequestToJSON = txStatusRequestToJSON;
|
|
2010
|
-
exports.txStatusResponseFromJSON = txStatusResponseFromJSON;
|
|
2011
|
-
exports.txStatusResponseToJSON = txStatusResponseToJSON;
|
|
2012
|
-
exports.txToJSON = txToJSON;
|