@gitopia/gitopiajs 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +131 -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 +146 -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 +49 -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 +11 -8
- package/CHANGELOG.md +0 -8
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import * as _15 from "./gitopia/gitopia/attachment";
|
|
3
|
+
import * as _16 from "./gitopia/gitopia/bounty";
|
|
4
|
+
import * as _17 from "./gitopia/gitopia/branch";
|
|
5
|
+
import * as _18 from "./gitopia/gitopia/comment";
|
|
6
|
+
import * as _19 from "./gitopia/gitopia/dao";
|
|
7
|
+
import * as _20 from "./gitopia/gitopia/exercised_amount";
|
|
8
|
+
import * as _21 from "./gitopia/gitopia/genesis";
|
|
9
|
+
import * as _22 from "./gitopia/gitopia/issue";
|
|
10
|
+
import * as _23 from "./gitopia/gitopia/params";
|
|
11
|
+
import * as _24 from "./gitopia/gitopia/pullRequest";
|
|
12
|
+
import * as _25 from "./gitopia/gitopia/query";
|
|
13
|
+
import * as _26 from "./gitopia/gitopia/reaction";
|
|
14
|
+
import * as _27 from "./gitopia/gitopia/release";
|
|
15
|
+
import * as _28 from "./gitopia/gitopia/repository";
|
|
16
|
+
import * as _29 from "./gitopia/gitopia/tag";
|
|
17
|
+
import * as _30 from "./gitopia/gitopia/task";
|
|
18
|
+
import * as _31 from "./gitopia/gitopia/tx";
|
|
19
|
+
import * as _32 from "./gitopia/gitopia/user";
|
|
20
|
+
import * as _33 from "./gitopia/gitopia/whois";
|
|
21
|
+
import * as _34 from "./gitopia/offchain/offchain";
|
|
22
|
+
import * as _35 from "./gitopia/rewards/genesis";
|
|
23
|
+
import * as _36 from "./gitopia/rewards/params";
|
|
24
|
+
import * as _37 from "./gitopia/rewards/pool";
|
|
25
|
+
import * as _38 from "./gitopia/rewards/query";
|
|
26
|
+
import * as _39 from "./gitopia/rewards/rewards";
|
|
27
|
+
import * as _40 from "./gitopia/rewards/task";
|
|
28
|
+
import * as _41 from "./gitopia/rewards/tx";
|
|
29
|
+
import * as _62 from "./gitopia/gitopia/tx.amino";
|
|
30
|
+
import * as _63 from "./gitopia/rewards/tx.amino";
|
|
31
|
+
import * as _64 from "./gitopia/gitopia/tx.registry";
|
|
32
|
+
import * as _65 from "./gitopia/rewards/tx.registry";
|
|
33
|
+
import * as _66 from "./gitopia/gitopia/query.lcd";
|
|
34
|
+
import * as _67 from "./gitopia/rewards/query.lcd";
|
|
35
|
+
import * as _68 from "./gitopia/gitopia/query.rpc.Query";
|
|
36
|
+
import * as _69 from "./gitopia/rewards/query.rpc.Query";
|
|
37
|
+
import * as _70 from "./gitopia/gitopia/tx.rpc.msg";
|
|
38
|
+
import * as _71 from "./gitopia/rewards/tx.rpc.msg";
|
|
39
|
+
import * as _79 from "./custom-lcd-client";
|
|
40
|
+
import * as _80 from "./rpc.query";
|
|
41
|
+
import * as _81 from "./rpc.tx";
|
|
42
|
+
export var gitopia;
|
|
43
|
+
(function (gitopia_1) {
|
|
44
|
+
let gitopia;
|
|
45
|
+
(function (gitopia_2) {
|
|
46
|
+
gitopia_2.gitopia = {
|
|
47
|
+
..._15,
|
|
48
|
+
..._16,
|
|
49
|
+
..._17,
|
|
50
|
+
..._18,
|
|
51
|
+
..._19,
|
|
52
|
+
..._20,
|
|
53
|
+
..._21,
|
|
54
|
+
..._22,
|
|
55
|
+
..._23,
|
|
56
|
+
..._24,
|
|
57
|
+
..._25,
|
|
58
|
+
..._26,
|
|
59
|
+
..._27,
|
|
60
|
+
..._28,
|
|
61
|
+
..._29,
|
|
62
|
+
..._30,
|
|
63
|
+
..._31,
|
|
64
|
+
..._32,
|
|
65
|
+
..._33,
|
|
66
|
+
..._62,
|
|
67
|
+
..._64,
|
|
68
|
+
..._66,
|
|
69
|
+
..._68,
|
|
70
|
+
..._70
|
|
71
|
+
};
|
|
72
|
+
gitopia_2.offchain = {
|
|
73
|
+
..._34
|
|
74
|
+
};
|
|
75
|
+
gitopia_2.rewards = {
|
|
76
|
+
..._35,
|
|
77
|
+
..._36,
|
|
78
|
+
..._37,
|
|
79
|
+
..._38,
|
|
80
|
+
..._39,
|
|
81
|
+
..._40,
|
|
82
|
+
..._41,
|
|
83
|
+
..._63,
|
|
84
|
+
..._65,
|
|
85
|
+
..._67,
|
|
86
|
+
..._69,
|
|
87
|
+
..._71
|
|
88
|
+
};
|
|
89
|
+
})(gitopia = gitopia_1.gitopia || (gitopia_1.gitopia = {}));
|
|
90
|
+
gitopia_1.ClientFactory = {
|
|
91
|
+
..._79,
|
|
92
|
+
..._80,
|
|
93
|
+
..._81
|
|
94
|
+
};
|
|
95
|
+
})(gitopia || (gitopia = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
+
import { defaultRegistryTypes, AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
|
|
4
|
+
import * as gitopiaGitopiaGitopiaTxRegistry from "./gitopia/gitopia/tx.registry";
|
|
5
|
+
import * as gitopiaGitopiaRewardsTxRegistry from "./gitopia/rewards/tx.registry";
|
|
6
|
+
import * as gitopiaGitopiaGitopiaTxAmino from "./gitopia/gitopia/tx.amino";
|
|
7
|
+
import * as gitopiaGitopiaRewardsTxAmino from "./gitopia/rewards/tx.amino";
|
|
8
|
+
export const gitopiaAminoConverters = {
|
|
9
|
+
...gitopiaGitopiaGitopiaTxAmino.AminoConverter,
|
|
10
|
+
...gitopiaGitopiaRewardsTxAmino.AminoConverter
|
|
11
|
+
};
|
|
12
|
+
export const gitopiaProtoRegistry = [...gitopiaGitopiaGitopiaTxRegistry.registry, ...gitopiaGitopiaRewardsTxRegistry.registry];
|
|
13
|
+
export const getSigningGitopiaClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
14
|
+
const registry = new Registry([...defaultTypes, ...gitopiaProtoRegistry]);
|
|
15
|
+
const aminoTypes = new AminoTypes({
|
|
16
|
+
...gitopiaAminoConverters
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
registry,
|
|
20
|
+
aminoTypes
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export const getSigningGitopiaClient = async ({ rpcEndpoint, signer, defaultTypes = defaultRegistryTypes }) => {
|
|
24
|
+
const { registry, aminoTypes } = getSigningGitopiaClientOptions({
|
|
25
|
+
defaultTypes
|
|
26
|
+
});
|
|
27
|
+
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
28
|
+
registry: registry,
|
|
29
|
+
aminoTypes
|
|
30
|
+
});
|
|
31
|
+
return client;
|
|
32
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
3
|
+
export const createCustomLCDClient = async ({ restEndpoint }) => {
|
|
4
|
+
const requestClient = new LCDClient({
|
|
5
|
+
restEndpoint
|
|
6
|
+
});
|
|
7
|
+
return {
|
|
8
|
+
cosmos: {
|
|
9
|
+
bank: {
|
|
10
|
+
v1beta1: new (await import("../cosmos/bank/v1beta1/query.lcd")).LCDQueryClient({
|
|
11
|
+
requestClient
|
|
12
|
+
})
|
|
13
|
+
},
|
|
14
|
+
feegrant: {
|
|
15
|
+
v1beta1: new (await import("../cosmos/feegrant/v1beta1/query.lcd")).LCDQueryClient({
|
|
16
|
+
requestClient
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
gov: {
|
|
20
|
+
v1beta1: new (await import("../cosmos/gov/v1beta1/query.lcd")).LCDQueryClient({
|
|
21
|
+
requestClient
|
|
22
|
+
})
|
|
23
|
+
},
|
|
24
|
+
group: {
|
|
25
|
+
v1: new (await import("../cosmos/group/v1/query.lcd")).LCDQueryClient({
|
|
26
|
+
requestClient
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
gitopia: {
|
|
31
|
+
gitopia: {
|
|
32
|
+
gitopia: new (await import("./gitopia/gitopia/query.lcd")).LCDQueryClient({
|
|
33
|
+
requestClient
|
|
34
|
+
}),
|
|
35
|
+
rewards: new (await import("./gitopia/rewards/query.lcd")).LCDQueryClient({
|
|
36
|
+
requestClient
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
ibc: {
|
|
41
|
+
applications: {
|
|
42
|
+
transfer: {
|
|
43
|
+
v1: new (await import("../ibc/applications/transfer/v1/query.lcd")).LCDQueryClient({
|
|
44
|
+
requestClient
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseAttachment() {
|
|
4
|
+
return {
|
|
5
|
+
name: "",
|
|
6
|
+
size: BigInt(0),
|
|
7
|
+
sha: "",
|
|
8
|
+
uploader: ""
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export const Attachment = {
|
|
12
|
+
typeUrl: "/gitopia.gitopia.gitopia.Attachment",
|
|
13
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
14
|
+
if (message.name !== "") {
|
|
15
|
+
writer.uint32(10).string(message.name);
|
|
16
|
+
}
|
|
17
|
+
if (message.size !== BigInt(0)) {
|
|
18
|
+
writer.uint32(16).uint64(message.size);
|
|
19
|
+
}
|
|
20
|
+
if (message.sha !== "") {
|
|
21
|
+
writer.uint32(26).string(message.sha);
|
|
22
|
+
}
|
|
23
|
+
if (message.uploader !== "") {
|
|
24
|
+
writer.uint32(34).string(message.uploader);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseAttachment();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
message.name = reader.string();
|
|
37
|
+
break;
|
|
38
|
+
case 2:
|
|
39
|
+
message.size = reader.uint64();
|
|
40
|
+
break;
|
|
41
|
+
case 3:
|
|
42
|
+
message.sha = reader.string();
|
|
43
|
+
break;
|
|
44
|
+
case 4:
|
|
45
|
+
message.uploader = reader.string();
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
reader.skipType(tag & 7);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromPartial(object) {
|
|
55
|
+
const message = createBaseAttachment();
|
|
56
|
+
message.name = object.name ?? "";
|
|
57
|
+
message.size = object.size !== undefined && object.size !== null ? BigInt(object.size.toString()) : BigInt(0);
|
|
58
|
+
message.sha = object.sha ?? "";
|
|
59
|
+
message.uploader = object.uploader ?? "";
|
|
60
|
+
return message;
|
|
61
|
+
},
|
|
62
|
+
fromAmino(object) {
|
|
63
|
+
const message = createBaseAttachment();
|
|
64
|
+
if (object.name !== undefined && object.name !== null) {
|
|
65
|
+
message.name = object.name;
|
|
66
|
+
}
|
|
67
|
+
if (object.size !== undefined && object.size !== null) {
|
|
68
|
+
message.size = BigInt(object.size);
|
|
69
|
+
}
|
|
70
|
+
if (object.sha !== undefined && object.sha !== null) {
|
|
71
|
+
message.sha = object.sha;
|
|
72
|
+
}
|
|
73
|
+
if (object.uploader !== undefined && object.uploader !== null) {
|
|
74
|
+
message.uploader = object.uploader;
|
|
75
|
+
}
|
|
76
|
+
return message;
|
|
77
|
+
},
|
|
78
|
+
toAmino(message) {
|
|
79
|
+
const obj = {};
|
|
80
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
81
|
+
obj.size = message.size !== BigInt(0) ? message.size?.toString() : undefined;
|
|
82
|
+
obj.sha = message.sha === "" ? undefined : message.sha;
|
|
83
|
+
obj.uploader = message.uploader === "" ? undefined : message.uploader;
|
|
84
|
+
return obj;
|
|
85
|
+
},
|
|
86
|
+
fromAminoMsg(object) {
|
|
87
|
+
return Attachment.fromAmino(object.value);
|
|
88
|
+
},
|
|
89
|
+
fromProtoMsg(message) {
|
|
90
|
+
return Attachment.decode(message.value);
|
|
91
|
+
},
|
|
92
|
+
toProto(message) {
|
|
93
|
+
return Attachment.encode(message).finish();
|
|
94
|
+
},
|
|
95
|
+
toProtoMsg(message) {
|
|
96
|
+
return {
|
|
97
|
+
typeUrl: "/gitopia.gitopia.gitopia.Attachment",
|
|
98
|
+
value: Attachment.encode(message).finish()
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
export var BountyState;
|
|
5
|
+
(function (BountyState) {
|
|
6
|
+
BountyState[BountyState["BOUNTY_STATE_SRCDEBITTED"] = 0] = "BOUNTY_STATE_SRCDEBITTED";
|
|
7
|
+
BountyState[BountyState["BOUNTY_STATE_DESTCREDITED"] = 1] = "BOUNTY_STATE_DESTCREDITED";
|
|
8
|
+
BountyState[BountyState["BOUNTY_STATE_REVERTEDBACK"] = 2] = "BOUNTY_STATE_REVERTEDBACK";
|
|
9
|
+
BountyState[BountyState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
10
|
+
})(BountyState || (BountyState = {}));
|
|
11
|
+
export const BountyStateSDKType = BountyState;
|
|
12
|
+
export const BountyStateAmino = BountyState;
|
|
13
|
+
export function bountyStateFromJSON(object) {
|
|
14
|
+
switch (object) {
|
|
15
|
+
case 0:
|
|
16
|
+
case "BOUNTY_STATE_SRCDEBITTED":
|
|
17
|
+
return BountyState.BOUNTY_STATE_SRCDEBITTED;
|
|
18
|
+
case 1:
|
|
19
|
+
case "BOUNTY_STATE_DESTCREDITED":
|
|
20
|
+
return BountyState.BOUNTY_STATE_DESTCREDITED;
|
|
21
|
+
case 2:
|
|
22
|
+
case "BOUNTY_STATE_REVERTEDBACK":
|
|
23
|
+
return BountyState.BOUNTY_STATE_REVERTEDBACK;
|
|
24
|
+
case -1:
|
|
25
|
+
case "UNRECOGNIZED":
|
|
26
|
+
default:
|
|
27
|
+
return BountyState.UNRECOGNIZED;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export function bountyStateToJSON(object) {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case BountyState.BOUNTY_STATE_SRCDEBITTED:
|
|
33
|
+
return "BOUNTY_STATE_SRCDEBITTED";
|
|
34
|
+
case BountyState.BOUNTY_STATE_DESTCREDITED:
|
|
35
|
+
return "BOUNTY_STATE_DESTCREDITED";
|
|
36
|
+
case BountyState.BOUNTY_STATE_REVERTEDBACK:
|
|
37
|
+
return "BOUNTY_STATE_REVERTEDBACK";
|
|
38
|
+
case BountyState.UNRECOGNIZED:
|
|
39
|
+
default:
|
|
40
|
+
return "UNRECOGNIZED";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export var BountyParent;
|
|
44
|
+
(function (BountyParent) {
|
|
45
|
+
BountyParent[BountyParent["BOUNTY_PARENT_ISSUE"] = 0] = "BOUNTY_PARENT_ISSUE";
|
|
46
|
+
BountyParent[BountyParent["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
47
|
+
})(BountyParent || (BountyParent = {}));
|
|
48
|
+
export const BountyParentSDKType = BountyParent;
|
|
49
|
+
export const BountyParentAmino = BountyParent;
|
|
50
|
+
export function bountyParentFromJSON(object) {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case 0:
|
|
53
|
+
case "BOUNTY_PARENT_ISSUE":
|
|
54
|
+
return BountyParent.BOUNTY_PARENT_ISSUE;
|
|
55
|
+
case -1:
|
|
56
|
+
case "UNRECOGNIZED":
|
|
57
|
+
default:
|
|
58
|
+
return BountyParent.UNRECOGNIZED;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export function bountyParentToJSON(object) {
|
|
62
|
+
switch (object) {
|
|
63
|
+
case BountyParent.BOUNTY_PARENT_ISSUE:
|
|
64
|
+
return "BOUNTY_PARENT_ISSUE";
|
|
65
|
+
case BountyParent.UNRECOGNIZED:
|
|
66
|
+
default:
|
|
67
|
+
return "UNRECOGNIZED";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function createBaseBounty() {
|
|
71
|
+
return {
|
|
72
|
+
id: BigInt(0),
|
|
73
|
+
amount: [],
|
|
74
|
+
state: 0,
|
|
75
|
+
repositoryId: BigInt(0),
|
|
76
|
+
parentIid: BigInt(0),
|
|
77
|
+
parent: 0,
|
|
78
|
+
expireAt: BigInt(0),
|
|
79
|
+
rewardedTo: "",
|
|
80
|
+
createdAt: BigInt(0),
|
|
81
|
+
updatedAt: BigInt(0),
|
|
82
|
+
creator: ""
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export const Bounty = {
|
|
86
|
+
typeUrl: "/gitopia.gitopia.gitopia.Bounty",
|
|
87
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
88
|
+
if (message.id !== BigInt(0)) {
|
|
89
|
+
writer.uint32(8).uint64(message.id);
|
|
90
|
+
}
|
|
91
|
+
for (const v of message.amount) {
|
|
92
|
+
Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
if (message.state !== 0) {
|
|
95
|
+
writer.uint32(24).int32(message.state);
|
|
96
|
+
}
|
|
97
|
+
if (message.repositoryId !== BigInt(0)) {
|
|
98
|
+
writer.uint32(32).uint64(message.repositoryId);
|
|
99
|
+
}
|
|
100
|
+
if (message.parentIid !== BigInt(0)) {
|
|
101
|
+
writer.uint32(40).uint64(message.parentIid);
|
|
102
|
+
}
|
|
103
|
+
if (message.parent !== 0) {
|
|
104
|
+
writer.uint32(48).int32(message.parent);
|
|
105
|
+
}
|
|
106
|
+
if (message.expireAt !== BigInt(0)) {
|
|
107
|
+
writer.uint32(56).int64(message.expireAt);
|
|
108
|
+
}
|
|
109
|
+
if (message.rewardedTo !== "") {
|
|
110
|
+
writer.uint32(66).string(message.rewardedTo);
|
|
111
|
+
}
|
|
112
|
+
if (message.createdAt !== BigInt(0)) {
|
|
113
|
+
writer.uint32(72).int64(message.createdAt);
|
|
114
|
+
}
|
|
115
|
+
if (message.updatedAt !== BigInt(0)) {
|
|
116
|
+
writer.uint32(80).int64(message.updatedAt);
|
|
117
|
+
}
|
|
118
|
+
if (message.creator !== "") {
|
|
119
|
+
writer.uint32(90).string(message.creator);
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
decode(input, length) {
|
|
124
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
125
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
126
|
+
const message = createBaseBounty();
|
|
127
|
+
while (reader.pos < end) {
|
|
128
|
+
const tag = reader.uint32();
|
|
129
|
+
switch (tag >>> 3) {
|
|
130
|
+
case 1:
|
|
131
|
+
message.id = reader.uint64();
|
|
132
|
+
break;
|
|
133
|
+
case 2:
|
|
134
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
135
|
+
break;
|
|
136
|
+
case 3:
|
|
137
|
+
message.state = reader.int32();
|
|
138
|
+
break;
|
|
139
|
+
case 4:
|
|
140
|
+
message.repositoryId = reader.uint64();
|
|
141
|
+
break;
|
|
142
|
+
case 5:
|
|
143
|
+
message.parentIid = reader.uint64();
|
|
144
|
+
break;
|
|
145
|
+
case 6:
|
|
146
|
+
message.parent = reader.int32();
|
|
147
|
+
break;
|
|
148
|
+
case 7:
|
|
149
|
+
message.expireAt = reader.int64();
|
|
150
|
+
break;
|
|
151
|
+
case 8:
|
|
152
|
+
message.rewardedTo = reader.string();
|
|
153
|
+
break;
|
|
154
|
+
case 9:
|
|
155
|
+
message.createdAt = reader.int64();
|
|
156
|
+
break;
|
|
157
|
+
case 10:
|
|
158
|
+
message.updatedAt = reader.int64();
|
|
159
|
+
break;
|
|
160
|
+
case 11:
|
|
161
|
+
message.creator = reader.string();
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
reader.skipType(tag & 7);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return message;
|
|
169
|
+
},
|
|
170
|
+
fromPartial(object) {
|
|
171
|
+
const message = createBaseBounty();
|
|
172
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
173
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
|
174
|
+
message.state = object.state ?? 0;
|
|
175
|
+
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
176
|
+
message.parentIid = object.parentIid !== undefined && object.parentIid !== null ? BigInt(object.parentIid.toString()) : BigInt(0);
|
|
177
|
+
message.parent = object.parent ?? 0;
|
|
178
|
+
message.expireAt = object.expireAt !== undefined && object.expireAt !== null ? BigInt(object.expireAt.toString()) : BigInt(0);
|
|
179
|
+
message.rewardedTo = object.rewardedTo ?? "";
|
|
180
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
181
|
+
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
182
|
+
message.creator = object.creator ?? "";
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
fromAmino(object) {
|
|
186
|
+
const message = createBaseBounty();
|
|
187
|
+
if (object.id !== undefined && object.id !== null) {
|
|
188
|
+
message.id = BigInt(object.id);
|
|
189
|
+
}
|
|
190
|
+
message.amount = object.amount?.map(e => Coin.fromAmino(e)) || [];
|
|
191
|
+
if (object.state !== undefined && object.state !== null) {
|
|
192
|
+
message.state = object.state;
|
|
193
|
+
}
|
|
194
|
+
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
195
|
+
message.repositoryId = BigInt(object.repositoryId);
|
|
196
|
+
}
|
|
197
|
+
if (object.parentIid !== undefined && object.parentIid !== null) {
|
|
198
|
+
message.parentIid = BigInt(object.parentIid);
|
|
199
|
+
}
|
|
200
|
+
if (object.parent !== undefined && object.parent !== null) {
|
|
201
|
+
message.parent = object.parent;
|
|
202
|
+
}
|
|
203
|
+
if (object.expireAt !== undefined && object.expireAt !== null) {
|
|
204
|
+
message.expireAt = BigInt(object.expireAt);
|
|
205
|
+
}
|
|
206
|
+
if (object.rewardedTo !== undefined && object.rewardedTo !== null) {
|
|
207
|
+
message.rewardedTo = object.rewardedTo;
|
|
208
|
+
}
|
|
209
|
+
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
210
|
+
message.createdAt = BigInt(object.createdAt);
|
|
211
|
+
}
|
|
212
|
+
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
213
|
+
message.updatedAt = BigInt(object.updatedAt);
|
|
214
|
+
}
|
|
215
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
216
|
+
message.creator = object.creator;
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
toAmino(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
223
|
+
if (message.amount) {
|
|
224
|
+
obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
obj.amount = message.amount;
|
|
228
|
+
}
|
|
229
|
+
obj.state = message.state === 0 ? undefined : message.state;
|
|
230
|
+
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
231
|
+
obj.parentIid = message.parentIid !== BigInt(0) ? message.parentIid?.toString() : undefined;
|
|
232
|
+
obj.parent = message.parent === 0 ? undefined : message.parent;
|
|
233
|
+
obj.expireAt = message.expireAt !== BigInt(0) ? message.expireAt?.toString() : undefined;
|
|
234
|
+
obj.rewardedTo = message.rewardedTo === "" ? undefined : message.rewardedTo;
|
|
235
|
+
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
236
|
+
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
237
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
238
|
+
return obj;
|
|
239
|
+
},
|
|
240
|
+
fromAminoMsg(object) {
|
|
241
|
+
return Bounty.fromAmino(object.value);
|
|
242
|
+
},
|
|
243
|
+
fromProtoMsg(message) {
|
|
244
|
+
return Bounty.decode(message.value);
|
|
245
|
+
},
|
|
246
|
+
toProto(message) {
|
|
247
|
+
return Bounty.encode(message).finish();
|
|
248
|
+
},
|
|
249
|
+
toProtoMsg(message) {
|
|
250
|
+
return {
|
|
251
|
+
typeUrl: "/gitopia.gitopia.gitopia.Bounty",
|
|
252
|
+
value: Bounty.encode(message).finish()
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseBranch() {
|
|
4
|
+
return {
|
|
5
|
+
id: BigInt(0),
|
|
6
|
+
repositoryId: BigInt(0),
|
|
7
|
+
name: "",
|
|
8
|
+
sha: "",
|
|
9
|
+
allowForcePush: false,
|
|
10
|
+
createdAt: BigInt(0),
|
|
11
|
+
updatedAt: BigInt(0)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export const Branch = {
|
|
15
|
+
typeUrl: "/gitopia.gitopia.gitopia.Branch",
|
|
16
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
17
|
+
if (message.id !== BigInt(0)) {
|
|
18
|
+
writer.uint32(8).uint64(message.id);
|
|
19
|
+
}
|
|
20
|
+
if (message.repositoryId !== BigInt(0)) {
|
|
21
|
+
writer.uint32(16).uint64(message.repositoryId);
|
|
22
|
+
}
|
|
23
|
+
if (message.name !== "") {
|
|
24
|
+
writer.uint32(26).string(message.name);
|
|
25
|
+
}
|
|
26
|
+
if (message.sha !== "") {
|
|
27
|
+
writer.uint32(34).string(message.sha);
|
|
28
|
+
}
|
|
29
|
+
if (message.allowForcePush === true) {
|
|
30
|
+
writer.uint32(40).bool(message.allowForcePush);
|
|
31
|
+
}
|
|
32
|
+
if (message.createdAt !== BigInt(0)) {
|
|
33
|
+
writer.uint32(48).int64(message.createdAt);
|
|
34
|
+
}
|
|
35
|
+
if (message.updatedAt !== BigInt(0)) {
|
|
36
|
+
writer.uint32(56).int64(message.updatedAt);
|
|
37
|
+
}
|
|
38
|
+
return writer;
|
|
39
|
+
},
|
|
40
|
+
decode(input, length) {
|
|
41
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
|
+
const message = createBaseBranch();
|
|
44
|
+
while (reader.pos < end) {
|
|
45
|
+
const tag = reader.uint32();
|
|
46
|
+
switch (tag >>> 3) {
|
|
47
|
+
case 1:
|
|
48
|
+
message.id = reader.uint64();
|
|
49
|
+
break;
|
|
50
|
+
case 2:
|
|
51
|
+
message.repositoryId = reader.uint64();
|
|
52
|
+
break;
|
|
53
|
+
case 3:
|
|
54
|
+
message.name = reader.string();
|
|
55
|
+
break;
|
|
56
|
+
case 4:
|
|
57
|
+
message.sha = reader.string();
|
|
58
|
+
break;
|
|
59
|
+
case 5:
|
|
60
|
+
message.allowForcePush = reader.bool();
|
|
61
|
+
break;
|
|
62
|
+
case 6:
|
|
63
|
+
message.createdAt = reader.int64();
|
|
64
|
+
break;
|
|
65
|
+
case 7:
|
|
66
|
+
message.updatedAt = reader.int64();
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
reader.skipType(tag & 7);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseBranch();
|
|
77
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
78
|
+
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
79
|
+
message.name = object.name ?? "";
|
|
80
|
+
message.sha = object.sha ?? "";
|
|
81
|
+
message.allowForcePush = object.allowForcePush ?? false;
|
|
82
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
83
|
+
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
84
|
+
return message;
|
|
85
|
+
},
|
|
86
|
+
fromAmino(object) {
|
|
87
|
+
const message = createBaseBranch();
|
|
88
|
+
if (object.id !== undefined && object.id !== null) {
|
|
89
|
+
message.id = BigInt(object.id);
|
|
90
|
+
}
|
|
91
|
+
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
92
|
+
message.repositoryId = BigInt(object.repositoryId);
|
|
93
|
+
}
|
|
94
|
+
if (object.name !== undefined && object.name !== null) {
|
|
95
|
+
message.name = object.name;
|
|
96
|
+
}
|
|
97
|
+
if (object.sha !== undefined && object.sha !== null) {
|
|
98
|
+
message.sha = object.sha;
|
|
99
|
+
}
|
|
100
|
+
if (object.allowForcePush !== undefined && object.allowForcePush !== null) {
|
|
101
|
+
message.allowForcePush = object.allowForcePush;
|
|
102
|
+
}
|
|
103
|
+
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
104
|
+
message.createdAt = BigInt(object.createdAt);
|
|
105
|
+
}
|
|
106
|
+
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
107
|
+
message.updatedAt = BigInt(object.updatedAt);
|
|
108
|
+
}
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
toAmino(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
114
|
+
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
115
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
116
|
+
obj.sha = message.sha === "" ? undefined : message.sha;
|
|
117
|
+
obj.allowForcePush = message.allowForcePush === false ? undefined : message.allowForcePush;
|
|
118
|
+
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
119
|
+
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
fromAminoMsg(object) {
|
|
123
|
+
return Branch.fromAmino(object.value);
|
|
124
|
+
},
|
|
125
|
+
fromProtoMsg(message) {
|
|
126
|
+
return Branch.decode(message.value);
|
|
127
|
+
},
|
|
128
|
+
toProto(message) {
|
|
129
|
+
return Branch.encode(message).finish();
|
|
130
|
+
},
|
|
131
|
+
toProtoMsg(message) {
|
|
132
|
+
return {
|
|
133
|
+
typeUrl: "/gitopia.gitopia.gitopia.Branch",
|
|
134
|
+
value: Branch.encode(message).finish()
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
};
|