@skip-go/client 1.0.3 → 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} +186 -186
- package/dist/api/postMessages.js +2 -0
- package/dist/api/{postMessagesDirect.d.cts → postMessagesDirect.d.ts} +185 -185
- 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} +163 -163
- 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-G7BBDZ7C.cjs → chunk-F75DC5RW.js} +182 -208
- 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-5IAEEEOQ.cjs → chunk-PHTQQIAH.js} +220 -243
- 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-SW3SEQMJ.cjs → chunk-SONZJVQM.js} +47 -51
- package/dist/{chunk-KZOSEIWH.cjs → chunk-SWYON2RG.js} +1 -4
- package/dist/{chunk-7OIZPQJB.cjs → chunk-TD63P2AG.js} +111 -174
- 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 -26
- 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.d.cts → getSigningStargateClient.d.ts} +1 -1
- 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-44PBLFB5.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/{swaggerTypes-O9-gvCT1.d.cts → swaggerTypes-O9-gvCT1.d.ts} +0 -0
|
@@ -1,165 +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 aminomessages = require('@cosmjs/cosmwasm-stargate/build/modules/wasm/aminomessages');
|
|
8
|
-
require('@cosmjs/proto-signing');
|
|
9
|
-
require('@cosmjs/tendermint-rpc');
|
|
10
|
-
var _m08 = require('protobufjs/minimal');
|
|
11
|
-
var math = require('@cosmjs/math');
|
|
12
|
-
var registry$1 = require('@cosmjs/proto-signing/build/registry');
|
|
13
|
-
var tx = require('cosmjs-types/cosmwasm/wasm/v1/tx');
|
|
14
|
-
|
|
15
|
-
function _interopNamespace(e) {
|
|
16
|
-
if (e && e.__esModule) return e;
|
|
17
|
-
var n = Object.create(null);
|
|
18
|
-
if (e) {
|
|
19
|
-
Object.keys(e).forEach(function (k) {
|
|
20
|
-
if (k !== 'default') {
|
|
21
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return e[k]; }
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
n.default = e;
|
|
30
|
-
return Object.freeze(n);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
var _m08__namespace = /*#__PURE__*/_interopNamespace(_m08);
|
|
34
|
-
|
|
35
|
-
var registry = [["/circle.cctp.v1.MsgAcceptOwner", chunk7OIZPQJB_cjs.MsgAcceptOwner], ["/circle.cctp.v1.MsgAddRemoteTokenMessenger", chunk7OIZPQJB_cjs.MsgAddRemoteTokenMessenger], ["/circle.cctp.v1.MsgDepositForBurn", chunk7OIZPQJB_cjs.MsgDepositForBurn], ["/circle.cctp.v1.MsgDepositForBurnWithCaller", chunk7OIZPQJB_cjs.MsgDepositForBurnWithCaller], ["/circle.cctp.v1.MsgDisableAttester", chunk7OIZPQJB_cjs.MsgDisableAttester], ["/circle.cctp.v1.MsgEnableAttester", chunk7OIZPQJB_cjs.MsgEnableAttester], ["/circle.cctp.v1.MsgLinkTokenPair", chunk7OIZPQJB_cjs.MsgLinkTokenPair], ["/circle.cctp.v1.MsgPauseBurningAndMinting", chunk7OIZPQJB_cjs.MsgPauseBurningAndMinting], ["/circle.cctp.v1.MsgPauseSendingAndReceivingMessages", chunk7OIZPQJB_cjs.MsgPauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgReceiveMessage", chunk7OIZPQJB_cjs.MsgReceiveMessage], ["/circle.cctp.v1.MsgRemoveRemoteTokenMessenger", chunk7OIZPQJB_cjs.MsgRemoveRemoteTokenMessenger], ["/circle.cctp.v1.MsgReplaceDepositForBurn", chunk7OIZPQJB_cjs.MsgReplaceDepositForBurn], ["/circle.cctp.v1.MsgReplaceMessage", chunk7OIZPQJB_cjs.MsgReplaceMessage], ["/circle.cctp.v1.MsgSendMessage", chunk7OIZPQJB_cjs.MsgSendMessage], ["/circle.cctp.v1.MsgSendMessageWithCaller", chunk7OIZPQJB_cjs.MsgSendMessageWithCaller], ["/circle.cctp.v1.MsgUnlinkTokenPair", chunk7OIZPQJB_cjs.MsgUnlinkTokenPair], ["/circle.cctp.v1.MsgUnpauseBurningAndMinting", chunk7OIZPQJB_cjs.MsgUnpauseBurningAndMinting], ["/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", chunk7OIZPQJB_cjs.MsgUnpauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgUpdateOwner", chunk7OIZPQJB_cjs.MsgUpdateOwner], ["/circle.cctp.v1.MsgUpdateAttesterManager", chunk7OIZPQJB_cjs.MsgUpdateAttesterManager], ["/circle.cctp.v1.MsgUpdateTokenController", chunk7OIZPQJB_cjs.MsgUpdateTokenController], ["/circle.cctp.v1.MsgUpdatePauser", chunk7OIZPQJB_cjs.MsgUpdatePauser], ["/circle.cctp.v1.MsgUpdateMaxMessageBodySize", chunk7OIZPQJB_cjs.MsgUpdateMaxMessageBodySize], ["/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", chunk7OIZPQJB_cjs.MsgSetMaxBurnAmountPerMessage], ["/circle.cctp.v1.MsgUpdateSignatureThreshold", chunk7OIZPQJB_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]];
|
|
36
13
|
|
|
37
14
|
// src/codegen/circle/cctp/v1/tx.amino.ts
|
|
38
15
|
var AminoConverter = {
|
|
39
16
|
"/circle.cctp.v1.MsgAcceptOwner": {
|
|
40
17
|
aminoType: "cctp/AcceptOwner",
|
|
41
|
-
toAmino:
|
|
42
|
-
fromAmino:
|
|
18
|
+
toAmino: MsgAcceptOwner.toAmino,
|
|
19
|
+
fromAmino: MsgAcceptOwner.fromAmino
|
|
43
20
|
},
|
|
44
21
|
"/circle.cctp.v1.MsgAddRemoteTokenMessenger": {
|
|
45
22
|
aminoType: "cctp/AddRemoteTokenMessenger",
|
|
46
|
-
toAmino:
|
|
47
|
-
fromAmino:
|
|
23
|
+
toAmino: MsgAddRemoteTokenMessenger.toAmino,
|
|
24
|
+
fromAmino: MsgAddRemoteTokenMessenger.fromAmino
|
|
48
25
|
},
|
|
49
26
|
"/circle.cctp.v1.MsgDepositForBurn": {
|
|
50
27
|
aminoType: "cctp/DepositForBurn",
|
|
51
|
-
toAmino:
|
|
52
|
-
fromAmino:
|
|
28
|
+
toAmino: MsgDepositForBurn.toAmino,
|
|
29
|
+
fromAmino: MsgDepositForBurn.fromAmino
|
|
53
30
|
},
|
|
54
31
|
"/circle.cctp.v1.MsgDepositForBurnWithCaller": {
|
|
55
32
|
aminoType: "cctp/DepositForBurnWithCaller",
|
|
56
|
-
toAmino:
|
|
57
|
-
fromAmino:
|
|
33
|
+
toAmino: MsgDepositForBurnWithCaller.toAmino,
|
|
34
|
+
fromAmino: MsgDepositForBurnWithCaller.fromAmino
|
|
58
35
|
},
|
|
59
36
|
"/circle.cctp.v1.MsgDisableAttester": {
|
|
60
37
|
aminoType: "cctp/DisableAttester",
|
|
61
|
-
toAmino:
|
|
62
|
-
fromAmino:
|
|
38
|
+
toAmino: MsgDisableAttester.toAmino,
|
|
39
|
+
fromAmino: MsgDisableAttester.fromAmino
|
|
63
40
|
},
|
|
64
41
|
"/circle.cctp.v1.MsgEnableAttester": {
|
|
65
42
|
aminoType: "cctp/EnableAttester",
|
|
66
|
-
toAmino:
|
|
67
|
-
fromAmino:
|
|
43
|
+
toAmino: MsgEnableAttester.toAmino,
|
|
44
|
+
fromAmino: MsgEnableAttester.fromAmino
|
|
68
45
|
},
|
|
69
46
|
"/circle.cctp.v1.MsgLinkTokenPair": {
|
|
70
47
|
aminoType: "cctp/LinkTokenPair",
|
|
71
|
-
toAmino:
|
|
72
|
-
fromAmino:
|
|
48
|
+
toAmino: MsgLinkTokenPair.toAmino,
|
|
49
|
+
fromAmino: MsgLinkTokenPair.fromAmino
|
|
73
50
|
},
|
|
74
51
|
"/circle.cctp.v1.MsgPauseBurningAndMinting": {
|
|
75
52
|
aminoType: "cctp/PauseBurningAndMinting",
|
|
76
|
-
toAmino:
|
|
77
|
-
fromAmino:
|
|
53
|
+
toAmino: MsgPauseBurningAndMinting.toAmino,
|
|
54
|
+
fromAmino: MsgPauseBurningAndMinting.fromAmino
|
|
78
55
|
},
|
|
79
56
|
"/circle.cctp.v1.MsgPauseSendingAndReceivingMessages": {
|
|
80
57
|
aminoType: "cctp/PauseSendingAndReceivingMessages",
|
|
81
|
-
toAmino:
|
|
82
|
-
fromAmino:
|
|
58
|
+
toAmino: MsgPauseSendingAndReceivingMessages.toAmino,
|
|
59
|
+
fromAmino: MsgPauseSendingAndReceivingMessages.fromAmino
|
|
83
60
|
},
|
|
84
61
|
"/circle.cctp.v1.MsgReceiveMessage": {
|
|
85
62
|
aminoType: "cctp/ReceiveMessage",
|
|
86
|
-
toAmino:
|
|
87
|
-
fromAmino:
|
|
63
|
+
toAmino: MsgReceiveMessage.toAmino,
|
|
64
|
+
fromAmino: MsgReceiveMessage.fromAmino
|
|
88
65
|
},
|
|
89
66
|
"/circle.cctp.v1.MsgRemoveRemoteTokenMessenger": {
|
|
90
67
|
aminoType: "cctp/RemoveRemoteTokenMessenger",
|
|
91
|
-
toAmino:
|
|
92
|
-
fromAmino:
|
|
68
|
+
toAmino: MsgRemoveRemoteTokenMessenger.toAmino,
|
|
69
|
+
fromAmino: MsgRemoveRemoteTokenMessenger.fromAmino
|
|
93
70
|
},
|
|
94
71
|
"/circle.cctp.v1.MsgReplaceDepositForBurn": {
|
|
95
72
|
aminoType: "cctp/ReplaceDepositForBurn",
|
|
96
|
-
toAmino:
|
|
97
|
-
fromAmino:
|
|
73
|
+
toAmino: MsgReplaceDepositForBurn.toAmino,
|
|
74
|
+
fromAmino: MsgReplaceDepositForBurn.fromAmino
|
|
98
75
|
},
|
|
99
76
|
"/circle.cctp.v1.MsgReplaceMessage": {
|
|
100
77
|
aminoType: "cctp/ReplaceMessage",
|
|
101
|
-
toAmino:
|
|
102
|
-
fromAmino:
|
|
78
|
+
toAmino: MsgReplaceMessage.toAmino,
|
|
79
|
+
fromAmino: MsgReplaceMessage.fromAmino
|
|
103
80
|
},
|
|
104
81
|
"/circle.cctp.v1.MsgSendMessage": {
|
|
105
82
|
aminoType: "cctp/SendMessage",
|
|
106
|
-
toAmino:
|
|
107
|
-
fromAmino:
|
|
83
|
+
toAmino: MsgSendMessage.toAmino,
|
|
84
|
+
fromAmino: MsgSendMessage.fromAmino
|
|
108
85
|
},
|
|
109
86
|
"/circle.cctp.v1.MsgSendMessageWithCaller": {
|
|
110
87
|
aminoType: "cctp/SendMessageWithCaller",
|
|
111
|
-
toAmino:
|
|
112
|
-
fromAmino:
|
|
88
|
+
toAmino: MsgSendMessageWithCaller.toAmino,
|
|
89
|
+
fromAmino: MsgSendMessageWithCaller.fromAmino
|
|
113
90
|
},
|
|
114
91
|
"/circle.cctp.v1.MsgUnlinkTokenPair": {
|
|
115
92
|
aminoType: "cctp/UnlinkTokenPair",
|
|
116
|
-
toAmino:
|
|
117
|
-
fromAmino:
|
|
93
|
+
toAmino: MsgUnlinkTokenPair.toAmino,
|
|
94
|
+
fromAmino: MsgUnlinkTokenPair.fromAmino
|
|
118
95
|
},
|
|
119
96
|
"/circle.cctp.v1.MsgUnpauseBurningAndMinting": {
|
|
120
97
|
aminoType: "cctp/UnpauseBurningAndMinting",
|
|
121
|
-
toAmino:
|
|
122
|
-
fromAmino:
|
|
98
|
+
toAmino: MsgUnpauseBurningAndMinting.toAmino,
|
|
99
|
+
fromAmino: MsgUnpauseBurningAndMinting.fromAmino
|
|
123
100
|
},
|
|
124
101
|
"/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages": {
|
|
125
102
|
aminoType: "cctp/UnpauseSendingAndReceivingMessages",
|
|
126
|
-
toAmino:
|
|
127
|
-
fromAmino:
|
|
103
|
+
toAmino: MsgUnpauseSendingAndReceivingMessages.toAmino,
|
|
104
|
+
fromAmino: MsgUnpauseSendingAndReceivingMessages.fromAmino
|
|
128
105
|
},
|
|
129
106
|
"/circle.cctp.v1.MsgUpdateOwner": {
|
|
130
107
|
aminoType: "cctp/UpdateOwner",
|
|
131
|
-
toAmino:
|
|
132
|
-
fromAmino:
|
|
108
|
+
toAmino: MsgUpdateOwner.toAmino,
|
|
109
|
+
fromAmino: MsgUpdateOwner.fromAmino
|
|
133
110
|
},
|
|
134
111
|
"/circle.cctp.v1.MsgUpdateAttesterManager": {
|
|
135
112
|
aminoType: "cctp/UpdateAttesterManager",
|
|
136
|
-
toAmino:
|
|
137
|
-
fromAmino:
|
|
113
|
+
toAmino: MsgUpdateAttesterManager.toAmino,
|
|
114
|
+
fromAmino: MsgUpdateAttesterManager.fromAmino
|
|
138
115
|
},
|
|
139
116
|
"/circle.cctp.v1.MsgUpdateTokenController": {
|
|
140
117
|
aminoType: "cctp/UpdateTokenController",
|
|
141
|
-
toAmino:
|
|
142
|
-
fromAmino:
|
|
118
|
+
toAmino: MsgUpdateTokenController.toAmino,
|
|
119
|
+
fromAmino: MsgUpdateTokenController.fromAmino
|
|
143
120
|
},
|
|
144
121
|
"/circle.cctp.v1.MsgUpdatePauser": {
|
|
145
122
|
aminoType: "cctp/UpdatePauser",
|
|
146
|
-
toAmino:
|
|
147
|
-
fromAmino:
|
|
123
|
+
toAmino: MsgUpdatePauser.toAmino,
|
|
124
|
+
fromAmino: MsgUpdatePauser.fromAmino
|
|
148
125
|
},
|
|
149
126
|
"/circle.cctp.v1.MsgUpdateMaxMessageBodySize": {
|
|
150
127
|
aminoType: "cctp/UpdateMaxMessageBodySize",
|
|
151
|
-
toAmino:
|
|
152
|
-
fromAmino:
|
|
128
|
+
toAmino: MsgUpdateMaxMessageBodySize.toAmino,
|
|
129
|
+
fromAmino: MsgUpdateMaxMessageBodySize.fromAmino
|
|
153
130
|
},
|
|
154
131
|
"/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage": {
|
|
155
132
|
aminoType: "cctp/SetMaxBurnAmountPerMessage",
|
|
156
|
-
toAmino:
|
|
157
|
-
fromAmino:
|
|
133
|
+
toAmino: MsgSetMaxBurnAmountPerMessage.toAmino,
|
|
134
|
+
fromAmino: MsgSetMaxBurnAmountPerMessage.fromAmino
|
|
158
135
|
},
|
|
159
136
|
"/circle.cctp.v1.MsgUpdateSignatureThreshold": {
|
|
160
137
|
aminoType: "cctp/UpdateSignatureThreshold",
|
|
161
|
-
toAmino:
|
|
162
|
-
fromAmino:
|
|
138
|
+
toAmino: MsgUpdateSignatureThreshold.toAmino,
|
|
139
|
+
fromAmino: MsgUpdateSignatureThreshold.fromAmino
|
|
163
140
|
}
|
|
164
141
|
};
|
|
165
142
|
|
|
@@ -176,7 +153,7 @@ function createBaseParams() {
|
|
|
176
153
|
}
|
|
177
154
|
var Params = {
|
|
178
155
|
typeUrl: "/evmos.erc20.v1.Params",
|
|
179
|
-
encode(message, writer =
|
|
156
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
180
157
|
if (message.enableErc20 === true) {
|
|
181
158
|
writer.uint32(8).bool(message.enableErc20);
|
|
182
159
|
}
|
|
@@ -186,7 +163,7 @@ var Params = {
|
|
|
186
163
|
return writer;
|
|
187
164
|
},
|
|
188
165
|
decode(input, length) {
|
|
189
|
-
const reader = input instanceof
|
|
166
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
190
167
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
191
168
|
const message = createBaseParams();
|
|
192
169
|
while (reader.pos < end) {
|
|
@@ -207,8 +184,8 @@ var Params = {
|
|
|
207
184
|
},
|
|
208
185
|
fromJSON(object) {
|
|
209
186
|
return {
|
|
210
|
-
enableErc20:
|
|
211
|
-
enableEvmHook:
|
|
187
|
+
enableErc20: isSet(object.enableErc20) ? Boolean(object.enableErc20) : false,
|
|
188
|
+
enableEvmHook: isSet(object.enableEvmHook) ? Boolean(object.enableEvmHook) : false
|
|
212
189
|
};
|
|
213
190
|
},
|
|
214
191
|
toJSON(message) {
|
|
@@ -263,16 +240,16 @@ var Params = {
|
|
|
263
240
|
};
|
|
264
241
|
function createBaseMsgConvertCoin() {
|
|
265
242
|
return {
|
|
266
|
-
coin:
|
|
243
|
+
coin: Coin.fromPartial({}),
|
|
267
244
|
receiver: "",
|
|
268
245
|
sender: ""
|
|
269
246
|
};
|
|
270
247
|
}
|
|
271
248
|
var MsgConvertCoin = {
|
|
272
249
|
typeUrl: "/evmos.erc20.v1.MsgConvertCoin",
|
|
273
|
-
encode(message, writer =
|
|
250
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
274
251
|
if (message.coin !== void 0) {
|
|
275
|
-
|
|
252
|
+
Coin.encode(message.coin, writer.uint32(10).fork()).ldelim();
|
|
276
253
|
}
|
|
277
254
|
if (message.receiver !== "") {
|
|
278
255
|
writer.uint32(18).string(message.receiver);
|
|
@@ -283,14 +260,14 @@ var MsgConvertCoin = {
|
|
|
283
260
|
return writer;
|
|
284
261
|
},
|
|
285
262
|
decode(input, length) {
|
|
286
|
-
const reader = input instanceof
|
|
263
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
287
264
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
288
265
|
const message = createBaseMsgConvertCoin();
|
|
289
266
|
while (reader.pos < end) {
|
|
290
267
|
const tag = reader.uint32();
|
|
291
268
|
switch (tag >>> 3) {
|
|
292
269
|
case 1:
|
|
293
|
-
message.coin =
|
|
270
|
+
message.coin = Coin.decode(reader, reader.uint32());
|
|
294
271
|
break;
|
|
295
272
|
case 2:
|
|
296
273
|
message.receiver = reader.string();
|
|
@@ -307,21 +284,21 @@ var MsgConvertCoin = {
|
|
|
307
284
|
},
|
|
308
285
|
fromJSON(object) {
|
|
309
286
|
return {
|
|
310
|
-
coin:
|
|
311
|
-
receiver:
|
|
312
|
-
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) : ""
|
|
313
290
|
};
|
|
314
291
|
},
|
|
315
292
|
toJSON(message) {
|
|
316
293
|
const obj = {};
|
|
317
|
-
message.coin !== void 0 && (obj.coin = message.coin ?
|
|
294
|
+
message.coin !== void 0 && (obj.coin = message.coin ? Coin.toJSON(message.coin) : void 0);
|
|
318
295
|
message.receiver !== void 0 && (obj.receiver = message.receiver);
|
|
319
296
|
message.sender !== void 0 && (obj.sender = message.sender);
|
|
320
297
|
return obj;
|
|
321
298
|
},
|
|
322
299
|
fromPartial(object) {
|
|
323
300
|
const message = createBaseMsgConvertCoin();
|
|
324
|
-
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;
|
|
325
302
|
message.receiver = object.receiver ?? "";
|
|
326
303
|
message.sender = object.sender ?? "";
|
|
327
304
|
return message;
|
|
@@ -329,7 +306,7 @@ var MsgConvertCoin = {
|
|
|
329
306
|
fromAmino(object) {
|
|
330
307
|
const message = createBaseMsgConvertCoin();
|
|
331
308
|
if (object.coin !== void 0 && object.coin !== null) {
|
|
332
|
-
message.coin =
|
|
309
|
+
message.coin = Coin.fromAmino(object.coin);
|
|
333
310
|
}
|
|
334
311
|
if (object.receiver !== void 0 && object.receiver !== null) {
|
|
335
312
|
message.receiver = object.receiver;
|
|
@@ -341,7 +318,7 @@ var MsgConvertCoin = {
|
|
|
341
318
|
},
|
|
342
319
|
toAmino(message) {
|
|
343
320
|
const obj = {};
|
|
344
|
-
obj.coin = message.coin ?
|
|
321
|
+
obj.coin = message.coin ? Coin.toAmino(message.coin) : void 0;
|
|
345
322
|
obj.receiver = message.receiver === "" ? void 0 : message.receiver;
|
|
346
323
|
obj.sender = message.sender === "" ? void 0 : message.sender;
|
|
347
324
|
return obj;
|
|
@@ -378,7 +355,7 @@ function createBaseMsgConvertERC20() {
|
|
|
378
355
|
}
|
|
379
356
|
var MsgConvertERC20 = {
|
|
380
357
|
typeUrl: "/evmos.erc20.v1.MsgConvertERC20",
|
|
381
|
-
encode(message, writer =
|
|
358
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
382
359
|
if (message.contractAddress !== "") {
|
|
383
360
|
writer.uint32(10).string(message.contractAddress);
|
|
384
361
|
}
|
|
@@ -394,7 +371,7 @@ var MsgConvertERC20 = {
|
|
|
394
371
|
return writer;
|
|
395
372
|
},
|
|
396
373
|
decode(input, length) {
|
|
397
|
-
const reader = input instanceof
|
|
374
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
398
375
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
399
376
|
const message = createBaseMsgConvertERC20();
|
|
400
377
|
while (reader.pos < end) {
|
|
@@ -421,10 +398,10 @@ var MsgConvertERC20 = {
|
|
|
421
398
|
},
|
|
422
399
|
fromJSON(object) {
|
|
423
400
|
return {
|
|
424
|
-
contractAddress:
|
|
425
|
-
amount:
|
|
426
|
-
receiver:
|
|
427
|
-
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) : ""
|
|
428
405
|
};
|
|
429
406
|
},
|
|
430
407
|
toJSON(message) {
|
|
@@ -497,7 +474,7 @@ function createBaseMsgUpdateParams() {
|
|
|
497
474
|
}
|
|
498
475
|
var MsgUpdateParams = {
|
|
499
476
|
typeUrl: "/evmos.erc20.v1.MsgUpdateParams",
|
|
500
|
-
encode(message, writer =
|
|
477
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
501
478
|
if (message.authority !== "") {
|
|
502
479
|
writer.uint32(10).string(message.authority);
|
|
503
480
|
}
|
|
@@ -507,7 +484,7 @@ var MsgUpdateParams = {
|
|
|
507
484
|
return writer;
|
|
508
485
|
},
|
|
509
486
|
decode(input, length) {
|
|
510
|
-
const reader = input instanceof
|
|
487
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
511
488
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
512
489
|
const message = createBaseMsgUpdateParams();
|
|
513
490
|
while (reader.pos < end) {
|
|
@@ -528,8 +505,8 @@ var MsgUpdateParams = {
|
|
|
528
505
|
},
|
|
529
506
|
fromJSON(object) {
|
|
530
507
|
return {
|
|
531
|
-
authority:
|
|
532
|
-
params:
|
|
508
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
509
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : void 0
|
|
533
510
|
};
|
|
534
511
|
},
|
|
535
512
|
toJSON(message) {
|
|
@@ -594,33 +571,33 @@ function createBaseInflationDistribution() {
|
|
|
594
571
|
}
|
|
595
572
|
var InflationDistribution = {
|
|
596
573
|
typeUrl: "/evmos.inflation.v1.InflationDistribution",
|
|
597
|
-
encode(message, writer =
|
|
574
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
598
575
|
if (message.stakingRewards !== "") {
|
|
599
|
-
writer.uint32(10).string(
|
|
576
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.stakingRewards, 18).atomics);
|
|
600
577
|
}
|
|
601
578
|
if (message.usageIncentives !== "") {
|
|
602
|
-
writer.uint32(18).string(
|
|
579
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.usageIncentives, 18).atomics);
|
|
603
580
|
}
|
|
604
581
|
if (message.communityPool !== "") {
|
|
605
|
-
writer.uint32(26).string(
|
|
582
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.communityPool, 18).atomics);
|
|
606
583
|
}
|
|
607
584
|
return writer;
|
|
608
585
|
},
|
|
609
586
|
decode(input, length) {
|
|
610
|
-
const reader = input instanceof
|
|
587
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
611
588
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
612
589
|
const message = createBaseInflationDistribution();
|
|
613
590
|
while (reader.pos < end) {
|
|
614
591
|
const tag = reader.uint32();
|
|
615
592
|
switch (tag >>> 3) {
|
|
616
593
|
case 1:
|
|
617
|
-
message.stakingRewards =
|
|
594
|
+
message.stakingRewards = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
618
595
|
break;
|
|
619
596
|
case 2:
|
|
620
|
-
message.usageIncentives =
|
|
597
|
+
message.usageIncentives = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
621
598
|
break;
|
|
622
599
|
case 3:
|
|
623
|
-
message.communityPool =
|
|
600
|
+
message.communityPool = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
624
601
|
break;
|
|
625
602
|
default:
|
|
626
603
|
reader.skipType(tag & 7);
|
|
@@ -631,9 +608,9 @@ var InflationDistribution = {
|
|
|
631
608
|
},
|
|
632
609
|
fromJSON(object) {
|
|
633
610
|
return {
|
|
634
|
-
stakingRewards:
|
|
635
|
-
usageIncentives:
|
|
636
|
-
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) : ""
|
|
637
614
|
};
|
|
638
615
|
},
|
|
639
616
|
toJSON(message) {
|
|
@@ -665,9 +642,9 @@ var InflationDistribution = {
|
|
|
665
642
|
},
|
|
666
643
|
toAmino(message) {
|
|
667
644
|
const obj = {};
|
|
668
|
-
obj.staking_rewards =
|
|
669
|
-
obj.usage_incentives =
|
|
670
|
-
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);
|
|
671
648
|
return obj;
|
|
672
649
|
},
|
|
673
650
|
fromAminoMsg(object) {
|
|
@@ -703,45 +680,45 @@ function createBaseExponentialCalculation() {
|
|
|
703
680
|
}
|
|
704
681
|
var ExponentialCalculation = {
|
|
705
682
|
typeUrl: "/evmos.inflation.v1.ExponentialCalculation",
|
|
706
|
-
encode(message, writer =
|
|
683
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
707
684
|
if (message.a !== "") {
|
|
708
|
-
writer.uint32(10).string(
|
|
685
|
+
writer.uint32(10).string(Decimal.fromUserInput(message.a, 18).atomics);
|
|
709
686
|
}
|
|
710
687
|
if (message.r !== "") {
|
|
711
|
-
writer.uint32(18).string(
|
|
688
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.r, 18).atomics);
|
|
712
689
|
}
|
|
713
690
|
if (message.c !== "") {
|
|
714
|
-
writer.uint32(26).string(
|
|
691
|
+
writer.uint32(26).string(Decimal.fromUserInput(message.c, 18).atomics);
|
|
715
692
|
}
|
|
716
693
|
if (message.bondingTarget !== "") {
|
|
717
|
-
writer.uint32(34).string(
|
|
694
|
+
writer.uint32(34).string(Decimal.fromUserInput(message.bondingTarget, 18).atomics);
|
|
718
695
|
}
|
|
719
696
|
if (message.maxVariance !== "") {
|
|
720
|
-
writer.uint32(42).string(
|
|
697
|
+
writer.uint32(42).string(Decimal.fromUserInput(message.maxVariance, 18).atomics);
|
|
721
698
|
}
|
|
722
699
|
return writer;
|
|
723
700
|
},
|
|
724
701
|
decode(input, length) {
|
|
725
|
-
const reader = input instanceof
|
|
702
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
726
703
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
727
704
|
const message = createBaseExponentialCalculation();
|
|
728
705
|
while (reader.pos < end) {
|
|
729
706
|
const tag = reader.uint32();
|
|
730
707
|
switch (tag >>> 3) {
|
|
731
708
|
case 1:
|
|
732
|
-
message.a =
|
|
709
|
+
message.a = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
733
710
|
break;
|
|
734
711
|
case 2:
|
|
735
|
-
message.r =
|
|
712
|
+
message.r = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
736
713
|
break;
|
|
737
714
|
case 3:
|
|
738
|
-
message.c =
|
|
715
|
+
message.c = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
739
716
|
break;
|
|
740
717
|
case 4:
|
|
741
|
-
message.bondingTarget =
|
|
718
|
+
message.bondingTarget = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
742
719
|
break;
|
|
743
720
|
case 5:
|
|
744
|
-
message.maxVariance =
|
|
721
|
+
message.maxVariance = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
745
722
|
break;
|
|
746
723
|
default:
|
|
747
724
|
reader.skipType(tag & 7);
|
|
@@ -752,11 +729,11 @@ var ExponentialCalculation = {
|
|
|
752
729
|
},
|
|
753
730
|
fromJSON(object) {
|
|
754
731
|
return {
|
|
755
|
-
a:
|
|
756
|
-
r:
|
|
757
|
-
c:
|
|
758
|
-
bondingTarget:
|
|
759
|
-
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) : ""
|
|
760
737
|
};
|
|
761
738
|
},
|
|
762
739
|
toJSON(message) {
|
|
@@ -798,11 +775,11 @@ var ExponentialCalculation = {
|
|
|
798
775
|
},
|
|
799
776
|
toAmino(message) {
|
|
800
777
|
const obj = {};
|
|
801
|
-
obj.a =
|
|
802
|
-
obj.r =
|
|
803
|
-
obj.c =
|
|
804
|
-
obj.bonding_target =
|
|
805
|
-
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);
|
|
806
783
|
return obj;
|
|
807
784
|
},
|
|
808
785
|
fromAminoMsg(object) {
|
|
@@ -837,7 +814,7 @@ function createBaseParams2() {
|
|
|
837
814
|
}
|
|
838
815
|
var Params2 = {
|
|
839
816
|
typeUrl: "/evmos.inflation.v1.Params",
|
|
840
|
-
encode(message, writer =
|
|
817
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
841
818
|
if (message.mintDenom !== "") {
|
|
842
819
|
writer.uint32(10).string(message.mintDenom);
|
|
843
820
|
}
|
|
@@ -853,7 +830,7 @@ var Params2 = {
|
|
|
853
830
|
return writer;
|
|
854
831
|
},
|
|
855
832
|
decode(input, length) {
|
|
856
|
-
const reader = input instanceof
|
|
833
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
857
834
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
858
835
|
const message = createBaseParams2();
|
|
859
836
|
while (reader.pos < end) {
|
|
@@ -880,10 +857,10 @@ var Params2 = {
|
|
|
880
857
|
},
|
|
881
858
|
fromJSON(object) {
|
|
882
859
|
return {
|
|
883
|
-
mintDenom:
|
|
884
|
-
exponentialCalculation:
|
|
885
|
-
inflationDistribution:
|
|
886
|
-
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
|
|
887
864
|
};
|
|
888
865
|
},
|
|
889
866
|
toJSON(message) {
|
|
@@ -956,7 +933,7 @@ function createBaseMsgUpdateParams2() {
|
|
|
956
933
|
}
|
|
957
934
|
var MsgUpdateParams2 = {
|
|
958
935
|
typeUrl: "/evmos.inflation.v1.MsgUpdateParams",
|
|
959
|
-
encode(message, writer =
|
|
936
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
960
937
|
if (message.authority !== "") {
|
|
961
938
|
writer.uint32(10).string(message.authority);
|
|
962
939
|
}
|
|
@@ -966,7 +943,7 @@ var MsgUpdateParams2 = {
|
|
|
966
943
|
return writer;
|
|
967
944
|
},
|
|
968
945
|
decode(input, length) {
|
|
969
|
-
const reader = input instanceof
|
|
946
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
970
947
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
971
948
|
const message = createBaseMsgUpdateParams2();
|
|
972
949
|
while (reader.pos < end) {
|
|
@@ -987,8 +964,8 @@ var MsgUpdateParams2 = {
|
|
|
987
964
|
},
|
|
988
965
|
fromJSON(object) {
|
|
989
966
|
return {
|
|
990
|
-
authority:
|
|
991
|
-
params:
|
|
967
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
968
|
+
params: isSet(object.params) ? Params2.fromJSON(object.params) : void 0
|
|
992
969
|
};
|
|
993
970
|
},
|
|
994
971
|
toJSON(message) {
|
|
@@ -1048,17 +1025,17 @@ function createBaseParams3() {
|
|
|
1048
1025
|
return {
|
|
1049
1026
|
enableRevenue: false,
|
|
1050
1027
|
developerShares: "",
|
|
1051
|
-
addrDerivationCostCreate:
|
|
1028
|
+
addrDerivationCostCreate: Long.UZERO
|
|
1052
1029
|
};
|
|
1053
1030
|
}
|
|
1054
1031
|
var Params3 = {
|
|
1055
1032
|
typeUrl: "/evmos.revenue.v1.Params",
|
|
1056
|
-
encode(message, writer =
|
|
1033
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1057
1034
|
if (message.enableRevenue === true) {
|
|
1058
1035
|
writer.uint32(8).bool(message.enableRevenue);
|
|
1059
1036
|
}
|
|
1060
1037
|
if (message.developerShares !== "") {
|
|
1061
|
-
writer.uint32(18).string(
|
|
1038
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.developerShares, 18).atomics);
|
|
1062
1039
|
}
|
|
1063
1040
|
if (!message.addrDerivationCostCreate.isZero()) {
|
|
1064
1041
|
writer.uint32(24).uint64(message.addrDerivationCostCreate);
|
|
@@ -1066,7 +1043,7 @@ var Params3 = {
|
|
|
1066
1043
|
return writer;
|
|
1067
1044
|
},
|
|
1068
1045
|
decode(input, length) {
|
|
1069
|
-
const reader = input instanceof
|
|
1046
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1070
1047
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1071
1048
|
const message = createBaseParams3();
|
|
1072
1049
|
while (reader.pos < end) {
|
|
@@ -1076,7 +1053,7 @@ var Params3 = {
|
|
|
1076
1053
|
message.enableRevenue = reader.bool();
|
|
1077
1054
|
break;
|
|
1078
1055
|
case 2:
|
|
1079
|
-
message.developerShares =
|
|
1056
|
+
message.developerShares = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1080
1057
|
break;
|
|
1081
1058
|
case 3:
|
|
1082
1059
|
message.addrDerivationCostCreate = reader.uint64();
|
|
@@ -1090,23 +1067,23 @@ var Params3 = {
|
|
|
1090
1067
|
},
|
|
1091
1068
|
fromJSON(object) {
|
|
1092
1069
|
return {
|
|
1093
|
-
enableRevenue:
|
|
1094
|
-
developerShares:
|
|
1095
|
-
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
|
|
1096
1073
|
};
|
|
1097
1074
|
},
|
|
1098
1075
|
toJSON(message) {
|
|
1099
1076
|
const obj = {};
|
|
1100
1077
|
message.enableRevenue !== void 0 && (obj.enableRevenue = message.enableRevenue);
|
|
1101
1078
|
message.developerShares !== void 0 && (obj.developerShares = message.developerShares);
|
|
1102
|
-
message.addrDerivationCostCreate !== void 0 && (obj.addrDerivationCostCreate = (message.addrDerivationCostCreate ||
|
|
1079
|
+
message.addrDerivationCostCreate !== void 0 && (obj.addrDerivationCostCreate = (message.addrDerivationCostCreate || Long.UZERO).toString());
|
|
1103
1080
|
return obj;
|
|
1104
1081
|
},
|
|
1105
1082
|
fromPartial(object) {
|
|
1106
1083
|
const message = createBaseParams3();
|
|
1107
1084
|
message.enableRevenue = object.enableRevenue ?? false;
|
|
1108
1085
|
message.developerShares = object.developerShares ?? "";
|
|
1109
|
-
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;
|
|
1110
1087
|
return message;
|
|
1111
1088
|
},
|
|
1112
1089
|
fromAmino(object) {
|
|
@@ -1118,14 +1095,14 @@ var Params3 = {
|
|
|
1118
1095
|
message.developerShares = object.developer_shares;
|
|
1119
1096
|
}
|
|
1120
1097
|
if (object.addr_derivation_cost_create !== void 0 && object.addr_derivation_cost_create !== null) {
|
|
1121
|
-
message.addrDerivationCostCreate =
|
|
1098
|
+
message.addrDerivationCostCreate = Long.fromString(object.addr_derivation_cost_create);
|
|
1122
1099
|
}
|
|
1123
1100
|
return message;
|
|
1124
1101
|
},
|
|
1125
1102
|
toAmino(message) {
|
|
1126
1103
|
const obj = {};
|
|
1127
1104
|
obj.enable_revenue = message.enableRevenue === false ? void 0 : message.enableRevenue;
|
|
1128
|
-
obj.developer_shares =
|
|
1105
|
+
obj.developer_shares = padDecimal(message.developerShares) === "" ? void 0 : padDecimal(message.developerShares);
|
|
1129
1106
|
obj.addr_derivation_cost_create = !message.addrDerivationCostCreate.isZero() ? message.addrDerivationCostCreate.toString() : void 0;
|
|
1130
1107
|
return obj;
|
|
1131
1108
|
},
|
|
@@ -1161,7 +1138,7 @@ function createBaseMsgRegisterRevenue() {
|
|
|
1161
1138
|
}
|
|
1162
1139
|
var MsgRegisterRevenue = {
|
|
1163
1140
|
typeUrl: "/evmos.revenue.v1.MsgRegisterRevenue",
|
|
1164
|
-
encode(message, writer =
|
|
1141
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1165
1142
|
if (message.contractAddress !== "") {
|
|
1166
1143
|
writer.uint32(10).string(message.contractAddress);
|
|
1167
1144
|
}
|
|
@@ -1179,7 +1156,7 @@ var MsgRegisterRevenue = {
|
|
|
1179
1156
|
return writer;
|
|
1180
1157
|
},
|
|
1181
1158
|
decode(input, length) {
|
|
1182
|
-
const reader = input instanceof
|
|
1159
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1183
1160
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1184
1161
|
const message = createBaseMsgRegisterRevenue();
|
|
1185
1162
|
while (reader.pos < end) {
|
|
@@ -1213,10 +1190,10 @@ var MsgRegisterRevenue = {
|
|
|
1213
1190
|
},
|
|
1214
1191
|
fromJSON(object) {
|
|
1215
1192
|
return {
|
|
1216
|
-
contractAddress:
|
|
1217
|
-
deployerAddress:
|
|
1218
|
-
withdrawerAddress:
|
|
1219
|
-
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)) : []
|
|
1220
1197
|
};
|
|
1221
1198
|
},
|
|
1222
1199
|
toJSON(message) {
|
|
@@ -1225,7 +1202,7 @@ var MsgRegisterRevenue = {
|
|
|
1225
1202
|
message.deployerAddress !== void 0 && (obj.deployerAddress = message.deployerAddress);
|
|
1226
1203
|
message.withdrawerAddress !== void 0 && (obj.withdrawerAddress = message.withdrawerAddress);
|
|
1227
1204
|
if (message.nonces) {
|
|
1228
|
-
obj.nonces = message.nonces.map((e) => (e ||
|
|
1205
|
+
obj.nonces = message.nonces.map((e) => (e || Long.UZERO).toString());
|
|
1229
1206
|
} else {
|
|
1230
1207
|
obj.nonces = [];
|
|
1231
1208
|
}
|
|
@@ -1236,7 +1213,7 @@ var MsgRegisterRevenue = {
|
|
|
1236
1213
|
message.contractAddress = object.contractAddress ?? "";
|
|
1237
1214
|
message.deployerAddress = object.deployerAddress ?? "";
|
|
1238
1215
|
message.withdrawerAddress = object.withdrawerAddress ?? "";
|
|
1239
|
-
message.nonces = object.nonces?.map((e) =>
|
|
1216
|
+
message.nonces = object.nonces?.map((e) => Long.fromValue(e)) || [];
|
|
1240
1217
|
return message;
|
|
1241
1218
|
},
|
|
1242
1219
|
fromAmino(object) {
|
|
@@ -1250,7 +1227,7 @@ var MsgRegisterRevenue = {
|
|
|
1250
1227
|
if (object.withdrawer_address !== void 0 && object.withdrawer_address !== null) {
|
|
1251
1228
|
message.withdrawerAddress = object.withdrawer_address;
|
|
1252
1229
|
}
|
|
1253
|
-
message.nonces = object.nonces?.map((e) =>
|
|
1230
|
+
message.nonces = object.nonces?.map((e) => Long.fromString(e)) || [];
|
|
1254
1231
|
return message;
|
|
1255
1232
|
},
|
|
1256
1233
|
toAmino(message) {
|
|
@@ -1296,7 +1273,7 @@ function createBaseMsgUpdateRevenue() {
|
|
|
1296
1273
|
}
|
|
1297
1274
|
var MsgUpdateRevenue = {
|
|
1298
1275
|
typeUrl: "/evmos.revenue.v1.MsgUpdateRevenue",
|
|
1299
|
-
encode(message, writer =
|
|
1276
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1300
1277
|
if (message.contractAddress !== "") {
|
|
1301
1278
|
writer.uint32(10).string(message.contractAddress);
|
|
1302
1279
|
}
|
|
@@ -1309,7 +1286,7 @@ var MsgUpdateRevenue = {
|
|
|
1309
1286
|
return writer;
|
|
1310
1287
|
},
|
|
1311
1288
|
decode(input, length) {
|
|
1312
|
-
const reader = input instanceof
|
|
1289
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1313
1290
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1314
1291
|
const message = createBaseMsgUpdateRevenue();
|
|
1315
1292
|
while (reader.pos < end) {
|
|
@@ -1333,9 +1310,9 @@ var MsgUpdateRevenue = {
|
|
|
1333
1310
|
},
|
|
1334
1311
|
fromJSON(object) {
|
|
1335
1312
|
return {
|
|
1336
|
-
contractAddress:
|
|
1337
|
-
deployerAddress:
|
|
1338
|
-
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) : ""
|
|
1339
1316
|
};
|
|
1340
1317
|
},
|
|
1341
1318
|
toJSON(message) {
|
|
@@ -1402,7 +1379,7 @@ function createBaseMsgCancelRevenue() {
|
|
|
1402
1379
|
}
|
|
1403
1380
|
var MsgCancelRevenue = {
|
|
1404
1381
|
typeUrl: "/evmos.revenue.v1.MsgCancelRevenue",
|
|
1405
|
-
encode(message, writer =
|
|
1382
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1406
1383
|
if (message.contractAddress !== "") {
|
|
1407
1384
|
writer.uint32(10).string(message.contractAddress);
|
|
1408
1385
|
}
|
|
@@ -1412,7 +1389,7 @@ var MsgCancelRevenue = {
|
|
|
1412
1389
|
return writer;
|
|
1413
1390
|
},
|
|
1414
1391
|
decode(input, length) {
|
|
1415
|
-
const reader = input instanceof
|
|
1392
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1416
1393
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1417
1394
|
const message = createBaseMsgCancelRevenue();
|
|
1418
1395
|
while (reader.pos < end) {
|
|
@@ -1433,8 +1410,8 @@ var MsgCancelRevenue = {
|
|
|
1433
1410
|
},
|
|
1434
1411
|
fromJSON(object) {
|
|
1435
1412
|
return {
|
|
1436
|
-
contractAddress:
|
|
1437
|
-
deployerAddress:
|
|
1413
|
+
contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
|
|
1414
|
+
deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : ""
|
|
1438
1415
|
};
|
|
1439
1416
|
},
|
|
1440
1417
|
toJSON(message) {
|
|
@@ -1495,7 +1472,7 @@ function createBaseMsgUpdateParams3() {
|
|
|
1495
1472
|
}
|
|
1496
1473
|
var MsgUpdateParams3 = {
|
|
1497
1474
|
typeUrl: "/evmos.revenue.v1.MsgUpdateParams",
|
|
1498
|
-
encode(message, writer =
|
|
1475
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1499
1476
|
if (message.authority !== "") {
|
|
1500
1477
|
writer.uint32(10).string(message.authority);
|
|
1501
1478
|
}
|
|
@@ -1505,7 +1482,7 @@ var MsgUpdateParams3 = {
|
|
|
1505
1482
|
return writer;
|
|
1506
1483
|
},
|
|
1507
1484
|
decode(input, length) {
|
|
1508
|
-
const reader = input instanceof
|
|
1485
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1509
1486
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1510
1487
|
const message = createBaseMsgUpdateParams3();
|
|
1511
1488
|
while (reader.pos < end) {
|
|
@@ -1526,8 +1503,8 @@ var MsgUpdateParams3 = {
|
|
|
1526
1503
|
},
|
|
1527
1504
|
fromJSON(object) {
|
|
1528
1505
|
return {
|
|
1529
|
-
authority:
|
|
1530
|
-
params:
|
|
1506
|
+
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
1507
|
+
params: isSet(object.params) ? Params3.fromJSON(object.params) : void 0
|
|
1531
1508
|
};
|
|
1532
1509
|
},
|
|
1533
1510
|
toJSON(message) {
|
|
@@ -1592,7 +1569,7 @@ function createBaseMsgCreateClawbackVestingAccount() {
|
|
|
1592
1569
|
}
|
|
1593
1570
|
var MsgCreateClawbackVestingAccount = {
|
|
1594
1571
|
typeUrl: "/evmos.vesting.v2.MsgCreateClawbackVestingAccount",
|
|
1595
|
-
encode(message, writer =
|
|
1572
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1596
1573
|
if (message.funderAddress !== "") {
|
|
1597
1574
|
writer.uint32(10).string(message.funderAddress);
|
|
1598
1575
|
}
|
|
@@ -1605,7 +1582,7 @@ var MsgCreateClawbackVestingAccount = {
|
|
|
1605
1582
|
return writer;
|
|
1606
1583
|
},
|
|
1607
1584
|
decode(input, length) {
|
|
1608
|
-
const reader = input instanceof
|
|
1585
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1609
1586
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1610
1587
|
const message = createBaseMsgCreateClawbackVestingAccount();
|
|
1611
1588
|
while (reader.pos < end) {
|
|
@@ -1629,9 +1606,9 @@ var MsgCreateClawbackVestingAccount = {
|
|
|
1629
1606
|
},
|
|
1630
1607
|
fromJSON(object) {
|
|
1631
1608
|
return {
|
|
1632
|
-
funderAddress:
|
|
1633
|
-
vestingAddress:
|
|
1634
|
-
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
|
|
1635
1612
|
};
|
|
1636
1613
|
},
|
|
1637
1614
|
toJSON(message) {
|
|
@@ -1701,7 +1678,7 @@ function createBaseMsgFundVestingAccount() {
|
|
|
1701
1678
|
}
|
|
1702
1679
|
var MsgFundVestingAccount = {
|
|
1703
1680
|
typeUrl: "/evmos.vesting.v2.MsgFundVestingAccount",
|
|
1704
|
-
encode(message, writer =
|
|
1681
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1705
1682
|
if (message.funderAddress !== "") {
|
|
1706
1683
|
writer.uint32(10).string(message.funderAddress);
|
|
1707
1684
|
}
|
|
@@ -1709,18 +1686,18 @@ var MsgFundVestingAccount = {
|
|
|
1709
1686
|
writer.uint32(18).string(message.vestingAddress);
|
|
1710
1687
|
}
|
|
1711
1688
|
if (message.startTime !== void 0) {
|
|
1712
|
-
|
|
1689
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
|
|
1713
1690
|
}
|
|
1714
1691
|
for (const v of message.lockupPeriods) {
|
|
1715
|
-
|
|
1692
|
+
Period.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1716
1693
|
}
|
|
1717
1694
|
for (const v of message.vestingPeriods) {
|
|
1718
|
-
|
|
1695
|
+
Period.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1719
1696
|
}
|
|
1720
1697
|
return writer;
|
|
1721
1698
|
},
|
|
1722
1699
|
decode(input, length) {
|
|
1723
|
-
const reader = input instanceof
|
|
1700
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1724
1701
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1725
1702
|
const message = createBaseMsgFundVestingAccount();
|
|
1726
1703
|
while (reader.pos < end) {
|
|
@@ -1733,13 +1710,13 @@ var MsgFundVestingAccount = {
|
|
|
1733
1710
|
message.vestingAddress = reader.string();
|
|
1734
1711
|
break;
|
|
1735
1712
|
case 3:
|
|
1736
|
-
message.startTime =
|
|
1713
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1737
1714
|
break;
|
|
1738
1715
|
case 4:
|
|
1739
|
-
message.lockupPeriods.push(
|
|
1716
|
+
message.lockupPeriods.push(Period.decode(reader, reader.uint32()));
|
|
1740
1717
|
break;
|
|
1741
1718
|
case 5:
|
|
1742
|
-
message.vestingPeriods.push(
|
|
1719
|
+
message.vestingPeriods.push(Period.decode(reader, reader.uint32()));
|
|
1743
1720
|
break;
|
|
1744
1721
|
default:
|
|
1745
1722
|
reader.skipType(tag & 7);
|
|
@@ -1750,11 +1727,11 @@ var MsgFundVestingAccount = {
|
|
|
1750
1727
|
},
|
|
1751
1728
|
fromJSON(object) {
|
|
1752
1729
|
return {
|
|
1753
|
-
funderAddress:
|
|
1754
|
-
vestingAddress:
|
|
1755
|
-
startTime:
|
|
1756
|
-
lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) =>
|
|
1757
|
-
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)) : []
|
|
1758
1735
|
};
|
|
1759
1736
|
},
|
|
1760
1737
|
toJSON(message) {
|
|
@@ -1763,12 +1740,12 @@ var MsgFundVestingAccount = {
|
|
|
1763
1740
|
message.vestingAddress !== void 0 && (obj.vestingAddress = message.vestingAddress);
|
|
1764
1741
|
message.startTime !== void 0 && (obj.startTime = message.startTime.toISOString());
|
|
1765
1742
|
if (message.lockupPeriods) {
|
|
1766
|
-
obj.lockupPeriods = message.lockupPeriods.map((e) => e ?
|
|
1743
|
+
obj.lockupPeriods = message.lockupPeriods.map((e) => e ? Period.toJSON(e) : void 0);
|
|
1767
1744
|
} else {
|
|
1768
1745
|
obj.lockupPeriods = [];
|
|
1769
1746
|
}
|
|
1770
1747
|
if (message.vestingPeriods) {
|
|
1771
|
-
obj.vestingPeriods = message.vestingPeriods.map((e) => e ?
|
|
1748
|
+
obj.vestingPeriods = message.vestingPeriods.map((e) => e ? Period.toJSON(e) : void 0);
|
|
1772
1749
|
} else {
|
|
1773
1750
|
obj.vestingPeriods = [];
|
|
1774
1751
|
}
|
|
@@ -1779,8 +1756,8 @@ var MsgFundVestingAccount = {
|
|
|
1779
1756
|
message.funderAddress = object.funderAddress ?? "";
|
|
1780
1757
|
message.vestingAddress = object.vestingAddress ?? "";
|
|
1781
1758
|
message.startTime = object.startTime ?? void 0;
|
|
1782
|
-
message.lockupPeriods = object.lockupPeriods?.map((e) =>
|
|
1783
|
-
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)) || [];
|
|
1784
1761
|
return message;
|
|
1785
1762
|
},
|
|
1786
1763
|
fromAmino(object) {
|
|
@@ -1792,24 +1769,24 @@ var MsgFundVestingAccount = {
|
|
|
1792
1769
|
message.vestingAddress = object.vesting_address;
|
|
1793
1770
|
}
|
|
1794
1771
|
if (object.start_time !== void 0 && object.start_time !== null) {
|
|
1795
|
-
message.startTime =
|
|
1772
|
+
message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
|
|
1796
1773
|
}
|
|
1797
|
-
message.lockupPeriods = object.lockup_periods?.map((e) =>
|
|
1798
|
-
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)) || [];
|
|
1799
1776
|
return message;
|
|
1800
1777
|
},
|
|
1801
1778
|
toAmino(message) {
|
|
1802
1779
|
const obj = {};
|
|
1803
1780
|
obj.funder_address = message.funderAddress === "" ? void 0 : message.funderAddress;
|
|
1804
1781
|
obj.vesting_address = message.vestingAddress === "" ? void 0 : message.vestingAddress;
|
|
1805
|
-
obj.start_time = message.startTime ?
|
|
1782
|
+
obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : void 0;
|
|
1806
1783
|
if (message.lockupPeriods) {
|
|
1807
|
-
obj.lockup_periods = message.lockupPeriods.map((e) => e ?
|
|
1784
|
+
obj.lockup_periods = message.lockupPeriods.map((e) => e ? Period.toAmino(e) : void 0);
|
|
1808
1785
|
} else {
|
|
1809
1786
|
obj.lockup_periods = message.lockupPeriods;
|
|
1810
1787
|
}
|
|
1811
1788
|
if (message.vestingPeriods) {
|
|
1812
|
-
obj.vesting_periods = message.vestingPeriods.map((e) => e ?
|
|
1789
|
+
obj.vesting_periods = message.vestingPeriods.map((e) => e ? Period.toAmino(e) : void 0);
|
|
1813
1790
|
} else {
|
|
1814
1791
|
obj.vesting_periods = message.vestingPeriods;
|
|
1815
1792
|
}
|
|
@@ -1846,7 +1823,7 @@ function createBaseMsgClawback() {
|
|
|
1846
1823
|
}
|
|
1847
1824
|
var MsgClawback = {
|
|
1848
1825
|
typeUrl: "/evmos.vesting.v2.MsgClawback",
|
|
1849
|
-
encode(message, writer =
|
|
1826
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1850
1827
|
if (message.funderAddress !== "") {
|
|
1851
1828
|
writer.uint32(10).string(message.funderAddress);
|
|
1852
1829
|
}
|
|
@@ -1859,7 +1836,7 @@ var MsgClawback = {
|
|
|
1859
1836
|
return writer;
|
|
1860
1837
|
},
|
|
1861
1838
|
decode(input, length) {
|
|
1862
|
-
const reader = input instanceof
|
|
1839
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1863
1840
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1864
1841
|
const message = createBaseMsgClawback();
|
|
1865
1842
|
while (reader.pos < end) {
|
|
@@ -1883,9 +1860,9 @@ var MsgClawback = {
|
|
|
1883
1860
|
},
|
|
1884
1861
|
fromJSON(object) {
|
|
1885
1862
|
return {
|
|
1886
|
-
funderAddress:
|
|
1887
|
-
accountAddress:
|
|
1888
|
-
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) : ""
|
|
1889
1866
|
};
|
|
1890
1867
|
},
|
|
1891
1868
|
toJSON(message) {
|
|
@@ -1953,7 +1930,7 @@ function createBaseMsgUpdateVestingFunder() {
|
|
|
1953
1930
|
}
|
|
1954
1931
|
var MsgUpdateVestingFunder = {
|
|
1955
1932
|
typeUrl: "/evmos.vesting.v2.MsgUpdateVestingFunder",
|
|
1956
|
-
encode(message, writer =
|
|
1933
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
1957
1934
|
if (message.funderAddress !== "") {
|
|
1958
1935
|
writer.uint32(10).string(message.funderAddress);
|
|
1959
1936
|
}
|
|
@@ -1966,7 +1943,7 @@ var MsgUpdateVestingFunder = {
|
|
|
1966
1943
|
return writer;
|
|
1967
1944
|
},
|
|
1968
1945
|
decode(input, length) {
|
|
1969
|
-
const reader = input instanceof
|
|
1946
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
1970
1947
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1971
1948
|
const message = createBaseMsgUpdateVestingFunder();
|
|
1972
1949
|
while (reader.pos < end) {
|
|
@@ -1990,9 +1967,9 @@ var MsgUpdateVestingFunder = {
|
|
|
1990
1967
|
},
|
|
1991
1968
|
fromJSON(object) {
|
|
1992
1969
|
return {
|
|
1993
|
-
funderAddress:
|
|
1994
|
-
newFunderAddress:
|
|
1995
|
-
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) : ""
|
|
1996
1973
|
};
|
|
1997
1974
|
},
|
|
1998
1975
|
toJSON(message) {
|
|
@@ -2058,14 +2035,14 @@ function createBaseMsgConvertVestingAccount() {
|
|
|
2058
2035
|
}
|
|
2059
2036
|
var MsgConvertVestingAccount = {
|
|
2060
2037
|
typeUrl: "/evmos.vesting.v2.MsgConvertVestingAccount",
|
|
2061
|
-
encode(message, writer =
|
|
2038
|
+
encode(message, writer = _m08.Writer.create()) {
|
|
2062
2039
|
if (message.vestingAddress !== "") {
|
|
2063
2040
|
writer.uint32(10).string(message.vestingAddress);
|
|
2064
2041
|
}
|
|
2065
2042
|
return writer;
|
|
2066
2043
|
},
|
|
2067
2044
|
decode(input, length) {
|
|
2068
|
-
const reader = input instanceof
|
|
2045
|
+
const reader = input instanceof _m08.Reader ? input : new _m08.Reader(input);
|
|
2069
2046
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2070
2047
|
const message = createBaseMsgConvertVestingAccount();
|
|
2071
2048
|
while (reader.pos < end) {
|
|
@@ -2083,7 +2060,7 @@ var MsgConvertVestingAccount = {
|
|
|
2083
2060
|
},
|
|
2084
2061
|
fromJSON(object) {
|
|
2085
2062
|
return {
|
|
2086
|
-
vestingAddress:
|
|
2063
|
+
vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : ""
|
|
2087
2064
|
};
|
|
2088
2065
|
},
|
|
2089
2066
|
toJSON(message) {
|
|
@@ -2224,28 +2201,28 @@ var evmosAminoConverters = {
|
|
|
2224
2201
|
};
|
|
2225
2202
|
var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
|
|
2226
2203
|
var setClientOptions = (options = {}) => {
|
|
2227
|
-
|
|
2204
|
+
ApiState.client = createRequestClient({
|
|
2228
2205
|
baseUrl: options.apiUrl || "https://api.skip.build",
|
|
2229
2206
|
apiKey: options.apiKey
|
|
2230
2207
|
});
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
...
|
|
2234
|
-
...
|
|
2208
|
+
ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2209
|
+
ClientState.aminoTypes = new AminoTypes({
|
|
2210
|
+
...createDefaultAminoConverters(),
|
|
2211
|
+
...createWasmAminoConverters(),
|
|
2235
2212
|
...circleAminoConverters,
|
|
2236
2213
|
...evmosAminoConverters,
|
|
2237
2214
|
...options.aminoTypes ?? {}
|
|
2238
2215
|
});
|
|
2239
|
-
|
|
2240
|
-
...
|
|
2241
|
-
["/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2242
|
-
["/initia.move.v1.MsgExecute",
|
|
2243
|
-
["/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],
|
|
2244
2221
|
...circleProtoRegistry,
|
|
2245
2222
|
...evmosProtoRegistry,
|
|
2246
2223
|
...options.registryTypes ?? []
|
|
2247
2224
|
]);
|
|
2248
|
-
|
|
2225
|
+
ApiState.setClientInitialized();
|
|
2249
2226
|
};
|
|
2250
2227
|
|
|
2251
|
-
|
|
2228
|
+
export { setClientOptions };
|