@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,19 +0,0 @@
|
|
|
1
|
-
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
-
import { QueryBalanceRequest, QueryBalanceResponseSDKType, QueryAllBalancesRequest, QueryAllBalancesResponseSDKType, QuerySpendableBalancesRequest, QuerySpendableBalancesResponseSDKType, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponseSDKType, QueryTotalSupplyRequest, QueryTotalSupplyResponseSDKType, QuerySupplyOfRequest, QuerySupplyOfResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryDenomMetadataRequest, QueryDenomMetadataResponseSDKType, QueryDenomsMetadataRequest, QueryDenomsMetadataResponseSDKType, QueryDenomOwnersRequest, QueryDenomOwnersResponseSDKType, QuerySendEnabledRequest, QuerySendEnabledResponseSDKType } from "./query";
|
|
3
|
-
export declare class LCDQueryClient {
|
|
4
|
-
req: LCDClient;
|
|
5
|
-
constructor({ requestClient }: {
|
|
6
|
-
requestClient: LCDClient;
|
|
7
|
-
});
|
|
8
|
-
balance(params: QueryBalanceRequest): Promise<QueryBalanceResponseSDKType>;
|
|
9
|
-
allBalances(params: QueryAllBalancesRequest): Promise<QueryAllBalancesResponseSDKType>;
|
|
10
|
-
spendableBalances(params: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponseSDKType>;
|
|
11
|
-
spendableBalanceByDenom(params: QuerySpendableBalanceByDenomRequest): Promise<QuerySpendableBalanceByDenomResponseSDKType>;
|
|
12
|
-
totalSupply(params?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponseSDKType>;
|
|
13
|
-
supplyOf(params: QuerySupplyOfRequest): Promise<QuerySupplyOfResponseSDKType>;
|
|
14
|
-
params(_params?: QueryParamsRequest): Promise<QueryParamsResponseSDKType>;
|
|
15
|
-
denomMetadata(params: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponseSDKType>;
|
|
16
|
-
denomsMetadata(params?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponseSDKType>;
|
|
17
|
-
denomOwners(params: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponseSDKType>;
|
|
18
|
-
sendEnabled(params: QuerySendEnabledRequest): Promise<QuerySendEnabledResponseSDKType>;
|
|
19
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LCDQueryClient = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
|
-
const helpers_1 = require("../../../helpers");
|
|
6
|
-
class LCDQueryClient {
|
|
7
|
-
req;
|
|
8
|
-
constructor({ requestClient }) {
|
|
9
|
-
this.req = requestClient;
|
|
10
|
-
this.balance = this.balance.bind(this);
|
|
11
|
-
this.allBalances = this.allBalances.bind(this);
|
|
12
|
-
this.spendableBalances = this.spendableBalances.bind(this);
|
|
13
|
-
this.spendableBalanceByDenom = this.spendableBalanceByDenom.bind(this);
|
|
14
|
-
this.totalSupply = this.totalSupply.bind(this);
|
|
15
|
-
this.supplyOf = this.supplyOf.bind(this);
|
|
16
|
-
this.params = this.params.bind(this);
|
|
17
|
-
this.denomMetadata = this.denomMetadata.bind(this);
|
|
18
|
-
this.denomsMetadata = this.denomsMetadata.bind(this);
|
|
19
|
-
this.denomOwners = this.denomOwners.bind(this);
|
|
20
|
-
this.sendEnabled = this.sendEnabled.bind(this);
|
|
21
|
-
}
|
|
22
|
-
/* Balance queries the balance of a single coin for a single account. */
|
|
23
|
-
async balance(params) {
|
|
24
|
-
const options = {
|
|
25
|
-
params: {}
|
|
26
|
-
};
|
|
27
|
-
if (typeof params?.denom !== "undefined") {
|
|
28
|
-
options.params.denom = params.denom;
|
|
29
|
-
}
|
|
30
|
-
const endpoint = `cosmos/bank/v1beta1/balances/${params.address}/by_denom`;
|
|
31
|
-
return await this.req.get(endpoint, options);
|
|
32
|
-
}
|
|
33
|
-
/* AllBalances queries the balance of all coins for a single account.
|
|
34
|
-
|
|
35
|
-
When called from another module, this query might consume a high amount of
|
|
36
|
-
gas if the pagination field is incorrectly set. */
|
|
37
|
-
async allBalances(params) {
|
|
38
|
-
const options = {
|
|
39
|
-
params: {}
|
|
40
|
-
};
|
|
41
|
-
if (typeof params?.pagination !== "undefined") {
|
|
42
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
43
|
-
}
|
|
44
|
-
const endpoint = `cosmos/bank/v1beta1/balances/${params.address}`;
|
|
45
|
-
return await this.req.get(endpoint, options);
|
|
46
|
-
}
|
|
47
|
-
/* SpendableBalances queries the spendable balance of all coins for a single
|
|
48
|
-
account.
|
|
49
|
-
|
|
50
|
-
When called from another module, this query might consume a high amount of
|
|
51
|
-
gas if the pagination field is incorrectly set.
|
|
52
|
-
|
|
53
|
-
Since: cosmos-sdk 0.46 */
|
|
54
|
-
async spendableBalances(params) {
|
|
55
|
-
const options = {
|
|
56
|
-
params: {}
|
|
57
|
-
};
|
|
58
|
-
if (typeof params?.pagination !== "undefined") {
|
|
59
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
60
|
-
}
|
|
61
|
-
const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}`;
|
|
62
|
-
return await this.req.get(endpoint, options);
|
|
63
|
-
}
|
|
64
|
-
/* SpendableBalanceByDenom queries the spendable balance of a single denom for
|
|
65
|
-
a single account.
|
|
66
|
-
|
|
67
|
-
When called from another module, this query might consume a high amount of
|
|
68
|
-
gas if the pagination field is incorrectly set.
|
|
69
|
-
|
|
70
|
-
Since: cosmos-sdk 0.47 */
|
|
71
|
-
async spendableBalanceByDenom(params) {
|
|
72
|
-
const options = {
|
|
73
|
-
params: {}
|
|
74
|
-
};
|
|
75
|
-
if (typeof params?.denom !== "undefined") {
|
|
76
|
-
options.params.denom = params.denom;
|
|
77
|
-
}
|
|
78
|
-
const endpoint = `cosmos/bank/v1beta1/spendable_balances/${params.address}/by_denom`;
|
|
79
|
-
return await this.req.get(endpoint, options);
|
|
80
|
-
}
|
|
81
|
-
/* TotalSupply queries the total supply of all coins.
|
|
82
|
-
|
|
83
|
-
When called from another module, this query might consume a high amount of
|
|
84
|
-
gas if the pagination field is incorrectly set. */
|
|
85
|
-
async totalSupply(params = {
|
|
86
|
-
pagination: undefined
|
|
87
|
-
}) {
|
|
88
|
-
const options = {
|
|
89
|
-
params: {}
|
|
90
|
-
};
|
|
91
|
-
if (typeof params?.pagination !== "undefined") {
|
|
92
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
93
|
-
}
|
|
94
|
-
const endpoint = `cosmos/bank/v1beta1/supply`;
|
|
95
|
-
return await this.req.get(endpoint, options);
|
|
96
|
-
}
|
|
97
|
-
/* SupplyOf queries the supply of a single coin.
|
|
98
|
-
|
|
99
|
-
When called from another module, this query might consume a high amount of
|
|
100
|
-
gas if the pagination field is incorrectly set. */
|
|
101
|
-
async supplyOf(params) {
|
|
102
|
-
const options = {
|
|
103
|
-
params: {}
|
|
104
|
-
};
|
|
105
|
-
if (typeof params?.denom !== "undefined") {
|
|
106
|
-
options.params.denom = params.denom;
|
|
107
|
-
}
|
|
108
|
-
const endpoint = `cosmos/bank/v1beta1/supply/by_denom`;
|
|
109
|
-
return await this.req.get(endpoint, options);
|
|
110
|
-
}
|
|
111
|
-
/* Params queries the parameters of x/bank module. */
|
|
112
|
-
async params(_params = {}) {
|
|
113
|
-
const endpoint = `cosmos/bank/v1beta1/params`;
|
|
114
|
-
return await this.req.get(endpoint);
|
|
115
|
-
}
|
|
116
|
-
/* DenomsMetadata queries the client metadata of a given coin denomination. */
|
|
117
|
-
async denomMetadata(params) {
|
|
118
|
-
const endpoint = `cosmos/bank/v1beta1/denoms_metadata/${params.denom}`;
|
|
119
|
-
return await this.req.get(endpoint);
|
|
120
|
-
}
|
|
121
|
-
/* DenomsMetadata queries the client metadata for all registered coin
|
|
122
|
-
denominations. */
|
|
123
|
-
async denomsMetadata(params = {
|
|
124
|
-
pagination: undefined
|
|
125
|
-
}) {
|
|
126
|
-
const options = {
|
|
127
|
-
params: {}
|
|
128
|
-
};
|
|
129
|
-
if (typeof params?.pagination !== "undefined") {
|
|
130
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
131
|
-
}
|
|
132
|
-
const endpoint = `cosmos/bank/v1beta1/denoms_metadata`;
|
|
133
|
-
return await this.req.get(endpoint, options);
|
|
134
|
-
}
|
|
135
|
-
/* DenomOwners queries for all account addresses that own a particular token
|
|
136
|
-
denomination.
|
|
137
|
-
|
|
138
|
-
When called from another module, this query might consume a high amount of
|
|
139
|
-
gas if the pagination field is incorrectly set.
|
|
140
|
-
|
|
141
|
-
Since: cosmos-sdk 0.46 */
|
|
142
|
-
async denomOwners(params) {
|
|
143
|
-
const options = {
|
|
144
|
-
params: {}
|
|
145
|
-
};
|
|
146
|
-
if (typeof params?.pagination !== "undefined") {
|
|
147
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
148
|
-
}
|
|
149
|
-
const endpoint = `cosmos/bank/v1beta1/denom_owners/${params.denom}`;
|
|
150
|
-
return await this.req.get(endpoint, options);
|
|
151
|
-
}
|
|
152
|
-
/* SendEnabled queries for SendEnabled entries.
|
|
153
|
-
|
|
154
|
-
This query only returns denominations that have specific SendEnabled settings.
|
|
155
|
-
Any denomination that does not have a specific setting will use the default
|
|
156
|
-
params.default_send_enabled, and will not be returned by this query.
|
|
157
|
-
|
|
158
|
-
Since: cosmos-sdk 0.47 */
|
|
159
|
-
async sendEnabled(params) {
|
|
160
|
-
const options = {
|
|
161
|
-
params: {}
|
|
162
|
-
};
|
|
163
|
-
if (typeof params?.denoms !== "undefined") {
|
|
164
|
-
options.params.denoms = params.denoms;
|
|
165
|
-
}
|
|
166
|
-
if (typeof params?.pagination !== "undefined") {
|
|
167
|
-
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
168
|
-
}
|
|
169
|
-
const endpoint = `cosmos/bank/v1beta1/send_enabled`;
|
|
170
|
-
return await this.req.get(endpoint, options);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Rpc } from "../../../helpers";
|
|
2
|
-
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QuerySendEnabledRequest, QuerySendEnabledResponse } from "./query";
|
|
4
|
-
/** Query defines the gRPC querier service. */
|
|
5
|
-
export interface Query {
|
|
6
|
-
/** Balance queries the balance of a single coin for a single account. */
|
|
7
|
-
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* AllBalances queries the balance of all coins for a single account.
|
|
10
|
-
*
|
|
11
|
-
* When called from another module, this query might consume a high amount of
|
|
12
|
-
* gas if the pagination field is incorrectly set.
|
|
13
|
-
*/
|
|
14
|
-
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* SpendableBalances queries the spendable balance of all coins for a single
|
|
17
|
-
* account.
|
|
18
|
-
*
|
|
19
|
-
* When called from another module, this query might consume a high amount of
|
|
20
|
-
* gas if the pagination field is incorrectly set.
|
|
21
|
-
*
|
|
22
|
-
* Since: cosmos-sdk 0.46
|
|
23
|
-
*/
|
|
24
|
-
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* SpendableBalanceByDenom queries the spendable balance of a single denom for
|
|
27
|
-
* a single account.
|
|
28
|
-
*
|
|
29
|
-
* When called from another module, this query might consume a high amount of
|
|
30
|
-
* gas if the pagination field is incorrectly set.
|
|
31
|
-
*
|
|
32
|
-
* Since: cosmos-sdk 0.47
|
|
33
|
-
*/
|
|
34
|
-
spendableBalanceByDenom(request: QuerySpendableBalanceByDenomRequest): Promise<QuerySpendableBalanceByDenomResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* TotalSupply queries the total supply of all coins.
|
|
37
|
-
*
|
|
38
|
-
* When called from another module, this query might consume a high amount of
|
|
39
|
-
* gas if the pagination field is incorrectly set.
|
|
40
|
-
*/
|
|
41
|
-
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* SupplyOf queries the supply of a single coin.
|
|
44
|
-
*
|
|
45
|
-
* When called from another module, this query might consume a high amount of
|
|
46
|
-
* gas if the pagination field is incorrectly set.
|
|
47
|
-
*/
|
|
48
|
-
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
|
49
|
-
/** Params queries the parameters of x/bank module. */
|
|
50
|
-
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
51
|
-
/** DenomsMetadata queries the client metadata of a given coin denomination. */
|
|
52
|
-
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* DenomsMetadata queries the client metadata for all registered coin
|
|
55
|
-
* denominations.
|
|
56
|
-
*/
|
|
57
|
-
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* DenomOwners queries for all account addresses that own a particular token
|
|
60
|
-
* denomination.
|
|
61
|
-
*
|
|
62
|
-
* When called from another module, this query might consume a high amount of
|
|
63
|
-
* gas if the pagination field is incorrectly set.
|
|
64
|
-
*
|
|
65
|
-
* Since: cosmos-sdk 0.46
|
|
66
|
-
*/
|
|
67
|
-
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
|
68
|
-
/**
|
|
69
|
-
* SendEnabled queries for SendEnabled entries.
|
|
70
|
-
*
|
|
71
|
-
* This query only returns denominations that have specific SendEnabled settings.
|
|
72
|
-
* Any denomination that does not have a specific setting will use the default
|
|
73
|
-
* params.default_send_enabled, and will not be returned by this query.
|
|
74
|
-
*
|
|
75
|
-
* Since: cosmos-sdk 0.47
|
|
76
|
-
*/
|
|
77
|
-
sendEnabled(request: QuerySendEnabledRequest): Promise<QuerySendEnabledResponse>;
|
|
78
|
-
}
|
|
79
|
-
export declare class QueryClientImpl implements Query {
|
|
80
|
-
private readonly rpc;
|
|
81
|
-
constructor(rpc: Rpc);
|
|
82
|
-
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
83
|
-
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
|
84
|
-
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
|
85
|
-
spendableBalanceByDenom(request: QuerySpendableBalanceByDenomRequest): Promise<QuerySpendableBalanceByDenomResponse>;
|
|
86
|
-
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
|
87
|
-
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
|
88
|
-
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
89
|
-
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
|
90
|
-
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
|
91
|
-
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
|
92
|
-
sendEnabled(request: QuerySendEnabledRequest): Promise<QuerySendEnabledResponse>;
|
|
93
|
-
}
|
|
94
|
-
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
95
|
-
balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
96
|
-
allBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
|
97
|
-
spendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
|
98
|
-
spendableBalanceByDenom(request: QuerySpendableBalanceByDenomRequest): Promise<QuerySpendableBalanceByDenomResponse>;
|
|
99
|
-
totalSupply(request?: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
|
100
|
-
supplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
|
101
|
-
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
102
|
-
denomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
|
|
103
|
-
denomsMetadata(request?: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
|
|
104
|
-
denomOwners(request: QueryDenomOwnersRequest): Promise<QueryDenomOwnersResponse>;
|
|
105
|
-
sendEnabled(request: QuerySendEnabledRequest): Promise<QuerySendEnabledResponse>;
|
|
106
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
-
const binary_1 = require("../../../binary");
|
|
5
|
-
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
-
const query_1 = require("./query");
|
|
7
|
-
class QueryClientImpl {
|
|
8
|
-
rpc;
|
|
9
|
-
constructor(rpc) {
|
|
10
|
-
this.rpc = rpc;
|
|
11
|
-
this.balance = this.balance.bind(this);
|
|
12
|
-
this.allBalances = this.allBalances.bind(this);
|
|
13
|
-
this.spendableBalances = this.spendableBalances.bind(this);
|
|
14
|
-
this.spendableBalanceByDenom = this.spendableBalanceByDenom.bind(this);
|
|
15
|
-
this.totalSupply = this.totalSupply.bind(this);
|
|
16
|
-
this.supplyOf = this.supplyOf.bind(this);
|
|
17
|
-
this.params = this.params.bind(this);
|
|
18
|
-
this.denomMetadata = this.denomMetadata.bind(this);
|
|
19
|
-
this.denomsMetadata = this.denomsMetadata.bind(this);
|
|
20
|
-
this.denomOwners = this.denomOwners.bind(this);
|
|
21
|
-
this.sendEnabled = this.sendEnabled.bind(this);
|
|
22
|
-
}
|
|
23
|
-
balance(request) {
|
|
24
|
-
const data = query_1.QueryBalanceRequest.encode(request).finish();
|
|
25
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data);
|
|
26
|
-
return promise.then(data => query_1.QueryBalanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
27
|
-
}
|
|
28
|
-
allBalances(request) {
|
|
29
|
-
const data = query_1.QueryAllBalancesRequest.encode(request).finish();
|
|
30
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data);
|
|
31
|
-
return promise.then(data => query_1.QueryAllBalancesResponse.decode(new binary_1.BinaryReader(data)));
|
|
32
|
-
}
|
|
33
|
-
spendableBalances(request) {
|
|
34
|
-
const data = query_1.QuerySpendableBalancesRequest.encode(request).finish();
|
|
35
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data);
|
|
36
|
-
return promise.then(data => query_1.QuerySpendableBalancesResponse.decode(new binary_1.BinaryReader(data)));
|
|
37
|
-
}
|
|
38
|
-
spendableBalanceByDenom(request) {
|
|
39
|
-
const data = query_1.QuerySpendableBalanceByDenomRequest.encode(request).finish();
|
|
40
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalanceByDenom", data);
|
|
41
|
-
return promise.then(data => query_1.QuerySpendableBalanceByDenomResponse.decode(new binary_1.BinaryReader(data)));
|
|
42
|
-
}
|
|
43
|
-
totalSupply(request = {
|
|
44
|
-
pagination: undefined
|
|
45
|
-
}) {
|
|
46
|
-
const data = query_1.QueryTotalSupplyRequest.encode(request).finish();
|
|
47
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data);
|
|
48
|
-
return promise.then(data => query_1.QueryTotalSupplyResponse.decode(new binary_1.BinaryReader(data)));
|
|
49
|
-
}
|
|
50
|
-
supplyOf(request) {
|
|
51
|
-
const data = query_1.QuerySupplyOfRequest.encode(request).finish();
|
|
52
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data);
|
|
53
|
-
return promise.then(data => query_1.QuerySupplyOfResponse.decode(new binary_1.BinaryReader(data)));
|
|
54
|
-
}
|
|
55
|
-
params(request = {}) {
|
|
56
|
-
const data = query_1.QueryParamsRequest.encode(request).finish();
|
|
57
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data);
|
|
58
|
-
return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
59
|
-
}
|
|
60
|
-
denomMetadata(request) {
|
|
61
|
-
const data = query_1.QueryDenomMetadataRequest.encode(request).finish();
|
|
62
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data);
|
|
63
|
-
return promise.then(data => query_1.QueryDenomMetadataResponse.decode(new binary_1.BinaryReader(data)));
|
|
64
|
-
}
|
|
65
|
-
denomsMetadata(request = {
|
|
66
|
-
pagination: undefined
|
|
67
|
-
}) {
|
|
68
|
-
const data = query_1.QueryDenomsMetadataRequest.encode(request).finish();
|
|
69
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data);
|
|
70
|
-
return promise.then(data => query_1.QueryDenomsMetadataResponse.decode(new binary_1.BinaryReader(data)));
|
|
71
|
-
}
|
|
72
|
-
denomOwners(request) {
|
|
73
|
-
const data = query_1.QueryDenomOwnersRequest.encode(request).finish();
|
|
74
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomOwners", data);
|
|
75
|
-
return promise.then(data => query_1.QueryDenomOwnersResponse.decode(new binary_1.BinaryReader(data)));
|
|
76
|
-
}
|
|
77
|
-
sendEnabled(request) {
|
|
78
|
-
const data = query_1.QuerySendEnabledRequest.encode(request).finish();
|
|
79
|
-
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SendEnabled", data);
|
|
80
|
-
return promise.then(data => query_1.QuerySendEnabledResponse.decode(new binary_1.BinaryReader(data)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.QueryClientImpl = QueryClientImpl;
|
|
84
|
-
const createRpcQueryExtension = (base) => {
|
|
85
|
-
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
86
|
-
const queryService = new QueryClientImpl(rpc);
|
|
87
|
-
return {
|
|
88
|
-
balance(request) {
|
|
89
|
-
return queryService.balance(request);
|
|
90
|
-
},
|
|
91
|
-
allBalances(request) {
|
|
92
|
-
return queryService.allBalances(request);
|
|
93
|
-
},
|
|
94
|
-
spendableBalances(request) {
|
|
95
|
-
return queryService.spendableBalances(request);
|
|
96
|
-
},
|
|
97
|
-
spendableBalanceByDenom(request) {
|
|
98
|
-
return queryService.spendableBalanceByDenom(request);
|
|
99
|
-
},
|
|
100
|
-
totalSupply(request) {
|
|
101
|
-
return queryService.totalSupply(request);
|
|
102
|
-
},
|
|
103
|
-
supplyOf(request) {
|
|
104
|
-
return queryService.supplyOf(request);
|
|
105
|
-
},
|
|
106
|
-
params(request) {
|
|
107
|
-
return queryService.params(request);
|
|
108
|
-
},
|
|
109
|
-
denomMetadata(request) {
|
|
110
|
-
return queryService.denomMetadata(request);
|
|
111
|
-
},
|
|
112
|
-
denomsMetadata(request) {
|
|
113
|
-
return queryService.denomsMetadata(request);
|
|
114
|
-
},
|
|
115
|
-
denomOwners(request) {
|
|
116
|
-
return queryService.denomOwners(request);
|
|
117
|
-
},
|
|
118
|
-
sendEnabled(request) {
|
|
119
|
-
return queryService.sendEnabled(request);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
exports.createRpcQueryExtension = createRpcQueryExtension;
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
-
/**
|
|
3
|
-
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
4
|
-
* pagination. Ex:
|
|
5
|
-
*
|
|
6
|
-
* message SomeRequest {
|
|
7
|
-
* Foo some_parameter = 1;
|
|
8
|
-
* PageRequest pagination = 2;
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export interface PageRequest {
|
|
12
|
-
/**
|
|
13
|
-
* key is a value returned in PageResponse.next_key to begin
|
|
14
|
-
* querying the next page most efficiently. Only one of offset or key
|
|
15
|
-
* should be set.
|
|
16
|
-
*/
|
|
17
|
-
key: Uint8Array;
|
|
18
|
-
/**
|
|
19
|
-
* offset is a numeric offset that can be used when key is unavailable.
|
|
20
|
-
* It is less efficient than using key. Only one of offset or key should
|
|
21
|
-
* be set.
|
|
22
|
-
*/
|
|
23
|
-
offset: bigint;
|
|
24
|
-
/**
|
|
25
|
-
* limit is the total number of results to be returned in the result page.
|
|
26
|
-
* If left empty it will default to a value to be set by each app.
|
|
27
|
-
*/
|
|
28
|
-
limit: bigint;
|
|
29
|
-
/**
|
|
30
|
-
* count_total is set to true to indicate that the result set should include
|
|
31
|
-
* a count of the total number of items available for pagination in UIs.
|
|
32
|
-
* count_total is only respected when offset is used. It is ignored when key
|
|
33
|
-
* is set.
|
|
34
|
-
*/
|
|
35
|
-
countTotal: boolean;
|
|
36
|
-
/** reverse is set to true if results are to be returned in the descending order. */
|
|
37
|
-
reverse: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface PageRequestProtoMsg {
|
|
40
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageRequest";
|
|
41
|
-
value: Uint8Array;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
45
|
-
* pagination. Ex:
|
|
46
|
-
*
|
|
47
|
-
* message SomeRequest {
|
|
48
|
-
* Foo some_parameter = 1;
|
|
49
|
-
* PageRequest pagination = 2;
|
|
50
|
-
* }
|
|
51
|
-
*/
|
|
52
|
-
export interface PageRequestAmino {
|
|
53
|
-
/**
|
|
54
|
-
* key is a value returned in PageResponse.next_key to begin
|
|
55
|
-
* querying the next page most efficiently. Only one of offset or key
|
|
56
|
-
* should be set.
|
|
57
|
-
*/
|
|
58
|
-
key?: string;
|
|
59
|
-
/**
|
|
60
|
-
* offset is a numeric offset that can be used when key is unavailable.
|
|
61
|
-
* It is less efficient than using key. Only one of offset or key should
|
|
62
|
-
* be set.
|
|
63
|
-
*/
|
|
64
|
-
offset?: string;
|
|
65
|
-
/**
|
|
66
|
-
* limit is the total number of results to be returned in the result page.
|
|
67
|
-
* If left empty it will default to a value to be set by each app.
|
|
68
|
-
*/
|
|
69
|
-
limit?: string;
|
|
70
|
-
/**
|
|
71
|
-
* count_total is set to true to indicate that the result set should include
|
|
72
|
-
* a count of the total number of items available for pagination in UIs.
|
|
73
|
-
* count_total is only respected when offset is used. It is ignored when key
|
|
74
|
-
* is set.
|
|
75
|
-
*/
|
|
76
|
-
count_total?: boolean;
|
|
77
|
-
/** reverse is set to true if results are to be returned in the descending order. */
|
|
78
|
-
reverse?: boolean;
|
|
79
|
-
}
|
|
80
|
-
export interface PageRequestAminoMsg {
|
|
81
|
-
type: "cosmos-sdk/PageRequest";
|
|
82
|
-
value: PageRequestAmino;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* PageRequest is to be embedded in gRPC request messages for efficient
|
|
86
|
-
* pagination. Ex:
|
|
87
|
-
*
|
|
88
|
-
* message SomeRequest {
|
|
89
|
-
* Foo some_parameter = 1;
|
|
90
|
-
* PageRequest pagination = 2;
|
|
91
|
-
* }
|
|
92
|
-
*/
|
|
93
|
-
export interface PageRequestSDKType {
|
|
94
|
-
key: Uint8Array;
|
|
95
|
-
offset: bigint;
|
|
96
|
-
limit: bigint;
|
|
97
|
-
count_total: boolean;
|
|
98
|
-
reverse: boolean;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* PageResponse is to be embedded in gRPC response messages where the
|
|
102
|
-
* corresponding request message has used PageRequest.
|
|
103
|
-
*
|
|
104
|
-
* message SomeResponse {
|
|
105
|
-
* repeated Bar results = 1;
|
|
106
|
-
* PageResponse page = 2;
|
|
107
|
-
* }
|
|
108
|
-
*/
|
|
109
|
-
export interface PageResponse {
|
|
110
|
-
/**
|
|
111
|
-
* next_key is the key to be passed to PageRequest.key to
|
|
112
|
-
* query the next page most efficiently. It will be empty if
|
|
113
|
-
* there are no more results.
|
|
114
|
-
*/
|
|
115
|
-
nextKey: Uint8Array;
|
|
116
|
-
/**
|
|
117
|
-
* total is total number of results available if PageRequest.count_total
|
|
118
|
-
* was set, its value is undefined otherwise
|
|
119
|
-
*/
|
|
120
|
-
total: bigint;
|
|
121
|
-
}
|
|
122
|
-
export interface PageResponseProtoMsg {
|
|
123
|
-
typeUrl: "/cosmos.base.query.v1beta1.PageResponse";
|
|
124
|
-
value: Uint8Array;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* PageResponse is to be embedded in gRPC response messages where the
|
|
128
|
-
* corresponding request message has used PageRequest.
|
|
129
|
-
*
|
|
130
|
-
* message SomeResponse {
|
|
131
|
-
* repeated Bar results = 1;
|
|
132
|
-
* PageResponse page = 2;
|
|
133
|
-
* }
|
|
134
|
-
*/
|
|
135
|
-
export interface PageResponseAmino {
|
|
136
|
-
/**
|
|
137
|
-
* next_key is the key to be passed to PageRequest.key to
|
|
138
|
-
* query the next page most efficiently. It will be empty if
|
|
139
|
-
* there are no more results.
|
|
140
|
-
*/
|
|
141
|
-
next_key?: string;
|
|
142
|
-
/**
|
|
143
|
-
* total is total number of results available if PageRequest.count_total
|
|
144
|
-
* was set, its value is undefined otherwise
|
|
145
|
-
*/
|
|
146
|
-
total?: string;
|
|
147
|
-
}
|
|
148
|
-
export interface PageResponseAminoMsg {
|
|
149
|
-
type: "cosmos-sdk/PageResponse";
|
|
150
|
-
value: PageResponseAmino;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* PageResponse is to be embedded in gRPC response messages where the
|
|
154
|
-
* corresponding request message has used PageRequest.
|
|
155
|
-
*
|
|
156
|
-
* message SomeResponse {
|
|
157
|
-
* repeated Bar results = 1;
|
|
158
|
-
* PageResponse page = 2;
|
|
159
|
-
* }
|
|
160
|
-
*/
|
|
161
|
-
export interface PageResponseSDKType {
|
|
162
|
-
next_key: Uint8Array;
|
|
163
|
-
total: bigint;
|
|
164
|
-
}
|
|
165
|
-
export declare const PageRequest: {
|
|
166
|
-
typeUrl: string;
|
|
167
|
-
encode(message: PageRequest, writer?: BinaryWriter): BinaryWriter;
|
|
168
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PageRequest;
|
|
169
|
-
fromPartial(object: Partial<PageRequest>): PageRequest;
|
|
170
|
-
fromAmino(object: PageRequestAmino): PageRequest;
|
|
171
|
-
toAmino(message: PageRequest): PageRequestAmino;
|
|
172
|
-
fromAminoMsg(object: PageRequestAminoMsg): PageRequest;
|
|
173
|
-
toAminoMsg(message: PageRequest): PageRequestAminoMsg;
|
|
174
|
-
fromProtoMsg(message: PageRequestProtoMsg): PageRequest;
|
|
175
|
-
toProto(message: PageRequest): Uint8Array;
|
|
176
|
-
toProtoMsg(message: PageRequest): PageRequestProtoMsg;
|
|
177
|
-
};
|
|
178
|
-
export declare const PageResponse: {
|
|
179
|
-
typeUrl: string;
|
|
180
|
-
encode(message: PageResponse, writer?: BinaryWriter): BinaryWriter;
|
|
181
|
-
decode(input: BinaryReader | Uint8Array, length?: number): PageResponse;
|
|
182
|
-
fromPartial(object: Partial<PageResponse>): PageResponse;
|
|
183
|
-
fromAmino(object: PageResponseAmino): PageResponse;
|
|
184
|
-
toAmino(message: PageResponse): PageResponseAmino;
|
|
185
|
-
fromAminoMsg(object: PageResponseAminoMsg): PageResponse;
|
|
186
|
-
toAminoMsg(message: PageResponse): PageResponseAminoMsg;
|
|
187
|
-
fromProtoMsg(message: PageResponseProtoMsg): PageResponse;
|
|
188
|
-
toProto(message: PageResponse): Uint8Array;
|
|
189
|
-
toProtoMsg(message: PageResponse): PageResponseProtoMsg;
|
|
190
|
-
};
|