@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,154 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { setPaginationParams } from "../../../helpers";
|
|
3
|
-
export class LCDQueryClient {
|
|
4
|
-
req;
|
|
5
|
-
constructor({ requestClient }) {
|
|
6
|
-
this.req = requestClient;
|
|
7
|
-
this.groupInfo = this.groupInfo.bind(this);
|
|
8
|
-
this.groupPolicyInfo = this.groupPolicyInfo.bind(this);
|
|
9
|
-
this.groupMembers = this.groupMembers.bind(this);
|
|
10
|
-
this.groupsByAdmin = this.groupsByAdmin.bind(this);
|
|
11
|
-
this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this);
|
|
12
|
-
this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this);
|
|
13
|
-
this.proposal = this.proposal.bind(this);
|
|
14
|
-
this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this);
|
|
15
|
-
this.voteByProposalVoter = this.voteByProposalVoter.bind(this);
|
|
16
|
-
this.votesByProposal = this.votesByProposal.bind(this);
|
|
17
|
-
this.votesByVoter = this.votesByVoter.bind(this);
|
|
18
|
-
this.groupsByMember = this.groupsByMember.bind(this);
|
|
19
|
-
this.tallyResult = this.tallyResult.bind(this);
|
|
20
|
-
this.groups = this.groups.bind(this);
|
|
21
|
-
}
|
|
22
|
-
/* GroupInfo queries group info based on group id. */
|
|
23
|
-
async groupInfo(params) {
|
|
24
|
-
const endpoint = `cosmos/group/v1/group_info/${params.groupId}`;
|
|
25
|
-
return await this.req.get(endpoint);
|
|
26
|
-
}
|
|
27
|
-
/* GroupPolicyInfo queries group policy info based on account address of group policy. */
|
|
28
|
-
async groupPolicyInfo(params) {
|
|
29
|
-
const endpoint = `cosmos/group/v1/group_policy_info/${params.address}`;
|
|
30
|
-
return await this.req.get(endpoint);
|
|
31
|
-
}
|
|
32
|
-
/* GroupMembers queries members of a group by group id. */
|
|
33
|
-
async groupMembers(params) {
|
|
34
|
-
const options = {
|
|
35
|
-
params: {}
|
|
36
|
-
};
|
|
37
|
-
if (typeof params?.pagination !== "undefined") {
|
|
38
|
-
setPaginationParams(options, params.pagination);
|
|
39
|
-
}
|
|
40
|
-
const endpoint = `cosmos/group/v1/group_members/${params.groupId}`;
|
|
41
|
-
return await this.req.get(endpoint, options);
|
|
42
|
-
}
|
|
43
|
-
/* GroupsByAdmin queries groups by admin address. */
|
|
44
|
-
async groupsByAdmin(params) {
|
|
45
|
-
const options = {
|
|
46
|
-
params: {}
|
|
47
|
-
};
|
|
48
|
-
if (typeof params?.pagination !== "undefined") {
|
|
49
|
-
setPaginationParams(options, params.pagination);
|
|
50
|
-
}
|
|
51
|
-
const endpoint = `cosmos/group/v1/groups_by_admin/${params.admin}`;
|
|
52
|
-
return await this.req.get(endpoint, options);
|
|
53
|
-
}
|
|
54
|
-
/* GroupPoliciesByGroup queries group policies by group id. */
|
|
55
|
-
async groupPoliciesByGroup(params) {
|
|
56
|
-
const options = {
|
|
57
|
-
params: {}
|
|
58
|
-
};
|
|
59
|
-
if (typeof params?.pagination !== "undefined") {
|
|
60
|
-
setPaginationParams(options, params.pagination);
|
|
61
|
-
}
|
|
62
|
-
const endpoint = `cosmos/group/v1/group_policies_by_group/${params.groupId}`;
|
|
63
|
-
return await this.req.get(endpoint, options);
|
|
64
|
-
}
|
|
65
|
-
/* GroupPoliciesByAdmin queries group policies by admin address. */
|
|
66
|
-
async groupPoliciesByAdmin(params) {
|
|
67
|
-
const options = {
|
|
68
|
-
params: {}
|
|
69
|
-
};
|
|
70
|
-
if (typeof params?.pagination !== "undefined") {
|
|
71
|
-
setPaginationParams(options, params.pagination);
|
|
72
|
-
}
|
|
73
|
-
const endpoint = `cosmos/group/v1/group_policies_by_admin/${params.admin}`;
|
|
74
|
-
return await this.req.get(endpoint, options);
|
|
75
|
-
}
|
|
76
|
-
/* Proposal queries a proposal based on proposal id. */
|
|
77
|
-
async proposal(params) {
|
|
78
|
-
const endpoint = `cosmos/group/v1/proposal/${params.proposalId}`;
|
|
79
|
-
return await this.req.get(endpoint);
|
|
80
|
-
}
|
|
81
|
-
/* ProposalsByGroupPolicy queries proposals based on account address of group policy. */
|
|
82
|
-
async proposalsByGroupPolicy(params) {
|
|
83
|
-
const options = {
|
|
84
|
-
params: {}
|
|
85
|
-
};
|
|
86
|
-
if (typeof params?.pagination !== "undefined") {
|
|
87
|
-
setPaginationParams(options, params.pagination);
|
|
88
|
-
}
|
|
89
|
-
const endpoint = `cosmos/group/v1/proposals_by_group_policy/${params.address}`;
|
|
90
|
-
return await this.req.get(endpoint, options);
|
|
91
|
-
}
|
|
92
|
-
/* VoteByProposalVoter queries a vote by proposal id and voter. */
|
|
93
|
-
async voteByProposalVoter(params) {
|
|
94
|
-
const endpoint = `cosmos/group/v1/vote_by_proposal_voter/${params.proposalId}/${params.voter}`;
|
|
95
|
-
return await this.req.get(endpoint);
|
|
96
|
-
}
|
|
97
|
-
/* VotesByProposal queries a vote by proposal id. */
|
|
98
|
-
async votesByProposal(params) {
|
|
99
|
-
const options = {
|
|
100
|
-
params: {}
|
|
101
|
-
};
|
|
102
|
-
if (typeof params?.pagination !== "undefined") {
|
|
103
|
-
setPaginationParams(options, params.pagination);
|
|
104
|
-
}
|
|
105
|
-
const endpoint = `cosmos/group/v1/votes_by_proposal/${params.proposalId}`;
|
|
106
|
-
return await this.req.get(endpoint, options);
|
|
107
|
-
}
|
|
108
|
-
/* VotesByVoter queries a vote by voter. */
|
|
109
|
-
async votesByVoter(params) {
|
|
110
|
-
const options = {
|
|
111
|
-
params: {}
|
|
112
|
-
};
|
|
113
|
-
if (typeof params?.pagination !== "undefined") {
|
|
114
|
-
setPaginationParams(options, params.pagination);
|
|
115
|
-
}
|
|
116
|
-
const endpoint = `cosmos/group/v1/votes_by_voter/${params.voter}`;
|
|
117
|
-
return await this.req.get(endpoint, options);
|
|
118
|
-
}
|
|
119
|
-
/* GroupsByMember queries groups by member address. */
|
|
120
|
-
async groupsByMember(params) {
|
|
121
|
-
const options = {
|
|
122
|
-
params: {}
|
|
123
|
-
};
|
|
124
|
-
if (typeof params?.pagination !== "undefined") {
|
|
125
|
-
setPaginationParams(options, params.pagination);
|
|
126
|
-
}
|
|
127
|
-
const endpoint = `cosmos/group/v1/groups_by_member/${params.address}`;
|
|
128
|
-
return await this.req.get(endpoint, options);
|
|
129
|
-
}
|
|
130
|
-
/* TallyResult returns the tally result of a proposal. If the proposal is
|
|
131
|
-
still in voting period, then this query computes the current tally state,
|
|
132
|
-
which might not be final. On the other hand, if the proposal is final,
|
|
133
|
-
then it simply returns the `final_tally_result` state stored in the
|
|
134
|
-
proposal itself. */
|
|
135
|
-
async tallyResult(params) {
|
|
136
|
-
const endpoint = `cosmos/group/v1/proposals/${params.proposalId}/tally`;
|
|
137
|
-
return await this.req.get(endpoint);
|
|
138
|
-
}
|
|
139
|
-
/* Groups queries all groups in state.
|
|
140
|
-
|
|
141
|
-
Since: cosmos-sdk 0.47.1 */
|
|
142
|
-
async groups(params = {
|
|
143
|
-
pagination: undefined
|
|
144
|
-
}) {
|
|
145
|
-
const options = {
|
|
146
|
-
params: {}
|
|
147
|
-
};
|
|
148
|
-
if (typeof params?.pagination !== "undefined") {
|
|
149
|
-
setPaginationParams(options, params.pagination);
|
|
150
|
-
}
|
|
151
|
-
const endpoint = `cosmos/group/v1/groups`;
|
|
152
|
-
return await this.req.get(endpoint, options);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryGroupInfoRequest, QueryGroupInfoResponse, QueryGroupPolicyInfoRequest, QueryGroupPolicyInfoResponse, QueryGroupMembersRequest, QueryGroupMembersResponse, QueryGroupsByAdminRequest, QueryGroupsByAdminResponse, QueryGroupPoliciesByGroupRequest, QueryGroupPoliciesByGroupResponse, QueryGroupPoliciesByAdminRequest, QueryGroupPoliciesByAdminResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, QueryVotesByProposalResponse, QueryVotesByVoterRequest, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsByMemberResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryGroupsRequest, QueryGroupsResponse } from "./query";
|
|
4
|
-
export class QueryClientImpl {
|
|
5
|
-
rpc;
|
|
6
|
-
constructor(rpc) {
|
|
7
|
-
this.rpc = rpc;
|
|
8
|
-
this.groupInfo = this.groupInfo.bind(this);
|
|
9
|
-
this.groupPolicyInfo = this.groupPolicyInfo.bind(this);
|
|
10
|
-
this.groupMembers = this.groupMembers.bind(this);
|
|
11
|
-
this.groupsByAdmin = this.groupsByAdmin.bind(this);
|
|
12
|
-
this.groupPoliciesByGroup = this.groupPoliciesByGroup.bind(this);
|
|
13
|
-
this.groupPoliciesByAdmin = this.groupPoliciesByAdmin.bind(this);
|
|
14
|
-
this.proposal = this.proposal.bind(this);
|
|
15
|
-
this.proposalsByGroupPolicy = this.proposalsByGroupPolicy.bind(this);
|
|
16
|
-
this.voteByProposalVoter = this.voteByProposalVoter.bind(this);
|
|
17
|
-
this.votesByProposal = this.votesByProposal.bind(this);
|
|
18
|
-
this.votesByVoter = this.votesByVoter.bind(this);
|
|
19
|
-
this.groupsByMember = this.groupsByMember.bind(this);
|
|
20
|
-
this.tallyResult = this.tallyResult.bind(this);
|
|
21
|
-
this.groups = this.groups.bind(this);
|
|
22
|
-
}
|
|
23
|
-
groupInfo(request) {
|
|
24
|
-
const data = QueryGroupInfoRequest.encode(request).finish();
|
|
25
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupInfo", data);
|
|
26
|
-
return promise.then(data => QueryGroupInfoResponse.decode(new BinaryReader(data)));
|
|
27
|
-
}
|
|
28
|
-
groupPolicyInfo(request) {
|
|
29
|
-
const data = QueryGroupPolicyInfoRequest.encode(request).finish();
|
|
30
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPolicyInfo", data);
|
|
31
|
-
return promise.then(data => QueryGroupPolicyInfoResponse.decode(new BinaryReader(data)));
|
|
32
|
-
}
|
|
33
|
-
groupMembers(request) {
|
|
34
|
-
const data = QueryGroupMembersRequest.encode(request).finish();
|
|
35
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupMembers", data);
|
|
36
|
-
return promise.then(data => QueryGroupMembersResponse.decode(new BinaryReader(data)));
|
|
37
|
-
}
|
|
38
|
-
groupsByAdmin(request) {
|
|
39
|
-
const data = QueryGroupsByAdminRequest.encode(request).finish();
|
|
40
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByAdmin", data);
|
|
41
|
-
return promise.then(data => QueryGroupsByAdminResponse.decode(new BinaryReader(data)));
|
|
42
|
-
}
|
|
43
|
-
groupPoliciesByGroup(request) {
|
|
44
|
-
const data = QueryGroupPoliciesByGroupRequest.encode(request).finish();
|
|
45
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByGroup", data);
|
|
46
|
-
return promise.then(data => QueryGroupPoliciesByGroupResponse.decode(new BinaryReader(data)));
|
|
47
|
-
}
|
|
48
|
-
groupPoliciesByAdmin(request) {
|
|
49
|
-
const data = QueryGroupPoliciesByAdminRequest.encode(request).finish();
|
|
50
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupPoliciesByAdmin", data);
|
|
51
|
-
return promise.then(data => QueryGroupPoliciesByAdminResponse.decode(new BinaryReader(data)));
|
|
52
|
-
}
|
|
53
|
-
proposal(request) {
|
|
54
|
-
const data = QueryProposalRequest.encode(request).finish();
|
|
55
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "Proposal", data);
|
|
56
|
-
return promise.then(data => QueryProposalResponse.decode(new BinaryReader(data)));
|
|
57
|
-
}
|
|
58
|
-
proposalsByGroupPolicy(request) {
|
|
59
|
-
const data = QueryProposalsByGroupPolicyRequest.encode(request).finish();
|
|
60
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "ProposalsByGroupPolicy", data);
|
|
61
|
-
return promise.then(data => QueryProposalsByGroupPolicyResponse.decode(new BinaryReader(data)));
|
|
62
|
-
}
|
|
63
|
-
voteByProposalVoter(request) {
|
|
64
|
-
const data = QueryVoteByProposalVoterRequest.encode(request).finish();
|
|
65
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "VoteByProposalVoter", data);
|
|
66
|
-
return promise.then(data => QueryVoteByProposalVoterResponse.decode(new BinaryReader(data)));
|
|
67
|
-
}
|
|
68
|
-
votesByProposal(request) {
|
|
69
|
-
const data = QueryVotesByProposalRequest.encode(request).finish();
|
|
70
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByProposal", data);
|
|
71
|
-
return promise.then(data => QueryVotesByProposalResponse.decode(new BinaryReader(data)));
|
|
72
|
-
}
|
|
73
|
-
votesByVoter(request) {
|
|
74
|
-
const data = QueryVotesByVoterRequest.encode(request).finish();
|
|
75
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "VotesByVoter", data);
|
|
76
|
-
return promise.then(data => QueryVotesByVoterResponse.decode(new BinaryReader(data)));
|
|
77
|
-
}
|
|
78
|
-
groupsByMember(request) {
|
|
79
|
-
const data = QueryGroupsByMemberRequest.encode(request).finish();
|
|
80
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "GroupsByMember", data);
|
|
81
|
-
return promise.then(data => QueryGroupsByMemberResponse.decode(new BinaryReader(data)));
|
|
82
|
-
}
|
|
83
|
-
tallyResult(request) {
|
|
84
|
-
const data = QueryTallyResultRequest.encode(request).finish();
|
|
85
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "TallyResult", data);
|
|
86
|
-
return promise.then(data => QueryTallyResultResponse.decode(new BinaryReader(data)));
|
|
87
|
-
}
|
|
88
|
-
groups(request = {
|
|
89
|
-
pagination: undefined
|
|
90
|
-
}) {
|
|
91
|
-
const data = QueryGroupsRequest.encode(request).finish();
|
|
92
|
-
const promise = this.rpc.request("cosmos.group.v1.Query", "Groups", data);
|
|
93
|
-
return promise.then(data => QueryGroupsResponse.decode(new BinaryReader(data)));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
export const createRpcQueryExtension = (base) => {
|
|
97
|
-
const rpc = createProtobufRpcClient(base);
|
|
98
|
-
const queryService = new QueryClientImpl(rpc);
|
|
99
|
-
return {
|
|
100
|
-
groupInfo(request) {
|
|
101
|
-
return queryService.groupInfo(request);
|
|
102
|
-
},
|
|
103
|
-
groupPolicyInfo(request) {
|
|
104
|
-
return queryService.groupPolicyInfo(request);
|
|
105
|
-
},
|
|
106
|
-
groupMembers(request) {
|
|
107
|
-
return queryService.groupMembers(request);
|
|
108
|
-
},
|
|
109
|
-
groupsByAdmin(request) {
|
|
110
|
-
return queryService.groupsByAdmin(request);
|
|
111
|
-
},
|
|
112
|
-
groupPoliciesByGroup(request) {
|
|
113
|
-
return queryService.groupPoliciesByGroup(request);
|
|
114
|
-
},
|
|
115
|
-
groupPoliciesByAdmin(request) {
|
|
116
|
-
return queryService.groupPoliciesByAdmin(request);
|
|
117
|
-
},
|
|
118
|
-
proposal(request) {
|
|
119
|
-
return queryService.proposal(request);
|
|
120
|
-
},
|
|
121
|
-
proposalsByGroupPolicy(request) {
|
|
122
|
-
return queryService.proposalsByGroupPolicy(request);
|
|
123
|
-
},
|
|
124
|
-
voteByProposalVoter(request) {
|
|
125
|
-
return queryService.voteByProposalVoter(request);
|
|
126
|
-
},
|
|
127
|
-
votesByProposal(request) {
|
|
128
|
-
return queryService.votesByProposal(request);
|
|
129
|
-
},
|
|
130
|
-
votesByVoter(request) {
|
|
131
|
-
return queryService.votesByVoter(request);
|
|
132
|
-
},
|
|
133
|
-
groupsByMember(request) {
|
|
134
|
-
return queryService.groupsByMember(request);
|
|
135
|
-
},
|
|
136
|
-
tallyResult(request) {
|
|
137
|
-
return queryService.tallyResult(request);
|
|
138
|
-
},
|
|
139
|
-
groups(request) {
|
|
140
|
-
return queryService.groups(request);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import { MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyMetadata, MsgSubmitProposal, MsgWithdrawProposal, MsgVote, MsgExec, MsgLeaveGroup } from "./tx";
|
|
3
|
-
export const AminoConverter = {
|
|
4
|
-
"/cosmos.group.v1.MsgCreateGroup": {
|
|
5
|
-
aminoType: "cosmos-sdk/MsgCreateGroup",
|
|
6
|
-
toAmino: MsgCreateGroup.toAmino,
|
|
7
|
-
fromAmino: MsgCreateGroup.fromAmino
|
|
8
|
-
},
|
|
9
|
-
"/cosmos.group.v1.MsgUpdateGroupMembers": {
|
|
10
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMembers",
|
|
11
|
-
toAmino: MsgUpdateGroupMembers.toAmino,
|
|
12
|
-
fromAmino: MsgUpdateGroupMembers.fromAmino
|
|
13
|
-
},
|
|
14
|
-
"/cosmos.group.v1.MsgUpdateGroupAdmin": {
|
|
15
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupAdmin",
|
|
16
|
-
toAmino: MsgUpdateGroupAdmin.toAmino,
|
|
17
|
-
fromAmino: MsgUpdateGroupAdmin.fromAmino
|
|
18
|
-
},
|
|
19
|
-
"/cosmos.group.v1.MsgUpdateGroupMetadata": {
|
|
20
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupMetadata",
|
|
21
|
-
toAmino: MsgUpdateGroupMetadata.toAmino,
|
|
22
|
-
fromAmino: MsgUpdateGroupMetadata.fromAmino
|
|
23
|
-
},
|
|
24
|
-
"/cosmos.group.v1.MsgCreateGroupPolicy": {
|
|
25
|
-
aminoType: "cosmos-sdk/MsgCreateGroupPolicy",
|
|
26
|
-
toAmino: MsgCreateGroupPolicy.toAmino,
|
|
27
|
-
fromAmino: MsgCreateGroupPolicy.fromAmino
|
|
28
|
-
},
|
|
29
|
-
"/cosmos.group.v1.MsgCreateGroupWithPolicy": {
|
|
30
|
-
aminoType: "cosmos-sdk/MsgCreateGroupWithPolicy",
|
|
31
|
-
toAmino: MsgCreateGroupWithPolicy.toAmino,
|
|
32
|
-
fromAmino: MsgCreateGroupWithPolicy.fromAmino
|
|
33
|
-
},
|
|
34
|
-
"/cosmos.group.v1.MsgUpdateGroupPolicyAdmin": {
|
|
35
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyAdmin",
|
|
36
|
-
toAmino: MsgUpdateGroupPolicyAdmin.toAmino,
|
|
37
|
-
fromAmino: MsgUpdateGroupPolicyAdmin.fromAmino
|
|
38
|
-
},
|
|
39
|
-
"/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy": {
|
|
40
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupDecisionPolicy",
|
|
41
|
-
toAmino: MsgUpdateGroupPolicyDecisionPolicy.toAmino,
|
|
42
|
-
fromAmino: MsgUpdateGroupPolicyDecisionPolicy.fromAmino
|
|
43
|
-
},
|
|
44
|
-
"/cosmos.group.v1.MsgUpdateGroupPolicyMetadata": {
|
|
45
|
-
aminoType: "cosmos-sdk/MsgUpdateGroupPolicyMetadata",
|
|
46
|
-
toAmino: MsgUpdateGroupPolicyMetadata.toAmino,
|
|
47
|
-
fromAmino: MsgUpdateGroupPolicyMetadata.fromAmino
|
|
48
|
-
},
|
|
49
|
-
"/cosmos.group.v1.MsgSubmitProposal": {
|
|
50
|
-
aminoType: "cosmos-sdk/group/MsgSubmitProposal",
|
|
51
|
-
toAmino: MsgSubmitProposal.toAmino,
|
|
52
|
-
fromAmino: MsgSubmitProposal.fromAmino
|
|
53
|
-
},
|
|
54
|
-
"/cosmos.group.v1.MsgWithdrawProposal": {
|
|
55
|
-
aminoType: "cosmos-sdk/group/MsgWithdrawProposal",
|
|
56
|
-
toAmino: MsgWithdrawProposal.toAmino,
|
|
57
|
-
fromAmino: MsgWithdrawProposal.fromAmino
|
|
58
|
-
},
|
|
59
|
-
"/cosmos.group.v1.MsgVote": {
|
|
60
|
-
aminoType: "cosmos-sdk/group/MsgVote",
|
|
61
|
-
toAmino: MsgVote.toAmino,
|
|
62
|
-
fromAmino: MsgVote.fromAmino
|
|
63
|
-
},
|
|
64
|
-
"/cosmos.group.v1.MsgExec": {
|
|
65
|
-
aminoType: "cosmos-sdk/group/MsgExec",
|
|
66
|
-
toAmino: MsgExec.toAmino,
|
|
67
|
-
fromAmino: MsgExec.fromAmino
|
|
68
|
-
},
|
|
69
|
-
"/cosmos.group.v1.MsgLeaveGroup": {
|
|
70
|
-
aminoType: "cosmos-sdk/group/MsgLeaveGroup",
|
|
71
|
-
toAmino: MsgLeaveGroup.toAmino,
|
|
72
|
-
fromAmino: MsgLeaveGroup.fromAmino
|
|
73
|
-
}
|
|
74
|
-
};
|