coreum-js 2.10.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 +9 -9
- 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,450 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "./pagination";
|
|
4
|
-
import { Grant } from "./feegrant";
|
|
5
|
-
export const protobufPackage = "cosmos.feegrant.v1beta1";
|
|
6
|
-
function createBaseQueryAllowanceRequest() {
|
|
7
|
-
return { granter: "", grantee: "" };
|
|
8
|
-
}
|
|
9
|
-
export const QueryAllowanceRequest = {
|
|
10
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
11
|
-
if (message.granter !== "") {
|
|
12
|
-
writer.uint32(10).string(message.granter);
|
|
13
|
-
}
|
|
14
|
-
if (message.grantee !== "") {
|
|
15
|
-
writer.uint32(18).string(message.grantee);
|
|
16
|
-
}
|
|
17
|
-
return writer;
|
|
18
|
-
},
|
|
19
|
-
decode(input, length) {
|
|
20
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
21
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
-
const message = createBaseQueryAllowanceRequest();
|
|
23
|
-
while (reader.pos < end) {
|
|
24
|
-
const tag = reader.uint32();
|
|
25
|
-
switch (tag >>> 3) {
|
|
26
|
-
case 1:
|
|
27
|
-
if (tag !== 10) {
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
message.granter = reader.string();
|
|
31
|
-
continue;
|
|
32
|
-
case 2:
|
|
33
|
-
if (tag !== 18) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.grantee = reader.string();
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
reader.skipType(tag & 7);
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return {
|
|
48
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
49
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
toJSON(message) {
|
|
53
|
-
const obj = {};
|
|
54
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
55
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
56
|
-
return obj;
|
|
57
|
-
},
|
|
58
|
-
create(base) {
|
|
59
|
-
return QueryAllowanceRequest.fromPartial(base ?? {});
|
|
60
|
-
},
|
|
61
|
-
fromPartial(object) {
|
|
62
|
-
const message = createBaseQueryAllowanceRequest();
|
|
63
|
-
message.granter = object.granter ?? "";
|
|
64
|
-
message.grantee = object.grantee ?? "";
|
|
65
|
-
return message;
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
function createBaseQueryAllowanceResponse() {
|
|
69
|
-
return { allowance: undefined };
|
|
70
|
-
}
|
|
71
|
-
export const QueryAllowanceResponse = {
|
|
72
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
73
|
-
if (message.allowance !== undefined) {
|
|
74
|
-
Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim();
|
|
75
|
-
}
|
|
76
|
-
return writer;
|
|
77
|
-
},
|
|
78
|
-
decode(input, length) {
|
|
79
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
80
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
-
const message = createBaseQueryAllowanceResponse();
|
|
82
|
-
while (reader.pos < end) {
|
|
83
|
-
const tag = reader.uint32();
|
|
84
|
-
switch (tag >>> 3) {
|
|
85
|
-
case 1:
|
|
86
|
-
if (tag !== 10) {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
message.allowance = Grant.decode(reader, reader.uint32());
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
reader.skipType(tag & 7);
|
|
96
|
-
}
|
|
97
|
-
return message;
|
|
98
|
-
},
|
|
99
|
-
fromJSON(object) {
|
|
100
|
-
return {
|
|
101
|
-
allowance: isSet(object.allowance)
|
|
102
|
-
? Grant.fromJSON(object.allowance)
|
|
103
|
-
: undefined,
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
toJSON(message) {
|
|
107
|
-
const obj = {};
|
|
108
|
-
message.allowance !== undefined &&
|
|
109
|
-
(obj.allowance = message.allowance
|
|
110
|
-
? Grant.toJSON(message.allowance)
|
|
111
|
-
: undefined);
|
|
112
|
-
return obj;
|
|
113
|
-
},
|
|
114
|
-
create(base) {
|
|
115
|
-
return QueryAllowanceResponse.fromPartial(base ?? {});
|
|
116
|
-
},
|
|
117
|
-
fromPartial(object) {
|
|
118
|
-
const message = createBaseQueryAllowanceResponse();
|
|
119
|
-
message.allowance =
|
|
120
|
-
object.allowance !== undefined && object.allowance !== null
|
|
121
|
-
? Grant.fromPartial(object.allowance)
|
|
122
|
-
: undefined;
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
function createBaseQueryAllowancesRequest() {
|
|
127
|
-
return { grantee: "", pagination: undefined };
|
|
128
|
-
}
|
|
129
|
-
export const QueryAllowancesRequest = {
|
|
130
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
131
|
-
if (message.grantee !== "") {
|
|
132
|
-
writer.uint32(10).string(message.grantee);
|
|
133
|
-
}
|
|
134
|
-
if (message.pagination !== undefined) {
|
|
135
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
136
|
-
}
|
|
137
|
-
return writer;
|
|
138
|
-
},
|
|
139
|
-
decode(input, length) {
|
|
140
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
141
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
142
|
-
const message = createBaseQueryAllowancesRequest();
|
|
143
|
-
while (reader.pos < end) {
|
|
144
|
-
const tag = reader.uint32();
|
|
145
|
-
switch (tag >>> 3) {
|
|
146
|
-
case 1:
|
|
147
|
-
if (tag !== 10) {
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
message.grantee = reader.string();
|
|
151
|
-
continue;
|
|
152
|
-
case 2:
|
|
153
|
-
if (tag !== 18) {
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
reader.skipType(tag & 7);
|
|
163
|
-
}
|
|
164
|
-
return message;
|
|
165
|
-
},
|
|
166
|
-
fromJSON(object) {
|
|
167
|
-
return {
|
|
168
|
-
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
169
|
-
pagination: isSet(object.pagination)
|
|
170
|
-
? PageRequest.fromJSON(object.pagination)
|
|
171
|
-
: undefined,
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
|
-
toJSON(message) {
|
|
175
|
-
const obj = {};
|
|
176
|
-
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
177
|
-
message.pagination !== undefined &&
|
|
178
|
-
(obj.pagination = message.pagination
|
|
179
|
-
? PageRequest.toJSON(message.pagination)
|
|
180
|
-
: undefined);
|
|
181
|
-
return obj;
|
|
182
|
-
},
|
|
183
|
-
create(base) {
|
|
184
|
-
return QueryAllowancesRequest.fromPartial(base ?? {});
|
|
185
|
-
},
|
|
186
|
-
fromPartial(object) {
|
|
187
|
-
const message = createBaseQueryAllowancesRequest();
|
|
188
|
-
message.grantee = object.grantee ?? "";
|
|
189
|
-
message.pagination =
|
|
190
|
-
object.pagination !== undefined && object.pagination !== null
|
|
191
|
-
? PageRequest.fromPartial(object.pagination)
|
|
192
|
-
: undefined;
|
|
193
|
-
return message;
|
|
194
|
-
},
|
|
195
|
-
};
|
|
196
|
-
function createBaseQueryAllowancesResponse() {
|
|
197
|
-
return { allowances: [], pagination: undefined };
|
|
198
|
-
}
|
|
199
|
-
export const QueryAllowancesResponse = {
|
|
200
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
201
|
-
for (const v of message.allowances) {
|
|
202
|
-
Grant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
203
|
-
}
|
|
204
|
-
if (message.pagination !== undefined) {
|
|
205
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
206
|
-
}
|
|
207
|
-
return writer;
|
|
208
|
-
},
|
|
209
|
-
decode(input, length) {
|
|
210
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
211
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
212
|
-
const message = createBaseQueryAllowancesResponse();
|
|
213
|
-
while (reader.pos < end) {
|
|
214
|
-
const tag = reader.uint32();
|
|
215
|
-
switch (tag >>> 3) {
|
|
216
|
-
case 1:
|
|
217
|
-
if (tag !== 10) {
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
221
|
-
continue;
|
|
222
|
-
case 2:
|
|
223
|
-
if (tag !== 18) {
|
|
224
|
-
break;
|
|
225
|
-
}
|
|
226
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
227
|
-
continue;
|
|
228
|
-
}
|
|
229
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
reader.skipType(tag & 7);
|
|
233
|
-
}
|
|
234
|
-
return message;
|
|
235
|
-
},
|
|
236
|
-
fromJSON(object) {
|
|
237
|
-
return {
|
|
238
|
-
allowances: Array.isArray(object?.allowances)
|
|
239
|
-
? object.allowances.map((e) => Grant.fromJSON(e))
|
|
240
|
-
: [],
|
|
241
|
-
pagination: isSet(object.pagination)
|
|
242
|
-
? PageResponse.fromJSON(object.pagination)
|
|
243
|
-
: undefined,
|
|
244
|
-
};
|
|
245
|
-
},
|
|
246
|
-
toJSON(message) {
|
|
247
|
-
const obj = {};
|
|
248
|
-
if (message.allowances) {
|
|
249
|
-
obj.allowances = message.allowances.map((e) => e ? Grant.toJSON(e) : undefined);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
obj.allowances = [];
|
|
253
|
-
}
|
|
254
|
-
message.pagination !== undefined &&
|
|
255
|
-
(obj.pagination = message.pagination
|
|
256
|
-
? PageResponse.toJSON(message.pagination)
|
|
257
|
-
: undefined);
|
|
258
|
-
return obj;
|
|
259
|
-
},
|
|
260
|
-
create(base) {
|
|
261
|
-
return QueryAllowancesResponse.fromPartial(base ?? {});
|
|
262
|
-
},
|
|
263
|
-
fromPartial(object) {
|
|
264
|
-
const message = createBaseQueryAllowancesResponse();
|
|
265
|
-
message.allowances =
|
|
266
|
-
object.allowances?.map((e) => Grant.fromPartial(e)) || [];
|
|
267
|
-
message.pagination =
|
|
268
|
-
object.pagination !== undefined && object.pagination !== null
|
|
269
|
-
? PageResponse.fromPartial(object.pagination)
|
|
270
|
-
: undefined;
|
|
271
|
-
return message;
|
|
272
|
-
},
|
|
273
|
-
};
|
|
274
|
-
function createBaseQueryAllowancesByGranterRequest() {
|
|
275
|
-
return { granter: "", pagination: undefined };
|
|
276
|
-
}
|
|
277
|
-
export const QueryAllowancesByGranterRequest = {
|
|
278
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
279
|
-
if (message.granter !== "") {
|
|
280
|
-
writer.uint32(10).string(message.granter);
|
|
281
|
-
}
|
|
282
|
-
if (message.pagination !== undefined) {
|
|
283
|
-
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
284
|
-
}
|
|
285
|
-
return writer;
|
|
286
|
-
},
|
|
287
|
-
decode(input, length) {
|
|
288
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
289
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
290
|
-
const message = createBaseQueryAllowancesByGranterRequest();
|
|
291
|
-
while (reader.pos < end) {
|
|
292
|
-
const tag = reader.uint32();
|
|
293
|
-
switch (tag >>> 3) {
|
|
294
|
-
case 1:
|
|
295
|
-
if (tag !== 10) {
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
message.granter = reader.string();
|
|
299
|
-
continue;
|
|
300
|
-
case 2:
|
|
301
|
-
if (tag !== 18) {
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
305
|
-
continue;
|
|
306
|
-
}
|
|
307
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
reader.skipType(tag & 7);
|
|
311
|
-
}
|
|
312
|
-
return message;
|
|
313
|
-
},
|
|
314
|
-
fromJSON(object) {
|
|
315
|
-
return {
|
|
316
|
-
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
317
|
-
pagination: isSet(object.pagination)
|
|
318
|
-
? PageRequest.fromJSON(object.pagination)
|
|
319
|
-
: undefined,
|
|
320
|
-
};
|
|
321
|
-
},
|
|
322
|
-
toJSON(message) {
|
|
323
|
-
const obj = {};
|
|
324
|
-
message.granter !== undefined && (obj.granter = message.granter);
|
|
325
|
-
message.pagination !== undefined &&
|
|
326
|
-
(obj.pagination = message.pagination
|
|
327
|
-
? PageRequest.toJSON(message.pagination)
|
|
328
|
-
: undefined);
|
|
329
|
-
return obj;
|
|
330
|
-
},
|
|
331
|
-
create(base) {
|
|
332
|
-
return QueryAllowancesByGranterRequest.fromPartial(base ?? {});
|
|
333
|
-
},
|
|
334
|
-
fromPartial(object) {
|
|
335
|
-
const message = createBaseQueryAllowancesByGranterRequest();
|
|
336
|
-
message.granter = object.granter ?? "";
|
|
337
|
-
message.pagination =
|
|
338
|
-
object.pagination !== undefined && object.pagination !== null
|
|
339
|
-
? PageRequest.fromPartial(object.pagination)
|
|
340
|
-
: undefined;
|
|
341
|
-
return message;
|
|
342
|
-
},
|
|
343
|
-
};
|
|
344
|
-
function createBaseQueryAllowancesByGranterResponse() {
|
|
345
|
-
return { allowances: [], pagination: undefined };
|
|
346
|
-
}
|
|
347
|
-
export const QueryAllowancesByGranterResponse = {
|
|
348
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
349
|
-
for (const v of message.allowances) {
|
|
350
|
-
Grant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
351
|
-
}
|
|
352
|
-
if (message.pagination !== undefined) {
|
|
353
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
354
|
-
}
|
|
355
|
-
return writer;
|
|
356
|
-
},
|
|
357
|
-
decode(input, length) {
|
|
358
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
359
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
360
|
-
const message = createBaseQueryAllowancesByGranterResponse();
|
|
361
|
-
while (reader.pos < end) {
|
|
362
|
-
const tag = reader.uint32();
|
|
363
|
-
switch (tag >>> 3) {
|
|
364
|
-
case 1:
|
|
365
|
-
if (tag !== 10) {
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
369
|
-
continue;
|
|
370
|
-
case 2:
|
|
371
|
-
if (tag !== 18) {
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
375
|
-
continue;
|
|
376
|
-
}
|
|
377
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
378
|
-
break;
|
|
379
|
-
}
|
|
380
|
-
reader.skipType(tag & 7);
|
|
381
|
-
}
|
|
382
|
-
return message;
|
|
383
|
-
},
|
|
384
|
-
fromJSON(object) {
|
|
385
|
-
return {
|
|
386
|
-
allowances: Array.isArray(object?.allowances)
|
|
387
|
-
? object.allowances.map((e) => Grant.fromJSON(e))
|
|
388
|
-
: [],
|
|
389
|
-
pagination: isSet(object.pagination)
|
|
390
|
-
? PageResponse.fromJSON(object.pagination)
|
|
391
|
-
: undefined,
|
|
392
|
-
};
|
|
393
|
-
},
|
|
394
|
-
toJSON(message) {
|
|
395
|
-
const obj = {};
|
|
396
|
-
if (message.allowances) {
|
|
397
|
-
obj.allowances = message.allowances.map((e) => e ? Grant.toJSON(e) : undefined);
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
obj.allowances = [];
|
|
401
|
-
}
|
|
402
|
-
message.pagination !== undefined &&
|
|
403
|
-
(obj.pagination = message.pagination
|
|
404
|
-
? PageResponse.toJSON(message.pagination)
|
|
405
|
-
: undefined);
|
|
406
|
-
return obj;
|
|
407
|
-
},
|
|
408
|
-
create(base) {
|
|
409
|
-
return QueryAllowancesByGranterResponse.fromPartial(base ?? {});
|
|
410
|
-
},
|
|
411
|
-
fromPartial(object) {
|
|
412
|
-
const message = createBaseQueryAllowancesByGranterResponse();
|
|
413
|
-
message.allowances =
|
|
414
|
-
object.allowances?.map((e) => Grant.fromPartial(e)) || [];
|
|
415
|
-
message.pagination =
|
|
416
|
-
object.pagination !== undefined && object.pagination !== null
|
|
417
|
-
? PageResponse.fromPartial(object.pagination)
|
|
418
|
-
: undefined;
|
|
419
|
-
return message;
|
|
420
|
-
},
|
|
421
|
-
};
|
|
422
|
-
export class QueryClientImpl {
|
|
423
|
-
rpc;
|
|
424
|
-
service;
|
|
425
|
-
constructor(rpc, opts) {
|
|
426
|
-
this.service = opts?.service || "cosmos.feegrant.v1beta1.Query";
|
|
427
|
-
this.rpc = rpc;
|
|
428
|
-
this.Allowance = this.Allowance.bind(this);
|
|
429
|
-
this.Allowances = this.Allowances.bind(this);
|
|
430
|
-
this.AllowancesByGranter = this.AllowancesByGranter.bind(this);
|
|
431
|
-
}
|
|
432
|
-
Allowance(request) {
|
|
433
|
-
const data = QueryAllowanceRequest.encode(request).finish();
|
|
434
|
-
const promise = this.rpc.request(this.service, "Allowance", data);
|
|
435
|
-
return promise.then((data) => QueryAllowanceResponse.decode(_m0.Reader.create(data)));
|
|
436
|
-
}
|
|
437
|
-
Allowances(request) {
|
|
438
|
-
const data = QueryAllowancesRequest.encode(request).finish();
|
|
439
|
-
const promise = this.rpc.request(this.service, "Allowances", data);
|
|
440
|
-
return promise.then((data) => QueryAllowancesResponse.decode(_m0.Reader.create(data)));
|
|
441
|
-
}
|
|
442
|
-
AllowancesByGranter(request) {
|
|
443
|
-
const data = QueryAllowancesByGranterRequest.encode(request).finish();
|
|
444
|
-
const promise = this.rpc.request(this.service, "AllowancesByGranter", data);
|
|
445
|
-
return promise.then((data) => QueryAllowancesByGranterResponse.decode(_m0.Reader.create(data)));
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
function isSet(value) {
|
|
449
|
-
return value !== null && value !== undefined;
|
|
450
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Any } from "../../../google/protobuf/any";
|
|
3
|
-
export declare const protobufPackage = "cosmos.feegrant.v1beta1";
|
|
4
|
-
/** Since: cosmos-sdk 0.43 */
|
|
5
|
-
/**
|
|
6
|
-
* MsgGrantAllowance adds permission for Grantee to spend up to Allowance
|
|
7
|
-
* of fees from the account of Granter.
|
|
8
|
-
*/
|
|
9
|
-
export interface MsgGrantAllowance {
|
|
10
|
-
/** granter is the address of the user granting an allowance of their funds. */
|
|
11
|
-
granter: string;
|
|
12
|
-
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
13
|
-
grantee: string;
|
|
14
|
-
/** allowance can be any of basic, periodic, allowed fee allowance. */
|
|
15
|
-
allowance: Any | undefined;
|
|
16
|
-
}
|
|
17
|
-
/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */
|
|
18
|
-
export interface MsgGrantAllowanceResponse {
|
|
19
|
-
}
|
|
20
|
-
/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */
|
|
21
|
-
export interface MsgRevokeAllowance {
|
|
22
|
-
/** granter is the address of the user granting an allowance of their funds. */
|
|
23
|
-
granter: string;
|
|
24
|
-
/** grantee is the address of the user being granted an allowance of another user's funds. */
|
|
25
|
-
grantee: string;
|
|
26
|
-
}
|
|
27
|
-
/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */
|
|
28
|
-
export interface MsgRevokeAllowanceResponse {
|
|
29
|
-
}
|
|
30
|
-
export declare const MsgGrantAllowance: {
|
|
31
|
-
encode(message: MsgGrantAllowance, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowance;
|
|
33
|
-
fromJSON(object: any): MsgGrantAllowance;
|
|
34
|
-
toJSON(message: MsgGrantAllowance): unknown;
|
|
35
|
-
create<I extends {
|
|
36
|
-
granter?: string;
|
|
37
|
-
grantee?: string;
|
|
38
|
-
allowance?: {
|
|
39
|
-
typeUrl?: string;
|
|
40
|
-
value?: Uint8Array;
|
|
41
|
-
};
|
|
42
|
-
} & {
|
|
43
|
-
granter?: string;
|
|
44
|
-
grantee?: string;
|
|
45
|
-
allowance?: {
|
|
46
|
-
typeUrl?: string;
|
|
47
|
-
value?: Uint8Array;
|
|
48
|
-
} & {
|
|
49
|
-
typeUrl?: string;
|
|
50
|
-
value?: Uint8Array;
|
|
51
|
-
} & { [K in Exclude<keyof I["allowance"], keyof Any>]: never; };
|
|
52
|
-
} & { [K_1 in Exclude<keyof I, keyof MsgGrantAllowance>]: never; }>(base?: I): MsgGrantAllowance;
|
|
53
|
-
fromPartial<I_1 extends {
|
|
54
|
-
granter?: string;
|
|
55
|
-
grantee?: string;
|
|
56
|
-
allowance?: {
|
|
57
|
-
typeUrl?: string;
|
|
58
|
-
value?: Uint8Array;
|
|
59
|
-
};
|
|
60
|
-
} & {
|
|
61
|
-
granter?: string;
|
|
62
|
-
grantee?: string;
|
|
63
|
-
allowance?: {
|
|
64
|
-
typeUrl?: string;
|
|
65
|
-
value?: Uint8Array;
|
|
66
|
-
} & {
|
|
67
|
-
typeUrl?: string;
|
|
68
|
-
value?: Uint8Array;
|
|
69
|
-
} & { [K_2 in Exclude<keyof I_1["allowance"], keyof Any>]: never; };
|
|
70
|
-
} & { [K_3 in Exclude<keyof I_1, keyof MsgGrantAllowance>]: never; }>(object: I_1): MsgGrantAllowance;
|
|
71
|
-
};
|
|
72
|
-
export declare const MsgGrantAllowanceResponse: {
|
|
73
|
-
encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
74
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse;
|
|
75
|
-
fromJSON(_: any): MsgGrantAllowanceResponse;
|
|
76
|
-
toJSON(_: MsgGrantAllowanceResponse): unknown;
|
|
77
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgGrantAllowanceResponse;
|
|
78
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgGrantAllowanceResponse;
|
|
79
|
-
};
|
|
80
|
-
export declare const MsgRevokeAllowance: {
|
|
81
|
-
encode(message: MsgRevokeAllowance, writer?: _m0.Writer): _m0.Writer;
|
|
82
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowance;
|
|
83
|
-
fromJSON(object: any): MsgRevokeAllowance;
|
|
84
|
-
toJSON(message: MsgRevokeAllowance): unknown;
|
|
85
|
-
create<I extends {
|
|
86
|
-
granter?: string;
|
|
87
|
-
grantee?: string;
|
|
88
|
-
} & {
|
|
89
|
-
granter?: string;
|
|
90
|
-
grantee?: string;
|
|
91
|
-
} & { [K in Exclude<keyof I, keyof MsgRevokeAllowance>]: never; }>(base?: I): MsgRevokeAllowance;
|
|
92
|
-
fromPartial<I_1 extends {
|
|
93
|
-
granter?: string;
|
|
94
|
-
grantee?: string;
|
|
95
|
-
} & {
|
|
96
|
-
granter?: string;
|
|
97
|
-
grantee?: string;
|
|
98
|
-
} & { [K_1 in Exclude<keyof I_1, keyof MsgRevokeAllowance>]: never; }>(object: I_1): MsgRevokeAllowance;
|
|
99
|
-
};
|
|
100
|
-
export declare const MsgRevokeAllowanceResponse: {
|
|
101
|
-
encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
102
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse;
|
|
103
|
-
fromJSON(_: any): MsgRevokeAllowanceResponse;
|
|
104
|
-
toJSON(_: MsgRevokeAllowanceResponse): unknown;
|
|
105
|
-
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): MsgRevokeAllowanceResponse;
|
|
106
|
-
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): MsgRevokeAllowanceResponse;
|
|
107
|
-
};
|
|
108
|
-
/** Msg defines the feegrant msg service. */
|
|
109
|
-
export interface Msg {
|
|
110
|
-
/**
|
|
111
|
-
* GrantAllowance grants fee allowance to the grantee on the granter's
|
|
112
|
-
* account with the provided expiration time.
|
|
113
|
-
*/
|
|
114
|
-
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
|
|
115
|
-
/**
|
|
116
|
-
* RevokeAllowance revokes any fee allowance of granter's account that
|
|
117
|
-
* has been granted to the grantee.
|
|
118
|
-
*/
|
|
119
|
-
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
|
|
120
|
-
}
|
|
121
|
-
export declare class MsgClientImpl implements Msg {
|
|
122
|
-
private readonly rpc;
|
|
123
|
-
private readonly service;
|
|
124
|
-
constructor(rpc: Rpc, opts?: {
|
|
125
|
-
service?: string;
|
|
126
|
-
});
|
|
127
|
-
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
|
|
128
|
-
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
|
|
129
|
-
}
|
|
130
|
-
interface Rpc {
|
|
131
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
132
|
-
}
|
|
133
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
134
|
-
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 {} ? {
|
|
135
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
136
|
-
} : Partial<T>;
|
|
137
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
138
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
139
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
140
|
-
} & {
|
|
141
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
142
|
-
};
|
|
143
|
-
export {};
|