@gitopia/gitopiajs 0.0.3 → 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,82 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Reward } from "./rewards";
|
|
3
|
-
import { Params } from "./params";
|
|
4
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
-
function createBaseGenesisState() {
|
|
6
|
-
return {
|
|
7
|
-
rewardsList: [],
|
|
8
|
-
params: Params.fromPartial({})
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export const GenesisState = {
|
|
12
|
-
typeUrl: "/gitopia.gitopia.rewards.GenesisState",
|
|
13
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
-
for (const v of message.rewardsList) {
|
|
15
|
-
Reward.encode(v, writer.uint32(18).fork()).ldelim();
|
|
16
|
-
}
|
|
17
|
-
if (message.params !== undefined) {
|
|
18
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
19
|
-
}
|
|
20
|
-
return writer;
|
|
21
|
-
},
|
|
22
|
-
decode(input, length) {
|
|
23
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBaseGenesisState();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
case 2:
|
|
30
|
-
message.rewardsList.push(Reward.decode(reader, reader.uint32()));
|
|
31
|
-
break;
|
|
32
|
-
case 1:
|
|
33
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
reader.skipType(tag & 7);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return message;
|
|
41
|
-
},
|
|
42
|
-
fromPartial(object) {
|
|
43
|
-
const message = createBaseGenesisState();
|
|
44
|
-
message.rewardsList = object.rewardsList?.map(e => Reward.fromPartial(e)) || [];
|
|
45
|
-
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
46
|
-
return message;
|
|
47
|
-
},
|
|
48
|
-
fromAmino(object) {
|
|
49
|
-
const message = createBaseGenesisState();
|
|
50
|
-
message.rewardsList = object.rewardsList?.map(e => Reward.fromAmino(e)) || [];
|
|
51
|
-
if (object.params !== undefined && object.params !== null) {
|
|
52
|
-
message.params = Params.fromAmino(object.params);
|
|
53
|
-
}
|
|
54
|
-
return message;
|
|
55
|
-
},
|
|
56
|
-
toAmino(message) {
|
|
57
|
-
const obj = {};
|
|
58
|
-
if (message.rewardsList) {
|
|
59
|
-
obj.rewardsList = message.rewardsList.map(e => e ? Reward.toAmino(e) : undefined);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
obj.rewardsList = message.rewardsList;
|
|
63
|
-
}
|
|
64
|
-
obj.params = message.params ? Params.toAmino(message.params) : undefined;
|
|
65
|
-
return obj;
|
|
66
|
-
},
|
|
67
|
-
fromAminoMsg(object) {
|
|
68
|
-
return GenesisState.fromAmino(object.value);
|
|
69
|
-
},
|
|
70
|
-
fromProtoMsg(message) {
|
|
71
|
-
return GenesisState.decode(message.value);
|
|
72
|
-
},
|
|
73
|
-
toProto(message) {
|
|
74
|
-
return GenesisState.encode(message).finish();
|
|
75
|
-
},
|
|
76
|
-
toProtoMsg(message) {
|
|
77
|
-
return {
|
|
78
|
-
typeUrl: "/gitopia.gitopia.rewards.GenesisState",
|
|
79
|
-
value: GenesisState.encode(message).finish()
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { RewardPool } from "./pool";
|
|
3
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
-
function createBaseParams() {
|
|
5
|
-
return {
|
|
6
|
-
evaluatorAddress: "",
|
|
7
|
-
rewardSeries: []
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export const Params = {
|
|
11
|
-
typeUrl: "/gitopia.gitopia.rewards.Params",
|
|
12
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
13
|
-
if (message.evaluatorAddress !== "") {
|
|
14
|
-
writer.uint32(10).string(message.evaluatorAddress);
|
|
15
|
-
}
|
|
16
|
-
for (const v of message.rewardSeries) {
|
|
17
|
-
RewardPool.encode(v, writer.uint32(18).fork()).ldelim();
|
|
18
|
-
}
|
|
19
|
-
return writer;
|
|
20
|
-
},
|
|
21
|
-
decode(input, length) {
|
|
22
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
|
-
const message = createBaseParams();
|
|
25
|
-
while (reader.pos < end) {
|
|
26
|
-
const tag = reader.uint32();
|
|
27
|
-
switch (tag >>> 3) {
|
|
28
|
-
case 1:
|
|
29
|
-
message.evaluatorAddress = reader.string();
|
|
30
|
-
break;
|
|
31
|
-
case 2:
|
|
32
|
-
message.rewardSeries.push(RewardPool.decode(reader, reader.uint32()));
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
reader.skipType(tag & 7);
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return message;
|
|
40
|
-
},
|
|
41
|
-
fromPartial(object) {
|
|
42
|
-
const message = createBaseParams();
|
|
43
|
-
message.evaluatorAddress = object.evaluatorAddress ?? "";
|
|
44
|
-
message.rewardSeries = object.rewardSeries?.map(e => RewardPool.fromPartial(e)) || [];
|
|
45
|
-
return message;
|
|
46
|
-
},
|
|
47
|
-
fromAmino(object) {
|
|
48
|
-
const message = createBaseParams();
|
|
49
|
-
if (object.evaluator_address !== undefined && object.evaluator_address !== null) {
|
|
50
|
-
message.evaluatorAddress = object.evaluator_address;
|
|
51
|
-
}
|
|
52
|
-
message.rewardSeries = object.reward_series?.map(e => RewardPool.fromAmino(e)) || [];
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
toAmino(message) {
|
|
56
|
-
const obj = {};
|
|
57
|
-
obj.evaluator_address = message.evaluatorAddress === "" ? undefined : message.evaluatorAddress;
|
|
58
|
-
if (message.rewardSeries) {
|
|
59
|
-
obj.reward_series = message.rewardSeries.map(e => e ? RewardPool.toAmino(e) : undefined);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
obj.reward_series = message.rewardSeries;
|
|
63
|
-
}
|
|
64
|
-
return obj;
|
|
65
|
-
},
|
|
66
|
-
fromAminoMsg(object) {
|
|
67
|
-
return Params.fromAmino(object.value);
|
|
68
|
-
},
|
|
69
|
-
fromProtoMsg(message) {
|
|
70
|
-
return Params.decode(message.value);
|
|
71
|
-
},
|
|
72
|
-
toProto(message) {
|
|
73
|
-
return Params.encode(message).finish();
|
|
74
|
-
},
|
|
75
|
-
toProtoMsg(message) {
|
|
76
|
-
return {
|
|
77
|
-
typeUrl: "/gitopia.gitopia.rewards.Params",
|
|
78
|
-
value: Params.encode(message).finish()
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
4
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
-
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
6
|
-
export var Series;
|
|
7
|
-
(function (Series) {
|
|
8
|
-
Series[Series["NONE"] = 0] = "NONE";
|
|
9
|
-
Series[Series["ONE"] = 1] = "ONE";
|
|
10
|
-
Series[Series["TWO"] = 2] = "TWO";
|
|
11
|
-
Series[Series["THREE"] = 3] = "THREE";
|
|
12
|
-
Series[Series["FOUR"] = 4] = "FOUR";
|
|
13
|
-
Series[Series["FIVE"] = 5] = "FIVE";
|
|
14
|
-
Series[Series["SIX"] = 6] = "SIX";
|
|
15
|
-
Series[Series["SEVEN"] = 7] = "SEVEN";
|
|
16
|
-
Series[Series["COSMOS"] = 8] = "COSMOS";
|
|
17
|
-
Series[Series["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
-
})(Series || (Series = {}));
|
|
19
|
-
export const SeriesSDKType = Series;
|
|
20
|
-
export const SeriesAmino = Series;
|
|
21
|
-
export function seriesFromJSON(object) {
|
|
22
|
-
switch (object) {
|
|
23
|
-
case 0:
|
|
24
|
-
case "NONE":
|
|
25
|
-
return Series.NONE;
|
|
26
|
-
case 1:
|
|
27
|
-
case "ONE":
|
|
28
|
-
return Series.ONE;
|
|
29
|
-
case 2:
|
|
30
|
-
case "TWO":
|
|
31
|
-
return Series.TWO;
|
|
32
|
-
case 3:
|
|
33
|
-
case "THREE":
|
|
34
|
-
return Series.THREE;
|
|
35
|
-
case 4:
|
|
36
|
-
case "FOUR":
|
|
37
|
-
return Series.FOUR;
|
|
38
|
-
case 5:
|
|
39
|
-
case "FIVE":
|
|
40
|
-
return Series.FIVE;
|
|
41
|
-
case 6:
|
|
42
|
-
case "SIX":
|
|
43
|
-
return Series.SIX;
|
|
44
|
-
case 7:
|
|
45
|
-
case "SEVEN":
|
|
46
|
-
return Series.SEVEN;
|
|
47
|
-
case 8:
|
|
48
|
-
case "COSMOS":
|
|
49
|
-
return Series.COSMOS;
|
|
50
|
-
case -1:
|
|
51
|
-
case "UNRECOGNIZED":
|
|
52
|
-
default:
|
|
53
|
-
return Series.UNRECOGNIZED;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export function seriesToJSON(object) {
|
|
57
|
-
switch (object) {
|
|
58
|
-
case Series.NONE:
|
|
59
|
-
return "NONE";
|
|
60
|
-
case Series.ONE:
|
|
61
|
-
return "ONE";
|
|
62
|
-
case Series.TWO:
|
|
63
|
-
return "TWO";
|
|
64
|
-
case Series.THREE:
|
|
65
|
-
return "THREE";
|
|
66
|
-
case Series.FOUR:
|
|
67
|
-
return "FOUR";
|
|
68
|
-
case Series.FIVE:
|
|
69
|
-
return "FIVE";
|
|
70
|
-
case Series.SIX:
|
|
71
|
-
return "SIX";
|
|
72
|
-
case Series.SEVEN:
|
|
73
|
-
return "SEVEN";
|
|
74
|
-
case Series.COSMOS:
|
|
75
|
-
return "COSMOS";
|
|
76
|
-
case Series.UNRECOGNIZED:
|
|
77
|
-
default:
|
|
78
|
-
return "UNRECOGNIZED";
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function createBaseRewardPool() {
|
|
82
|
-
return {
|
|
83
|
-
totalAmount: Coin.fromPartial({}),
|
|
84
|
-
claimedAmount: Coin.fromPartial({}),
|
|
85
|
-
startTime: new Date(),
|
|
86
|
-
endTime: new Date(),
|
|
87
|
-
series: 0
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export const RewardPool = {
|
|
91
|
-
typeUrl: "/gitopia.gitopia.rewards.RewardPool",
|
|
92
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
93
|
-
if (message.totalAmount !== undefined) {
|
|
94
|
-
Coin.encode(message.totalAmount, writer.uint32(10).fork()).ldelim();
|
|
95
|
-
}
|
|
96
|
-
if (message.claimedAmount !== undefined) {
|
|
97
|
-
Coin.encode(message.claimedAmount, writer.uint32(18).fork()).ldelim();
|
|
98
|
-
}
|
|
99
|
-
if (message.startTime !== undefined) {
|
|
100
|
-
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
|
|
101
|
-
}
|
|
102
|
-
if (message.endTime !== undefined) {
|
|
103
|
-
Timestamp.encode(toTimestamp(message.endTime), writer.uint32(34).fork()).ldelim();
|
|
104
|
-
}
|
|
105
|
-
if (message.series !== 0) {
|
|
106
|
-
writer.uint32(40).int32(message.series);
|
|
107
|
-
}
|
|
108
|
-
return writer;
|
|
109
|
-
},
|
|
110
|
-
decode(input, length) {
|
|
111
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
112
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
-
const message = createBaseRewardPool();
|
|
114
|
-
while (reader.pos < end) {
|
|
115
|
-
const tag = reader.uint32();
|
|
116
|
-
switch (tag >>> 3) {
|
|
117
|
-
case 1:
|
|
118
|
-
message.totalAmount = Coin.decode(reader, reader.uint32());
|
|
119
|
-
break;
|
|
120
|
-
case 2:
|
|
121
|
-
message.claimedAmount = Coin.decode(reader, reader.uint32());
|
|
122
|
-
break;
|
|
123
|
-
case 3:
|
|
124
|
-
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
125
|
-
break;
|
|
126
|
-
case 4:
|
|
127
|
-
message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
128
|
-
break;
|
|
129
|
-
case 5:
|
|
130
|
-
message.series = reader.int32();
|
|
131
|
-
break;
|
|
132
|
-
default:
|
|
133
|
-
reader.skipType(tag & 7);
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return message;
|
|
138
|
-
},
|
|
139
|
-
fromPartial(object) {
|
|
140
|
-
const message = createBaseRewardPool();
|
|
141
|
-
message.totalAmount = object.totalAmount !== undefined && object.totalAmount !== null ? Coin.fromPartial(object.totalAmount) : undefined;
|
|
142
|
-
message.claimedAmount = object.claimedAmount !== undefined && object.claimedAmount !== null ? Coin.fromPartial(object.claimedAmount) : undefined;
|
|
143
|
-
message.startTime = object.startTime ?? undefined;
|
|
144
|
-
message.endTime = object.endTime ?? undefined;
|
|
145
|
-
message.series = object.series ?? 0;
|
|
146
|
-
return message;
|
|
147
|
-
},
|
|
148
|
-
fromAmino(object) {
|
|
149
|
-
const message = createBaseRewardPool();
|
|
150
|
-
if (object.total_amount !== undefined && object.total_amount !== null) {
|
|
151
|
-
message.totalAmount = Coin.fromAmino(object.total_amount);
|
|
152
|
-
}
|
|
153
|
-
if (object.claimed_amount !== undefined && object.claimed_amount !== null) {
|
|
154
|
-
message.claimedAmount = Coin.fromAmino(object.claimed_amount);
|
|
155
|
-
}
|
|
156
|
-
if (object.start_time !== undefined && object.start_time !== null) {
|
|
157
|
-
message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
|
|
158
|
-
}
|
|
159
|
-
if (object.end_time !== undefined && object.end_time !== null) {
|
|
160
|
-
message.endTime = fromTimestamp(Timestamp.fromAmino(object.end_time));
|
|
161
|
-
}
|
|
162
|
-
if (object.series !== undefined && object.series !== null) {
|
|
163
|
-
message.series = object.series;
|
|
164
|
-
}
|
|
165
|
-
return message;
|
|
166
|
-
},
|
|
167
|
-
toAmino(message) {
|
|
168
|
-
const obj = {};
|
|
169
|
-
obj.total_amount = message.totalAmount ? Coin.toAmino(message.totalAmount) : undefined;
|
|
170
|
-
obj.claimed_amount = message.claimedAmount ? Coin.toAmino(message.claimedAmount) : undefined;
|
|
171
|
-
obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : undefined;
|
|
172
|
-
obj.end_time = message.endTime ? Timestamp.toAmino(toTimestamp(message.endTime)) : undefined;
|
|
173
|
-
obj.series = message.series === 0 ? undefined : message.series;
|
|
174
|
-
return obj;
|
|
175
|
-
},
|
|
176
|
-
fromAminoMsg(object) {
|
|
177
|
-
return RewardPool.fromAmino(object.value);
|
|
178
|
-
},
|
|
179
|
-
fromProtoMsg(message) {
|
|
180
|
-
return RewardPool.decode(message.value);
|
|
181
|
-
},
|
|
182
|
-
toProto(message) {
|
|
183
|
-
return RewardPool.encode(message).finish();
|
|
184
|
-
},
|
|
185
|
-
toProtoMsg(message) {
|
|
186
|
-
return {
|
|
187
|
-
typeUrl: "/gitopia.gitopia.rewards.RewardPool",
|
|
188
|
-
value: RewardPool.encode(message).finish()
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
};
|