@skip-go/client 1.0.4 → 1.0.5
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.cts → getAssets.d.ts} +2 -2
- package/dist/api/getAssets.js +2 -0
- package/dist/api/{getAssetsBetweenChains.d.cts → getAssetsBetweenChains.d.ts} +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -0
- package/dist/api/{getBridges.d.cts → getBridges.d.ts} +2 -2
- package/dist/api/getBridges.js +2 -0
- package/dist/api/{getChains.d.cts → getChains.d.ts} +2 -2
- package/dist/api/getChains.js +2 -0
- package/dist/api/{getVenues.d.cts → getVenues.d.ts} +1 -1
- package/dist/api/getVenues.js +2 -0
- package/dist/api/{postAssetsFromSource.d.cts → postAssetsFromSource.d.ts} +2 -2
- package/dist/api/postAssetsFromSource.js +3 -0
- package/dist/api/{postBalances.d.cts → postBalances.d.ts} +3 -3
- package/dist/api/postBalances.js +2 -0
- package/dist/api/{postIbcOriginAssets.d.cts → postIbcOriginAssets.d.ts} +1 -1
- package/dist/api/postIbcOriginAssets.js +2 -0
- package/dist/api/{postMessages.d.cts → postMessages.d.ts} +3 -3
- package/dist/api/postMessages.js +2 -0
- package/dist/api/{postMessagesDirect.d.cts → postMessagesDirect.d.ts} +2 -2
- package/dist/api/postMessagesDirect.js +2 -0
- package/dist/api/{postRecommendAssets.d.cts → postRecommendAssets.d.ts} +2 -2
- package/dist/api/postRecommendAssets.js +2 -0
- package/dist/api/{postRoute.d.cts → postRoute.d.ts} +3 -3
- package/dist/api/postRoute.js +2 -0
- package/dist/api/{postSubmitTransaction.d.cts → postSubmitTransaction.d.ts} +1 -1
- package/dist/api/postSubmitTransaction.js +2 -0
- package/dist/api/{postTrackTransaction.d.cts → postTrackTransaction.d.ts} +1 -1
- package/dist/api/postTrackTransaction.js +2 -0
- package/dist/api/{postTransactionStatus.d.cts → postTransactionStatus.d.ts} +3 -3
- package/dist/api/postTransactionStatus.js +2 -0
- package/dist/chunk-33K6EESX.js +10 -0
- package/dist/{chunk-77ITCT75.cjs → chunk-4JJWOILI.js} +3 -5
- package/dist/chunk-BQTQJQ5E.js +10 -0
- package/dist/{chunk-ED2OY55G.cjs → chunk-BRMONS6A.js} +5 -11
- package/dist/{chunk-PNWIJSMA.cjs → chunk-C2EDPY6J.js} +3 -5
- package/dist/chunk-DW4U6YI6.js +10 -0
- package/dist/{chunk-GQYZQCOJ.cjs → chunk-F75DC5RW.js} +179 -185
- package/dist/{chunk-SFMBRLUS.cjs → chunk-GARVPN2H.js} +4 -6
- package/dist/{chunk-7SK3IFXJ.cjs → chunk-JTIHU43D.js} +1 -6
- package/dist/{chunk-VI7UMBQ7.cjs → chunk-KNV72XRZ.js} +3 -5
- package/dist/chunk-MGVXJ2U4.js +11 -0
- package/dist/chunk-MTMPHY3Y.js +9 -0
- package/dist/{chunk-UO54MR5Z.cjs → chunk-PHTQQIAH.js} +220 -226
- package/dist/{chunk-RDOSNDAQ.cjs → chunk-PRQ2NHRZ.js} +3 -5
- package/dist/chunk-RDRDFJQE.js +10 -0
- package/dist/chunk-RMP3HM5N.js +14 -0
- package/dist/{chunk-D2MDLQQZ.cjs → chunk-SONZJVQM.js} +47 -51
- package/dist/{chunk-KZOSEIWH.cjs → chunk-SWYON2RG.js} +1 -4
- package/dist/{chunk-WMXUOVHN.cjs → chunk-TD63P2AG.js} +111 -156
- package/dist/{chunk-ZNXE6PUV.cjs → chunk-TW77BXMT.js} +7 -9
- package/dist/chunk-UNF72WYO.js +22 -0
- package/dist/{chunk-J4LI33TK.cjs → chunk-VMPFHQ7U.js} +9 -11
- package/dist/{chunk-4R6OCWRR.cjs → chunk-VQ5SIQWU.js} +1 -3
- package/dist/{chunk-HAR3IXDE.cjs → chunk-W6TBGBV3.js} +1 -31
- package/dist/{client-types-qvyKvyFh.d.cts → client-types-CxjtffyG.d.ts} +1 -1
- package/dist/{executeRoute-BKRpODCc.d.cts → executeRoute-BKvMVd1I.d.ts} +3 -3
- package/dist/{generateApi-C0amiydg.d.cts → generateApi-DqCp36fX.d.ts} +1 -1
- package/dist/{index.d.cts → index.d.ts} +25 -25
- package/dist/index.js +24 -0
- package/dist/public-functions/{executeRoute.d.cts → executeRoute.d.ts} +4 -4
- package/dist/public-functions/executeRoute.js +12 -0
- package/dist/public-functions/{getFeeInfoForChain.d.cts → getFeeInfoForChain.d.ts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.js +5 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.cts → getRecommendedGasPrice.d.ts} +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +7 -0
- package/dist/public-functions/getSigningStargateClient.js +4 -0
- package/dist/public-functions/{setApiOptions.d.cts → setApiOptions.d.ts} +2 -2
- package/dist/public-functions/setApiOptions.js +2 -0
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +4 -0
- package/dist/{setClientOptions-CT6CHI9I.d.cts → setClientOptions-DbanEIwL.d.ts} +2 -2
- package/package.json +6 -6
- package/dist/api/getAssets.cjs +0 -15
- package/dist/api/getAssetsBetweenChains.cjs +0 -11
- package/dist/api/getBridges.cjs +0 -11
- package/dist/api/getChains.cjs +0 -11
- package/dist/api/getVenues.cjs +0 -11
- package/dist/api/postAssetsFromSource.cjs +0 -12
- package/dist/api/postBalances.cjs +0 -11
- package/dist/api/postIbcOriginAssets.cjs +0 -11
- package/dist/api/postMessages.cjs +0 -11
- package/dist/api/postMessagesDirect.cjs +0 -11
- package/dist/api/postRecommendAssets.cjs +0 -11
- package/dist/api/postRoute.cjs +0 -11
- package/dist/api/postSubmitTransaction.cjs +0 -11
- package/dist/api/postTrackTransaction.cjs +0 -11
- package/dist/api/postTransactionStatus.cjs +0 -11
- package/dist/chunk-32MRDO7V.cjs +0 -12
- package/dist/chunk-4RVEOKQU.cjs +0 -24
- package/dist/chunk-DAMZSSOH.cjs +0 -12
- package/dist/chunk-ISHM4QWP.cjs +0 -16
- package/dist/chunk-KDN7RCGP.cjs +0 -13
- package/dist/chunk-L5V5PASH.cjs +0 -12
- package/dist/chunk-LXYLWTNZ.cjs +0 -12
- package/dist/chunk-URLFWBSC.cjs +0 -11
- package/dist/index.cjs +0 -209
- package/dist/public-functions/executeRoute.cjs +0 -21
- package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
- package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
- package/dist/public-functions/getSigningStargateClient.cjs +0 -13
- package/dist/public-functions/setApiOptions.cjs +0 -11
- package/dist/public-functions/setClientOptions.cjs +0 -13
- package/dist/public-functions/setClientOptions.d.cts +0 -9
- /package/dist/{apiState-CdzxTxYd.d.cts → apiState-CdzxTxYd.d.ts} +0 -0
- /package/dist/public-functions/{getSigningStargateClient.d.cts → getSigningStargateClient.d.ts} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.cts → swaggerTypes-O9-gvCT1.d.ts} +0 -0
|
@@ -1,148 +1,142 @@
|
|
|
1
|
-
|
|
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-TD63P2AG.js';
|
|
2
|
+
import { ClientState } from './chunk-BRMONS6A.js';
|
|
3
|
+
import { ApiState, createRequestClient } from './chunk-W6TBGBV3.js';
|
|
4
|
+
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
5
|
+
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
6
|
+
import { Registry } from '@cosmjs/proto-signing';
|
|
7
|
+
import '@cosmjs/tendermint-rpc';
|
|
8
|
+
import _m08 from 'protobufjs/minimal.js';
|
|
9
|
+
import { Decimal } from '@cosmjs/math';
|
|
10
|
+
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx.js';
|
|
2
11
|
|
|
3
|
-
var
|
|
4
|
-
var chunkED2OY55G_cjs = require('./chunk-ED2OY55G.cjs');
|
|
5
|
-
var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
|
|
6
|
-
var stargate = require('@cosmjs/stargate');
|
|
7
|
-
var cosmwasmStargate = require('@cosmjs/cosmwasm-stargate');
|
|
8
|
-
var protoSigning = require('@cosmjs/proto-signing');
|
|
9
|
-
require('@cosmjs/tendermint-rpc');
|
|
10
|
-
var _m08 = require('protobufjs/minimal.js');
|
|
11
|
-
var math = require('@cosmjs/math');
|
|
12
|
-
var tx_js = require('cosmjs-types/cosmwasm/wasm/v1/tx.js');
|
|
13
|
-
|
|
14
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
|
|
16
|
-
var _m08__default = /*#__PURE__*/_interopDefault(_m08);
|
|
17
|
-
|
|
18
|
-
var registry = [["/circle.cctp.v1.MsgAcceptOwner", chunkWMXUOVHN_cjs.MsgAcceptOwner], ["/circle.cctp.v1.MsgAddRemoteTokenMessenger", chunkWMXUOVHN_cjs.MsgAddRemoteTokenMessenger], ["/circle.cctp.v1.MsgDepositForBurn", chunkWMXUOVHN_cjs.MsgDepositForBurn], ["/circle.cctp.v1.MsgDepositForBurnWithCaller", chunkWMXUOVHN_cjs.MsgDepositForBurnWithCaller], ["/circle.cctp.v1.MsgDisableAttester", chunkWMXUOVHN_cjs.MsgDisableAttester], ["/circle.cctp.v1.MsgEnableAttester", chunkWMXUOVHN_cjs.MsgEnableAttester], ["/circle.cctp.v1.MsgLinkTokenPair", chunkWMXUOVHN_cjs.MsgLinkTokenPair], ["/circle.cctp.v1.MsgPauseBurningAndMinting", chunkWMXUOVHN_cjs.MsgPauseBurningAndMinting], ["/circle.cctp.v1.MsgPauseSendingAndReceivingMessages", chunkWMXUOVHN_cjs.MsgPauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgReceiveMessage", chunkWMXUOVHN_cjs.MsgReceiveMessage], ["/circle.cctp.v1.MsgRemoveRemoteTokenMessenger", chunkWMXUOVHN_cjs.MsgRemoveRemoteTokenMessenger], ["/circle.cctp.v1.MsgReplaceDepositForBurn", chunkWMXUOVHN_cjs.MsgReplaceDepositForBurn], ["/circle.cctp.v1.MsgReplaceMessage", chunkWMXUOVHN_cjs.MsgReplaceMessage], ["/circle.cctp.v1.MsgSendMessage", chunkWMXUOVHN_cjs.MsgSendMessage], ["/circle.cctp.v1.MsgSendMessageWithCaller", chunkWMXUOVHN_cjs.MsgSendMessageWithCaller], ["/circle.cctp.v1.MsgUnlinkTokenPair", chunkWMXUOVHN_cjs.MsgUnlinkTokenPair], ["/circle.cctp.v1.MsgUnpauseBurningAndMinting", chunkWMXUOVHN_cjs.MsgUnpauseBurningAndMinting], ["/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", chunkWMXUOVHN_cjs.MsgUnpauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgUpdateOwner", chunkWMXUOVHN_cjs.MsgUpdateOwner], ["/circle.cctp.v1.MsgUpdateAttesterManager", chunkWMXUOVHN_cjs.MsgUpdateAttesterManager], ["/circle.cctp.v1.MsgUpdateTokenController", chunkWMXUOVHN_cjs.MsgUpdateTokenController], ["/circle.cctp.v1.MsgUpdatePauser", chunkWMXUOVHN_cjs.MsgUpdatePauser], ["/circle.cctp.v1.MsgUpdateMaxMessageBodySize", chunkWMXUOVHN_cjs.MsgUpdateMaxMessageBodySize], ["/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", chunkWMXUOVHN_cjs.MsgSetMaxBurnAmountPerMessage], ["/circle.cctp.v1.MsgUpdateSignatureThreshold", chunkWMXUOVHN_cjs.MsgUpdateSignatureThreshold]];
|
|
12
|
+
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]];
|
|
19
13
|
|
|
20
14
|
// src/codegen/circle/cctp/v1/tx.amino.ts
|
|
21
15
|
var AminoConverter = {
|
|
22
16
|
"/circle.cctp.v1.MsgAcceptOwner": {
|
|
23
17
|
aminoType: "cctp/AcceptOwner",
|
|
24
|
-
toAmino:
|
|
25
|
-
fromAmino:
|
|
18
|
+
toAmino: MsgAcceptOwner.toAmino,
|
|
19
|
+
fromAmino: MsgAcceptOwner.fromAmino
|
|
26
20
|
},
|
|
27
21
|
"/circle.cctp.v1.MsgAddRemoteTokenMessenger": {
|
|
28
22
|
aminoType: "cctp/AddRemoteTokenMessenger",
|
|
29
|
-
toAmino:
|
|
30
|
-
fromAmino:
|
|
23
|
+
toAmino: MsgAddRemoteTokenMessenger.toAmino,
|
|
24
|
+
fromAmino: MsgAddRemoteTokenMessenger.fromAmino
|
|
31
25
|
},
|
|
32
26
|
"/circle.cctp.v1.MsgDepositForBurn": {
|
|
33
27
|
aminoType: "cctp/DepositForBurn",
|
|
34
|
-
toAmino:
|
|
35
|
-
fromAmino:
|
|
28
|
+
toAmino: MsgDepositForBurn.toAmino,
|
|
29
|
+
fromAmino: MsgDepositForBurn.fromAmino
|
|
36
30
|
},
|
|
37
31
|
"/circle.cctp.v1.MsgDepositForBurnWithCaller": {
|
|
38
32
|
aminoType: "cctp/DepositForBurnWithCaller",
|
|
39
|
-
toAmino:
|
|
40
|
-
fromAmino:
|
|
33
|
+
toAmino: MsgDepositForBurnWithCaller.toAmino,
|
|
34
|
+
fromAmino: MsgDepositForBurnWithCaller.fromAmino
|
|
41
35
|
},
|
|
42
36
|
"/circle.cctp.v1.MsgDisableAttester": {
|
|
43
37
|
aminoType: "cctp/DisableAttester",
|
|
44
|
-
toAmino:
|
|
45
|
-
fromAmino:
|
|
38
|
+
toAmino: MsgDisableAttester.toAmino,
|
|
39
|
+
fromAmino: MsgDisableAttester.fromAmino
|
|
46
40
|
},
|
|
47
41
|
"/circle.cctp.v1.MsgEnableAttester": {
|
|
48
42
|
aminoType: "cctp/EnableAttester",
|
|
49
|
-
toAmino:
|
|
50
|
-
fromAmino:
|
|
43
|
+
toAmino: MsgEnableAttester.toAmino,
|
|
44
|
+
fromAmino: MsgEnableAttester.fromAmino
|
|
51
45
|
},
|
|
52
46
|
"/circle.cctp.v1.MsgLinkTokenPair": {
|
|
53
47
|
aminoType: "cctp/LinkTokenPair",
|
|
54
|
-
toAmino:
|
|
55
|
-
fromAmino:
|
|
48
|
+
toAmino: MsgLinkTokenPair.toAmino,
|
|
49
|
+
fromAmino: MsgLinkTokenPair.fromAmino
|
|
56
50
|
},
|
|
57
51
|
"/circle.cctp.v1.MsgPauseBurningAndMinting": {
|
|
58
52
|
aminoType: "cctp/PauseBurningAndMinting",
|
|
59
|
-
toAmino:
|
|
60
|
-
fromAmino:
|
|
53
|
+
toAmino: MsgPauseBurningAndMinting.toAmino,
|
|
54
|
+
fromAmino: MsgPauseBurningAndMinting.fromAmino
|
|
61
55
|
},
|
|
62
56
|
"/circle.cctp.v1.MsgPauseSendingAndReceivingMessages": {
|
|
63
57
|
aminoType: "cctp/PauseSendingAndReceivingMessages",
|
|
64
|
-
toAmino:
|
|
65
|
-
fromAmino:
|
|
58
|
+
toAmino: MsgPauseSendingAndReceivingMessages.toAmino,
|
|
59
|
+
fromAmino: MsgPauseSendingAndReceivingMessages.fromAmino
|
|
66
60
|
},
|
|
67
61
|
"/circle.cctp.v1.MsgReceiveMessage": {
|
|
68
62
|
aminoType: "cctp/ReceiveMessage",
|
|
69
|
-
toAmino:
|
|
70
|
-
fromAmino:
|
|
63
|
+
toAmino: MsgReceiveMessage.toAmino,
|
|
64
|
+
fromAmino: MsgReceiveMessage.fromAmino
|
|
71
65
|
},
|
|
72
66
|
"/circle.cctp.v1.MsgRemoveRemoteTokenMessenger": {
|
|
73
67
|
aminoType: "cctp/RemoveRemoteTokenMessenger",
|
|
74
|
-
toAmino:
|
|
75
|
-
fromAmino:
|
|
68
|
+
toAmino: MsgRemoveRemoteTokenMessenger.toAmino,
|
|
69
|
+
fromAmino: MsgRemoveRemoteTokenMessenger.fromAmino
|
|
76
70
|
},
|
|
77
71
|
"/circle.cctp.v1.MsgReplaceDepositForBurn": {
|
|
78
72
|
aminoType: "cctp/ReplaceDepositForBurn",
|
|
79
|
-
toAmino:
|
|
80
|
-
fromAmino:
|
|
73
|
+
toAmino: MsgReplaceDepositForBurn.toAmino,
|
|
74
|
+
fromAmino: MsgReplaceDepositForBurn.fromAmino
|
|
81
75
|
},
|
|
82
76
|
"/circle.cctp.v1.MsgReplaceMessage": {
|
|
83
77
|
aminoType: "cctp/ReplaceMessage",
|
|
84
|
-
toAmino:
|
|
85
|
-
fromAmino:
|
|
78
|
+
toAmino: MsgReplaceMessage.toAmino,
|
|
79
|
+
fromAmino: MsgReplaceMessage.fromAmino
|
|
86
80
|
},
|
|
87
81
|
"/circle.cctp.v1.MsgSendMessage": {
|
|
88
82
|
aminoType: "cctp/SendMessage",
|
|
89
|
-
toAmino:
|
|
90
|
-
fromAmino:
|
|
83
|
+
toAmino: MsgSendMessage.toAmino,
|
|
84
|
+
fromAmino: MsgSendMessage.fromAmino
|
|
91
85
|
},
|
|
92
86
|
"/circle.cctp.v1.MsgSendMessageWithCaller": {
|
|
93
87
|
aminoType: "cctp/SendMessageWithCaller",
|
|
94
|
-
toAmino:
|
|
95
|
-
fromAmino:
|
|
88
|
+
toAmino: MsgSendMessageWithCaller.toAmino,
|
|
89
|
+
fromAmino: MsgSendMessageWithCaller.fromAmino
|
|
96
90
|
},
|
|
97
91
|
"/circle.cctp.v1.MsgUnlinkTokenPair": {
|
|
98
92
|
aminoType: "cctp/UnlinkTokenPair",
|
|
99
|
-
toAmino:
|
|
100
|
-
fromAmino:
|
|
93
|
+
toAmino: MsgUnlinkTokenPair.toAmino,
|
|
94
|
+
fromAmino: MsgUnlinkTokenPair.fromAmino
|
|
101
95
|
},
|
|
102
96
|
"/circle.cctp.v1.MsgUnpauseBurningAndMinting": {
|
|
103
97
|
aminoType: "cctp/UnpauseBurningAndMinting",
|
|
104
|
-
toAmino:
|
|
105
|
-
fromAmino:
|
|
98
|
+
toAmino: MsgUnpauseBurningAndMinting.toAmino,
|
|
99
|
+
fromAmino: MsgUnpauseBurningAndMinting.fromAmino
|
|
106
100
|
},
|
|
107
101
|
"/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages": {
|
|
108
102
|
aminoType: "cctp/UnpauseSendingAndReceivingMessages",
|
|
109
|
-
toAmino:
|
|
110
|
-
fromAmino:
|
|
103
|
+
toAmino: MsgUnpauseSendingAndReceivingMessages.toAmino,
|
|
104
|
+
fromAmino: MsgUnpauseSendingAndReceivingMessages.fromAmino
|
|
111
105
|
},
|
|
112
106
|
"/circle.cctp.v1.MsgUpdateOwner": {
|
|
113
107
|
aminoType: "cctp/UpdateOwner",
|
|
114
|
-
toAmino:
|
|
115
|
-
fromAmino:
|
|
108
|
+
toAmino: MsgUpdateOwner.toAmino,
|
|
109
|
+
fromAmino: MsgUpdateOwner.fromAmino
|
|
116
110
|
},
|
|
117
111
|
"/circle.cctp.v1.MsgUpdateAttesterManager": {
|
|
118
112
|
aminoType: "cctp/UpdateAttesterManager",
|
|
119
|
-
toAmino:
|
|
120
|
-
fromAmino:
|
|
113
|
+
toAmino: MsgUpdateAttesterManager.toAmino,
|
|
114
|
+
fromAmino: MsgUpdateAttesterManager.fromAmino
|
|
121
115
|
},
|
|
122
116
|
"/circle.cctp.v1.MsgUpdateTokenController": {
|
|
123
117
|
aminoType: "cctp/UpdateTokenController",
|
|
124
|
-
toAmino:
|
|
125
|
-
fromAmino:
|
|
118
|
+
toAmino: MsgUpdateTokenController.toAmino,
|
|
119
|
+
fromAmino: MsgUpdateTokenController.fromAmino
|
|
126
120
|
},
|
|
127
121
|
"/circle.cctp.v1.MsgUpdatePauser": {
|
|
128
122
|
aminoType: "cctp/UpdatePauser",
|
|
129
|
-
toAmino:
|
|
130
|
-
fromAmino:
|
|
123
|
+
toAmino: MsgUpdatePauser.toAmino,
|
|
124
|
+
fromAmino: MsgUpdatePauser.fromAmino
|
|
131
125
|
},
|
|
132
126
|
"/circle.cctp.v1.MsgUpdateMaxMessageBodySize": {
|
|
133
127
|
aminoType: "cctp/UpdateMaxMessageBodySize",
|
|
134
|
-
toAmino:
|
|
135
|
-
fromAmino:
|
|
128
|
+
toAmino: MsgUpdateMaxMessageBodySize.toAmino,
|
|
129
|
+
fromAmino: MsgUpdateMaxMessageBodySize.fromAmino
|
|
136
130
|
},
|
|
137
131
|
"/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage": {
|
|
138
132
|
aminoType: "cctp/SetMaxBurnAmountPerMessage",
|
|
139
|
-
toAmino:
|
|
140
|
-
fromAmino:
|
|
133
|
+
toAmino: MsgSetMaxBurnAmountPerMessage.toAmino,
|
|
134
|
+
fromAmino: MsgSetMaxBurnAmountPerMessage.fromAmino
|
|
141
135
|
},
|
|
142
136
|
"/circle.cctp.v1.MsgUpdateSignatureThreshold": {
|
|
143
137
|
aminoType: "cctp/UpdateSignatureThreshold",
|
|
144
|
-
toAmino:
|
|
145
|
-
fromAmino:
|
|
138
|
+
toAmino: MsgUpdateSignatureThreshold.toAmino,
|
|
139
|
+
fromAmino: MsgUpdateSignatureThreshold.fromAmino
|
|
146
140
|
}
|
|
147
141
|
};
|
|
148
142
|
|
|
@@ -159,7 +153,7 @@ function createBaseParams() {
|
|
|
159
153
|
}
|
|
160
154
|
var Params = {
|
|
161
155
|
typeUrl: "/evmos.erc20.v1.Params",
|
|
162
|
-
encode(message, writer =
|
|
156
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
163
157
|
if (message.enableErc20 === true) {
|
|
164
158
|
writer.uint32(8).bool(message.enableErc20);
|
|
165
159
|
}
|
|
@@ -169,7 +163,7 @@ var Params = {
|
|
|
169
163
|
return writer;
|
|
170
164
|
},
|
|
171
165
|
decode(input, length) {
|
|
172
|
-
const reader = input instanceof
|
|
166
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
173
167
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
174
168
|
const message = createBaseParams();
|
|
175
169
|
while (reader.pos < end) {
|
|
@@ -190,8 +184,8 @@ var Params = {
|
|
|
190
184
|
},
|
|
191
185
|
fromJSON(object) {
|
|
192
186
|
return {
|
|
193
|
-
enableErc20:
|
|
194
|
-
enableEvmHook:
|
|
187
|
+
enableErc20: isSet(object.enableErc20) ? Boolean(object.enableErc20) : false,
|
|
188
|
+
enableEvmHook: isSet(object.enableEvmHook) ? Boolean(object.enableEvmHook) : false
|
|
195
189
|
};
|
|
196
190
|
},
|
|
197
191
|
toJSON(message) {
|
|
@@ -246,16 +240,16 @@ var Params = {
|
|
|
246
240
|
};
|
|
247
241
|
function createBaseMsgConvertCoin() {
|
|
248
242
|
return {
|
|
249
|
-
coin:
|
|
243
|
+
coin: Coin.fromPartial({}),
|
|
250
244
|
receiver: "",
|
|
251
245
|
sender: ""
|
|
252
246
|
};
|
|
253
247
|
}
|
|
254
248
|
var MsgConvertCoin = {
|
|
255
249
|
typeUrl: "/evmos.erc20.v1.MsgConvertCoin",
|
|
256
|
-
encode(message, writer =
|
|
250
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
257
251
|
if (message.coin !== void 0) {
|
|
258
|
-
|
|
252
|
+
Coin.encode(message.coin, writer.uint32(10).fork()).ldelim();
|
|
259
253
|
}
|
|
260
254
|
if (message.receiver !== "") {
|
|
261
255
|
writer.uint32(18).string(message.receiver);
|
|
@@ -266,14 +260,14 @@ var MsgConvertCoin = {
|
|
|
266
260
|
return writer;
|
|
267
261
|
},
|
|
268
262
|
decode(input, length) {
|
|
269
|
-
const reader = input instanceof
|
|
263
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
270
264
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
271
265
|
const message = createBaseMsgConvertCoin();
|
|
272
266
|
while (reader.pos < end) {
|
|
273
267
|
const tag = reader.uint32();
|
|
274
268
|
switch (tag >>> 3) {
|
|
275
269
|
case 1:
|
|
276
|
-
message.coin =
|
|
270
|
+
message.coin = Coin.decode(reader, reader.uint32());
|
|
277
271
|
break;
|
|
278
272
|
case 2:
|
|
279
273
|
message.receiver = reader.string();
|
|
@@ -290,21 +284,21 @@ var MsgConvertCoin = {
|
|
|
290
284
|
},
|
|
291
285
|
fromJSON(object) {
|
|
292
286
|
return {
|
|
293
|
-
coin:
|
|
294
|
-
receiver:
|
|
295
|
-
sender:
|
|
287
|
+
coin: isSet(object.coin) ? Coin.fromJSON(object.coin) : void 0,
|
|
288
|
+
receiver: isSet(object.receiver) ? String(object.receiver) : "",
|
|
289
|
+
sender: isSet(object.sender) ? String(object.sender) : ""
|
|
296
290
|
};
|
|
297
291
|
},
|
|
298
292
|
toJSON(message) {
|
|
299
293
|
const obj = {};
|
|
300
|
-
message.coin !== void 0 && (obj.coin = message.coin ?
|
|
294
|
+
message.coin !== void 0 && (obj.coin = message.coin ? Coin.toJSON(message.coin) : void 0);
|
|
301
295
|
message.receiver !== void 0 && (obj.receiver = message.receiver);
|
|
302
296
|
message.sender !== void 0 && (obj.sender = message.sender);
|
|
303
297
|
return obj;
|
|
304
298
|
},
|
|
305
299
|
fromPartial(object) {
|
|
306
300
|
const message = createBaseMsgConvertCoin();
|
|
307
|
-
message.coin = object.coin !== void 0 && object.coin !== null ?
|
|
301
|
+
message.coin = object.coin !== void 0 && object.coin !== null ? Coin.fromPartial(object.coin) : void 0;
|
|
308
302
|
message.receiver = object.receiver ?? "";
|
|
309
303
|
message.sender = object.sender ?? "";
|
|
310
304
|
return message;
|
|
@@ -312,7 +306,7 @@ var MsgConvertCoin = {
|
|
|
312
306
|
fromAmino(object) {
|
|
313
307
|
const message = createBaseMsgConvertCoin();
|
|
314
308
|
if (object.coin !== void 0 && object.coin !== null) {
|
|
315
|
-
message.coin =
|
|
309
|
+
message.coin = Coin.fromAmino(object.coin);
|
|
316
310
|
}
|
|
317
311
|
if (object.receiver !== void 0 && object.receiver !== null) {
|
|
318
312
|
message.receiver = object.receiver;
|
|
@@ -324,7 +318,7 @@ var MsgConvertCoin = {
|
|
|
324
318
|
},
|
|
325
319
|
toAmino(message) {
|
|
326
320
|
const obj = {};
|
|
327
|
-
obj.coin = message.coin ?
|
|
321
|
+
obj.coin = message.coin ? Coin.toAmino(message.coin) : void 0;
|
|
328
322
|
obj.receiver = message.receiver === "" ? void 0 : message.receiver;
|
|
329
323
|
obj.sender = message.sender === "" ? void 0 : message.sender;
|
|
330
324
|
return obj;
|
|
@@ -361,7 +355,7 @@ function createBaseMsgConvertERC20() {
|
|
|
361
355
|
}
|
|
362
356
|
var MsgConvertERC20 = {
|
|
363
357
|
typeUrl: "/evmos.erc20.v1.MsgConvertERC20",
|
|
364
|
-
encode(message, writer =
|
|
358
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
365
359
|
if (message.contractAddress !== "") {
|
|
366
360
|
writer.uint32(10).string(message.contractAddress);
|
|
367
361
|
}
|
|
@@ -377,7 +371,7 @@ var MsgConvertERC20 = {
|
|
|
377
371
|
return writer;
|
|
378
372
|
},
|
|
379
373
|
decode(input, length) {
|
|
380
|
-
const reader = input instanceof
|
|
374
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
381
375
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
382
376
|
const message = createBaseMsgConvertERC20();
|
|
383
377
|
while (reader.pos < end) {
|
|
@@ -404,10 +398,10 @@ var MsgConvertERC20 = {
|
|
|
404
398
|
},
|
|
405
399
|
fromJSON(object) {
|
|
406
400
|
return {
|
|
407
|
-
contractAddress:
|
|
408
|
-
amount:
|
|
409
|
-
receiver:
|
|
410
|
-
sender:
|
|
401
|
+
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
402
|
+
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
403
|
+
receiver: isSet(object.receiver) ? String(object.receiver) : "",
|
|
404
|
+
sender: isSet(object.sender) ? String(object.sender) : ""
|
|
411
405
|
};
|
|
412
406
|
},
|
|
413
407
|
toJSON(message) {
|
|
@@ -480,7 +474,7 @@ function createBaseMsgUpdateParams() {
|
|
|
480
474
|
}
|
|
481
475
|
var MsgUpdateParams = {
|
|
482
476
|
typeUrl: "/evmos.erc20.v1.MsgUpdateParams",
|
|
483
|
-
encode(message, writer =
|
|
477
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
484
478
|
if (message.authority !== "") {
|
|
485
479
|
writer.uint32(10).string(message.authority);
|
|
486
480
|
}
|
|
@@ -490,7 +484,7 @@ var MsgUpdateParams = {
|
|
|
490
484
|
return writer;
|
|
491
485
|
},
|
|
492
486
|
decode(input, length) {
|
|
493
|
-
const reader = input instanceof
|
|
487
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
494
488
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
495
489
|
const message = createBaseMsgUpdateParams();
|
|
496
490
|
while (reader.pos < end) {
|
|
@@ -511,8 +505,8 @@ var MsgUpdateParams = {
|
|
|
511
505
|
},
|
|
512
506
|
fromJSON(object) {
|
|
513
507
|
return {
|
|
514
|
-
authority:
|
|
515
|
-
params:
|
|
508
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
509
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : void 0
|
|
516
510
|
};
|
|
517
511
|
},
|
|
518
512
|
toJSON(message) {
|
|
@@ -577,33 +571,33 @@ function createBaseInflationDistribution() {
|
|
|
577
571
|
}
|
|
578
572
|
var InflationDistribution = {
|
|
579
573
|
typeUrl: "/evmos.inflation.v1.InflationDistribution",
|
|
580
|
-
encode(message, writer =
|
|
574
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
581
575
|
if (message.stakingRewards !== "") {
|
|
582
|
-
writer.uint32(10).string(
|
|
576
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.stakingRewards, 18).atomics);
|
|
583
577
|
}
|
|
584
578
|
if (message.usageIncentives !== "") {
|
|
585
|
-
writer.uint32(18).string(
|
|
579
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.usageIncentives, 18).atomics);
|
|
586
580
|
}
|
|
587
581
|
if (message.communityPool !== "") {
|
|
588
|
-
writer.uint32(26).string(
|
|
582
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.communityPool, 18).atomics);
|
|
589
583
|
}
|
|
590
584
|
return writer;
|
|
591
585
|
},
|
|
592
586
|
decode(input, length) {
|
|
593
|
-
const reader = input instanceof
|
|
587
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
594
588
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
595
589
|
const message = createBaseInflationDistribution();
|
|
596
590
|
while (reader.pos < end) {
|
|
597
591
|
const tag = reader.uint32();
|
|
598
592
|
switch (tag >>> 3) {
|
|
599
593
|
case 1:
|
|
600
|
-
message.stakingRewards =
|
|
594
|
+
message.stakingRewards = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
601
595
|
break;
|
|
602
596
|
case 2:
|
|
603
|
-
message.usageIncentives =
|
|
597
|
+
message.usageIncentives = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
604
598
|
break;
|
|
605
599
|
case 3:
|
|
606
|
-
message.communityPool =
|
|
600
|
+
message.communityPool = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
607
601
|
break;
|
|
608
602
|
default:
|
|
609
603
|
reader.skipType(tag & 7);
|
|
@@ -614,9 +608,9 @@ var InflationDistribution = {
|
|
|
614
608
|
},
|
|
615
609
|
fromJSON(object) {
|
|
616
610
|
return {
|
|
617
|
-
stakingRewards:
|
|
618
|
-
usageIncentives:
|
|
619
|
-
communityPool:
|
|
611
|
+
stakingRewards: isSet(object.stakingRewards) ? String(object.stakingRewards) : "",
|
|
612
|
+
usageIncentives: isSet(object.usageIncentives) ? String(object.usageIncentives) : "",
|
|
613
|
+
communityPool: isSet(object.communityPool) ? String(object.communityPool) : ""
|
|
620
614
|
};
|
|
621
615
|
},
|
|
622
616
|
toJSON(message) {
|
|
@@ -648,9 +642,9 @@ var InflationDistribution = {
|
|
|
648
642
|
},
|
|
649
643
|
toAmino(message) {
|
|
650
644
|
const obj = {};
|
|
651
|
-
obj.staking_rewards =
|
|
652
|
-
obj.usage_incentives =
|
|
653
|
-
obj.community_pool =
|
|
645
|
+
obj.staking_rewards = padDecimal(message.stakingRewards) === "" ? void 0 : padDecimal(message.stakingRewards);
|
|
646
|
+
obj.usage_incentives = padDecimal(message.usageIncentives) === "" ? void 0 : padDecimal(message.usageIncentives);
|
|
647
|
+
obj.community_pool = padDecimal(message.communityPool) === "" ? void 0 : padDecimal(message.communityPool);
|
|
654
648
|
return obj;
|
|
655
649
|
},
|
|
656
650
|
fromAminoMsg(object) {
|
|
@@ -686,45 +680,45 @@ function createBaseExponentialCalculation() {
|
|
|
686
680
|
}
|
|
687
681
|
var ExponentialCalculation = {
|
|
688
682
|
typeUrl: "/evmos.inflation.v1.ExponentialCalculation",
|
|
689
|
-
encode(message, writer =
|
|
683
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
690
684
|
if (message.a !== "") {
|
|
691
|
-
writer.uint32(10).string(
|
|
685
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.a, 18).atomics);
|
|
692
686
|
}
|
|
693
687
|
if (message.r !== "") {
|
|
694
|
-
writer.uint32(18).string(
|
|
688
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.r, 18).atomics);
|
|
695
689
|
}
|
|
696
690
|
if (message.c !== "") {
|
|
697
|
-
writer.uint32(26).string(
|
|
691
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.c, 18).atomics);
|
|
698
692
|
}
|
|
699
693
|
if (message.bondingTarget !== "") {
|
|
700
|
-
writer.uint32(34).string(
|
|
694
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.bondingTarget, 18).atomics);
|
|
701
695
|
}
|
|
702
696
|
if (message.maxVariance !== "") {
|
|
703
|
-
writer.uint32(42).string(
|
|
697
|
+
writer.uint32(42).string(Decimal.fromUserInput(message.maxVariance, 18).atomics);
|
|
704
698
|
}
|
|
705
699
|
return writer;
|
|
706
700
|
},
|
|
707
701
|
decode(input, length) {
|
|
708
|
-
const reader = input instanceof
|
|
702
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
709
703
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
710
704
|
const message = createBaseExponentialCalculation();
|
|
711
705
|
while (reader.pos < end) {
|
|
712
706
|
const tag = reader.uint32();
|
|
713
707
|
switch (tag >>> 3) {
|
|
714
708
|
case 1:
|
|
715
|
-
message.a =
|
|
709
|
+
message.a = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
716
710
|
break;
|
|
717
711
|
case 2:
|
|
718
|
-
message.r =
|
|
712
|
+
message.r = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
719
713
|
break;
|
|
720
714
|
case 3:
|
|
721
|
-
message.c =
|
|
715
|
+
message.c = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
722
716
|
break;
|
|
723
717
|
case 4:
|
|
724
|
-
message.bondingTarget =
|
|
718
|
+
message.bondingTarget = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
725
719
|
break;
|
|
726
720
|
case 5:
|
|
727
|
-
message.maxVariance =
|
|
721
|
+
message.maxVariance = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
728
722
|
break;
|
|
729
723
|
default:
|
|
730
724
|
reader.skipType(tag & 7);
|
|
@@ -735,11 +729,11 @@ var ExponentialCalculation = {
|
|
|
735
729
|
},
|
|
736
730
|
fromJSON(object) {
|
|
737
731
|
return {
|
|
738
|
-
a:
|
|
739
|
-
r:
|
|
740
|
-
c:
|
|
741
|
-
bondingTarget:
|
|
742
|
-
maxVariance:
|
|
732
|
+
a: isSet(object.a) ? String(object.a) : "",
|
|
733
|
+
r: isSet(object.r) ? String(object.r) : "",
|
|
734
|
+
c: isSet(object.c) ? String(object.c) : "",
|
|
735
|
+
bondingTarget: isSet(object.bondingTarget) ? String(object.bondingTarget) : "",
|
|
736
|
+
maxVariance: isSet(object.maxVariance) ? String(object.maxVariance) : ""
|
|
743
737
|
};
|
|
744
738
|
},
|
|
745
739
|
toJSON(message) {
|
|
@@ -781,11 +775,11 @@ var ExponentialCalculation = {
|
|
|
781
775
|
},
|
|
782
776
|
toAmino(message) {
|
|
783
777
|
const obj = {};
|
|
784
|
-
obj.a =
|
|
785
|
-
obj.r =
|
|
786
|
-
obj.c =
|
|
787
|
-
obj.bonding_target =
|
|
788
|
-
obj.max_variance =
|
|
778
|
+
obj.a = padDecimal(message.a) === "" ? void 0 : padDecimal(message.a);
|
|
779
|
+
obj.r = padDecimal(message.r) === "" ? void 0 : padDecimal(message.r);
|
|
780
|
+
obj.c = padDecimal(message.c) === "" ? void 0 : padDecimal(message.c);
|
|
781
|
+
obj.bonding_target = padDecimal(message.bondingTarget) === "" ? void 0 : padDecimal(message.bondingTarget);
|
|
782
|
+
obj.max_variance = padDecimal(message.maxVariance) === "" ? void 0 : padDecimal(message.maxVariance);
|
|
789
783
|
return obj;
|
|
790
784
|
},
|
|
791
785
|
fromAminoMsg(object) {
|
|
@@ -820,7 +814,7 @@ function createBaseParams2() {
|
|
|
820
814
|
}
|
|
821
815
|
var Params2 = {
|
|
822
816
|
typeUrl: "/evmos.inflation.v1.Params",
|
|
823
|
-
encode(message, writer =
|
|
817
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
824
818
|
if (message.mintDenom !== "") {
|
|
825
819
|
writer.uint32(10).string(message.mintDenom);
|
|
826
820
|
}
|
|
@@ -836,7 +830,7 @@ var Params2 = {
|
|
|
836
830
|
return writer;
|
|
837
831
|
},
|
|
838
832
|
decode(input, length) {
|
|
839
|
-
const reader = input instanceof
|
|
833
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
840
834
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
841
835
|
const message = createBaseParams2();
|
|
842
836
|
while (reader.pos < end) {
|
|
@@ -863,10 +857,10 @@ var Params2 = {
|
|
|
863
857
|
},
|
|
864
858
|
fromJSON(object) {
|
|
865
859
|
return {
|
|
866
|
-
mintDenom:
|
|
867
|
-
exponentialCalculation:
|
|
868
|
-
inflationDistribution:
|
|
869
|
-
enableInflation:
|
|
860
|
+
mintDenom: isSet(object.mintDenom) ? String(object.mintDenom) : "",
|
|
861
|
+
exponentialCalculation: isSet(object.exponentialCalculation) ? ExponentialCalculation.fromJSON(object.exponentialCalculation) : void 0,
|
|
862
|
+
inflationDistribution: isSet(object.inflationDistribution) ? InflationDistribution.fromJSON(object.inflationDistribution) : void 0,
|
|
863
|
+
enableInflation: isSet(object.enableInflation) ? Boolean(object.enableInflation) : false
|
|
870
864
|
};
|
|
871
865
|
},
|
|
872
866
|
toJSON(message) {
|
|
@@ -939,7 +933,7 @@ function createBaseMsgUpdateParams2() {
|
|
|
939
933
|
}
|
|
940
934
|
var MsgUpdateParams2 = {
|
|
941
935
|
typeUrl: "/evmos.inflation.v1.MsgUpdateParams",
|
|
942
|
-
encode(message, writer =
|
|
936
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
943
937
|
if (message.authority !== "") {
|
|
944
938
|
writer.uint32(10).string(message.authority);
|
|
945
939
|
}
|
|
@@ -949,7 +943,7 @@ var MsgUpdateParams2 = {
|
|
|
949
943
|
return writer;
|
|
950
944
|
},
|
|
951
945
|
decode(input, length) {
|
|
952
|
-
const reader = input instanceof
|
|
946
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
953
947
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
954
948
|
const message = createBaseMsgUpdateParams2();
|
|
955
949
|
while (reader.pos < end) {
|
|
@@ -970,8 +964,8 @@ var MsgUpdateParams2 = {
|
|
|
970
964
|
},
|
|
971
965
|
fromJSON(object) {
|
|
972
966
|
return {
|
|
973
|
-
authority:
|
|
974
|
-
params:
|
|
967
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
968
|
+
params: isSet(object.params) ? Params2.fromJSON(object.params) : void 0
|
|
975
969
|
};
|
|
976
970
|
},
|
|
977
971
|
toJSON(message) {
|
|
@@ -1031,17 +1025,17 @@ function createBaseParams3() {
|
|
|
1031
1025
|
return {
|
|
1032
1026
|
enableRevenue: false,
|
|
1033
1027
|
developerShares: "",
|
|
1034
|
-
addrDerivationCostCreate:
|
|
1028
|
+
addrDerivationCostCreate: Long.UZERO
|
|
1035
1029
|
};
|
|
1036
1030
|
}
|
|
1037
1031
|
var Params3 = {
|
|
1038
1032
|
typeUrl: "/evmos.revenue.v1.Params",
|
|
1039
|
-
encode(message, writer =
|
|
1033
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1040
1034
|
if (message.enableRevenue === true) {
|
|
1041
1035
|
writer.uint32(8).bool(message.enableRevenue);
|
|
1042
1036
|
}
|
|
1043
1037
|
if (message.developerShares !== "") {
|
|
1044
|
-
writer.uint32(18).string(
|
|
1038
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.developerShares, 18).atomics);
|
|
1045
1039
|
}
|
|
1046
1040
|
if (!message.addrDerivationCostCreate.isZero()) {
|
|
1047
1041
|
writer.uint32(24).uint64(message.addrDerivationCostCreate);
|
|
@@ -1049,7 +1043,7 @@ var Params3 = {
|
|
|
1049
1043
|
return writer;
|
|
1050
1044
|
},
|
|
1051
1045
|
decode(input, length) {
|
|
1052
|
-
const reader = input instanceof
|
|
1046
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1053
1047
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1054
1048
|
const message = createBaseParams3();
|
|
1055
1049
|
while (reader.pos < end) {
|
|
@@ -1059,7 +1053,7 @@ var Params3 = {
|
|
|
1059
1053
|
message.enableRevenue = reader.bool();
|
|
1060
1054
|
break;
|
|
1061
1055
|
case 2:
|
|
1062
|
-
message.developerShares =
|
|
1056
|
+
message.developerShares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1063
1057
|
break;
|
|
1064
1058
|
case 3:
|
|
1065
1059
|
message.addrDerivationCostCreate = reader.uint64();
|
|
@@ -1073,23 +1067,23 @@ var Params3 = {
|
|
|
1073
1067
|
},
|
|
1074
1068
|
fromJSON(object) {
|
|
1075
1069
|
return {
|
|
1076
|
-
enableRevenue:
|
|
1077
|
-
developerShares:
|
|
1078
|
-
addrDerivationCostCreate:
|
|
1070
|
+
enableRevenue: isSet(object.enableRevenue) ? Boolean(object.enableRevenue) : false,
|
|
1071
|
+
developerShares: isSet(object.developerShares) ? String(object.developerShares) : "",
|
|
1072
|
+
addrDerivationCostCreate: isSet(object.addrDerivationCostCreate) ? Long.fromValue(object.addrDerivationCostCreate) : Long.UZERO
|
|
1079
1073
|
};
|
|
1080
1074
|
},
|
|
1081
1075
|
toJSON(message) {
|
|
1082
1076
|
const obj = {};
|
|
1083
1077
|
message.enableRevenue !== void 0 && (obj.enableRevenue = message.enableRevenue);
|
|
1084
1078
|
message.developerShares !== void 0 && (obj.developerShares = message.developerShares);
|
|
1085
|
-
message.addrDerivationCostCreate !== void 0 && (obj.addrDerivationCostCreate = (message.addrDerivationCostCreate ||
|
|
1079
|
+
message.addrDerivationCostCreate !== void 0 && (obj.addrDerivationCostCreate = (message.addrDerivationCostCreate || Long.UZERO).toString());
|
|
1086
1080
|
return obj;
|
|
1087
1081
|
},
|
|
1088
1082
|
fromPartial(object) {
|
|
1089
1083
|
const message = createBaseParams3();
|
|
1090
1084
|
message.enableRevenue = object.enableRevenue ?? false;
|
|
1091
1085
|
message.developerShares = object.developerShares ?? "";
|
|
1092
|
-
message.addrDerivationCostCreate = object.addrDerivationCostCreate !== void 0 && object.addrDerivationCostCreate !== null ?
|
|
1086
|
+
message.addrDerivationCostCreate = object.addrDerivationCostCreate !== void 0 && object.addrDerivationCostCreate !== null ? Long.fromValue(object.addrDerivationCostCreate) : Long.UZERO;
|
|
1093
1087
|
return message;
|
|
1094
1088
|
},
|
|
1095
1089
|
fromAmino(object) {
|
|
@@ -1101,14 +1095,14 @@ var Params3 = {
|
|
|
1101
1095
|
message.developerShares = object.developer_shares;
|
|
1102
1096
|
}
|
|
1103
1097
|
if (object.addr_derivation_cost_create !== void 0 && object.addr_derivation_cost_create !== null) {
|
|
1104
|
-
message.addrDerivationCostCreate =
|
|
1098
|
+
message.addrDerivationCostCreate = Long.fromString(object.addr_derivation_cost_create);
|
|
1105
1099
|
}
|
|
1106
1100
|
return message;
|
|
1107
1101
|
},
|
|
1108
1102
|
toAmino(message) {
|
|
1109
1103
|
const obj = {};
|
|
1110
1104
|
obj.enable_revenue = message.enableRevenue === false ? void 0 : message.enableRevenue;
|
|
1111
|
-
obj.developer_shares =
|
|
1105
|
+
obj.developer_shares = padDecimal(message.developerShares) === "" ? void 0 : padDecimal(message.developerShares);
|
|
1112
1106
|
obj.addr_derivation_cost_create = !message.addrDerivationCostCreate.isZero() ? message.addrDerivationCostCreate.toString() : void 0;
|
|
1113
1107
|
return obj;
|
|
1114
1108
|
},
|
|
@@ -1144,7 +1138,7 @@ function createBaseMsgRegisterRevenue() {
|
|
|
1144
1138
|
}
|
|
1145
1139
|
var MsgRegisterRevenue = {
|
|
1146
1140
|
typeUrl: "/evmos.revenue.v1.MsgRegisterRevenue",
|
|
1147
|
-
encode(message, writer =
|
|
1141
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1148
1142
|
if (message.contractAddress !== "") {
|
|
1149
1143
|
writer.uint32(10).string(message.contractAddress);
|
|
1150
1144
|
}
|
|
@@ -1162,7 +1156,7 @@ var MsgRegisterRevenue = {
|
|
|
1162
1156
|
return writer;
|
|
1163
1157
|
},
|
|
1164
1158
|
decode(input, length) {
|
|
1165
|
-
const reader = input instanceof
|
|
1159
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1166
1160
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1167
1161
|
const message = createBaseMsgRegisterRevenue();
|
|
1168
1162
|
while (reader.pos < end) {
|
|
@@ -1196,10 +1190,10 @@ var MsgRegisterRevenue = {
|
|
|
1196
1190
|
},
|
|
1197
1191
|
fromJSON(object) {
|
|
1198
1192
|
return {
|
|
1199
|
-
contractAddress:
|
|
1200
|
-
deployerAddress:
|
|
1201
|
-
withdrawerAddress:
|
|
1202
|
-
nonces: Array.isArray(object?.nonces) ? object.nonces.map((e) =>
|
|
1193
|
+
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
1194
|
+
deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : "",
|
|
1195
|
+
withdrawerAddress: isSet(object.withdrawerAddress) ? String(object.withdrawerAddress) : "",
|
|
1196
|
+
nonces: Array.isArray(object?.nonces) ? object.nonces.map((e) => Long.fromValue(e)) : []
|
|
1203
1197
|
};
|
|
1204
1198
|
},
|
|
1205
1199
|
toJSON(message) {
|
|
@@ -1208,7 +1202,7 @@ var MsgRegisterRevenue = {
|
|
|
1208
1202
|
message.deployerAddress !== void 0 && (obj.deployerAddress = message.deployerAddress);
|
|
1209
1203
|
message.withdrawerAddress !== void 0 && (obj.withdrawerAddress = message.withdrawerAddress);
|
|
1210
1204
|
if (message.nonces) {
|
|
1211
|
-
obj.nonces = message.nonces.map((e) => (e ||
|
|
1205
|
+
obj.nonces = message.nonces.map((e) => (e || Long.UZERO).toString());
|
|
1212
1206
|
} else {
|
|
1213
1207
|
obj.nonces = [];
|
|
1214
1208
|
}
|
|
@@ -1219,7 +1213,7 @@ var MsgRegisterRevenue = {
|
|
|
1219
1213
|
message.contractAddress = object.contractAddress ?? "";
|
|
1220
1214
|
message.deployerAddress = object.deployerAddress ?? "";
|
|
1221
1215
|
message.withdrawerAddress = object.withdrawerAddress ?? "";
|
|
1222
|
-
message.nonces = object.nonces?.map((e) =>
|
|
1216
|
+
message.nonces = object.nonces?.map((e) => Long.fromValue(e)) || [];
|
|
1223
1217
|
return message;
|
|
1224
1218
|
},
|
|
1225
1219
|
fromAmino(object) {
|
|
@@ -1233,7 +1227,7 @@ var MsgRegisterRevenue = {
|
|
|
1233
1227
|
if (object.withdrawer_address !== void 0 && object.withdrawer_address !== null) {
|
|
1234
1228
|
message.withdrawerAddress = object.withdrawer_address;
|
|
1235
1229
|
}
|
|
1236
|
-
message.nonces = object.nonces?.map((e) =>
|
|
1230
|
+
message.nonces = object.nonces?.map((e) => Long.fromString(e)) || [];
|
|
1237
1231
|
return message;
|
|
1238
1232
|
},
|
|
1239
1233
|
toAmino(message) {
|
|
@@ -1279,7 +1273,7 @@ function createBaseMsgUpdateRevenue() {
|
|
|
1279
1273
|
}
|
|
1280
1274
|
var MsgUpdateRevenue = {
|
|
1281
1275
|
typeUrl: "/evmos.revenue.v1.MsgUpdateRevenue",
|
|
1282
|
-
encode(message, writer =
|
|
1276
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1283
1277
|
if (message.contractAddress !== "") {
|
|
1284
1278
|
writer.uint32(10).string(message.contractAddress);
|
|
1285
1279
|
}
|
|
@@ -1292,7 +1286,7 @@ var MsgUpdateRevenue = {
|
|
|
1292
1286
|
return writer;
|
|
1293
1287
|
},
|
|
1294
1288
|
decode(input, length) {
|
|
1295
|
-
const reader = input instanceof
|
|
1289
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1296
1290
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1297
1291
|
const message = createBaseMsgUpdateRevenue();
|
|
1298
1292
|
while (reader.pos < end) {
|
|
@@ -1316,9 +1310,9 @@ var MsgUpdateRevenue = {
|
|
|
1316
1310
|
},
|
|
1317
1311
|
fromJSON(object) {
|
|
1318
1312
|
return {
|
|
1319
|
-
contractAddress:
|
|
1320
|
-
deployerAddress:
|
|
1321
|
-
withdrawerAddress:
|
|
1313
|
+
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
1314
|
+
deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : "",
|
|
1315
|
+
withdrawerAddress: isSet(object.withdrawerAddress) ? String(object.withdrawerAddress) : ""
|
|
1322
1316
|
};
|
|
1323
1317
|
},
|
|
1324
1318
|
toJSON(message) {
|
|
@@ -1385,7 +1379,7 @@ function createBaseMsgCancelRevenue() {
|
|
|
1385
1379
|
}
|
|
1386
1380
|
var MsgCancelRevenue = {
|
|
1387
1381
|
typeUrl: "/evmos.revenue.v1.MsgCancelRevenue",
|
|
1388
|
-
encode(message, writer =
|
|
1382
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1389
1383
|
if (message.contractAddress !== "") {
|
|
1390
1384
|
writer.uint32(10).string(message.contractAddress);
|
|
1391
1385
|
}
|
|
@@ -1395,7 +1389,7 @@ var MsgCancelRevenue = {
|
|
|
1395
1389
|
return writer;
|
|
1396
1390
|
},
|
|
1397
1391
|
decode(input, length) {
|
|
1398
|
-
const reader = input instanceof
|
|
1392
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1399
1393
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1400
1394
|
const message = createBaseMsgCancelRevenue();
|
|
1401
1395
|
while (reader.pos < end) {
|
|
@@ -1416,8 +1410,8 @@ var MsgCancelRevenue = {
|
|
|
1416
1410
|
},
|
|
1417
1411
|
fromJSON(object) {
|
|
1418
1412
|
return {
|
|
1419
|
-
contractAddress:
|
|
1420
|
-
deployerAddress:
|
|
1413
|
+
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
1414
|
+
deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : ""
|
|
1421
1415
|
};
|
|
1422
1416
|
},
|
|
1423
1417
|
toJSON(message) {
|
|
@@ -1478,7 +1472,7 @@ function createBaseMsgUpdateParams3() {
|
|
|
1478
1472
|
}
|
|
1479
1473
|
var MsgUpdateParams3 = {
|
|
1480
1474
|
typeUrl: "/evmos.revenue.v1.MsgUpdateParams",
|
|
1481
|
-
encode(message, writer =
|
|
1475
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1482
1476
|
if (message.authority !== "") {
|
|
1483
1477
|
writer.uint32(10).string(message.authority);
|
|
1484
1478
|
}
|
|
@@ -1488,7 +1482,7 @@ var MsgUpdateParams3 = {
|
|
|
1488
1482
|
return writer;
|
|
1489
1483
|
},
|
|
1490
1484
|
decode(input, length) {
|
|
1491
|
-
const reader = input instanceof
|
|
1485
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1492
1486
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1493
1487
|
const message = createBaseMsgUpdateParams3();
|
|
1494
1488
|
while (reader.pos < end) {
|
|
@@ -1509,8 +1503,8 @@ var MsgUpdateParams3 = {
|
|
|
1509
1503
|
},
|
|
1510
1504
|
fromJSON(object) {
|
|
1511
1505
|
return {
|
|
1512
|
-
authority:
|
|
1513
|
-
params:
|
|
1506
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
1507
|
+
params: isSet(object.params) ? Params3.fromJSON(object.params) : void 0
|
|
1514
1508
|
};
|
|
1515
1509
|
},
|
|
1516
1510
|
toJSON(message) {
|
|
@@ -1575,7 +1569,7 @@ function createBaseMsgCreateClawbackVestingAccount() {
|
|
|
1575
1569
|
}
|
|
1576
1570
|
var MsgCreateClawbackVestingAccount = {
|
|
1577
1571
|
typeUrl: "/evmos.vesting.v2.MsgCreateClawbackVestingAccount",
|
|
1578
|
-
encode(message, writer =
|
|
1572
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1579
1573
|
if (message.funderAddress !== "") {
|
|
1580
1574
|
writer.uint32(10).string(message.funderAddress);
|
|
1581
1575
|
}
|
|
@@ -1588,7 +1582,7 @@ var MsgCreateClawbackVestingAccount = {
|
|
|
1588
1582
|
return writer;
|
|
1589
1583
|
},
|
|
1590
1584
|
decode(input, length) {
|
|
1591
|
-
const reader = input instanceof
|
|
1585
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1592
1586
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1593
1587
|
const message = createBaseMsgCreateClawbackVestingAccount();
|
|
1594
1588
|
while (reader.pos < end) {
|
|
@@ -1612,9 +1606,9 @@ var MsgCreateClawbackVestingAccount = {
|
|
|
1612
1606
|
},
|
|
1613
1607
|
fromJSON(object) {
|
|
1614
1608
|
return {
|
|
1615
|
-
funderAddress:
|
|
1616
|
-
vestingAddress:
|
|
1617
|
-
enableGovClawback:
|
|
1609
|
+
funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
1610
|
+
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : "",
|
|
1611
|
+
enableGovClawback: isSet(object.enableGovClawback) ? Boolean(object.enableGovClawback) : false
|
|
1618
1612
|
};
|
|
1619
1613
|
},
|
|
1620
1614
|
toJSON(message) {
|
|
@@ -1684,7 +1678,7 @@ function createBaseMsgFundVestingAccount() {
|
|
|
1684
1678
|
}
|
|
1685
1679
|
var MsgFundVestingAccount = {
|
|
1686
1680
|
typeUrl: "/evmos.vesting.v2.MsgFundVestingAccount",
|
|
1687
|
-
encode(message, writer =
|
|
1681
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1688
1682
|
if (message.funderAddress !== "") {
|
|
1689
1683
|
writer.uint32(10).string(message.funderAddress);
|
|
1690
1684
|
}
|
|
@@ -1692,18 +1686,18 @@ var MsgFundVestingAccount = {
|
|
|
1692
1686
|
writer.uint32(18).string(message.vestingAddress);
|
|
1693
1687
|
}
|
|
1694
1688
|
if (message.startTime !== void 0) {
|
|
1695
|
-
|
|
1689
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
|
|
1696
1690
|
}
|
|
1697
1691
|
for (const v of message.lockupPeriods) {
|
|
1698
|
-
|
|
1692
|
+
Period.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1699
1693
|
}
|
|
1700
1694
|
for (const v of message.vestingPeriods) {
|
|
1701
|
-
|
|
1695
|
+
Period.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1702
1696
|
}
|
|
1703
1697
|
return writer;
|
|
1704
1698
|
},
|
|
1705
1699
|
decode(input, length) {
|
|
1706
|
-
const reader = input instanceof
|
|
1700
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1707
1701
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1708
1702
|
const message = createBaseMsgFundVestingAccount();
|
|
1709
1703
|
while (reader.pos < end) {
|
|
@@ -1716,13 +1710,13 @@ var MsgFundVestingAccount = {
|
|
|
1716
1710
|
message.vestingAddress = reader.string();
|
|
1717
1711
|
break;
|
|
1718
1712
|
case 3:
|
|
1719
|
-
message.startTime =
|
|
1713
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1720
1714
|
break;
|
|
1721
1715
|
case 4:
|
|
1722
|
-
message.lockupPeriods.push(
|
|
1716
|
+
message.lockupPeriods.push(Period.decode(reader, reader.uint32()));
|
|
1723
1717
|
break;
|
|
1724
1718
|
case 5:
|
|
1725
|
-
message.vestingPeriods.push(
|
|
1719
|
+
message.vestingPeriods.push(Period.decode(reader, reader.uint32()));
|
|
1726
1720
|
break;
|
|
1727
1721
|
default:
|
|
1728
1722
|
reader.skipType(tag & 7);
|
|
@@ -1733,11 +1727,11 @@ var MsgFundVestingAccount = {
|
|
|
1733
1727
|
},
|
|
1734
1728
|
fromJSON(object) {
|
|
1735
1729
|
return {
|
|
1736
|
-
funderAddress:
|
|
1737
|
-
vestingAddress:
|
|
1738
|
-
startTime:
|
|
1739
|
-
lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) =>
|
|
1740
|
-
vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e) =>
|
|
1730
|
+
funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
1731
|
+
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : "",
|
|
1732
|
+
startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : void 0,
|
|
1733
|
+
lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) => Period.fromJSON(e)) : [],
|
|
1734
|
+
vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e) => Period.fromJSON(e)) : []
|
|
1741
1735
|
};
|
|
1742
1736
|
},
|
|
1743
1737
|
toJSON(message) {
|
|
@@ -1746,12 +1740,12 @@ var MsgFundVestingAccount = {
|
|
|
1746
1740
|
message.vestingAddress !== void 0 && (obj.vestingAddress = message.vestingAddress);
|
|
1747
1741
|
message.startTime !== void 0 && (obj.startTime = message.startTime.toISOString());
|
|
1748
1742
|
if (message.lockupPeriods) {
|
|
1749
|
-
obj.lockupPeriods = message.lockupPeriods.map((e) => e ?
|
|
1743
|
+
obj.lockupPeriods = message.lockupPeriods.map((e) => e ? Period.toJSON(e) : void 0);
|
|
1750
1744
|
} else {
|
|
1751
1745
|
obj.lockupPeriods = [];
|
|
1752
1746
|
}
|
|
1753
1747
|
if (message.vestingPeriods) {
|
|
1754
|
-
obj.vestingPeriods = message.vestingPeriods.map((e) => e ?
|
|
1748
|
+
obj.vestingPeriods = message.vestingPeriods.map((e) => e ? Period.toJSON(e) : void 0);
|
|
1755
1749
|
} else {
|
|
1756
1750
|
obj.vestingPeriods = [];
|
|
1757
1751
|
}
|
|
@@ -1762,8 +1756,8 @@ var MsgFundVestingAccount = {
|
|
|
1762
1756
|
message.funderAddress = object.funderAddress ?? "";
|
|
1763
1757
|
message.vestingAddress = object.vestingAddress ?? "";
|
|
1764
1758
|
message.startTime = object.startTime ?? void 0;
|
|
1765
|
-
message.lockupPeriods = object.lockupPeriods?.map((e) =>
|
|
1766
|
-
message.vestingPeriods = object.vestingPeriods?.map((e) =>
|
|
1759
|
+
message.lockupPeriods = object.lockupPeriods?.map((e) => Period.fromPartial(e)) || [];
|
|
1760
|
+
message.vestingPeriods = object.vestingPeriods?.map((e) => Period.fromPartial(e)) || [];
|
|
1767
1761
|
return message;
|
|
1768
1762
|
},
|
|
1769
1763
|
fromAmino(object) {
|
|
@@ -1775,24 +1769,24 @@ var MsgFundVestingAccount = {
|
|
|
1775
1769
|
message.vestingAddress = object.vesting_address;
|
|
1776
1770
|
}
|
|
1777
1771
|
if (object.start_time !== void 0 && object.start_time !== null) {
|
|
1778
|
-
message.startTime =
|
|
1772
|
+
message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
|
|
1779
1773
|
}
|
|
1780
|
-
message.lockupPeriods = object.lockup_periods?.map((e) =>
|
|
1781
|
-
message.vestingPeriods = object.vesting_periods?.map((e) =>
|
|
1774
|
+
message.lockupPeriods = object.lockup_periods?.map((e) => Period.fromAmino(e)) || [];
|
|
1775
|
+
message.vestingPeriods = object.vesting_periods?.map((e) => Period.fromAmino(e)) || [];
|
|
1782
1776
|
return message;
|
|
1783
1777
|
},
|
|
1784
1778
|
toAmino(message) {
|
|
1785
1779
|
const obj = {};
|
|
1786
1780
|
obj.funder_address = message.funderAddress === "" ? void 0 : message.funderAddress;
|
|
1787
1781
|
obj.vesting_address = message.vestingAddress === "" ? void 0 : message.vestingAddress;
|
|
1788
|
-
obj.start_time = message.startTime ?
|
|
1782
|
+
obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : void 0;
|
|
1789
1783
|
if (message.lockupPeriods) {
|
|
1790
|
-
obj.lockup_periods = message.lockupPeriods.map((e) => e ?
|
|
1784
|
+
obj.lockup_periods = message.lockupPeriods.map((e) => e ? Period.toAmino(e) : void 0);
|
|
1791
1785
|
} else {
|
|
1792
1786
|
obj.lockup_periods = message.lockupPeriods;
|
|
1793
1787
|
}
|
|
1794
1788
|
if (message.vestingPeriods) {
|
|
1795
|
-
obj.vesting_periods = message.vestingPeriods.map((e) => e ?
|
|
1789
|
+
obj.vesting_periods = message.vestingPeriods.map((e) => e ? Period.toAmino(e) : void 0);
|
|
1796
1790
|
} else {
|
|
1797
1791
|
obj.vesting_periods = message.vestingPeriods;
|
|
1798
1792
|
}
|
|
@@ -1829,7 +1823,7 @@ function createBaseMsgClawback() {
|
|
|
1829
1823
|
}
|
|
1830
1824
|
var MsgClawback = {
|
|
1831
1825
|
typeUrl: "/evmos.vesting.v2.MsgClawback",
|
|
1832
|
-
encode(message, writer =
|
|
1826
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1833
1827
|
if (message.funderAddress !== "") {
|
|
1834
1828
|
writer.uint32(10).string(message.funderAddress);
|
|
1835
1829
|
}
|
|
@@ -1842,7 +1836,7 @@ var MsgClawback = {
|
|
|
1842
1836
|
return writer;
|
|
1843
1837
|
},
|
|
1844
1838
|
decode(input, length) {
|
|
1845
|
-
const reader = input instanceof
|
|
1839
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1846
1840
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1847
1841
|
const message = createBaseMsgClawback();
|
|
1848
1842
|
while (reader.pos < end) {
|
|
@@ -1866,9 +1860,9 @@ var MsgClawback = {
|
|
|
1866
1860
|
},
|
|
1867
1861
|
fromJSON(object) {
|
|
1868
1862
|
return {
|
|
1869
|
-
funderAddress:
|
|
1870
|
-
accountAddress:
|
|
1871
|
-
destAddress:
|
|
1863
|
+
funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
1864
|
+
accountAddress: isSet(object.accountAddress) ? String(object.accountAddress) : "",
|
|
1865
|
+
destAddress: isSet(object.destAddress) ? String(object.destAddress) : ""
|
|
1872
1866
|
};
|
|
1873
1867
|
},
|
|
1874
1868
|
toJSON(message) {
|
|
@@ -1936,7 +1930,7 @@ function createBaseMsgUpdateVestingFunder() {
|
|
|
1936
1930
|
}
|
|
1937
1931
|
var MsgUpdateVestingFunder = {
|
|
1938
1932
|
typeUrl: "/evmos.vesting.v2.MsgUpdateVestingFunder",
|
|
1939
|
-
encode(message, writer =
|
|
1933
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1940
1934
|
if (message.funderAddress !== "") {
|
|
1941
1935
|
writer.uint32(10).string(message.funderAddress);
|
|
1942
1936
|
}
|
|
@@ -1949,7 +1943,7 @@ var MsgUpdateVestingFunder = {
|
|
|
1949
1943
|
return writer;
|
|
1950
1944
|
},
|
|
1951
1945
|
decode(input, length) {
|
|
1952
|
-
const reader = input instanceof
|
|
1946
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1953
1947
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1954
1948
|
const message = createBaseMsgUpdateVestingFunder();
|
|
1955
1949
|
while (reader.pos < end) {
|
|
@@ -1973,9 +1967,9 @@ var MsgUpdateVestingFunder = {
|
|
|
1973
1967
|
},
|
|
1974
1968
|
fromJSON(object) {
|
|
1975
1969
|
return {
|
|
1976
|
-
funderAddress:
|
|
1977
|
-
newFunderAddress:
|
|
1978
|
-
vestingAddress:
|
|
1970
|
+
funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
1971
|
+
newFunderAddress: isSet(object.newFunderAddress) ? String(object.newFunderAddress) : "",
|
|
1972
|
+
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : ""
|
|
1979
1973
|
};
|
|
1980
1974
|
},
|
|
1981
1975
|
toJSON(message) {
|
|
@@ -2041,14 +2035,14 @@ function createBaseMsgConvertVestingAccount() {
|
|
|
2041
2035
|
}
|
|
2042
2036
|
var MsgConvertVestingAccount = {
|
|
2043
2037
|
typeUrl: "/evmos.vesting.v2.MsgConvertVestingAccount",
|
|
2044
|
-
encode(message, writer =
|
|
2038
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
2045
2039
|
if (message.vestingAddress !== "") {
|
|
2046
2040
|
writer.uint32(10).string(message.vestingAddress);
|
|
2047
2041
|
}
|
|
2048
2042
|
return writer;
|
|
2049
2043
|
},
|
|
2050
2044
|
decode(input, length) {
|
|
2051
|
-
const reader = input instanceof
|
|
2045
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
2052
2046
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2053
2047
|
const message = createBaseMsgConvertVestingAccount();
|
|
2054
2048
|
while (reader.pos < end) {
|
|
@@ -2066,7 +2060,7 @@ var MsgConvertVestingAccount = {
|
|
|
2066
2060
|
},
|
|
2067
2061
|
fromJSON(object) {
|
|
2068
2062
|
return {
|
|
2069
|
-
vestingAddress:
|
|
2063
|
+
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : ""
|
|
2070
2064
|
};
|
|
2071
2065
|
},
|
|
2072
2066
|
toJSON(message) {
|
|
@@ -2207,28 +2201,28 @@ var evmosAminoConverters = {
|
|
|
2207
2201
|
};
|
|
2208
2202
|
var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
|
|
2209
2203
|
var setClientOptions = (options = {}) => {
|
|
2210
|
-
|
|
2204
|
+
ApiState.client = createRequestClient({
|
|
2211
2205
|
baseUrl: options.apiUrl || "https://api.skip.build",
|
|
2212
2206
|
apiKey: options.apiKey
|
|
2213
2207
|
});
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
...
|
|
2217
|
-
...
|
|
2208
|
+
ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2209
|
+
ClientState.aminoTypes = new AminoTypes({
|
|
2210
|
+
...createDefaultAminoConverters(),
|
|
2211
|
+
...createWasmAminoConverters(),
|
|
2218
2212
|
...circleAminoConverters,
|
|
2219
2213
|
...evmosAminoConverters,
|
|
2220
2214
|
...options.aminoTypes ?? {}
|
|
2221
2215
|
});
|
|
2222
|
-
|
|
2223
|
-
...
|
|
2224
|
-
["/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2225
|
-
["/initia.move.v1.MsgExecute",
|
|
2226
|
-
["/opinit.ophost.v1.MsgInitiateTokenDeposit",
|
|
2216
|
+
ClientState.registry = new Registry([
|
|
2217
|
+
...defaultRegistryTypes,
|
|
2218
|
+
["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract],
|
|
2219
|
+
["/initia.move.v1.MsgExecute", MsgExecute],
|
|
2220
|
+
["/opinit.ophost.v1.MsgInitiateTokenDeposit", MsgInitiateTokenDeposit],
|
|
2227
2221
|
...circleProtoRegistry,
|
|
2228
2222
|
...evmosProtoRegistry,
|
|
2229
2223
|
...options.registryTypes ?? []
|
|
2230
2224
|
]);
|
|
2231
|
-
|
|
2225
|
+
ApiState.setClientInitialized();
|
|
2232
2226
|
};
|
|
2233
2227
|
|
|
2234
|
-
|
|
2228
|
+
export { setClientOptions };
|