@sparkdreamnft/sparkdreamjs 0.0.29 → 0.0.30
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/akash/bme/v1/events.d.ts +332 -0
- package/akash/bme/v1/events.js +500 -0
- package/akash/bme/v1/filters.d.ts +80 -0
- package/akash/bme/v1/filters.js +110 -0
- package/akash/bme/v1/genesis.d.ts +271 -0
- package/akash/bme/v1/genesis.js +452 -0
- package/akash/bme/v1/msgs.d.ts +585 -0
- package/akash/bme/v1/msgs.js +867 -0
- package/akash/bme/v1/params.d.ts +147 -0
- package/akash/bme/v1/params.js +174 -0
- package/akash/bme/v1/query.d.ts +508 -0
- package/akash/bme/v1/query.js +727 -0
- package/akash/bme/v1/query.lcd.d.ts +12 -0
- package/akash/bme/v1/query.lcd.js +41 -0
- package/akash/bme/v1/query.rpc.Query.d.ts +28 -0
- package/akash/bme/v1/query.rpc.Query.js +56 -0
- package/akash/bme/v1/service.amino.d.ts +28 -0
- package/akash/bme/v1/service.amino.js +32 -0
- package/akash/bme/v1/service.d.ts +1 -0
- package/akash/bme/v1/service.js +2 -0
- package/akash/bme/v1/service.registry.d.ts +73 -0
- package/akash/bme/v1/service.registry.js +109 -0
- package/akash/bme/v1/service.rpc.msg.d.ts +46 -0
- package/akash/bme/v1/service.rpc.msg.js +55 -0
- package/akash/bme/v1/types.d.ts +766 -0
- package/akash/bme/v1/types.js +1283 -0
- package/akash/bundle.d.ts +3317 -2680
- package/akash/bundle.js +294 -263
- package/akash/client.d.ts +25 -0
- package/akash/client.js +4 -1
- package/akash/lcd.d.ts +3 -0
- package/akash/lcd.js +5 -0
- package/akash/rpc.query.d.ts +8 -0
- package/akash/rpc.query.js +3 -0
- package/akash/rpc.tx.d.ts +3 -0
- package/akash/rpc.tx.js +3 -0
- package/amino/bundle.js +2 -2
- package/cosmos/bundle.d.ts +7545 -7545
- package/cosmos/bundle.js +416 -416
- package/cosmos_proto/bundle.d.ts +23 -23
- package/cosmos_proto/bundle.js +2 -2
- package/esm/akash/bme/v1/events.js +497 -0
- package/esm/akash/bme/v1/filters.js +107 -0
- package/esm/akash/bme/v1/genesis.js +449 -0
- package/esm/akash/bme/v1/msgs.js +864 -0
- package/esm/akash/bme/v1/params.js +171 -0
- package/esm/akash/bme/v1/query.js +724 -0
- package/esm/akash/bme/v1/query.lcd.js +37 -0
- package/esm/akash/bme/v1/query.rpc.Query.js +51 -0
- package/esm/akash/bme/v1/service.amino.js +29 -0
- package/esm/akash/bme/v1/service.js +1 -0
- package/esm/akash/bme/v1/service.registry.js +105 -0
- package/esm/akash/bme/v1/service.rpc.msg.js +50 -0
- package/esm/akash/bme/v1/types.js +1274 -0
- package/esm/akash/bundle.js +294 -263
- package/esm/akash/client.js +4 -1
- package/esm/akash/lcd.js +5 -0
- package/esm/akash/rpc.query.js +3 -0
- package/esm/akash/rpc.tx.js +3 -0
- package/esm/amino/bundle.js +2 -2
- package/esm/cosmos/bundle.js +416 -416
- package/esm/cosmos_proto/bundle.js +2 -2
- package/esm/gogoproto/bundle.js +2 -2
- package/esm/google/bundle.js +8 -8
- package/esm/ibc/bundle.js +224 -224
- package/esm/sparkdream/bundle.js +486 -486
- package/esm/tendermint/bundle.js +20 -20
- package/gogoproto/bundle.js +2 -2
- package/google/bundle.d.ts +431 -431
- package/google/bundle.js +8 -8
- package/ibc/bundle.d.ts +3843 -3843
- package/ibc/bundle.js +224 -224
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +17352 -17352
- package/sparkdream/bundle.js +486 -486
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,867 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgBurnACTResponse = exports.MsgMintACTResponse = exports.MsgBurnMintResponse = exports.MsgBurnACT = exports.MsgMintACT = exports.MsgBurnMint = exports.MsgFundVaultResponse = exports.MsgFundVault = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const params_1 = require("./params");
|
|
6
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
7
|
+
const types_1 = require("./types");
|
|
8
|
+
const binary_1 = require("../../../binary");
|
|
9
|
+
function createBaseMsgUpdateParams() {
|
|
10
|
+
return {
|
|
11
|
+
authority: "",
|
|
12
|
+
params: params_1.Params.fromPartial({})
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MsgUpdateParams defines the message for updating module parameters
|
|
17
|
+
* @name MsgUpdateParams
|
|
18
|
+
* @package akash.bme.v1
|
|
19
|
+
* @see proto type: akash.bme.v1.MsgUpdateParams
|
|
20
|
+
*/
|
|
21
|
+
exports.MsgUpdateParams = {
|
|
22
|
+
typeUrl: "/akash.bme.v1.MsgUpdateParams",
|
|
23
|
+
aminoType: "akash/bme/v1/MsgUpdateParams",
|
|
24
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
25
|
+
if (message.authority !== "") {
|
|
26
|
+
writer.uint32(10).string(message.authority);
|
|
27
|
+
}
|
|
28
|
+
if (message.params !== undefined) {
|
|
29
|
+
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
30
|
+
}
|
|
31
|
+
return writer;
|
|
32
|
+
},
|
|
33
|
+
decode(input, length) {
|
|
34
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseMsgUpdateParams();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
message.authority = reader.string();
|
|
42
|
+
break;
|
|
43
|
+
case 2:
|
|
44
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
reader.skipType(tag & 7);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
fromPartial(object) {
|
|
54
|
+
const message = createBaseMsgUpdateParams();
|
|
55
|
+
message.authority = object.authority ?? "";
|
|
56
|
+
message.params = object.params !== undefined && object.params !== null ? params_1.Params.fromPartial(object.params) : undefined;
|
|
57
|
+
return message;
|
|
58
|
+
},
|
|
59
|
+
fromAmino(object) {
|
|
60
|
+
const message = createBaseMsgUpdateParams();
|
|
61
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
62
|
+
message.authority = object.authority;
|
|
63
|
+
}
|
|
64
|
+
if (object.params !== undefined && object.params !== null) {
|
|
65
|
+
message.params = params_1.Params.fromAmino(object.params);
|
|
66
|
+
}
|
|
67
|
+
return message;
|
|
68
|
+
},
|
|
69
|
+
toAmino(message) {
|
|
70
|
+
const obj = {};
|
|
71
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
72
|
+
obj.params = message.params ? params_1.Params.toAmino(message.params) : undefined;
|
|
73
|
+
return obj;
|
|
74
|
+
},
|
|
75
|
+
fromAminoMsg(object) {
|
|
76
|
+
return exports.MsgUpdateParams.fromAmino(object.value);
|
|
77
|
+
},
|
|
78
|
+
toAminoMsg(message) {
|
|
79
|
+
return {
|
|
80
|
+
type: "akash/bme/v1/MsgUpdateParams",
|
|
81
|
+
value: exports.MsgUpdateParams.toAmino(message)
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
fromProtoMsg(message) {
|
|
85
|
+
return exports.MsgUpdateParams.decode(message.value);
|
|
86
|
+
},
|
|
87
|
+
toProto(message) {
|
|
88
|
+
return exports.MsgUpdateParams.encode(message).finish();
|
|
89
|
+
},
|
|
90
|
+
toProtoMsg(message) {
|
|
91
|
+
return {
|
|
92
|
+
typeUrl: "/akash.bme.v1.MsgUpdateParams",
|
|
93
|
+
value: exports.MsgUpdateParams.encode(message).finish()
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function createBaseMsgUpdateParamsResponse() {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* MsgUpdateParamsResponse is the response type for MsgUpdateParams
|
|
102
|
+
* @name MsgUpdateParamsResponse
|
|
103
|
+
* @package akash.bme.v1
|
|
104
|
+
* @see proto type: akash.bme.v1.MsgUpdateParamsResponse
|
|
105
|
+
*/
|
|
106
|
+
exports.MsgUpdateParamsResponse = {
|
|
107
|
+
typeUrl: "/akash.bme.v1.MsgUpdateParamsResponse",
|
|
108
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
109
|
+
return writer;
|
|
110
|
+
},
|
|
111
|
+
decode(input, length) {
|
|
112
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
113
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
114
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
115
|
+
while (reader.pos < end) {
|
|
116
|
+
const tag = reader.uint32();
|
|
117
|
+
switch (tag >>> 3) {
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
fromPartial(_) {
|
|
126
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromAmino(_) {
|
|
130
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
toAmino(_) {
|
|
134
|
+
const obj = {};
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
fromAminoMsg(object) {
|
|
138
|
+
return exports.MsgUpdateParamsResponse.fromAmino(object.value);
|
|
139
|
+
},
|
|
140
|
+
fromProtoMsg(message) {
|
|
141
|
+
return exports.MsgUpdateParamsResponse.decode(message.value);
|
|
142
|
+
},
|
|
143
|
+
toProto(message) {
|
|
144
|
+
return exports.MsgUpdateParamsResponse.encode(message).finish();
|
|
145
|
+
},
|
|
146
|
+
toProtoMsg(message) {
|
|
147
|
+
return {
|
|
148
|
+
typeUrl: "/akash.bme.v1.MsgUpdateParamsResponse",
|
|
149
|
+
value: exports.MsgUpdateParamsResponse.encode(message).finish()
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
function createBaseMsgFundVault() {
|
|
154
|
+
return {
|
|
155
|
+
authority: "",
|
|
156
|
+
amount: coin_1.Coin.fromPartial({}),
|
|
157
|
+
source: ""
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* MsgFundVault defines the message for funding the BME vault with AKT
|
|
162
|
+
* This is used to provide an initial volatility buffer
|
|
163
|
+
* @name MsgFundVault
|
|
164
|
+
* @package akash.bme.v1
|
|
165
|
+
* @see proto type: akash.bme.v1.MsgFundVault
|
|
166
|
+
*/
|
|
167
|
+
exports.MsgFundVault = {
|
|
168
|
+
typeUrl: "/akash.bme.v1.MsgFundVault",
|
|
169
|
+
aminoType: "akash/bme/v1/MsgFundVault",
|
|
170
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
171
|
+
if (message.authority !== "") {
|
|
172
|
+
writer.uint32(10).string(message.authority);
|
|
173
|
+
}
|
|
174
|
+
if (message.amount !== undefined) {
|
|
175
|
+
coin_1.Coin.encode(message.amount, writer.uint32(18).fork()).ldelim();
|
|
176
|
+
}
|
|
177
|
+
if (message.source !== "") {
|
|
178
|
+
writer.uint32(26).string(message.source);
|
|
179
|
+
}
|
|
180
|
+
return writer;
|
|
181
|
+
},
|
|
182
|
+
decode(input, length) {
|
|
183
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
184
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
+
const message = createBaseMsgFundVault();
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
const tag = reader.uint32();
|
|
188
|
+
switch (tag >>> 3) {
|
|
189
|
+
case 1:
|
|
190
|
+
message.authority = reader.string();
|
|
191
|
+
break;
|
|
192
|
+
case 2:
|
|
193
|
+
message.amount = coin_1.Coin.decode(reader, reader.uint32());
|
|
194
|
+
break;
|
|
195
|
+
case 3:
|
|
196
|
+
message.source = reader.string();
|
|
197
|
+
break;
|
|
198
|
+
default:
|
|
199
|
+
reader.skipType(tag & 7);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
fromPartial(object) {
|
|
206
|
+
const message = createBaseMsgFundVault();
|
|
207
|
+
message.authority = object.authority ?? "";
|
|
208
|
+
message.amount = object.amount !== undefined && object.amount !== null ? coin_1.Coin.fromPartial(object.amount) : undefined;
|
|
209
|
+
message.source = object.source ?? "";
|
|
210
|
+
return message;
|
|
211
|
+
},
|
|
212
|
+
fromAmino(object) {
|
|
213
|
+
const message = createBaseMsgFundVault();
|
|
214
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
215
|
+
message.authority = object.authority;
|
|
216
|
+
}
|
|
217
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
218
|
+
message.amount = coin_1.Coin.fromAmino(object.amount);
|
|
219
|
+
}
|
|
220
|
+
if (object.source !== undefined && object.source !== null) {
|
|
221
|
+
message.source = object.source;
|
|
222
|
+
}
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
toAmino(message) {
|
|
226
|
+
const obj = {};
|
|
227
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
228
|
+
obj.amount = message.amount ? coin_1.Coin.toAmino(message.amount) : undefined;
|
|
229
|
+
obj.source = message.source === "" ? undefined : message.source;
|
|
230
|
+
return obj;
|
|
231
|
+
},
|
|
232
|
+
fromAminoMsg(object) {
|
|
233
|
+
return exports.MsgFundVault.fromAmino(object.value);
|
|
234
|
+
},
|
|
235
|
+
toAminoMsg(message) {
|
|
236
|
+
return {
|
|
237
|
+
type: "akash/bme/v1/MsgFundVault",
|
|
238
|
+
value: exports.MsgFundVault.toAmino(message)
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
fromProtoMsg(message) {
|
|
242
|
+
return exports.MsgFundVault.decode(message.value);
|
|
243
|
+
},
|
|
244
|
+
toProto(message) {
|
|
245
|
+
return exports.MsgFundVault.encode(message).finish();
|
|
246
|
+
},
|
|
247
|
+
toProtoMsg(message) {
|
|
248
|
+
return {
|
|
249
|
+
typeUrl: "/akash.bme.v1.MsgFundVault",
|
|
250
|
+
value: exports.MsgFundVault.encode(message).finish()
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
function createBaseMsgFundVaultResponse() {
|
|
255
|
+
return {};
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* MsgFundVaultResponse is the response type for MsgFundVault
|
|
259
|
+
* @name MsgFundVaultResponse
|
|
260
|
+
* @package akash.bme.v1
|
|
261
|
+
* @see proto type: akash.bme.v1.MsgFundVaultResponse
|
|
262
|
+
*/
|
|
263
|
+
exports.MsgFundVaultResponse = {
|
|
264
|
+
typeUrl: "/akash.bme.v1.MsgFundVaultResponse",
|
|
265
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
266
|
+
return writer;
|
|
267
|
+
},
|
|
268
|
+
decode(input, length) {
|
|
269
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
270
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
271
|
+
const message = createBaseMsgFundVaultResponse();
|
|
272
|
+
while (reader.pos < end) {
|
|
273
|
+
const tag = reader.uint32();
|
|
274
|
+
switch (tag >>> 3) {
|
|
275
|
+
default:
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromPartial(_) {
|
|
283
|
+
const message = createBaseMsgFundVaultResponse();
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
fromAmino(_) {
|
|
287
|
+
const message = createBaseMsgFundVaultResponse();
|
|
288
|
+
return message;
|
|
289
|
+
},
|
|
290
|
+
toAmino(_) {
|
|
291
|
+
const obj = {};
|
|
292
|
+
return obj;
|
|
293
|
+
},
|
|
294
|
+
fromAminoMsg(object) {
|
|
295
|
+
return exports.MsgFundVaultResponse.fromAmino(object.value);
|
|
296
|
+
},
|
|
297
|
+
fromProtoMsg(message) {
|
|
298
|
+
return exports.MsgFundVaultResponse.decode(message.value);
|
|
299
|
+
},
|
|
300
|
+
toProto(message) {
|
|
301
|
+
return exports.MsgFundVaultResponse.encode(message).finish();
|
|
302
|
+
},
|
|
303
|
+
toProtoMsg(message) {
|
|
304
|
+
return {
|
|
305
|
+
typeUrl: "/akash.bme.v1.MsgFundVaultResponse",
|
|
306
|
+
value: exports.MsgFundVaultResponse.encode(message).finish()
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
function createBaseMsgBurnMint() {
|
|
311
|
+
return {
|
|
312
|
+
owner: "",
|
|
313
|
+
to: "",
|
|
314
|
+
coinsToBurn: coin_1.Coin.fromPartial({}),
|
|
315
|
+
denomToMint: ""
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* MsgBurnMint defines the message for burning one token to mint another
|
|
320
|
+
* Allows burning AKT to mint ACT, or burning unused ACT back to AKT
|
|
321
|
+
* @name MsgBurnMint
|
|
322
|
+
* @package akash.bme.v1
|
|
323
|
+
* @see proto type: akash.bme.v1.MsgBurnMint
|
|
324
|
+
*/
|
|
325
|
+
exports.MsgBurnMint = {
|
|
326
|
+
typeUrl: "/akash.bme.v1.MsgBurnMint",
|
|
327
|
+
aminoType: "akash/bme/v1/MsgBurnMint",
|
|
328
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
329
|
+
if (message.owner !== "") {
|
|
330
|
+
writer.uint32(10).string(message.owner);
|
|
331
|
+
}
|
|
332
|
+
if (message.to !== "") {
|
|
333
|
+
writer.uint32(18).string(message.to);
|
|
334
|
+
}
|
|
335
|
+
if (message.coinsToBurn !== undefined) {
|
|
336
|
+
coin_1.Coin.encode(message.coinsToBurn, writer.uint32(26).fork()).ldelim();
|
|
337
|
+
}
|
|
338
|
+
if (message.denomToMint !== "") {
|
|
339
|
+
writer.uint32(34).string(message.denomToMint);
|
|
340
|
+
}
|
|
341
|
+
return writer;
|
|
342
|
+
},
|
|
343
|
+
decode(input, length) {
|
|
344
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
345
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
346
|
+
const message = createBaseMsgBurnMint();
|
|
347
|
+
while (reader.pos < end) {
|
|
348
|
+
const tag = reader.uint32();
|
|
349
|
+
switch (tag >>> 3) {
|
|
350
|
+
case 1:
|
|
351
|
+
message.owner = reader.string();
|
|
352
|
+
break;
|
|
353
|
+
case 2:
|
|
354
|
+
message.to = reader.string();
|
|
355
|
+
break;
|
|
356
|
+
case 3:
|
|
357
|
+
message.coinsToBurn = coin_1.Coin.decode(reader, reader.uint32());
|
|
358
|
+
break;
|
|
359
|
+
case 4:
|
|
360
|
+
message.denomToMint = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
default:
|
|
363
|
+
reader.skipType(tag & 7);
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return message;
|
|
368
|
+
},
|
|
369
|
+
fromPartial(object) {
|
|
370
|
+
const message = createBaseMsgBurnMint();
|
|
371
|
+
message.owner = object.owner ?? "";
|
|
372
|
+
message.to = object.to ?? "";
|
|
373
|
+
message.coinsToBurn = object.coinsToBurn !== undefined && object.coinsToBurn !== null ? coin_1.Coin.fromPartial(object.coinsToBurn) : undefined;
|
|
374
|
+
message.denomToMint = object.denomToMint ?? "";
|
|
375
|
+
return message;
|
|
376
|
+
},
|
|
377
|
+
fromAmino(object) {
|
|
378
|
+
const message = createBaseMsgBurnMint();
|
|
379
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
380
|
+
message.owner = object.owner;
|
|
381
|
+
}
|
|
382
|
+
if (object.to !== undefined && object.to !== null) {
|
|
383
|
+
message.to = object.to;
|
|
384
|
+
}
|
|
385
|
+
if (object.coins_to_burn !== undefined && object.coins_to_burn !== null) {
|
|
386
|
+
message.coinsToBurn = coin_1.Coin.fromAmino(object.coins_to_burn);
|
|
387
|
+
}
|
|
388
|
+
if (object.denom_to_mint !== undefined && object.denom_to_mint !== null) {
|
|
389
|
+
message.denomToMint = object.denom_to_mint;
|
|
390
|
+
}
|
|
391
|
+
return message;
|
|
392
|
+
},
|
|
393
|
+
toAmino(message) {
|
|
394
|
+
const obj = {};
|
|
395
|
+
obj.owner = message.owner ?? "";
|
|
396
|
+
obj.to = message.to ?? "";
|
|
397
|
+
obj.coins_to_burn = message.coinsToBurn ? coin_1.Coin.toAmino(message.coinsToBurn) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
398
|
+
obj.denom_to_mint = message.denomToMint ?? "";
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
fromAminoMsg(object) {
|
|
402
|
+
return exports.MsgBurnMint.fromAmino(object.value);
|
|
403
|
+
},
|
|
404
|
+
toAminoMsg(message) {
|
|
405
|
+
return {
|
|
406
|
+
type: "akash/bme/v1/MsgBurnMint",
|
|
407
|
+
value: exports.MsgBurnMint.toAmino(message)
|
|
408
|
+
};
|
|
409
|
+
},
|
|
410
|
+
fromProtoMsg(message) {
|
|
411
|
+
return exports.MsgBurnMint.decode(message.value);
|
|
412
|
+
},
|
|
413
|
+
toProto(message) {
|
|
414
|
+
return exports.MsgBurnMint.encode(message).finish();
|
|
415
|
+
},
|
|
416
|
+
toProtoMsg(message) {
|
|
417
|
+
return {
|
|
418
|
+
typeUrl: "/akash.bme.v1.MsgBurnMint",
|
|
419
|
+
value: exports.MsgBurnMint.encode(message).finish()
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
function createBaseMsgMintACT() {
|
|
424
|
+
return {
|
|
425
|
+
owner: "",
|
|
426
|
+
to: "",
|
|
427
|
+
coinsToBurn: coin_1.Coin.fromPartial({})
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* MsgMintACT defines the message for burning one token to mint another
|
|
432
|
+
* Allows burning AKT to mint ACT, or burning unused ACT back to AKT
|
|
433
|
+
* @name MsgMintACT
|
|
434
|
+
* @package akash.bme.v1
|
|
435
|
+
* @see proto type: akash.bme.v1.MsgMintACT
|
|
436
|
+
*/
|
|
437
|
+
exports.MsgMintACT = {
|
|
438
|
+
typeUrl: "/akash.bme.v1.MsgMintACT",
|
|
439
|
+
aminoType: "akash/bme/v1/MsgMintACT",
|
|
440
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
441
|
+
if (message.owner !== "") {
|
|
442
|
+
writer.uint32(10).string(message.owner);
|
|
443
|
+
}
|
|
444
|
+
if (message.to !== "") {
|
|
445
|
+
writer.uint32(18).string(message.to);
|
|
446
|
+
}
|
|
447
|
+
if (message.coinsToBurn !== undefined) {
|
|
448
|
+
coin_1.Coin.encode(message.coinsToBurn, writer.uint32(26).fork()).ldelim();
|
|
449
|
+
}
|
|
450
|
+
return writer;
|
|
451
|
+
},
|
|
452
|
+
decode(input, length) {
|
|
453
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
454
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
455
|
+
const message = createBaseMsgMintACT();
|
|
456
|
+
while (reader.pos < end) {
|
|
457
|
+
const tag = reader.uint32();
|
|
458
|
+
switch (tag >>> 3) {
|
|
459
|
+
case 1:
|
|
460
|
+
message.owner = reader.string();
|
|
461
|
+
break;
|
|
462
|
+
case 2:
|
|
463
|
+
message.to = reader.string();
|
|
464
|
+
break;
|
|
465
|
+
case 3:
|
|
466
|
+
message.coinsToBurn = coin_1.Coin.decode(reader, reader.uint32());
|
|
467
|
+
break;
|
|
468
|
+
default:
|
|
469
|
+
reader.skipType(tag & 7);
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return message;
|
|
474
|
+
},
|
|
475
|
+
fromPartial(object) {
|
|
476
|
+
const message = createBaseMsgMintACT();
|
|
477
|
+
message.owner = object.owner ?? "";
|
|
478
|
+
message.to = object.to ?? "";
|
|
479
|
+
message.coinsToBurn = object.coinsToBurn !== undefined && object.coinsToBurn !== null ? coin_1.Coin.fromPartial(object.coinsToBurn) : undefined;
|
|
480
|
+
return message;
|
|
481
|
+
},
|
|
482
|
+
fromAmino(object) {
|
|
483
|
+
const message = createBaseMsgMintACT();
|
|
484
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
485
|
+
message.owner = object.owner;
|
|
486
|
+
}
|
|
487
|
+
if (object.to !== undefined && object.to !== null) {
|
|
488
|
+
message.to = object.to;
|
|
489
|
+
}
|
|
490
|
+
if (object.coins_to_burn !== undefined && object.coins_to_burn !== null) {
|
|
491
|
+
message.coinsToBurn = coin_1.Coin.fromAmino(object.coins_to_burn);
|
|
492
|
+
}
|
|
493
|
+
return message;
|
|
494
|
+
},
|
|
495
|
+
toAmino(message) {
|
|
496
|
+
const obj = {};
|
|
497
|
+
obj.owner = message.owner ?? "";
|
|
498
|
+
obj.to = message.to ?? "";
|
|
499
|
+
obj.coins_to_burn = message.coinsToBurn ? coin_1.Coin.toAmino(message.coinsToBurn) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
500
|
+
return obj;
|
|
501
|
+
},
|
|
502
|
+
fromAminoMsg(object) {
|
|
503
|
+
return exports.MsgMintACT.fromAmino(object.value);
|
|
504
|
+
},
|
|
505
|
+
toAminoMsg(message) {
|
|
506
|
+
return {
|
|
507
|
+
type: "akash/bme/v1/MsgMintACT",
|
|
508
|
+
value: exports.MsgMintACT.toAmino(message)
|
|
509
|
+
};
|
|
510
|
+
},
|
|
511
|
+
fromProtoMsg(message) {
|
|
512
|
+
return exports.MsgMintACT.decode(message.value);
|
|
513
|
+
},
|
|
514
|
+
toProto(message) {
|
|
515
|
+
return exports.MsgMintACT.encode(message).finish();
|
|
516
|
+
},
|
|
517
|
+
toProtoMsg(message) {
|
|
518
|
+
return {
|
|
519
|
+
typeUrl: "/akash.bme.v1.MsgMintACT",
|
|
520
|
+
value: exports.MsgMintACT.encode(message).finish()
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
function createBaseMsgBurnACT() {
|
|
525
|
+
return {
|
|
526
|
+
owner: "",
|
|
527
|
+
to: "",
|
|
528
|
+
coinsToBurn: coin_1.Coin.fromPartial({})
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* MsgMintACT defines the message for burning one token to mint another
|
|
533
|
+
* Allows burning AKT to mint ACT, or burning unused ACT back to AKT
|
|
534
|
+
* @name MsgBurnACT
|
|
535
|
+
* @package akash.bme.v1
|
|
536
|
+
* @see proto type: akash.bme.v1.MsgBurnACT
|
|
537
|
+
*/
|
|
538
|
+
exports.MsgBurnACT = {
|
|
539
|
+
typeUrl: "/akash.bme.v1.MsgBurnACT",
|
|
540
|
+
aminoType: "akash/bme/v1/MsgBurnACT",
|
|
541
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
542
|
+
if (message.owner !== "") {
|
|
543
|
+
writer.uint32(10).string(message.owner);
|
|
544
|
+
}
|
|
545
|
+
if (message.to !== "") {
|
|
546
|
+
writer.uint32(18).string(message.to);
|
|
547
|
+
}
|
|
548
|
+
if (message.coinsToBurn !== undefined) {
|
|
549
|
+
coin_1.Coin.encode(message.coinsToBurn, writer.uint32(26).fork()).ldelim();
|
|
550
|
+
}
|
|
551
|
+
return writer;
|
|
552
|
+
},
|
|
553
|
+
decode(input, length) {
|
|
554
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
555
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
556
|
+
const message = createBaseMsgBurnACT();
|
|
557
|
+
while (reader.pos < end) {
|
|
558
|
+
const tag = reader.uint32();
|
|
559
|
+
switch (tag >>> 3) {
|
|
560
|
+
case 1:
|
|
561
|
+
message.owner = reader.string();
|
|
562
|
+
break;
|
|
563
|
+
case 2:
|
|
564
|
+
message.to = reader.string();
|
|
565
|
+
break;
|
|
566
|
+
case 3:
|
|
567
|
+
message.coinsToBurn = coin_1.Coin.decode(reader, reader.uint32());
|
|
568
|
+
break;
|
|
569
|
+
default:
|
|
570
|
+
reader.skipType(tag & 7);
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return message;
|
|
575
|
+
},
|
|
576
|
+
fromPartial(object) {
|
|
577
|
+
const message = createBaseMsgBurnACT();
|
|
578
|
+
message.owner = object.owner ?? "";
|
|
579
|
+
message.to = object.to ?? "";
|
|
580
|
+
message.coinsToBurn = object.coinsToBurn !== undefined && object.coinsToBurn !== null ? coin_1.Coin.fromPartial(object.coinsToBurn) : undefined;
|
|
581
|
+
return message;
|
|
582
|
+
},
|
|
583
|
+
fromAmino(object) {
|
|
584
|
+
const message = createBaseMsgBurnACT();
|
|
585
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
586
|
+
message.owner = object.owner;
|
|
587
|
+
}
|
|
588
|
+
if (object.to !== undefined && object.to !== null) {
|
|
589
|
+
message.to = object.to;
|
|
590
|
+
}
|
|
591
|
+
if (object.coins_to_burn !== undefined && object.coins_to_burn !== null) {
|
|
592
|
+
message.coinsToBurn = coin_1.Coin.fromAmino(object.coins_to_burn);
|
|
593
|
+
}
|
|
594
|
+
return message;
|
|
595
|
+
},
|
|
596
|
+
toAmino(message) {
|
|
597
|
+
const obj = {};
|
|
598
|
+
obj.owner = message.owner ?? "";
|
|
599
|
+
obj.to = message.to ?? "";
|
|
600
|
+
obj.coins_to_burn = message.coinsToBurn ? coin_1.Coin.toAmino(message.coinsToBurn) : coin_1.Coin.toAmino(coin_1.Coin.fromPartial({}));
|
|
601
|
+
return obj;
|
|
602
|
+
},
|
|
603
|
+
fromAminoMsg(object) {
|
|
604
|
+
return exports.MsgBurnACT.fromAmino(object.value);
|
|
605
|
+
},
|
|
606
|
+
toAminoMsg(message) {
|
|
607
|
+
return {
|
|
608
|
+
type: "akash/bme/v1/MsgBurnACT",
|
|
609
|
+
value: exports.MsgBurnACT.toAmino(message)
|
|
610
|
+
};
|
|
611
|
+
},
|
|
612
|
+
fromProtoMsg(message) {
|
|
613
|
+
return exports.MsgBurnACT.decode(message.value);
|
|
614
|
+
},
|
|
615
|
+
toProto(message) {
|
|
616
|
+
return exports.MsgBurnACT.encode(message).finish();
|
|
617
|
+
},
|
|
618
|
+
toProtoMsg(message) {
|
|
619
|
+
return {
|
|
620
|
+
typeUrl: "/akash.bme.v1.MsgBurnACT",
|
|
621
|
+
value: exports.MsgBurnACT.encode(message).finish()
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
function createBaseMsgBurnMintResponse() {
|
|
626
|
+
return {
|
|
627
|
+
id: types_1.LedgerRecordID.fromPartial({}),
|
|
628
|
+
status: 0
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* MsgBurnMintResponse is the response type for MsgBurnMint
|
|
633
|
+
* @name MsgBurnMintResponse
|
|
634
|
+
* @package akash.bme.v1
|
|
635
|
+
* @see proto type: akash.bme.v1.MsgBurnMintResponse
|
|
636
|
+
*/
|
|
637
|
+
exports.MsgBurnMintResponse = {
|
|
638
|
+
typeUrl: "/akash.bme.v1.MsgBurnMintResponse",
|
|
639
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
640
|
+
if (message.id !== undefined) {
|
|
641
|
+
types_1.LedgerRecordID.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
642
|
+
}
|
|
643
|
+
if (message.status !== 0) {
|
|
644
|
+
writer.uint32(16).int32(message.status);
|
|
645
|
+
}
|
|
646
|
+
return writer;
|
|
647
|
+
},
|
|
648
|
+
decode(input, length) {
|
|
649
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
650
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
651
|
+
const message = createBaseMsgBurnMintResponse();
|
|
652
|
+
while (reader.pos < end) {
|
|
653
|
+
const tag = reader.uint32();
|
|
654
|
+
switch (tag >>> 3) {
|
|
655
|
+
case 1:
|
|
656
|
+
message.id = types_1.LedgerRecordID.decode(reader, reader.uint32());
|
|
657
|
+
break;
|
|
658
|
+
case 2:
|
|
659
|
+
message.status = reader.int32();
|
|
660
|
+
break;
|
|
661
|
+
default:
|
|
662
|
+
reader.skipType(tag & 7);
|
|
663
|
+
break;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return message;
|
|
667
|
+
},
|
|
668
|
+
fromPartial(object) {
|
|
669
|
+
const message = createBaseMsgBurnMintResponse();
|
|
670
|
+
message.id = object.id !== undefined && object.id !== null ? types_1.LedgerRecordID.fromPartial(object.id) : undefined;
|
|
671
|
+
message.status = object.status ?? 0;
|
|
672
|
+
return message;
|
|
673
|
+
},
|
|
674
|
+
fromAmino(object) {
|
|
675
|
+
const message = createBaseMsgBurnMintResponse();
|
|
676
|
+
if (object.id !== undefined && object.id !== null) {
|
|
677
|
+
message.id = types_1.LedgerRecordID.fromAmino(object.id);
|
|
678
|
+
}
|
|
679
|
+
if (object.status !== undefined && object.status !== null) {
|
|
680
|
+
message.status = object.status;
|
|
681
|
+
}
|
|
682
|
+
return message;
|
|
683
|
+
},
|
|
684
|
+
toAmino(message) {
|
|
685
|
+
const obj = {};
|
|
686
|
+
obj.id = message.id ? types_1.LedgerRecordID.toAmino(message.id) : types_1.LedgerRecordID.toAmino(types_1.LedgerRecordID.fromPartial({}));
|
|
687
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
688
|
+
return obj;
|
|
689
|
+
},
|
|
690
|
+
fromAminoMsg(object) {
|
|
691
|
+
return exports.MsgBurnMintResponse.fromAmino(object.value);
|
|
692
|
+
},
|
|
693
|
+
fromProtoMsg(message) {
|
|
694
|
+
return exports.MsgBurnMintResponse.decode(message.value);
|
|
695
|
+
},
|
|
696
|
+
toProto(message) {
|
|
697
|
+
return exports.MsgBurnMintResponse.encode(message).finish();
|
|
698
|
+
},
|
|
699
|
+
toProtoMsg(message) {
|
|
700
|
+
return {
|
|
701
|
+
typeUrl: "/akash.bme.v1.MsgBurnMintResponse",
|
|
702
|
+
value: exports.MsgBurnMintResponse.encode(message).finish()
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
function createBaseMsgMintACTResponse() {
|
|
707
|
+
return {
|
|
708
|
+
id: types_1.LedgerRecordID.fromPartial({}),
|
|
709
|
+
status: 0
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* MsgBurnMintResponse is the response type for MsgBurnMint
|
|
714
|
+
* @name MsgMintACTResponse
|
|
715
|
+
* @package akash.bme.v1
|
|
716
|
+
* @see proto type: akash.bme.v1.MsgMintACTResponse
|
|
717
|
+
*/
|
|
718
|
+
exports.MsgMintACTResponse = {
|
|
719
|
+
typeUrl: "/akash.bme.v1.MsgMintACTResponse",
|
|
720
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
721
|
+
if (message.id !== undefined) {
|
|
722
|
+
types_1.LedgerRecordID.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
723
|
+
}
|
|
724
|
+
if (message.status !== 0) {
|
|
725
|
+
writer.uint32(16).int32(message.status);
|
|
726
|
+
}
|
|
727
|
+
return writer;
|
|
728
|
+
},
|
|
729
|
+
decode(input, length) {
|
|
730
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
731
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
732
|
+
const message = createBaseMsgMintACTResponse();
|
|
733
|
+
while (reader.pos < end) {
|
|
734
|
+
const tag = reader.uint32();
|
|
735
|
+
switch (tag >>> 3) {
|
|
736
|
+
case 1:
|
|
737
|
+
message.id = types_1.LedgerRecordID.decode(reader, reader.uint32());
|
|
738
|
+
break;
|
|
739
|
+
case 2:
|
|
740
|
+
message.status = reader.int32();
|
|
741
|
+
break;
|
|
742
|
+
default:
|
|
743
|
+
reader.skipType(tag & 7);
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
748
|
+
},
|
|
749
|
+
fromPartial(object) {
|
|
750
|
+
const message = createBaseMsgMintACTResponse();
|
|
751
|
+
message.id = object.id !== undefined && object.id !== null ? types_1.LedgerRecordID.fromPartial(object.id) : undefined;
|
|
752
|
+
message.status = object.status ?? 0;
|
|
753
|
+
return message;
|
|
754
|
+
},
|
|
755
|
+
fromAmino(object) {
|
|
756
|
+
const message = createBaseMsgMintACTResponse();
|
|
757
|
+
if (object.id !== undefined && object.id !== null) {
|
|
758
|
+
message.id = types_1.LedgerRecordID.fromAmino(object.id);
|
|
759
|
+
}
|
|
760
|
+
if (object.status !== undefined && object.status !== null) {
|
|
761
|
+
message.status = object.status;
|
|
762
|
+
}
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
toAmino(message) {
|
|
766
|
+
const obj = {};
|
|
767
|
+
obj.id = message.id ? types_1.LedgerRecordID.toAmino(message.id) : types_1.LedgerRecordID.toAmino(types_1.LedgerRecordID.fromPartial({}));
|
|
768
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
769
|
+
return obj;
|
|
770
|
+
},
|
|
771
|
+
fromAminoMsg(object) {
|
|
772
|
+
return exports.MsgMintACTResponse.fromAmino(object.value);
|
|
773
|
+
},
|
|
774
|
+
fromProtoMsg(message) {
|
|
775
|
+
return exports.MsgMintACTResponse.decode(message.value);
|
|
776
|
+
},
|
|
777
|
+
toProto(message) {
|
|
778
|
+
return exports.MsgMintACTResponse.encode(message).finish();
|
|
779
|
+
},
|
|
780
|
+
toProtoMsg(message) {
|
|
781
|
+
return {
|
|
782
|
+
typeUrl: "/akash.bme.v1.MsgMintACTResponse",
|
|
783
|
+
value: exports.MsgMintACTResponse.encode(message).finish()
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
function createBaseMsgBurnACTResponse() {
|
|
788
|
+
return {
|
|
789
|
+
id: types_1.LedgerRecordID.fromPartial({}),
|
|
790
|
+
status: 0
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* MsgBurnMintResponse is the response type for MsgBurnMint
|
|
795
|
+
* @name MsgBurnACTResponse
|
|
796
|
+
* @package akash.bme.v1
|
|
797
|
+
* @see proto type: akash.bme.v1.MsgBurnACTResponse
|
|
798
|
+
*/
|
|
799
|
+
exports.MsgBurnACTResponse = {
|
|
800
|
+
typeUrl: "/akash.bme.v1.MsgBurnACTResponse",
|
|
801
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
802
|
+
if (message.id !== undefined) {
|
|
803
|
+
types_1.LedgerRecordID.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
804
|
+
}
|
|
805
|
+
if (message.status !== 0) {
|
|
806
|
+
writer.uint32(16).int32(message.status);
|
|
807
|
+
}
|
|
808
|
+
return writer;
|
|
809
|
+
},
|
|
810
|
+
decode(input, length) {
|
|
811
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
812
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
813
|
+
const message = createBaseMsgBurnACTResponse();
|
|
814
|
+
while (reader.pos < end) {
|
|
815
|
+
const tag = reader.uint32();
|
|
816
|
+
switch (tag >>> 3) {
|
|
817
|
+
case 1:
|
|
818
|
+
message.id = types_1.LedgerRecordID.decode(reader, reader.uint32());
|
|
819
|
+
break;
|
|
820
|
+
case 2:
|
|
821
|
+
message.status = reader.int32();
|
|
822
|
+
break;
|
|
823
|
+
default:
|
|
824
|
+
reader.skipType(tag & 7);
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return message;
|
|
829
|
+
},
|
|
830
|
+
fromPartial(object) {
|
|
831
|
+
const message = createBaseMsgBurnACTResponse();
|
|
832
|
+
message.id = object.id !== undefined && object.id !== null ? types_1.LedgerRecordID.fromPartial(object.id) : undefined;
|
|
833
|
+
message.status = object.status ?? 0;
|
|
834
|
+
return message;
|
|
835
|
+
},
|
|
836
|
+
fromAmino(object) {
|
|
837
|
+
const message = createBaseMsgBurnACTResponse();
|
|
838
|
+
if (object.id !== undefined && object.id !== null) {
|
|
839
|
+
message.id = types_1.LedgerRecordID.fromAmino(object.id);
|
|
840
|
+
}
|
|
841
|
+
if (object.status !== undefined && object.status !== null) {
|
|
842
|
+
message.status = object.status;
|
|
843
|
+
}
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
toAmino(message) {
|
|
847
|
+
const obj = {};
|
|
848
|
+
obj.id = message.id ? types_1.LedgerRecordID.toAmino(message.id) : types_1.LedgerRecordID.toAmino(types_1.LedgerRecordID.fromPartial({}));
|
|
849
|
+
obj.status = message.status === 0 ? undefined : message.status;
|
|
850
|
+
return obj;
|
|
851
|
+
},
|
|
852
|
+
fromAminoMsg(object) {
|
|
853
|
+
return exports.MsgBurnACTResponse.fromAmino(object.value);
|
|
854
|
+
},
|
|
855
|
+
fromProtoMsg(message) {
|
|
856
|
+
return exports.MsgBurnACTResponse.decode(message.value);
|
|
857
|
+
},
|
|
858
|
+
toProto(message) {
|
|
859
|
+
return exports.MsgBurnACTResponse.encode(message).finish();
|
|
860
|
+
},
|
|
861
|
+
toProtoMsg(message) {
|
|
862
|
+
return {
|
|
863
|
+
typeUrl: "/akash.bme.v1.MsgBurnACTResponse",
|
|
864
|
+
value: exports.MsgBurnACTResponse.encode(message).finish()
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
};
|