coreum-js 2.11.0 → 2.13.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/token.d.ts +1 -0
- package/dist/main/coreum/asset/ft/v1/token.js +6 -0
- 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/token.d.ts +1 -0
- package/dist/module/coreum/asset/ft/v1/token.js +6 -0
- 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,319 +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.GrantQueueItem = exports.GrantAuthorization = exports.Grant = exports.GenericAuthorization = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
const any_1 = require("../../../google/protobuf/any");
|
|
10
|
-
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
11
|
-
exports.protobufPackage = "cosmos.authz.v1beta1";
|
|
12
|
-
function createBaseGenericAuthorization() {
|
|
13
|
-
return { msg: "" };
|
|
14
|
-
}
|
|
15
|
-
exports.GenericAuthorization = {
|
|
16
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
-
if (message.msg !== "") {
|
|
18
|
-
writer.uint32(10).string(message.msg);
|
|
19
|
-
}
|
|
20
|
-
return writer;
|
|
21
|
-
},
|
|
22
|
-
decode(input, length) {
|
|
23
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBaseGenericAuthorization();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
case 1:
|
|
30
|
-
if (tag !== 10) {
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
message.msg = reader.string();
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
reader.skipType(tag & 7);
|
|
40
|
-
}
|
|
41
|
-
return message;
|
|
42
|
-
},
|
|
43
|
-
fromJSON(object) {
|
|
44
|
-
return { msg: isSet(object.msg) ? String(object.msg) : "" };
|
|
45
|
-
},
|
|
46
|
-
toJSON(message) {
|
|
47
|
-
const obj = {};
|
|
48
|
-
message.msg !== undefined && (obj.msg = message.msg);
|
|
49
|
-
return obj;
|
|
50
|
-
},
|
|
51
|
-
create(base) {
|
|
52
|
-
return exports.GenericAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
53
|
-
},
|
|
54
|
-
fromPartial(object) {
|
|
55
|
-
var _a;
|
|
56
|
-
const message = createBaseGenericAuthorization();
|
|
57
|
-
message.msg = (_a = object.msg) !== null && _a !== void 0 ? _a : "";
|
|
58
|
-
return message;
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
function createBaseGrant() {
|
|
62
|
-
return { authorization: undefined, expiration: undefined };
|
|
63
|
-
}
|
|
64
|
-
exports.Grant = {
|
|
65
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
66
|
-
if (message.authorization !== undefined) {
|
|
67
|
-
any_1.Any.encode(message.authorization, writer.uint32(10).fork()).ldelim();
|
|
68
|
-
}
|
|
69
|
-
if (message.expiration !== undefined) {
|
|
70
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.expiration), writer.uint32(18).fork()).ldelim();
|
|
71
|
-
}
|
|
72
|
-
return writer;
|
|
73
|
-
},
|
|
74
|
-
decode(input, length) {
|
|
75
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
76
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
77
|
-
const message = createBaseGrant();
|
|
78
|
-
while (reader.pos < end) {
|
|
79
|
-
const tag = reader.uint32();
|
|
80
|
-
switch (tag >>> 3) {
|
|
81
|
-
case 1:
|
|
82
|
-
if (tag !== 10) {
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
message.authorization = any_1.Any.decode(reader, reader.uint32());
|
|
86
|
-
continue;
|
|
87
|
-
case 2:
|
|
88
|
-
if (tag !== 18) {
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
message.expiration = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
reader.skipType(tag & 7);
|
|
98
|
-
}
|
|
99
|
-
return message;
|
|
100
|
-
},
|
|
101
|
-
fromJSON(object) {
|
|
102
|
-
return {
|
|
103
|
-
authorization: isSet(object.authorization)
|
|
104
|
-
? any_1.Any.fromJSON(object.authorization)
|
|
105
|
-
: undefined,
|
|
106
|
-
expiration: isSet(object.expiration)
|
|
107
|
-
? fromJsonTimestamp(object.expiration)
|
|
108
|
-
: undefined,
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
toJSON(message) {
|
|
112
|
-
const obj = {};
|
|
113
|
-
message.authorization !== undefined &&
|
|
114
|
-
(obj.authorization = message.authorization
|
|
115
|
-
? any_1.Any.toJSON(message.authorization)
|
|
116
|
-
: undefined);
|
|
117
|
-
message.expiration !== undefined &&
|
|
118
|
-
(obj.expiration = message.expiration.toISOString());
|
|
119
|
-
return obj;
|
|
120
|
-
},
|
|
121
|
-
create(base) {
|
|
122
|
-
return exports.Grant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
123
|
-
},
|
|
124
|
-
fromPartial(object) {
|
|
125
|
-
var _a;
|
|
126
|
-
const message = createBaseGrant();
|
|
127
|
-
message.authorization =
|
|
128
|
-
object.authorization !== undefined && object.authorization !== null
|
|
129
|
-
? any_1.Any.fromPartial(object.authorization)
|
|
130
|
-
: undefined;
|
|
131
|
-
message.expiration = (_a = object.expiration) !== null && _a !== void 0 ? _a : undefined;
|
|
132
|
-
return message;
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
function createBaseGrantAuthorization() {
|
|
136
|
-
return {
|
|
137
|
-
granter: "",
|
|
138
|
-
grantee: "",
|
|
139
|
-
authorization: undefined,
|
|
140
|
-
expiration: undefined,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
exports.GrantAuthorization = {
|
|
144
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
145
|
-
if (message.granter !== "") {
|
|
146
|
-
writer.uint32(10).string(message.granter);
|
|
147
|
-
}
|
|
148
|
-
if (message.grantee !== "") {
|
|
149
|
-
writer.uint32(18).string(message.grantee);
|
|
150
|
-
}
|
|
151
|
-
if (message.authorization !== undefined) {
|
|
152
|
-
any_1.Any.encode(message.authorization, writer.uint32(26).fork()).ldelim();
|
|
153
|
-
}
|
|
154
|
-
if (message.expiration !== undefined) {
|
|
155
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim();
|
|
156
|
-
}
|
|
157
|
-
return writer;
|
|
158
|
-
},
|
|
159
|
-
decode(input, length) {
|
|
160
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
161
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
-
const message = createBaseGrantAuthorization();
|
|
163
|
-
while (reader.pos < end) {
|
|
164
|
-
const tag = reader.uint32();
|
|
165
|
-
switch (tag >>> 3) {
|
|
166
|
-
case 1:
|
|
167
|
-
if (tag !== 10) {
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
message.granter = reader.string();
|
|
171
|
-
continue;
|
|
172
|
-
case 2:
|
|
173
|
-
if (tag !== 18) {
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
message.grantee = reader.string();
|
|
177
|
-
continue;
|
|
178
|
-
case 3:
|
|
179
|
-
if (tag !== 26) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
message.authorization = any_1.Any.decode(reader, reader.uint32());
|
|
183
|
-
continue;
|
|
184
|
-
case 4:
|
|
185
|
-
if (tag !== 34) {
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
message.expiration = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
reader.skipType(tag & 7);
|
|
195
|
-
}
|
|
196
|
-
return message;
|
|
197
|
-
},
|
|
198
|
-
fromJSON(object) {
|
|
199
|
-
return {
|
|
200
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
201
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
202
|
-
authorization: isSet(object.authorization)
|
|
203
|
-
? any_1.Any.fromJSON(object.authorization)
|
|
204
|
-
: undefined,
|
|
205
|
-
expiration: isSet(object.expiration)
|
|
206
|
-
? fromJsonTimestamp(object.expiration)
|
|
207
|
-
: undefined,
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
toJSON(message) {
|
|
211
|
-
const obj = {};
|
|
212
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
213
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
214
|
-
message.authorization !== undefined &&
|
|
215
|
-
(obj.authorization = message.authorization
|
|
216
|
-
? any_1.Any.toJSON(message.authorization)
|
|
217
|
-
: undefined);
|
|
218
|
-
message.expiration !== undefined &&
|
|
219
|
-
(obj.expiration = message.expiration.toISOString());
|
|
220
|
-
return obj;
|
|
221
|
-
},
|
|
222
|
-
create(base) {
|
|
223
|
-
return exports.GrantAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
224
|
-
},
|
|
225
|
-
fromPartial(object) {
|
|
226
|
-
var _a, _b, _c;
|
|
227
|
-
const message = createBaseGrantAuthorization();
|
|
228
|
-
message.granter = (_a = object.granter) !== null && _a !== void 0 ? _a : "";
|
|
229
|
-
message.grantee = (_b = object.grantee) !== null && _b !== void 0 ? _b : "";
|
|
230
|
-
message.authorization =
|
|
231
|
-
object.authorization !== undefined && object.authorization !== null
|
|
232
|
-
? any_1.Any.fromPartial(object.authorization)
|
|
233
|
-
: undefined;
|
|
234
|
-
message.expiration = (_c = object.expiration) !== null && _c !== void 0 ? _c : undefined;
|
|
235
|
-
return message;
|
|
236
|
-
},
|
|
237
|
-
};
|
|
238
|
-
function createBaseGrantQueueItem() {
|
|
239
|
-
return { msgTypeUrls: [] };
|
|
240
|
-
}
|
|
241
|
-
exports.GrantQueueItem = {
|
|
242
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
243
|
-
for (const v of message.msgTypeUrls) {
|
|
244
|
-
writer.uint32(10).string(v);
|
|
245
|
-
}
|
|
246
|
-
return writer;
|
|
247
|
-
},
|
|
248
|
-
decode(input, length) {
|
|
249
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
250
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
-
const message = createBaseGrantQueueItem();
|
|
252
|
-
while (reader.pos < end) {
|
|
253
|
-
const tag = reader.uint32();
|
|
254
|
-
switch (tag >>> 3) {
|
|
255
|
-
case 1:
|
|
256
|
-
if (tag !== 10) {
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
message.msgTypeUrls.push(reader.string());
|
|
260
|
-
continue;
|
|
261
|
-
}
|
|
262
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
reader.skipType(tag & 7);
|
|
266
|
-
}
|
|
267
|
-
return message;
|
|
268
|
-
},
|
|
269
|
-
fromJSON(object) {
|
|
270
|
-
return {
|
|
271
|
-
msgTypeUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.msgTypeUrls)
|
|
272
|
-
? object.msgTypeUrls.map((e) => String(e))
|
|
273
|
-
: [],
|
|
274
|
-
};
|
|
275
|
-
},
|
|
276
|
-
toJSON(message) {
|
|
277
|
-
const obj = {};
|
|
278
|
-
if (message.msgTypeUrls) {
|
|
279
|
-
obj.msgTypeUrls = message.msgTypeUrls.map((e) => e);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
obj.msgTypeUrls = [];
|
|
283
|
-
}
|
|
284
|
-
return obj;
|
|
285
|
-
},
|
|
286
|
-
create(base) {
|
|
287
|
-
return exports.GrantQueueItem.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
288
|
-
},
|
|
289
|
-
fromPartial(object) {
|
|
290
|
-
var _a;
|
|
291
|
-
const message = createBaseGrantQueueItem();
|
|
292
|
-
message.msgTypeUrls = ((_a = object.msgTypeUrls) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
293
|
-
return message;
|
|
294
|
-
},
|
|
295
|
-
};
|
|
296
|
-
function toTimestamp(date) {
|
|
297
|
-
const seconds = date.getTime() / 1000;
|
|
298
|
-
const nanos = (date.getTime() % 1000) * 1000000;
|
|
299
|
-
return { seconds, nanos };
|
|
300
|
-
}
|
|
301
|
-
function fromTimestamp(t) {
|
|
302
|
-
let millis = (t.seconds || 0) * 1000;
|
|
303
|
-
millis += (t.nanos || 0) / 1000000;
|
|
304
|
-
return new Date(millis);
|
|
305
|
-
}
|
|
306
|
-
function fromJsonTimestamp(o) {
|
|
307
|
-
if (o instanceof Date) {
|
|
308
|
-
return o;
|
|
309
|
-
}
|
|
310
|
-
else if (typeof o === "string") {
|
|
311
|
-
return new Date(o);
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
function isSet(value) {
|
|
318
|
-
return value !== null && value !== undefined;
|
|
319
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
3
|
-
/** Since: cosmos-sdk 0.43 */
|
|
4
|
-
/** EventGrant is emitted on Msg/Grant */
|
|
5
|
-
export interface EventGrant {
|
|
6
|
-
/** Msg type URL for which an autorization is granted */
|
|
7
|
-
msgTypeUrl: string;
|
|
8
|
-
/** Granter account address */
|
|
9
|
-
granter: string;
|
|
10
|
-
/** Grantee account address */
|
|
11
|
-
grantee: string;
|
|
12
|
-
}
|
|
13
|
-
/** EventRevoke is emitted on Msg/Revoke */
|
|
14
|
-
export interface EventRevoke {
|
|
15
|
-
/** Msg type URL for which an autorization is revoked */
|
|
16
|
-
msgTypeUrl: string;
|
|
17
|
-
/** Granter account address */
|
|
18
|
-
granter: string;
|
|
19
|
-
/** Grantee account address */
|
|
20
|
-
grantee: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const EventGrant: {
|
|
23
|
-
encode(message: EventGrant, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventGrant;
|
|
25
|
-
fromJSON(object: any): EventGrant;
|
|
26
|
-
toJSON(message: EventGrant): unknown;
|
|
27
|
-
create<I extends {
|
|
28
|
-
msgTypeUrl?: string;
|
|
29
|
-
granter?: string;
|
|
30
|
-
grantee?: string;
|
|
31
|
-
} & {
|
|
32
|
-
msgTypeUrl?: string;
|
|
33
|
-
granter?: string;
|
|
34
|
-
grantee?: string;
|
|
35
|
-
} & { [K in Exclude<keyof I, keyof EventGrant>]: never; }>(base?: I): EventGrant;
|
|
36
|
-
fromPartial<I_1 extends {
|
|
37
|
-
msgTypeUrl?: string;
|
|
38
|
-
granter?: string;
|
|
39
|
-
grantee?: string;
|
|
40
|
-
} & {
|
|
41
|
-
msgTypeUrl?: string;
|
|
42
|
-
granter?: string;
|
|
43
|
-
grantee?: string;
|
|
44
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventGrant>]: never; }>(object: I_1): EventGrant;
|
|
45
|
-
};
|
|
46
|
-
export declare const EventRevoke: {
|
|
47
|
-
encode(message: EventRevoke, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventRevoke;
|
|
49
|
-
fromJSON(object: any): EventRevoke;
|
|
50
|
-
toJSON(message: EventRevoke): unknown;
|
|
51
|
-
create<I extends {
|
|
52
|
-
msgTypeUrl?: string;
|
|
53
|
-
granter?: string;
|
|
54
|
-
grantee?: string;
|
|
55
|
-
} & {
|
|
56
|
-
msgTypeUrl?: string;
|
|
57
|
-
granter?: string;
|
|
58
|
-
grantee?: string;
|
|
59
|
-
} & { [K in Exclude<keyof I, keyof EventRevoke>]: never; }>(base?: I): EventRevoke;
|
|
60
|
-
fromPartial<I_1 extends {
|
|
61
|
-
msgTypeUrl?: string;
|
|
62
|
-
granter?: string;
|
|
63
|
-
grantee?: string;
|
|
64
|
-
} & {
|
|
65
|
-
msgTypeUrl?: string;
|
|
66
|
-
granter?: string;
|
|
67
|
-
grantee?: string;
|
|
68
|
-
} & { [K_1 in Exclude<keyof I_1, keyof EventRevoke>]: never; }>(object: I_1): EventRevoke;
|
|
69
|
-
};
|
|
70
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
72
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
73
|
-
} : Partial<T>;
|
|
74
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
75
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
76
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
77
|
-
} & {
|
|
78
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
79
|
-
};
|
|
80
|
-
export {};
|
|
@@ -1,162 +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.EventRevoke = exports.EventGrant = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
-
exports.protobufPackage = "cosmos.authz.v1beta1";
|
|
10
|
-
function createBaseEventGrant() {
|
|
11
|
-
return { msgTypeUrl: "", granter: "", grantee: "" };
|
|
12
|
-
}
|
|
13
|
-
exports.EventGrant = {
|
|
14
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
-
if (message.msgTypeUrl !== "") {
|
|
16
|
-
writer.uint32(18).string(message.msgTypeUrl);
|
|
17
|
-
}
|
|
18
|
-
if (message.granter !== "") {
|
|
19
|
-
writer.uint32(26).string(message.granter);
|
|
20
|
-
}
|
|
21
|
-
if (message.grantee !== "") {
|
|
22
|
-
writer.uint32(34).string(message.grantee);
|
|
23
|
-
}
|
|
24
|
-
return writer;
|
|
25
|
-
},
|
|
26
|
-
decode(input, length) {
|
|
27
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
-
const message = createBaseEventGrant();
|
|
30
|
-
while (reader.pos < end) {
|
|
31
|
-
const tag = reader.uint32();
|
|
32
|
-
switch (tag >>> 3) {
|
|
33
|
-
case 2:
|
|
34
|
-
if (tag !== 18) {
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
message.msgTypeUrl = reader.string();
|
|
38
|
-
continue;
|
|
39
|
-
case 3:
|
|
40
|
-
if (tag !== 26) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
message.granter = reader.string();
|
|
44
|
-
continue;
|
|
45
|
-
case 4:
|
|
46
|
-
if (tag !== 34) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
message.grantee = reader.string();
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
reader.skipType(tag & 7);
|
|
56
|
-
}
|
|
57
|
-
return message;
|
|
58
|
-
},
|
|
59
|
-
fromJSON(object) {
|
|
60
|
-
return {
|
|
61
|
-
msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
|
|
62
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
63
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
toJSON(message) {
|
|
67
|
-
const obj = {};
|
|
68
|
-
message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
|
|
69
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
70
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
71
|
-
return obj;
|
|
72
|
-
},
|
|
73
|
-
create(base) {
|
|
74
|
-
return exports.EventGrant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
75
|
-
},
|
|
76
|
-
fromPartial(object) {
|
|
77
|
-
var _a, _b, _c;
|
|
78
|
-
const message = createBaseEventGrant();
|
|
79
|
-
message.msgTypeUrl = (_a = object.msgTypeUrl) !== null && _a !== void 0 ? _a : "";
|
|
80
|
-
message.granter = (_b = object.granter) !== null && _b !== void 0 ? _b : "";
|
|
81
|
-
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
82
|
-
return message;
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
function createBaseEventRevoke() {
|
|
86
|
-
return { msgTypeUrl: "", granter: "", grantee: "" };
|
|
87
|
-
}
|
|
88
|
-
exports.EventRevoke = {
|
|
89
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
90
|
-
if (message.msgTypeUrl !== "") {
|
|
91
|
-
writer.uint32(18).string(message.msgTypeUrl);
|
|
92
|
-
}
|
|
93
|
-
if (message.granter !== "") {
|
|
94
|
-
writer.uint32(26).string(message.granter);
|
|
95
|
-
}
|
|
96
|
-
if (message.grantee !== "") {
|
|
97
|
-
writer.uint32(34).string(message.grantee);
|
|
98
|
-
}
|
|
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 = createBaseEventRevoke();
|
|
105
|
-
while (reader.pos < end) {
|
|
106
|
-
const tag = reader.uint32();
|
|
107
|
-
switch (tag >>> 3) {
|
|
108
|
-
case 2:
|
|
109
|
-
if (tag !== 18) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
message.msgTypeUrl = reader.string();
|
|
113
|
-
continue;
|
|
114
|
-
case 3:
|
|
115
|
-
if (tag !== 26) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
message.granter = reader.string();
|
|
119
|
-
continue;
|
|
120
|
-
case 4:
|
|
121
|
-
if (tag !== 34) {
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
message.grantee = reader.string();
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
reader.skipType(tag & 7);
|
|
131
|
-
}
|
|
132
|
-
return message;
|
|
133
|
-
},
|
|
134
|
-
fromJSON(object) {
|
|
135
|
-
return {
|
|
136
|
-
msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
|
|
137
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
138
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
139
|
-
};
|
|
140
|
-
},
|
|
141
|
-
toJSON(message) {
|
|
142
|
-
const obj = {};
|
|
143
|
-
message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
|
|
144
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
145
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
146
|
-
return obj;
|
|
147
|
-
},
|
|
148
|
-
create(base) {
|
|
149
|
-
return exports.EventRevoke.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
150
|
-
},
|
|
151
|
-
fromPartial(object) {
|
|
152
|
-
var _a, _b, _c;
|
|
153
|
-
const message = createBaseEventRevoke();
|
|
154
|
-
message.msgTypeUrl = (_a = object.msgTypeUrl) !== null && _a !== void 0 ? _a : "";
|
|
155
|
-
message.granter = (_b = object.granter) !== null && _b !== void 0 ? _b : "";
|
|
156
|
-
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
157
|
-
return message;
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
function isSet(value) {
|
|
161
|
-
return value !== null && value !== undefined;
|
|
162
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { GrantAuthorization } from "./authz";
|
|
3
|
-
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
4
|
-
/** Since: cosmos-sdk 0.43 */
|
|
5
|
-
/** GenesisState defines the authz module's genesis state. */
|
|
6
|
-
export interface GenesisState {
|
|
7
|
-
authorization: GrantAuthorization[];
|
|
8
|
-
}
|
|
9
|
-
export declare const GenesisState: {
|
|
10
|
-
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
12
|
-
fromJSON(object: any): GenesisState;
|
|
13
|
-
toJSON(message: GenesisState): unknown;
|
|
14
|
-
create<I extends {
|
|
15
|
-
authorization?: {
|
|
16
|
-
granter?: string;
|
|
17
|
-
grantee?: string;
|
|
18
|
-
authorization?: {
|
|
19
|
-
typeUrl?: string;
|
|
20
|
-
value?: Uint8Array;
|
|
21
|
-
};
|
|
22
|
-
expiration?: Date;
|
|
23
|
-
}[];
|
|
24
|
-
} & {
|
|
25
|
-
authorization?: {
|
|
26
|
-
granter?: string;
|
|
27
|
-
grantee?: string;
|
|
28
|
-
authorization?: {
|
|
29
|
-
typeUrl?: string;
|
|
30
|
-
value?: Uint8Array;
|
|
31
|
-
};
|
|
32
|
-
expiration?: Date;
|
|
33
|
-
}[] & ({
|
|
34
|
-
granter?: string;
|
|
35
|
-
grantee?: string;
|
|
36
|
-
authorization?: {
|
|
37
|
-
typeUrl?: string;
|
|
38
|
-
value?: Uint8Array;
|
|
39
|
-
};
|
|
40
|
-
expiration?: Date;
|
|
41
|
-
} & {
|
|
42
|
-
granter?: string;
|
|
43
|
-
grantee?: string;
|
|
44
|
-
authorization?: {
|
|
45
|
-
typeUrl?: string;
|
|
46
|
-
value?: Uint8Array;
|
|
47
|
-
} & {
|
|
48
|
-
typeUrl?: string;
|
|
49
|
-
value?: Uint8Array;
|
|
50
|
-
} & { [K in Exclude<keyof I["authorization"][number]["authorization"], keyof import("../../../google").Any>]: never; };
|
|
51
|
-
expiration?: Date;
|
|
52
|
-
} & { [K_1 in Exclude<keyof I["authorization"][number], keyof GrantAuthorization>]: never; })[] & { [K_2 in Exclude<keyof I["authorization"], keyof {
|
|
53
|
-
granter?: string;
|
|
54
|
-
grantee?: string;
|
|
55
|
-
authorization?: {
|
|
56
|
-
typeUrl?: string;
|
|
57
|
-
value?: Uint8Array;
|
|
58
|
-
};
|
|
59
|
-
expiration?: Date;
|
|
60
|
-
}[]>]: never; };
|
|
61
|
-
} & { [K_3 in Exclude<keyof I, "authorization">]: never; }>(base?: I): GenesisState;
|
|
62
|
-
fromPartial<I_1 extends {
|
|
63
|
-
authorization?: {
|
|
64
|
-
granter?: string;
|
|
65
|
-
grantee?: string;
|
|
66
|
-
authorization?: {
|
|
67
|
-
typeUrl?: string;
|
|
68
|
-
value?: Uint8Array;
|
|
69
|
-
};
|
|
70
|
-
expiration?: Date;
|
|
71
|
-
}[];
|
|
72
|
-
} & {
|
|
73
|
-
authorization?: {
|
|
74
|
-
granter?: string;
|
|
75
|
-
grantee?: string;
|
|
76
|
-
authorization?: {
|
|
77
|
-
typeUrl?: string;
|
|
78
|
-
value?: Uint8Array;
|
|
79
|
-
};
|
|
80
|
-
expiration?: Date;
|
|
81
|
-
}[] & ({
|
|
82
|
-
granter?: string;
|
|
83
|
-
grantee?: string;
|
|
84
|
-
authorization?: {
|
|
85
|
-
typeUrl?: string;
|
|
86
|
-
value?: Uint8Array;
|
|
87
|
-
};
|
|
88
|
-
expiration?: Date;
|
|
89
|
-
} & {
|
|
90
|
-
granter?: string;
|
|
91
|
-
grantee?: string;
|
|
92
|
-
authorization?: {
|
|
93
|
-
typeUrl?: string;
|
|
94
|
-
value?: Uint8Array;
|
|
95
|
-
} & {
|
|
96
|
-
typeUrl?: string;
|
|
97
|
-
value?: Uint8Array;
|
|
98
|
-
} & { [K_4 in Exclude<keyof I_1["authorization"][number]["authorization"], keyof import("../../../google").Any>]: never; };
|
|
99
|
-
expiration?: Date;
|
|
100
|
-
} & { [K_5 in Exclude<keyof I_1["authorization"][number], keyof GrantAuthorization>]: never; })[] & { [K_6 in Exclude<keyof I_1["authorization"], keyof {
|
|
101
|
-
granter?: string;
|
|
102
|
-
grantee?: string;
|
|
103
|
-
authorization?: {
|
|
104
|
-
typeUrl?: string;
|
|
105
|
-
value?: Uint8Array;
|
|
106
|
-
};
|
|
107
|
-
expiration?: Date;
|
|
108
|
-
}[]>]: never; };
|
|
109
|
-
} & { [K_7 in Exclude<keyof I_1, "authorization">]: never; }>(object: I_1): GenesisState;
|
|
110
|
-
};
|
|
111
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
112
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
113
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
114
|
-
} : Partial<T>;
|
|
115
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
116
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
117
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
118
|
-
} & {
|
|
119
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
120
|
-
};
|
|
121
|
-
export {};
|