@gitopia/gitopiajs 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/dist/LICENSE +0 -21
- package/dist/amino/amino.d.ts +0 -1
- package/dist/amino/amino.js +0 -2
- package/dist/amino/bundle.d.ts +0 -1
- package/dist/amino/bundle.js +0 -41
- package/dist/binary.d.ts +0 -130
- package/dist/binary.js +0 -371
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
- package/dist/cosmos/bank/v1beta1/bank.js +0 -664
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
- package/dist/cosmos/bank/v1beta1/query.js +0 -1759
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
- package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
- package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
- package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
- package/dist/cosmos/base/v1beta1/coin.js +0 -306
- package/dist/cosmos/bundle.d.ts +0 -2311
- package/dist/cosmos/bundle.js +0 -134
- package/dist/cosmos/client.d.ts +0 -84
- package/dist/cosmos/client.js +0 -65
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
- package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
- package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
- package/dist/cosmos/gov/v1beta1/query.js +0 -1264
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
- package/dist/cosmos/group/v1/query.d.ts +0 -1097
- package/dist/cosmos/group/v1/query.js +0 -2182
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
- package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
- package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
- package/dist/cosmos/group/v1/tx.amino.js +0 -77
- package/dist/cosmos/group/v1/tx.d.ts +0 -1198
- package/dist/cosmos/group/v1/tx.js +0 -2362
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
- package/dist/cosmos/group/v1/tx.registry.js +0 -271
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
- package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
- package/dist/cosmos/group/v1/types.d.ts +0 -873
- package/dist/cosmos/group/v1/types.js +0 -1495
- package/dist/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos/query/v1/query.d.ts +0 -1
- package/dist/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos/rpc.query.d.ts +0 -59
- package/dist/cosmos/rpc.query.js +0 -60
- package/dist/cosmos/rpc.tx.d.ts +0 -10
- package/dist/cosmos/rpc.tx.js +0 -44
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
- package/dist/cosmos_proto/bundle.d.ts +0 -32
- package/dist/cosmos_proto/bundle.js +0 -41
- package/dist/cosmos_proto/cosmos.d.ts +0 -171
- package/dist/cosmos_proto/cosmos.js +0 -221
- package/dist/esm/amino/amino.js +0 -1
- package/dist/esm/amino/bundle.js +0 -5
- package/dist/esm/binary.js +0 -366
- package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
- package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
- package/dist/esm/cosmos/bundle.js +0 -98
- package/dist/esm/cosmos/client.js +0 -27
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
- package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
- package/dist/esm/cosmos/group/v1/query.js +0 -2179
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
- package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
- package/dist/esm/cosmos/group/v1/tx.js +0 -2354
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
- package/dist/esm/cosmos/group/v1/types.js +0 -1483
- package/dist/esm/cosmos/msg/v1/msg.js +0 -1
- package/dist/esm/cosmos/query/v1/query.js +0 -1
- package/dist/esm/cosmos/rpc.query.js +0 -23
- package/dist/esm/cosmos/rpc.tx.js +0 -7
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
- package/dist/esm/cosmos_proto/bundle.js +0 -5
- package/dist/esm/cosmos_proto/cosmos.js +0 -216
- package/dist/esm/gitopia/bundle.js +0 -95
- package/dist/esm/gitopia/client.js +0 -32
- package/dist/esm/gitopia/custom-lcd-client.js +0 -50
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
- package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
- package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
- package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
- package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
- package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
- package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
- package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
- package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
- package/dist/esm/gitopia/rpc.query.js +0 -29
- package/dist/esm/gitopia/rpc.tx.js +0 -13
- package/dist/esm/gogoproto/bundle.js +0 -5
- package/dist/esm/gogoproto/gogo.js +0 -1
- package/dist/esm/google/api/annotations.js +0 -1
- package/dist/esm/google/api/http.js +0 -329
- package/dist/esm/google/bundle.js +0 -14
- package/dist/esm/google/protobuf/any.js +0 -74
- package/dist/esm/google/protobuf/descriptor.js +0 -4848
- package/dist/esm/google/protobuf/duration.js +0 -71
- package/dist/esm/google/protobuf/timestamp.js +0 -68
- package/dist/esm/helpers.js +0 -129
- package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
- package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
- package/dist/esm/ibc/bundle.js +0 -44
- package/dist/esm/ibc/client.js +0 -29
- package/dist/esm/ibc/core/client/v1/client.js +0 -611
- package/dist/esm/ibc/rpc.query.js +0 -30
- package/dist/esm/ibc/rpc.tx.js +0 -14
- package/dist/esm/index.js +0 -19
- package/dist/esm/utf8.js +0 -137
- package/dist/esm/varint.js +0 -408
- package/dist/gitopia/bundle.d.ts +0 -6123
- package/dist/gitopia/bundle.js +0 -131
- package/dist/gitopia/client.d.ts +0 -492
- package/dist/gitopia/client.js +0 -70
- package/dist/gitopia/custom-lcd-client.d.ts +0 -31
- package/dist/gitopia/custom-lcd-client.js +0 -87
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
- package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
- package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
- package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
- package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
- package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
- package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
- package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
- package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
- package/dist/gitopia/gitopia/gitopia/params.js +0 -296
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
- package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
- package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
- package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
- package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
- package/dist/gitopia/gitopia/gitopia/release.js +0 -228
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
- package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
- package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
- package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
- package/dist/gitopia/gitopia/gitopia/task.js +0 -204
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
- package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
- package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
- package/dist/gitopia/gitopia/gitopia/user.js +0 -343
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
- package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
- package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
- package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
- package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
- package/dist/gitopia/gitopia/rewards/params.js +0 -84
- package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
- package/dist/gitopia/gitopia/rewards/pool.js +0 -196
- package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
- package/dist/gitopia/gitopia/rewards/query.js +0 -657
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
- package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
- package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
- package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
- package/dist/gitopia/gitopia/rewards/task.js +0 -181
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
- package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
- package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
- package/dist/gitopia/gitopia/rewards/tx.js +0 -528
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
- package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
- package/dist/gitopia/rpc.query.d.ts +0 -117
- package/dist/gitopia/rpc.query.js +0 -66
- package/dist/gitopia/rpc.tx.d.ts +0 -16
- package/dist/gitopia/rpc.tx.js +0 -50
- package/dist/gogoproto/bundle.d.ts +0 -1
- package/dist/gogoproto/bundle.js +0 -41
- package/dist/gogoproto/gogo.d.ts +0 -1
- package/dist/gogoproto/gogo.js +0 -2
- package/dist/google/api/annotations.d.ts +0 -1
- package/dist/google/api/annotations.js +0 -2
- package/dist/google/api/http.d.ts +0 -1049
- package/dist/google/api/http.js +0 -332
- package/dist/google/bundle.d.ts +0 -525
- package/dist/google/bundle.js +0 -50
- package/dist/google/protobuf/any.d.ts +0 -358
- package/dist/google/protobuf/any.js +0 -77
- package/dist/google/protobuf/descriptor.d.ts +0 -3178
- package/dist/google/protobuf/descriptor.js +0 -4886
- package/dist/google/protobuf/duration.d.ts +0 -223
- package/dist/google/protobuf/duration.js +0 -74
- package/dist/google/protobuf/timestamp.d.ts +0 -314
- package/dist/google/protobuf/timestamp.js +0 -71
- package/dist/helpers.d.ts +0 -82
- package/dist/helpers.js +0 -144
- package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
- package/dist/ibc/applications/transfer/v1/query.js +0 -850
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
- package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
- package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
- package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
- package/dist/ibc/applications/transfer/v1/tx.js +0 -229
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
- package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
- package/dist/ibc/bundle.d.ts +0 -450
- package/dist/ibc/bundle.js +0 -80
- package/dist/ibc/client.d.ts +0 -22
- package/dist/ibc/client.js +0 -67
- package/dist/ibc/core/client/v1/client.d.ts +0 -408
- package/dist/ibc/core/client/v1/client.js +0 -614
- package/dist/ibc/rpc.query.d.ts +0 -73
- package/dist/ibc/rpc.query.js +0 -67
- package/dist/ibc/rpc.tx.d.ts +0 -17
- package/dist/ibc/rpc.tx.js +0 -51
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/package.json +0 -46
- package/dist/utf8.d.ts +0 -27
- package/dist/utf8.js +0 -141
- package/dist/varint.d.ts +0 -105
- package/dist/varint.js +0 -426
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { PullRequestIid } from "./repository";
|
|
3
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
-
export var Issue_State;
|
|
5
|
-
(function (Issue_State) {
|
|
6
|
-
Issue_State[Issue_State["OPEN"] = 0] = "OPEN";
|
|
7
|
-
Issue_State[Issue_State["CLOSED"] = 1] = "CLOSED";
|
|
8
|
-
Issue_State[Issue_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
9
|
-
})(Issue_State || (Issue_State = {}));
|
|
10
|
-
export const Issue_StateSDKType = Issue_State;
|
|
11
|
-
export const Issue_StateAmino = Issue_State;
|
|
12
|
-
export function issue_StateFromJSON(object) {
|
|
13
|
-
switch (object) {
|
|
14
|
-
case 0:
|
|
15
|
-
case "OPEN":
|
|
16
|
-
return Issue_State.OPEN;
|
|
17
|
-
case 1:
|
|
18
|
-
case "CLOSED":
|
|
19
|
-
return Issue_State.CLOSED;
|
|
20
|
-
case -1:
|
|
21
|
-
case "UNRECOGNIZED":
|
|
22
|
-
default:
|
|
23
|
-
return Issue_State.UNRECOGNIZED;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export function issue_StateToJSON(object) {
|
|
27
|
-
switch (object) {
|
|
28
|
-
case Issue_State.OPEN:
|
|
29
|
-
return "OPEN";
|
|
30
|
-
case Issue_State.CLOSED:
|
|
31
|
-
return "CLOSED";
|
|
32
|
-
case Issue_State.UNRECOGNIZED:
|
|
33
|
-
default:
|
|
34
|
-
return "UNRECOGNIZED";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function createBaseIssue() {
|
|
38
|
-
return {
|
|
39
|
-
creator: "",
|
|
40
|
-
id: BigInt(0),
|
|
41
|
-
iid: BigInt(0),
|
|
42
|
-
title: "",
|
|
43
|
-
state: 0,
|
|
44
|
-
description: "",
|
|
45
|
-
commentsCount: BigInt(0),
|
|
46
|
-
pullRequests: [],
|
|
47
|
-
repositoryId: BigInt(0),
|
|
48
|
-
labels: [],
|
|
49
|
-
weight: BigInt(0),
|
|
50
|
-
assignees: [],
|
|
51
|
-
bounties: [],
|
|
52
|
-
createdAt: BigInt(0),
|
|
53
|
-
updatedAt: BigInt(0),
|
|
54
|
-
closedAt: BigInt(0),
|
|
55
|
-
closedBy: ""
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export const Issue = {
|
|
59
|
-
typeUrl: "/gitopia.gitopia.gitopia.Issue",
|
|
60
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
61
|
-
if (message.creator !== "") {
|
|
62
|
-
writer.uint32(10).string(message.creator);
|
|
63
|
-
}
|
|
64
|
-
if (message.id !== BigInt(0)) {
|
|
65
|
-
writer.uint32(16).uint64(message.id);
|
|
66
|
-
}
|
|
67
|
-
if (message.iid !== BigInt(0)) {
|
|
68
|
-
writer.uint32(24).uint64(message.iid);
|
|
69
|
-
}
|
|
70
|
-
if (message.title !== "") {
|
|
71
|
-
writer.uint32(34).string(message.title);
|
|
72
|
-
}
|
|
73
|
-
if (message.state !== 0) {
|
|
74
|
-
writer.uint32(40).int32(message.state);
|
|
75
|
-
}
|
|
76
|
-
if (message.description !== "") {
|
|
77
|
-
writer.uint32(50).string(message.description);
|
|
78
|
-
}
|
|
79
|
-
if (message.commentsCount !== BigInt(0)) {
|
|
80
|
-
writer.uint32(56).uint64(message.commentsCount);
|
|
81
|
-
}
|
|
82
|
-
for (const v of message.pullRequests) {
|
|
83
|
-
PullRequestIid.encode(v, writer.uint32(66).fork()).ldelim();
|
|
84
|
-
}
|
|
85
|
-
if (message.repositoryId !== BigInt(0)) {
|
|
86
|
-
writer.uint32(72).uint64(message.repositoryId);
|
|
87
|
-
}
|
|
88
|
-
writer.uint32(82).fork();
|
|
89
|
-
for (const v of message.labels) {
|
|
90
|
-
writer.uint64(v);
|
|
91
|
-
}
|
|
92
|
-
writer.ldelim();
|
|
93
|
-
if (message.weight !== BigInt(0)) {
|
|
94
|
-
writer.uint32(88).uint64(message.weight);
|
|
95
|
-
}
|
|
96
|
-
for (const v of message.assignees) {
|
|
97
|
-
writer.uint32(98).string(v);
|
|
98
|
-
}
|
|
99
|
-
writer.uint32(106).fork();
|
|
100
|
-
for (const v of message.bounties) {
|
|
101
|
-
writer.uint64(v);
|
|
102
|
-
}
|
|
103
|
-
writer.ldelim();
|
|
104
|
-
if (message.createdAt !== BigInt(0)) {
|
|
105
|
-
writer.uint32(112).int64(message.createdAt);
|
|
106
|
-
}
|
|
107
|
-
if (message.updatedAt !== BigInt(0)) {
|
|
108
|
-
writer.uint32(120).int64(message.updatedAt);
|
|
109
|
-
}
|
|
110
|
-
if (message.closedAt !== BigInt(0)) {
|
|
111
|
-
writer.uint32(128).int64(message.closedAt);
|
|
112
|
-
}
|
|
113
|
-
if (message.closedBy !== "") {
|
|
114
|
-
writer.uint32(138).string(message.closedBy);
|
|
115
|
-
}
|
|
116
|
-
return writer;
|
|
117
|
-
},
|
|
118
|
-
decode(input, length) {
|
|
119
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
120
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
-
const message = createBaseIssue();
|
|
122
|
-
while (reader.pos < end) {
|
|
123
|
-
const tag = reader.uint32();
|
|
124
|
-
switch (tag >>> 3) {
|
|
125
|
-
case 1:
|
|
126
|
-
message.creator = reader.string();
|
|
127
|
-
break;
|
|
128
|
-
case 2:
|
|
129
|
-
message.id = reader.uint64();
|
|
130
|
-
break;
|
|
131
|
-
case 3:
|
|
132
|
-
message.iid = reader.uint64();
|
|
133
|
-
break;
|
|
134
|
-
case 4:
|
|
135
|
-
message.title = reader.string();
|
|
136
|
-
break;
|
|
137
|
-
case 5:
|
|
138
|
-
message.state = reader.int32();
|
|
139
|
-
break;
|
|
140
|
-
case 6:
|
|
141
|
-
message.description = reader.string();
|
|
142
|
-
break;
|
|
143
|
-
case 7:
|
|
144
|
-
message.commentsCount = reader.uint64();
|
|
145
|
-
break;
|
|
146
|
-
case 8:
|
|
147
|
-
message.pullRequests.push(PullRequestIid.decode(reader, reader.uint32()));
|
|
148
|
-
break;
|
|
149
|
-
case 9:
|
|
150
|
-
message.repositoryId = reader.uint64();
|
|
151
|
-
break;
|
|
152
|
-
case 10:
|
|
153
|
-
if ((tag & 7) === 2) {
|
|
154
|
-
const end2 = reader.uint32() + reader.pos;
|
|
155
|
-
while (reader.pos < end2) {
|
|
156
|
-
message.labels.push(reader.uint64());
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
message.labels.push(reader.uint64());
|
|
161
|
-
}
|
|
162
|
-
break;
|
|
163
|
-
case 11:
|
|
164
|
-
message.weight = reader.uint64();
|
|
165
|
-
break;
|
|
166
|
-
case 12:
|
|
167
|
-
message.assignees.push(reader.string());
|
|
168
|
-
break;
|
|
169
|
-
case 13:
|
|
170
|
-
if ((tag & 7) === 2) {
|
|
171
|
-
const end2 = reader.uint32() + reader.pos;
|
|
172
|
-
while (reader.pos < end2) {
|
|
173
|
-
message.bounties.push(reader.uint64());
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
message.bounties.push(reader.uint64());
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
case 14:
|
|
181
|
-
message.createdAt = reader.int64();
|
|
182
|
-
break;
|
|
183
|
-
case 15:
|
|
184
|
-
message.updatedAt = reader.int64();
|
|
185
|
-
break;
|
|
186
|
-
case 16:
|
|
187
|
-
message.closedAt = reader.int64();
|
|
188
|
-
break;
|
|
189
|
-
case 17:
|
|
190
|
-
message.closedBy = reader.string();
|
|
191
|
-
break;
|
|
192
|
-
default:
|
|
193
|
-
reader.skipType(tag & 7);
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
fromPartial(object) {
|
|
200
|
-
const message = createBaseIssue();
|
|
201
|
-
message.creator = object.creator ?? "";
|
|
202
|
-
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
203
|
-
message.iid = object.iid !== undefined && object.iid !== null ? BigInt(object.iid.toString()) : BigInt(0);
|
|
204
|
-
message.title = object.title ?? "";
|
|
205
|
-
message.state = object.state ?? 0;
|
|
206
|
-
message.description = object.description ?? "";
|
|
207
|
-
message.commentsCount = object.commentsCount !== undefined && object.commentsCount !== null ? BigInt(object.commentsCount.toString()) : BigInt(0);
|
|
208
|
-
message.pullRequests = object.pullRequests?.map(e => PullRequestIid.fromPartial(e)) || [];
|
|
209
|
-
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
210
|
-
message.labels = object.labels?.map(e => BigInt(e.toString())) || [];
|
|
211
|
-
message.weight = object.weight !== undefined && object.weight !== null ? BigInt(object.weight.toString()) : BigInt(0);
|
|
212
|
-
message.assignees = object.assignees?.map(e => e) || [];
|
|
213
|
-
message.bounties = object.bounties?.map(e => BigInt(e.toString())) || [];
|
|
214
|
-
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
215
|
-
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
216
|
-
message.closedAt = object.closedAt !== undefined && object.closedAt !== null ? BigInt(object.closedAt.toString()) : BigInt(0);
|
|
217
|
-
message.closedBy = object.closedBy ?? "";
|
|
218
|
-
return message;
|
|
219
|
-
},
|
|
220
|
-
fromAmino(object) {
|
|
221
|
-
const message = createBaseIssue();
|
|
222
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
223
|
-
message.creator = object.creator;
|
|
224
|
-
}
|
|
225
|
-
if (object.id !== undefined && object.id !== null) {
|
|
226
|
-
message.id = BigInt(object.id);
|
|
227
|
-
}
|
|
228
|
-
if (object.iid !== undefined && object.iid !== null) {
|
|
229
|
-
message.iid = BigInt(object.iid);
|
|
230
|
-
}
|
|
231
|
-
if (object.title !== undefined && object.title !== null) {
|
|
232
|
-
message.title = object.title;
|
|
233
|
-
}
|
|
234
|
-
if (object.state !== undefined && object.state !== null) {
|
|
235
|
-
message.state = object.state;
|
|
236
|
-
}
|
|
237
|
-
if (object.description !== undefined && object.description !== null) {
|
|
238
|
-
message.description = object.description;
|
|
239
|
-
}
|
|
240
|
-
if (object.commentsCount !== undefined && object.commentsCount !== null) {
|
|
241
|
-
message.commentsCount = BigInt(object.commentsCount);
|
|
242
|
-
}
|
|
243
|
-
message.pullRequests = object.pullRequests?.map(e => PullRequestIid.fromAmino(e)) || [];
|
|
244
|
-
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
245
|
-
message.repositoryId = BigInt(object.repositoryId);
|
|
246
|
-
}
|
|
247
|
-
message.labels = object.labels?.map(e => BigInt(e)) || [];
|
|
248
|
-
if (object.weight !== undefined && object.weight !== null) {
|
|
249
|
-
message.weight = BigInt(object.weight);
|
|
250
|
-
}
|
|
251
|
-
message.assignees = object.assignees?.map(e => e) || [];
|
|
252
|
-
message.bounties = object.bounties?.map(e => BigInt(e)) || [];
|
|
253
|
-
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
254
|
-
message.createdAt = BigInt(object.createdAt);
|
|
255
|
-
}
|
|
256
|
-
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
257
|
-
message.updatedAt = BigInt(object.updatedAt);
|
|
258
|
-
}
|
|
259
|
-
if (object.closedAt !== undefined && object.closedAt !== null) {
|
|
260
|
-
message.closedAt = BigInt(object.closedAt);
|
|
261
|
-
}
|
|
262
|
-
if (object.closedBy !== undefined && object.closedBy !== null) {
|
|
263
|
-
message.closedBy = object.closedBy;
|
|
264
|
-
}
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
toAmino(message) {
|
|
268
|
-
const obj = {};
|
|
269
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
270
|
-
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
271
|
-
obj.iid = message.iid !== BigInt(0) ? message.iid?.toString() : undefined;
|
|
272
|
-
obj.title = message.title === "" ? undefined : message.title;
|
|
273
|
-
obj.state = message.state === 0 ? undefined : message.state;
|
|
274
|
-
obj.description = message.description === "" ? undefined : message.description;
|
|
275
|
-
obj.commentsCount = message.commentsCount !== BigInt(0) ? message.commentsCount?.toString() : undefined;
|
|
276
|
-
if (message.pullRequests) {
|
|
277
|
-
obj.pullRequests = message.pullRequests.map(e => e ? PullRequestIid.toAmino(e) : undefined);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
obj.pullRequests = message.pullRequests;
|
|
281
|
-
}
|
|
282
|
-
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
283
|
-
if (message.labels) {
|
|
284
|
-
obj.labels = message.labels.map(e => e.toString());
|
|
285
|
-
}
|
|
286
|
-
else {
|
|
287
|
-
obj.labels = message.labels;
|
|
288
|
-
}
|
|
289
|
-
obj.weight = message.weight !== BigInt(0) ? message.weight?.toString() : undefined;
|
|
290
|
-
if (message.assignees) {
|
|
291
|
-
obj.assignees = message.assignees.map(e => e);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
obj.assignees = message.assignees;
|
|
295
|
-
}
|
|
296
|
-
if (message.bounties) {
|
|
297
|
-
obj.bounties = message.bounties.map(e => e.toString());
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
obj.bounties = message.bounties;
|
|
301
|
-
}
|
|
302
|
-
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
303
|
-
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
304
|
-
obj.closedAt = message.closedAt !== BigInt(0) ? message.closedAt?.toString() : undefined;
|
|
305
|
-
obj.closedBy = message.closedBy === "" ? undefined : message.closedBy;
|
|
306
|
-
return obj;
|
|
307
|
-
},
|
|
308
|
-
fromAminoMsg(object) {
|
|
309
|
-
return Issue.fromAmino(object.value);
|
|
310
|
-
},
|
|
311
|
-
fromProtoMsg(message) {
|
|
312
|
-
return Issue.decode(message.value);
|
|
313
|
-
},
|
|
314
|
-
toProto(message) {
|
|
315
|
-
return Issue.encode(message).finish();
|
|
316
|
-
},
|
|
317
|
-
toProtoMsg(message) {
|
|
318
|
-
return {
|
|
319
|
-
typeUrl: "/gitopia.gitopia.gitopia.Issue",
|
|
320
|
-
value: Issue.encode(message).finish()
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
};
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
3
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
-
import { Decimal } from "@cosmjs/math";
|
|
5
|
-
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
6
|
-
function createBaseDistributionProportion() {
|
|
7
|
-
return {
|
|
8
|
-
proportion: "",
|
|
9
|
-
address: ""
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export const DistributionProportion = {
|
|
13
|
-
typeUrl: "/gitopia.gitopia.gitopia.DistributionProportion",
|
|
14
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
15
|
-
if (message.proportion !== "") {
|
|
16
|
-
writer.uint32(10).string(Decimal.fromUserInput(message.proportion, 18).atomics);
|
|
17
|
-
}
|
|
18
|
-
if (message.address !== "") {
|
|
19
|
-
writer.uint32(18).string(message.address);
|
|
20
|
-
}
|
|
21
|
-
return writer;
|
|
22
|
-
},
|
|
23
|
-
decode(input, length) {
|
|
24
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
25
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
-
const message = createBaseDistributionProportion();
|
|
27
|
-
while (reader.pos < end) {
|
|
28
|
-
const tag = reader.uint32();
|
|
29
|
-
switch (tag >>> 3) {
|
|
30
|
-
case 1:
|
|
31
|
-
message.proportion = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
32
|
-
break;
|
|
33
|
-
case 2:
|
|
34
|
-
message.address = reader.string();
|
|
35
|
-
break;
|
|
36
|
-
default:
|
|
37
|
-
reader.skipType(tag & 7);
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return message;
|
|
42
|
-
},
|
|
43
|
-
fromPartial(object) {
|
|
44
|
-
const message = createBaseDistributionProportion();
|
|
45
|
-
message.proportion = object.proportion ?? "";
|
|
46
|
-
message.address = object.address ?? "";
|
|
47
|
-
return message;
|
|
48
|
-
},
|
|
49
|
-
fromAmino(object) {
|
|
50
|
-
const message = createBaseDistributionProportion();
|
|
51
|
-
if (object.proportion !== undefined && object.proportion !== null) {
|
|
52
|
-
message.proportion = object.proportion;
|
|
53
|
-
}
|
|
54
|
-
if (object.address !== undefined && object.address !== null) {
|
|
55
|
-
message.address = object.address;
|
|
56
|
-
}
|
|
57
|
-
return message;
|
|
58
|
-
},
|
|
59
|
-
toAmino(message) {
|
|
60
|
-
const obj = {};
|
|
61
|
-
obj.proportion = message.proportion === "" ? undefined : message.proportion;
|
|
62
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
63
|
-
return obj;
|
|
64
|
-
},
|
|
65
|
-
fromAminoMsg(object) {
|
|
66
|
-
return DistributionProportion.fromAmino(object.value);
|
|
67
|
-
},
|
|
68
|
-
fromProtoMsg(message) {
|
|
69
|
-
return DistributionProportion.decode(message.value);
|
|
70
|
-
},
|
|
71
|
-
toProto(message) {
|
|
72
|
-
return DistributionProportion.encode(message).finish();
|
|
73
|
-
},
|
|
74
|
-
toProtoMsg(message) {
|
|
75
|
-
return {
|
|
76
|
-
typeUrl: "/gitopia.gitopia.gitopia.DistributionProportion",
|
|
77
|
-
value: DistributionProportion.encode(message).finish()
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
function createBasePoolProportions() {
|
|
82
|
-
return {
|
|
83
|
-
ecosystem: undefined,
|
|
84
|
-
team: undefined,
|
|
85
|
-
platform: undefined
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export const PoolProportions = {
|
|
89
|
-
typeUrl: "/gitopia.gitopia.gitopia.PoolProportions",
|
|
90
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
91
|
-
if (message.ecosystem !== undefined) {
|
|
92
|
-
DistributionProportion.encode(message.ecosystem, writer.uint32(10).fork()).ldelim();
|
|
93
|
-
}
|
|
94
|
-
if (message.team !== undefined) {
|
|
95
|
-
DistributionProportion.encode(message.team, writer.uint32(18).fork()).ldelim();
|
|
96
|
-
}
|
|
97
|
-
if (message.platform !== undefined) {
|
|
98
|
-
DistributionProportion.encode(message.platform, writer.uint32(26).fork()).ldelim();
|
|
99
|
-
}
|
|
100
|
-
return writer;
|
|
101
|
-
},
|
|
102
|
-
decode(input, length) {
|
|
103
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
104
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
-
const message = createBasePoolProportions();
|
|
106
|
-
while (reader.pos < end) {
|
|
107
|
-
const tag = reader.uint32();
|
|
108
|
-
switch (tag >>> 3) {
|
|
109
|
-
case 1:
|
|
110
|
-
message.ecosystem = DistributionProportion.decode(reader, reader.uint32());
|
|
111
|
-
break;
|
|
112
|
-
case 2:
|
|
113
|
-
message.team = DistributionProportion.decode(reader, reader.uint32());
|
|
114
|
-
break;
|
|
115
|
-
case 3:
|
|
116
|
-
message.platform = DistributionProportion.decode(reader, reader.uint32());
|
|
117
|
-
break;
|
|
118
|
-
default:
|
|
119
|
-
reader.skipType(tag & 7);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return message;
|
|
124
|
-
},
|
|
125
|
-
fromPartial(object) {
|
|
126
|
-
const message = createBasePoolProportions();
|
|
127
|
-
message.ecosystem = object.ecosystem !== undefined && object.ecosystem !== null ? DistributionProportion.fromPartial(object.ecosystem) : undefined;
|
|
128
|
-
message.team = object.team !== undefined && object.team !== null ? DistributionProportion.fromPartial(object.team) : undefined;
|
|
129
|
-
message.platform = object.platform !== undefined && object.platform !== null ? DistributionProportion.fromPartial(object.platform) : undefined;
|
|
130
|
-
return message;
|
|
131
|
-
},
|
|
132
|
-
fromAmino(object) {
|
|
133
|
-
const message = createBasePoolProportions();
|
|
134
|
-
if (object.ecosystem !== undefined && object.ecosystem !== null) {
|
|
135
|
-
message.ecosystem = DistributionProportion.fromAmino(object.ecosystem);
|
|
136
|
-
}
|
|
137
|
-
if (object.team !== undefined && object.team !== null) {
|
|
138
|
-
message.team = DistributionProportion.fromAmino(object.team);
|
|
139
|
-
}
|
|
140
|
-
if (object.platform !== undefined && object.platform !== null) {
|
|
141
|
-
message.platform = DistributionProportion.fromAmino(object.platform);
|
|
142
|
-
}
|
|
143
|
-
return message;
|
|
144
|
-
},
|
|
145
|
-
toAmino(message) {
|
|
146
|
-
const obj = {};
|
|
147
|
-
obj.ecosystem = message.ecosystem ? DistributionProportion.toAmino(message.ecosystem) : undefined;
|
|
148
|
-
obj.team = message.team ? DistributionProportion.toAmino(message.team) : undefined;
|
|
149
|
-
obj.platform = message.platform ? DistributionProportion.toAmino(message.platform) : undefined;
|
|
150
|
-
return obj;
|
|
151
|
-
},
|
|
152
|
-
fromAminoMsg(object) {
|
|
153
|
-
return PoolProportions.fromAmino(object.value);
|
|
154
|
-
},
|
|
155
|
-
fromProtoMsg(message) {
|
|
156
|
-
return PoolProportions.decode(message.value);
|
|
157
|
-
},
|
|
158
|
-
toProto(message) {
|
|
159
|
-
return PoolProportions.encode(message).finish();
|
|
160
|
-
},
|
|
161
|
-
toProtoMsg(message) {
|
|
162
|
-
return {
|
|
163
|
-
typeUrl: "/gitopia.gitopia.gitopia.PoolProportions",
|
|
164
|
-
value: PoolProportions.encode(message).finish()
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
function createBaseParams() {
|
|
169
|
-
return {
|
|
170
|
-
nextInflationTime: new Date(),
|
|
171
|
-
poolProportions: PoolProportions.fromPartial({}),
|
|
172
|
-
teamProportions: [],
|
|
173
|
-
genesisTime: new Date(),
|
|
174
|
-
gitServer: "",
|
|
175
|
-
storageProvider: ""
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
export const Params = {
|
|
179
|
-
typeUrl: "/gitopia.gitopia.gitopia.Params",
|
|
180
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
181
|
-
if (message.nextInflationTime !== undefined) {
|
|
182
|
-
Timestamp.encode(toTimestamp(message.nextInflationTime), writer.uint32(10).fork()).ldelim();
|
|
183
|
-
}
|
|
184
|
-
if (message.poolProportions !== undefined) {
|
|
185
|
-
PoolProportions.encode(message.poolProportions, writer.uint32(18).fork()).ldelim();
|
|
186
|
-
}
|
|
187
|
-
for (const v of message.teamProportions) {
|
|
188
|
-
DistributionProportion.encode(v, writer.uint32(26).fork()).ldelim();
|
|
189
|
-
}
|
|
190
|
-
if (message.genesisTime !== undefined) {
|
|
191
|
-
Timestamp.encode(toTimestamp(message.genesisTime), writer.uint32(34).fork()).ldelim();
|
|
192
|
-
}
|
|
193
|
-
if (message.gitServer !== "") {
|
|
194
|
-
writer.uint32(42).string(message.gitServer);
|
|
195
|
-
}
|
|
196
|
-
if (message.storageProvider !== "") {
|
|
197
|
-
writer.uint32(50).string(message.storageProvider);
|
|
198
|
-
}
|
|
199
|
-
return writer;
|
|
200
|
-
},
|
|
201
|
-
decode(input, length) {
|
|
202
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
203
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
204
|
-
const message = createBaseParams();
|
|
205
|
-
while (reader.pos < end) {
|
|
206
|
-
const tag = reader.uint32();
|
|
207
|
-
switch (tag >>> 3) {
|
|
208
|
-
case 1:
|
|
209
|
-
message.nextInflationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
210
|
-
break;
|
|
211
|
-
case 2:
|
|
212
|
-
message.poolProportions = PoolProportions.decode(reader, reader.uint32());
|
|
213
|
-
break;
|
|
214
|
-
case 3:
|
|
215
|
-
message.teamProportions.push(DistributionProportion.decode(reader, reader.uint32()));
|
|
216
|
-
break;
|
|
217
|
-
case 4:
|
|
218
|
-
message.genesisTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
219
|
-
break;
|
|
220
|
-
case 5:
|
|
221
|
-
message.gitServer = reader.string();
|
|
222
|
-
break;
|
|
223
|
-
case 6:
|
|
224
|
-
message.storageProvider = reader.string();
|
|
225
|
-
break;
|
|
226
|
-
default:
|
|
227
|
-
reader.skipType(tag & 7);
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return message;
|
|
232
|
-
},
|
|
233
|
-
fromPartial(object) {
|
|
234
|
-
const message = createBaseParams();
|
|
235
|
-
message.nextInflationTime = object.nextInflationTime ?? undefined;
|
|
236
|
-
message.poolProportions = object.poolProportions !== undefined && object.poolProportions !== null ? PoolProportions.fromPartial(object.poolProportions) : undefined;
|
|
237
|
-
message.teamProportions = object.teamProportions?.map(e => DistributionProportion.fromPartial(e)) || [];
|
|
238
|
-
message.genesisTime = object.genesisTime ?? undefined;
|
|
239
|
-
message.gitServer = object.gitServer ?? "";
|
|
240
|
-
message.storageProvider = object.storageProvider ?? "";
|
|
241
|
-
return message;
|
|
242
|
-
},
|
|
243
|
-
fromAmino(object) {
|
|
244
|
-
const message = createBaseParams();
|
|
245
|
-
if (object.next_inflation_time !== undefined && object.next_inflation_time !== null) {
|
|
246
|
-
message.nextInflationTime = fromTimestamp(Timestamp.fromAmino(object.next_inflation_time));
|
|
247
|
-
}
|
|
248
|
-
if (object.pool_proportions !== undefined && object.pool_proportions !== null) {
|
|
249
|
-
message.poolProportions = PoolProportions.fromAmino(object.pool_proportions);
|
|
250
|
-
}
|
|
251
|
-
message.teamProportions = object.team_proportions?.map(e => DistributionProportion.fromAmino(e)) || [];
|
|
252
|
-
if (object.genesis_time !== undefined && object.genesis_time !== null) {
|
|
253
|
-
message.genesisTime = fromTimestamp(Timestamp.fromAmino(object.genesis_time));
|
|
254
|
-
}
|
|
255
|
-
if (object.git_server !== undefined && object.git_server !== null) {
|
|
256
|
-
message.gitServer = object.git_server;
|
|
257
|
-
}
|
|
258
|
-
if (object.storage_provider !== undefined && object.storage_provider !== null) {
|
|
259
|
-
message.storageProvider = object.storage_provider;
|
|
260
|
-
}
|
|
261
|
-
return message;
|
|
262
|
-
},
|
|
263
|
-
toAmino(message) {
|
|
264
|
-
const obj = {};
|
|
265
|
-
obj.next_inflation_time = message.nextInflationTime ? Timestamp.toAmino(toTimestamp(message.nextInflationTime)) : undefined;
|
|
266
|
-
obj.pool_proportions = message.poolProportions ? PoolProportions.toAmino(message.poolProportions) : undefined;
|
|
267
|
-
if (message.teamProportions) {
|
|
268
|
-
obj.team_proportions = message.teamProportions.map(e => e ? DistributionProportion.toAmino(e) : undefined);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
obj.team_proportions = message.teamProportions;
|
|
272
|
-
}
|
|
273
|
-
obj.genesis_time = message.genesisTime ? Timestamp.toAmino(toTimestamp(message.genesisTime)) : undefined;
|
|
274
|
-
obj.git_server = message.gitServer === "" ? undefined : message.gitServer;
|
|
275
|
-
obj.storage_provider = message.storageProvider === "" ? undefined : message.storageProvider;
|
|
276
|
-
return obj;
|
|
277
|
-
},
|
|
278
|
-
fromAminoMsg(object) {
|
|
279
|
-
return Params.fromAmino(object.value);
|
|
280
|
-
},
|
|
281
|
-
fromProtoMsg(message) {
|
|
282
|
-
return Params.decode(message.value);
|
|
283
|
-
},
|
|
284
|
-
toProto(message) {
|
|
285
|
-
return Params.encode(message).finish();
|
|
286
|
-
},
|
|
287
|
-
toProtoMsg(message) {
|
|
288
|
-
return {
|
|
289
|
-
typeUrl: "/gitopia.gitopia.gitopia.Params",
|
|
290
|
-
value: Params.encode(message).finish()
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
};
|