ault-sdk-ts 0.0.2-alpha.8 → 0.1.0
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/README.md +375 -50
- package/dist/agent/attach.d.ts +26 -0
- package/dist/agent/sign-and-broadcast.d.ts +9 -2
- package/dist/agent/tx/clob.d.ts +8 -1
- package/dist/agent/tx-executor.d.ts +24 -2
- package/dist/client.d.ts +6 -7
- package/dist/core/clob-gas.d.ts +28 -0
- package/dist/core/clob-msgs.d.ts +31 -5
- package/dist/core/clob-responses.d.ts +20 -0
- package/dist/core/cloid.d.ts +4 -0
- package/dist/core/errors.d.ts +79 -0
- package/dist/core/manifest-fetcher.d.ts +12 -0
- package/dist/core/manifest-resolver.d.ts +121 -0
- package/dist/core/manifest-types.d.ts +102 -0
- package/dist/core/network.d.ts +42 -13
- package/dist/eip712/msg.generated.d.ts +26 -10
- package/dist/eip712/registry.d.ts +2 -0
- package/dist/eip712/sign-and-broadcast.d.ts +27 -3
- package/dist/high-level/cloid-lookup.d.ts +9 -0
- package/dist/high-level/create-client.d.ts +15 -11
- package/dist/high-level/tx/accountx.d.ts +3 -0
- package/dist/high-level/tx/agent.d.ts +1 -1
- package/dist/high-level/tx/clob.d.ts +1 -1
- package/dist/high-level/tx/context.d.ts +8 -0
- package/dist/high-level/tx/license.d.ts +1 -1
- package/dist/high-level/tx/miner.d.ts +1 -1
- package/dist/high-level/tx/reward.d.ts +1 -1
- package/dist/high-level/tx/staking.d.ts +1 -1
- package/dist/high-level/tx-executor.d.ts +23 -3
- package/dist/high-level/types.d.ts +356 -100
- package/dist/high-level-client.d.ts +1 -1
- package/dist/index.cjs +16101 -7908
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +15860 -7678
- package/dist/index.js.map +1 -1
- package/dist/proto/gen/ault/accountx/v1/genesis.d.ts +38 -0
- package/dist/proto/gen/ault/accountx/v1/params.d.ts +32 -0
- package/dist/proto/gen/ault/accountx/v1/query.d.ts +88 -0
- package/dist/proto/gen/ault/accountx/v1/tx.d.ts +52 -0
- package/dist/proto/gen/ault/agent/v1/tx.d.ts +4 -5
- package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +6 -5
- package/dist/proto/gen/ault/clob/v1/query.d.ts +14 -0
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +30 -3
- package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
- package/dist/proto/gen/ault/license/v1/genesis.d.ts +1 -26
- package/dist/proto/gen/ault/license/v1/license.d.ts +0 -26
- package/dist/proto/gen/ault/license/v1/query.d.ts +44 -18
- package/dist/proto/gen/ault/market/v1/market.d.ts +1 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +9 -0
- package/dist/proto/gen/ault/miner/v1/genesis.d.ts +52 -84
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +10 -45
- package/dist/proto/gen/ault/miner/v1/query.d.ts +0 -13
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +2 -2
- package/dist/proto/gen/ault/spot/v1/order.d.ts +12 -4
- package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
- package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +3 -3
- package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +2 -2
- package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +24 -15
- package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +1 -16
- package/dist/proto/gen/cosmos/bank/v1beta1/bank.d.ts +119 -0
- package/dist/proto/gen/cosmos/bank/v1beta1/query.d.ts +264 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/query.d.ts +203 -0
- package/dist/proto/gen/cosmos/query/v1/query.d.ts +1 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/query.d.ts +275 -0
- package/dist/proto/gen/google/api/http.d.ts +20 -28
- package/dist/proto/gen/tendermint/abci/types.d.ts +23 -0
- package/dist/proto/tx-decode.d.ts +18 -0
- package/dist/rest/accountx.d.ts +8 -0
- package/dist/rest/bank.d.ts +15 -0
- package/dist/rest/clob.d.ts +9 -1
- package/dist/rest/context.d.ts +4 -4
- package/dist/rest/dex-types.generated.d.ts +363 -120
- package/dist/rest/dex.d.ts +6 -0
- package/dist/rest/dex.generated.d.ts +599 -83
- package/dist/rest/feemarket.d.ts +114 -0
- package/dist/rest/license.d.ts +21 -59
- package/dist/rest/miner.d.ts +16 -46
- package/dist/rest/portfolio.d.ts +103 -0
- package/dist/rest/staking.d.ts +14 -28
- package/dist/rest/tokenregistry.d.ts +3 -1
- package/dist/rest/types.d.ts +82 -858
- package/dist/utils/address.d.ts +2 -0
- package/dist/utils/opaque-id.d.ts +25 -0
- package/dist/utils/tx-hash.d.ts +1 -0
- package/dist/ws/client.d.ts +45 -5
- package/dist/ws/types.d.ts +377 -34
- package/package.json +2 -1
- package/dist/agent/create-agent-client.d.ts +0 -3
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
+
import { Metadata, Params, SendEnabled } from "./bank";
|
|
5
|
+
export declare const protobufPackage = "cosmos.bank.v1beta1";
|
|
6
|
+
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
|
|
7
|
+
export interface QueryBalanceRequest {
|
|
8
|
+
/** address is the address to query balances for. */
|
|
9
|
+
address: string;
|
|
10
|
+
/** denom is the coin denom to query balances for. */
|
|
11
|
+
denom: string;
|
|
12
|
+
}
|
|
13
|
+
/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */
|
|
14
|
+
export interface QueryBalanceResponse {
|
|
15
|
+
/** balance is the balance of the coin. */
|
|
16
|
+
balance: Coin | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** QueryBalanceRequest is the request type for the Query/AllBalances RPC method. */
|
|
19
|
+
export interface QueryAllBalancesRequest {
|
|
20
|
+
/** address is the address to query balances for. */
|
|
21
|
+
address: string;
|
|
22
|
+
/** pagination defines an optional pagination for the request. */
|
|
23
|
+
pagination: PageRequest | undefined;
|
|
24
|
+
/** resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. */
|
|
25
|
+
resolveDenom: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
|
|
29
|
+
* method.
|
|
30
|
+
*/
|
|
31
|
+
export interface QueryAllBalancesResponse {
|
|
32
|
+
/** balances is the balances of all the coins. */
|
|
33
|
+
balances: Coin[];
|
|
34
|
+
/** pagination defines the pagination in the response. */
|
|
35
|
+
pagination: PageResponse | undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* QuerySpendableBalancesRequest defines the gRPC request structure for querying
|
|
39
|
+
* an account's spendable balances.
|
|
40
|
+
*/
|
|
41
|
+
export interface QuerySpendableBalancesRequest {
|
|
42
|
+
/** address is the address to query spendable balances for. */
|
|
43
|
+
address: string;
|
|
44
|
+
/** pagination defines an optional pagination for the request. */
|
|
45
|
+
pagination: PageRequest | undefined;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* QuerySpendableBalancesResponse defines the gRPC response structure for querying
|
|
49
|
+
* an account's spendable balances.
|
|
50
|
+
*/
|
|
51
|
+
export interface QuerySpendableBalancesResponse {
|
|
52
|
+
/** balances is the spendable balances of all the coins. */
|
|
53
|
+
balances: Coin[];
|
|
54
|
+
/** pagination defines the pagination in the response. */
|
|
55
|
+
pagination: PageResponse | undefined;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* QuerySpendableBalanceByDenomRequest defines the gRPC request structure for
|
|
59
|
+
* querying an account's spendable balance for a specific denom.
|
|
60
|
+
*/
|
|
61
|
+
export interface QuerySpendableBalanceByDenomRequest {
|
|
62
|
+
/** address is the address to query balances for. */
|
|
63
|
+
address: string;
|
|
64
|
+
/** denom is the coin denom to query balances for. */
|
|
65
|
+
denom: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* QuerySpendableBalanceByDenomResponse defines the gRPC response structure for
|
|
69
|
+
* querying an account's spendable balance for a specific denom.
|
|
70
|
+
*/
|
|
71
|
+
export interface QuerySpendableBalanceByDenomResponse {
|
|
72
|
+
/** balance is the balance of the coin. */
|
|
73
|
+
balance: Coin | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
|
|
77
|
+
* method.
|
|
78
|
+
*/
|
|
79
|
+
export interface QueryTotalSupplyRequest {
|
|
80
|
+
/** pagination defines an optional pagination for the request. */
|
|
81
|
+
pagination: PageRequest | undefined;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC
|
|
85
|
+
* method
|
|
86
|
+
*/
|
|
87
|
+
export interface QueryTotalSupplyResponse {
|
|
88
|
+
/** supply is the supply of the coins */
|
|
89
|
+
supply: Coin[];
|
|
90
|
+
/** pagination defines the pagination in the response. */
|
|
91
|
+
pagination: PageResponse | undefined;
|
|
92
|
+
}
|
|
93
|
+
/** QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. */
|
|
94
|
+
export interface QuerySupplyOfRequest {
|
|
95
|
+
/** denom is the coin denom to query balances for. */
|
|
96
|
+
denom: string;
|
|
97
|
+
}
|
|
98
|
+
/** QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. */
|
|
99
|
+
export interface QuerySupplyOfResponse {
|
|
100
|
+
/** amount is the supply of the coin. */
|
|
101
|
+
amount: Coin | undefined;
|
|
102
|
+
}
|
|
103
|
+
/** QueryParamsRequest defines the request type for querying x/bank parameters. */
|
|
104
|
+
export interface QueryParamsRequest {
|
|
105
|
+
}
|
|
106
|
+
/** QueryParamsResponse defines the response type for querying x/bank parameters. */
|
|
107
|
+
export interface QueryParamsResponse {
|
|
108
|
+
/** params provides the parameters of the bank module. */
|
|
109
|
+
params: Params | undefined;
|
|
110
|
+
}
|
|
111
|
+
/** QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. */
|
|
112
|
+
export interface QueryDenomsMetadataRequest {
|
|
113
|
+
/** pagination defines an optional pagination for the request. */
|
|
114
|
+
pagination: PageRequest | undefined;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC
|
|
118
|
+
* method.
|
|
119
|
+
*/
|
|
120
|
+
export interface QueryDenomsMetadataResponse {
|
|
121
|
+
/** metadata provides the client information for all the registered tokens. */
|
|
122
|
+
metadatas: Metadata[];
|
|
123
|
+
/** pagination defines the pagination in the response. */
|
|
124
|
+
pagination: PageResponse | undefined;
|
|
125
|
+
}
|
|
126
|
+
/** QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. */
|
|
127
|
+
export interface QueryDenomMetadataRequest {
|
|
128
|
+
/** denom is the coin denom to query the metadata for. */
|
|
129
|
+
denom: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC
|
|
133
|
+
* method.
|
|
134
|
+
*/
|
|
135
|
+
export interface QueryDenomMetadataResponse {
|
|
136
|
+
/** metadata describes and provides all the client information for the requested token. */
|
|
137
|
+
metadata: Metadata | undefined;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method.
|
|
141
|
+
* Identical with QueryDenomMetadataRequest but receives denom as query string.
|
|
142
|
+
*/
|
|
143
|
+
export interface QueryDenomMetadataByQueryStringRequest {
|
|
144
|
+
/** denom is the coin denom to query the metadata for. */
|
|
145
|
+
denom: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC
|
|
149
|
+
* method. Identical with QueryDenomMetadataResponse but receives denom as query string in request.
|
|
150
|
+
*/
|
|
151
|
+
export interface QueryDenomMetadataByQueryStringResponse {
|
|
152
|
+
/** metadata describes and provides all the client information for the requested token. */
|
|
153
|
+
metadata: Metadata | undefined;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query,
|
|
157
|
+
* which queries for a paginated set of all account holders of a particular
|
|
158
|
+
* denomination.
|
|
159
|
+
*/
|
|
160
|
+
export interface QueryDenomOwnersRequest {
|
|
161
|
+
/** denom defines the coin denomination to query all account holders for. */
|
|
162
|
+
denom: string;
|
|
163
|
+
/** pagination defines an optional pagination for the request. */
|
|
164
|
+
pagination: PageRequest | undefined;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* DenomOwner defines structure representing an account that owns or holds a
|
|
168
|
+
* particular denominated token. It contains the account address and account
|
|
169
|
+
* balance of the denominated token.
|
|
170
|
+
*/
|
|
171
|
+
export interface DenomOwner {
|
|
172
|
+
/** address defines the address that owns a particular denomination. */
|
|
173
|
+
address: string;
|
|
174
|
+
/** balance is the balance of the denominated coin for an account. */
|
|
175
|
+
balance: Coin | undefined;
|
|
176
|
+
}
|
|
177
|
+
/** QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. */
|
|
178
|
+
export interface QueryDenomOwnersResponse {
|
|
179
|
+
denomOwners: DenomOwner[];
|
|
180
|
+
/** pagination defines the pagination in the response. */
|
|
181
|
+
pagination: PageResponse | undefined;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query,
|
|
185
|
+
* which queries for a paginated set of all account holders of a particular
|
|
186
|
+
* denomination.
|
|
187
|
+
*/
|
|
188
|
+
export interface QueryDenomOwnersByQueryRequest {
|
|
189
|
+
/** denom defines the coin denomination to query all account holders for. */
|
|
190
|
+
denom: string;
|
|
191
|
+
/** pagination defines an optional pagination for the request. */
|
|
192
|
+
pagination: PageRequest | undefined;
|
|
193
|
+
}
|
|
194
|
+
/** QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. */
|
|
195
|
+
export interface QueryDenomOwnersByQueryResponse {
|
|
196
|
+
denomOwners: DenomOwner[];
|
|
197
|
+
/** pagination defines the pagination in the response. */
|
|
198
|
+
pagination: PageResponse | undefined;
|
|
199
|
+
}
|
|
200
|
+
/** QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. */
|
|
201
|
+
export interface QuerySendEnabledRequest {
|
|
202
|
+
/** denoms is the specific denoms you want look up. Leave empty to get all entries. */
|
|
203
|
+
denoms: string[];
|
|
204
|
+
/**
|
|
205
|
+
* pagination defines an optional pagination for the request. This field is
|
|
206
|
+
* only read if the denoms field is empty.
|
|
207
|
+
*/
|
|
208
|
+
pagination: PageRequest | undefined;
|
|
209
|
+
}
|
|
210
|
+
/** QuerySendEnabledResponse defines the RPC response of a SendEnable query. */
|
|
211
|
+
export interface QuerySendEnabledResponse {
|
|
212
|
+
sendEnabled: SendEnabled[];
|
|
213
|
+
/**
|
|
214
|
+
* pagination defines the pagination in the response. This field is only
|
|
215
|
+
* populated if the denoms field in the request is empty.
|
|
216
|
+
*/
|
|
217
|
+
pagination: PageResponse | undefined;
|
|
218
|
+
}
|
|
219
|
+
export declare const QueryBalanceRequest: MessageFns<QueryBalanceRequest>;
|
|
220
|
+
export declare const QueryBalanceResponse: MessageFns<QueryBalanceResponse>;
|
|
221
|
+
export declare const QueryAllBalancesRequest: MessageFns<QueryAllBalancesRequest>;
|
|
222
|
+
export declare const QueryAllBalancesResponse: MessageFns<QueryAllBalancesResponse>;
|
|
223
|
+
export declare const QuerySpendableBalancesRequest: MessageFns<QuerySpendableBalancesRequest>;
|
|
224
|
+
export declare const QuerySpendableBalancesResponse: MessageFns<QuerySpendableBalancesResponse>;
|
|
225
|
+
export declare const QuerySpendableBalanceByDenomRequest: MessageFns<QuerySpendableBalanceByDenomRequest>;
|
|
226
|
+
export declare const QuerySpendableBalanceByDenomResponse: MessageFns<QuerySpendableBalanceByDenomResponse>;
|
|
227
|
+
export declare const QueryTotalSupplyRequest: MessageFns<QueryTotalSupplyRequest>;
|
|
228
|
+
export declare const QueryTotalSupplyResponse: MessageFns<QueryTotalSupplyResponse>;
|
|
229
|
+
export declare const QuerySupplyOfRequest: MessageFns<QuerySupplyOfRequest>;
|
|
230
|
+
export declare const QuerySupplyOfResponse: MessageFns<QuerySupplyOfResponse>;
|
|
231
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
232
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
233
|
+
export declare const QueryDenomsMetadataRequest: MessageFns<QueryDenomsMetadataRequest>;
|
|
234
|
+
export declare const QueryDenomsMetadataResponse: MessageFns<QueryDenomsMetadataResponse>;
|
|
235
|
+
export declare const QueryDenomMetadataRequest: MessageFns<QueryDenomMetadataRequest>;
|
|
236
|
+
export declare const QueryDenomMetadataResponse: MessageFns<QueryDenomMetadataResponse>;
|
|
237
|
+
export declare const QueryDenomMetadataByQueryStringRequest: MessageFns<QueryDenomMetadataByQueryStringRequest>;
|
|
238
|
+
export declare const QueryDenomMetadataByQueryStringResponse: MessageFns<QueryDenomMetadataByQueryStringResponse>;
|
|
239
|
+
export declare const QueryDenomOwnersRequest: MessageFns<QueryDenomOwnersRequest>;
|
|
240
|
+
export declare const DenomOwner: MessageFns<DenomOwner>;
|
|
241
|
+
export declare const QueryDenomOwnersResponse: MessageFns<QueryDenomOwnersResponse>;
|
|
242
|
+
export declare const QueryDenomOwnersByQueryRequest: MessageFns<QueryDenomOwnersByQueryRequest>;
|
|
243
|
+
export declare const QueryDenomOwnersByQueryResponse: MessageFns<QueryDenomOwnersByQueryResponse>;
|
|
244
|
+
export declare const QuerySendEnabledRequest: MessageFns<QuerySendEnabledRequest>;
|
|
245
|
+
export declare const QuerySendEnabledResponse: MessageFns<QuerySendEnabledResponse>;
|
|
246
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
247
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
248
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
249
|
+
} : Partial<T>;
|
|
250
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
251
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
252
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
253
|
+
} & {
|
|
254
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
255
|
+
};
|
|
256
|
+
export interface MessageFns<T> {
|
|
257
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
258
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
259
|
+
fromJSON(object: any): T;
|
|
260
|
+
toJSON(message: T): unknown;
|
|
261
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
262
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
263
|
+
}
|
|
264
|
+
export {};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
3
|
+
import { DecCoin } from "../../base/v1beta1/coin";
|
|
4
|
+
import { DelegationDelegatorReward, Params, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent } from "./distribution";
|
|
5
|
+
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
6
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
7
|
+
export interface QueryParamsRequest {
|
|
8
|
+
}
|
|
9
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
10
|
+
export interface QueryParamsResponse {
|
|
11
|
+
/** params defines the parameters of the module. */
|
|
12
|
+
params: Params | undefined;
|
|
13
|
+
}
|
|
14
|
+
/** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
|
|
15
|
+
export interface QueryValidatorDistributionInfoRequest {
|
|
16
|
+
/** validator_address defines the validator address to query for. */
|
|
17
|
+
validatorAddress: string;
|
|
18
|
+
}
|
|
19
|
+
/** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
|
|
20
|
+
export interface QueryValidatorDistributionInfoResponse {
|
|
21
|
+
/** operator_address defines the validator operator address. */
|
|
22
|
+
operatorAddress: string;
|
|
23
|
+
/** self_bond_rewards defines the self delegations rewards. */
|
|
24
|
+
selfBondRewards: DecCoin[];
|
|
25
|
+
/** commission defines the commission the validator received. */
|
|
26
|
+
commission: DecCoin[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
|
30
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
|
31
|
+
*/
|
|
32
|
+
export interface QueryValidatorOutstandingRewardsRequest {
|
|
33
|
+
/** validator_address defines the validator address to query for. */
|
|
34
|
+
validatorAddress: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* QueryValidatorOutstandingRewardsResponse is the response type for the
|
|
38
|
+
* Query/ValidatorOutstandingRewards RPC method.
|
|
39
|
+
*/
|
|
40
|
+
export interface QueryValidatorOutstandingRewardsResponse {
|
|
41
|
+
rewards: ValidatorOutstandingRewards | undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* QueryValidatorCommissionRequest is the request type for the
|
|
45
|
+
* Query/ValidatorCommission RPC method
|
|
46
|
+
*/
|
|
47
|
+
export interface QueryValidatorCommissionRequest {
|
|
48
|
+
/** validator_address defines the validator address to query for. */
|
|
49
|
+
validatorAddress: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* QueryValidatorCommissionResponse is the response type for the
|
|
53
|
+
* Query/ValidatorCommission RPC method
|
|
54
|
+
*/
|
|
55
|
+
export interface QueryValidatorCommissionResponse {
|
|
56
|
+
/** commission defines the commission the validator received. */
|
|
57
|
+
commission: ValidatorAccumulatedCommission | undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* QueryValidatorSlashesRequest is the request type for the
|
|
61
|
+
* Query/ValidatorSlashes RPC method
|
|
62
|
+
*/
|
|
63
|
+
export interface QueryValidatorSlashesRequest {
|
|
64
|
+
/** validator_address defines the validator address to query for. */
|
|
65
|
+
validatorAddress: string;
|
|
66
|
+
/** starting_height defines the optional starting height to query the slashes. */
|
|
67
|
+
startingHeight: bigint;
|
|
68
|
+
/** starting_height defines the optional ending height to query the slashes. */
|
|
69
|
+
endingHeight: bigint;
|
|
70
|
+
/** pagination defines an optional pagination for the request. */
|
|
71
|
+
pagination: PageRequest | undefined;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* QueryValidatorSlashesResponse is the response type for the
|
|
75
|
+
* Query/ValidatorSlashes RPC method.
|
|
76
|
+
*/
|
|
77
|
+
export interface QueryValidatorSlashesResponse {
|
|
78
|
+
/** slashes defines the slashes the validator received. */
|
|
79
|
+
slashes: ValidatorSlashEvent[];
|
|
80
|
+
/** pagination defines the pagination in the response. */
|
|
81
|
+
pagination: PageResponse | undefined;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* QueryDelegationRewardsRequest is the request type for the
|
|
85
|
+
* Query/DelegationRewards RPC method.
|
|
86
|
+
*/
|
|
87
|
+
export interface QueryDelegationRewardsRequest {
|
|
88
|
+
/** delegator_address defines the delegator address to query for. */
|
|
89
|
+
delegatorAddress: string;
|
|
90
|
+
/** validator_address defines the validator address to query for. */
|
|
91
|
+
validatorAddress: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* QueryDelegationRewardsResponse is the response type for the
|
|
95
|
+
* Query/DelegationRewards RPC method.
|
|
96
|
+
*/
|
|
97
|
+
export interface QueryDelegationRewardsResponse {
|
|
98
|
+
/** rewards defines the rewards accrued by a delegation. */
|
|
99
|
+
rewards: DecCoin[];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* QueryDelegationTotalRewardsRequest is the request type for the
|
|
103
|
+
* Query/DelegationTotalRewards RPC method.
|
|
104
|
+
*/
|
|
105
|
+
export interface QueryDelegationTotalRewardsRequest {
|
|
106
|
+
/** delegator_address defines the delegator address to query for. */
|
|
107
|
+
delegatorAddress: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* QueryDelegationTotalRewardsResponse is the response type for the
|
|
111
|
+
* Query/DelegationTotalRewards RPC method.
|
|
112
|
+
*/
|
|
113
|
+
export interface QueryDelegationTotalRewardsResponse {
|
|
114
|
+
/** rewards defines all the rewards accrued by a delegator. */
|
|
115
|
+
rewards: DelegationDelegatorReward[];
|
|
116
|
+
/** total defines the sum of all the rewards. */
|
|
117
|
+
total: DecCoin[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* QueryDelegatorValidatorsRequest is the request type for the
|
|
121
|
+
* Query/DelegatorValidators RPC method.
|
|
122
|
+
*/
|
|
123
|
+
export interface QueryDelegatorValidatorsRequest {
|
|
124
|
+
/** delegator_address defines the delegator address to query for. */
|
|
125
|
+
delegatorAddress: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* QueryDelegatorValidatorsResponse is the response type for the
|
|
129
|
+
* Query/DelegatorValidators RPC method.
|
|
130
|
+
*/
|
|
131
|
+
export interface QueryDelegatorValidatorsResponse {
|
|
132
|
+
/** validators defines the validators a delegator is delegating for. */
|
|
133
|
+
validators: string[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* QueryDelegatorWithdrawAddressRequest is the request type for the
|
|
137
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
|
138
|
+
*/
|
|
139
|
+
export interface QueryDelegatorWithdrawAddressRequest {
|
|
140
|
+
/** delegator_address defines the delegator address to query for. */
|
|
141
|
+
delegatorAddress: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* QueryDelegatorWithdrawAddressResponse is the response type for the
|
|
145
|
+
* Query/DelegatorWithdrawAddress RPC method.
|
|
146
|
+
*/
|
|
147
|
+
export interface QueryDelegatorWithdrawAddressResponse {
|
|
148
|
+
/** withdraw_address defines the delegator address to query for. */
|
|
149
|
+
withdrawAddress: string;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
|
|
153
|
+
* method.
|
|
154
|
+
*/
|
|
155
|
+
export interface QueryCommunityPoolRequest {
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* QueryCommunityPoolResponse is the response type for the Query/CommunityPool
|
|
159
|
+
* RPC method.
|
|
160
|
+
*/
|
|
161
|
+
export interface QueryCommunityPoolResponse {
|
|
162
|
+
/** pool defines community pool's coins. */
|
|
163
|
+
pool: DecCoin[];
|
|
164
|
+
}
|
|
165
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
166
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
167
|
+
export declare const QueryValidatorDistributionInfoRequest: MessageFns<QueryValidatorDistributionInfoRequest>;
|
|
168
|
+
export declare const QueryValidatorDistributionInfoResponse: MessageFns<QueryValidatorDistributionInfoResponse>;
|
|
169
|
+
export declare const QueryValidatorOutstandingRewardsRequest: MessageFns<QueryValidatorOutstandingRewardsRequest>;
|
|
170
|
+
export declare const QueryValidatorOutstandingRewardsResponse: MessageFns<QueryValidatorOutstandingRewardsResponse>;
|
|
171
|
+
export declare const QueryValidatorCommissionRequest: MessageFns<QueryValidatorCommissionRequest>;
|
|
172
|
+
export declare const QueryValidatorCommissionResponse: MessageFns<QueryValidatorCommissionResponse>;
|
|
173
|
+
export declare const QueryValidatorSlashesRequest: MessageFns<QueryValidatorSlashesRequest>;
|
|
174
|
+
export declare const QueryValidatorSlashesResponse: MessageFns<QueryValidatorSlashesResponse>;
|
|
175
|
+
export declare const QueryDelegationRewardsRequest: MessageFns<QueryDelegationRewardsRequest>;
|
|
176
|
+
export declare const QueryDelegationRewardsResponse: MessageFns<QueryDelegationRewardsResponse>;
|
|
177
|
+
export declare const QueryDelegationTotalRewardsRequest: MessageFns<QueryDelegationTotalRewardsRequest>;
|
|
178
|
+
export declare const QueryDelegationTotalRewardsResponse: MessageFns<QueryDelegationTotalRewardsResponse>;
|
|
179
|
+
export declare const QueryDelegatorValidatorsRequest: MessageFns<QueryDelegatorValidatorsRequest>;
|
|
180
|
+
export declare const QueryDelegatorValidatorsResponse: MessageFns<QueryDelegatorValidatorsResponse>;
|
|
181
|
+
export declare const QueryDelegatorWithdrawAddressRequest: MessageFns<QueryDelegatorWithdrawAddressRequest>;
|
|
182
|
+
export declare const QueryDelegatorWithdrawAddressResponse: MessageFns<QueryDelegatorWithdrawAddressResponse>;
|
|
183
|
+
export declare const QueryCommunityPoolRequest: MessageFns<QueryCommunityPoolRequest>;
|
|
184
|
+
export declare const QueryCommunityPoolResponse: MessageFns<QueryCommunityPoolResponse>;
|
|
185
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
186
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
187
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
188
|
+
} : Partial<T>;
|
|
189
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
190
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
191
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
192
|
+
} & {
|
|
193
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
194
|
+
};
|
|
195
|
+
export interface MessageFns<T> {
|
|
196
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
197
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
198
|
+
fromJSON(object: any): T;
|
|
199
|
+
toJSON(message: T): unknown;
|
|
200
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
201
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
202
|
+
}
|
|
203
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "cosmos.query.v1";
|