@skip-go/client 1.0.0-alpha-4 → 1.0.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/dist/api/{getAssets.d.ts → getAssets.d.mts} +2 -2
- package/dist/api/getAssets.mjs +2 -0
- package/dist/api/{getAssetsBetweenChains.d.ts → getAssetsBetweenChains.d.mts} +2 -2
- package/dist/api/getAssetsBetweenChains.mjs +2 -0
- package/dist/api/{getBridges.d.ts → getBridges.d.mts} +2 -2
- package/dist/api/getBridges.mjs +2 -0
- package/dist/api/{getChains.d.ts → getChains.d.mts} +2 -2
- package/dist/api/getChains.mjs +2 -0
- package/dist/api/{getVenues.d.ts → getVenues.d.mts} +1 -1
- package/dist/api/getVenues.mjs +2 -0
- package/dist/api/{postAssetsFromSource.d.ts → postAssetsFromSource.d.mts} +2 -2
- package/dist/api/postAssetsFromSource.mjs +3 -0
- package/dist/api/{postBalances.d.ts → postBalances.d.mts} +3 -3
- package/dist/api/postBalances.mjs +2 -0
- package/dist/api/{postIbcOriginAssets.d.ts → postIbcOriginAssets.d.mts} +1 -1
- package/dist/api/postIbcOriginAssets.mjs +2 -0
- package/dist/api/{postMessages.d.ts → postMessages.d.mts} +3 -3
- package/dist/api/postMessages.mjs +2 -0
- package/dist/api/{postMessagesDirect.d.ts → postMessagesDirect.d.mts} +2 -2
- package/dist/api/postMessagesDirect.mjs +2 -0
- package/dist/api/{postRecommendAssets.d.ts → postRecommendAssets.d.mts} +2 -2
- package/dist/api/postRecommendAssets.mjs +2 -0
- package/dist/api/{postRoute.d.ts → postRoute.d.mts} +3 -3
- package/dist/api/postRoute.mjs +2 -0
- package/dist/api/{postSubmitTransaction.d.ts → postSubmitTransaction.d.mts} +1 -1
- package/dist/api/postSubmitTransaction.mjs +2 -0
- package/dist/api/{postTrackTransaction.d.ts → postTrackTransaction.d.mts} +1 -1
- package/dist/api/postTrackTransaction.mjs +2 -0
- package/dist/api/{postTransactionStatus.d.ts → postTransactionStatus.d.mts} +3 -3
- package/dist/api/postTransactionStatus.mjs +2 -0
- package/dist/{chunk-RSUFWUIE.js → chunk-2ETF4N4H.mjs} +5 -4
- package/dist/{chunk-6IZXDY7U.js → chunk-2F4MBSMT.mjs} +20 -14
- package/dist/chunk-2FYLP573.mjs +15 -0
- package/dist/{chunk-2H4KT24S.js → chunk-7TBBV2YY.mjs} +1 -1
- package/dist/{chunk-MKEROBAQ.js → chunk-C5CGY2X7.mjs} +1 -1
- package/dist/{chunk-6SEZNZJY.js → chunk-CAAR7GDJ.mjs} +1 -1
- package/dist/{chunk-LJ4RFN4L.js → chunk-CZ27FEZ7.mjs} +1 -1
- package/dist/chunk-DKIWPD5I.mjs +124 -0
- package/dist/{chunk-6JMGI4N7.js → chunk-DZQJN6OX.mjs} +86 -76
- package/dist/chunk-I2MX24LT.mjs +2316 -0
- package/dist/{chunk-XS6XFYYD.js → chunk-IGD32L7C.mjs} +1 -1
- package/dist/{chunk-44YEAWRJ.js → chunk-IHIJJNTV.mjs} +7 -6
- package/dist/{chunk-QKCJUB43.js → chunk-J7GGREYX.mjs} +1 -1
- package/dist/{chunk-EAVQIWH7.js → chunk-KPK3Z6QZ.mjs} +1 -1
- package/dist/{chunk-BQTWTYWD.js → chunk-LJVI5DLG.mjs} +1 -1
- package/dist/{chunk-JBPMJE44.js → chunk-NNZFCKHP.mjs} +1 -1
- package/dist/{chunk-66DO7NZD.js → chunk-NU7MCJOK.mjs} +36 -32
- package/dist/{chunk-3OZQ35X3.js → chunk-OTLFF5OB.mjs} +138 -101
- package/dist/{chunk-HFWTLB35.js → chunk-QZ3X6MP3.mjs} +1 -1
- package/dist/chunk-RXWDHQLG.mjs +231 -0
- package/dist/{chunk-6MCLH626.js → chunk-YWYU6P7W.mjs} +2 -2
- package/dist/{chunk-XOC57DJF.js → chunk-ZMEQSFOL.mjs} +23 -18
- package/dist/{client-types-CxjtffyG.d.ts → client-types-CVch1pZ-.d.mts} +1 -1
- package/dist/{executeRoute-BKvMVd1I.d.ts → executeRoute-CRdeEz1o.d.mts} +3 -3
- package/dist/{generateApi-DqCp36fX.d.ts → generateApi-3mHZ6Zbr.d.mts} +1 -1
- package/dist/{index.d.ts → index.d.mts} +27 -25
- package/dist/index.mjs +24 -0
- package/dist/public-functions/{executeRoute.d.ts → executeRoute.d.mts} +4 -4
- package/dist/public-functions/executeRoute.mjs +12 -0
- package/dist/public-functions/{getFeeInfoForChain.d.ts → getFeeInfoForChain.d.mts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.mjs +5 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.ts → getRecommendedGasPrice.d.mts} +2 -2
- package/dist/public-functions/getRecommendedGasPrice.mjs +7 -0
- package/dist/public-functions/{getSigningStargateClient.d.ts → getSigningStargateClient.d.mts} +1 -1
- package/dist/public-functions/getSigningStargateClient.mjs +4 -0
- package/dist/public-functions/{setApiOptions.d.ts → setApiOptions.d.mts} +2 -2
- package/dist/public-functions/setApiOptions.mjs +2 -0
- package/dist/public-functions/setClientOptions.d.mts +9 -0
- package/dist/public-functions/setClientOptions.mjs +4 -0
- package/dist/{setClientOptions-DbanEIwL.d.ts → setClientOptions-CVB_OUIn.d.mts} +2 -2
- package/package.json +4 -45
- package/dist/api/getAssets.js +0 -2
- package/dist/api/getAssetsBetweenChains.js +0 -2
- package/dist/api/getBridges.js +0 -2
- package/dist/api/getChains.js +0 -2
- package/dist/api/getVenues.js +0 -2
- package/dist/api/postAssetsFromSource.js +0 -3
- package/dist/api/postBalances.js +0 -2
- package/dist/api/postIbcOriginAssets.js +0 -2
- package/dist/api/postMessages.js +0 -2
- package/dist/api/postMessagesDirect.js +0 -2
- package/dist/api/postRecommendAssets.js +0 -2
- package/dist/api/postRoute.js +0 -2
- package/dist/api/postSubmitTransaction.js +0 -2
- package/dist/api/postTrackTransaction.js +0 -2
- package/dist/api/postTransactionStatus.js +0 -2
- package/dist/chunk-DUCP65HQ.js +0 -675
- package/dist/chunk-T3G7MVDN.js +0 -16
- package/dist/chunk-XEDYWBEU.js +0 -1792
- package/dist/chunk-Y325PIRY.js +0 -130
- package/dist/index.js +0 -24
- package/dist/public-functions/executeRoute.js +0 -12
- package/dist/public-functions/getFeeInfoForChain.js +0 -5
- package/dist/public-functions/getRecommendedGasPrice.js +0 -7
- package/dist/public-functions/getSigningStargateClient.js +0 -4
- package/dist/public-functions/setApiOptions.js +0 -2
- package/dist/public-functions/setClientOptions.d.ts +0 -9
- package/dist/public-functions/setClientOptions.js +0 -4
- /package/dist/{apiState-CdzxTxYd.d.ts → apiState-CdzxTxYd.d.mts} +0 -0
- /package/dist/{chunk-VQ5SIQWU.js → chunk-TUBI6VE6.mjs} +0 -0
- /package/dist/{chunk-SWYON2RG.js → chunk-ZAF3Z56R.mjs} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.ts → swaggerTypes-O9-gvCT1.d.mts} +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-
|
|
2
|
-
import { ClientState } from './chunk-
|
|
3
|
-
import { ApiState, createRequestClient } from './chunk-
|
|
4
|
-
import { AminoTypes
|
|
1
|
+
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-OTLFF5OB.mjs';
|
|
2
|
+
import { ClientState } from './chunk-DKIWPD5I.mjs';
|
|
3
|
+
import { __spreadValues, ApiState, createRequestClient } from './chunk-RXWDHQLG.mjs';
|
|
4
|
+
import { AminoTypes } from '@cosmjs/stargate/build/aminotypes';
|
|
5
|
+
import { createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate/build/signingstargateclient';
|
|
5
6
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate/build/modules/wasm/aminomessages';
|
|
6
7
|
import '@cosmjs/proto-signing';
|
|
7
|
-
import '@cosmjs/
|
|
8
|
+
import '@cosmjs/stargate';
|
|
8
9
|
import * as _m08 from 'protobufjs/minimal';
|
|
9
10
|
import { Decimal } from '@cosmjs/math';
|
|
10
11
|
import { Registry } from '@cosmjs/proto-signing/build/registry';
|
|
11
12
|
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
|
|
12
13
|
|
|
14
|
+
// src/codegen/circle/cctp/v1/tx.registry.ts
|
|
13
15
|
var registry = [["/circle.cctp.v1.MsgAcceptOwner", MsgAcceptOwner], ["/circle.cctp.v1.MsgAddRemoteTokenMessenger", MsgAddRemoteTokenMessenger], ["/circle.cctp.v1.MsgDepositForBurn", MsgDepositForBurn], ["/circle.cctp.v1.MsgDepositForBurnWithCaller", MsgDepositForBurnWithCaller], ["/circle.cctp.v1.MsgDisableAttester", MsgDisableAttester], ["/circle.cctp.v1.MsgEnableAttester", MsgEnableAttester], ["/circle.cctp.v1.MsgLinkTokenPair", MsgLinkTokenPair], ["/circle.cctp.v1.MsgPauseBurningAndMinting", MsgPauseBurningAndMinting], ["/circle.cctp.v1.MsgPauseSendingAndReceivingMessages", MsgPauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgReceiveMessage", MsgReceiveMessage], ["/circle.cctp.v1.MsgRemoveRemoteTokenMessenger", MsgRemoveRemoteTokenMessenger], ["/circle.cctp.v1.MsgReplaceDepositForBurn", MsgReplaceDepositForBurn], ["/circle.cctp.v1.MsgReplaceMessage", MsgReplaceMessage], ["/circle.cctp.v1.MsgSendMessage", MsgSendMessage], ["/circle.cctp.v1.MsgSendMessageWithCaller", MsgSendMessageWithCaller], ["/circle.cctp.v1.MsgUnlinkTokenPair", MsgUnlinkTokenPair], ["/circle.cctp.v1.MsgUnpauseBurningAndMinting", MsgUnpauseBurningAndMinting], ["/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", MsgUnpauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgUpdateOwner", MsgUpdateOwner], ["/circle.cctp.v1.MsgUpdateAttesterManager", MsgUpdateAttesterManager], ["/circle.cctp.v1.MsgUpdateTokenController", MsgUpdateTokenController], ["/circle.cctp.v1.MsgUpdatePauser", MsgUpdatePauser], ["/circle.cctp.v1.MsgUpdateMaxMessageBodySize", MsgUpdateMaxMessageBodySize], ["/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", MsgSetMaxBurnAmountPerMessage], ["/circle.cctp.v1.MsgUpdateSignatureThreshold", MsgUpdateSignatureThreshold]];
|
|
14
16
|
|
|
15
17
|
// src/codegen/circle/cctp/v1/tx.amino.ts
|
|
@@ -142,9 +144,7 @@ var AminoConverter = {
|
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
// src/codegen/circle/client.ts
|
|
145
|
-
var circleAminoConverters = {
|
|
146
|
-
...AminoConverter
|
|
147
|
-
};
|
|
147
|
+
var circleAminoConverters = __spreadValues({}, AminoConverter);
|
|
148
148
|
var circleProtoRegistry = [...registry];
|
|
149
149
|
function createBaseParams() {
|
|
150
150
|
return {
|
|
@@ -196,9 +196,10 @@ var Params = {
|
|
|
196
196
|
return obj;
|
|
197
197
|
},
|
|
198
198
|
fromPartial(object) {
|
|
199
|
+
var _a, _b;
|
|
199
200
|
const message = createBaseParams();
|
|
200
|
-
message.enableErc20 = object.enableErc20
|
|
201
|
-
message.enableEvmHook = object.enableEvmHook
|
|
201
|
+
message.enableErc20 = (_a = object.enableErc20) != null ? _a : false;
|
|
202
|
+
message.enableEvmHook = (_b = object.enableEvmHook) != null ? _b : false;
|
|
202
203
|
return message;
|
|
203
204
|
},
|
|
204
205
|
fromAmino(object) {
|
|
@@ -298,10 +299,11 @@ var MsgConvertCoin = {
|
|
|
298
299
|
return obj;
|
|
299
300
|
},
|
|
300
301
|
fromPartial(object) {
|
|
302
|
+
var _a, _b;
|
|
301
303
|
const message = createBaseMsgConvertCoin();
|
|
302
304
|
message.coin = object.coin !== void 0 && object.coin !== null ? Coin.fromPartial(object.coin) : void 0;
|
|
303
|
-
message.receiver = object.receiver
|
|
304
|
-
message.sender = object.sender
|
|
305
|
+
message.receiver = (_a = object.receiver) != null ? _a : "";
|
|
306
|
+
message.sender = (_b = object.sender) != null ? _b : "";
|
|
305
307
|
return message;
|
|
306
308
|
},
|
|
307
309
|
fromAmino(object) {
|
|
@@ -414,11 +416,12 @@ var MsgConvertERC20 = {
|
|
|
414
416
|
return obj;
|
|
415
417
|
},
|
|
416
418
|
fromPartial(object) {
|
|
419
|
+
var _a, _b, _c, _d;
|
|
417
420
|
const message = createBaseMsgConvertERC20();
|
|
418
|
-
message.contractAddress = object.contractAddress
|
|
419
|
-
message.amount = object.amount
|
|
420
|
-
message.receiver = object.receiver
|
|
421
|
-
message.sender = object.sender
|
|
421
|
+
message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
|
|
422
|
+
message.amount = (_b = object.amount) != null ? _b : "";
|
|
423
|
+
message.receiver = (_c = object.receiver) != null ? _c : "";
|
|
424
|
+
message.sender = (_d = object.sender) != null ? _d : "";
|
|
422
425
|
return message;
|
|
423
426
|
},
|
|
424
427
|
fromAmino(object) {
|
|
@@ -517,8 +520,9 @@ var MsgUpdateParams = {
|
|
|
517
520
|
return obj;
|
|
518
521
|
},
|
|
519
522
|
fromPartial(object) {
|
|
523
|
+
var _a;
|
|
520
524
|
const message = createBaseMsgUpdateParams();
|
|
521
|
-
message.authority = object.authority
|
|
525
|
+
message.authority = (_a = object.authority) != null ? _a : "";
|
|
522
526
|
message.params = object.params !== void 0 && object.params !== null ? Params.fromPartial(object.params) : void 0;
|
|
523
527
|
return message;
|
|
524
528
|
},
|
|
@@ -622,10 +626,11 @@ var InflationDistribution = {
|
|
|
622
626
|
return obj;
|
|
623
627
|
},
|
|
624
628
|
fromPartial(object) {
|
|
629
|
+
var _a, _b, _c;
|
|
625
630
|
const message = createBaseInflationDistribution();
|
|
626
|
-
message.stakingRewards = object.stakingRewards
|
|
627
|
-
message.usageIncentives = object.usageIncentives
|
|
628
|
-
message.communityPool = object.communityPool
|
|
631
|
+
message.stakingRewards = (_a = object.stakingRewards) != null ? _a : "";
|
|
632
|
+
message.usageIncentives = (_b = object.usageIncentives) != null ? _b : "";
|
|
633
|
+
message.communityPool = (_c = object.communityPool) != null ? _c : "";
|
|
629
634
|
return message;
|
|
630
635
|
},
|
|
631
636
|
fromAmino(object) {
|
|
@@ -747,12 +752,13 @@ var ExponentialCalculation = {
|
|
|
747
752
|
return obj;
|
|
748
753
|
},
|
|
749
754
|
fromPartial(object) {
|
|
755
|
+
var _a, _b, _c, _d, _e;
|
|
750
756
|
const message = createBaseExponentialCalculation();
|
|
751
|
-
message.a = object.a
|
|
752
|
-
message.r = object.r
|
|
753
|
-
message.c = object.c
|
|
754
|
-
message.bondingTarget = object.bondingTarget
|
|
755
|
-
message.maxVariance = object.maxVariance
|
|
757
|
+
message.a = (_a = object.a) != null ? _a : "";
|
|
758
|
+
message.r = (_b = object.r) != null ? _b : "";
|
|
759
|
+
message.c = (_c = object.c) != null ? _c : "";
|
|
760
|
+
message.bondingTarget = (_d = object.bondingTarget) != null ? _d : "";
|
|
761
|
+
message.maxVariance = (_e = object.maxVariance) != null ? _e : "";
|
|
756
762
|
return message;
|
|
757
763
|
},
|
|
758
764
|
fromAmino(object) {
|
|
@@ -873,11 +879,12 @@ var Params2 = {
|
|
|
873
879
|
return obj;
|
|
874
880
|
},
|
|
875
881
|
fromPartial(object) {
|
|
882
|
+
var _a, _b;
|
|
876
883
|
const message = createBaseParams2();
|
|
877
|
-
message.mintDenom = object.mintDenom
|
|
884
|
+
message.mintDenom = (_a = object.mintDenom) != null ? _a : "";
|
|
878
885
|
message.exponentialCalculation = object.exponentialCalculation !== void 0 && object.exponentialCalculation !== null ? ExponentialCalculation.fromPartial(object.exponentialCalculation) : void 0;
|
|
879
886
|
message.inflationDistribution = object.inflationDistribution !== void 0 && object.inflationDistribution !== null ? InflationDistribution.fromPartial(object.inflationDistribution) : void 0;
|
|
880
|
-
message.enableInflation = object.enableInflation
|
|
887
|
+
message.enableInflation = (_b = object.enableInflation) != null ? _b : false;
|
|
881
888
|
return message;
|
|
882
889
|
},
|
|
883
890
|
fromAmino(object) {
|
|
@@ -976,8 +983,9 @@ var MsgUpdateParams2 = {
|
|
|
976
983
|
return obj;
|
|
977
984
|
},
|
|
978
985
|
fromPartial(object) {
|
|
986
|
+
var _a;
|
|
979
987
|
const message = createBaseMsgUpdateParams2();
|
|
980
|
-
message.authority = object.authority
|
|
988
|
+
message.authority = (_a = object.authority) != null ? _a : "";
|
|
981
989
|
message.params = object.params !== void 0 && object.params !== null ? Params2.fromPartial(object.params) : void 0;
|
|
982
990
|
return message;
|
|
983
991
|
},
|
|
@@ -1081,9 +1089,10 @@ var Params3 = {
|
|
|
1081
1089
|
return obj;
|
|
1082
1090
|
},
|
|
1083
1091
|
fromPartial(object) {
|
|
1092
|
+
var _a, _b;
|
|
1084
1093
|
const message = createBaseParams3();
|
|
1085
|
-
message.enableRevenue = object.enableRevenue
|
|
1086
|
-
message.developerShares = object.developerShares
|
|
1094
|
+
message.enableRevenue = (_a = object.enableRevenue) != null ? _a : false;
|
|
1095
|
+
message.developerShares = (_b = object.developerShares) != null ? _b : "";
|
|
1087
1096
|
message.addrDerivationCostCreate = object.addrDerivationCostCreate !== void 0 && object.addrDerivationCostCreate !== null ? Long.fromValue(object.addrDerivationCostCreate) : Long.UZERO;
|
|
1088
1097
|
return message;
|
|
1089
1098
|
},
|
|
@@ -1194,7 +1203,7 @@ var MsgRegisterRevenue = {
|
|
|
1194
1203
|
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
1195
1204
|
deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : "",
|
|
1196
1205
|
withdrawerAddress: isSet(object.withdrawerAddress) ? String(object.withdrawerAddress) : "",
|
|
1197
|
-
nonces: Array.isArray(object
|
|
1206
|
+
nonces: Array.isArray(object == null ? void 0 : object.nonces) ? object.nonces.map((e) => Long.fromValue(e)) : []
|
|
1198
1207
|
};
|
|
1199
1208
|
},
|
|
1200
1209
|
toJSON(message) {
|
|
@@ -1210,14 +1219,16 @@ var MsgRegisterRevenue = {
|
|
|
1210
1219
|
return obj;
|
|
1211
1220
|
},
|
|
1212
1221
|
fromPartial(object) {
|
|
1222
|
+
var _a, _b, _c, _d;
|
|
1213
1223
|
const message = createBaseMsgRegisterRevenue();
|
|
1214
|
-
message.contractAddress = object.contractAddress
|
|
1215
|
-
message.deployerAddress = object.deployerAddress
|
|
1216
|
-
message.withdrawerAddress = object.withdrawerAddress
|
|
1217
|
-
message.nonces = object.nonces
|
|
1224
|
+
message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
|
|
1225
|
+
message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
|
|
1226
|
+
message.withdrawerAddress = (_c = object.withdrawerAddress) != null ? _c : "";
|
|
1227
|
+
message.nonces = ((_d = object.nonces) == null ? void 0 : _d.map((e) => Long.fromValue(e))) || [];
|
|
1218
1228
|
return message;
|
|
1219
1229
|
},
|
|
1220
1230
|
fromAmino(object) {
|
|
1231
|
+
var _a;
|
|
1221
1232
|
const message = createBaseMsgRegisterRevenue();
|
|
1222
1233
|
if (object.contract_address !== void 0 && object.contract_address !== null) {
|
|
1223
1234
|
message.contractAddress = object.contract_address;
|
|
@@ -1228,7 +1239,7 @@ var MsgRegisterRevenue = {
|
|
|
1228
1239
|
if (object.withdrawer_address !== void 0 && object.withdrawer_address !== null) {
|
|
1229
1240
|
message.withdrawerAddress = object.withdrawer_address;
|
|
1230
1241
|
}
|
|
1231
|
-
message.nonces = object.nonces
|
|
1242
|
+
message.nonces = ((_a = object.nonces) == null ? void 0 : _a.map((e) => Long.fromString(e))) || [];
|
|
1232
1243
|
return message;
|
|
1233
1244
|
},
|
|
1234
1245
|
toAmino(message) {
|
|
@@ -1324,10 +1335,11 @@ var MsgUpdateRevenue = {
|
|
|
1324
1335
|
return obj;
|
|
1325
1336
|
},
|
|
1326
1337
|
fromPartial(object) {
|
|
1338
|
+
var _a, _b, _c;
|
|
1327
1339
|
const message = createBaseMsgUpdateRevenue();
|
|
1328
|
-
message.contractAddress = object.contractAddress
|
|
1329
|
-
message.deployerAddress = object.deployerAddress
|
|
1330
|
-
message.withdrawerAddress = object.withdrawerAddress
|
|
1340
|
+
message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
|
|
1341
|
+
message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
|
|
1342
|
+
message.withdrawerAddress = (_c = object.withdrawerAddress) != null ? _c : "";
|
|
1331
1343
|
return message;
|
|
1332
1344
|
},
|
|
1333
1345
|
fromAmino(object) {
|
|
@@ -1422,9 +1434,10 @@ var MsgCancelRevenue = {
|
|
|
1422
1434
|
return obj;
|
|
1423
1435
|
},
|
|
1424
1436
|
fromPartial(object) {
|
|
1437
|
+
var _a, _b;
|
|
1425
1438
|
const message = createBaseMsgCancelRevenue();
|
|
1426
|
-
message.contractAddress = object.contractAddress
|
|
1427
|
-
message.deployerAddress = object.deployerAddress
|
|
1439
|
+
message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
|
|
1440
|
+
message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
|
|
1428
1441
|
return message;
|
|
1429
1442
|
},
|
|
1430
1443
|
fromAmino(object) {
|
|
@@ -1515,8 +1528,9 @@ var MsgUpdateParams3 = {
|
|
|
1515
1528
|
return obj;
|
|
1516
1529
|
},
|
|
1517
1530
|
fromPartial(object) {
|
|
1531
|
+
var _a;
|
|
1518
1532
|
const message = createBaseMsgUpdateParams3();
|
|
1519
|
-
message.authority = object.authority
|
|
1533
|
+
message.authority = (_a = object.authority) != null ? _a : "";
|
|
1520
1534
|
message.params = object.params !== void 0 && object.params !== null ? Params3.fromPartial(object.params) : void 0;
|
|
1521
1535
|
return message;
|
|
1522
1536
|
},
|
|
@@ -1620,10 +1634,11 @@ var MsgCreateClawbackVestingAccount = {
|
|
|
1620
1634
|
return obj;
|
|
1621
1635
|
},
|
|
1622
1636
|
fromPartial(object) {
|
|
1637
|
+
var _a, _b, _c;
|
|
1623
1638
|
const message = createBaseMsgCreateClawbackVestingAccount();
|
|
1624
|
-
message.funderAddress = object.funderAddress
|
|
1625
|
-
message.vestingAddress = object.vestingAddress
|
|
1626
|
-
message.enableGovClawback = object.enableGovClawback
|
|
1639
|
+
message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
|
|
1640
|
+
message.vestingAddress = (_b = object.vestingAddress) != null ? _b : "";
|
|
1641
|
+
message.enableGovClawback = (_c = object.enableGovClawback) != null ? _c : false;
|
|
1627
1642
|
return message;
|
|
1628
1643
|
},
|
|
1629
1644
|
fromAmino(object) {
|
|
@@ -1731,8 +1746,8 @@ var MsgFundVestingAccount = {
|
|
|
1731
1746
|
funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
1732
1747
|
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : "",
|
|
1733
1748
|
startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : void 0,
|
|
1734
|
-
lockupPeriods: Array.isArray(object
|
|
1735
|
-
vestingPeriods: Array.isArray(object
|
|
1749
|
+
lockupPeriods: Array.isArray(object == null ? void 0 : object.lockupPeriods) ? object.lockupPeriods.map((e) => Period.fromJSON(e)) : [],
|
|
1750
|
+
vestingPeriods: Array.isArray(object == null ? void 0 : object.vestingPeriods) ? object.vestingPeriods.map((e) => Period.fromJSON(e)) : []
|
|
1736
1751
|
};
|
|
1737
1752
|
},
|
|
1738
1753
|
toJSON(message) {
|
|
@@ -1753,15 +1768,17 @@ var MsgFundVestingAccount = {
|
|
|
1753
1768
|
return obj;
|
|
1754
1769
|
},
|
|
1755
1770
|
fromPartial(object) {
|
|
1771
|
+
var _a, _b, _c, _d, _e;
|
|
1756
1772
|
const message = createBaseMsgFundVestingAccount();
|
|
1757
|
-
message.funderAddress = object.funderAddress
|
|
1758
|
-
message.vestingAddress = object.vestingAddress
|
|
1759
|
-
message.startTime = object.startTime
|
|
1760
|
-
message.lockupPeriods = object.lockupPeriods
|
|
1761
|
-
message.vestingPeriods = object.vestingPeriods
|
|
1773
|
+
message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
|
|
1774
|
+
message.vestingAddress = (_b = object.vestingAddress) != null ? _b : "";
|
|
1775
|
+
message.startTime = (_c = object.startTime) != null ? _c : void 0;
|
|
1776
|
+
message.lockupPeriods = ((_d = object.lockupPeriods) == null ? void 0 : _d.map((e) => Period.fromPartial(e))) || [];
|
|
1777
|
+
message.vestingPeriods = ((_e = object.vestingPeriods) == null ? void 0 : _e.map((e) => Period.fromPartial(e))) || [];
|
|
1762
1778
|
return message;
|
|
1763
1779
|
},
|
|
1764
1780
|
fromAmino(object) {
|
|
1781
|
+
var _a, _b;
|
|
1765
1782
|
const message = createBaseMsgFundVestingAccount();
|
|
1766
1783
|
if (object.funder_address !== void 0 && object.funder_address !== null) {
|
|
1767
1784
|
message.funderAddress = object.funder_address;
|
|
@@ -1772,8 +1789,8 @@ var MsgFundVestingAccount = {
|
|
|
1772
1789
|
if (object.start_time !== void 0 && object.start_time !== null) {
|
|
1773
1790
|
message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
|
|
1774
1791
|
}
|
|
1775
|
-
message.lockupPeriods = object.lockup_periods
|
|
1776
|
-
message.vestingPeriods = object.vesting_periods
|
|
1792
|
+
message.lockupPeriods = ((_a = object.lockup_periods) == null ? void 0 : _a.map((e) => Period.fromAmino(e))) || [];
|
|
1793
|
+
message.vestingPeriods = ((_b = object.vesting_periods) == null ? void 0 : _b.map((e) => Period.fromAmino(e))) || [];
|
|
1777
1794
|
return message;
|
|
1778
1795
|
},
|
|
1779
1796
|
toAmino(message) {
|
|
@@ -1874,10 +1891,11 @@ var MsgClawback = {
|
|
|
1874
1891
|
return obj;
|
|
1875
1892
|
},
|
|
1876
1893
|
fromPartial(object) {
|
|
1894
|
+
var _a, _b, _c;
|
|
1877
1895
|
const message = createBaseMsgClawback();
|
|
1878
|
-
message.funderAddress = object.funderAddress
|
|
1879
|
-
message.accountAddress = object.accountAddress
|
|
1880
|
-
message.destAddress = object.destAddress
|
|
1896
|
+
message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
|
|
1897
|
+
message.accountAddress = (_b = object.accountAddress) != null ? _b : "";
|
|
1898
|
+
message.destAddress = (_c = object.destAddress) != null ? _c : "";
|
|
1881
1899
|
return message;
|
|
1882
1900
|
},
|
|
1883
1901
|
fromAmino(object) {
|
|
@@ -1981,10 +1999,11 @@ var MsgUpdateVestingFunder = {
|
|
|
1981
1999
|
return obj;
|
|
1982
2000
|
},
|
|
1983
2001
|
fromPartial(object) {
|
|
2002
|
+
var _a, _b, _c;
|
|
1984
2003
|
const message = createBaseMsgUpdateVestingFunder();
|
|
1985
|
-
message.funderAddress = object.funderAddress
|
|
1986
|
-
message.newFunderAddress = object.newFunderAddress
|
|
1987
|
-
message.vestingAddress = object.vestingAddress
|
|
2004
|
+
message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
|
|
2005
|
+
message.newFunderAddress = (_b = object.newFunderAddress) != null ? _b : "";
|
|
2006
|
+
message.vestingAddress = (_c = object.vestingAddress) != null ? _c : "";
|
|
1988
2007
|
return message;
|
|
1989
2008
|
},
|
|
1990
2009
|
fromAmino(object) {
|
|
@@ -2070,8 +2089,9 @@ var MsgConvertVestingAccount = {
|
|
|
2070
2089
|
return obj;
|
|
2071
2090
|
},
|
|
2072
2091
|
fromPartial(object) {
|
|
2092
|
+
var _a;
|
|
2073
2093
|
const message = createBaseMsgConvertVestingAccount();
|
|
2074
|
-
message.vestingAddress = object.vestingAddress
|
|
2094
|
+
message.vestingAddress = (_a = object.vestingAddress) != null ? _a : "";
|
|
2075
2095
|
return message;
|
|
2076
2096
|
},
|
|
2077
2097
|
fromAmino(object) {
|
|
@@ -2194,26 +2214,16 @@ var AminoConverter5 = {
|
|
|
2194
2214
|
};
|
|
2195
2215
|
|
|
2196
2216
|
// src/codegen/evmos/client.ts
|
|
2197
|
-
var evmosAminoConverters = {
|
|
2198
|
-
...AminoConverter2,
|
|
2199
|
-
...AminoConverter3,
|
|
2200
|
-
...AminoConverter4,
|
|
2201
|
-
...AminoConverter5
|
|
2202
|
-
};
|
|
2217
|
+
var evmosAminoConverters = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, AminoConverter2), AminoConverter3), AminoConverter4), AminoConverter5);
|
|
2203
2218
|
var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
|
|
2204
2219
|
var setClientOptions = (options = {}) => {
|
|
2220
|
+
var _a, _b, _c;
|
|
2205
2221
|
ApiState.client = createRequestClient({
|
|
2206
2222
|
baseUrl: options.apiUrl || "https://api.skip.build",
|
|
2207
2223
|
apiKey: options.apiKey
|
|
2208
2224
|
});
|
|
2209
|
-
ClientState.endpointOptions = options.endpointOptions
|
|
2210
|
-
ClientState.aminoTypes = new AminoTypes({
|
|
2211
|
-
...createDefaultAminoConverters(),
|
|
2212
|
-
...createWasmAminoConverters(),
|
|
2213
|
-
...circleAminoConverters,
|
|
2214
|
-
...evmosAminoConverters,
|
|
2215
|
-
...options.aminoTypes ?? {}
|
|
2216
|
-
});
|
|
2225
|
+
ClientState.endpointOptions = (_a = options.endpointOptions) != null ? _a : {};
|
|
2226
|
+
ClientState.aminoTypes = new AminoTypes(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, createDefaultAminoConverters()), createWasmAminoConverters()), circleAminoConverters), evmosAminoConverters), (_b = options.aminoTypes) != null ? _b : {}));
|
|
2217
2227
|
ClientState.registry = new Registry([
|
|
2218
2228
|
...defaultRegistryTypes,
|
|
2219
2229
|
["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract],
|
|
@@ -2221,7 +2231,7 @@ var setClientOptions = (options = {}) => {
|
|
|
2221
2231
|
["/opinit.ophost.v1.MsgInitiateTokenDeposit", MsgInitiateTokenDeposit],
|
|
2222
2232
|
...circleProtoRegistry,
|
|
2223
2233
|
...evmosProtoRegistry,
|
|
2224
|
-
...options.registryTypes
|
|
2234
|
+
...(_c = options.registryTypes) != null ? _c : []
|
|
2225
2235
|
]);
|
|
2226
2236
|
ApiState.setClientInitialized();
|
|
2227
2237
|
};
|