coreum-js 2.11.0 → 2.12.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/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +1 -1
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.MsgRevokeAllowanceResponse = exports.MsgRevokeAllowance = exports.MsgGrantAllowanceResponse = exports.MsgGrantAllowance = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const any_1 = require("../../../google/protobuf/any");
|
|
10
|
-
exports.protobufPackage = "cosmos.feegrant.v1beta1";
|
|
11
|
-
function createBaseMsgGrantAllowance() {
|
|
12
|
-
return { granter: "", grantee: "", allowance: undefined };
|
|
13
|
-
}
|
|
14
|
-
exports.MsgGrantAllowance = {
|
|
15
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
-
if (message.granter !== "") {
|
|
17
|
-
writer.uint32(10).string(message.granter);
|
|
18
|
-
}
|
|
19
|
-
if (message.grantee !== "") {
|
|
20
|
-
writer.uint32(18).string(message.grantee);
|
|
21
|
-
}
|
|
22
|
-
if (message.allowance !== undefined) {
|
|
23
|
-
any_1.Any.encode(message.allowance, writer.uint32(26).fork()).ldelim();
|
|
24
|
-
}
|
|
25
|
-
return writer;
|
|
26
|
-
},
|
|
27
|
-
decode(input, length) {
|
|
28
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
29
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
-
const message = createBaseMsgGrantAllowance();
|
|
31
|
-
while (reader.pos < end) {
|
|
32
|
-
const tag = reader.uint32();
|
|
33
|
-
switch (tag >>> 3) {
|
|
34
|
-
case 1:
|
|
35
|
-
if (tag !== 10) {
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
message.granter = reader.string();
|
|
39
|
-
continue;
|
|
40
|
-
case 2:
|
|
41
|
-
if (tag !== 18) {
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
message.grantee = reader.string();
|
|
45
|
-
continue;
|
|
46
|
-
case 3:
|
|
47
|
-
if (tag !== 26) {
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
message.allowance = any_1.Any.decode(reader, reader.uint32());
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
reader.skipType(tag & 7);
|
|
57
|
-
}
|
|
58
|
-
return message;
|
|
59
|
-
},
|
|
60
|
-
fromJSON(object) {
|
|
61
|
-
return {
|
|
62
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
63
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
64
|
-
allowance: isSet(object.allowance)
|
|
65
|
-
? any_1.Any.fromJSON(object.allowance)
|
|
66
|
-
: undefined,
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
toJSON(message) {
|
|
70
|
-
const obj = {};
|
|
71
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
72
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
73
|
-
message.allowance !== undefined &&
|
|
74
|
-
(obj.allowance = message.allowance
|
|
75
|
-
? any_1.Any.toJSON(message.allowance)
|
|
76
|
-
: undefined);
|
|
77
|
-
return obj;
|
|
78
|
-
},
|
|
79
|
-
create(base) {
|
|
80
|
-
return exports.MsgGrantAllowance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
81
|
-
},
|
|
82
|
-
fromPartial(object) {
|
|
83
|
-
var _a, _b;
|
|
84
|
-
const message = createBaseMsgGrantAllowance();
|
|
85
|
-
message.granter = (_a = object.granter) !== null && _a !== void 0 ? _a : "";
|
|
86
|
-
message.grantee = (_b = object.grantee) !== null && _b !== void 0 ? _b : "";
|
|
87
|
-
message.allowance =
|
|
88
|
-
object.allowance !== undefined && object.allowance !== null
|
|
89
|
-
? any_1.Any.fromPartial(object.allowance)
|
|
90
|
-
: undefined;
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
function createBaseMsgGrantAllowanceResponse() {
|
|
95
|
-
return {};
|
|
96
|
-
}
|
|
97
|
-
exports.MsgGrantAllowanceResponse = {
|
|
98
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
99
|
-
return writer;
|
|
100
|
-
},
|
|
101
|
-
decode(input, length) {
|
|
102
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
103
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
-
const message = createBaseMsgGrantAllowanceResponse();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
}
|
|
109
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
reader.skipType(tag & 7);
|
|
113
|
-
}
|
|
114
|
-
return message;
|
|
115
|
-
},
|
|
116
|
-
fromJSON(_) {
|
|
117
|
-
return {};
|
|
118
|
-
},
|
|
119
|
-
toJSON(_) {
|
|
120
|
-
const obj = {};
|
|
121
|
-
return obj;
|
|
122
|
-
},
|
|
123
|
-
create(base) {
|
|
124
|
-
return exports.MsgGrantAllowanceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
125
|
-
},
|
|
126
|
-
fromPartial(_) {
|
|
127
|
-
const message = createBaseMsgGrantAllowanceResponse();
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
function createBaseMsgRevokeAllowance() {
|
|
132
|
-
return { granter: "", grantee: "" };
|
|
133
|
-
}
|
|
134
|
-
exports.MsgRevokeAllowance = {
|
|
135
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
136
|
-
if (message.granter !== "") {
|
|
137
|
-
writer.uint32(10).string(message.granter);
|
|
138
|
-
}
|
|
139
|
-
if (message.grantee !== "") {
|
|
140
|
-
writer.uint32(18).string(message.grantee);
|
|
141
|
-
}
|
|
142
|
-
return writer;
|
|
143
|
-
},
|
|
144
|
-
decode(input, length) {
|
|
145
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
146
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
147
|
-
const message = createBaseMsgRevokeAllowance();
|
|
148
|
-
while (reader.pos < end) {
|
|
149
|
-
const tag = reader.uint32();
|
|
150
|
-
switch (tag >>> 3) {
|
|
151
|
-
case 1:
|
|
152
|
-
if (tag !== 10) {
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
message.granter = reader.string();
|
|
156
|
-
continue;
|
|
157
|
-
case 2:
|
|
158
|
-
if (tag !== 18) {
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
message.grantee = reader.string();
|
|
162
|
-
continue;
|
|
163
|
-
}
|
|
164
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
reader.skipType(tag & 7);
|
|
168
|
-
}
|
|
169
|
-
return message;
|
|
170
|
-
},
|
|
171
|
-
fromJSON(object) {
|
|
172
|
-
return {
|
|
173
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
174
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
175
|
-
};
|
|
176
|
-
},
|
|
177
|
-
toJSON(message) {
|
|
178
|
-
const obj = {};
|
|
179
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
180
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
181
|
-
return obj;
|
|
182
|
-
},
|
|
183
|
-
create(base) {
|
|
184
|
-
return exports.MsgRevokeAllowance.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
185
|
-
},
|
|
186
|
-
fromPartial(object) {
|
|
187
|
-
var _a, _b;
|
|
188
|
-
const message = createBaseMsgRevokeAllowance();
|
|
189
|
-
message.granter = (_a = object.granter) !== null && _a !== void 0 ? _a : "";
|
|
190
|
-
message.grantee = (_b = object.grantee) !== null && _b !== void 0 ? _b : "";
|
|
191
|
-
return message;
|
|
192
|
-
},
|
|
193
|
-
};
|
|
194
|
-
function createBaseMsgRevokeAllowanceResponse() {
|
|
195
|
-
return {};
|
|
196
|
-
}
|
|
197
|
-
exports.MsgRevokeAllowanceResponse = {
|
|
198
|
-
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
199
|
-
return writer;
|
|
200
|
-
},
|
|
201
|
-
decode(input, length) {
|
|
202
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
203
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
204
|
-
const message = createBaseMsgRevokeAllowanceResponse();
|
|
205
|
-
while (reader.pos < end) {
|
|
206
|
-
const tag = reader.uint32();
|
|
207
|
-
switch (tag >>> 3) {
|
|
208
|
-
}
|
|
209
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
reader.skipType(tag & 7);
|
|
213
|
-
}
|
|
214
|
-
return message;
|
|
215
|
-
},
|
|
216
|
-
fromJSON(_) {
|
|
217
|
-
return {};
|
|
218
|
-
},
|
|
219
|
-
toJSON(_) {
|
|
220
|
-
const obj = {};
|
|
221
|
-
return obj;
|
|
222
|
-
},
|
|
223
|
-
create(base) {
|
|
224
|
-
return exports.MsgRevokeAllowanceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
225
|
-
},
|
|
226
|
-
fromPartial(_) {
|
|
227
|
-
const message = createBaseMsgRevokeAllowanceResponse();
|
|
228
|
-
return message;
|
|
229
|
-
},
|
|
230
|
-
};
|
|
231
|
-
class MsgClientImpl {
|
|
232
|
-
constructor(rpc, opts) {
|
|
233
|
-
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || "cosmos.feegrant.v1beta1.Msg";
|
|
234
|
-
this.rpc = rpc;
|
|
235
|
-
this.GrantAllowance = this.GrantAllowance.bind(this);
|
|
236
|
-
this.RevokeAllowance = this.RevokeAllowance.bind(this);
|
|
237
|
-
}
|
|
238
|
-
GrantAllowance(request) {
|
|
239
|
-
const data = exports.MsgGrantAllowance.encode(request).finish();
|
|
240
|
-
const promise = this.rpc.request(this.service, "GrantAllowance", data);
|
|
241
|
-
return promise.then((data) => exports.MsgGrantAllowanceResponse.decode(minimal_1.default.Reader.create(data)));
|
|
242
|
-
}
|
|
243
|
-
RevokeAllowance(request) {
|
|
244
|
-
const data = exports.MsgRevokeAllowance.encode(request).finish();
|
|
245
|
-
const promise = this.rpc.request(this.service, "RevokeAllowance", data);
|
|
246
|
-
return promise.then((data) => exports.MsgRevokeAllowanceResponse.decode(minimal_1.default.Reader.create(data)));
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
exports.MsgClientImpl = MsgClientImpl;
|
|
250
|
-
function isSet(value) {
|
|
251
|
-
return value !== null && value !== undefined;
|
|
252
|
-
}
|