@gitopia/gitopiajs 0.0.2
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/CHANGELOG.md +8 -0
- package/dist/LICENSE +21 -0
- package/dist/amino/amino.d.ts +1 -0
- package/dist/amino/amino.js +2 -0
- package/dist/amino/bundle.d.ts +1 -0
- package/dist/amino/bundle.js +41 -0
- package/dist/binary.d.ts +130 -0
- package/dist/binary.js +371 -0
- package/dist/cosmos/bank/v1beta1/bank.d.ts +407 -0
- package/dist/cosmos/bank/v1beta1/bank.js +664 -0
- package/dist/cosmos/bank/v1beta1/query.d.ts +1062 -0
- package/dist/cosmos/bank/v1beta1/query.js +1759 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +19 -0
- package/dist/cosmos/bank/v1beta1/query.lcd.js +173 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +106 -0
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +123 -0
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +190 -0
- package/dist/cosmos/base/query/v1beta1/pagination.js +204 -0
- package/dist/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/cosmos/base/v1beta1/coin.js +306 -0
- package/dist/cosmos/bundle.d.ts +2311 -0
- package/dist/cosmos/bundle.js +134 -0
- package/dist/cosmos/client.d.ts +84 -0
- package/dist/cosmos/client.js +65 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +245 -0
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +456 -0
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +258 -0
- package/dist/cosmos/feegrant/v1beta1/query.js +487 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +44 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +28 -0
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +47 -0
- package/dist/cosmos/gov/v1beta1/gov.d.ts +571 -0
- package/dist/cosmos/gov/v1beta1/gov.js +1122 -0
- package/dist/cosmos/gov/v1beta1/query.d.ts +636 -0
- package/dist/cosmos/gov/v1beta1/query.js +1264 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
- package/dist/cosmos/gov/v1beta1/query.lcd.js +87 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +92 -0
- package/dist/cosmos/group/v1/query.d.ts +1097 -0
- package/dist/cosmos/group/v1/query.js +2182 -0
- package/dist/cosmos/group/v1/query.lcd.d.ts +22 -0
- package/dist/cosmos/group/v1/query.lcd.js +158 -0
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +78 -0
- package/dist/cosmos/group/v1/query.rpc.Query.js +148 -0
- package/dist/cosmos/group/v1/tx.amino.d.ts +73 -0
- package/dist/cosmos/group/v1/tx.amino.js +77 -0
- package/dist/cosmos/group/v1/tx.d.ts +1198 -0
- package/dist/cosmos/group/v1/tx.js +2362 -0
- package/dist/cosmos/group/v1/tx.registry.d.ts +180 -0
- package/dist/cosmos/group/v1/tx.registry.js +271 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +51 -0
- package/dist/cosmos/group/v1/tx.rpc.msg.js +96 -0
- package/dist/cosmos/group/v1/types.d.ts +873 -0
- package/dist/cosmos/group/v1/types.js +1495 -0
- package/dist/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/cosmos/msg/v1/msg.js +2 -0
- package/dist/cosmos/query/v1/query.d.ts +1 -0
- package/dist/cosmos/query/v1/query.js +2 -0
- package/dist/cosmos/rpc.query.d.ts +59 -0
- package/dist/cosmos/rpc.query.js +60 -0
- package/dist/cosmos/rpc.tx.d.ts +10 -0
- package/dist/cosmos/rpc.tx.js +44 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +278 -0
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +382 -0
- package/dist/cosmos_proto/bundle.d.ts +32 -0
- package/dist/cosmos_proto/bundle.js +41 -0
- package/dist/cosmos_proto/cosmos.d.ts +171 -0
- package/dist/cosmos_proto/cosmos.js +221 -0
- package/dist/esm/amino/amino.js +1 -0
- package/dist/esm/amino/bundle.js +5 -0
- package/dist/esm/binary.js +366 -0
- package/dist/esm/cosmos/bank/v1beta1/bank.js +661 -0
- package/dist/esm/cosmos/bank/v1beta1/query.js +1756 -0
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +169 -0
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +118 -0
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +201 -0
- package/dist/esm/cosmos/base/v1beta1/coin.js +303 -0
- package/dist/esm/cosmos/bundle.js +98 -0
- package/dist/esm/cosmos/client.js +27 -0
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +450 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +484 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +40 -0
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +42 -0
- package/dist/esm/cosmos/gov/v1beta1/gov.js +1112 -0
- package/dist/esm/cosmos/gov/v1beta1/query.js +1261 -0
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +83 -0
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +87 -0
- package/dist/esm/cosmos/group/v1/query.js +2179 -0
- package/dist/esm/cosmos/group/v1/query.lcd.js +154 -0
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +143 -0
- package/dist/esm/cosmos/group/v1/tx.amino.js +74 -0
- package/dist/esm/cosmos/group/v1/tx.js +2354 -0
- package/dist/esm/cosmos/group/v1/tx.registry.js +267 -0
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +92 -0
- package/dist/esm/cosmos/group/v1/types.js +1483 -0
- package/dist/esm/cosmos/msg/v1/msg.js +1 -0
- package/dist/esm/cosmos/query/v1/query.js +1 -0
- package/dist/esm/cosmos/rpc.query.js +23 -0
- package/dist/esm/cosmos/rpc.tx.js +7 -0
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +379 -0
- package/dist/esm/cosmos_proto/bundle.js +5 -0
- package/dist/esm/cosmos_proto/cosmos.js +216 -0
- package/dist/esm/gitopia/bundle.js +95 -0
- package/dist/esm/gitopia/client.js +32 -0
- package/dist/esm/gitopia/custom-lcd-client.js +50 -0
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +101 -0
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +255 -0
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +137 -0
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +488 -0
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +451 -0
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +78 -0
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +460 -0
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +323 -0
- package/dist/esm/gitopia/gitopia/gitopia/params.js +293 -0
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +565 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.js +7351 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +452 -0
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +453 -0
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +123 -0
- package/dist/esm/gitopia/gitopia/gitopia/release.js +225 -0
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +1200 -0
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +125 -0
- package/dist/esm/gitopia/gitopia/gitopia/task.js +197 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +464 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +14679 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +1671 -0
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +560 -0
- package/dist/esm/gitopia/gitopia/gitopia/user.js +340 -0
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +146 -0
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +144 -0
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +82 -0
- package/dist/esm/gitopia/gitopia/rewards/params.js +81 -0
- package/dist/esm/gitopia/gitopia/rewards/pool.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/query.js +654 -0
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +40 -0
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +53 -0
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +191 -0
- package/dist/esm/gitopia/gitopia/rewards/task.js +176 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +19 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.js +525 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +69 -0
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +26 -0
- package/dist/esm/gitopia/rpc.query.js +29 -0
- package/dist/esm/gitopia/rpc.tx.js +13 -0
- package/dist/esm/gogoproto/bundle.js +5 -0
- package/dist/esm/gogoproto/gogo.js +1 -0
- package/dist/esm/google/api/annotations.js +1 -0
- package/dist/esm/google/api/http.js +329 -0
- package/dist/esm/google/bundle.js +14 -0
- package/dist/esm/google/protobuf/any.js +74 -0
- package/dist/esm/google/protobuf/descriptor.js +4848 -0
- package/dist/esm/google/protobuf/duration.js +71 -0
- package/dist/esm/google/protobuf/timestamp.js +68 -0
- package/dist/esm/helpers.js +129 -0
- package/dist/esm/ibc/applications/transfer/v1/query.js +847 -0
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +70 -0
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +71 -0
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +164 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +9 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.js +226 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +33 -0
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +14 -0
- package/dist/esm/ibc/bundle.js +44 -0
- package/dist/esm/ibc/client.js +29 -0
- package/dist/esm/ibc/core/client/v1/client.js +611 -0
- package/dist/esm/ibc/rpc.query.js +30 -0
- package/dist/esm/ibc/rpc.tx.js +14 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/utf8.js +137 -0
- package/dist/esm/varint.js +408 -0
- package/dist/gitopia/bundle.d.ts +6123 -0
- package/dist/gitopia/bundle.js +131 -0
- package/dist/gitopia/client.d.ts +492 -0
- package/dist/gitopia/client.js +70 -0
- package/dist/gitopia/custom-lcd-client.d.ts +31 -0
- package/dist/gitopia/custom-lcd-client.js +87 -0
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +39 -0
- package/dist/gitopia/gitopia/gitopia/attachment.js +104 -0
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +79 -0
- package/dist/gitopia/gitopia/gitopia/bounty.js +262 -0
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +48 -0
- package/dist/gitopia/gitopia/gitopia/branch.js +140 -0
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +125 -0
- package/dist/gitopia/gitopia/gitopia/comment.js +495 -0
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +160 -0
- package/dist/gitopia/gitopia/gitopia/dao.js +454 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +34 -0
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +81 -0
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +143 -0
- package/dist/gitopia/gitopia/gitopia/genesis.js +463 -0
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +88 -0
- package/dist/gitopia/gitopia/gitopia/issue.js +328 -0
- package/dist/gitopia/gitopia/gitopia/params.d.ts +115 -0
- package/dist/gitopia/gitopia/gitopia/params.js +296 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +177 -0
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +570 -0
- package/dist/gitopia/gitopia/gitopia/query.d.ts +3130 -0
- package/dist/gitopia/gitopia/gitopia/query.js +7355 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +54 -0
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +456 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +188 -0
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +458 -0
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +42 -0
- package/dist/gitopia/gitopia/gitopia/reaction.js +128 -0
- package/dist/gitopia/gitopia/gitopia/release.d.ts +70 -0
- package/dist/gitopia/gitopia/gitopia/release.js +228 -0
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +424 -0
- package/dist/gitopia/gitopia/gitopia/repository.js +1207 -0
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +45 -0
- package/dist/gitopia/gitopia/gitopia/tag.js +128 -0
- package/dist/gitopia/gitopia/gitopia/task.d.ts +64 -0
- package/dist/gitopia/gitopia/gitopia/task.js +204 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +463 -0
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +467 -0
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +6246 -0
- package/dist/gitopia/gitopia/gitopia/tx.js +14687 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +1116 -0
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +1675 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +200 -0
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +564 -0
- package/dist/gitopia/gitopia/gitopia/user.d.ts +104 -0
- package/dist/gitopia/gitopia/gitopia/user.js +343 -0
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +51 -0
- package/dist/gitopia/gitopia/gitopia/whois.js +151 -0
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +74 -0
- package/dist/gitopia/gitopia/offchain/offchain.js +147 -0
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +40 -0
- package/dist/gitopia/gitopia/rewards/genesis.js +85 -0
- package/dist/gitopia/gitopia/rewards/params.d.ts +37 -0
- package/dist/gitopia/gitopia/rewards/params.js +84 -0
- package/dist/gitopia/gitopia/rewards/pool.d.ts +59 -0
- package/dist/gitopia/gitopia/rewards/pool.js +196 -0
- package/dist/gitopia/gitopia/rewards/query.d.ts +294 -0
- package/dist/gitopia/gitopia/rewards/query.js +657 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +12 -0
- package/dist/gitopia/gitopia/rewards/query.lcd.js +44 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +28 -0
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +58 -0
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +79 -0
- package/dist/gitopia/gitopia/rewards/rewards.js +194 -0
- package/dist/gitopia/gitopia/rewards/task.d.ts +54 -0
- package/dist/gitopia/gitopia/rewards/task.js +181 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +18 -0
- package/dist/gitopia/gitopia/rewards/tx.amino.js +22 -0
- package/dist/gitopia/gitopia/rewards/tx.d.ts +242 -0
- package/dist/gitopia/gitopia/rewards/tx.js +528 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +48 -0
- package/dist/gitopia/gitopia/rewards/tx.registry.js +73 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +19 -0
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +30 -0
- package/dist/gitopia/rpc.query.d.ts +117 -0
- package/dist/gitopia/rpc.query.js +66 -0
- package/dist/gitopia/rpc.tx.d.ts +16 -0
- package/dist/gitopia/rpc.tx.js +50 -0
- package/dist/gogoproto/bundle.d.ts +1 -0
- package/dist/gogoproto/bundle.js +41 -0
- package/dist/gogoproto/gogo.d.ts +1 -0
- package/dist/gogoproto/gogo.js +2 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +2 -0
- package/dist/google/api/http.d.ts +1049 -0
- package/dist/google/api/http.js +332 -0
- package/dist/google/bundle.d.ts +525 -0
- package/dist/google/bundle.js +50 -0
- package/dist/google/protobuf/any.d.ts +358 -0
- package/dist/google/protobuf/any.js +77 -0
- package/dist/google/protobuf/descriptor.d.ts +3178 -0
- package/dist/google/protobuf/descriptor.js +4886 -0
- package/dist/google/protobuf/duration.d.ts +223 -0
- package/dist/google/protobuf/duration.js +74 -0
- package/dist/google/protobuf/timestamp.d.ts +314 -0
- package/dist/google/protobuf/timestamp.js +71 -0
- package/dist/helpers.d.ts +82 -0
- package/dist/helpers.js +144 -0
- package/dist/ibc/applications/transfer/v1/query.d.ts +479 -0
- package/dist/ibc/applications/transfer/v1/query.js +850 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +14 -0
- package/dist/ibc/applications/transfer/v1/query.lcd.js +74 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +36 -0
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +76 -0
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +123 -0
- package/dist/ibc/applications/transfer/v1/transfer.js +167 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +8 -0
- package/dist/ibc/applications/transfer/v1/tx.amino.js +12 -0
- package/dist/ibc/applications/transfer/v1/tx.d.ts +132 -0
- package/dist/ibc/applications/transfer/v1/tx.js +229 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
- package/dist/ibc/applications/transfer/v1/tx.registry.js +37 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +18 -0
- package/dist/ibc/bundle.d.ts +450 -0
- package/dist/ibc/bundle.js +80 -0
- package/dist/ibc/client.d.ts +22 -0
- package/dist/ibc/client.js +67 -0
- package/dist/ibc/core/client/v1/client.d.ts +408 -0
- package/dist/ibc/core/client/v1/client.js +614 -0
- package/dist/ibc/rpc.query.d.ts +73 -0
- package/dist/ibc/rpc.query.js +67 -0
- package/dist/ibc/rpc.tx.d.ts +17 -0
- package/dist/ibc/rpc.tx.js +51 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +35 -0
- package/dist/package.json +46 -0
- package/dist/utf8.d.ts +27 -0
- package/dist/utf8.js +141 -0
- package/dist/varint.d.ts +105 -0
- package/dist/varint.js +426 -0
- package/package.json +46 -0
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
};
|