@skip-go/client 1.3.7 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/getAssets.cjs +4 -4
- package/dist/cjs/api/getAssetsBetweenChains.cjs +3 -3
- package/dist/cjs/api/getBridges.cjs +3 -3
- package/dist/cjs/api/getChains.cjs +3 -3
- package/dist/cjs/api/getVenues.cjs +3 -3
- package/dist/cjs/api/postAssetsFromSource.cjs +4 -4
- package/dist/cjs/api/postBalances.cjs +3 -3
- package/dist/cjs/api/postIbcOriginAssets.cjs +3 -3
- package/dist/cjs/api/postMessages.cjs +3 -3
- package/dist/cjs/api/postMessagesDirect.cjs +3 -3
- package/dist/cjs/api/postRecommendAssets.cjs +3 -3
- package/dist/cjs/api/postRoute.cjs +3 -3
- package/dist/cjs/api/postSubmitTransaction.cjs +3 -3
- package/dist/cjs/api/postTrackTransaction.cjs +3 -3
- package/dist/cjs/api/postTransactionStatus.cjs +3 -3
- package/dist/cjs/{chunk-2EKCOIWV.cjs → chunk-23YF4LFI.cjs} +185 -154
- package/dist/cjs/chunk-3M7YYWGL.cjs +295 -0
- package/dist/cjs/chunk-4YTACAVP.cjs +185 -0
- package/dist/cjs/{chunk-MW3TE7DC.cjs → chunk-5AYPH3ZR.cjs} +2 -2
- package/dist/cjs/{chunk-2CCLIBCC.cjs → chunk-5HDKZVOL.cjs} +2 -2
- package/dist/cjs/{chunk-YYBGBKRE.cjs → chunk-A26H4FVN.cjs} +4 -4
- package/dist/cjs/{chunk-P7CDAHIX.cjs → chunk-AXYRULAI.cjs} +2 -2
- package/dist/cjs/{chunk-E2P5MVX3.cjs → chunk-CUDPMOR6.cjs} +16 -9
- package/dist/cjs/{chunk-WMXUOVHN.cjs → chunk-DWOE6N5S.cjs} +248 -532
- package/dist/cjs/{chunk-7I2KQNIU.cjs → chunk-EJMC4JXF.cjs} +2 -2
- package/dist/cjs/{chunk-HKQ5VION.cjs → chunk-ERGJBZUC.cjs} +5 -1
- package/dist/cjs/{chunk-J5RC6ZU5.cjs → chunk-FNB244QI.cjs} +6 -6
- package/dist/cjs/chunk-GCJO6DZD.cjs +55 -0
- package/dist/cjs/{chunk-OEYY7NXT.cjs → chunk-HHZGD62Y.cjs} +256 -168
- package/dist/cjs/{chunk-DBDB2XWX.cjs → chunk-JBKNEFXB.cjs} +3 -3
- package/dist/cjs/{chunk-AF7EI5BT.cjs → chunk-K4YAPDUE.cjs} +2 -2
- package/dist/cjs/{chunk-MN6HFZJA.cjs → chunk-KM2D7PJL.cjs} +33 -33
- package/dist/cjs/{chunk-XGBCEYWI.cjs → chunk-LHY62HPI.cjs} +2 -2
- package/dist/cjs/{chunk-EXK2GDR5.cjs → chunk-LUVMRHAJ.cjs} +2 -2
- package/dist/cjs/{chunk-QSISUSYP.cjs → chunk-N4UW74AG.cjs} +4 -4
- package/dist/cjs/{chunk-FY56EEFB.cjs → chunk-OZUCMWNE.cjs} +2 -2
- package/dist/cjs/{chunk-2VQ2TNFM.cjs → chunk-QPM7H2YL.cjs} +2 -2
- package/dist/cjs/{chunk-FO25SR66.cjs → chunk-RCGCQD6T.cjs} +6 -6
- package/dist/cjs/chunk-UIQML2XG.cjs +455 -0
- package/dist/cjs/chunk-VF65UG3E.cjs +214 -0
- package/dist/cjs/{chunk-VKVHMUDR.cjs → chunk-W3KF3V57.cjs} +6 -6
- package/dist/cjs/{chunk-YN66ABRQ.cjs → chunk-X22PL5T7.cjs} +126 -16
- package/dist/cjs/{chunk-DCFIIF7G.cjs → chunk-X5AJHZ2J.cjs} +2 -2
- package/dist/cjs/{chunk-MCZ3F457.cjs → chunk-ZBPDDVQ2.cjs} +2 -2
- package/dist/cjs/index.cjs +66 -54
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +29 -0
- package/dist/cjs/public-functions/executeRoute.cjs +17 -15
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +5 -4
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +5 -5
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +6 -6
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +6 -5
- package/dist/cjs/public-functions/setApiOptions.cjs +3 -3
- package/dist/cjs/public-functions/setClientOptions.cjs +6 -5
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +26 -0
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +9 -8
- package/dist/cjs/public-functions/waitForTransaction.cjs +5 -5
- package/dist/esm/api/getAssets.js +2 -2
- package/dist/esm/api/getAssetsBetweenChains.js +2 -2
- package/dist/esm/api/getBridges.js +2 -2
- package/dist/esm/api/getChains.js +2 -2
- package/dist/esm/api/getVenues.js +2 -2
- package/dist/esm/api/postAssetsFromSource.js +3 -3
- package/dist/esm/api/postBalances.js +2 -2
- package/dist/esm/api/postIbcOriginAssets.js +2 -2
- package/dist/esm/api/postMessages.js +2 -2
- package/dist/esm/api/postMessagesDirect.js +2 -2
- package/dist/esm/api/postRecommendAssets.js +2 -2
- package/dist/esm/api/postRoute.js +2 -2
- package/dist/esm/api/postSubmitTransaction.js +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +2 -1
- package/dist/esm/api/postTrackTransaction.js +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +1 -1
- package/dist/esm/api/postTransactionStatus.js +2 -2
- package/dist/esm/callbacks-CvqAtBJq.d.ts +130 -0
- package/dist/esm/{chunk-SJP6W2SK.js → chunk-3XOGEVJL.js} +1 -1
- package/dist/esm/{chunk-JSY7M43P.js → chunk-52PEBJRQ.js} +1 -1
- package/dist/esm/chunk-7RS3YIVC.js +53 -0
- package/dist/esm/{chunk-7ITTEUMR.js → chunk-7X4ERB3R.js} +1 -1
- package/dist/esm/{chunk-LZI7A4JI.js → chunk-A6KSECAH.js} +5 -1
- package/dist/esm/{chunk-7LSTJXAF.js → chunk-AND7HVIU.js} +1 -1
- package/dist/esm/{chunk-MXCJ2M3K.js → chunk-APRMN34M.js} +1 -1
- package/dist/esm/chunk-AZALP3WR.js +212 -0
- package/dist/esm/{chunk-5JZOTYDC.js → chunk-CX5N7ZLJ.js} +1 -1
- package/dist/esm/{chunk-JYUNVL4F.js → chunk-FH2YHZVV.js} +1 -1
- package/dist/esm/chunk-IUYOY23L.js +180 -0
- package/dist/esm/{chunk-IQQDEBLI.js → chunk-JKN4E5VN.js} +11 -4
- package/dist/esm/{chunk-OHV2LZEG.js → chunk-JQ4F4WBG.js} +1 -1
- package/dist/esm/{chunk-5FKIW2ZL.js → chunk-KLGGCB73.js} +2 -2
- package/dist/esm/{chunk-P76IRSIS.js → chunk-KNXMSLOB.js} +2 -2
- package/dist/esm/{chunk-IWXRHEX4.js → chunk-LHNGF5J2.js} +2 -2
- package/dist/esm/{chunk-KJVD5P3Q.js → chunk-MPSXXWKL.js} +109 -3
- package/dist/esm/{chunk-FFFVITWF.js → chunk-MTAS5XMN.js} +219 -132
- package/dist/esm/{chunk-JIADJKRD.js → chunk-OTS5KO43.js} +1 -1
- package/dist/esm/{chunk-CU6W3622.js → chunk-QIS6ILPS.js} +3 -3
- package/dist/esm/chunk-QO2CYYF5.js +278 -0
- package/dist/esm/{chunk-XXTECZG3.js → chunk-S4RO2LHD.js} +1 -1
- package/dist/esm/{chunk-7YN3UVVF.js → chunk-UI3SIFZN.js} +1 -1
- package/dist/esm/{chunk-TD63P2AG.js → chunk-UIDIKXMB.js} +65 -340
- package/dist/esm/chunk-VUXLWWLF.js +450 -0
- package/dist/esm/{chunk-OL7CWCPB.js → chunk-WBZVMPPV.js} +34 -3
- package/dist/esm/{chunk-HT6O3BQ7.js → chunk-Y2YCODZK.js} +1 -1
- package/dist/esm/{chunk-IPHFFTGO.js → chunk-ZI3SYUQH.js} +1 -1
- package/dist/esm/{chunk-2L7PKZDY.js → chunk-ZOUYAZU6.js} +1 -1
- package/dist/esm/client-types-Dk6ypWdO.d.ts +114 -0
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.js +29 -25
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +60 -0
- package/dist/esm/public-functions/executeMultipleRoutes.js +20 -0
- package/dist/esm/public-functions/executeRoute.d.ts +7 -76
- package/dist/esm/public-functions/executeRoute.js +16 -14
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +3 -2
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +4 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +4 -4
- package/dist/esm/public-functions/getRecommendedGasPrice.js +5 -5
- package/dist/esm/public-functions/getSigningStargateClient.js +5 -4
- package/dist/esm/public-functions/setApiOptions.js +2 -2
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -2
- package/dist/esm/public-functions/setClientOptions.js +5 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +12 -0
- package/dist/esm/public-functions/subscribeToRouteStatus.js +5 -0
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +7 -5
- package/dist/esm/public-functions/validateCosmosGasBalance.js +8 -7
- package/dist/esm/public-functions/waitForTransaction.d.ts +6 -2
- package/dist/esm/public-functions/waitForTransaction.js +4 -4
- package/dist/esm/{setClientOptions-BTRwCbmt.d.ts → setClientOptions-BD8e7m2x.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/cjs/chunk-7H6XRQAX.cjs +0 -185
- package/dist/esm/callbacks-CuL50GnB.d.ts +0 -38
- package/dist/esm/chunk-U6AH2WOP.js +0 -180
- package/dist/esm/client-types-B7Fin0mq.d.ts +0 -61
|
@@ -1,82 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var unit = require('@keplr-wallet/unit');
|
|
3
|
+
var chunk3M7YYWGL_cjs = require('./chunk-3M7YYWGL.cjs');
|
|
4
|
+
var _m04 = require('protobufjs/minimal.js');
|
|
6
5
|
|
|
7
6
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
7
|
|
|
9
|
-
var
|
|
10
|
-
var Long__default = /*#__PURE__*/_interopDefault(Long);
|
|
8
|
+
var _m04__default = /*#__PURE__*/_interopDefault(_m04);
|
|
11
9
|
|
|
12
|
-
// src/codegen/cosmos/base/v1beta1/coin.ts
|
|
13
|
-
if (_m05__default.default.util.Long !== Long__default.default) {
|
|
14
|
-
_m05__default.default.util.Long = Long__default.default;
|
|
15
|
-
_m05__default.default.configure();
|
|
16
|
-
}
|
|
17
|
-
var globalThis = (() => {
|
|
18
|
-
if (typeof globalThis !== "undefined") return globalThis;
|
|
19
|
-
if (typeof self !== "undefined") return self;
|
|
20
|
-
if (typeof window !== "undefined") return window;
|
|
21
|
-
if (typeof global !== "undefined") return global;
|
|
22
|
-
throw "Unable to locate global object";
|
|
23
|
-
})();
|
|
24
|
-
var atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
|
|
25
|
-
function bytesFromBase64(b64) {
|
|
26
|
-
const bin = atob(b64);
|
|
27
|
-
const arr = new Uint8Array(bin.length);
|
|
28
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
29
|
-
arr[i] = bin.charCodeAt(i);
|
|
30
|
-
}
|
|
31
|
-
return arr;
|
|
32
|
-
}
|
|
33
|
-
var btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
|
|
34
|
-
function base64FromBytes(arr) {
|
|
35
|
-
const bin = [];
|
|
36
|
-
arr.forEach((byte) => {
|
|
37
|
-
bin.push(String.fromCharCode(byte));
|
|
38
|
-
});
|
|
39
|
-
return btoa(bin.join(""));
|
|
40
|
-
}
|
|
41
|
-
function isSet(value) {
|
|
42
|
-
return value !== null && value !== void 0;
|
|
43
|
-
}
|
|
44
|
-
function toTimestamp(date) {
|
|
45
|
-
const seconds = numberToLong(date.getTime() / 1e3);
|
|
46
|
-
const nanos = date.getTime() % 1e3 * 1e6;
|
|
47
|
-
return {
|
|
48
|
-
seconds,
|
|
49
|
-
nanos
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function fromTimestamp(t) {
|
|
53
|
-
let millis = t.seconds.toNumber() * 1e3;
|
|
54
|
-
millis += t.nanos / 1e6;
|
|
55
|
-
return new Date(millis);
|
|
56
|
-
}
|
|
57
|
-
var timestampFromJSON = (object) => {
|
|
58
|
-
return {
|
|
59
|
-
seconds: isSet(object.seconds) ? Long__default.default.fromValue(object.seconds) : Long__default.default.ZERO,
|
|
60
|
-
nanos: isSet(object.nanos) ? Number(object.nanos) : 0
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
function fromJsonTimestamp(o) {
|
|
64
|
-
if (o instanceof Date) {
|
|
65
|
-
return toTimestamp(o);
|
|
66
|
-
} else if (typeof o === "string") {
|
|
67
|
-
return toTimestamp(new Date(o));
|
|
68
|
-
} else {
|
|
69
|
-
return timestampFromJSON(o);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function numberToLong(number) {
|
|
73
|
-
return Long__default.default.fromNumber(number);
|
|
74
|
-
}
|
|
75
|
-
function padDecimal(decStr) {
|
|
76
|
-
return decStr ? new unit.Dec(decStr).toString() : decStr;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// src/codegen/cosmos/base/v1beta1/coin.ts
|
|
80
10
|
function createBaseCoin() {
|
|
81
11
|
return {
|
|
82
12
|
denom: "",
|
|
@@ -85,7 +15,7 @@ function createBaseCoin() {
|
|
|
85
15
|
}
|
|
86
16
|
var Coin = {
|
|
87
17
|
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
88
|
-
encode(message, writer =
|
|
18
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
89
19
|
if (message.denom !== "") {
|
|
90
20
|
writer.uint32(10).string(message.denom);
|
|
91
21
|
}
|
|
@@ -95,7 +25,7 @@ var Coin = {
|
|
|
95
25
|
return writer;
|
|
96
26
|
},
|
|
97
27
|
decode(input, length) {
|
|
98
|
-
const reader = input instanceof
|
|
28
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
99
29
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
100
30
|
const message = createBaseCoin();
|
|
101
31
|
while (reader.pos < end) {
|
|
@@ -116,8 +46,8 @@ var Coin = {
|
|
|
116
46
|
},
|
|
117
47
|
fromJSON(object) {
|
|
118
48
|
return {
|
|
119
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
120
|
-
amount: isSet(object.amount) ? String(object.amount) : ""
|
|
49
|
+
denom: chunk3M7YYWGL_cjs.isSet(object.denom) ? String(object.denom) : "",
|
|
50
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? String(object.amount) : ""
|
|
121
51
|
};
|
|
122
52
|
},
|
|
123
53
|
toJSON(message) {
|
|
@@ -173,7 +103,7 @@ var Coin = {
|
|
|
173
103
|
function createBaseMsgInitiateTokenDeposit() {
|
|
174
104
|
return {
|
|
175
105
|
sender: "",
|
|
176
|
-
bridgeId:
|
|
106
|
+
bridgeId: chunk3M7YYWGL_cjs.Long.UZERO,
|
|
177
107
|
to: "",
|
|
178
108
|
amount: Coin.fromPartial({}),
|
|
179
109
|
data: void 0
|
|
@@ -181,7 +111,7 @@ function createBaseMsgInitiateTokenDeposit() {
|
|
|
181
111
|
}
|
|
182
112
|
var MsgInitiateTokenDeposit = {
|
|
183
113
|
typeUrl: "/opinit.ophost.v1.MsgInitiateTokenDeposit",
|
|
184
|
-
encode(message, writer =
|
|
114
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
185
115
|
if (message.sender !== "") {
|
|
186
116
|
writer.uint32(10).string(message.sender);
|
|
187
117
|
}
|
|
@@ -200,7 +130,7 @@ var MsgInitiateTokenDeposit = {
|
|
|
200
130
|
return writer;
|
|
201
131
|
},
|
|
202
132
|
decode(input, length) {
|
|
203
|
-
const reader = input instanceof
|
|
133
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
204
134
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
205
135
|
const message = createBaseMsgInitiateTokenDeposit();
|
|
206
136
|
while (reader.pos < end) {
|
|
@@ -230,26 +160,26 @@ var MsgInitiateTokenDeposit = {
|
|
|
230
160
|
},
|
|
231
161
|
fromJSON(object) {
|
|
232
162
|
return {
|
|
233
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
234
|
-
bridgeId: isSet(object.bridgeId) ?
|
|
235
|
-
to: isSet(object.to) ? String(object.to) : "",
|
|
236
|
-
amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : void 0,
|
|
237
|
-
data: isSet(object.data) ? bytesFromBase64(object.data) : void 0
|
|
163
|
+
sender: chunk3M7YYWGL_cjs.isSet(object.sender) ? String(object.sender) : "",
|
|
164
|
+
bridgeId: chunk3M7YYWGL_cjs.isSet(object.bridgeId) ? chunk3M7YYWGL_cjs.Long.fromValue(object.bridgeId) : chunk3M7YYWGL_cjs.Long.UZERO,
|
|
165
|
+
to: chunk3M7YYWGL_cjs.isSet(object.to) ? String(object.to) : "",
|
|
166
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? Coin.fromJSON(object.amount) : void 0,
|
|
167
|
+
data: chunk3M7YYWGL_cjs.isSet(object.data) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.data) : void 0
|
|
238
168
|
};
|
|
239
169
|
},
|
|
240
170
|
toJSON(message) {
|
|
241
171
|
const obj = {};
|
|
242
172
|
message.sender !== void 0 && (obj.sender = message.sender);
|
|
243
|
-
message.bridgeId !== void 0 && (obj.bridgeId = (message.bridgeId ||
|
|
173
|
+
message.bridgeId !== void 0 && (obj.bridgeId = (message.bridgeId || chunk3M7YYWGL_cjs.Long.UZERO).toString());
|
|
244
174
|
message.to !== void 0 && (obj.to = message.to);
|
|
245
175
|
message.amount !== void 0 && (obj.amount = message.amount ? Coin.toJSON(message.amount) : void 0);
|
|
246
|
-
message.data !== void 0 && (obj.data = message.data !== void 0 ? base64FromBytes(message.data) : void 0);
|
|
176
|
+
message.data !== void 0 && (obj.data = message.data !== void 0 ? chunk3M7YYWGL_cjs.base64FromBytes(message.data) : void 0);
|
|
247
177
|
return obj;
|
|
248
178
|
},
|
|
249
179
|
fromPartial(object) {
|
|
250
180
|
const message = createBaseMsgInitiateTokenDeposit();
|
|
251
181
|
message.sender = object.sender ?? "";
|
|
252
|
-
message.bridgeId = object.bridgeId !== void 0 && object.bridgeId !== null ?
|
|
182
|
+
message.bridgeId = object.bridgeId !== void 0 && object.bridgeId !== null ? chunk3M7YYWGL_cjs.Long.fromValue(object.bridgeId) : chunk3M7YYWGL_cjs.Long.UZERO;
|
|
253
183
|
message.to = object.to ?? "";
|
|
254
184
|
message.amount = object.amount !== void 0 && object.amount !== null ? Coin.fromPartial(object.amount) : void 0;
|
|
255
185
|
message.data = object.data ?? void 0;
|
|
@@ -261,7 +191,7 @@ var MsgInitiateTokenDeposit = {
|
|
|
261
191
|
message.sender = object.sender;
|
|
262
192
|
}
|
|
263
193
|
if (object.bridge_id !== void 0 && object.bridge_id !== null) {
|
|
264
|
-
message.bridgeId =
|
|
194
|
+
message.bridgeId = chunk3M7YYWGL_cjs.Long.fromString(object.bridge_id);
|
|
265
195
|
}
|
|
266
196
|
if (object.to !== void 0 && object.to !== null) {
|
|
267
197
|
message.to = object.to;
|
|
@@ -270,7 +200,7 @@ var MsgInitiateTokenDeposit = {
|
|
|
270
200
|
message.amount = Coin.fromAmino(object.amount);
|
|
271
201
|
}
|
|
272
202
|
if (object.data !== void 0 && object.data !== null) {
|
|
273
|
-
message.data = bytesFromBase64(object.data);
|
|
203
|
+
message.data = chunk3M7YYWGL_cjs.bytesFromBase64(object.data);
|
|
274
204
|
}
|
|
275
205
|
return message;
|
|
276
206
|
},
|
|
@@ -280,7 +210,7 @@ var MsgInitiateTokenDeposit = {
|
|
|
280
210
|
obj.bridge_id = !message.bridgeId.isZero() ? message.bridgeId.toString() : void 0;
|
|
281
211
|
obj.to = message.to === "" ? void 0 : message.to;
|
|
282
212
|
obj.amount = message.amount ? Coin.toAmino(message.amount) : Coin.toAmino(Coin.fromPartial({}));
|
|
283
|
-
obj.data = message.data ? base64FromBytes(message.data) : void 0;
|
|
213
|
+
obj.data = message.data ? chunk3M7YYWGL_cjs.base64FromBytes(message.data) : void 0;
|
|
284
214
|
return obj;
|
|
285
215
|
},
|
|
286
216
|
fromAminoMsg(object) {
|
|
@@ -317,7 +247,7 @@ function createBaseMsgExecute() {
|
|
|
317
247
|
}
|
|
318
248
|
var MsgExecute = {
|
|
319
249
|
typeUrl: "/initia.move.v1.MsgExecute",
|
|
320
|
-
encode(message, writer =
|
|
250
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
321
251
|
if (message.sender !== "") {
|
|
322
252
|
writer.uint32(10).string(message.sender);
|
|
323
253
|
}
|
|
@@ -339,7 +269,7 @@ var MsgExecute = {
|
|
|
339
269
|
return writer;
|
|
340
270
|
},
|
|
341
271
|
decode(input, length) {
|
|
342
|
-
const reader = input instanceof
|
|
272
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
343
273
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
344
274
|
const message = createBaseMsgExecute();
|
|
345
275
|
while (reader.pos < end) {
|
|
@@ -372,12 +302,12 @@ var MsgExecute = {
|
|
|
372
302
|
},
|
|
373
303
|
fromJSON(object) {
|
|
374
304
|
return {
|
|
375
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
376
|
-
moduleAddress: isSet(object.moduleAddress) ? String(object.moduleAddress) : "",
|
|
377
|
-
moduleName: isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
378
|
-
functionName: isSet(object.functionName) ? String(object.functionName) : "",
|
|
305
|
+
sender: chunk3M7YYWGL_cjs.isSet(object.sender) ? String(object.sender) : "",
|
|
306
|
+
moduleAddress: chunk3M7YYWGL_cjs.isSet(object.moduleAddress) ? String(object.moduleAddress) : "",
|
|
307
|
+
moduleName: chunk3M7YYWGL_cjs.isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
308
|
+
functionName: chunk3M7YYWGL_cjs.isSet(object.functionName) ? String(object.functionName) : "",
|
|
379
309
|
typeArgs: Array.isArray(object?.typeArgs) ? object.typeArgs.map((e) => String(e)) : [],
|
|
380
|
-
args: Array.isArray(object?.args) ? object.args.map((e) => bytesFromBase64(e)) : []
|
|
310
|
+
args: Array.isArray(object?.args) ? object.args.map((e) => chunk3M7YYWGL_cjs.bytesFromBase64(e)) : []
|
|
381
311
|
};
|
|
382
312
|
},
|
|
383
313
|
toJSON(message) {
|
|
@@ -392,7 +322,7 @@ var MsgExecute = {
|
|
|
392
322
|
obj.typeArgs = [];
|
|
393
323
|
}
|
|
394
324
|
if (message.args) {
|
|
395
|
-
obj.args = message.args.map((e) => base64FromBytes(e !== void 0 ? e : new Uint8Array()));
|
|
325
|
+
obj.args = message.args.map((e) => chunk3M7YYWGL_cjs.base64FromBytes(e !== void 0 ? e : new Uint8Array()));
|
|
396
326
|
} else {
|
|
397
327
|
obj.args = [];
|
|
398
328
|
}
|
|
@@ -423,7 +353,7 @@ var MsgExecute = {
|
|
|
423
353
|
message.functionName = object.function_name;
|
|
424
354
|
}
|
|
425
355
|
message.typeArgs = object.type_args?.map((e) => e) || [];
|
|
426
|
-
message.args = object.args?.map((e) => bytesFromBase64(e)) || [];
|
|
356
|
+
message.args = object.args?.map((e) => chunk3M7YYWGL_cjs.bytesFromBase64(e)) || [];
|
|
427
357
|
return message;
|
|
428
358
|
},
|
|
429
359
|
toAmino(message) {
|
|
@@ -438,7 +368,7 @@ var MsgExecute = {
|
|
|
438
368
|
obj.type_args = message.typeArgs;
|
|
439
369
|
}
|
|
440
370
|
if (message.args) {
|
|
441
|
-
obj.args = message.args.map((e) => base64FromBytes(e));
|
|
371
|
+
obj.args = message.args.map((e) => chunk3M7YYWGL_cjs.base64FromBytes(e));
|
|
442
372
|
} else {
|
|
443
373
|
obj.args = message.args;
|
|
444
374
|
}
|
|
@@ -468,7 +398,7 @@ function createBaseMsgUpdateOwner() {
|
|
|
468
398
|
}
|
|
469
399
|
var MsgUpdateOwner = {
|
|
470
400
|
typeUrl: "/circle.cctp.v1.MsgUpdateOwner",
|
|
471
|
-
encode(message, writer =
|
|
401
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
472
402
|
if (message.from !== "") {
|
|
473
403
|
writer.uint32(10).string(message.from);
|
|
474
404
|
}
|
|
@@ -478,7 +408,7 @@ var MsgUpdateOwner = {
|
|
|
478
408
|
return writer;
|
|
479
409
|
},
|
|
480
410
|
decode(input, length) {
|
|
481
|
-
const reader = input instanceof
|
|
411
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
482
412
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
483
413
|
const message = createBaseMsgUpdateOwner();
|
|
484
414
|
while (reader.pos < end) {
|
|
@@ -499,8 +429,8 @@ var MsgUpdateOwner = {
|
|
|
499
429
|
},
|
|
500
430
|
fromJSON(object) {
|
|
501
431
|
return {
|
|
502
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
503
|
-
newOwner: isSet(object.newOwner) ? String(object.newOwner) : ""
|
|
432
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
433
|
+
newOwner: chunk3M7YYWGL_cjs.isSet(object.newOwner) ? String(object.newOwner) : ""
|
|
504
434
|
};
|
|
505
435
|
},
|
|
506
436
|
toJSON(message) {
|
|
@@ -561,7 +491,7 @@ function createBaseMsgUpdateAttesterManager() {
|
|
|
561
491
|
}
|
|
562
492
|
var MsgUpdateAttesterManager = {
|
|
563
493
|
typeUrl: "/circle.cctp.v1.MsgUpdateAttesterManager",
|
|
564
|
-
encode(message, writer =
|
|
494
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
565
495
|
if (message.from !== "") {
|
|
566
496
|
writer.uint32(10).string(message.from);
|
|
567
497
|
}
|
|
@@ -571,7 +501,7 @@ var MsgUpdateAttesterManager = {
|
|
|
571
501
|
return writer;
|
|
572
502
|
},
|
|
573
503
|
decode(input, length) {
|
|
574
|
-
const reader = input instanceof
|
|
504
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
575
505
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
576
506
|
const message = createBaseMsgUpdateAttesterManager();
|
|
577
507
|
while (reader.pos < end) {
|
|
@@ -592,8 +522,8 @@ var MsgUpdateAttesterManager = {
|
|
|
592
522
|
},
|
|
593
523
|
fromJSON(object) {
|
|
594
524
|
return {
|
|
595
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
596
|
-
newAttesterManager: isSet(object.newAttesterManager) ? String(object.newAttesterManager) : ""
|
|
525
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
526
|
+
newAttesterManager: chunk3M7YYWGL_cjs.isSet(object.newAttesterManager) ? String(object.newAttesterManager) : ""
|
|
597
527
|
};
|
|
598
528
|
},
|
|
599
529
|
toJSON(message) {
|
|
@@ -654,7 +584,7 @@ function createBaseMsgUpdateTokenController() {
|
|
|
654
584
|
}
|
|
655
585
|
var MsgUpdateTokenController = {
|
|
656
586
|
typeUrl: "/circle.cctp.v1.MsgUpdateTokenController",
|
|
657
|
-
encode(message, writer =
|
|
587
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
658
588
|
if (message.from !== "") {
|
|
659
589
|
writer.uint32(10).string(message.from);
|
|
660
590
|
}
|
|
@@ -664,7 +594,7 @@ var MsgUpdateTokenController = {
|
|
|
664
594
|
return writer;
|
|
665
595
|
},
|
|
666
596
|
decode(input, length) {
|
|
667
|
-
const reader = input instanceof
|
|
597
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
668
598
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
669
599
|
const message = createBaseMsgUpdateTokenController();
|
|
670
600
|
while (reader.pos < end) {
|
|
@@ -685,8 +615,8 @@ var MsgUpdateTokenController = {
|
|
|
685
615
|
},
|
|
686
616
|
fromJSON(object) {
|
|
687
617
|
return {
|
|
688
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
689
|
-
newTokenController: isSet(object.newTokenController) ? String(object.newTokenController) : ""
|
|
618
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
619
|
+
newTokenController: chunk3M7YYWGL_cjs.isSet(object.newTokenController) ? String(object.newTokenController) : ""
|
|
690
620
|
};
|
|
691
621
|
},
|
|
692
622
|
toJSON(message) {
|
|
@@ -747,7 +677,7 @@ function createBaseMsgUpdatePauser() {
|
|
|
747
677
|
}
|
|
748
678
|
var MsgUpdatePauser = {
|
|
749
679
|
typeUrl: "/circle.cctp.v1.MsgUpdatePauser",
|
|
750
|
-
encode(message, writer =
|
|
680
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
751
681
|
if (message.from !== "") {
|
|
752
682
|
writer.uint32(10).string(message.from);
|
|
753
683
|
}
|
|
@@ -757,7 +687,7 @@ var MsgUpdatePauser = {
|
|
|
757
687
|
return writer;
|
|
758
688
|
},
|
|
759
689
|
decode(input, length) {
|
|
760
|
-
const reader = input instanceof
|
|
690
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
761
691
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
762
692
|
const message = createBaseMsgUpdatePauser();
|
|
763
693
|
while (reader.pos < end) {
|
|
@@ -778,8 +708,8 @@ var MsgUpdatePauser = {
|
|
|
778
708
|
},
|
|
779
709
|
fromJSON(object) {
|
|
780
710
|
return {
|
|
781
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
782
|
-
newPauser: isSet(object.newPauser) ? String(object.newPauser) : ""
|
|
711
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
712
|
+
newPauser: chunk3M7YYWGL_cjs.isSet(object.newPauser) ? String(object.newPauser) : ""
|
|
783
713
|
};
|
|
784
714
|
},
|
|
785
715
|
toJSON(message) {
|
|
@@ -839,14 +769,14 @@ function createBaseMsgAcceptOwner() {
|
|
|
839
769
|
}
|
|
840
770
|
var MsgAcceptOwner = {
|
|
841
771
|
typeUrl: "/circle.cctp.v1.MsgAcceptOwner",
|
|
842
|
-
encode(message, writer =
|
|
772
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
843
773
|
if (message.from !== "") {
|
|
844
774
|
writer.uint32(10).string(message.from);
|
|
845
775
|
}
|
|
846
776
|
return writer;
|
|
847
777
|
},
|
|
848
778
|
decode(input, length) {
|
|
849
|
-
const reader = input instanceof
|
|
779
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
850
780
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
851
781
|
const message = createBaseMsgAcceptOwner();
|
|
852
782
|
while (reader.pos < end) {
|
|
@@ -864,7 +794,7 @@ var MsgAcceptOwner = {
|
|
|
864
794
|
},
|
|
865
795
|
fromJSON(object) {
|
|
866
796
|
return {
|
|
867
|
-
from: isSet(object.from) ? String(object.from) : ""
|
|
797
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : ""
|
|
868
798
|
};
|
|
869
799
|
},
|
|
870
800
|
toJSON(message) {
|
|
@@ -919,7 +849,7 @@ function createBaseMsgEnableAttester() {
|
|
|
919
849
|
}
|
|
920
850
|
var MsgEnableAttester = {
|
|
921
851
|
typeUrl: "/circle.cctp.v1.MsgEnableAttester",
|
|
922
|
-
encode(message, writer =
|
|
852
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
923
853
|
if (message.from !== "") {
|
|
924
854
|
writer.uint32(10).string(message.from);
|
|
925
855
|
}
|
|
@@ -929,7 +859,7 @@ var MsgEnableAttester = {
|
|
|
929
859
|
return writer;
|
|
930
860
|
},
|
|
931
861
|
decode(input, length) {
|
|
932
|
-
const reader = input instanceof
|
|
862
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
933
863
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
934
864
|
const message = createBaseMsgEnableAttester();
|
|
935
865
|
while (reader.pos < end) {
|
|
@@ -950,8 +880,8 @@ var MsgEnableAttester = {
|
|
|
950
880
|
},
|
|
951
881
|
fromJSON(object) {
|
|
952
882
|
return {
|
|
953
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
954
|
-
attester: isSet(object.attester) ? String(object.attester) : ""
|
|
883
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
884
|
+
attester: chunk3M7YYWGL_cjs.isSet(object.attester) ? String(object.attester) : ""
|
|
955
885
|
};
|
|
956
886
|
},
|
|
957
887
|
toJSON(message) {
|
|
@@ -1012,7 +942,7 @@ function createBaseMsgDisableAttester() {
|
|
|
1012
942
|
}
|
|
1013
943
|
var MsgDisableAttester = {
|
|
1014
944
|
typeUrl: "/circle.cctp.v1.MsgDisableAttester",
|
|
1015
|
-
encode(message, writer =
|
|
945
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1016
946
|
if (message.from !== "") {
|
|
1017
947
|
writer.uint32(10).string(message.from);
|
|
1018
948
|
}
|
|
@@ -1022,7 +952,7 @@ var MsgDisableAttester = {
|
|
|
1022
952
|
return writer;
|
|
1023
953
|
},
|
|
1024
954
|
decode(input, length) {
|
|
1025
|
-
const reader = input instanceof
|
|
955
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1026
956
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1027
957
|
const message = createBaseMsgDisableAttester();
|
|
1028
958
|
while (reader.pos < end) {
|
|
@@ -1043,8 +973,8 @@ var MsgDisableAttester = {
|
|
|
1043
973
|
},
|
|
1044
974
|
fromJSON(object) {
|
|
1045
975
|
return {
|
|
1046
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1047
|
-
attester: isSet(object.attester) ? String(object.attester) : ""
|
|
976
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
977
|
+
attester: chunk3M7YYWGL_cjs.isSet(object.attester) ? String(object.attester) : ""
|
|
1048
978
|
};
|
|
1049
979
|
},
|
|
1050
980
|
toJSON(message) {
|
|
@@ -1104,14 +1034,14 @@ function createBaseMsgPauseBurningAndMinting() {
|
|
|
1104
1034
|
}
|
|
1105
1035
|
var MsgPauseBurningAndMinting = {
|
|
1106
1036
|
typeUrl: "/circle.cctp.v1.MsgPauseBurningAndMinting",
|
|
1107
|
-
encode(message, writer =
|
|
1037
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1108
1038
|
if (message.from !== "") {
|
|
1109
1039
|
writer.uint32(10).string(message.from);
|
|
1110
1040
|
}
|
|
1111
1041
|
return writer;
|
|
1112
1042
|
},
|
|
1113
1043
|
decode(input, length) {
|
|
1114
|
-
const reader = input instanceof
|
|
1044
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1115
1045
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1116
1046
|
const message = createBaseMsgPauseBurningAndMinting();
|
|
1117
1047
|
while (reader.pos < end) {
|
|
@@ -1129,7 +1059,7 @@ var MsgPauseBurningAndMinting = {
|
|
|
1129
1059
|
},
|
|
1130
1060
|
fromJSON(object) {
|
|
1131
1061
|
return {
|
|
1132
|
-
from: isSet(object.from) ? String(object.from) : ""
|
|
1062
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : ""
|
|
1133
1063
|
};
|
|
1134
1064
|
},
|
|
1135
1065
|
toJSON(message) {
|
|
@@ -1183,14 +1113,14 @@ function createBaseMsgUnpauseBurningAndMinting() {
|
|
|
1183
1113
|
}
|
|
1184
1114
|
var MsgUnpauseBurningAndMinting = {
|
|
1185
1115
|
typeUrl: "/circle.cctp.v1.MsgUnpauseBurningAndMinting",
|
|
1186
|
-
encode(message, writer =
|
|
1116
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1187
1117
|
if (message.from !== "") {
|
|
1188
1118
|
writer.uint32(10).string(message.from);
|
|
1189
1119
|
}
|
|
1190
1120
|
return writer;
|
|
1191
1121
|
},
|
|
1192
1122
|
decode(input, length) {
|
|
1193
|
-
const reader = input instanceof
|
|
1123
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1194
1124
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1195
1125
|
const message = createBaseMsgUnpauseBurningAndMinting();
|
|
1196
1126
|
while (reader.pos < end) {
|
|
@@ -1208,7 +1138,7 @@ var MsgUnpauseBurningAndMinting = {
|
|
|
1208
1138
|
},
|
|
1209
1139
|
fromJSON(object) {
|
|
1210
1140
|
return {
|
|
1211
|
-
from: isSet(object.from) ? String(object.from) : ""
|
|
1141
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : ""
|
|
1212
1142
|
};
|
|
1213
1143
|
},
|
|
1214
1144
|
toJSON(message) {
|
|
@@ -1262,14 +1192,14 @@ function createBaseMsgPauseSendingAndReceivingMessages() {
|
|
|
1262
1192
|
}
|
|
1263
1193
|
var MsgPauseSendingAndReceivingMessages = {
|
|
1264
1194
|
typeUrl: "/circle.cctp.v1.MsgPauseSendingAndReceivingMessages",
|
|
1265
|
-
encode(message, writer =
|
|
1195
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1266
1196
|
if (message.from !== "") {
|
|
1267
1197
|
writer.uint32(10).string(message.from);
|
|
1268
1198
|
}
|
|
1269
1199
|
return writer;
|
|
1270
1200
|
},
|
|
1271
1201
|
decode(input, length) {
|
|
1272
|
-
const reader = input instanceof
|
|
1202
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1273
1203
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1274
1204
|
const message = createBaseMsgPauseSendingAndReceivingMessages();
|
|
1275
1205
|
while (reader.pos < end) {
|
|
@@ -1287,7 +1217,7 @@ var MsgPauseSendingAndReceivingMessages = {
|
|
|
1287
1217
|
},
|
|
1288
1218
|
fromJSON(object) {
|
|
1289
1219
|
return {
|
|
1290
|
-
from: isSet(object.from) ? String(object.from) : ""
|
|
1220
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : ""
|
|
1291
1221
|
};
|
|
1292
1222
|
},
|
|
1293
1223
|
toJSON(message) {
|
|
@@ -1341,14 +1271,14 @@ function createBaseMsgUnpauseSendingAndReceivingMessages() {
|
|
|
1341
1271
|
}
|
|
1342
1272
|
var MsgUnpauseSendingAndReceivingMessages = {
|
|
1343
1273
|
typeUrl: "/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages",
|
|
1344
|
-
encode(message, writer =
|
|
1274
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1345
1275
|
if (message.from !== "") {
|
|
1346
1276
|
writer.uint32(10).string(message.from);
|
|
1347
1277
|
}
|
|
1348
1278
|
return writer;
|
|
1349
1279
|
},
|
|
1350
1280
|
decode(input, length) {
|
|
1351
|
-
const reader = input instanceof
|
|
1281
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1352
1282
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1353
1283
|
const message = createBaseMsgUnpauseSendingAndReceivingMessages();
|
|
1354
1284
|
while (reader.pos < end) {
|
|
@@ -1366,7 +1296,7 @@ var MsgUnpauseSendingAndReceivingMessages = {
|
|
|
1366
1296
|
},
|
|
1367
1297
|
fromJSON(object) {
|
|
1368
1298
|
return {
|
|
1369
|
-
from: isSet(object.from) ? String(object.from) : ""
|
|
1299
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : ""
|
|
1370
1300
|
};
|
|
1371
1301
|
},
|
|
1372
1302
|
toJSON(message) {
|
|
@@ -1416,12 +1346,12 @@ var MsgUnpauseSendingAndReceivingMessages = {
|
|
|
1416
1346
|
function createBaseMsgUpdateMaxMessageBodySize() {
|
|
1417
1347
|
return {
|
|
1418
1348
|
from: "",
|
|
1419
|
-
messageSize:
|
|
1349
|
+
messageSize: chunk3M7YYWGL_cjs.Long.UZERO
|
|
1420
1350
|
};
|
|
1421
1351
|
}
|
|
1422
1352
|
var MsgUpdateMaxMessageBodySize = {
|
|
1423
1353
|
typeUrl: "/circle.cctp.v1.MsgUpdateMaxMessageBodySize",
|
|
1424
|
-
encode(message, writer =
|
|
1354
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1425
1355
|
if (message.from !== "") {
|
|
1426
1356
|
writer.uint32(10).string(message.from);
|
|
1427
1357
|
}
|
|
@@ -1431,7 +1361,7 @@ var MsgUpdateMaxMessageBodySize = {
|
|
|
1431
1361
|
return writer;
|
|
1432
1362
|
},
|
|
1433
1363
|
decode(input, length) {
|
|
1434
|
-
const reader = input instanceof
|
|
1364
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1435
1365
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1436
1366
|
const message = createBaseMsgUpdateMaxMessageBodySize();
|
|
1437
1367
|
while (reader.pos < end) {
|
|
@@ -1452,20 +1382,20 @@ var MsgUpdateMaxMessageBodySize = {
|
|
|
1452
1382
|
},
|
|
1453
1383
|
fromJSON(object) {
|
|
1454
1384
|
return {
|
|
1455
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1456
|
-
messageSize: isSet(object.messageSize) ?
|
|
1385
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
1386
|
+
messageSize: chunk3M7YYWGL_cjs.isSet(object.messageSize) ? chunk3M7YYWGL_cjs.Long.fromValue(object.messageSize) : chunk3M7YYWGL_cjs.Long.UZERO
|
|
1457
1387
|
};
|
|
1458
1388
|
},
|
|
1459
1389
|
toJSON(message) {
|
|
1460
1390
|
const obj = {};
|
|
1461
1391
|
message.from !== void 0 && (obj.from = message.from);
|
|
1462
|
-
message.messageSize !== void 0 && (obj.messageSize = (message.messageSize ||
|
|
1392
|
+
message.messageSize !== void 0 && (obj.messageSize = (message.messageSize || chunk3M7YYWGL_cjs.Long.UZERO).toString());
|
|
1463
1393
|
return obj;
|
|
1464
1394
|
},
|
|
1465
1395
|
fromPartial(object) {
|
|
1466
1396
|
const message = createBaseMsgUpdateMaxMessageBodySize();
|
|
1467
1397
|
message.from = object.from ?? "";
|
|
1468
|
-
message.messageSize = object.messageSize !== void 0 && object.messageSize !== null ?
|
|
1398
|
+
message.messageSize = object.messageSize !== void 0 && object.messageSize !== null ? chunk3M7YYWGL_cjs.Long.fromValue(object.messageSize) : chunk3M7YYWGL_cjs.Long.UZERO;
|
|
1469
1399
|
return message;
|
|
1470
1400
|
},
|
|
1471
1401
|
fromAmino(object) {
|
|
@@ -1474,7 +1404,7 @@ var MsgUpdateMaxMessageBodySize = {
|
|
|
1474
1404
|
message.from = object.from;
|
|
1475
1405
|
}
|
|
1476
1406
|
if (object.message_size !== void 0 && object.message_size !== null) {
|
|
1477
|
-
message.messageSize =
|
|
1407
|
+
message.messageSize = chunk3M7YYWGL_cjs.Long.fromString(object.message_size);
|
|
1478
1408
|
}
|
|
1479
1409
|
return message;
|
|
1480
1410
|
},
|
|
@@ -1515,7 +1445,7 @@ function createBaseMsgSetMaxBurnAmountPerMessage() {
|
|
|
1515
1445
|
}
|
|
1516
1446
|
var MsgSetMaxBurnAmountPerMessage = {
|
|
1517
1447
|
typeUrl: "/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage",
|
|
1518
|
-
encode(message, writer =
|
|
1448
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1519
1449
|
if (message.from !== "") {
|
|
1520
1450
|
writer.uint32(10).string(message.from);
|
|
1521
1451
|
}
|
|
@@ -1528,7 +1458,7 @@ var MsgSetMaxBurnAmountPerMessage = {
|
|
|
1528
1458
|
return writer;
|
|
1529
1459
|
},
|
|
1530
1460
|
decode(input, length) {
|
|
1531
|
-
const reader = input instanceof
|
|
1461
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1532
1462
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1533
1463
|
const message = createBaseMsgSetMaxBurnAmountPerMessage();
|
|
1534
1464
|
while (reader.pos < end) {
|
|
@@ -1552,9 +1482,9 @@ var MsgSetMaxBurnAmountPerMessage = {
|
|
|
1552
1482
|
},
|
|
1553
1483
|
fromJSON(object) {
|
|
1554
1484
|
return {
|
|
1555
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1556
|
-
localToken: isSet(object.localToken) ? String(object.localToken) : "",
|
|
1557
|
-
amount: isSet(object.amount) ? String(object.amount) : ""
|
|
1485
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
1486
|
+
localToken: chunk3M7YYWGL_cjs.isSet(object.localToken) ? String(object.localToken) : "",
|
|
1487
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? String(object.amount) : ""
|
|
1558
1488
|
};
|
|
1559
1489
|
},
|
|
1560
1490
|
toJSON(message) {
|
|
@@ -1624,7 +1554,7 @@ function createBaseMsgDepositForBurn() {
|
|
|
1624
1554
|
}
|
|
1625
1555
|
var MsgDepositForBurn = {
|
|
1626
1556
|
typeUrl: "/circle.cctp.v1.MsgDepositForBurn",
|
|
1627
|
-
encode(message, writer =
|
|
1557
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1628
1558
|
if (message.from !== "") {
|
|
1629
1559
|
writer.uint32(10).string(message.from);
|
|
1630
1560
|
}
|
|
@@ -1643,7 +1573,7 @@ var MsgDepositForBurn = {
|
|
|
1643
1573
|
return writer;
|
|
1644
1574
|
},
|
|
1645
1575
|
decode(input, length) {
|
|
1646
|
-
const reader = input instanceof
|
|
1576
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1647
1577
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1648
1578
|
const message = createBaseMsgDepositForBurn();
|
|
1649
1579
|
while (reader.pos < end) {
|
|
@@ -1673,11 +1603,11 @@ var MsgDepositForBurn = {
|
|
|
1673
1603
|
},
|
|
1674
1604
|
fromJSON(object) {
|
|
1675
1605
|
return {
|
|
1676
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1677
|
-
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
1678
|
-
destinationDomain: isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
1679
|
-
mintRecipient: isSet(object.mintRecipient) ? bytesFromBase64(object.mintRecipient) : new Uint8Array(),
|
|
1680
|
-
burnToken: isSet(object.burnToken) ? String(object.burnToken) : ""
|
|
1606
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
1607
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? String(object.amount) : "",
|
|
1608
|
+
destinationDomain: chunk3M7YYWGL_cjs.isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
1609
|
+
mintRecipient: chunk3M7YYWGL_cjs.isSet(object.mintRecipient) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.mintRecipient) : new Uint8Array(),
|
|
1610
|
+
burnToken: chunk3M7YYWGL_cjs.isSet(object.burnToken) ? String(object.burnToken) : ""
|
|
1681
1611
|
};
|
|
1682
1612
|
},
|
|
1683
1613
|
toJSON(message) {
|
|
@@ -1685,7 +1615,7 @@ var MsgDepositForBurn = {
|
|
|
1685
1615
|
message.from !== void 0 && (obj.from = message.from);
|
|
1686
1616
|
message.amount !== void 0 && (obj.amount = message.amount);
|
|
1687
1617
|
message.destinationDomain !== void 0 && (obj.destinationDomain = Math.round(message.destinationDomain));
|
|
1688
|
-
message.mintRecipient !== void 0 && (obj.mintRecipient = base64FromBytes(message.mintRecipient !== void 0 ? message.mintRecipient : new Uint8Array()));
|
|
1618
|
+
message.mintRecipient !== void 0 && (obj.mintRecipient = chunk3M7YYWGL_cjs.base64FromBytes(message.mintRecipient !== void 0 ? message.mintRecipient : new Uint8Array()));
|
|
1689
1619
|
message.burnToken !== void 0 && (obj.burnToken = message.burnToken);
|
|
1690
1620
|
return obj;
|
|
1691
1621
|
},
|
|
@@ -1710,7 +1640,7 @@ var MsgDepositForBurn = {
|
|
|
1710
1640
|
message.destinationDomain = object.destination_domain;
|
|
1711
1641
|
}
|
|
1712
1642
|
if (object.mint_recipient !== void 0 && object.mint_recipient !== null) {
|
|
1713
|
-
message.mintRecipient = bytesFromBase64(object.mint_recipient);
|
|
1643
|
+
message.mintRecipient = chunk3M7YYWGL_cjs.bytesFromBase64(object.mint_recipient);
|
|
1714
1644
|
}
|
|
1715
1645
|
if (object.burn_token !== void 0 && object.burn_token !== null) {
|
|
1716
1646
|
message.burnToken = object.burn_token;
|
|
@@ -1722,7 +1652,7 @@ var MsgDepositForBurn = {
|
|
|
1722
1652
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
1723
1653
|
obj.amount = message.amount === "" ? void 0 : message.amount;
|
|
1724
1654
|
obj.destination_domain = message.destinationDomain === 0 ? void 0 : message.destinationDomain;
|
|
1725
|
-
obj.mint_recipient = message.mintRecipient ? base64FromBytes(message.mintRecipient) : void 0;
|
|
1655
|
+
obj.mint_recipient = message.mintRecipient ? chunk3M7YYWGL_cjs.base64FromBytes(message.mintRecipient) : void 0;
|
|
1726
1656
|
obj.burn_token = message.burnToken === "" ? void 0 : message.burnToken;
|
|
1727
1657
|
return obj;
|
|
1728
1658
|
},
|
|
@@ -1760,7 +1690,7 @@ function createBaseMsgDepositForBurnWithCaller() {
|
|
|
1760
1690
|
}
|
|
1761
1691
|
var MsgDepositForBurnWithCaller = {
|
|
1762
1692
|
typeUrl: "/circle.cctp.v1.MsgDepositForBurnWithCaller",
|
|
1763
|
-
encode(message, writer =
|
|
1693
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1764
1694
|
if (message.from !== "") {
|
|
1765
1695
|
writer.uint32(10).string(message.from);
|
|
1766
1696
|
}
|
|
@@ -1782,7 +1712,7 @@ var MsgDepositForBurnWithCaller = {
|
|
|
1782
1712
|
return writer;
|
|
1783
1713
|
},
|
|
1784
1714
|
decode(input, length) {
|
|
1785
|
-
const reader = input instanceof
|
|
1715
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1786
1716
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1787
1717
|
const message = createBaseMsgDepositForBurnWithCaller();
|
|
1788
1718
|
while (reader.pos < end) {
|
|
@@ -1815,12 +1745,12 @@ var MsgDepositForBurnWithCaller = {
|
|
|
1815
1745
|
},
|
|
1816
1746
|
fromJSON(object) {
|
|
1817
1747
|
return {
|
|
1818
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1819
|
-
amount: isSet(object.amount) ? String(object.amount) : "",
|
|
1820
|
-
destinationDomain: isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
1821
|
-
mintRecipient: isSet(object.mintRecipient) ? bytesFromBase64(object.mintRecipient) : new Uint8Array(),
|
|
1822
|
-
burnToken: isSet(object.burnToken) ? String(object.burnToken) : "",
|
|
1823
|
-
destinationCaller: isSet(object.destinationCaller) ? bytesFromBase64(object.destinationCaller) : new Uint8Array()
|
|
1748
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
1749
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? String(object.amount) : "",
|
|
1750
|
+
destinationDomain: chunk3M7YYWGL_cjs.isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
1751
|
+
mintRecipient: chunk3M7YYWGL_cjs.isSet(object.mintRecipient) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.mintRecipient) : new Uint8Array(),
|
|
1752
|
+
burnToken: chunk3M7YYWGL_cjs.isSet(object.burnToken) ? String(object.burnToken) : "",
|
|
1753
|
+
destinationCaller: chunk3M7YYWGL_cjs.isSet(object.destinationCaller) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.destinationCaller) : new Uint8Array()
|
|
1824
1754
|
};
|
|
1825
1755
|
},
|
|
1826
1756
|
toJSON(message) {
|
|
@@ -1828,9 +1758,9 @@ var MsgDepositForBurnWithCaller = {
|
|
|
1828
1758
|
message.from !== void 0 && (obj.from = message.from);
|
|
1829
1759
|
message.amount !== void 0 && (obj.amount = message.amount);
|
|
1830
1760
|
message.destinationDomain !== void 0 && (obj.destinationDomain = Math.round(message.destinationDomain));
|
|
1831
|
-
message.mintRecipient !== void 0 && (obj.mintRecipient = base64FromBytes(message.mintRecipient !== void 0 ? message.mintRecipient : new Uint8Array()));
|
|
1761
|
+
message.mintRecipient !== void 0 && (obj.mintRecipient = chunk3M7YYWGL_cjs.base64FromBytes(message.mintRecipient !== void 0 ? message.mintRecipient : new Uint8Array()));
|
|
1832
1762
|
message.burnToken !== void 0 && (obj.burnToken = message.burnToken);
|
|
1833
|
-
message.destinationCaller !== void 0 && (obj.destinationCaller = base64FromBytes(message.destinationCaller !== void 0 ? message.destinationCaller : new Uint8Array()));
|
|
1763
|
+
message.destinationCaller !== void 0 && (obj.destinationCaller = chunk3M7YYWGL_cjs.base64FromBytes(message.destinationCaller !== void 0 ? message.destinationCaller : new Uint8Array()));
|
|
1834
1764
|
return obj;
|
|
1835
1765
|
},
|
|
1836
1766
|
fromPartial(object) {
|
|
@@ -1855,13 +1785,13 @@ var MsgDepositForBurnWithCaller = {
|
|
|
1855
1785
|
message.destinationDomain = object.destination_domain;
|
|
1856
1786
|
}
|
|
1857
1787
|
if (object.mint_recipient !== void 0 && object.mint_recipient !== null) {
|
|
1858
|
-
message.mintRecipient = bytesFromBase64(object.mint_recipient);
|
|
1788
|
+
message.mintRecipient = chunk3M7YYWGL_cjs.bytesFromBase64(object.mint_recipient);
|
|
1859
1789
|
}
|
|
1860
1790
|
if (object.burn_token !== void 0 && object.burn_token !== null) {
|
|
1861
1791
|
message.burnToken = object.burn_token;
|
|
1862
1792
|
}
|
|
1863
1793
|
if (object.destination_caller !== void 0 && object.destination_caller !== null) {
|
|
1864
|
-
message.destinationCaller = bytesFromBase64(object.destination_caller);
|
|
1794
|
+
message.destinationCaller = chunk3M7YYWGL_cjs.bytesFromBase64(object.destination_caller);
|
|
1865
1795
|
}
|
|
1866
1796
|
return message;
|
|
1867
1797
|
},
|
|
@@ -1870,9 +1800,9 @@ var MsgDepositForBurnWithCaller = {
|
|
|
1870
1800
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
1871
1801
|
obj.amount = message.amount === "" ? void 0 : message.amount;
|
|
1872
1802
|
obj.destination_domain = message.destinationDomain === 0 ? void 0 : message.destinationDomain;
|
|
1873
|
-
obj.mint_recipient = message.mintRecipient ? base64FromBytes(message.mintRecipient) : void 0;
|
|
1803
|
+
obj.mint_recipient = message.mintRecipient ? chunk3M7YYWGL_cjs.base64FromBytes(message.mintRecipient) : void 0;
|
|
1874
1804
|
obj.burn_token = message.burnToken === "" ? void 0 : message.burnToken;
|
|
1875
|
-
obj.destination_caller = message.destinationCaller ? base64FromBytes(message.destinationCaller) : void 0;
|
|
1805
|
+
obj.destination_caller = message.destinationCaller ? chunk3M7YYWGL_cjs.base64FromBytes(message.destinationCaller) : void 0;
|
|
1876
1806
|
return obj;
|
|
1877
1807
|
},
|
|
1878
1808
|
fromAminoMsg(object) {
|
|
@@ -1908,7 +1838,7 @@ function createBaseMsgReplaceDepositForBurn() {
|
|
|
1908
1838
|
}
|
|
1909
1839
|
var MsgReplaceDepositForBurn = {
|
|
1910
1840
|
typeUrl: "/circle.cctp.v1.MsgReplaceDepositForBurn",
|
|
1911
|
-
encode(message, writer =
|
|
1841
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
1912
1842
|
if (message.from !== "") {
|
|
1913
1843
|
writer.uint32(10).string(message.from);
|
|
1914
1844
|
}
|
|
@@ -1927,7 +1857,7 @@ var MsgReplaceDepositForBurn = {
|
|
|
1927
1857
|
return writer;
|
|
1928
1858
|
},
|
|
1929
1859
|
decode(input, length) {
|
|
1930
|
-
const reader = input instanceof
|
|
1860
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
1931
1861
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1932
1862
|
const message = createBaseMsgReplaceDepositForBurn();
|
|
1933
1863
|
while (reader.pos < end) {
|
|
@@ -1957,20 +1887,20 @@ var MsgReplaceDepositForBurn = {
|
|
|
1957
1887
|
},
|
|
1958
1888
|
fromJSON(object) {
|
|
1959
1889
|
return {
|
|
1960
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
1961
|
-
originalMessage: isSet(object.originalMessage) ? bytesFromBase64(object.originalMessage) : new Uint8Array(),
|
|
1962
|
-
originalAttestation: isSet(object.originalAttestation) ? bytesFromBase64(object.originalAttestation) : new Uint8Array(),
|
|
1963
|
-
newDestinationCaller: isSet(object.newDestinationCaller) ? bytesFromBase64(object.newDestinationCaller) : new Uint8Array(),
|
|
1964
|
-
newMintRecipient: isSet(object.newMintRecipient) ? bytesFromBase64(object.newMintRecipient) : new Uint8Array()
|
|
1890
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
1891
|
+
originalMessage: chunk3M7YYWGL_cjs.isSet(object.originalMessage) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.originalMessage) : new Uint8Array(),
|
|
1892
|
+
originalAttestation: chunk3M7YYWGL_cjs.isSet(object.originalAttestation) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.originalAttestation) : new Uint8Array(),
|
|
1893
|
+
newDestinationCaller: chunk3M7YYWGL_cjs.isSet(object.newDestinationCaller) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.newDestinationCaller) : new Uint8Array(),
|
|
1894
|
+
newMintRecipient: chunk3M7YYWGL_cjs.isSet(object.newMintRecipient) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.newMintRecipient) : new Uint8Array()
|
|
1965
1895
|
};
|
|
1966
1896
|
},
|
|
1967
1897
|
toJSON(message) {
|
|
1968
1898
|
const obj = {};
|
|
1969
1899
|
message.from !== void 0 && (obj.from = message.from);
|
|
1970
|
-
message.originalMessage !== void 0 && (obj.originalMessage = base64FromBytes(message.originalMessage !== void 0 ? message.originalMessage : new Uint8Array()));
|
|
1971
|
-
message.originalAttestation !== void 0 && (obj.originalAttestation = base64FromBytes(message.originalAttestation !== void 0 ? message.originalAttestation : new Uint8Array()));
|
|
1972
|
-
message.newDestinationCaller !== void 0 && (obj.newDestinationCaller = base64FromBytes(message.newDestinationCaller !== void 0 ? message.newDestinationCaller : new Uint8Array()));
|
|
1973
|
-
message.newMintRecipient !== void 0 && (obj.newMintRecipient = base64FromBytes(message.newMintRecipient !== void 0 ? message.newMintRecipient : new Uint8Array()));
|
|
1900
|
+
message.originalMessage !== void 0 && (obj.originalMessage = chunk3M7YYWGL_cjs.base64FromBytes(message.originalMessage !== void 0 ? message.originalMessage : new Uint8Array()));
|
|
1901
|
+
message.originalAttestation !== void 0 && (obj.originalAttestation = chunk3M7YYWGL_cjs.base64FromBytes(message.originalAttestation !== void 0 ? message.originalAttestation : new Uint8Array()));
|
|
1902
|
+
message.newDestinationCaller !== void 0 && (obj.newDestinationCaller = chunk3M7YYWGL_cjs.base64FromBytes(message.newDestinationCaller !== void 0 ? message.newDestinationCaller : new Uint8Array()));
|
|
1903
|
+
message.newMintRecipient !== void 0 && (obj.newMintRecipient = chunk3M7YYWGL_cjs.base64FromBytes(message.newMintRecipient !== void 0 ? message.newMintRecipient : new Uint8Array()));
|
|
1974
1904
|
return obj;
|
|
1975
1905
|
},
|
|
1976
1906
|
fromPartial(object) {
|
|
@@ -1988,26 +1918,26 @@ var MsgReplaceDepositForBurn = {
|
|
|
1988
1918
|
message.from = object.from;
|
|
1989
1919
|
}
|
|
1990
1920
|
if (object.original_message !== void 0 && object.original_message !== null) {
|
|
1991
|
-
message.originalMessage = bytesFromBase64(object.original_message);
|
|
1921
|
+
message.originalMessage = chunk3M7YYWGL_cjs.bytesFromBase64(object.original_message);
|
|
1992
1922
|
}
|
|
1993
1923
|
if (object.original_attestation !== void 0 && object.original_attestation !== null) {
|
|
1994
|
-
message.originalAttestation = bytesFromBase64(object.original_attestation);
|
|
1924
|
+
message.originalAttestation = chunk3M7YYWGL_cjs.bytesFromBase64(object.original_attestation);
|
|
1995
1925
|
}
|
|
1996
1926
|
if (object.new_destination_caller !== void 0 && object.new_destination_caller !== null) {
|
|
1997
|
-
message.newDestinationCaller = bytesFromBase64(object.new_destination_caller);
|
|
1927
|
+
message.newDestinationCaller = chunk3M7YYWGL_cjs.bytesFromBase64(object.new_destination_caller);
|
|
1998
1928
|
}
|
|
1999
1929
|
if (object.new_mint_recipient !== void 0 && object.new_mint_recipient !== null) {
|
|
2000
|
-
message.newMintRecipient = bytesFromBase64(object.new_mint_recipient);
|
|
1930
|
+
message.newMintRecipient = chunk3M7YYWGL_cjs.bytesFromBase64(object.new_mint_recipient);
|
|
2001
1931
|
}
|
|
2002
1932
|
return message;
|
|
2003
1933
|
},
|
|
2004
1934
|
toAmino(message) {
|
|
2005
1935
|
const obj = {};
|
|
2006
1936
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2007
|
-
obj.original_message = message.originalMessage ? base64FromBytes(message.originalMessage) : void 0;
|
|
2008
|
-
obj.original_attestation = message.originalAttestation ? base64FromBytes(message.originalAttestation) : void 0;
|
|
2009
|
-
obj.new_destination_caller = message.newDestinationCaller ? base64FromBytes(message.newDestinationCaller) : void 0;
|
|
2010
|
-
obj.new_mint_recipient = message.newMintRecipient ? base64FromBytes(message.newMintRecipient) : void 0;
|
|
1937
|
+
obj.original_message = message.originalMessage ? chunk3M7YYWGL_cjs.base64FromBytes(message.originalMessage) : void 0;
|
|
1938
|
+
obj.original_attestation = message.originalAttestation ? chunk3M7YYWGL_cjs.base64FromBytes(message.originalAttestation) : void 0;
|
|
1939
|
+
obj.new_destination_caller = message.newDestinationCaller ? chunk3M7YYWGL_cjs.base64FromBytes(message.newDestinationCaller) : void 0;
|
|
1940
|
+
obj.new_mint_recipient = message.newMintRecipient ? chunk3M7YYWGL_cjs.base64FromBytes(message.newMintRecipient) : void 0;
|
|
2011
1941
|
return obj;
|
|
2012
1942
|
},
|
|
2013
1943
|
fromAminoMsg(object) {
|
|
@@ -2041,7 +1971,7 @@ function createBaseMsgReceiveMessage() {
|
|
|
2041
1971
|
}
|
|
2042
1972
|
var MsgReceiveMessage = {
|
|
2043
1973
|
typeUrl: "/circle.cctp.v1.MsgReceiveMessage",
|
|
2044
|
-
encode(message, writer =
|
|
1974
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2045
1975
|
if (message.from !== "") {
|
|
2046
1976
|
writer.uint32(10).string(message.from);
|
|
2047
1977
|
}
|
|
@@ -2054,7 +1984,7 @@ var MsgReceiveMessage = {
|
|
|
2054
1984
|
return writer;
|
|
2055
1985
|
},
|
|
2056
1986
|
decode(input, length) {
|
|
2057
|
-
const reader = input instanceof
|
|
1987
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2058
1988
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2059
1989
|
const message = createBaseMsgReceiveMessage();
|
|
2060
1990
|
while (reader.pos < end) {
|
|
@@ -2078,16 +2008,16 @@ var MsgReceiveMessage = {
|
|
|
2078
2008
|
},
|
|
2079
2009
|
fromJSON(object) {
|
|
2080
2010
|
return {
|
|
2081
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2082
|
-
message: isSet(object.message) ? bytesFromBase64(object.message) : new Uint8Array(),
|
|
2083
|
-
attestation: isSet(object.attestation) ? bytesFromBase64(object.attestation) : new Uint8Array()
|
|
2011
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2012
|
+
message: chunk3M7YYWGL_cjs.isSet(object.message) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.message) : new Uint8Array(),
|
|
2013
|
+
attestation: chunk3M7YYWGL_cjs.isSet(object.attestation) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.attestation) : new Uint8Array()
|
|
2084
2014
|
};
|
|
2085
2015
|
},
|
|
2086
2016
|
toJSON(message) {
|
|
2087
2017
|
const obj = {};
|
|
2088
2018
|
message.from !== void 0 && (obj.from = message.from);
|
|
2089
|
-
message.message !== void 0 && (obj.message = base64FromBytes(message.message !== void 0 ? message.message : new Uint8Array()));
|
|
2090
|
-
message.attestation !== void 0 && (obj.attestation = base64FromBytes(message.attestation !== void 0 ? message.attestation : new Uint8Array()));
|
|
2019
|
+
message.message !== void 0 && (obj.message = chunk3M7YYWGL_cjs.base64FromBytes(message.message !== void 0 ? message.message : new Uint8Array()));
|
|
2020
|
+
message.attestation !== void 0 && (obj.attestation = chunk3M7YYWGL_cjs.base64FromBytes(message.attestation !== void 0 ? message.attestation : new Uint8Array()));
|
|
2091
2021
|
return obj;
|
|
2092
2022
|
},
|
|
2093
2023
|
fromPartial(object) {
|
|
@@ -2103,18 +2033,18 @@ var MsgReceiveMessage = {
|
|
|
2103
2033
|
message.from = object.from;
|
|
2104
2034
|
}
|
|
2105
2035
|
if (object.message !== void 0 && object.message !== null) {
|
|
2106
|
-
message.message = bytesFromBase64(object.message);
|
|
2036
|
+
message.message = chunk3M7YYWGL_cjs.bytesFromBase64(object.message);
|
|
2107
2037
|
}
|
|
2108
2038
|
if (object.attestation !== void 0 && object.attestation !== null) {
|
|
2109
|
-
message.attestation = bytesFromBase64(object.attestation);
|
|
2039
|
+
message.attestation = chunk3M7YYWGL_cjs.bytesFromBase64(object.attestation);
|
|
2110
2040
|
}
|
|
2111
2041
|
return message;
|
|
2112
2042
|
},
|
|
2113
2043
|
toAmino(message) {
|
|
2114
2044
|
const obj = {};
|
|
2115
2045
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2116
|
-
obj.message = message.message ? base64FromBytes(message.message) : void 0;
|
|
2117
|
-
obj.attestation = message.attestation ? base64FromBytes(message.attestation) : void 0;
|
|
2046
|
+
obj.message = message.message ? chunk3M7YYWGL_cjs.base64FromBytes(message.message) : void 0;
|
|
2047
|
+
obj.attestation = message.attestation ? chunk3M7YYWGL_cjs.base64FromBytes(message.attestation) : void 0;
|
|
2118
2048
|
return obj;
|
|
2119
2049
|
},
|
|
2120
2050
|
fromAminoMsg(object) {
|
|
@@ -2149,7 +2079,7 @@ function createBaseMsgSendMessage() {
|
|
|
2149
2079
|
}
|
|
2150
2080
|
var MsgSendMessage = {
|
|
2151
2081
|
typeUrl: "/circle.cctp.v1.MsgSendMessage",
|
|
2152
|
-
encode(message, writer =
|
|
2082
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2153
2083
|
if (message.from !== "") {
|
|
2154
2084
|
writer.uint32(10).string(message.from);
|
|
2155
2085
|
}
|
|
@@ -2165,7 +2095,7 @@ var MsgSendMessage = {
|
|
|
2165
2095
|
return writer;
|
|
2166
2096
|
},
|
|
2167
2097
|
decode(input, length) {
|
|
2168
|
-
const reader = input instanceof
|
|
2098
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2169
2099
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2170
2100
|
const message = createBaseMsgSendMessage();
|
|
2171
2101
|
while (reader.pos < end) {
|
|
@@ -2192,18 +2122,18 @@ var MsgSendMessage = {
|
|
|
2192
2122
|
},
|
|
2193
2123
|
fromJSON(object) {
|
|
2194
2124
|
return {
|
|
2195
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2196
|
-
destinationDomain: isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
2197
|
-
recipient: isSet(object.recipient) ? bytesFromBase64(object.recipient) : new Uint8Array(),
|
|
2198
|
-
messageBody: isSet(object.messageBody) ? bytesFromBase64(object.messageBody) : new Uint8Array()
|
|
2125
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2126
|
+
destinationDomain: chunk3M7YYWGL_cjs.isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
2127
|
+
recipient: chunk3M7YYWGL_cjs.isSet(object.recipient) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.recipient) : new Uint8Array(),
|
|
2128
|
+
messageBody: chunk3M7YYWGL_cjs.isSet(object.messageBody) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.messageBody) : new Uint8Array()
|
|
2199
2129
|
};
|
|
2200
2130
|
},
|
|
2201
2131
|
toJSON(message) {
|
|
2202
2132
|
const obj = {};
|
|
2203
2133
|
message.from !== void 0 && (obj.from = message.from);
|
|
2204
2134
|
message.destinationDomain !== void 0 && (obj.destinationDomain = Math.round(message.destinationDomain));
|
|
2205
|
-
message.recipient !== void 0 && (obj.recipient = base64FromBytes(message.recipient !== void 0 ? message.recipient : new Uint8Array()));
|
|
2206
|
-
message.messageBody !== void 0 && (obj.messageBody = base64FromBytes(message.messageBody !== void 0 ? message.messageBody : new Uint8Array()));
|
|
2135
|
+
message.recipient !== void 0 && (obj.recipient = chunk3M7YYWGL_cjs.base64FromBytes(message.recipient !== void 0 ? message.recipient : new Uint8Array()));
|
|
2136
|
+
message.messageBody !== void 0 && (obj.messageBody = chunk3M7YYWGL_cjs.base64FromBytes(message.messageBody !== void 0 ? message.messageBody : new Uint8Array()));
|
|
2207
2137
|
return obj;
|
|
2208
2138
|
},
|
|
2209
2139
|
fromPartial(object) {
|
|
@@ -2223,10 +2153,10 @@ var MsgSendMessage = {
|
|
|
2223
2153
|
message.destinationDomain = object.destination_domain;
|
|
2224
2154
|
}
|
|
2225
2155
|
if (object.recipient !== void 0 && object.recipient !== null) {
|
|
2226
|
-
message.recipient = bytesFromBase64(object.recipient);
|
|
2156
|
+
message.recipient = chunk3M7YYWGL_cjs.bytesFromBase64(object.recipient);
|
|
2227
2157
|
}
|
|
2228
2158
|
if (object.message_body !== void 0 && object.message_body !== null) {
|
|
2229
|
-
message.messageBody = bytesFromBase64(object.message_body);
|
|
2159
|
+
message.messageBody = chunk3M7YYWGL_cjs.bytesFromBase64(object.message_body);
|
|
2230
2160
|
}
|
|
2231
2161
|
return message;
|
|
2232
2162
|
},
|
|
@@ -2234,8 +2164,8 @@ var MsgSendMessage = {
|
|
|
2234
2164
|
const obj = {};
|
|
2235
2165
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2236
2166
|
obj.destination_domain = message.destinationDomain === 0 ? void 0 : message.destinationDomain;
|
|
2237
|
-
obj.recipient = message.recipient ? base64FromBytes(message.recipient) : void 0;
|
|
2238
|
-
obj.message_body = message.messageBody ? base64FromBytes(message.messageBody) : void 0;
|
|
2167
|
+
obj.recipient = message.recipient ? chunk3M7YYWGL_cjs.base64FromBytes(message.recipient) : void 0;
|
|
2168
|
+
obj.message_body = message.messageBody ? chunk3M7YYWGL_cjs.base64FromBytes(message.messageBody) : void 0;
|
|
2239
2169
|
return obj;
|
|
2240
2170
|
},
|
|
2241
2171
|
fromAminoMsg(object) {
|
|
@@ -2271,7 +2201,7 @@ function createBaseMsgSendMessageWithCaller() {
|
|
|
2271
2201
|
}
|
|
2272
2202
|
var MsgSendMessageWithCaller = {
|
|
2273
2203
|
typeUrl: "/circle.cctp.v1.MsgSendMessageWithCaller",
|
|
2274
|
-
encode(message, writer =
|
|
2204
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2275
2205
|
if (message.from !== "") {
|
|
2276
2206
|
writer.uint32(10).string(message.from);
|
|
2277
2207
|
}
|
|
@@ -2290,7 +2220,7 @@ var MsgSendMessageWithCaller = {
|
|
|
2290
2220
|
return writer;
|
|
2291
2221
|
},
|
|
2292
2222
|
decode(input, length) {
|
|
2293
|
-
const reader = input instanceof
|
|
2223
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2294
2224
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2295
2225
|
const message = createBaseMsgSendMessageWithCaller();
|
|
2296
2226
|
while (reader.pos < end) {
|
|
@@ -2320,20 +2250,20 @@ var MsgSendMessageWithCaller = {
|
|
|
2320
2250
|
},
|
|
2321
2251
|
fromJSON(object) {
|
|
2322
2252
|
return {
|
|
2323
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2324
|
-
destinationDomain: isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
2325
|
-
recipient: isSet(object.recipient) ? bytesFromBase64(object.recipient) : new Uint8Array(),
|
|
2326
|
-
messageBody: isSet(object.messageBody) ? bytesFromBase64(object.messageBody) : new Uint8Array(),
|
|
2327
|
-
destinationCaller: isSet(object.destinationCaller) ? bytesFromBase64(object.destinationCaller) : new Uint8Array()
|
|
2253
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2254
|
+
destinationDomain: chunk3M7YYWGL_cjs.isSet(object.destinationDomain) ? Number(object.destinationDomain) : 0,
|
|
2255
|
+
recipient: chunk3M7YYWGL_cjs.isSet(object.recipient) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.recipient) : new Uint8Array(),
|
|
2256
|
+
messageBody: chunk3M7YYWGL_cjs.isSet(object.messageBody) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.messageBody) : new Uint8Array(),
|
|
2257
|
+
destinationCaller: chunk3M7YYWGL_cjs.isSet(object.destinationCaller) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.destinationCaller) : new Uint8Array()
|
|
2328
2258
|
};
|
|
2329
2259
|
},
|
|
2330
2260
|
toJSON(message) {
|
|
2331
2261
|
const obj = {};
|
|
2332
2262
|
message.from !== void 0 && (obj.from = message.from);
|
|
2333
2263
|
message.destinationDomain !== void 0 && (obj.destinationDomain = Math.round(message.destinationDomain));
|
|
2334
|
-
message.recipient !== void 0 && (obj.recipient = base64FromBytes(message.recipient !== void 0 ? message.recipient : new Uint8Array()));
|
|
2335
|
-
message.messageBody !== void 0 && (obj.messageBody = base64FromBytes(message.messageBody !== void 0 ? message.messageBody : new Uint8Array()));
|
|
2336
|
-
message.destinationCaller !== void 0 && (obj.destinationCaller = base64FromBytes(message.destinationCaller !== void 0 ? message.destinationCaller : new Uint8Array()));
|
|
2264
|
+
message.recipient !== void 0 && (obj.recipient = chunk3M7YYWGL_cjs.base64FromBytes(message.recipient !== void 0 ? message.recipient : new Uint8Array()));
|
|
2265
|
+
message.messageBody !== void 0 && (obj.messageBody = chunk3M7YYWGL_cjs.base64FromBytes(message.messageBody !== void 0 ? message.messageBody : new Uint8Array()));
|
|
2266
|
+
message.destinationCaller !== void 0 && (obj.destinationCaller = chunk3M7YYWGL_cjs.base64FromBytes(message.destinationCaller !== void 0 ? message.destinationCaller : new Uint8Array()));
|
|
2337
2267
|
return obj;
|
|
2338
2268
|
},
|
|
2339
2269
|
fromPartial(object) {
|
|
@@ -2354,13 +2284,13 @@ var MsgSendMessageWithCaller = {
|
|
|
2354
2284
|
message.destinationDomain = object.destination_domain;
|
|
2355
2285
|
}
|
|
2356
2286
|
if (object.recipient !== void 0 && object.recipient !== null) {
|
|
2357
|
-
message.recipient = bytesFromBase64(object.recipient);
|
|
2287
|
+
message.recipient = chunk3M7YYWGL_cjs.bytesFromBase64(object.recipient);
|
|
2358
2288
|
}
|
|
2359
2289
|
if (object.message_body !== void 0 && object.message_body !== null) {
|
|
2360
|
-
message.messageBody = bytesFromBase64(object.message_body);
|
|
2290
|
+
message.messageBody = chunk3M7YYWGL_cjs.bytesFromBase64(object.message_body);
|
|
2361
2291
|
}
|
|
2362
2292
|
if (object.destination_caller !== void 0 && object.destination_caller !== null) {
|
|
2363
|
-
message.destinationCaller = bytesFromBase64(object.destination_caller);
|
|
2293
|
+
message.destinationCaller = chunk3M7YYWGL_cjs.bytesFromBase64(object.destination_caller);
|
|
2364
2294
|
}
|
|
2365
2295
|
return message;
|
|
2366
2296
|
},
|
|
@@ -2368,9 +2298,9 @@ var MsgSendMessageWithCaller = {
|
|
|
2368
2298
|
const obj = {};
|
|
2369
2299
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2370
2300
|
obj.destination_domain = message.destinationDomain === 0 ? void 0 : message.destinationDomain;
|
|
2371
|
-
obj.recipient = message.recipient ? base64FromBytes(message.recipient) : void 0;
|
|
2372
|
-
obj.message_body = message.messageBody ? base64FromBytes(message.messageBody) : void 0;
|
|
2373
|
-
obj.destination_caller = message.destinationCaller ? base64FromBytes(message.destinationCaller) : void 0;
|
|
2301
|
+
obj.recipient = message.recipient ? chunk3M7YYWGL_cjs.base64FromBytes(message.recipient) : void 0;
|
|
2302
|
+
obj.message_body = message.messageBody ? chunk3M7YYWGL_cjs.base64FromBytes(message.messageBody) : void 0;
|
|
2303
|
+
obj.destination_caller = message.destinationCaller ? chunk3M7YYWGL_cjs.base64FromBytes(message.destinationCaller) : void 0;
|
|
2374
2304
|
return obj;
|
|
2375
2305
|
},
|
|
2376
2306
|
fromAminoMsg(object) {
|
|
@@ -2406,7 +2336,7 @@ function createBaseMsgReplaceMessage() {
|
|
|
2406
2336
|
}
|
|
2407
2337
|
var MsgReplaceMessage = {
|
|
2408
2338
|
typeUrl: "/circle.cctp.v1.MsgReplaceMessage",
|
|
2409
|
-
encode(message, writer =
|
|
2339
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2410
2340
|
if (message.from !== "") {
|
|
2411
2341
|
writer.uint32(10).string(message.from);
|
|
2412
2342
|
}
|
|
@@ -2425,7 +2355,7 @@ var MsgReplaceMessage = {
|
|
|
2425
2355
|
return writer;
|
|
2426
2356
|
},
|
|
2427
2357
|
decode(input, length) {
|
|
2428
|
-
const reader = input instanceof
|
|
2358
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2429
2359
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2430
2360
|
const message = createBaseMsgReplaceMessage();
|
|
2431
2361
|
while (reader.pos < end) {
|
|
@@ -2455,20 +2385,20 @@ var MsgReplaceMessage = {
|
|
|
2455
2385
|
},
|
|
2456
2386
|
fromJSON(object) {
|
|
2457
2387
|
return {
|
|
2458
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2459
|
-
originalMessage: isSet(object.originalMessage) ? bytesFromBase64(object.originalMessage) : new Uint8Array(),
|
|
2460
|
-
originalAttestation: isSet(object.originalAttestation) ? bytesFromBase64(object.originalAttestation) : new Uint8Array(),
|
|
2461
|
-
newMessageBody: isSet(object.newMessageBody) ? bytesFromBase64(object.newMessageBody) : new Uint8Array(),
|
|
2462
|
-
newDestinationCaller: isSet(object.newDestinationCaller) ? bytesFromBase64(object.newDestinationCaller) : new Uint8Array()
|
|
2388
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2389
|
+
originalMessage: chunk3M7YYWGL_cjs.isSet(object.originalMessage) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.originalMessage) : new Uint8Array(),
|
|
2390
|
+
originalAttestation: chunk3M7YYWGL_cjs.isSet(object.originalAttestation) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.originalAttestation) : new Uint8Array(),
|
|
2391
|
+
newMessageBody: chunk3M7YYWGL_cjs.isSet(object.newMessageBody) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.newMessageBody) : new Uint8Array(),
|
|
2392
|
+
newDestinationCaller: chunk3M7YYWGL_cjs.isSet(object.newDestinationCaller) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.newDestinationCaller) : new Uint8Array()
|
|
2463
2393
|
};
|
|
2464
2394
|
},
|
|
2465
2395
|
toJSON(message) {
|
|
2466
2396
|
const obj = {};
|
|
2467
2397
|
message.from !== void 0 && (obj.from = message.from);
|
|
2468
|
-
message.originalMessage !== void 0 && (obj.originalMessage = base64FromBytes(message.originalMessage !== void 0 ? message.originalMessage : new Uint8Array()));
|
|
2469
|
-
message.originalAttestation !== void 0 && (obj.originalAttestation = base64FromBytes(message.originalAttestation !== void 0 ? message.originalAttestation : new Uint8Array()));
|
|
2470
|
-
message.newMessageBody !== void 0 && (obj.newMessageBody = base64FromBytes(message.newMessageBody !== void 0 ? message.newMessageBody : new Uint8Array()));
|
|
2471
|
-
message.newDestinationCaller !== void 0 && (obj.newDestinationCaller = base64FromBytes(message.newDestinationCaller !== void 0 ? message.newDestinationCaller : new Uint8Array()));
|
|
2398
|
+
message.originalMessage !== void 0 && (obj.originalMessage = chunk3M7YYWGL_cjs.base64FromBytes(message.originalMessage !== void 0 ? message.originalMessage : new Uint8Array()));
|
|
2399
|
+
message.originalAttestation !== void 0 && (obj.originalAttestation = chunk3M7YYWGL_cjs.base64FromBytes(message.originalAttestation !== void 0 ? message.originalAttestation : new Uint8Array()));
|
|
2400
|
+
message.newMessageBody !== void 0 && (obj.newMessageBody = chunk3M7YYWGL_cjs.base64FromBytes(message.newMessageBody !== void 0 ? message.newMessageBody : new Uint8Array()));
|
|
2401
|
+
message.newDestinationCaller !== void 0 && (obj.newDestinationCaller = chunk3M7YYWGL_cjs.base64FromBytes(message.newDestinationCaller !== void 0 ? message.newDestinationCaller : new Uint8Array()));
|
|
2472
2402
|
return obj;
|
|
2473
2403
|
},
|
|
2474
2404
|
fromPartial(object) {
|
|
@@ -2486,26 +2416,26 @@ var MsgReplaceMessage = {
|
|
|
2486
2416
|
message.from = object.from;
|
|
2487
2417
|
}
|
|
2488
2418
|
if (object.original_message !== void 0 && object.original_message !== null) {
|
|
2489
|
-
message.originalMessage = bytesFromBase64(object.original_message);
|
|
2419
|
+
message.originalMessage = chunk3M7YYWGL_cjs.bytesFromBase64(object.original_message);
|
|
2490
2420
|
}
|
|
2491
2421
|
if (object.original_attestation !== void 0 && object.original_attestation !== null) {
|
|
2492
|
-
message.originalAttestation = bytesFromBase64(object.original_attestation);
|
|
2422
|
+
message.originalAttestation = chunk3M7YYWGL_cjs.bytesFromBase64(object.original_attestation);
|
|
2493
2423
|
}
|
|
2494
2424
|
if (object.new_message_body !== void 0 && object.new_message_body !== null) {
|
|
2495
|
-
message.newMessageBody = bytesFromBase64(object.new_message_body);
|
|
2425
|
+
message.newMessageBody = chunk3M7YYWGL_cjs.bytesFromBase64(object.new_message_body);
|
|
2496
2426
|
}
|
|
2497
2427
|
if (object.new_destination_caller !== void 0 && object.new_destination_caller !== null) {
|
|
2498
|
-
message.newDestinationCaller = bytesFromBase64(object.new_destination_caller);
|
|
2428
|
+
message.newDestinationCaller = chunk3M7YYWGL_cjs.bytesFromBase64(object.new_destination_caller);
|
|
2499
2429
|
}
|
|
2500
2430
|
return message;
|
|
2501
2431
|
},
|
|
2502
2432
|
toAmino(message) {
|
|
2503
2433
|
const obj = {};
|
|
2504
2434
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2505
|
-
obj.original_message = message.originalMessage ? base64FromBytes(message.originalMessage) : void 0;
|
|
2506
|
-
obj.original_attestation = message.originalAttestation ? base64FromBytes(message.originalAttestation) : void 0;
|
|
2507
|
-
obj.new_message_body = message.newMessageBody ? base64FromBytes(message.newMessageBody) : void 0;
|
|
2508
|
-
obj.new_destination_caller = message.newDestinationCaller ? base64FromBytes(message.newDestinationCaller) : void 0;
|
|
2435
|
+
obj.original_message = message.originalMessage ? chunk3M7YYWGL_cjs.base64FromBytes(message.originalMessage) : void 0;
|
|
2436
|
+
obj.original_attestation = message.originalAttestation ? chunk3M7YYWGL_cjs.base64FromBytes(message.originalAttestation) : void 0;
|
|
2437
|
+
obj.new_message_body = message.newMessageBody ? chunk3M7YYWGL_cjs.base64FromBytes(message.newMessageBody) : void 0;
|
|
2438
|
+
obj.new_destination_caller = message.newDestinationCaller ? chunk3M7YYWGL_cjs.base64FromBytes(message.newDestinationCaller) : void 0;
|
|
2509
2439
|
return obj;
|
|
2510
2440
|
},
|
|
2511
2441
|
fromAminoMsg(object) {
|
|
@@ -2538,7 +2468,7 @@ function createBaseMsgUpdateSignatureThreshold() {
|
|
|
2538
2468
|
}
|
|
2539
2469
|
var MsgUpdateSignatureThreshold = {
|
|
2540
2470
|
typeUrl: "/circle.cctp.v1.MsgUpdateSignatureThreshold",
|
|
2541
|
-
encode(message, writer =
|
|
2471
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2542
2472
|
if (message.from !== "") {
|
|
2543
2473
|
writer.uint32(10).string(message.from);
|
|
2544
2474
|
}
|
|
@@ -2548,7 +2478,7 @@ var MsgUpdateSignatureThreshold = {
|
|
|
2548
2478
|
return writer;
|
|
2549
2479
|
},
|
|
2550
2480
|
decode(input, length) {
|
|
2551
|
-
const reader = input instanceof
|
|
2481
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2552
2482
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2553
2483
|
const message = createBaseMsgUpdateSignatureThreshold();
|
|
2554
2484
|
while (reader.pos < end) {
|
|
@@ -2569,8 +2499,8 @@ var MsgUpdateSignatureThreshold = {
|
|
|
2569
2499
|
},
|
|
2570
2500
|
fromJSON(object) {
|
|
2571
2501
|
return {
|
|
2572
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2573
|
-
amount: isSet(object.amount) ? Number(object.amount) : 0
|
|
2502
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2503
|
+
amount: chunk3M7YYWGL_cjs.isSet(object.amount) ? Number(object.amount) : 0
|
|
2574
2504
|
};
|
|
2575
2505
|
},
|
|
2576
2506
|
toJSON(message) {
|
|
@@ -2633,7 +2563,7 @@ function createBaseMsgLinkTokenPair() {
|
|
|
2633
2563
|
}
|
|
2634
2564
|
var MsgLinkTokenPair = {
|
|
2635
2565
|
typeUrl: "/circle.cctp.v1.MsgLinkTokenPair",
|
|
2636
|
-
encode(message, writer =
|
|
2566
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2637
2567
|
if (message.from !== "") {
|
|
2638
2568
|
writer.uint32(10).string(message.from);
|
|
2639
2569
|
}
|
|
@@ -2649,7 +2579,7 @@ var MsgLinkTokenPair = {
|
|
|
2649
2579
|
return writer;
|
|
2650
2580
|
},
|
|
2651
2581
|
decode(input, length) {
|
|
2652
|
-
const reader = input instanceof
|
|
2582
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2653
2583
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2654
2584
|
const message = createBaseMsgLinkTokenPair();
|
|
2655
2585
|
while (reader.pos < end) {
|
|
@@ -2676,17 +2606,17 @@ var MsgLinkTokenPair = {
|
|
|
2676
2606
|
},
|
|
2677
2607
|
fromJSON(object) {
|
|
2678
2608
|
return {
|
|
2679
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2680
|
-
remoteDomain: isSet(object.remoteDomain) ? Number(object.remoteDomain) : 0,
|
|
2681
|
-
remoteToken: isSet(object.remoteToken) ? bytesFromBase64(object.remoteToken) : new Uint8Array(),
|
|
2682
|
-
localToken: isSet(object.localToken) ? String(object.localToken) : ""
|
|
2609
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2610
|
+
remoteDomain: chunk3M7YYWGL_cjs.isSet(object.remoteDomain) ? Number(object.remoteDomain) : 0,
|
|
2611
|
+
remoteToken: chunk3M7YYWGL_cjs.isSet(object.remoteToken) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.remoteToken) : new Uint8Array(),
|
|
2612
|
+
localToken: chunk3M7YYWGL_cjs.isSet(object.localToken) ? String(object.localToken) : ""
|
|
2683
2613
|
};
|
|
2684
2614
|
},
|
|
2685
2615
|
toJSON(message) {
|
|
2686
2616
|
const obj = {};
|
|
2687
2617
|
message.from !== void 0 && (obj.from = message.from);
|
|
2688
2618
|
message.remoteDomain !== void 0 && (obj.remoteDomain = Math.round(message.remoteDomain));
|
|
2689
|
-
message.remoteToken !== void 0 && (obj.remoteToken = base64FromBytes(message.remoteToken !== void 0 ? message.remoteToken : new Uint8Array()));
|
|
2619
|
+
message.remoteToken !== void 0 && (obj.remoteToken = chunk3M7YYWGL_cjs.base64FromBytes(message.remoteToken !== void 0 ? message.remoteToken : new Uint8Array()));
|
|
2690
2620
|
message.localToken !== void 0 && (obj.localToken = message.localToken);
|
|
2691
2621
|
return obj;
|
|
2692
2622
|
},
|
|
@@ -2707,7 +2637,7 @@ var MsgLinkTokenPair = {
|
|
|
2707
2637
|
message.remoteDomain = object.remote_domain;
|
|
2708
2638
|
}
|
|
2709
2639
|
if (object.remote_token !== void 0 && object.remote_token !== null) {
|
|
2710
|
-
message.remoteToken = bytesFromBase64(object.remote_token);
|
|
2640
|
+
message.remoteToken = chunk3M7YYWGL_cjs.bytesFromBase64(object.remote_token);
|
|
2711
2641
|
}
|
|
2712
2642
|
if (object.local_token !== void 0 && object.local_token !== null) {
|
|
2713
2643
|
message.localToken = object.local_token;
|
|
@@ -2718,7 +2648,7 @@ var MsgLinkTokenPair = {
|
|
|
2718
2648
|
const obj = {};
|
|
2719
2649
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2720
2650
|
obj.remote_domain = message.remoteDomain === 0 ? void 0 : message.remoteDomain;
|
|
2721
|
-
obj.remote_token = message.remoteToken ? base64FromBytes(message.remoteToken) : void 0;
|
|
2651
|
+
obj.remote_token = message.remoteToken ? chunk3M7YYWGL_cjs.base64FromBytes(message.remoteToken) : void 0;
|
|
2722
2652
|
obj.local_token = message.localToken === "" ? void 0 : message.localToken;
|
|
2723
2653
|
return obj;
|
|
2724
2654
|
},
|
|
@@ -2754,7 +2684,7 @@ function createBaseMsgUnlinkTokenPair() {
|
|
|
2754
2684
|
}
|
|
2755
2685
|
var MsgUnlinkTokenPair = {
|
|
2756
2686
|
typeUrl: "/circle.cctp.v1.MsgUnlinkTokenPair",
|
|
2757
|
-
encode(message, writer =
|
|
2687
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2758
2688
|
if (message.from !== "") {
|
|
2759
2689
|
writer.uint32(10).string(message.from);
|
|
2760
2690
|
}
|
|
@@ -2770,7 +2700,7 @@ var MsgUnlinkTokenPair = {
|
|
|
2770
2700
|
return writer;
|
|
2771
2701
|
},
|
|
2772
2702
|
decode(input, length) {
|
|
2773
|
-
const reader = input instanceof
|
|
2703
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2774
2704
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2775
2705
|
const message = createBaseMsgUnlinkTokenPair();
|
|
2776
2706
|
while (reader.pos < end) {
|
|
@@ -2797,17 +2727,17 @@ var MsgUnlinkTokenPair = {
|
|
|
2797
2727
|
},
|
|
2798
2728
|
fromJSON(object) {
|
|
2799
2729
|
return {
|
|
2800
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2801
|
-
remoteDomain: isSet(object.remoteDomain) ? Number(object.remoteDomain) : 0,
|
|
2802
|
-
remoteToken: isSet(object.remoteToken) ? bytesFromBase64(object.remoteToken) : new Uint8Array(),
|
|
2803
|
-
localToken: isSet(object.localToken) ? String(object.localToken) : ""
|
|
2730
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2731
|
+
remoteDomain: chunk3M7YYWGL_cjs.isSet(object.remoteDomain) ? Number(object.remoteDomain) : 0,
|
|
2732
|
+
remoteToken: chunk3M7YYWGL_cjs.isSet(object.remoteToken) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.remoteToken) : new Uint8Array(),
|
|
2733
|
+
localToken: chunk3M7YYWGL_cjs.isSet(object.localToken) ? String(object.localToken) : ""
|
|
2804
2734
|
};
|
|
2805
2735
|
},
|
|
2806
2736
|
toJSON(message) {
|
|
2807
2737
|
const obj = {};
|
|
2808
2738
|
message.from !== void 0 && (obj.from = message.from);
|
|
2809
2739
|
message.remoteDomain !== void 0 && (obj.remoteDomain = Math.round(message.remoteDomain));
|
|
2810
|
-
message.remoteToken !== void 0 && (obj.remoteToken = base64FromBytes(message.remoteToken !== void 0 ? message.remoteToken : new Uint8Array()));
|
|
2740
|
+
message.remoteToken !== void 0 && (obj.remoteToken = chunk3M7YYWGL_cjs.base64FromBytes(message.remoteToken !== void 0 ? message.remoteToken : new Uint8Array()));
|
|
2811
2741
|
message.localToken !== void 0 && (obj.localToken = message.localToken);
|
|
2812
2742
|
return obj;
|
|
2813
2743
|
},
|
|
@@ -2828,7 +2758,7 @@ var MsgUnlinkTokenPair = {
|
|
|
2828
2758
|
message.remoteDomain = object.remote_domain;
|
|
2829
2759
|
}
|
|
2830
2760
|
if (object.remote_token !== void 0 && object.remote_token !== null) {
|
|
2831
|
-
message.remoteToken = bytesFromBase64(object.remote_token);
|
|
2761
|
+
message.remoteToken = chunk3M7YYWGL_cjs.bytesFromBase64(object.remote_token);
|
|
2832
2762
|
}
|
|
2833
2763
|
if (object.local_token !== void 0 && object.local_token !== null) {
|
|
2834
2764
|
message.localToken = object.local_token;
|
|
@@ -2839,7 +2769,7 @@ var MsgUnlinkTokenPair = {
|
|
|
2839
2769
|
const obj = {};
|
|
2840
2770
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2841
2771
|
obj.remote_domain = message.remoteDomain === 0 ? void 0 : message.remoteDomain;
|
|
2842
|
-
obj.remote_token = message.remoteToken ? base64FromBytes(message.remoteToken) : void 0;
|
|
2772
|
+
obj.remote_token = message.remoteToken ? chunk3M7YYWGL_cjs.base64FromBytes(message.remoteToken) : void 0;
|
|
2843
2773
|
obj.local_token = message.localToken === "" ? void 0 : message.localToken;
|
|
2844
2774
|
return obj;
|
|
2845
2775
|
},
|
|
@@ -2874,7 +2804,7 @@ function createBaseMsgAddRemoteTokenMessenger() {
|
|
|
2874
2804
|
}
|
|
2875
2805
|
var MsgAddRemoteTokenMessenger = {
|
|
2876
2806
|
typeUrl: "/circle.cctp.v1.MsgAddRemoteTokenMessenger",
|
|
2877
|
-
encode(message, writer =
|
|
2807
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2878
2808
|
if (message.from !== "") {
|
|
2879
2809
|
writer.uint32(10).string(message.from);
|
|
2880
2810
|
}
|
|
@@ -2887,7 +2817,7 @@ var MsgAddRemoteTokenMessenger = {
|
|
|
2887
2817
|
return writer;
|
|
2888
2818
|
},
|
|
2889
2819
|
decode(input, length) {
|
|
2890
|
-
const reader = input instanceof
|
|
2820
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2891
2821
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2892
2822
|
const message = createBaseMsgAddRemoteTokenMessenger();
|
|
2893
2823
|
while (reader.pos < end) {
|
|
@@ -2911,16 +2841,16 @@ var MsgAddRemoteTokenMessenger = {
|
|
|
2911
2841
|
},
|
|
2912
2842
|
fromJSON(object) {
|
|
2913
2843
|
return {
|
|
2914
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
2915
|
-
domainId: isSet(object.domainId) ? Number(object.domainId) : 0,
|
|
2916
|
-
address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array()
|
|
2844
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2845
|
+
domainId: chunk3M7YYWGL_cjs.isSet(object.domainId) ? Number(object.domainId) : 0,
|
|
2846
|
+
address: chunk3M7YYWGL_cjs.isSet(object.address) ? chunk3M7YYWGL_cjs.bytesFromBase64(object.address) : new Uint8Array()
|
|
2917
2847
|
};
|
|
2918
2848
|
},
|
|
2919
2849
|
toJSON(message) {
|
|
2920
2850
|
const obj = {};
|
|
2921
2851
|
message.from !== void 0 && (obj.from = message.from);
|
|
2922
2852
|
message.domainId !== void 0 && (obj.domainId = Math.round(message.domainId));
|
|
2923
|
-
message.address !== void 0 && (obj.address = base64FromBytes(message.address !== void 0 ? message.address : new Uint8Array()));
|
|
2853
|
+
message.address !== void 0 && (obj.address = chunk3M7YYWGL_cjs.base64FromBytes(message.address !== void 0 ? message.address : new Uint8Array()));
|
|
2924
2854
|
return obj;
|
|
2925
2855
|
},
|
|
2926
2856
|
fromPartial(object) {
|
|
@@ -2939,7 +2869,7 @@ var MsgAddRemoteTokenMessenger = {
|
|
|
2939
2869
|
message.domainId = object.domain_id;
|
|
2940
2870
|
}
|
|
2941
2871
|
if (object.address !== void 0 && object.address !== null) {
|
|
2942
|
-
message.address = bytesFromBase64(object.address);
|
|
2872
|
+
message.address = chunk3M7YYWGL_cjs.bytesFromBase64(object.address);
|
|
2943
2873
|
}
|
|
2944
2874
|
return message;
|
|
2945
2875
|
},
|
|
@@ -2947,7 +2877,7 @@ var MsgAddRemoteTokenMessenger = {
|
|
|
2947
2877
|
const obj = {};
|
|
2948
2878
|
obj.from = message.from === "" ? void 0 : message.from;
|
|
2949
2879
|
obj.domain_id = message.domainId === 0 ? void 0 : message.domainId;
|
|
2950
|
-
obj.address = message.address ? base64FromBytes(message.address) : void 0;
|
|
2880
|
+
obj.address = message.address ? chunk3M7YYWGL_cjs.base64FromBytes(message.address) : void 0;
|
|
2951
2881
|
return obj;
|
|
2952
2882
|
},
|
|
2953
2883
|
fromAminoMsg(object) {
|
|
@@ -2980,7 +2910,7 @@ function createBaseMsgRemoveRemoteTokenMessenger() {
|
|
|
2980
2910
|
}
|
|
2981
2911
|
var MsgRemoveRemoteTokenMessenger = {
|
|
2982
2912
|
typeUrl: "/circle.cctp.v1.MsgRemoveRemoteTokenMessenger",
|
|
2983
|
-
encode(message, writer =
|
|
2913
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
2984
2914
|
if (message.from !== "") {
|
|
2985
2915
|
writer.uint32(10).string(message.from);
|
|
2986
2916
|
}
|
|
@@ -2990,7 +2920,7 @@ var MsgRemoveRemoteTokenMessenger = {
|
|
|
2990
2920
|
return writer;
|
|
2991
2921
|
},
|
|
2992
2922
|
decode(input, length) {
|
|
2993
|
-
const reader = input instanceof
|
|
2923
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
2994
2924
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2995
2925
|
const message = createBaseMsgRemoveRemoteTokenMessenger();
|
|
2996
2926
|
while (reader.pos < end) {
|
|
@@ -3011,8 +2941,8 @@ var MsgRemoveRemoteTokenMessenger = {
|
|
|
3011
2941
|
},
|
|
3012
2942
|
fromJSON(object) {
|
|
3013
2943
|
return {
|
|
3014
|
-
from: isSet(object.from) ? String(object.from) : "",
|
|
3015
|
-
domainId: isSet(object.domainId) ? Number(object.domainId) : 0
|
|
2944
|
+
from: chunk3M7YYWGL_cjs.isSet(object.from) ? String(object.from) : "",
|
|
2945
|
+
domainId: chunk3M7YYWGL_cjs.isSet(object.domainId) ? Number(object.domainId) : 0
|
|
3016
2946
|
};
|
|
3017
2947
|
},
|
|
3018
2948
|
toJSON(message) {
|
|
@@ -3065,225 +2995,20 @@ var MsgRemoveRemoteTokenMessenger = {
|
|
|
3065
2995
|
};
|
|
3066
2996
|
}
|
|
3067
2997
|
};
|
|
3068
|
-
function createBaseAny() {
|
|
3069
|
-
return {
|
|
3070
|
-
$typeUrl: "/google.protobuf.Any",
|
|
3071
|
-
typeUrl: "",
|
|
3072
|
-
value: new Uint8Array()
|
|
3073
|
-
};
|
|
3074
|
-
}
|
|
3075
|
-
var Any = {
|
|
3076
|
-
typeUrl: "/google.protobuf.Any",
|
|
3077
|
-
encode(message, writer = _m05__default.default.Writer.create()) {
|
|
3078
|
-
if (message.typeUrl !== "") {
|
|
3079
|
-
writer.uint32(10).string(message.typeUrl);
|
|
3080
|
-
}
|
|
3081
|
-
if (message.value.length !== 0) {
|
|
3082
|
-
writer.uint32(18).bytes(message.value);
|
|
3083
|
-
}
|
|
3084
|
-
return writer;
|
|
3085
|
-
},
|
|
3086
|
-
decode(input, length) {
|
|
3087
|
-
const reader = input instanceof _m05__default.default.Reader ? input : new _m05__default.default.Reader(input);
|
|
3088
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3089
|
-
const message = createBaseAny();
|
|
3090
|
-
while (reader.pos < end) {
|
|
3091
|
-
const tag = reader.uint32();
|
|
3092
|
-
switch (tag >>> 3) {
|
|
3093
|
-
case 1:
|
|
3094
|
-
message.typeUrl = reader.string();
|
|
3095
|
-
break;
|
|
3096
|
-
case 2:
|
|
3097
|
-
message.value = reader.bytes();
|
|
3098
|
-
break;
|
|
3099
|
-
default:
|
|
3100
|
-
reader.skipType(tag & 7);
|
|
3101
|
-
break;
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
return message;
|
|
3105
|
-
},
|
|
3106
|
-
fromJSON(object) {
|
|
3107
|
-
return {
|
|
3108
|
-
typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "",
|
|
3109
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array()
|
|
3110
|
-
};
|
|
3111
|
-
},
|
|
3112
|
-
toJSON(message) {
|
|
3113
|
-
const obj = {};
|
|
3114
|
-
message.typeUrl !== void 0 && (obj.typeUrl = message.typeUrl);
|
|
3115
|
-
message.value !== void 0 && (obj.value = base64FromBytes(message.value !== void 0 ? message.value : new Uint8Array()));
|
|
3116
|
-
return obj;
|
|
3117
|
-
},
|
|
3118
|
-
fromPartial(object) {
|
|
3119
|
-
const message = createBaseAny();
|
|
3120
|
-
message.typeUrl = object.typeUrl ?? "";
|
|
3121
|
-
message.value = object.value ?? new Uint8Array();
|
|
3122
|
-
return message;
|
|
3123
|
-
},
|
|
3124
|
-
fromAmino(object) {
|
|
3125
|
-
return {
|
|
3126
|
-
typeUrl: object.type,
|
|
3127
|
-
value: object.value
|
|
3128
|
-
};
|
|
3129
|
-
},
|
|
3130
|
-
toAmino(message) {
|
|
3131
|
-
const obj = {};
|
|
3132
|
-
obj.type = message.typeUrl;
|
|
3133
|
-
obj.value = message.value;
|
|
3134
|
-
return obj;
|
|
3135
|
-
},
|
|
3136
|
-
fromAminoMsg(object) {
|
|
3137
|
-
return Any.fromAmino(object.value);
|
|
3138
|
-
},
|
|
3139
|
-
fromProtoMsg(message) {
|
|
3140
|
-
return Any.decode(message.value);
|
|
3141
|
-
},
|
|
3142
|
-
toProto(message) {
|
|
3143
|
-
return Any.encode(message).finish();
|
|
3144
|
-
},
|
|
3145
|
-
toProtoMsg(message) {
|
|
3146
|
-
return {
|
|
3147
|
-
typeUrl: "/google.protobuf.Any",
|
|
3148
|
-
value: Any.encode(message).finish()
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
};
|
|
3152
|
-
function createBaseBaseAccount() {
|
|
3153
|
-
return {
|
|
3154
|
-
address: "",
|
|
3155
|
-
pubKey: void 0,
|
|
3156
|
-
accountNumber: Long__default.default.UZERO,
|
|
3157
|
-
sequence: Long__default.default.UZERO
|
|
3158
|
-
};
|
|
3159
|
-
}
|
|
3160
|
-
var BaseAccount = {
|
|
3161
|
-
typeUrl: "/cosmos.auth.v1beta1.BaseAccount",
|
|
3162
|
-
encode(message, writer = _m05__default.default.Writer.create()) {
|
|
3163
|
-
if (message.address !== "") {
|
|
3164
|
-
writer.uint32(10).string(message.address);
|
|
3165
|
-
}
|
|
3166
|
-
if (message.pubKey !== void 0) {
|
|
3167
|
-
Any.encode(message.pubKey, writer.uint32(18).fork()).ldelim();
|
|
3168
|
-
}
|
|
3169
|
-
if (!message.accountNumber.isZero()) {
|
|
3170
|
-
writer.uint32(24).uint64(message.accountNumber);
|
|
3171
|
-
}
|
|
3172
|
-
if (!message.sequence.isZero()) {
|
|
3173
|
-
writer.uint32(32).uint64(message.sequence);
|
|
3174
|
-
}
|
|
3175
|
-
return writer;
|
|
3176
|
-
},
|
|
3177
|
-
decode(input, length) {
|
|
3178
|
-
const reader = input instanceof _m05__default.default.Reader ? input : new _m05__default.default.Reader(input);
|
|
3179
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3180
|
-
const message = createBaseBaseAccount();
|
|
3181
|
-
while (reader.pos < end) {
|
|
3182
|
-
const tag = reader.uint32();
|
|
3183
|
-
switch (tag >>> 3) {
|
|
3184
|
-
case 1:
|
|
3185
|
-
message.address = reader.string();
|
|
3186
|
-
break;
|
|
3187
|
-
case 2:
|
|
3188
|
-
message.pubKey = Any.decode(reader, reader.uint32());
|
|
3189
|
-
break;
|
|
3190
|
-
case 3:
|
|
3191
|
-
message.accountNumber = reader.uint64();
|
|
3192
|
-
break;
|
|
3193
|
-
case 4:
|
|
3194
|
-
message.sequence = reader.uint64();
|
|
3195
|
-
break;
|
|
3196
|
-
default:
|
|
3197
|
-
reader.skipType(tag & 7);
|
|
3198
|
-
break;
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
return message;
|
|
3202
|
-
},
|
|
3203
|
-
fromJSON(object) {
|
|
3204
|
-
return {
|
|
3205
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
3206
|
-
pubKey: isSet(object.pubKey) ? Any.fromJSON(object.pubKey) : void 0,
|
|
3207
|
-
accountNumber: isSet(object.accountNumber) ? Long__default.default.fromValue(object.accountNumber) : Long__default.default.UZERO,
|
|
3208
|
-
sequence: isSet(object.sequence) ? Long__default.default.fromValue(object.sequence) : Long__default.default.UZERO
|
|
3209
|
-
};
|
|
3210
|
-
},
|
|
3211
|
-
toJSON(message) {
|
|
3212
|
-
const obj = {};
|
|
3213
|
-
message.address !== void 0 && (obj.address = message.address);
|
|
3214
|
-
message.pubKey !== void 0 && (obj.pubKey = message.pubKey ? Any.toJSON(message.pubKey) : void 0);
|
|
3215
|
-
message.accountNumber !== void 0 && (obj.accountNumber = (message.accountNumber || Long__default.default.UZERO).toString());
|
|
3216
|
-
message.sequence !== void 0 && (obj.sequence = (message.sequence || Long__default.default.UZERO).toString());
|
|
3217
|
-
return obj;
|
|
3218
|
-
},
|
|
3219
|
-
fromPartial(object) {
|
|
3220
|
-
const message = createBaseBaseAccount();
|
|
3221
|
-
message.address = object.address ?? "";
|
|
3222
|
-
message.pubKey = object.pubKey !== void 0 && object.pubKey !== null ? Any.fromPartial(object.pubKey) : void 0;
|
|
3223
|
-
message.accountNumber = object.accountNumber !== void 0 && object.accountNumber !== null ? Long__default.default.fromValue(object.accountNumber) : Long__default.default.UZERO;
|
|
3224
|
-
message.sequence = object.sequence !== void 0 && object.sequence !== null ? Long__default.default.fromValue(object.sequence) : Long__default.default.UZERO;
|
|
3225
|
-
return message;
|
|
3226
|
-
},
|
|
3227
|
-
fromAmino(object) {
|
|
3228
|
-
const message = createBaseBaseAccount();
|
|
3229
|
-
if (object.address !== void 0 && object.address !== null) {
|
|
3230
|
-
message.address = object.address;
|
|
3231
|
-
}
|
|
3232
|
-
if (object.pub_key !== void 0 && object.pub_key !== null) {
|
|
3233
|
-
message.pubKey = Any.fromAmino(object.pub_key);
|
|
3234
|
-
}
|
|
3235
|
-
if (object.account_number !== void 0 && object.account_number !== null) {
|
|
3236
|
-
message.accountNumber = Long__default.default.fromString(object.account_number);
|
|
3237
|
-
}
|
|
3238
|
-
if (object.sequence !== void 0 && object.sequence !== null) {
|
|
3239
|
-
message.sequence = Long__default.default.fromString(object.sequence);
|
|
3240
|
-
}
|
|
3241
|
-
return message;
|
|
3242
|
-
},
|
|
3243
|
-
toAmino(message) {
|
|
3244
|
-
const obj = {};
|
|
3245
|
-
obj.address = message.address === "" ? void 0 : message.address;
|
|
3246
|
-
obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : void 0;
|
|
3247
|
-
obj.account_number = !message.accountNumber.isZero() ? message.accountNumber.toString() : void 0;
|
|
3248
|
-
obj.sequence = !message.sequence.isZero() ? message.sequence.toString() : void 0;
|
|
3249
|
-
return obj;
|
|
3250
|
-
},
|
|
3251
|
-
fromAminoMsg(object) {
|
|
3252
|
-
return BaseAccount.fromAmino(object.value);
|
|
3253
|
-
},
|
|
3254
|
-
toAminoMsg(message) {
|
|
3255
|
-
return {
|
|
3256
|
-
type: "cosmos-sdk/BaseAccount",
|
|
3257
|
-
value: BaseAccount.toAmino(message)
|
|
3258
|
-
};
|
|
3259
|
-
},
|
|
3260
|
-
fromProtoMsg(message) {
|
|
3261
|
-
return BaseAccount.decode(message.value);
|
|
3262
|
-
},
|
|
3263
|
-
toProto(message) {
|
|
3264
|
-
return BaseAccount.encode(message).finish();
|
|
3265
|
-
},
|
|
3266
|
-
toProtoMsg(message) {
|
|
3267
|
-
return {
|
|
3268
|
-
typeUrl: "/cosmos.auth.v1beta1.BaseAccount",
|
|
3269
|
-
value: BaseAccount.encode(message).finish()
|
|
3270
|
-
};
|
|
3271
|
-
}
|
|
3272
|
-
};
|
|
3273
2998
|
function createBaseBaseVestingAccount() {
|
|
3274
2999
|
return {
|
|
3275
3000
|
baseAccount: void 0,
|
|
3276
3001
|
originalVesting: [],
|
|
3277
3002
|
delegatedFree: [],
|
|
3278
3003
|
delegatedVesting: [],
|
|
3279
|
-
endTime:
|
|
3004
|
+
endTime: chunk3M7YYWGL_cjs.Long.ZERO
|
|
3280
3005
|
};
|
|
3281
3006
|
}
|
|
3282
3007
|
var BaseVestingAccount = {
|
|
3283
3008
|
typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount",
|
|
3284
|
-
encode(message, writer =
|
|
3009
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
3285
3010
|
if (message.baseAccount !== void 0) {
|
|
3286
|
-
BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
|
|
3011
|
+
chunk3M7YYWGL_cjs.BaseAccount.encode(message.baseAccount, writer.uint32(10).fork()).ldelim();
|
|
3287
3012
|
}
|
|
3288
3013
|
for (const v of message.originalVesting) {
|
|
3289
3014
|
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
@@ -3300,14 +3025,14 @@ var BaseVestingAccount = {
|
|
|
3300
3025
|
return writer;
|
|
3301
3026
|
},
|
|
3302
3027
|
decode(input, length) {
|
|
3303
|
-
const reader = input instanceof
|
|
3028
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
3304
3029
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3305
3030
|
const message = createBaseBaseVestingAccount();
|
|
3306
3031
|
while (reader.pos < end) {
|
|
3307
3032
|
const tag = reader.uint32();
|
|
3308
3033
|
switch (tag >>> 3) {
|
|
3309
3034
|
case 1:
|
|
3310
|
-
message.baseAccount = BaseAccount.decode(reader, reader.uint32());
|
|
3035
|
+
message.baseAccount = chunk3M7YYWGL_cjs.BaseAccount.decode(reader, reader.uint32());
|
|
3311
3036
|
break;
|
|
3312
3037
|
case 2:
|
|
3313
3038
|
message.originalVesting.push(Coin.decode(reader, reader.uint32()));
|
|
@@ -3330,16 +3055,16 @@ var BaseVestingAccount = {
|
|
|
3330
3055
|
},
|
|
3331
3056
|
fromJSON(object) {
|
|
3332
3057
|
return {
|
|
3333
|
-
baseAccount: isSet(object.baseAccount) ? BaseAccount.fromJSON(object.baseAccount) : void 0,
|
|
3058
|
+
baseAccount: chunk3M7YYWGL_cjs.isSet(object.baseAccount) ? chunk3M7YYWGL_cjs.BaseAccount.fromJSON(object.baseAccount) : void 0,
|
|
3334
3059
|
originalVesting: Array.isArray(object?.originalVesting) ? object.originalVesting.map((e) => Coin.fromJSON(e)) : [],
|
|
3335
3060
|
delegatedFree: Array.isArray(object?.delegatedFree) ? object.delegatedFree.map((e) => Coin.fromJSON(e)) : [],
|
|
3336
3061
|
delegatedVesting: Array.isArray(object?.delegatedVesting) ? object.delegatedVesting.map((e) => Coin.fromJSON(e)) : [],
|
|
3337
|
-
endTime: isSet(object.endTime) ?
|
|
3062
|
+
endTime: chunk3M7YYWGL_cjs.isSet(object.endTime) ? chunk3M7YYWGL_cjs.Long.fromValue(object.endTime) : chunk3M7YYWGL_cjs.Long.ZERO
|
|
3338
3063
|
};
|
|
3339
3064
|
},
|
|
3340
3065
|
toJSON(message) {
|
|
3341
3066
|
const obj = {};
|
|
3342
|
-
message.baseAccount !== void 0 && (obj.baseAccount = message.baseAccount ? BaseAccount.toJSON(message.baseAccount) : void 0);
|
|
3067
|
+
message.baseAccount !== void 0 && (obj.baseAccount = message.baseAccount ? chunk3M7YYWGL_cjs.BaseAccount.toJSON(message.baseAccount) : void 0);
|
|
3343
3068
|
if (message.originalVesting) {
|
|
3344
3069
|
obj.originalVesting = message.originalVesting.map((e) => e ? Coin.toJSON(e) : void 0);
|
|
3345
3070
|
} else {
|
|
@@ -3355,34 +3080,34 @@ var BaseVestingAccount = {
|
|
|
3355
3080
|
} else {
|
|
3356
3081
|
obj.delegatedVesting = [];
|
|
3357
3082
|
}
|
|
3358
|
-
message.endTime !== void 0 && (obj.endTime = (message.endTime ||
|
|
3083
|
+
message.endTime !== void 0 && (obj.endTime = (message.endTime || chunk3M7YYWGL_cjs.Long.ZERO).toString());
|
|
3359
3084
|
return obj;
|
|
3360
3085
|
},
|
|
3361
3086
|
fromPartial(object) {
|
|
3362
3087
|
const message = createBaseBaseVestingAccount();
|
|
3363
|
-
message.baseAccount = object.baseAccount !== void 0 && object.baseAccount !== null ? BaseAccount.fromPartial(object.baseAccount) : void 0;
|
|
3088
|
+
message.baseAccount = object.baseAccount !== void 0 && object.baseAccount !== null ? chunk3M7YYWGL_cjs.BaseAccount.fromPartial(object.baseAccount) : void 0;
|
|
3364
3089
|
message.originalVesting = object.originalVesting?.map((e) => Coin.fromPartial(e)) || [];
|
|
3365
3090
|
message.delegatedFree = object.delegatedFree?.map((e) => Coin.fromPartial(e)) || [];
|
|
3366
3091
|
message.delegatedVesting = object.delegatedVesting?.map((e) => Coin.fromPartial(e)) || [];
|
|
3367
|
-
message.endTime = object.endTime !== void 0 && object.endTime !== null ?
|
|
3092
|
+
message.endTime = object.endTime !== void 0 && object.endTime !== null ? chunk3M7YYWGL_cjs.Long.fromValue(object.endTime) : chunk3M7YYWGL_cjs.Long.ZERO;
|
|
3368
3093
|
return message;
|
|
3369
3094
|
},
|
|
3370
3095
|
fromAmino(object) {
|
|
3371
3096
|
const message = createBaseBaseVestingAccount();
|
|
3372
3097
|
if (object.base_account !== void 0 && object.base_account !== null) {
|
|
3373
|
-
message.baseAccount = BaseAccount.fromAmino(object.base_account);
|
|
3098
|
+
message.baseAccount = chunk3M7YYWGL_cjs.BaseAccount.fromAmino(object.base_account);
|
|
3374
3099
|
}
|
|
3375
3100
|
message.originalVesting = object.original_vesting?.map((e) => Coin.fromAmino(e)) || [];
|
|
3376
3101
|
message.delegatedFree = object.delegated_free?.map((e) => Coin.fromAmino(e)) || [];
|
|
3377
3102
|
message.delegatedVesting = object.delegated_vesting?.map((e) => Coin.fromAmino(e)) || [];
|
|
3378
3103
|
if (object.end_time !== void 0 && object.end_time !== null) {
|
|
3379
|
-
message.endTime =
|
|
3104
|
+
message.endTime = chunk3M7YYWGL_cjs.Long.fromString(object.end_time);
|
|
3380
3105
|
}
|
|
3381
3106
|
return message;
|
|
3382
3107
|
},
|
|
3383
3108
|
toAmino(message) {
|
|
3384
3109
|
const obj = {};
|
|
3385
|
-
obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : void 0;
|
|
3110
|
+
obj.base_account = message.baseAccount ? chunk3M7YYWGL_cjs.BaseAccount.toAmino(message.baseAccount) : void 0;
|
|
3386
3111
|
if (message.originalVesting) {
|
|
3387
3112
|
obj.original_vesting = message.originalVesting.map((e) => e ? Coin.toAmino(e) : void 0);
|
|
3388
3113
|
} else {
|
|
@@ -3425,13 +3150,13 @@ var BaseVestingAccount = {
|
|
|
3425
3150
|
};
|
|
3426
3151
|
function createBasePeriod() {
|
|
3427
3152
|
return {
|
|
3428
|
-
length:
|
|
3153
|
+
length: chunk3M7YYWGL_cjs.Long.ZERO,
|
|
3429
3154
|
amount: []
|
|
3430
3155
|
};
|
|
3431
3156
|
}
|
|
3432
3157
|
var Period = {
|
|
3433
3158
|
typeUrl: "/cosmos.vesting.v1beta1.Period",
|
|
3434
|
-
encode(message, writer =
|
|
3159
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
3435
3160
|
if (!message.length.isZero()) {
|
|
3436
3161
|
writer.uint32(8).int64(message.length);
|
|
3437
3162
|
}
|
|
@@ -3441,7 +3166,7 @@ var Period = {
|
|
|
3441
3166
|
return writer;
|
|
3442
3167
|
},
|
|
3443
3168
|
decode(input, length) {
|
|
3444
|
-
const reader = input instanceof
|
|
3169
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
3445
3170
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3446
3171
|
const message = createBasePeriod();
|
|
3447
3172
|
while (reader.pos < end) {
|
|
@@ -3462,13 +3187,13 @@ var Period = {
|
|
|
3462
3187
|
},
|
|
3463
3188
|
fromJSON(object) {
|
|
3464
3189
|
return {
|
|
3465
|
-
length: isSet(object.length) ?
|
|
3190
|
+
length: chunk3M7YYWGL_cjs.isSet(object.length) ? chunk3M7YYWGL_cjs.Long.fromValue(object.length) : chunk3M7YYWGL_cjs.Long.ZERO,
|
|
3466
3191
|
amount: Array.isArray(object?.amount) ? object.amount.map((e) => Coin.fromJSON(e)) : []
|
|
3467
3192
|
};
|
|
3468
3193
|
},
|
|
3469
3194
|
toJSON(message) {
|
|
3470
3195
|
const obj = {};
|
|
3471
|
-
message.length !== void 0 && (obj.length = (message.length ||
|
|
3196
|
+
message.length !== void 0 && (obj.length = (message.length || chunk3M7YYWGL_cjs.Long.ZERO).toString());
|
|
3472
3197
|
if (message.amount) {
|
|
3473
3198
|
obj.amount = message.amount.map((e) => e ? Coin.toJSON(e) : void 0);
|
|
3474
3199
|
} else {
|
|
@@ -3478,14 +3203,14 @@ var Period = {
|
|
|
3478
3203
|
},
|
|
3479
3204
|
fromPartial(object) {
|
|
3480
3205
|
const message = createBasePeriod();
|
|
3481
|
-
message.length = object.length !== void 0 && object.length !== null ?
|
|
3206
|
+
message.length = object.length !== void 0 && object.length !== null ? chunk3M7YYWGL_cjs.Long.fromValue(object.length) : chunk3M7YYWGL_cjs.Long.ZERO;
|
|
3482
3207
|
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
3483
3208
|
return message;
|
|
3484
3209
|
},
|
|
3485
3210
|
fromAmino(object) {
|
|
3486
3211
|
const message = createBasePeriod();
|
|
3487
3212
|
if (object.length !== void 0 && object.length !== null) {
|
|
3488
|
-
message.length =
|
|
3213
|
+
message.length = chunk3M7YYWGL_cjs.Long.fromString(object.length);
|
|
3489
3214
|
}
|
|
3490
3215
|
message.amount = object.amount?.map((e) => Coin.fromAmino(e)) || [];
|
|
3491
3216
|
return message;
|
|
@@ -3524,13 +3249,13 @@ var Period = {
|
|
|
3524
3249
|
};
|
|
3525
3250
|
function createBaseTimestamp() {
|
|
3526
3251
|
return {
|
|
3527
|
-
seconds:
|
|
3252
|
+
seconds: chunk3M7YYWGL_cjs.Long.ZERO,
|
|
3528
3253
|
nanos: 0
|
|
3529
3254
|
};
|
|
3530
3255
|
}
|
|
3531
3256
|
var Timestamp = {
|
|
3532
3257
|
typeUrl: "/google.protobuf.Timestamp",
|
|
3533
|
-
encode(message, writer =
|
|
3258
|
+
encode(message, writer = _m04__default.default.Writer.create()) {
|
|
3534
3259
|
if (!message.seconds.isZero()) {
|
|
3535
3260
|
writer.uint32(8).int64(message.seconds);
|
|
3536
3261
|
}
|
|
@@ -3540,7 +3265,7 @@ var Timestamp = {
|
|
|
3540
3265
|
return writer;
|
|
3541
3266
|
},
|
|
3542
3267
|
decode(input, length) {
|
|
3543
|
-
const reader = input instanceof
|
|
3268
|
+
const reader = input instanceof _m04__default.default.Reader ? input : new _m04__default.default.Reader(input);
|
|
3544
3269
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3545
3270
|
const message = createBaseTimestamp();
|
|
3546
3271
|
while (reader.pos < end) {
|
|
@@ -3561,27 +3286,27 @@ var Timestamp = {
|
|
|
3561
3286
|
},
|
|
3562
3287
|
fromJSON(object) {
|
|
3563
3288
|
return {
|
|
3564
|
-
seconds: isSet(object.seconds) ?
|
|
3565
|
-
nanos: isSet(object.nanos) ? Number(object.nanos) : 0
|
|
3289
|
+
seconds: chunk3M7YYWGL_cjs.isSet(object.seconds) ? chunk3M7YYWGL_cjs.Long.fromValue(object.seconds) : chunk3M7YYWGL_cjs.Long.ZERO,
|
|
3290
|
+
nanos: chunk3M7YYWGL_cjs.isSet(object.nanos) ? Number(object.nanos) : 0
|
|
3566
3291
|
};
|
|
3567
3292
|
},
|
|
3568
3293
|
toJSON(message) {
|
|
3569
3294
|
const obj = {};
|
|
3570
|
-
message.seconds !== void 0 && (obj.seconds = (message.seconds ||
|
|
3295
|
+
message.seconds !== void 0 && (obj.seconds = (message.seconds || chunk3M7YYWGL_cjs.Long.ZERO).toString());
|
|
3571
3296
|
message.nanos !== void 0 && (obj.nanos = Math.round(message.nanos));
|
|
3572
3297
|
return obj;
|
|
3573
3298
|
},
|
|
3574
3299
|
fromPartial(object) {
|
|
3575
3300
|
const message = createBaseTimestamp();
|
|
3576
|
-
message.seconds = object.seconds !== void 0 && object.seconds !== null ?
|
|
3301
|
+
message.seconds = object.seconds !== void 0 && object.seconds !== null ? chunk3M7YYWGL_cjs.Long.fromValue(object.seconds) : chunk3M7YYWGL_cjs.Long.ZERO;
|
|
3577
3302
|
message.nanos = object.nanos ?? 0;
|
|
3578
3303
|
return message;
|
|
3579
3304
|
},
|
|
3580
3305
|
fromAmino(object) {
|
|
3581
|
-
return fromJsonTimestamp(object);
|
|
3306
|
+
return chunk3M7YYWGL_cjs.fromJsonTimestamp(object);
|
|
3582
3307
|
},
|
|
3583
3308
|
toAmino(message) {
|
|
3584
|
-
return fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z");
|
|
3309
|
+
return chunk3M7YYWGL_cjs.fromTimestamp(message).toISOString().replace(/\.\d+Z$/, "Z");
|
|
3585
3310
|
},
|
|
3586
3311
|
fromAminoMsg(object) {
|
|
3587
3312
|
return Timestamp.fromAmino(object.value);
|
|
@@ -3600,10 +3325,6 @@ var Timestamp = {
|
|
|
3600
3325
|
}
|
|
3601
3326
|
};
|
|
3602
3327
|
|
|
3603
|
-
Object.defineProperty(exports, "Long", {
|
|
3604
|
-
enumerable: true,
|
|
3605
|
-
get: function () { return Long__default.default; }
|
|
3606
|
-
});
|
|
3607
3328
|
exports.BaseVestingAccount = BaseVestingAccount;
|
|
3608
3329
|
exports.Coin = Coin;
|
|
3609
3330
|
exports.MsgAcceptOwner = MsgAcceptOwner;
|
|
@@ -3635,8 +3356,3 @@ exports.MsgUpdateSignatureThreshold = MsgUpdateSignatureThreshold;
|
|
|
3635
3356
|
exports.MsgUpdateTokenController = MsgUpdateTokenController;
|
|
3636
3357
|
exports.Period = Period;
|
|
3637
3358
|
exports.Timestamp = Timestamp;
|
|
3638
|
-
exports.fromJsonTimestamp = fromJsonTimestamp;
|
|
3639
|
-
exports.fromTimestamp = fromTimestamp;
|
|
3640
|
-
exports.isSet = isSet;
|
|
3641
|
-
exports.padDecimal = padDecimal;
|
|
3642
|
-
exports.toTimestamp = toTimestamp;
|