@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,204 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageResponse = exports.PageRequest = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("../../../../binary");
|
|
6
|
-
const helpers_1 = require("../../../../helpers");
|
|
7
|
-
function createBasePageRequest() {
|
|
8
|
-
return {
|
|
9
|
-
key: new Uint8Array(),
|
|
10
|
-
offset: BigInt(0),
|
|
11
|
-
limit: BigInt(0),
|
|
12
|
-
countTotal: false,
|
|
13
|
-
reverse: false
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
exports.PageRequest = {
|
|
17
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageRequest",
|
|
18
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
19
|
-
if (message.key.length !== 0) {
|
|
20
|
-
writer.uint32(10).bytes(message.key);
|
|
21
|
-
}
|
|
22
|
-
if (message.offset !== BigInt(0)) {
|
|
23
|
-
writer.uint32(16).uint64(message.offset);
|
|
24
|
-
}
|
|
25
|
-
if (message.limit !== BigInt(0)) {
|
|
26
|
-
writer.uint32(24).uint64(message.limit);
|
|
27
|
-
}
|
|
28
|
-
if (message.countTotal === true) {
|
|
29
|
-
writer.uint32(32).bool(message.countTotal);
|
|
30
|
-
}
|
|
31
|
-
if (message.reverse === true) {
|
|
32
|
-
writer.uint32(40).bool(message.reverse);
|
|
33
|
-
}
|
|
34
|
-
return writer;
|
|
35
|
-
},
|
|
36
|
-
decode(input, length) {
|
|
37
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
38
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
-
const message = createBasePageRequest();
|
|
40
|
-
while (reader.pos < end) {
|
|
41
|
-
const tag = reader.uint32();
|
|
42
|
-
switch (tag >>> 3) {
|
|
43
|
-
case 1:
|
|
44
|
-
message.key = reader.bytes();
|
|
45
|
-
break;
|
|
46
|
-
case 2:
|
|
47
|
-
message.offset = reader.uint64();
|
|
48
|
-
break;
|
|
49
|
-
case 3:
|
|
50
|
-
message.limit = reader.uint64();
|
|
51
|
-
break;
|
|
52
|
-
case 4:
|
|
53
|
-
message.countTotal = reader.bool();
|
|
54
|
-
break;
|
|
55
|
-
case 5:
|
|
56
|
-
message.reverse = reader.bool();
|
|
57
|
-
break;
|
|
58
|
-
default:
|
|
59
|
-
reader.skipType(tag & 7);
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return message;
|
|
64
|
-
},
|
|
65
|
-
fromPartial(object) {
|
|
66
|
-
const message = createBasePageRequest();
|
|
67
|
-
message.key = object.key ?? new Uint8Array();
|
|
68
|
-
message.offset = object.offset !== undefined && object.offset !== null ? BigInt(object.offset.toString()) : BigInt(0);
|
|
69
|
-
message.limit = object.limit !== undefined && object.limit !== null ? BigInt(object.limit.toString()) : BigInt(0);
|
|
70
|
-
message.countTotal = object.countTotal ?? false;
|
|
71
|
-
message.reverse = object.reverse ?? false;
|
|
72
|
-
return message;
|
|
73
|
-
},
|
|
74
|
-
fromAmino(object) {
|
|
75
|
-
const message = createBasePageRequest();
|
|
76
|
-
if (object.key !== undefined && object.key !== null) {
|
|
77
|
-
message.key = (0, helpers_1.bytesFromBase64)(object.key);
|
|
78
|
-
}
|
|
79
|
-
if (object.offset !== undefined && object.offset !== null) {
|
|
80
|
-
message.offset = BigInt(object.offset);
|
|
81
|
-
}
|
|
82
|
-
if (object.limit !== undefined && object.limit !== null) {
|
|
83
|
-
message.limit = BigInt(object.limit);
|
|
84
|
-
}
|
|
85
|
-
if (object.count_total !== undefined && object.count_total !== null) {
|
|
86
|
-
message.countTotal = object.count_total;
|
|
87
|
-
}
|
|
88
|
-
if (object.reverse !== undefined && object.reverse !== null) {
|
|
89
|
-
message.reverse = object.reverse;
|
|
90
|
-
}
|
|
91
|
-
return message;
|
|
92
|
-
},
|
|
93
|
-
toAmino(message) {
|
|
94
|
-
const obj = {};
|
|
95
|
-
obj.key = message.key ? (0, helpers_1.base64FromBytes)(message.key) : undefined;
|
|
96
|
-
obj.offset = message.offset !== BigInt(0) ? message.offset?.toString() : undefined;
|
|
97
|
-
obj.limit = message.limit !== BigInt(0) ? message.limit?.toString() : undefined;
|
|
98
|
-
obj.count_total = message.countTotal === false ? undefined : message.countTotal;
|
|
99
|
-
obj.reverse = message.reverse === false ? undefined : message.reverse;
|
|
100
|
-
return obj;
|
|
101
|
-
},
|
|
102
|
-
fromAminoMsg(object) {
|
|
103
|
-
return exports.PageRequest.fromAmino(object.value);
|
|
104
|
-
},
|
|
105
|
-
toAminoMsg(message) {
|
|
106
|
-
return {
|
|
107
|
-
type: "cosmos-sdk/PageRequest",
|
|
108
|
-
value: exports.PageRequest.toAmino(message)
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
fromProtoMsg(message) {
|
|
112
|
-
return exports.PageRequest.decode(message.value);
|
|
113
|
-
},
|
|
114
|
-
toProto(message) {
|
|
115
|
-
return exports.PageRequest.encode(message).finish();
|
|
116
|
-
},
|
|
117
|
-
toProtoMsg(message) {
|
|
118
|
-
return {
|
|
119
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageRequest",
|
|
120
|
-
value: exports.PageRequest.encode(message).finish()
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
function createBasePageResponse() {
|
|
125
|
-
return {
|
|
126
|
-
nextKey: new Uint8Array(),
|
|
127
|
-
total: BigInt(0)
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
exports.PageResponse = {
|
|
131
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageResponse",
|
|
132
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
133
|
-
if (message.nextKey.length !== 0) {
|
|
134
|
-
writer.uint32(10).bytes(message.nextKey);
|
|
135
|
-
}
|
|
136
|
-
if (message.total !== BigInt(0)) {
|
|
137
|
-
writer.uint32(16).uint64(message.total);
|
|
138
|
-
}
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
decode(input, length) {
|
|
142
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
143
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
-
const message = createBasePageResponse();
|
|
145
|
-
while (reader.pos < end) {
|
|
146
|
-
const tag = reader.uint32();
|
|
147
|
-
switch (tag >>> 3) {
|
|
148
|
-
case 1:
|
|
149
|
-
message.nextKey = reader.bytes();
|
|
150
|
-
break;
|
|
151
|
-
case 2:
|
|
152
|
-
message.total = reader.uint64();
|
|
153
|
-
break;
|
|
154
|
-
default:
|
|
155
|
-
reader.skipType(tag & 7);
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return message;
|
|
160
|
-
},
|
|
161
|
-
fromPartial(object) {
|
|
162
|
-
const message = createBasePageResponse();
|
|
163
|
-
message.nextKey = object.nextKey ?? new Uint8Array();
|
|
164
|
-
message.total = object.total !== undefined && object.total !== null ? BigInt(object.total.toString()) : BigInt(0);
|
|
165
|
-
return message;
|
|
166
|
-
},
|
|
167
|
-
fromAmino(object) {
|
|
168
|
-
const message = createBasePageResponse();
|
|
169
|
-
if (object.next_key !== undefined && object.next_key !== null) {
|
|
170
|
-
message.nextKey = (0, helpers_1.bytesFromBase64)(object.next_key);
|
|
171
|
-
}
|
|
172
|
-
if (object.total !== undefined && object.total !== null) {
|
|
173
|
-
message.total = BigInt(object.total);
|
|
174
|
-
}
|
|
175
|
-
return message;
|
|
176
|
-
},
|
|
177
|
-
toAmino(message) {
|
|
178
|
-
const obj = {};
|
|
179
|
-
obj.next_key = message.nextKey ? (0, helpers_1.base64FromBytes)(message.nextKey) : undefined;
|
|
180
|
-
obj.total = message.total !== BigInt(0) ? message.total?.toString() : undefined;
|
|
181
|
-
return obj;
|
|
182
|
-
},
|
|
183
|
-
fromAminoMsg(object) {
|
|
184
|
-
return exports.PageResponse.fromAmino(object.value);
|
|
185
|
-
},
|
|
186
|
-
toAminoMsg(message) {
|
|
187
|
-
return {
|
|
188
|
-
type: "cosmos-sdk/PageResponse",
|
|
189
|
-
value: exports.PageResponse.toAmino(message)
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
fromProtoMsg(message) {
|
|
193
|
-
return exports.PageResponse.decode(message.value);
|
|
194
|
-
},
|
|
195
|
-
toProto(message) {
|
|
196
|
-
return exports.PageResponse.encode(message).finish();
|
|
197
|
-
},
|
|
198
|
-
toProtoMsg(message) {
|
|
199
|
-
return {
|
|
200
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageResponse",
|
|
201
|
-
value: exports.PageResponse.encode(message).finish()
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
-
/**
|
|
3
|
-
* Coin defines a token with a denomination and an amount.
|
|
4
|
-
*
|
|
5
|
-
* NOTE: The amount field is an Int which implements the custom method
|
|
6
|
-
* signatures required by gogoproto.
|
|
7
|
-
*/
|
|
8
|
-
export interface Coin {
|
|
9
|
-
denom: string;
|
|
10
|
-
amount: string;
|
|
11
|
-
}
|
|
12
|
-
export interface CoinProtoMsg {
|
|
13
|
-
typeUrl: "/cosmos.base.v1beta1.Coin";
|
|
14
|
-
value: Uint8Array;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Coin defines a token with a denomination and an amount.
|
|
18
|
-
*
|
|
19
|
-
* NOTE: The amount field is an Int which implements the custom method
|
|
20
|
-
* signatures required by gogoproto.
|
|
21
|
-
*/
|
|
22
|
-
export interface CoinAmino {
|
|
23
|
-
denom?: string;
|
|
24
|
-
amount: string;
|
|
25
|
-
}
|
|
26
|
-
export interface CoinAminoMsg {
|
|
27
|
-
type: "cosmos-sdk/Coin";
|
|
28
|
-
value: CoinAmino;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Coin defines a token with a denomination and an amount.
|
|
32
|
-
*
|
|
33
|
-
* NOTE: The amount field is an Int which implements the custom method
|
|
34
|
-
* signatures required by gogoproto.
|
|
35
|
-
*/
|
|
36
|
-
export interface CoinSDKType {
|
|
37
|
-
denom: string;
|
|
38
|
-
amount: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* DecCoin defines a token with a denomination and a decimal amount.
|
|
42
|
-
*
|
|
43
|
-
* NOTE: The amount field is an Dec which implements the custom method
|
|
44
|
-
* signatures required by gogoproto.
|
|
45
|
-
*/
|
|
46
|
-
export interface DecCoin {
|
|
47
|
-
denom: string;
|
|
48
|
-
amount: string;
|
|
49
|
-
}
|
|
50
|
-
export interface DecCoinProtoMsg {
|
|
51
|
-
typeUrl: "/cosmos.base.v1beta1.DecCoin";
|
|
52
|
-
value: Uint8Array;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* DecCoin defines a token with a denomination and a decimal amount.
|
|
56
|
-
*
|
|
57
|
-
* NOTE: The amount field is an Dec which implements the custom method
|
|
58
|
-
* signatures required by gogoproto.
|
|
59
|
-
*/
|
|
60
|
-
export interface DecCoinAmino {
|
|
61
|
-
denom?: string;
|
|
62
|
-
amount?: string;
|
|
63
|
-
}
|
|
64
|
-
export interface DecCoinAminoMsg {
|
|
65
|
-
type: "cosmos-sdk/DecCoin";
|
|
66
|
-
value: DecCoinAmino;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* DecCoin defines a token with a denomination and a decimal amount.
|
|
70
|
-
*
|
|
71
|
-
* NOTE: The amount field is an Dec which implements the custom method
|
|
72
|
-
* signatures required by gogoproto.
|
|
73
|
-
*/
|
|
74
|
-
export interface DecCoinSDKType {
|
|
75
|
-
denom: string;
|
|
76
|
-
amount: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* IntProto defines a Protobuf wrapper around an Int object.
|
|
80
|
-
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
81
|
-
*/
|
|
82
|
-
/** @deprecated */
|
|
83
|
-
export interface IntProto {
|
|
84
|
-
int: string;
|
|
85
|
-
}
|
|
86
|
-
export interface IntProtoProtoMsg {
|
|
87
|
-
typeUrl: "/cosmos.base.v1beta1.IntProto";
|
|
88
|
-
value: Uint8Array;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* IntProto defines a Protobuf wrapper around an Int object.
|
|
92
|
-
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
93
|
-
*/
|
|
94
|
-
/** @deprecated */
|
|
95
|
-
export interface IntProtoAmino {
|
|
96
|
-
int?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface IntProtoAminoMsg {
|
|
99
|
-
type: "cosmos-sdk/IntProto";
|
|
100
|
-
value: IntProtoAmino;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* IntProto defines a Protobuf wrapper around an Int object.
|
|
104
|
-
* Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
|
|
105
|
-
*/
|
|
106
|
-
/** @deprecated */
|
|
107
|
-
export interface IntProtoSDKType {
|
|
108
|
-
int: string;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
112
|
-
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
113
|
-
*/
|
|
114
|
-
/** @deprecated */
|
|
115
|
-
export interface DecProto {
|
|
116
|
-
dec: string;
|
|
117
|
-
}
|
|
118
|
-
export interface DecProtoProtoMsg {
|
|
119
|
-
typeUrl: "/cosmos.base.v1beta1.DecProto";
|
|
120
|
-
value: Uint8Array;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
124
|
-
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
125
|
-
*/
|
|
126
|
-
/** @deprecated */
|
|
127
|
-
export interface DecProtoAmino {
|
|
128
|
-
dec?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface DecProtoAminoMsg {
|
|
131
|
-
type: "cosmos-sdk/DecProto";
|
|
132
|
-
value: DecProtoAmino;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* DecProto defines a Protobuf wrapper around a Dec object.
|
|
136
|
-
* Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
|
|
137
|
-
*/
|
|
138
|
-
/** @deprecated */
|
|
139
|
-
export interface DecProtoSDKType {
|
|
140
|
-
dec: string;
|
|
141
|
-
}
|
|
142
|
-
export declare const Coin: {
|
|
143
|
-
typeUrl: string;
|
|
144
|
-
encode(message: Coin, writer?: BinaryWriter): BinaryWriter;
|
|
145
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Coin;
|
|
146
|
-
fromPartial(object: Partial<Coin>): Coin;
|
|
147
|
-
fromAmino(object: CoinAmino): Coin;
|
|
148
|
-
toAmino(message: Coin): CoinAmino;
|
|
149
|
-
fromAminoMsg(object: CoinAminoMsg): Coin;
|
|
150
|
-
toAminoMsg(message: Coin): CoinAminoMsg;
|
|
151
|
-
fromProtoMsg(message: CoinProtoMsg): Coin;
|
|
152
|
-
toProto(message: Coin): Uint8Array;
|
|
153
|
-
toProtoMsg(message: Coin): CoinProtoMsg;
|
|
154
|
-
};
|
|
155
|
-
export declare const DecCoin: {
|
|
156
|
-
typeUrl: string;
|
|
157
|
-
encode(message: DecCoin, writer?: BinaryWriter): BinaryWriter;
|
|
158
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DecCoin;
|
|
159
|
-
fromPartial(object: Partial<DecCoin>): DecCoin;
|
|
160
|
-
fromAmino(object: DecCoinAmino): DecCoin;
|
|
161
|
-
toAmino(message: DecCoin): DecCoinAmino;
|
|
162
|
-
fromAminoMsg(object: DecCoinAminoMsg): DecCoin;
|
|
163
|
-
toAminoMsg(message: DecCoin): DecCoinAminoMsg;
|
|
164
|
-
fromProtoMsg(message: DecCoinProtoMsg): DecCoin;
|
|
165
|
-
toProto(message: DecCoin): Uint8Array;
|
|
166
|
-
toProtoMsg(message: DecCoin): DecCoinProtoMsg;
|
|
167
|
-
};
|
|
168
|
-
export declare const IntProto: {
|
|
169
|
-
typeUrl: string;
|
|
170
|
-
encode(message: IntProto, writer?: BinaryWriter): BinaryWriter;
|
|
171
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IntProto;
|
|
172
|
-
fromPartial(object: Partial<IntProto>): IntProto;
|
|
173
|
-
fromAmino(object: IntProtoAmino): IntProto;
|
|
174
|
-
toAmino(message: IntProto): IntProtoAmino;
|
|
175
|
-
fromAminoMsg(object: IntProtoAminoMsg): IntProto;
|
|
176
|
-
toAminoMsg(message: IntProto): IntProtoAminoMsg;
|
|
177
|
-
fromProtoMsg(message: IntProtoProtoMsg): IntProto;
|
|
178
|
-
toProto(message: IntProto): Uint8Array;
|
|
179
|
-
toProtoMsg(message: IntProto): IntProtoProtoMsg;
|
|
180
|
-
};
|
|
181
|
-
export declare const DecProto: {
|
|
182
|
-
typeUrl: string;
|
|
183
|
-
encode(message: DecProto, writer?: BinaryWriter): BinaryWriter;
|
|
184
|
-
decode(input: BinaryReader | Uint8Array, length?: number): DecProto;
|
|
185
|
-
fromPartial(object: Partial<DecProto>): DecProto;
|
|
186
|
-
fromAmino(object: DecProtoAmino): DecProto;
|
|
187
|
-
toAmino(message: DecProto): DecProtoAmino;
|
|
188
|
-
fromAminoMsg(object: DecProtoAminoMsg): DecProto;
|
|
189
|
-
toAminoMsg(message: DecProto): DecProtoAminoMsg;
|
|
190
|
-
fromProtoMsg(message: DecProtoProtoMsg): DecProto;
|
|
191
|
-
toProto(message: DecProto): Uint8Array;
|
|
192
|
-
toProtoMsg(message: DecProto): DecProtoProtoMsg;
|
|
193
|
-
};
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DecProto = exports.IntProto = exports.DecCoin = exports.Coin = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("../../../binary");
|
|
6
|
-
const math_1 = require("@cosmjs/math");
|
|
7
|
-
function createBaseCoin() {
|
|
8
|
-
return {
|
|
9
|
-
denom: "",
|
|
10
|
-
amount: ""
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
exports.Coin = {
|
|
14
|
-
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
15
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
16
|
-
if (message.denom !== "") {
|
|
17
|
-
writer.uint32(10).string(message.denom);
|
|
18
|
-
}
|
|
19
|
-
if (message.amount !== "") {
|
|
20
|
-
writer.uint32(18).string(message.amount);
|
|
21
|
-
}
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
decode(input, length) {
|
|
25
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
-
const message = createBaseCoin();
|
|
28
|
-
while (reader.pos < end) {
|
|
29
|
-
const tag = reader.uint32();
|
|
30
|
-
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
message.denom = reader.string();
|
|
33
|
-
break;
|
|
34
|
-
case 2:
|
|
35
|
-
message.amount = reader.string();
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
reader.skipType(tag & 7);
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
fromPartial(object) {
|
|
45
|
-
const message = createBaseCoin();
|
|
46
|
-
message.denom = object.denom ?? "";
|
|
47
|
-
message.amount = object.amount ?? "";
|
|
48
|
-
return message;
|
|
49
|
-
},
|
|
50
|
-
fromAmino(object) {
|
|
51
|
-
const message = createBaseCoin();
|
|
52
|
-
if (object.denom !== undefined && object.denom !== null) {
|
|
53
|
-
message.denom = object.denom;
|
|
54
|
-
}
|
|
55
|
-
if (object.amount !== undefined && object.amount !== null) {
|
|
56
|
-
message.amount = object.amount;
|
|
57
|
-
}
|
|
58
|
-
return message;
|
|
59
|
-
},
|
|
60
|
-
toAmino(message) {
|
|
61
|
-
const obj = {};
|
|
62
|
-
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
63
|
-
obj.amount = message.amount ?? "";
|
|
64
|
-
return obj;
|
|
65
|
-
},
|
|
66
|
-
fromAminoMsg(object) {
|
|
67
|
-
return exports.Coin.fromAmino(object.value);
|
|
68
|
-
},
|
|
69
|
-
toAminoMsg(message) {
|
|
70
|
-
return {
|
|
71
|
-
type: "cosmos-sdk/Coin",
|
|
72
|
-
value: exports.Coin.toAmino(message)
|
|
73
|
-
};
|
|
74
|
-
},
|
|
75
|
-
fromProtoMsg(message) {
|
|
76
|
-
return exports.Coin.decode(message.value);
|
|
77
|
-
},
|
|
78
|
-
toProto(message) {
|
|
79
|
-
return exports.Coin.encode(message).finish();
|
|
80
|
-
},
|
|
81
|
-
toProtoMsg(message) {
|
|
82
|
-
return {
|
|
83
|
-
typeUrl: "/cosmos.base.v1beta1.Coin",
|
|
84
|
-
value: exports.Coin.encode(message).finish()
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
function createBaseDecCoin() {
|
|
89
|
-
return {
|
|
90
|
-
denom: "",
|
|
91
|
-
amount: ""
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
exports.DecCoin = {
|
|
95
|
-
typeUrl: "/cosmos.base.v1beta1.DecCoin",
|
|
96
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
97
|
-
if (message.denom !== "") {
|
|
98
|
-
writer.uint32(10).string(message.denom);
|
|
99
|
-
}
|
|
100
|
-
if (message.amount !== "") {
|
|
101
|
-
writer.uint32(18).string(math_1.Decimal.fromUserInput(message.amount, 18).atomics);
|
|
102
|
-
}
|
|
103
|
-
return writer;
|
|
104
|
-
},
|
|
105
|
-
decode(input, length) {
|
|
106
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
107
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
-
const message = createBaseDecCoin();
|
|
109
|
-
while (reader.pos < end) {
|
|
110
|
-
const tag = reader.uint32();
|
|
111
|
-
switch (tag >>> 3) {
|
|
112
|
-
case 1:
|
|
113
|
-
message.denom = reader.string();
|
|
114
|
-
break;
|
|
115
|
-
case 2:
|
|
116
|
-
message.amount = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
117
|
-
break;
|
|
118
|
-
default:
|
|
119
|
-
reader.skipType(tag & 7);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
fromPartial(object) {
|
|
126
|
-
const message = createBaseDecCoin();
|
|
127
|
-
message.denom = object.denom ?? "";
|
|
128
|
-
message.amount = object.amount ?? "";
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
fromAmino(object) {
|
|
132
|
-
const message = createBaseDecCoin();
|
|
133
|
-
if (object.denom !== undefined && object.denom !== null) {
|
|
134
|
-
message.denom = object.denom;
|
|
135
|
-
}
|
|
136
|
-
if (object.amount !== undefined && object.amount !== null) {
|
|
137
|
-
message.amount = object.amount;
|
|
138
|
-
}
|
|
139
|
-
return message;
|
|
140
|
-
},
|
|
141
|
-
toAmino(message) {
|
|
142
|
-
const obj = {};
|
|
143
|
-
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
144
|
-
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
145
|
-
return obj;
|
|
146
|
-
},
|
|
147
|
-
fromAminoMsg(object) {
|
|
148
|
-
return exports.DecCoin.fromAmino(object.value);
|
|
149
|
-
},
|
|
150
|
-
toAminoMsg(message) {
|
|
151
|
-
return {
|
|
152
|
-
type: "cosmos-sdk/DecCoin",
|
|
153
|
-
value: exports.DecCoin.toAmino(message)
|
|
154
|
-
};
|
|
155
|
-
},
|
|
156
|
-
fromProtoMsg(message) {
|
|
157
|
-
return exports.DecCoin.decode(message.value);
|
|
158
|
-
},
|
|
159
|
-
toProto(message) {
|
|
160
|
-
return exports.DecCoin.encode(message).finish();
|
|
161
|
-
},
|
|
162
|
-
toProtoMsg(message) {
|
|
163
|
-
return {
|
|
164
|
-
typeUrl: "/cosmos.base.v1beta1.DecCoin",
|
|
165
|
-
value: exports.DecCoin.encode(message).finish()
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
function createBaseIntProto() {
|
|
170
|
-
return {
|
|
171
|
-
int: ""
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
exports.IntProto = {
|
|
175
|
-
typeUrl: "/cosmos.base.v1beta1.IntProto",
|
|
176
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
177
|
-
if (message.int !== "") {
|
|
178
|
-
writer.uint32(10).string(message.int);
|
|
179
|
-
}
|
|
180
|
-
return writer;
|
|
181
|
-
},
|
|
182
|
-
decode(input, length) {
|
|
183
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
184
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
-
const message = createBaseIntProto();
|
|
186
|
-
while (reader.pos < end) {
|
|
187
|
-
const tag = reader.uint32();
|
|
188
|
-
switch (tag >>> 3) {
|
|
189
|
-
case 1:
|
|
190
|
-
message.int = reader.string();
|
|
191
|
-
break;
|
|
192
|
-
default:
|
|
193
|
-
reader.skipType(tag & 7);
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
fromPartial(object) {
|
|
200
|
-
const message = createBaseIntProto();
|
|
201
|
-
message.int = object.int ?? "";
|
|
202
|
-
return message;
|
|
203
|
-
},
|
|
204
|
-
fromAmino(object) {
|
|
205
|
-
const message = createBaseIntProto();
|
|
206
|
-
if (object.int !== undefined && object.int !== null) {
|
|
207
|
-
message.int = object.int;
|
|
208
|
-
}
|
|
209
|
-
return message;
|
|
210
|
-
},
|
|
211
|
-
toAmino(message) {
|
|
212
|
-
const obj = {};
|
|
213
|
-
obj.int = message.int === "" ? undefined : message.int;
|
|
214
|
-
return obj;
|
|
215
|
-
},
|
|
216
|
-
fromAminoMsg(object) {
|
|
217
|
-
return exports.IntProto.fromAmino(object.value);
|
|
218
|
-
},
|
|
219
|
-
toAminoMsg(message) {
|
|
220
|
-
return {
|
|
221
|
-
type: "cosmos-sdk/IntProto",
|
|
222
|
-
value: exports.IntProto.toAmino(message)
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
fromProtoMsg(message) {
|
|
226
|
-
return exports.IntProto.decode(message.value);
|
|
227
|
-
},
|
|
228
|
-
toProto(message) {
|
|
229
|
-
return exports.IntProto.encode(message).finish();
|
|
230
|
-
},
|
|
231
|
-
toProtoMsg(message) {
|
|
232
|
-
return {
|
|
233
|
-
typeUrl: "/cosmos.base.v1beta1.IntProto",
|
|
234
|
-
value: exports.IntProto.encode(message).finish()
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
function createBaseDecProto() {
|
|
239
|
-
return {
|
|
240
|
-
dec: ""
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
exports.DecProto = {
|
|
244
|
-
typeUrl: "/cosmos.base.v1beta1.DecProto",
|
|
245
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
246
|
-
if (message.dec !== "") {
|
|
247
|
-
writer.uint32(10).string(math_1.Decimal.fromUserInput(message.dec, 18).atomics);
|
|
248
|
-
}
|
|
249
|
-
return writer;
|
|
250
|
-
},
|
|
251
|
-
decode(input, length) {
|
|
252
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
253
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
254
|
-
const message = createBaseDecProto();
|
|
255
|
-
while (reader.pos < end) {
|
|
256
|
-
const tag = reader.uint32();
|
|
257
|
-
switch (tag >>> 3) {
|
|
258
|
-
case 1:
|
|
259
|
-
message.dec = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
260
|
-
break;
|
|
261
|
-
default:
|
|
262
|
-
reader.skipType(tag & 7);
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return message;
|
|
267
|
-
},
|
|
268
|
-
fromPartial(object) {
|
|
269
|
-
const message = createBaseDecProto();
|
|
270
|
-
message.dec = object.dec ?? "";
|
|
271
|
-
return message;
|
|
272
|
-
},
|
|
273
|
-
fromAmino(object) {
|
|
274
|
-
const message = createBaseDecProto();
|
|
275
|
-
if (object.dec !== undefined && object.dec !== null) {
|
|
276
|
-
message.dec = object.dec;
|
|
277
|
-
}
|
|
278
|
-
return message;
|
|
279
|
-
},
|
|
280
|
-
toAmino(message) {
|
|
281
|
-
const obj = {};
|
|
282
|
-
obj.dec = message.dec === "" ? undefined : message.dec;
|
|
283
|
-
return obj;
|
|
284
|
-
},
|
|
285
|
-
fromAminoMsg(object) {
|
|
286
|
-
return exports.DecProto.fromAmino(object.value);
|
|
287
|
-
},
|
|
288
|
-
toAminoMsg(message) {
|
|
289
|
-
return {
|
|
290
|
-
type: "cosmos-sdk/DecProto",
|
|
291
|
-
value: exports.DecProto.toAmino(message)
|
|
292
|
-
};
|
|
293
|
-
},
|
|
294
|
-
fromProtoMsg(message) {
|
|
295
|
-
return exports.DecProto.decode(message.value);
|
|
296
|
-
},
|
|
297
|
-
toProto(message) {
|
|
298
|
-
return exports.DecProto.encode(message).finish();
|
|
299
|
-
},
|
|
300
|
-
toProtoMsg(message) {
|
|
301
|
-
return {
|
|
302
|
-
typeUrl: "/cosmos.base.v1beta1.DecProto",
|
|
303
|
-
value: exports.DecProto.encode(message).finish()
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
};
|