@gitopia/gitopiajs 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/dist/LICENSE +0 -21
- package/dist/amino/amino.d.ts +0 -1
- package/dist/amino/amino.js +0 -2
- package/dist/amino/bundle.d.ts +0 -1
- package/dist/amino/bundle.js +0 -41
- package/dist/binary.d.ts +0 -130
- package/dist/binary.js +0 -371
- package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -407
- package/dist/cosmos/bank/v1beta1/bank.js +0 -664
- package/dist/cosmos/bank/v1beta1/query.d.ts +0 -1062
- package/dist/cosmos/bank/v1beta1/query.js +0 -1759
- package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +0 -19
- package/dist/cosmos/bank/v1beta1/query.lcd.js +0 -173
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +0 -106
- package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +0 -123
- package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -190
- package/dist/cosmos/base/query/v1beta1/pagination.js +0 -204
- package/dist/cosmos/base/v1beta1/coin.d.ts +0 -193
- package/dist/cosmos/base/v1beta1/coin.js +0 -306
- package/dist/cosmos/bundle.d.ts +0 -2311
- package/dist/cosmos/bundle.js +0 -134
- package/dist/cosmos/client.d.ts +0 -84
- package/dist/cosmos/client.js +0 -65
- package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -245
- package/dist/cosmos/feegrant/v1beta1/feegrant.js +0 -456
- package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -258
- package/dist/cosmos/feegrant/v1beta1/query.js +0 -487
- package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +0 -11
- package/dist/cosmos/feegrant/v1beta1/query.lcd.js +0 -44
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +0 -28
- package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -47
- package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -571
- package/dist/cosmos/gov/v1beta1/gov.js +0 -1122
- package/dist/cosmos/gov/v1beta1/query.d.ts +0 -636
- package/dist/cosmos/gov/v1beta1/query.js +0 -1264
- package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +0 -16
- package/dist/cosmos/gov/v1beta1/query.lcd.js +0 -87
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +0 -44
- package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +0 -92
- package/dist/cosmos/group/v1/query.d.ts +0 -1097
- package/dist/cosmos/group/v1/query.js +0 -2182
- package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
- package/dist/cosmos/group/v1/query.lcd.js +0 -158
- package/dist/cosmos/group/v1/query.rpc.Query.d.ts +0 -78
- package/dist/cosmos/group/v1/query.rpc.Query.js +0 -148
- package/dist/cosmos/group/v1/tx.amino.d.ts +0 -73
- package/dist/cosmos/group/v1/tx.amino.js +0 -77
- package/dist/cosmos/group/v1/tx.d.ts +0 -1198
- package/dist/cosmos/group/v1/tx.js +0 -2362
- package/dist/cosmos/group/v1/tx.registry.d.ts +0 -180
- package/dist/cosmos/group/v1/tx.registry.js +0 -271
- package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +0 -51
- package/dist/cosmos/group/v1/tx.rpc.msg.js +0 -96
- package/dist/cosmos/group/v1/types.d.ts +0 -873
- package/dist/cosmos/group/v1/types.js +0 -1495
- package/dist/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/cosmos/msg/v1/msg.js +0 -2
- package/dist/cosmos/query/v1/query.d.ts +0 -1
- package/dist/cosmos/query/v1/query.js +0 -2
- package/dist/cosmos/rpc.query.d.ts +0 -59
- package/dist/cosmos/rpc.query.js +0 -60
- package/dist/cosmos/rpc.tx.d.ts +0 -10
- package/dist/cosmos/rpc.tx.js +0 -44
- package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -278
- package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -382
- package/dist/cosmos_proto/bundle.d.ts +0 -32
- package/dist/cosmos_proto/bundle.js +0 -41
- package/dist/cosmos_proto/cosmos.d.ts +0 -171
- package/dist/cosmos_proto/cosmos.js +0 -221
- package/dist/esm/amino/amino.js +0 -1
- package/dist/esm/amino/bundle.js +0 -5
- package/dist/esm/binary.js +0 -366
- package/dist/esm/cosmos/bank/v1beta1/bank.js +0 -661
- package/dist/esm/cosmos/bank/v1beta1/query.js +0 -1756
- package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +0 -169
- package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +0 -118
- package/dist/esm/cosmos/base/query/v1beta1/pagination.js +0 -201
- package/dist/esm/cosmos/base/v1beta1/coin.js +0 -303
- package/dist/esm/cosmos/bundle.js +0 -98
- package/dist/esm/cosmos/client.js +0 -27
- package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +0 -450
- package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -484
- package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +0 -40
- package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +0 -42
- package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -1112
- package/dist/esm/cosmos/gov/v1beta1/query.js +0 -1261
- package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +0 -83
- package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +0 -87
- package/dist/esm/cosmos/group/v1/query.js +0 -2179
- package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
- package/dist/esm/cosmos/group/v1/query.rpc.Query.js +0 -143
- package/dist/esm/cosmos/group/v1/tx.amino.js +0 -74
- package/dist/esm/cosmos/group/v1/tx.js +0 -2354
- package/dist/esm/cosmos/group/v1/tx.registry.js +0 -267
- package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +0 -92
- package/dist/esm/cosmos/group/v1/types.js +0 -1483
- package/dist/esm/cosmos/msg/v1/msg.js +0 -1
- package/dist/esm/cosmos/query/v1/query.js +0 -1
- package/dist/esm/cosmos/rpc.query.js +0 -23
- package/dist/esm/cosmos/rpc.tx.js +0 -7
- package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -379
- package/dist/esm/cosmos_proto/bundle.js +0 -5
- package/dist/esm/cosmos_proto/cosmos.js +0 -216
- package/dist/esm/gitopia/bundle.js +0 -95
- package/dist/esm/gitopia/client.js +0 -32
- package/dist/esm/gitopia/custom-lcd-client.js +0 -50
- package/dist/esm/gitopia/gitopia/gitopia/attachment.js +0 -101
- package/dist/esm/gitopia/gitopia/gitopia/bounty.js +0 -255
- package/dist/esm/gitopia/gitopia/gitopia/branch.js +0 -137
- package/dist/esm/gitopia/gitopia/gitopia/comment.js +0 -488
- package/dist/esm/gitopia/gitopia/gitopia/dao.js +0 -451
- package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +0 -78
- package/dist/esm/gitopia/gitopia/gitopia/genesis.js +0 -460
- package/dist/esm/gitopia/gitopia/gitopia/issue.js +0 -323
- package/dist/esm/gitopia/gitopia/gitopia/params.js +0 -293
- package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +0 -565
- package/dist/esm/gitopia/gitopia/gitopia/query.js +0 -7351
- package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +0 -452
- package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -453
- package/dist/esm/gitopia/gitopia/gitopia/reaction.js +0 -123
- package/dist/esm/gitopia/gitopia/gitopia/release.js +0 -225
- package/dist/esm/gitopia/gitopia/gitopia/repository.js +0 -1200
- package/dist/esm/gitopia/gitopia/gitopia/tag.js +0 -125
- package/dist/esm/gitopia/gitopia/gitopia/task.js +0 -197
- package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +0 -464
- package/dist/esm/gitopia/gitopia/gitopia/tx.js +0 -14679
- package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +0 -1671
- package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -560
- package/dist/esm/gitopia/gitopia/gitopia/user.js +0 -340
- package/dist/esm/gitopia/gitopia/gitopia/whois.js +0 -146
- package/dist/esm/gitopia/gitopia/offchain/offchain.js +0 -144
- package/dist/esm/gitopia/gitopia/rewards/genesis.js +0 -82
- package/dist/esm/gitopia/gitopia/rewards/params.js +0 -81
- package/dist/esm/gitopia/gitopia/rewards/pool.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/query.js +0 -654
- package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +0 -40
- package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +0 -53
- package/dist/esm/gitopia/gitopia/rewards/rewards.js +0 -191
- package/dist/esm/gitopia/gitopia/rewards/task.js +0 -176
- package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +0 -19
- package/dist/esm/gitopia/gitopia/rewards/tx.js +0 -525
- package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +0 -69
- package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -26
- package/dist/esm/gitopia/rpc.query.js +0 -29
- package/dist/esm/gitopia/rpc.tx.js +0 -13
- package/dist/esm/gogoproto/bundle.js +0 -5
- package/dist/esm/gogoproto/gogo.js +0 -1
- package/dist/esm/google/api/annotations.js +0 -1
- package/dist/esm/google/api/http.js +0 -329
- package/dist/esm/google/bundle.js +0 -14
- package/dist/esm/google/protobuf/any.js +0 -74
- package/dist/esm/google/protobuf/descriptor.js +0 -4848
- package/dist/esm/google/protobuf/duration.js +0 -71
- package/dist/esm/google/protobuf/timestamp.js +0 -68
- package/dist/esm/helpers.js +0 -129
- package/dist/esm/ibc/applications/transfer/v1/query.js +0 -847
- package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +0 -70
- package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +0 -71
- package/dist/esm/ibc/applications/transfer/v1/transfer.js +0 -164
- package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +0 -9
- package/dist/esm/ibc/applications/transfer/v1/tx.js +0 -226
- package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +0 -33
- package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -14
- package/dist/esm/ibc/bundle.js +0 -44
- package/dist/esm/ibc/client.js +0 -29
- package/dist/esm/ibc/core/client/v1/client.js +0 -611
- package/dist/esm/ibc/rpc.query.js +0 -30
- package/dist/esm/ibc/rpc.tx.js +0 -14
- package/dist/esm/index.js +0 -19
- package/dist/esm/utf8.js +0 -137
- package/dist/esm/varint.js +0 -408
- package/dist/gitopia/bundle.d.ts +0 -6123
- package/dist/gitopia/bundle.js +0 -131
- package/dist/gitopia/client.d.ts +0 -492
- package/dist/gitopia/client.js +0 -70
- package/dist/gitopia/custom-lcd-client.d.ts +0 -31
- package/dist/gitopia/custom-lcd-client.js +0 -87
- package/dist/gitopia/gitopia/gitopia/attachment.d.ts +0 -39
- package/dist/gitopia/gitopia/gitopia/attachment.js +0 -104
- package/dist/gitopia/gitopia/gitopia/bounty.d.ts +0 -79
- package/dist/gitopia/gitopia/gitopia/bounty.js +0 -262
- package/dist/gitopia/gitopia/gitopia/branch.d.ts +0 -48
- package/dist/gitopia/gitopia/gitopia/branch.js +0 -140
- package/dist/gitopia/gitopia/gitopia/comment.d.ts +0 -125
- package/dist/gitopia/gitopia/gitopia/comment.js +0 -495
- package/dist/gitopia/gitopia/gitopia/dao.d.ts +0 -160
- package/dist/gitopia/gitopia/gitopia/dao.js +0 -454
- package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +0 -34
- package/dist/gitopia/gitopia/gitopia/exercised_amount.js +0 -81
- package/dist/gitopia/gitopia/gitopia/genesis.d.ts +0 -143
- package/dist/gitopia/gitopia/gitopia/genesis.js +0 -463
- package/dist/gitopia/gitopia/gitopia/issue.d.ts +0 -88
- package/dist/gitopia/gitopia/gitopia/issue.js +0 -328
- package/dist/gitopia/gitopia/gitopia/params.d.ts +0 -115
- package/dist/gitopia/gitopia/gitopia/params.js +0 -296
- package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +0 -177
- package/dist/gitopia/gitopia/gitopia/pullRequest.js +0 -570
- package/dist/gitopia/gitopia/gitopia/query.d.ts +0 -3130
- package/dist/gitopia/gitopia/gitopia/query.js +0 -7355
- package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +0 -54
- package/dist/gitopia/gitopia/gitopia/query.lcd.js +0 -456
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +0 -188
- package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +0 -458
- package/dist/gitopia/gitopia/gitopia/reaction.d.ts +0 -42
- package/dist/gitopia/gitopia/gitopia/reaction.js +0 -128
- package/dist/gitopia/gitopia/gitopia/release.d.ts +0 -70
- package/dist/gitopia/gitopia/gitopia/release.js +0 -228
- package/dist/gitopia/gitopia/gitopia/repository.d.ts +0 -424
- package/dist/gitopia/gitopia/gitopia/repository.js +0 -1207
- package/dist/gitopia/gitopia/gitopia/tag.d.ts +0 -45
- package/dist/gitopia/gitopia/gitopia/tag.js +0 -128
- package/dist/gitopia/gitopia/gitopia/task.d.ts +0 -64
- package/dist/gitopia/gitopia/gitopia/task.js +0 -204
- package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +0 -463
- package/dist/gitopia/gitopia/gitopia/tx.amino.js +0 -467
- package/dist/gitopia/gitopia/gitopia/tx.d.ts +0 -6246
- package/dist/gitopia/gitopia/gitopia/tx.js +0 -14687
- package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +0 -1116
- package/dist/gitopia/gitopia/gitopia/tx.registry.js +0 -1675
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +0 -200
- package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +0 -564
- package/dist/gitopia/gitopia/gitopia/user.d.ts +0 -104
- package/dist/gitopia/gitopia/gitopia/user.js +0 -343
- package/dist/gitopia/gitopia/gitopia/whois.d.ts +0 -51
- package/dist/gitopia/gitopia/gitopia/whois.js +0 -151
- package/dist/gitopia/gitopia/offchain/offchain.d.ts +0 -74
- package/dist/gitopia/gitopia/offchain/offchain.js +0 -147
- package/dist/gitopia/gitopia/rewards/genesis.d.ts +0 -40
- package/dist/gitopia/gitopia/rewards/genesis.js +0 -85
- package/dist/gitopia/gitopia/rewards/params.d.ts +0 -37
- package/dist/gitopia/gitopia/rewards/params.js +0 -84
- package/dist/gitopia/gitopia/rewards/pool.d.ts +0 -59
- package/dist/gitopia/gitopia/rewards/pool.js +0 -196
- package/dist/gitopia/gitopia/rewards/query.d.ts +0 -294
- package/dist/gitopia/gitopia/rewards/query.js +0 -657
- package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +0 -12
- package/dist/gitopia/gitopia/rewards/query.lcd.js +0 -44
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +0 -28
- package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +0 -58
- package/dist/gitopia/gitopia/rewards/rewards.d.ts +0 -79
- package/dist/gitopia/gitopia/rewards/rewards.js +0 -194
- package/dist/gitopia/gitopia/rewards/task.d.ts +0 -54
- package/dist/gitopia/gitopia/rewards/task.js +0 -181
- package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +0 -18
- package/dist/gitopia/gitopia/rewards/tx.amino.js +0 -22
- package/dist/gitopia/gitopia/rewards/tx.d.ts +0 -242
- package/dist/gitopia/gitopia/rewards/tx.js +0 -528
- package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +0 -48
- package/dist/gitopia/gitopia/rewards/tx.registry.js +0 -73
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +0 -19
- package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +0 -30
- package/dist/gitopia/rpc.query.d.ts +0 -117
- package/dist/gitopia/rpc.query.js +0 -66
- package/dist/gitopia/rpc.tx.d.ts +0 -16
- package/dist/gitopia/rpc.tx.js +0 -50
- package/dist/gogoproto/bundle.d.ts +0 -1
- package/dist/gogoproto/bundle.js +0 -41
- package/dist/gogoproto/gogo.d.ts +0 -1
- package/dist/gogoproto/gogo.js +0 -2
- package/dist/google/api/annotations.d.ts +0 -1
- package/dist/google/api/annotations.js +0 -2
- package/dist/google/api/http.d.ts +0 -1049
- package/dist/google/api/http.js +0 -332
- package/dist/google/bundle.d.ts +0 -525
- package/dist/google/bundle.js +0 -50
- package/dist/google/protobuf/any.d.ts +0 -358
- package/dist/google/protobuf/any.js +0 -77
- package/dist/google/protobuf/descriptor.d.ts +0 -3178
- package/dist/google/protobuf/descriptor.js +0 -4886
- package/dist/google/protobuf/duration.d.ts +0 -223
- package/dist/google/protobuf/duration.js +0 -74
- package/dist/google/protobuf/timestamp.d.ts +0 -314
- package/dist/google/protobuf/timestamp.js +0 -71
- package/dist/helpers.d.ts +0 -82
- package/dist/helpers.js +0 -144
- package/dist/ibc/applications/transfer/v1/query.d.ts +0 -479
- package/dist/ibc/applications/transfer/v1/query.js +0 -850
- package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +0 -14
- package/dist/ibc/applications/transfer/v1/query.lcd.js +0 -74
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +0 -36
- package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +0 -76
- package/dist/ibc/applications/transfer/v1/transfer.d.ts +0 -123
- package/dist/ibc/applications/transfer/v1/transfer.js +0 -167
- package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +0 -8
- package/dist/ibc/applications/transfer/v1/tx.amino.js +0 -12
- package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -132
- package/dist/ibc/applications/transfer/v1/tx.js +0 -229
- package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +0 -24
- package/dist/ibc/applications/transfer/v1/tx.registry.js +0 -37
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +0 -12
- package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +0 -18
- package/dist/ibc/bundle.d.ts +0 -450
- package/dist/ibc/bundle.js +0 -80
- package/dist/ibc/client.d.ts +0 -22
- package/dist/ibc/client.js +0 -67
- package/dist/ibc/core/client/v1/client.d.ts +0 -408
- package/dist/ibc/core/client/v1/client.js +0 -614
- package/dist/ibc/rpc.query.d.ts +0 -73
- package/dist/ibc/rpc.query.js +0 -67
- package/dist/ibc/rpc.tx.d.ts +0 -17
- package/dist/ibc/rpc.tx.js +0 -51
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -35
- package/dist/package.json +0 -46
- package/dist/utf8.d.ts +0 -27
- package/dist/utf8.js +0 -141
- package/dist/varint.d.ts +0 -105
- package/dist/varint.js +0 -426
package/dist/gitopia/client.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getSigningGitopiaClient = exports.getSigningGitopiaClientOptions = exports.gitopiaProtoRegistry = exports.gitopiaAminoConverters = void 0;
|
|
37
|
-
//@ts-nocheck
|
|
38
|
-
const proto_signing_1 = require("@cosmjs/proto-signing");
|
|
39
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
40
|
-
const gitopiaGitopiaGitopiaTxRegistry = __importStar(require("./gitopia/gitopia/tx.registry"));
|
|
41
|
-
const gitopiaGitopiaRewardsTxRegistry = __importStar(require("./gitopia/rewards/tx.registry"));
|
|
42
|
-
const gitopiaGitopiaGitopiaTxAmino = __importStar(require("./gitopia/gitopia/tx.amino"));
|
|
43
|
-
const gitopiaGitopiaRewardsTxAmino = __importStar(require("./gitopia/rewards/tx.amino"));
|
|
44
|
-
exports.gitopiaAminoConverters = {
|
|
45
|
-
...gitopiaGitopiaGitopiaTxAmino.AminoConverter,
|
|
46
|
-
...gitopiaGitopiaRewardsTxAmino.AminoConverter
|
|
47
|
-
};
|
|
48
|
-
exports.gitopiaProtoRegistry = [...gitopiaGitopiaGitopiaTxRegistry.registry, ...gitopiaGitopiaRewardsTxRegistry.registry];
|
|
49
|
-
const getSigningGitopiaClientOptions = ({ defaultTypes = stargate_1.defaultRegistryTypes } = {}) => {
|
|
50
|
-
const registry = new proto_signing_1.Registry([...defaultTypes, ...exports.gitopiaProtoRegistry]);
|
|
51
|
-
const aminoTypes = new stargate_1.AminoTypes({
|
|
52
|
-
...exports.gitopiaAminoConverters
|
|
53
|
-
});
|
|
54
|
-
return {
|
|
55
|
-
registry,
|
|
56
|
-
aminoTypes
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
exports.getSigningGitopiaClientOptions = getSigningGitopiaClientOptions;
|
|
60
|
-
const getSigningGitopiaClient = async ({ rpcEndpoint, signer, defaultTypes = stargate_1.defaultRegistryTypes }) => {
|
|
61
|
-
const { registry, aminoTypes } = (0, exports.getSigningGitopiaClientOptions)({
|
|
62
|
-
defaultTypes
|
|
63
|
-
});
|
|
64
|
-
const client = await stargate_1.SigningStargateClient.connectWithSigner(rpcEndpoint, signer, {
|
|
65
|
-
registry: registry,
|
|
66
|
-
aminoTypes
|
|
67
|
-
});
|
|
68
|
-
return client;
|
|
69
|
-
};
|
|
70
|
-
exports.getSigningGitopiaClient = getSigningGitopiaClient;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const createCustomLCDClient: ({ restEndpoint }: {
|
|
2
|
-
restEndpoint: string;
|
|
3
|
-
}) => Promise<{
|
|
4
|
-
cosmos: {
|
|
5
|
-
bank: {
|
|
6
|
-
v1beta1: import("../cosmos/bank/v1beta1/query.lcd").LCDQueryClient;
|
|
7
|
-
};
|
|
8
|
-
feegrant: {
|
|
9
|
-
v1beta1: import("../cosmos/feegrant/v1beta1/query.lcd").LCDQueryClient;
|
|
10
|
-
};
|
|
11
|
-
gov: {
|
|
12
|
-
v1beta1: import("../cosmos/gov/v1beta1/query.lcd").LCDQueryClient;
|
|
13
|
-
};
|
|
14
|
-
group: {
|
|
15
|
-
v1: import("../cosmos/group/v1/query.lcd").LCDQueryClient;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
gitopia: {
|
|
19
|
-
gitopia: {
|
|
20
|
-
gitopia: import("./gitopia/gitopia/query.lcd").LCDQueryClient;
|
|
21
|
-
rewards: import("./gitopia/rewards/query.lcd").LCDQueryClient;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
ibc: {
|
|
25
|
-
applications: {
|
|
26
|
-
transfer: {
|
|
27
|
-
v1: import("../ibc/applications/transfer/v1/query.lcd").LCDQueryClient;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.createCustomLCDClient = void 0;
|
|
37
|
-
//@ts-nocheck
|
|
38
|
-
const lcd_1 = require("@cosmology/lcd");
|
|
39
|
-
const createCustomLCDClient = async ({ restEndpoint }) => {
|
|
40
|
-
const requestClient = new lcd_1.LCDClient({
|
|
41
|
-
restEndpoint
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
cosmos: {
|
|
45
|
-
bank: {
|
|
46
|
-
v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.lcd")))).LCDQueryClient({
|
|
47
|
-
requestClient
|
|
48
|
-
})
|
|
49
|
-
},
|
|
50
|
-
feegrant: {
|
|
51
|
-
v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.lcd")))).LCDQueryClient({
|
|
52
|
-
requestClient
|
|
53
|
-
})
|
|
54
|
-
},
|
|
55
|
-
gov: {
|
|
56
|
-
v1beta1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.lcd")))).LCDQueryClient({
|
|
57
|
-
requestClient
|
|
58
|
-
})
|
|
59
|
-
},
|
|
60
|
-
group: {
|
|
61
|
-
v1: new (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.lcd")))).LCDQueryClient({
|
|
62
|
-
requestClient
|
|
63
|
-
})
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
gitopia: {
|
|
67
|
-
gitopia: {
|
|
68
|
-
gitopia: new (await Promise.resolve().then(() => __importStar(require("./gitopia/gitopia/query.lcd")))).LCDQueryClient({
|
|
69
|
-
requestClient
|
|
70
|
-
}),
|
|
71
|
-
rewards: new (await Promise.resolve().then(() => __importStar(require("./gitopia/rewards/query.lcd")))).LCDQueryClient({
|
|
72
|
-
requestClient
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
ibc: {
|
|
77
|
-
applications: {
|
|
78
|
-
transfer: {
|
|
79
|
-
v1: new (await Promise.resolve().then(() => __importStar(require("../ibc/applications/transfer/v1/query.lcd")))).LCDQueryClient({
|
|
80
|
-
requestClient
|
|
81
|
-
})
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
exports.createCustomLCDClient = createCustomLCDClient;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
-
export interface Attachment {
|
|
3
|
-
name: string;
|
|
4
|
-
size: bigint;
|
|
5
|
-
sha: string;
|
|
6
|
-
uploader: string;
|
|
7
|
-
}
|
|
8
|
-
export interface AttachmentProtoMsg {
|
|
9
|
-
typeUrl: "/gitopia.gitopia.gitopia.Attachment";
|
|
10
|
-
value: Uint8Array;
|
|
11
|
-
}
|
|
12
|
-
export interface AttachmentAmino {
|
|
13
|
-
name?: string;
|
|
14
|
-
size?: string;
|
|
15
|
-
sha?: string;
|
|
16
|
-
uploader?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface AttachmentAminoMsg {
|
|
19
|
-
type: "/gitopia.gitopia.gitopia.Attachment";
|
|
20
|
-
value: AttachmentAmino;
|
|
21
|
-
}
|
|
22
|
-
export interface AttachmentSDKType {
|
|
23
|
-
name: string;
|
|
24
|
-
size: bigint;
|
|
25
|
-
sha: string;
|
|
26
|
-
uploader: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const Attachment: {
|
|
29
|
-
typeUrl: string;
|
|
30
|
-
encode(message: Attachment, writer?: BinaryWriter): BinaryWriter;
|
|
31
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Attachment;
|
|
32
|
-
fromPartial(object: Partial<Attachment>): Attachment;
|
|
33
|
-
fromAmino(object: AttachmentAmino): Attachment;
|
|
34
|
-
toAmino(message: Attachment): AttachmentAmino;
|
|
35
|
-
fromAminoMsg(object: AttachmentAminoMsg): Attachment;
|
|
36
|
-
fromProtoMsg(message: AttachmentProtoMsg): Attachment;
|
|
37
|
-
toProto(message: Attachment): Uint8Array;
|
|
38
|
-
toProtoMsg(message: Attachment): AttachmentProtoMsg;
|
|
39
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Attachment = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const binary_1 = require("../../../binary");
|
|
6
|
-
function createBaseAttachment() {
|
|
7
|
-
return {
|
|
8
|
-
name: "",
|
|
9
|
-
size: BigInt(0),
|
|
10
|
-
sha: "",
|
|
11
|
-
uploader: ""
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
exports.Attachment = {
|
|
15
|
-
typeUrl: "/gitopia.gitopia.gitopia.Attachment",
|
|
16
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
17
|
-
if (message.name !== "") {
|
|
18
|
-
writer.uint32(10).string(message.name);
|
|
19
|
-
}
|
|
20
|
-
if (message.size !== BigInt(0)) {
|
|
21
|
-
writer.uint32(16).uint64(message.size);
|
|
22
|
-
}
|
|
23
|
-
if (message.sha !== "") {
|
|
24
|
-
writer.uint32(26).string(message.sha);
|
|
25
|
-
}
|
|
26
|
-
if (message.uploader !== "") {
|
|
27
|
-
writer.uint32(34).string(message.uploader);
|
|
28
|
-
}
|
|
29
|
-
return writer;
|
|
30
|
-
},
|
|
31
|
-
decode(input, length) {
|
|
32
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
33
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
-
const message = createBaseAttachment();
|
|
35
|
-
while (reader.pos < end) {
|
|
36
|
-
const tag = reader.uint32();
|
|
37
|
-
switch (tag >>> 3) {
|
|
38
|
-
case 1:
|
|
39
|
-
message.name = reader.string();
|
|
40
|
-
break;
|
|
41
|
-
case 2:
|
|
42
|
-
message.size = reader.uint64();
|
|
43
|
-
break;
|
|
44
|
-
case 3:
|
|
45
|
-
message.sha = reader.string();
|
|
46
|
-
break;
|
|
47
|
-
case 4:
|
|
48
|
-
message.uploader = reader.string();
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
reader.skipType(tag & 7);
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
fromPartial(object) {
|
|
58
|
-
const message = createBaseAttachment();
|
|
59
|
-
message.name = object.name ?? "";
|
|
60
|
-
message.size = object.size !== undefined && object.size !== null ? BigInt(object.size.toString()) : BigInt(0);
|
|
61
|
-
message.sha = object.sha ?? "";
|
|
62
|
-
message.uploader = object.uploader ?? "";
|
|
63
|
-
return message;
|
|
64
|
-
},
|
|
65
|
-
fromAmino(object) {
|
|
66
|
-
const message = createBaseAttachment();
|
|
67
|
-
if (object.name !== undefined && object.name !== null) {
|
|
68
|
-
message.name = object.name;
|
|
69
|
-
}
|
|
70
|
-
if (object.size !== undefined && object.size !== null) {
|
|
71
|
-
message.size = BigInt(object.size);
|
|
72
|
-
}
|
|
73
|
-
if (object.sha !== undefined && object.sha !== null) {
|
|
74
|
-
message.sha = object.sha;
|
|
75
|
-
}
|
|
76
|
-
if (object.uploader !== undefined && object.uploader !== null) {
|
|
77
|
-
message.uploader = object.uploader;
|
|
78
|
-
}
|
|
79
|
-
return message;
|
|
80
|
-
},
|
|
81
|
-
toAmino(message) {
|
|
82
|
-
const obj = {};
|
|
83
|
-
obj.name = message.name === "" ? undefined : message.name;
|
|
84
|
-
obj.size = message.size !== BigInt(0) ? message.size?.toString() : undefined;
|
|
85
|
-
obj.sha = message.sha === "" ? undefined : message.sha;
|
|
86
|
-
obj.uploader = message.uploader === "" ? undefined : message.uploader;
|
|
87
|
-
return obj;
|
|
88
|
-
},
|
|
89
|
-
fromAminoMsg(object) {
|
|
90
|
-
return exports.Attachment.fromAmino(object.value);
|
|
91
|
-
},
|
|
92
|
-
fromProtoMsg(message) {
|
|
93
|
-
return exports.Attachment.decode(message.value);
|
|
94
|
-
},
|
|
95
|
-
toProto(message) {
|
|
96
|
-
return exports.Attachment.encode(message).finish();
|
|
97
|
-
},
|
|
98
|
-
toProtoMsg(message) {
|
|
99
|
-
return {
|
|
100
|
-
typeUrl: "/gitopia.gitopia.gitopia.Attachment",
|
|
101
|
-
value: exports.Attachment.encode(message).finish()
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
|
|
2
|
-
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
-
export declare enum BountyState {
|
|
4
|
-
BOUNTY_STATE_SRCDEBITTED = 0,
|
|
5
|
-
BOUNTY_STATE_DESTCREDITED = 1,
|
|
6
|
-
BOUNTY_STATE_REVERTEDBACK = 2,
|
|
7
|
-
UNRECOGNIZED = -1
|
|
8
|
-
}
|
|
9
|
-
export declare const BountyStateSDKType: typeof BountyState;
|
|
10
|
-
export declare const BountyStateAmino: typeof BountyState;
|
|
11
|
-
export declare function bountyStateFromJSON(object: any): BountyState;
|
|
12
|
-
export declare function bountyStateToJSON(object: BountyState): string;
|
|
13
|
-
export declare enum BountyParent {
|
|
14
|
-
BOUNTY_PARENT_ISSUE = 0,
|
|
15
|
-
UNRECOGNIZED = -1
|
|
16
|
-
}
|
|
17
|
-
export declare const BountyParentSDKType: typeof BountyParent;
|
|
18
|
-
export declare const BountyParentAmino: typeof BountyParent;
|
|
19
|
-
export declare function bountyParentFromJSON(object: any): BountyParent;
|
|
20
|
-
export declare function bountyParentToJSON(object: BountyParent): string;
|
|
21
|
-
export interface Bounty {
|
|
22
|
-
id: bigint;
|
|
23
|
-
amount: Coin[];
|
|
24
|
-
state: BountyState;
|
|
25
|
-
repositoryId: bigint;
|
|
26
|
-
parentIid: bigint;
|
|
27
|
-
parent: BountyParent;
|
|
28
|
-
expireAt: bigint;
|
|
29
|
-
rewardedTo: string;
|
|
30
|
-
createdAt: bigint;
|
|
31
|
-
updatedAt: bigint;
|
|
32
|
-
creator: string;
|
|
33
|
-
}
|
|
34
|
-
export interface BountyProtoMsg {
|
|
35
|
-
typeUrl: "/gitopia.gitopia.gitopia.Bounty";
|
|
36
|
-
value: Uint8Array;
|
|
37
|
-
}
|
|
38
|
-
export interface BountyAmino {
|
|
39
|
-
id?: string;
|
|
40
|
-
amount?: CoinAmino[];
|
|
41
|
-
state?: BountyState;
|
|
42
|
-
repositoryId?: string;
|
|
43
|
-
parentIid?: string;
|
|
44
|
-
parent?: BountyParent;
|
|
45
|
-
expireAt?: string;
|
|
46
|
-
rewardedTo?: string;
|
|
47
|
-
createdAt?: string;
|
|
48
|
-
updatedAt?: string;
|
|
49
|
-
creator?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface BountyAminoMsg {
|
|
52
|
-
type: "/gitopia.gitopia.gitopia.Bounty";
|
|
53
|
-
value: BountyAmino;
|
|
54
|
-
}
|
|
55
|
-
export interface BountySDKType {
|
|
56
|
-
id: bigint;
|
|
57
|
-
amount: CoinSDKType[];
|
|
58
|
-
state: BountyState;
|
|
59
|
-
repositoryId: bigint;
|
|
60
|
-
parentIid: bigint;
|
|
61
|
-
parent: BountyParent;
|
|
62
|
-
expireAt: bigint;
|
|
63
|
-
rewardedTo: string;
|
|
64
|
-
createdAt: bigint;
|
|
65
|
-
updatedAt: bigint;
|
|
66
|
-
creator: string;
|
|
67
|
-
}
|
|
68
|
-
export declare const Bounty: {
|
|
69
|
-
typeUrl: string;
|
|
70
|
-
encode(message: Bounty, writer?: BinaryWriter): BinaryWriter;
|
|
71
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Bounty;
|
|
72
|
-
fromPartial(object: Partial<Bounty>): Bounty;
|
|
73
|
-
fromAmino(object: BountyAmino): Bounty;
|
|
74
|
-
toAmino(message: Bounty): BountyAmino;
|
|
75
|
-
fromAminoMsg(object: BountyAminoMsg): Bounty;
|
|
76
|
-
fromProtoMsg(message: BountyProtoMsg): Bounty;
|
|
77
|
-
toProto(message: Bounty): Uint8Array;
|
|
78
|
-
toProtoMsg(message: Bounty): BountyProtoMsg;
|
|
79
|
-
};
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Bounty = exports.BountyParentAmino = exports.BountyParentSDKType = exports.BountyParent = exports.BountyStateAmino = exports.BountyStateSDKType = exports.BountyState = void 0;
|
|
4
|
-
exports.bountyStateFromJSON = bountyStateFromJSON;
|
|
5
|
-
exports.bountyStateToJSON = bountyStateToJSON;
|
|
6
|
-
exports.bountyParentFromJSON = bountyParentFromJSON;
|
|
7
|
-
exports.bountyParentToJSON = bountyParentToJSON;
|
|
8
|
-
//@ts-nocheck
|
|
9
|
-
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
10
|
-
const binary_1 = require("../../../binary");
|
|
11
|
-
var BountyState;
|
|
12
|
-
(function (BountyState) {
|
|
13
|
-
BountyState[BountyState["BOUNTY_STATE_SRCDEBITTED"] = 0] = "BOUNTY_STATE_SRCDEBITTED";
|
|
14
|
-
BountyState[BountyState["BOUNTY_STATE_DESTCREDITED"] = 1] = "BOUNTY_STATE_DESTCREDITED";
|
|
15
|
-
BountyState[BountyState["BOUNTY_STATE_REVERTEDBACK"] = 2] = "BOUNTY_STATE_REVERTEDBACK";
|
|
16
|
-
BountyState[BountyState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
17
|
-
})(BountyState || (exports.BountyState = BountyState = {}));
|
|
18
|
-
exports.BountyStateSDKType = BountyState;
|
|
19
|
-
exports.BountyStateAmino = BountyState;
|
|
20
|
-
function bountyStateFromJSON(object) {
|
|
21
|
-
switch (object) {
|
|
22
|
-
case 0:
|
|
23
|
-
case "BOUNTY_STATE_SRCDEBITTED":
|
|
24
|
-
return BountyState.BOUNTY_STATE_SRCDEBITTED;
|
|
25
|
-
case 1:
|
|
26
|
-
case "BOUNTY_STATE_DESTCREDITED":
|
|
27
|
-
return BountyState.BOUNTY_STATE_DESTCREDITED;
|
|
28
|
-
case 2:
|
|
29
|
-
case "BOUNTY_STATE_REVERTEDBACK":
|
|
30
|
-
return BountyState.BOUNTY_STATE_REVERTEDBACK;
|
|
31
|
-
case -1:
|
|
32
|
-
case "UNRECOGNIZED":
|
|
33
|
-
default:
|
|
34
|
-
return BountyState.UNRECOGNIZED;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function bountyStateToJSON(object) {
|
|
38
|
-
switch (object) {
|
|
39
|
-
case BountyState.BOUNTY_STATE_SRCDEBITTED:
|
|
40
|
-
return "BOUNTY_STATE_SRCDEBITTED";
|
|
41
|
-
case BountyState.BOUNTY_STATE_DESTCREDITED:
|
|
42
|
-
return "BOUNTY_STATE_DESTCREDITED";
|
|
43
|
-
case BountyState.BOUNTY_STATE_REVERTEDBACK:
|
|
44
|
-
return "BOUNTY_STATE_REVERTEDBACK";
|
|
45
|
-
case BountyState.UNRECOGNIZED:
|
|
46
|
-
default:
|
|
47
|
-
return "UNRECOGNIZED";
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
var BountyParent;
|
|
51
|
-
(function (BountyParent) {
|
|
52
|
-
BountyParent[BountyParent["BOUNTY_PARENT_ISSUE"] = 0] = "BOUNTY_PARENT_ISSUE";
|
|
53
|
-
BountyParent[BountyParent["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
54
|
-
})(BountyParent || (exports.BountyParent = BountyParent = {}));
|
|
55
|
-
exports.BountyParentSDKType = BountyParent;
|
|
56
|
-
exports.BountyParentAmino = BountyParent;
|
|
57
|
-
function bountyParentFromJSON(object) {
|
|
58
|
-
switch (object) {
|
|
59
|
-
case 0:
|
|
60
|
-
case "BOUNTY_PARENT_ISSUE":
|
|
61
|
-
return BountyParent.BOUNTY_PARENT_ISSUE;
|
|
62
|
-
case -1:
|
|
63
|
-
case "UNRECOGNIZED":
|
|
64
|
-
default:
|
|
65
|
-
return BountyParent.UNRECOGNIZED;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function bountyParentToJSON(object) {
|
|
69
|
-
switch (object) {
|
|
70
|
-
case BountyParent.BOUNTY_PARENT_ISSUE:
|
|
71
|
-
return "BOUNTY_PARENT_ISSUE";
|
|
72
|
-
case BountyParent.UNRECOGNIZED:
|
|
73
|
-
default:
|
|
74
|
-
return "UNRECOGNIZED";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function createBaseBounty() {
|
|
78
|
-
return {
|
|
79
|
-
id: BigInt(0),
|
|
80
|
-
amount: [],
|
|
81
|
-
state: 0,
|
|
82
|
-
repositoryId: BigInt(0),
|
|
83
|
-
parentIid: BigInt(0),
|
|
84
|
-
parent: 0,
|
|
85
|
-
expireAt: BigInt(0),
|
|
86
|
-
rewardedTo: "",
|
|
87
|
-
createdAt: BigInt(0),
|
|
88
|
-
updatedAt: BigInt(0),
|
|
89
|
-
creator: ""
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
exports.Bounty = {
|
|
93
|
-
typeUrl: "/gitopia.gitopia.gitopia.Bounty",
|
|
94
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
95
|
-
if (message.id !== BigInt(0)) {
|
|
96
|
-
writer.uint32(8).uint64(message.id);
|
|
97
|
-
}
|
|
98
|
-
for (const v of message.amount) {
|
|
99
|
-
coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
100
|
-
}
|
|
101
|
-
if (message.state !== 0) {
|
|
102
|
-
writer.uint32(24).int32(message.state);
|
|
103
|
-
}
|
|
104
|
-
if (message.repositoryId !== BigInt(0)) {
|
|
105
|
-
writer.uint32(32).uint64(message.repositoryId);
|
|
106
|
-
}
|
|
107
|
-
if (message.parentIid !== BigInt(0)) {
|
|
108
|
-
writer.uint32(40).uint64(message.parentIid);
|
|
109
|
-
}
|
|
110
|
-
if (message.parent !== 0) {
|
|
111
|
-
writer.uint32(48).int32(message.parent);
|
|
112
|
-
}
|
|
113
|
-
if (message.expireAt !== BigInt(0)) {
|
|
114
|
-
writer.uint32(56).int64(message.expireAt);
|
|
115
|
-
}
|
|
116
|
-
if (message.rewardedTo !== "") {
|
|
117
|
-
writer.uint32(66).string(message.rewardedTo);
|
|
118
|
-
}
|
|
119
|
-
if (message.createdAt !== BigInt(0)) {
|
|
120
|
-
writer.uint32(72).int64(message.createdAt);
|
|
121
|
-
}
|
|
122
|
-
if (message.updatedAt !== BigInt(0)) {
|
|
123
|
-
writer.uint32(80).int64(message.updatedAt);
|
|
124
|
-
}
|
|
125
|
-
if (message.creator !== "") {
|
|
126
|
-
writer.uint32(90).string(message.creator);
|
|
127
|
-
}
|
|
128
|
-
return writer;
|
|
129
|
-
},
|
|
130
|
-
decode(input, length) {
|
|
131
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
132
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
-
const message = createBaseBounty();
|
|
134
|
-
while (reader.pos < end) {
|
|
135
|
-
const tag = reader.uint32();
|
|
136
|
-
switch (tag >>> 3) {
|
|
137
|
-
case 1:
|
|
138
|
-
message.id = reader.uint64();
|
|
139
|
-
break;
|
|
140
|
-
case 2:
|
|
141
|
-
message.amount.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
142
|
-
break;
|
|
143
|
-
case 3:
|
|
144
|
-
message.state = reader.int32();
|
|
145
|
-
break;
|
|
146
|
-
case 4:
|
|
147
|
-
message.repositoryId = reader.uint64();
|
|
148
|
-
break;
|
|
149
|
-
case 5:
|
|
150
|
-
message.parentIid = reader.uint64();
|
|
151
|
-
break;
|
|
152
|
-
case 6:
|
|
153
|
-
message.parent = reader.int32();
|
|
154
|
-
break;
|
|
155
|
-
case 7:
|
|
156
|
-
message.expireAt = reader.int64();
|
|
157
|
-
break;
|
|
158
|
-
case 8:
|
|
159
|
-
message.rewardedTo = reader.string();
|
|
160
|
-
break;
|
|
161
|
-
case 9:
|
|
162
|
-
message.createdAt = reader.int64();
|
|
163
|
-
break;
|
|
164
|
-
case 10:
|
|
165
|
-
message.updatedAt = reader.int64();
|
|
166
|
-
break;
|
|
167
|
-
case 11:
|
|
168
|
-
message.creator = reader.string();
|
|
169
|
-
break;
|
|
170
|
-
default:
|
|
171
|
-
reader.skipType(tag & 7);
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return message;
|
|
176
|
-
},
|
|
177
|
-
fromPartial(object) {
|
|
178
|
-
const message = createBaseBounty();
|
|
179
|
-
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
180
|
-
message.amount = object.amount?.map(e => coin_1.Coin.fromPartial(e)) || [];
|
|
181
|
-
message.state = object.state ?? 0;
|
|
182
|
-
message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
|
|
183
|
-
message.parentIid = object.parentIid !== undefined && object.parentIid !== null ? BigInt(object.parentIid.toString()) : BigInt(0);
|
|
184
|
-
message.parent = object.parent ?? 0;
|
|
185
|
-
message.expireAt = object.expireAt !== undefined && object.expireAt !== null ? BigInt(object.expireAt.toString()) : BigInt(0);
|
|
186
|
-
message.rewardedTo = object.rewardedTo ?? "";
|
|
187
|
-
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
188
|
-
message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
|
|
189
|
-
message.creator = object.creator ?? "";
|
|
190
|
-
return message;
|
|
191
|
-
},
|
|
192
|
-
fromAmino(object) {
|
|
193
|
-
const message = createBaseBounty();
|
|
194
|
-
if (object.id !== undefined && object.id !== null) {
|
|
195
|
-
message.id = BigInt(object.id);
|
|
196
|
-
}
|
|
197
|
-
message.amount = object.amount?.map(e => coin_1.Coin.fromAmino(e)) || [];
|
|
198
|
-
if (object.state !== undefined && object.state !== null) {
|
|
199
|
-
message.state = object.state;
|
|
200
|
-
}
|
|
201
|
-
if (object.repositoryId !== undefined && object.repositoryId !== null) {
|
|
202
|
-
message.repositoryId = BigInt(object.repositoryId);
|
|
203
|
-
}
|
|
204
|
-
if (object.parentIid !== undefined && object.parentIid !== null) {
|
|
205
|
-
message.parentIid = BigInt(object.parentIid);
|
|
206
|
-
}
|
|
207
|
-
if (object.parent !== undefined && object.parent !== null) {
|
|
208
|
-
message.parent = object.parent;
|
|
209
|
-
}
|
|
210
|
-
if (object.expireAt !== undefined && object.expireAt !== null) {
|
|
211
|
-
message.expireAt = BigInt(object.expireAt);
|
|
212
|
-
}
|
|
213
|
-
if (object.rewardedTo !== undefined && object.rewardedTo !== null) {
|
|
214
|
-
message.rewardedTo = object.rewardedTo;
|
|
215
|
-
}
|
|
216
|
-
if (object.createdAt !== undefined && object.createdAt !== null) {
|
|
217
|
-
message.createdAt = BigInt(object.createdAt);
|
|
218
|
-
}
|
|
219
|
-
if (object.updatedAt !== undefined && object.updatedAt !== null) {
|
|
220
|
-
message.updatedAt = BigInt(object.updatedAt);
|
|
221
|
-
}
|
|
222
|
-
if (object.creator !== undefined && object.creator !== null) {
|
|
223
|
-
message.creator = object.creator;
|
|
224
|
-
}
|
|
225
|
-
return message;
|
|
226
|
-
},
|
|
227
|
-
toAmino(message) {
|
|
228
|
-
const obj = {};
|
|
229
|
-
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
230
|
-
if (message.amount) {
|
|
231
|
-
obj.amount = message.amount.map(e => e ? coin_1.Coin.toAmino(e) : undefined);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
obj.amount = message.amount;
|
|
235
|
-
}
|
|
236
|
-
obj.state = message.state === 0 ? undefined : message.state;
|
|
237
|
-
obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
|
|
238
|
-
obj.parentIid = message.parentIid !== BigInt(0) ? message.parentIid?.toString() : undefined;
|
|
239
|
-
obj.parent = message.parent === 0 ? undefined : message.parent;
|
|
240
|
-
obj.expireAt = message.expireAt !== BigInt(0) ? message.expireAt?.toString() : undefined;
|
|
241
|
-
obj.rewardedTo = message.rewardedTo === "" ? undefined : message.rewardedTo;
|
|
242
|
-
obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
|
|
243
|
-
obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
|
|
244
|
-
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
245
|
-
return obj;
|
|
246
|
-
},
|
|
247
|
-
fromAminoMsg(object) {
|
|
248
|
-
return exports.Bounty.fromAmino(object.value);
|
|
249
|
-
},
|
|
250
|
-
fromProtoMsg(message) {
|
|
251
|
-
return exports.Bounty.decode(message.value);
|
|
252
|
-
},
|
|
253
|
-
toProto(message) {
|
|
254
|
-
return exports.Bounty.encode(message).finish();
|
|
255
|
-
},
|
|
256
|
-
toProtoMsg(message) {
|
|
257
|
-
return {
|
|
258
|
-
typeUrl: "/gitopia.gitopia.gitopia.Bounty",
|
|
259
|
-
value: exports.Bounty.encode(message).finish()
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
};
|