@gitopia/gitopiajs 0.0.2 → 0.0.4
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/package.json +3 -3
- package/dist/LICENSE +0 -21
- package/dist/amino/amino.d.ts +0 -1
- package/dist/amino/amino.js +0 -2
- package/dist/amino/bundle.d.ts +0 -1
- package/dist/amino/bundle.js +0 -41
- package/dist/binary.d.ts +0 -130
- package/dist/binary.js +0 -371
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
- package/dist/cosmos/bank/v1beta1/bank.js +0 -664
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
- package/dist/cosmos/bank/v1beta1/query.js +0 -1759
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
- package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
- package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
- package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
- package/dist/cosmos/base/v1beta1/coin.js +0 -306
- package/dist/cosmos/bundle.d.ts +0 -2311
- package/dist/cosmos/bundle.js +0 -134
- package/dist/cosmos/client.d.ts +0 -84
- package/dist/cosmos/client.js +0 -65
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
- package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
- package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
- package/dist/cosmos/gov/v1beta1/query.js +0 -1264
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
- package/dist/cosmos/group/v1/query.d.ts +0 -1097
- package/dist/cosmos/group/v1/query.js +0 -2182
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
- package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
- package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
- package/dist/cosmos/group/v1/tx.amino.js +0 -77
- package/dist/cosmos/group/v1/tx.d.ts +0 -1198
- package/dist/cosmos/group/v1/tx.js +0 -2362
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
- package/dist/cosmos/group/v1/tx.registry.js +0 -271
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
- package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
- package/dist/cosmos/group/v1/types.d.ts +0 -873
- package/dist/cosmos/group/v1/types.js +0 -1495
- package/dist/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos/query/v1/query.d.ts +0 -1
- package/dist/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos/rpc.query.d.ts +0 -59
- package/dist/cosmos/rpc.query.js +0 -60
- package/dist/cosmos/rpc.tx.d.ts +0 -10
- package/dist/cosmos/rpc.tx.js +0 -44
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
- package/dist/cosmos_proto/bundle.d.ts +0 -32
- package/dist/cosmos_proto/bundle.js +0 -41
- package/dist/cosmos_proto/cosmos.d.ts +0 -171
- package/dist/cosmos_proto/cosmos.js +0 -221
- package/dist/esm/amino/amino.js +0 -1
- package/dist/esm/amino/bundle.js +0 -5
- package/dist/esm/binary.js +0 -366
- package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
- package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
- package/dist/esm/cosmos/bundle.js +0 -98
- package/dist/esm/cosmos/client.js +0 -27
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
- package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
- package/dist/esm/cosmos/group/v1/query.js +0 -2179
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
- package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
- package/dist/esm/cosmos/group/v1/tx.js +0 -2354
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
- package/dist/esm/cosmos/group/v1/types.js +0 -1483
- package/dist/esm/cosmos/msg/v1/msg.js +0 -1
- package/dist/esm/cosmos/query/v1/query.js +0 -1
- package/dist/esm/cosmos/rpc.query.js +0 -23
- package/dist/esm/cosmos/rpc.tx.js +0 -7
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
- package/dist/esm/cosmos_proto/bundle.js +0 -5
- package/dist/esm/cosmos_proto/cosmos.js +0 -216
- package/dist/esm/gitopia/bundle.js +0 -95
- package/dist/esm/gitopia/client.js +0 -32
- package/dist/esm/gitopia/custom-lcd-client.js +0 -50
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
- package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
- package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
- package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
- package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
- package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
- package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
- package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
- package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
- package/dist/esm/gitopia/rpc.query.js +0 -29
- package/dist/esm/gitopia/rpc.tx.js +0 -13
- package/dist/esm/gogoproto/bundle.js +0 -5
- package/dist/esm/gogoproto/gogo.js +0 -1
- package/dist/esm/google/api/annotations.js +0 -1
- package/dist/esm/google/api/http.js +0 -329
- package/dist/esm/google/bundle.js +0 -14
- package/dist/esm/google/protobuf/any.js +0 -74
- package/dist/esm/google/protobuf/descriptor.js +0 -4848
- package/dist/esm/google/protobuf/duration.js +0 -71
- package/dist/esm/google/protobuf/timestamp.js +0 -68
- package/dist/esm/helpers.js +0 -129
- package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
- package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
- package/dist/esm/ibc/bundle.js +0 -44
- package/dist/esm/ibc/client.js +0 -29
- package/dist/esm/ibc/core/client/v1/client.js +0 -611
- package/dist/esm/ibc/rpc.query.js +0 -30
- package/dist/esm/ibc/rpc.tx.js +0 -14
- package/dist/esm/index.js +0 -19
- package/dist/esm/utf8.js +0 -137
- package/dist/esm/varint.js +0 -408
- package/dist/gitopia/bundle.d.ts +0 -6123
- package/dist/gitopia/bundle.js +0 -131
- package/dist/gitopia/client.d.ts +0 -492
- package/dist/gitopia/client.js +0 -70
- package/dist/gitopia/custom-lcd-client.d.ts +0 -31
- package/dist/gitopia/custom-lcd-client.js +0 -87
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
- package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
- package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
- package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
- package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
- package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
- package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
- package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
- package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
- package/dist/gitopia/gitopia/gitopia/params.js +0 -296
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
- package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
- package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
- package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
- package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
- package/dist/gitopia/gitopia/gitopia/release.js +0 -228
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
- package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
- package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
- package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
- package/dist/gitopia/gitopia/gitopia/task.js +0 -204
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
- package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
- package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
- package/dist/gitopia/gitopia/gitopia/user.js +0 -343
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
- package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
- package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
- package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
- package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
- package/dist/gitopia/gitopia/rewards/params.js +0 -84
- package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
- package/dist/gitopia/gitopia/rewards/pool.js +0 -196
- package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
- package/dist/gitopia/gitopia/rewards/query.js +0 -657
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
- package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
- package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
- package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
- package/dist/gitopia/gitopia/rewards/task.js +0 -181
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
- package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
- package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
- package/dist/gitopia/gitopia/rewards/tx.js +0 -528
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
- package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
- package/dist/gitopia/rpc.query.d.ts +0 -117
- package/dist/gitopia/rpc.query.js +0 -66
- package/dist/gitopia/rpc.tx.d.ts +0 -16
- package/dist/gitopia/rpc.tx.js +0 -50
- package/dist/gogoproto/bundle.d.ts +0 -1
- package/dist/gogoproto/bundle.js +0 -41
- package/dist/gogoproto/gogo.d.ts +0 -1
- package/dist/gogoproto/gogo.js +0 -2
- package/dist/google/api/annotations.d.ts +0 -1
- package/dist/google/api/annotations.js +0 -2
- package/dist/google/api/http.d.ts +0 -1049
- package/dist/google/api/http.js +0 -332
- package/dist/google/bundle.d.ts +0 -525
- package/dist/google/bundle.js +0 -50
- package/dist/google/protobuf/any.d.ts +0 -358
- package/dist/google/protobuf/any.js +0 -77
- package/dist/google/protobuf/descriptor.d.ts +0 -3178
- package/dist/google/protobuf/descriptor.js +0 -4886
- package/dist/google/protobuf/duration.d.ts +0 -223
- package/dist/google/protobuf/duration.js +0 -74
- package/dist/google/protobuf/timestamp.d.ts +0 -314
- package/dist/google/protobuf/timestamp.js +0 -71
- package/dist/helpers.d.ts +0 -82
- package/dist/helpers.js +0 -144
- package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
- package/dist/ibc/applications/transfer/v1/query.js +0 -850
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
- package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
- package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
- package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
- package/dist/ibc/applications/transfer/v1/tx.js +0 -229
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
- package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
- package/dist/ibc/bundle.d.ts +0 -450
- package/dist/ibc/bundle.js +0 -80
- package/dist/ibc/client.d.ts +0 -22
- package/dist/ibc/client.js +0 -67
- package/dist/ibc/core/client/v1/client.d.ts +0 -408
- package/dist/ibc/core/client/v1/client.js +0 -614
- package/dist/ibc/rpc.query.d.ts +0 -73
- package/dist/ibc/rpc.query.js +0 -67
- package/dist/ibc/rpc.tx.d.ts +0 -17
- package/dist/ibc/rpc.tx.js +0 -51
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/package.json +0 -46
- package/dist/utf8.d.ts +0 -27
- package/dist/utf8.js +0 -141
- package/dist/varint.d.ts +0 -105
- package/dist/varint.js +0 -426
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryAllowancesByGranterResponse = exports.QueryAllowancesByGranterRequest = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
6
|
-
const feegrant_1 = require("./feegrant");
|
|
7
|
-
const binary_1 = require("../../../binary");
|
|
8
|
-
function createBaseQueryAllowanceRequest() {
|
|
9
|
-
return {
|
|
10
|
-
granter: "",
|
|
11
|
-
grantee: ""
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
exports.QueryAllowanceRequest = {
|
|
15
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest",
|
|
16
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
17
|
-
if (message.granter !== "") {
|
|
18
|
-
writer.uint32(10).string(message.granter);
|
|
19
|
-
}
|
|
20
|
-
if (message.grantee !== "") {
|
|
21
|
-
writer.uint32(18).string(message.grantee);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBaseQueryAllowanceRequest();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
message.granter = reader.string();
|
|
34
|
-
break;
|
|
35
|
-
case 2:
|
|
36
|
-
message.grantee = reader.string();
|
|
37
|
-
break;
|
|
38
|
-
default:
|
|
39
|
-
reader.skipType(tag & 7);
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return message;
|
|
44
|
-
},
|
|
45
|
-
fromPartial(object) {
|
|
46
|
-
const message = createBaseQueryAllowanceRequest();
|
|
47
|
-
message.granter = object.granter ?? "";
|
|
48
|
-
message.grantee = object.grantee ?? "";
|
|
49
|
-
return message;
|
|
50
|
-
},
|
|
51
|
-
fromAmino(object) {
|
|
52
|
-
const message = createBaseQueryAllowanceRequest();
|
|
53
|
-
if (object.granter !== undefined && object.granter !== null) {
|
|
54
|
-
message.granter = object.granter;
|
|
55
|
-
}
|
|
56
|
-
if (object.grantee !== undefined && object.grantee !== null) {
|
|
57
|
-
message.grantee = object.grantee;
|
|
58
|
-
}
|
|
59
|
-
return message;
|
|
60
|
-
},
|
|
61
|
-
toAmino(message) {
|
|
62
|
-
const obj = {};
|
|
63
|
-
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
64
|
-
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
65
|
-
return obj;
|
|
66
|
-
},
|
|
67
|
-
fromAminoMsg(object) {
|
|
68
|
-
return exports.QueryAllowanceRequest.fromAmino(object.value);
|
|
69
|
-
},
|
|
70
|
-
toAminoMsg(message) {
|
|
71
|
-
return {
|
|
72
|
-
type: "cosmos-sdk/QueryAllowanceRequest",
|
|
73
|
-
value: exports.QueryAllowanceRequest.toAmino(message)
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
fromProtoMsg(message) {
|
|
77
|
-
return exports.QueryAllowanceRequest.decode(message.value);
|
|
78
|
-
},
|
|
79
|
-
toProto(message) {
|
|
80
|
-
return exports.QueryAllowanceRequest.encode(message).finish();
|
|
81
|
-
},
|
|
82
|
-
toProtoMsg(message) {
|
|
83
|
-
return {
|
|
84
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest",
|
|
85
|
-
value: exports.QueryAllowanceRequest.encode(message).finish()
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
function createBaseQueryAllowanceResponse() {
|
|
90
|
-
return {
|
|
91
|
-
allowance: undefined
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
exports.QueryAllowanceResponse = {
|
|
95
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse",
|
|
96
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
97
|
-
if (message.allowance !== undefined) {
|
|
98
|
-
feegrant_1.Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim();
|
|
99
|
-
}
|
|
100
|
-
return writer;
|
|
101
|
-
},
|
|
102
|
-
decode(input, length) {
|
|
103
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
104
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
-
const message = createBaseQueryAllowanceResponse();
|
|
106
|
-
while (reader.pos < end) {
|
|
107
|
-
const tag = reader.uint32();
|
|
108
|
-
switch (tag >>> 3) {
|
|
109
|
-
case 1:
|
|
110
|
-
message.allowance = feegrant_1.Grant.decode(reader, reader.uint32());
|
|
111
|
-
break;
|
|
112
|
-
default:
|
|
113
|
-
reader.skipType(tag & 7);
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return message;
|
|
118
|
-
},
|
|
119
|
-
fromPartial(object) {
|
|
120
|
-
const message = createBaseQueryAllowanceResponse();
|
|
121
|
-
message.allowance = object.allowance !== undefined && object.allowance !== null ? feegrant_1.Grant.fromPartial(object.allowance) : undefined;
|
|
122
|
-
return message;
|
|
123
|
-
},
|
|
124
|
-
fromAmino(object) {
|
|
125
|
-
const message = createBaseQueryAllowanceResponse();
|
|
126
|
-
if (object.allowance !== undefined && object.allowance !== null) {
|
|
127
|
-
message.allowance = feegrant_1.Grant.fromAmino(object.allowance);
|
|
128
|
-
}
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
toAmino(message) {
|
|
132
|
-
const obj = {};
|
|
133
|
-
obj.allowance = message.allowance ? feegrant_1.Grant.toAmino(message.allowance) : undefined;
|
|
134
|
-
return obj;
|
|
135
|
-
},
|
|
136
|
-
fromAminoMsg(object) {
|
|
137
|
-
return exports.QueryAllowanceResponse.fromAmino(object.value);
|
|
138
|
-
},
|
|
139
|
-
toAminoMsg(message) {
|
|
140
|
-
return {
|
|
141
|
-
type: "cosmos-sdk/QueryAllowanceResponse",
|
|
142
|
-
value: exports.QueryAllowanceResponse.toAmino(message)
|
|
143
|
-
};
|
|
144
|
-
},
|
|
145
|
-
fromProtoMsg(message) {
|
|
146
|
-
return exports.QueryAllowanceResponse.decode(message.value);
|
|
147
|
-
},
|
|
148
|
-
toProto(message) {
|
|
149
|
-
return exports.QueryAllowanceResponse.encode(message).finish();
|
|
150
|
-
},
|
|
151
|
-
toProtoMsg(message) {
|
|
152
|
-
return {
|
|
153
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse",
|
|
154
|
-
value: exports.QueryAllowanceResponse.encode(message).finish()
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
function createBaseQueryAllowancesRequest() {
|
|
159
|
-
return {
|
|
160
|
-
grantee: "",
|
|
161
|
-
pagination: undefined
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
exports.QueryAllowancesRequest = {
|
|
165
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest",
|
|
166
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
167
|
-
if (message.grantee !== "") {
|
|
168
|
-
writer.uint32(10).string(message.grantee);
|
|
169
|
-
}
|
|
170
|
-
if (message.pagination !== undefined) {
|
|
171
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
172
|
-
}
|
|
173
|
-
return writer;
|
|
174
|
-
},
|
|
175
|
-
decode(input, length) {
|
|
176
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
177
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
178
|
-
const message = createBaseQueryAllowancesRequest();
|
|
179
|
-
while (reader.pos < end) {
|
|
180
|
-
const tag = reader.uint32();
|
|
181
|
-
switch (tag >>> 3) {
|
|
182
|
-
case 1:
|
|
183
|
-
message.grantee = reader.string();
|
|
184
|
-
break;
|
|
185
|
-
case 2:
|
|
186
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
187
|
-
break;
|
|
188
|
-
default:
|
|
189
|
-
reader.skipType(tag & 7);
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return message;
|
|
194
|
-
},
|
|
195
|
-
fromPartial(object) {
|
|
196
|
-
const message = createBaseQueryAllowancesRequest();
|
|
197
|
-
message.grantee = object.grantee ?? "";
|
|
198
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
199
|
-
return message;
|
|
200
|
-
},
|
|
201
|
-
fromAmino(object) {
|
|
202
|
-
const message = createBaseQueryAllowancesRequest();
|
|
203
|
-
if (object.grantee !== undefined && object.grantee !== null) {
|
|
204
|
-
message.grantee = object.grantee;
|
|
205
|
-
}
|
|
206
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
207
|
-
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
208
|
-
}
|
|
209
|
-
return message;
|
|
210
|
-
},
|
|
211
|
-
toAmino(message) {
|
|
212
|
-
const obj = {};
|
|
213
|
-
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
214
|
-
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
215
|
-
return obj;
|
|
216
|
-
},
|
|
217
|
-
fromAminoMsg(object) {
|
|
218
|
-
return exports.QueryAllowancesRequest.fromAmino(object.value);
|
|
219
|
-
},
|
|
220
|
-
toAminoMsg(message) {
|
|
221
|
-
return {
|
|
222
|
-
type: "cosmos-sdk/QueryAllowancesRequest",
|
|
223
|
-
value: exports.QueryAllowancesRequest.toAmino(message)
|
|
224
|
-
};
|
|
225
|
-
},
|
|
226
|
-
fromProtoMsg(message) {
|
|
227
|
-
return exports.QueryAllowancesRequest.decode(message.value);
|
|
228
|
-
},
|
|
229
|
-
toProto(message) {
|
|
230
|
-
return exports.QueryAllowancesRequest.encode(message).finish();
|
|
231
|
-
},
|
|
232
|
-
toProtoMsg(message) {
|
|
233
|
-
return {
|
|
234
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest",
|
|
235
|
-
value: exports.QueryAllowancesRequest.encode(message).finish()
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
function createBaseQueryAllowancesResponse() {
|
|
240
|
-
return {
|
|
241
|
-
allowances: [],
|
|
242
|
-
pagination: undefined
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
exports.QueryAllowancesResponse = {
|
|
246
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse",
|
|
247
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
248
|
-
for (const v of message.allowances) {
|
|
249
|
-
feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
250
|
-
}
|
|
251
|
-
if (message.pagination !== undefined) {
|
|
252
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
253
|
-
}
|
|
254
|
-
return writer;
|
|
255
|
-
},
|
|
256
|
-
decode(input, length) {
|
|
257
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
258
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
259
|
-
const message = createBaseQueryAllowancesResponse();
|
|
260
|
-
while (reader.pos < end) {
|
|
261
|
-
const tag = reader.uint32();
|
|
262
|
-
switch (tag >>> 3) {
|
|
263
|
-
case 1:
|
|
264
|
-
message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32()));
|
|
265
|
-
break;
|
|
266
|
-
case 2:
|
|
267
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
268
|
-
break;
|
|
269
|
-
default:
|
|
270
|
-
reader.skipType(tag & 7);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return message;
|
|
275
|
-
},
|
|
276
|
-
fromPartial(object) {
|
|
277
|
-
const message = createBaseQueryAllowancesResponse();
|
|
278
|
-
message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || [];
|
|
279
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
280
|
-
return message;
|
|
281
|
-
},
|
|
282
|
-
fromAmino(object) {
|
|
283
|
-
const message = createBaseQueryAllowancesResponse();
|
|
284
|
-
message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || [];
|
|
285
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
286
|
-
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
287
|
-
}
|
|
288
|
-
return message;
|
|
289
|
-
},
|
|
290
|
-
toAmino(message) {
|
|
291
|
-
const obj = {};
|
|
292
|
-
if (message.allowances) {
|
|
293
|
-
obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined);
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
obj.allowances = message.allowances;
|
|
297
|
-
}
|
|
298
|
-
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
299
|
-
return obj;
|
|
300
|
-
},
|
|
301
|
-
fromAminoMsg(object) {
|
|
302
|
-
return exports.QueryAllowancesResponse.fromAmino(object.value);
|
|
303
|
-
},
|
|
304
|
-
toAminoMsg(message) {
|
|
305
|
-
return {
|
|
306
|
-
type: "cosmos-sdk/QueryAllowancesResponse",
|
|
307
|
-
value: exports.QueryAllowancesResponse.toAmino(message)
|
|
308
|
-
};
|
|
309
|
-
},
|
|
310
|
-
fromProtoMsg(message) {
|
|
311
|
-
return exports.QueryAllowancesResponse.decode(message.value);
|
|
312
|
-
},
|
|
313
|
-
toProto(message) {
|
|
314
|
-
return exports.QueryAllowancesResponse.encode(message).finish();
|
|
315
|
-
},
|
|
316
|
-
toProtoMsg(message) {
|
|
317
|
-
return {
|
|
318
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse",
|
|
319
|
-
value: exports.QueryAllowancesResponse.encode(message).finish()
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
function createBaseQueryAllowancesByGranterRequest() {
|
|
324
|
-
return {
|
|
325
|
-
granter: "",
|
|
326
|
-
pagination: undefined
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
exports.QueryAllowancesByGranterRequest = {
|
|
330
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",
|
|
331
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
332
|
-
if (message.granter !== "") {
|
|
333
|
-
writer.uint32(10).string(message.granter);
|
|
334
|
-
}
|
|
335
|
-
if (message.pagination !== undefined) {
|
|
336
|
-
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
337
|
-
}
|
|
338
|
-
return writer;
|
|
339
|
-
},
|
|
340
|
-
decode(input, length) {
|
|
341
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
342
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
343
|
-
const message = createBaseQueryAllowancesByGranterRequest();
|
|
344
|
-
while (reader.pos < end) {
|
|
345
|
-
const tag = reader.uint32();
|
|
346
|
-
switch (tag >>> 3) {
|
|
347
|
-
case 1:
|
|
348
|
-
message.granter = reader.string();
|
|
349
|
-
break;
|
|
350
|
-
case 2:
|
|
351
|
-
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
352
|
-
break;
|
|
353
|
-
default:
|
|
354
|
-
reader.skipType(tag & 7);
|
|
355
|
-
break;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return message;
|
|
359
|
-
},
|
|
360
|
-
fromPartial(object) {
|
|
361
|
-
const message = createBaseQueryAllowancesByGranterRequest();
|
|
362
|
-
message.granter = object.granter ?? "";
|
|
363
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
364
|
-
return message;
|
|
365
|
-
},
|
|
366
|
-
fromAmino(object) {
|
|
367
|
-
const message = createBaseQueryAllowancesByGranterRequest();
|
|
368
|
-
if (object.granter !== undefined && object.granter !== null) {
|
|
369
|
-
message.granter = object.granter;
|
|
370
|
-
}
|
|
371
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
372
|
-
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
373
|
-
}
|
|
374
|
-
return message;
|
|
375
|
-
},
|
|
376
|
-
toAmino(message) {
|
|
377
|
-
const obj = {};
|
|
378
|
-
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
379
|
-
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
380
|
-
return obj;
|
|
381
|
-
},
|
|
382
|
-
fromAminoMsg(object) {
|
|
383
|
-
return exports.QueryAllowancesByGranterRequest.fromAmino(object.value);
|
|
384
|
-
},
|
|
385
|
-
toAminoMsg(message) {
|
|
386
|
-
return {
|
|
387
|
-
type: "cosmos-sdk/QueryAllowancesByGranterRequest",
|
|
388
|
-
value: exports.QueryAllowancesByGranterRequest.toAmino(message)
|
|
389
|
-
};
|
|
390
|
-
},
|
|
391
|
-
fromProtoMsg(message) {
|
|
392
|
-
return exports.QueryAllowancesByGranterRequest.decode(message.value);
|
|
393
|
-
},
|
|
394
|
-
toProto(message) {
|
|
395
|
-
return exports.QueryAllowancesByGranterRequest.encode(message).finish();
|
|
396
|
-
},
|
|
397
|
-
toProtoMsg(message) {
|
|
398
|
-
return {
|
|
399
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest",
|
|
400
|
-
value: exports.QueryAllowancesByGranterRequest.encode(message).finish()
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
function createBaseQueryAllowancesByGranterResponse() {
|
|
405
|
-
return {
|
|
406
|
-
allowances: [],
|
|
407
|
-
pagination: undefined
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
exports.QueryAllowancesByGranterResponse = {
|
|
411
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",
|
|
412
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
413
|
-
for (const v of message.allowances) {
|
|
414
|
-
feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
415
|
-
}
|
|
416
|
-
if (message.pagination !== undefined) {
|
|
417
|
-
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
418
|
-
}
|
|
419
|
-
return writer;
|
|
420
|
-
},
|
|
421
|
-
decode(input, length) {
|
|
422
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
423
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
424
|
-
const message = createBaseQueryAllowancesByGranterResponse();
|
|
425
|
-
while (reader.pos < end) {
|
|
426
|
-
const tag = reader.uint32();
|
|
427
|
-
switch (tag >>> 3) {
|
|
428
|
-
case 1:
|
|
429
|
-
message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32()));
|
|
430
|
-
break;
|
|
431
|
-
case 2:
|
|
432
|
-
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
433
|
-
break;
|
|
434
|
-
default:
|
|
435
|
-
reader.skipType(tag & 7);
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
return message;
|
|
440
|
-
},
|
|
441
|
-
fromPartial(object) {
|
|
442
|
-
const message = createBaseQueryAllowancesByGranterResponse();
|
|
443
|
-
message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromPartial(e)) || [];
|
|
444
|
-
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
445
|
-
return message;
|
|
446
|
-
},
|
|
447
|
-
fromAmino(object) {
|
|
448
|
-
const message = createBaseQueryAllowancesByGranterResponse();
|
|
449
|
-
message.allowances = object.allowances?.map(e => feegrant_1.Grant.fromAmino(e)) || [];
|
|
450
|
-
if (object.pagination !== undefined && object.pagination !== null) {
|
|
451
|
-
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
452
|
-
}
|
|
453
|
-
return message;
|
|
454
|
-
},
|
|
455
|
-
toAmino(message) {
|
|
456
|
-
const obj = {};
|
|
457
|
-
if (message.allowances) {
|
|
458
|
-
obj.allowances = message.allowances.map(e => e ? feegrant_1.Grant.toAmino(e) : undefined);
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
obj.allowances = message.allowances;
|
|
462
|
-
}
|
|
463
|
-
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
464
|
-
return obj;
|
|
465
|
-
},
|
|
466
|
-
fromAminoMsg(object) {
|
|
467
|
-
return exports.QueryAllowancesByGranterResponse.fromAmino(object.value);
|
|
468
|
-
},
|
|
469
|
-
toAminoMsg(message) {
|
|
470
|
-
return {
|
|
471
|
-
type: "cosmos-sdk/QueryAllowancesByGranterResponse",
|
|
472
|
-
value: exports.QueryAllowancesByGranterResponse.toAmino(message)
|
|
473
|
-
};
|
|
474
|
-
},
|
|
475
|
-
fromProtoMsg(message) {
|
|
476
|
-
return exports.QueryAllowancesByGranterResponse.decode(message.value);
|
|
477
|
-
},
|
|
478
|
-
toProto(message) {
|
|
479
|
-
return exports.QueryAllowancesByGranterResponse.encode(message).finish();
|
|
480
|
-
},
|
|
481
|
-
toProtoMsg(message) {
|
|
482
|
-
return {
|
|
483
|
-
typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse",
|
|
484
|
-
value: exports.QueryAllowancesByGranterResponse.encode(message).finish()
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
-
import { QueryAllowanceRequest, QueryAllowanceResponseSDKType, QueryAllowancesRequest, QueryAllowancesResponseSDKType, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponseSDKType } from "./query";
|
|
3
|
-
export declare class LCDQueryClient {
|
|
4
|
-
req: LCDClient;
|
|
5
|
-
constructor({ requestClient }: {
|
|
6
|
-
requestClient: LCDClient;
|
|
7
|
-
});
|
|
8
|
-
allowance(params: QueryAllowanceRequest): Promise<QueryAllowanceResponseSDKType>;
|
|
9
|
-
allowances(params: QueryAllowancesRequest): Promise<QueryAllowancesResponseSDKType>;
|
|
10
|
-
allowancesByGranter(params: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponseSDKType>;
|
|
11
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LCDQueryClient = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const helpers_1 = require("../../../helpers");
|
|
6
|
-
class LCDQueryClient {
|
|
7
|
-
req;
|
|
8
|
-
constructor({ requestClient }) {
|
|
9
|
-
this.req = requestClient;
|
|
10
|
-
this.allowance = this.allowance.bind(this);
|
|
11
|
-
this.allowances = this.allowances.bind(this);
|
|
12
|
-
this.allowancesByGranter = this.allowancesByGranter.bind(this);
|
|
13
|
-
}
|
|
14
|
-
/* Allowance returns fee granted to the grantee by the granter. */
|
|
15
|
-
async allowance(params) {
|
|
16
|
-
const endpoint = `cosmos/feegrant/v1beta1/allowance/${params.granter}/${params.grantee}`;
|
|
17
|
-
return await this.req.get(endpoint);
|
|
18
|
-
}
|
|
19
|
-
/* Allowances returns all the grants for address. */
|
|
20
|
-
async allowances(params) {
|
|
21
|
-
const options = {
|
|
22
|
-
params: {}
|
|
23
|
-
};
|
|
24
|
-
if (typeof params?.pagination !== "undefined") {
|
|
25
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
26
|
-
}
|
|
27
|
-
const endpoint = `cosmos/feegrant/v1beta1/allowances/${params.grantee}`;
|
|
28
|
-
return await this.req.get(endpoint, options);
|
|
29
|
-
}
|
|
30
|
-
/* AllowancesByGranter returns all the grants given by an address
|
|
31
|
-
|
|
32
|
-
Since: cosmos-sdk 0.46 */
|
|
33
|
-
async allowancesByGranter(params) {
|
|
34
|
-
const options = {
|
|
35
|
-
params: {}
|
|
36
|
-
};
|
|
37
|
-
if (typeof params?.pagination !== "undefined") {
|
|
38
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
39
|
-
}
|
|
40
|
-
const endpoint = `cosmos/feegrant/v1beta1/issued/${params.granter}`;
|
|
41
|
-
return await this.req.get(endpoint, options);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Rpc } from "../../../helpers";
|
|
2
|
-
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse } from "./query";
|
|
4
|
-
/** Query defines the gRPC querier service. */
|
|
5
|
-
export interface Query {
|
|
6
|
-
/** Allowance returns fee granted to the grantee by the granter. */
|
|
7
|
-
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
|
8
|
-
/** Allowances returns all the grants for address. */
|
|
9
|
-
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* AllowancesByGranter returns all the grants given by an address
|
|
12
|
-
*
|
|
13
|
-
* Since: cosmos-sdk 0.46
|
|
14
|
-
*/
|
|
15
|
-
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
|
16
|
-
}
|
|
17
|
-
export declare class QueryClientImpl implements Query {
|
|
18
|
-
private readonly rpc;
|
|
19
|
-
constructor(rpc: Rpc);
|
|
20
|
-
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
|
21
|
-
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
|
22
|
-
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
|
23
|
-
}
|
|
24
|
-
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
25
|
-
allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
|
|
26
|
-
allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
|
|
27
|
-
allowancesByGranter(request: QueryAllowancesByGranterRequest): Promise<QueryAllowancesByGranterResponse>;
|
|
28
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
-
const binary_1 = require("../../../binary");
|
|
5
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
-
const query_1 = require("./query");
|
|
7
|
-
class QueryClientImpl {
|
|
8
|
-
rpc;
|
|
9
|
-
constructor(rpc) {
|
|
10
|
-
this.rpc = rpc;
|
|
11
|
-
this.allowance = this.allowance.bind(this);
|
|
12
|
-
this.allowances = this.allowances.bind(this);
|
|
13
|
-
this.allowancesByGranter = this.allowancesByGranter.bind(this);
|
|
14
|
-
}
|
|
15
|
-
allowance(request) {
|
|
16
|
-
const data = query_1.QueryAllowanceRequest.encode(request).finish();
|
|
17
|
-
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data);
|
|
18
|
-
return promise.then(data => query_1.QueryAllowanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
19
|
-
}
|
|
20
|
-
allowances(request) {
|
|
21
|
-
const data = query_1.QueryAllowancesRequest.encode(request).finish();
|
|
22
|
-
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data);
|
|
23
|
-
return promise.then(data => query_1.QueryAllowancesResponse.decode(new binary_1.BinaryReader(data)));
|
|
24
|
-
}
|
|
25
|
-
allowancesByGranter(request) {
|
|
26
|
-
const data = query_1.QueryAllowancesByGranterRequest.encode(request).finish();
|
|
27
|
-
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data);
|
|
28
|
-
return promise.then(data => query_1.QueryAllowancesByGranterResponse.decode(new binary_1.BinaryReader(data)));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.QueryClientImpl = QueryClientImpl;
|
|
32
|
-
const createRpcQueryExtension = (base) => {
|
|
33
|
-
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
34
|
-
const queryService = new QueryClientImpl(rpc);
|
|
35
|
-
return {
|
|
36
|
-
allowance(request) {
|
|
37
|
-
return queryService.allowance(request);
|
|
38
|
-
},
|
|
39
|
-
allowances(request) {
|
|
40
|
-
return queryService.allowances(request);
|
|
41
|
-
},
|
|
42
|
-
allowancesByGranter(request) {
|
|
43
|
-
return queryService.allowancesByGranter(request);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
exports.createRpcQueryExtension = createRpcQueryExtension;
|