ault-sdk-ts 0.0.2-alpha.5

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.
Files changed (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +932 -0
  3. package/dist/agent/create-agent-client.d.ts +3 -0
  4. package/dist/agent/sign-and-broadcast.d.ts +38 -0
  5. package/dist/agent/tx/clob.d.ts +7 -0
  6. package/dist/agent/tx-executor.d.ts +17 -0
  7. package/dist/client.d.ts +61 -0
  8. package/dist/core/address.d.ts +14 -0
  9. package/dist/core/base64.d.ts +2 -0
  10. package/dist/core/clob-msgs.d.ts +33 -0
  11. package/dist/core/errors.d.ts +17 -0
  12. package/dist/core/http.d.ts +14 -0
  13. package/dist/core/network.d.ts +59 -0
  14. package/dist/core/pagination.d.ts +14 -0
  15. package/dist/core/query.d.ts +5 -0
  16. package/dist/core/with-status-fallback.d.ts +5 -0
  17. package/dist/eip712/builder.d.ts +45 -0
  18. package/dist/eip712/field-order.d.ts +2 -0
  19. package/dist/eip712/msg-encoders.generated.d.ts +1 -0
  20. package/dist/eip712/msg.generated.d.ts +109 -0
  21. package/dist/eip712/registry.d.ts +36 -0
  22. package/dist/eip712/registry.generated.d.ts +2 -0
  23. package/dist/eip712/sign-and-broadcast.d.ts +55 -0
  24. package/dist/eip712/signers.d.ts +83 -0
  25. package/dist/eip712/types.d.ts +58 -0
  26. package/dist/high-level/address-utils.d.ts +2 -0
  27. package/dist/high-level/create-client.d.ts +26 -0
  28. package/dist/high-level/query-helpers.d.ts +3 -0
  29. package/dist/high-level/signer.d.ts +6 -0
  30. package/dist/high-level/tx/agent.d.ts +3 -0
  31. package/dist/high-level/tx/authority.d.ts +3 -0
  32. package/dist/high-level/tx/clob.d.ts +3 -0
  33. package/dist/high-level/tx/context.d.ts +5 -0
  34. package/dist/high-level/tx/license.d.ts +3 -0
  35. package/dist/high-level/tx/market.d.ts +3 -0
  36. package/dist/high-level/tx/miner.d.ts +3 -0
  37. package/dist/high-level/tx/ratelimit.d.ts +3 -0
  38. package/dist/high-level/tx/reward.d.ts +3 -0
  39. package/dist/high-level/tx/staking.d.ts +3 -0
  40. package/dist/high-level/tx/tokenregistry.d.ts +3 -0
  41. package/dist/high-level/tx-executor.d.ts +18 -0
  42. package/dist/high-level/types.d.ts +477 -0
  43. package/dist/high-level-client.d.ts +2 -0
  44. package/dist/index.cjs +18434 -0
  45. package/dist/index.cjs.map +1 -0
  46. package/dist/index.d.ts +38 -0
  47. package/dist/index.js +18162 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/proto/duration-json.d.ts +6 -0
  50. package/dist/proto/gen/amino/amino.d.ts +1 -0
  51. package/dist/proto/gen/ault/agent/v1/agent.d.ts +63 -0
  52. package/dist/proto/gen/ault/agent/v1/genesis.d.ts +44 -0
  53. package/dist/proto/gen/ault/agent/v1/params.d.ts +42 -0
  54. package/dist/proto/gen/ault/agent/v1/query.d.ts +73 -0
  55. package/dist/proto/gen/ault/agent/v1/tx.d.ts +91 -0
  56. package/dist/proto/gen/ault/authority/v1/authority.d.ts +15 -0
  57. package/dist/proto/gen/ault/authority/v1/genesis.d.ts +36 -0
  58. package/dist/proto/gen/ault/authority/v1/query.d.ts +53 -0
  59. package/dist/proto/gen/ault/authority/v1/tx.d.ts +50 -0
  60. package/dist/proto/gen/ault/clob/v1/fee.d.ts +37 -0
  61. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +56 -0
  62. package/dist/proto/gen/ault/clob/v1/order_book.d.ts +32 -0
  63. package/dist/proto/gen/ault/clob/v1/params.d.ts +29 -0
  64. package/dist/proto/gen/ault/clob/v1/query.d.ts +56 -0
  65. package/dist/proto/gen/ault/clob/v1/tx.d.ts +116 -0
  66. package/dist/proto/gen/ault/license/v1/genesis.d.ts +140 -0
  67. package/dist/proto/gen/ault/license/v1/license.d.ts +151 -0
  68. package/dist/proto/gen/ault/license/v1/query.d.ts +273 -0
  69. package/dist/proto/gen/ault/license/v1/tx.d.ts +227 -0
  70. package/dist/proto/gen/ault/market/v1/genesis.d.ts +28 -0
  71. package/dist/proto/gen/ault/market/v1/market.d.ts +66 -0
  72. package/dist/proto/gen/ault/market/v1/params.d.ts +34 -0
  73. package/dist/proto/gen/ault/market/v1/query.d.ts +48 -0
  74. package/dist/proto/gen/ault/market/v1/tx.d.ts +87 -0
  75. package/dist/proto/gen/ault/miner/v1/genesis.d.ts +166 -0
  76. package/dist/proto/gen/ault/miner/v1/miner.d.ts +232 -0
  77. package/dist/proto/gen/ault/miner/v1/query.d.ts +254 -0
  78. package/dist/proto/gen/ault/miner/v1/tx.d.ts +207 -0
  79. package/dist/proto/gen/ault/ratelimit/v1/genesis.d.ts +27 -0
  80. package/dist/proto/gen/ault/ratelimit/v1/params.d.ts +35 -0
  81. package/dist/proto/gen/ault/ratelimit/v1/query.d.ts +42 -0
  82. package/dist/proto/gen/ault/ratelimit/v1/tx.d.ts +32 -0
  83. package/dist/proto/gen/ault/reward/v1/genesis.d.ts +67 -0
  84. package/dist/proto/gen/ault/reward/v1/query.d.ts +93 -0
  85. package/dist/proto/gen/ault/reward/v1/reward.d.ts +53 -0
  86. package/dist/proto/gen/ault/reward/v1/tx.d.ts +120 -0
  87. package/dist/proto/gen/ault/spot/v1/genesis.d.ts +26 -0
  88. package/dist/proto/gen/ault/spot/v1/order.d.ts +66 -0
  89. package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +34 -0
  90. package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +77 -0
  91. package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +118 -0
  92. package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +132 -0
  93. package/dist/proto/gen/cosmos/base/query/v1beta1/pagination.d.ts +82 -0
  94. package/dist/proto/gen/cosmos/base/v1beta1/coin.d.ts +59 -0
  95. package/dist/proto/gen/cosmos/distribution/v1beta1/distribution.d.ts +162 -0
  96. package/dist/proto/gen/cosmos/distribution/v1beta1/tx.d.ts +140 -0
  97. package/dist/proto/gen/cosmos/msg/v1/msg.d.ts +1 -0
  98. package/dist/proto/gen/cosmos/staking/v1beta1/staking.d.ts +310 -0
  99. package/dist/proto/gen/cosmos/staking/v1beta1/tx.d.ts +144 -0
  100. package/dist/proto/gen/cosmos_proto/cosmos.d.ts +80 -0
  101. package/dist/proto/gen/gogoproto/gogo.d.ts +1 -0
  102. package/dist/proto/gen/google/api/annotations.d.ts +1 -0
  103. package/dist/proto/gen/google/api/http.d.ts +379 -0
  104. package/dist/proto/gen/google/protobuf/any.d.ts +144 -0
  105. package/dist/proto/gen/google/protobuf/descriptor.d.ts +1285 -0
  106. package/dist/proto/gen/google/protobuf/duration.d.ts +99 -0
  107. package/dist/proto/gen/google/protobuf/timestamp.d.ts +128 -0
  108. package/dist/proto/gen/tendermint/abci/types.d.ts +507 -0
  109. package/dist/proto/gen/tendermint/crypto/keys.d.ts +27 -0
  110. package/dist/proto/gen/tendermint/crypto/proof.d.ts +57 -0
  111. package/dist/proto/gen/tendermint/types/params.d.ts +112 -0
  112. package/dist/proto/gen/tendermint/types/types.d.ts +197 -0
  113. package/dist/proto/gen/tendermint/types/validator.d.ts +54 -0
  114. package/dist/proto/gen/tendermint/version/types.d.ts +41 -0
  115. package/dist/proto/tx-encode.d.ts +78 -0
  116. package/dist/rest/agent.d.ts +12 -0
  117. package/dist/rest/authority.d.ts +12 -0
  118. package/dist/rest/clob.d.ts +11 -0
  119. package/dist/rest/context.d.ts +22 -0
  120. package/dist/rest/dex-fetcher.d.ts +10 -0
  121. package/dist/rest/dex-types.generated.d.ts +780 -0
  122. package/dist/rest/dex.d.ts +34 -0
  123. package/dist/rest/dex.generated.d.ts +1381 -0
  124. package/dist/rest/license.d.ts +79 -0
  125. package/dist/rest/market.d.ts +11 -0
  126. package/dist/rest/miner.d.ts +59 -0
  127. package/dist/rest/ratelimit.d.ts +7 -0
  128. package/dist/rest/reward.d.ts +25 -0
  129. package/dist/rest/staking.d.ts +38 -0
  130. package/dist/rest/tokenregistry.d.ts +11 -0
  131. package/dist/rest/types.d.ts +871 -0
  132. package/dist/utils/address.d.ts +6 -0
  133. package/dist/utils/chain-id.d.ts +1 -0
  134. package/dist/utils/cosmos-dec.d.ts +2 -0
  135. package/dist/ws/client.d.ts +37 -0
  136. package/dist/ws/index.d.ts +5 -0
  137. package/dist/ws/types.d.ts +66 -0
  138. package/package.json +103 -0
@@ -0,0 +1,254 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
3
+ import { EpochInfo, MiningDelegation, OperatorInfo, Params } from "./miner";
4
+ export declare const protobufPackage = "ault.miner.v1";
5
+ /** QueryEpochRequest is the request for Query/Epoch */
6
+ export interface QueryEpochRequest {
7
+ }
8
+ /** QueryEpochResponse is the response for Query/Epoch */
9
+ export interface QueryEpochResponse {
10
+ /** epoch is the current epoch number */
11
+ epoch: bigint;
12
+ /** seed for current epoch (32 bytes) */
13
+ seed: Uint8Array;
14
+ /** threshold for winning (Q.128 fixed point as 32 bytes) */
15
+ threshold: Uint8Array;
16
+ }
17
+ /** QueryEpochStartTimeRequest is the request for Query/EpochStartTime */
18
+ export interface QueryEpochStartTimeRequest {
19
+ }
20
+ /** QueryEpochStartTimeResponse is the response for Query/EpochStartTime */
21
+ export interface QueryEpochStartTimeResponse {
22
+ /** epoch_start_time is the epoch start time in Unix seconds (UTC) */
23
+ epochStartTime: bigint;
24
+ }
25
+ /** QueryLicenseMinerInfoRequest is the request for Query/LicenseMinerInfo */
26
+ export interface QueryLicenseMinerInfoRequest {
27
+ /** license_id to query */
28
+ licenseId: bigint;
29
+ }
30
+ /** QueryLicenseMinerInfoResponse is the response for Query/LicenseMinerInfo */
31
+ export interface QueryLicenseMinerInfoResponse {
32
+ /** vrf_pubkey registered for this license */
33
+ vrfPubkey: Uint8Array;
34
+ /** last_submit_epoch is the last epoch this license submitted work */
35
+ lastSubmitEpoch: bigint;
36
+ /** eligible_now indicates if license can mine now */
37
+ eligibleNow: boolean;
38
+ /** quarantined_local indicates miner-local quarantine flag */
39
+ quarantinedLocal: boolean;
40
+ /** quarantined_source indicates quarantine per x/license */
41
+ quarantinedSource: boolean;
42
+ /** all_time_credits is the cumulative count of successful work submissions */
43
+ allTimeCredits: bigint;
44
+ /**
45
+ * all_time_payouts is the cumulative amount paid out to this license (sdk.Int
46
+ * string)
47
+ */
48
+ allTimePayouts: string;
49
+ }
50
+ /** QueryBeaconRequest is the request for Query/Beacon */
51
+ export interface QueryBeaconRequest {
52
+ /** epoch to query */
53
+ epoch: bigint;
54
+ }
55
+ /** QueryBeaconResponse is the response for Query/Beacon */
56
+ export interface QueryBeaconResponse {
57
+ /** r is the beacon value R (32 bytes) */
58
+ r: Uint8Array;
59
+ /** finalized indicates if beacon is finalized */
60
+ finalized: boolean;
61
+ }
62
+ /** QueryParamsRequest is the request for Query/Params */
63
+ export interface QueryParamsRequest {
64
+ }
65
+ /** QueryParamsResponse is the response for Query/Params */
66
+ export interface QueryParamsResponse {
67
+ /** params contains all module parameters */
68
+ params: Params | undefined;
69
+ }
70
+ /** QueryEmissionInfoRequest is the request for Query/EmissionInfo */
71
+ export interface QueryEmissionInfoRequest {
72
+ }
73
+ /** QueryEmissionInfoResponse is the response for Query/EmissionInfo */
74
+ export interface QueryEmissionInfoResponse {
75
+ /** current_year is the current emission year (1-10) */
76
+ currentYear: number;
77
+ /** annual_emission for the current year */
78
+ annualEmission: string;
79
+ /** monthly_emission for the current year */
80
+ monthlyEmission: string;
81
+ /** daily_emission for the current year */
82
+ dailyEmission: string;
83
+ /** cumulative_emitted since genesis (epoch-based calculation) */
84
+ cumulativeEmitted: string;
85
+ /**
86
+ * epochs_until_next_year shows how many epochs remain in current emission
87
+ * year
88
+ */
89
+ epochsUntilNextYear: bigint;
90
+ /** current_epoch is the current epoch number */
91
+ currentEpoch: bigint;
92
+ /** epochs_per_year is the configured number of epochs per emission year */
93
+ epochsPerYear: bigint;
94
+ }
95
+ /** QueryEmissionScheduleRequest is the request for Query/EmissionSchedule */
96
+ export interface QueryEmissionScheduleRequest {
97
+ }
98
+ /** YearEmission is an entry in the emission schedule */
99
+ export interface YearEmission {
100
+ /** year number */
101
+ year: number;
102
+ /** annual_emission for this year */
103
+ annualEmission: string;
104
+ /** monthly_emission for this year */
105
+ monthlyEmission: string;
106
+ /** daily_emission for this year */
107
+ dailyEmission: string;
108
+ }
109
+ /** QueryEmissionScheduleResponse is the response for Query/EmissionSchedule */
110
+ export interface QueryEmissionScheduleResponse {
111
+ /** schedule contains per-year emission data */
112
+ schedule: YearEmission[];
113
+ }
114
+ /** QueryEpochInfoRequest is the request for Query/EpochInfoByID */
115
+ export interface QueryEpochInfoRequest {
116
+ /** epoch to query */
117
+ epoch: bigint;
118
+ }
119
+ /** QueryEpochInfoResponse contains full epoch information */
120
+ export interface QueryEpochInfoResponse {
121
+ /** info contains the epoch details */
122
+ info: EpochInfo | undefined;
123
+ }
124
+ /** QueryEpochsRequest is the request for Query/Epochs */
125
+ export interface QueryEpochsRequest {
126
+ /** pagination defines the pagination in the request */
127
+ pagination: PageRequest | undefined;
128
+ }
129
+ /** QueryEpochsResponse is the response for Query/Epochs */
130
+ export interface QueryEpochsResponse {
131
+ /** epochs contains the requested epoch information */
132
+ epochs: EpochInfo[];
133
+ /** pagination defines the pagination in the response */
134
+ pagination: PageResponse | undefined;
135
+ }
136
+ /** QueryOwnerKeyRequest is the request for Query/OwnerKey */
137
+ export interface QueryOwnerKeyRequest {
138
+ /** owner address to query */
139
+ owner: string;
140
+ }
141
+ /** QueryOwnerKeyResponse is the response for Query/OwnerKey */
142
+ export interface QueryOwnerKeyResponse {
143
+ /** vrf_pubkey registered for this owner (32 bytes) */
144
+ vrfPubkey: Uint8Array;
145
+ /** nonce for the owner key (for rotation) */
146
+ nonce: bigint;
147
+ /**
148
+ * last_rotation_time when key was last set/rotated (Unix timestamp in
149
+ * seconds)
150
+ */
151
+ lastRotationTime: bigint;
152
+ /** registration_epoch when the key was first registered */
153
+ registrationEpoch: bigint;
154
+ /** valid_from_epoch when the key becomes valid for use */
155
+ validFromEpoch: bigint;
156
+ /** registration_chain_id where the key was registered */
157
+ registrationChainId: string;
158
+ }
159
+ /** QueryOperatorInfoRequest is the request for Query/OperatorInfo */
160
+ export interface QueryOperatorInfoRequest {
161
+ /** operator address to query */
162
+ operator: string;
163
+ }
164
+ /** QueryOperatorInfoResponse is the response for Query/OperatorInfo */
165
+ export interface QueryOperatorInfoResponse {
166
+ /** info contains the operator details */
167
+ info: OperatorInfo | undefined;
168
+ }
169
+ /** QueryOperatorsRequest is the request for Query/Operators */
170
+ export interface QueryOperatorsRequest {
171
+ /** pagination defines the pagination in the request */
172
+ pagination: PageRequest | undefined;
173
+ }
174
+ /** QueryOperatorsResponse is the response for Query/Operators */
175
+ export interface QueryOperatorsResponse {
176
+ /** operators contains registered operators */
177
+ operators: OperatorInfo[];
178
+ /** pagination defines the pagination in the response */
179
+ pagination: PageResponse | undefined;
180
+ }
181
+ /** QueryLicenseDelegationRequest is the request for Query/LicenseDelegation */
182
+ export interface QueryLicenseDelegationRequest {
183
+ /** license_id to query */
184
+ licenseId: bigint;
185
+ }
186
+ /** QueryLicenseDelegationResponse is the response for Query/LicenseDelegation */
187
+ export interface QueryLicenseDelegationResponse {
188
+ /** delegation contains the delegation info (empty if not delegated) */
189
+ delegation: MiningDelegation | undefined;
190
+ /** is_delegated indicates if the license is currently delegated */
191
+ isDelegated: boolean;
192
+ }
193
+ /** QueryDelegatedLicensesRequest is the request for Query/DelegatedLicenses */
194
+ export interface QueryDelegatedLicensesRequest {
195
+ /** operator address to query */
196
+ operator: string;
197
+ /** pagination defines the pagination in the request */
198
+ pagination: PageRequest | undefined;
199
+ }
200
+ /** QueryDelegatedLicensesResponse is the response for Query/DelegatedLicenses */
201
+ export interface QueryDelegatedLicensesResponse {
202
+ /** license_ids contains licenses delegated to this operator */
203
+ licenseIds: bigint[];
204
+ /** pagination defines the pagination in the response */
205
+ pagination: PageResponse | undefined;
206
+ }
207
+ export declare const QueryEpochRequest: MessageFns<QueryEpochRequest>;
208
+ export declare const QueryEpochResponse: MessageFns<QueryEpochResponse>;
209
+ export declare const QueryEpochStartTimeRequest: MessageFns<QueryEpochStartTimeRequest>;
210
+ export declare const QueryEpochStartTimeResponse: MessageFns<QueryEpochStartTimeResponse>;
211
+ export declare const QueryLicenseMinerInfoRequest: MessageFns<QueryLicenseMinerInfoRequest>;
212
+ export declare const QueryLicenseMinerInfoResponse: MessageFns<QueryLicenseMinerInfoResponse>;
213
+ export declare const QueryBeaconRequest: MessageFns<QueryBeaconRequest>;
214
+ export declare const QueryBeaconResponse: MessageFns<QueryBeaconResponse>;
215
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
216
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
217
+ export declare const QueryEmissionInfoRequest: MessageFns<QueryEmissionInfoRequest>;
218
+ export declare const QueryEmissionInfoResponse: MessageFns<QueryEmissionInfoResponse>;
219
+ export declare const QueryEmissionScheduleRequest: MessageFns<QueryEmissionScheduleRequest>;
220
+ export declare const YearEmission: MessageFns<YearEmission>;
221
+ export declare const QueryEmissionScheduleResponse: MessageFns<QueryEmissionScheduleResponse>;
222
+ export declare const QueryEpochInfoRequest: MessageFns<QueryEpochInfoRequest>;
223
+ export declare const QueryEpochInfoResponse: MessageFns<QueryEpochInfoResponse>;
224
+ export declare const QueryEpochsRequest: MessageFns<QueryEpochsRequest>;
225
+ export declare const QueryEpochsResponse: MessageFns<QueryEpochsResponse>;
226
+ export declare const QueryOwnerKeyRequest: MessageFns<QueryOwnerKeyRequest>;
227
+ export declare const QueryOwnerKeyResponse: MessageFns<QueryOwnerKeyResponse>;
228
+ export declare const QueryOperatorInfoRequest: MessageFns<QueryOperatorInfoRequest>;
229
+ export declare const QueryOperatorInfoResponse: MessageFns<QueryOperatorInfoResponse>;
230
+ export declare const QueryOperatorsRequest: MessageFns<QueryOperatorsRequest>;
231
+ export declare const QueryOperatorsResponse: MessageFns<QueryOperatorsResponse>;
232
+ export declare const QueryLicenseDelegationRequest: MessageFns<QueryLicenseDelegationRequest>;
233
+ export declare const QueryLicenseDelegationResponse: MessageFns<QueryLicenseDelegationResponse>;
234
+ export declare const QueryDelegatedLicensesRequest: MessageFns<QueryDelegatedLicensesRequest>;
235
+ export declare const QueryDelegatedLicensesResponse: MessageFns<QueryDelegatedLicensesResponse>;
236
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
237
+ 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 {} ? {
238
+ [K in keyof T]?: DeepPartial<T[K]>;
239
+ } : Partial<T>;
240
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
241
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
242
+ [K in keyof P]: Exact<P[K], I[K]>;
243
+ } & {
244
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
245
+ };
246
+ export interface MessageFns<T> {
247
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
248
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
249
+ fromJSON(object: any): T;
250
+ toJSON(message: T): unknown;
251
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
252
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
253
+ }
254
+ export {};
@@ -0,0 +1,207 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./miner";
3
+ export declare const protobufPackage = "ault.miner.v1";
4
+ /** MsgSetOwnerVrfKey sets or rotates the VRF key for an owner */
5
+ export interface MsgSetOwnerVrfKey {
6
+ /** vrf_pubkey is the 32-byte VRF public key */
7
+ vrfPubkey: Uint8Array;
8
+ /** possession_proof is signature by owner over POP_OWNER_KEY message */
9
+ possessionProof: Uint8Array;
10
+ /** nonce must match the current ownerKeyNonce[owner] */
11
+ nonce: bigint;
12
+ /** owner is the bech32 address setting the key */
13
+ owner: string;
14
+ }
15
+ /** MsgSetOwnerVrfKeyResponse is the response for MsgSetOwnerVrfKey */
16
+ export interface MsgSetOwnerVrfKeyResponse {
17
+ }
18
+ /** MsgSubmitWork submits mining work for an epoch */
19
+ export interface MsgSubmitWork {
20
+ /** license_id of the miner */
21
+ licenseId: bigint;
22
+ /** epoch number */
23
+ epoch: bigint;
24
+ /** y is the VRF output (32 bytes) */
25
+ y: Uint8Array;
26
+ /** proof is the VRF proof */
27
+ proof: Uint8Array;
28
+ /**
29
+ * Field 5 was DEPRECATED. Do not use.
30
+ *
31
+ * @deprecated
32
+ */
33
+ nonce: Uint8Array;
34
+ /** submitter is the account submitting (can be different from owner) */
35
+ submitter: string;
36
+ }
37
+ /** MsgSubmitWorkResponse is the response for MsgSubmitWork */
38
+ export interface MsgSubmitWorkResponse {
39
+ }
40
+ /** WorkSubmission represents a single work submission in a batch */
41
+ export interface WorkSubmission {
42
+ /** license_id of the miner */
43
+ licenseId: bigint;
44
+ /** epoch number */
45
+ epoch: bigint;
46
+ /** y is the VRF output (32 bytes) */
47
+ y: Uint8Array;
48
+ /** proof is the VRF proof */
49
+ proof: Uint8Array;
50
+ /**
51
+ * Field 5 was DEPRECATED. Do not use.
52
+ *
53
+ * @deprecated
54
+ */
55
+ nonce: Uint8Array;
56
+ }
57
+ /**
58
+ * MsgBatchSubmitWork submits multiple mining work entries for epochs (up to
59
+ * 500)
60
+ */
61
+ export interface MsgBatchSubmitWork {
62
+ /** submissions is the list of work submissions (max 500) */
63
+ submissions: WorkSubmission[];
64
+ /** submitter is the account submitting (can be different from owner) */
65
+ submitter: string;
66
+ }
67
+ /** MsgBatchSubmitWorkResponse is the response for MsgBatchSubmitWork */
68
+ export interface MsgBatchSubmitWorkResponse {
69
+ /** results contains the result for each submission (success/failure) */
70
+ results: boolean[];
71
+ /** failed_indices contains the indices of failed submissions */
72
+ failedIndices: number[];
73
+ }
74
+ /**
75
+ * MsgUpdateParams defines a message to update the module parameters via
76
+ * governance
77
+ */
78
+ export interface MsgUpdateParams {
79
+ /**
80
+ * authority is the address that controls the module (defaults to x/gov unless
81
+ * overwritten)
82
+ */
83
+ authority: string;
84
+ /** params are the new parameters */
85
+ params: Params | undefined;
86
+ }
87
+ /** MsgUpdateParamsResponse defines the response for MsgUpdateParams */
88
+ export interface MsgUpdateParamsResponse {
89
+ }
90
+ /** MsgRegisterOperator registers a new mining operator */
91
+ export interface MsgRegisterOperator {
92
+ /** operator is the address registering as an operator */
93
+ operator: string;
94
+ /** commission_rate is the commission percentage (0-100) */
95
+ commissionRate: number;
96
+ /**
97
+ * commission_recipient is the address to receive commission rewards
98
+ * (optional) If empty, commission is sent to the operator address
99
+ */
100
+ commissionRecipient: string;
101
+ }
102
+ /** MsgRegisterOperatorResponse is the response for MsgRegisterOperator */
103
+ export interface MsgRegisterOperatorResponse {
104
+ }
105
+ /** MsgUnregisterOperator removes an operator registration */
106
+ export interface MsgUnregisterOperator {
107
+ /** operator is the address to unregister */
108
+ operator: string;
109
+ }
110
+ /** MsgUnregisterOperatorResponse is the response for MsgUnregisterOperator */
111
+ export interface MsgUnregisterOperatorResponse {
112
+ }
113
+ /**
114
+ * MsgUpdateOperatorInfo updates the operator's commission rate and commission
115
+ * recipient
116
+ */
117
+ export interface MsgUpdateOperatorInfo {
118
+ /** operator is the operator address */
119
+ operator: string;
120
+ /** new_commission_rate is the new commission percentage (0-100) */
121
+ newCommissionRate: number;
122
+ /**
123
+ * new_commission_recipient is the new address to receive commission rewards
124
+ * If empty, commission will be sent to the operator address
125
+ */
126
+ newCommissionRecipient: string;
127
+ }
128
+ /** MsgUpdateOperatorInfoResponse is the response for MsgUpdateOperatorInfo */
129
+ export interface MsgUpdateOperatorInfoResponse {
130
+ }
131
+ /** MsgDelegateMining delegates licenses' mining rights to an operator */
132
+ export interface MsgDelegateMining {
133
+ /** owner is the license owner address */
134
+ owner: string;
135
+ /** license_ids to delegate */
136
+ licenseIds: bigint[];
137
+ /** operator is the operator to delegate to */
138
+ operator: string;
139
+ }
140
+ /** MsgDelegateMiningResponse is the response for MsgDelegateMining */
141
+ export interface MsgDelegateMiningResponse {
142
+ }
143
+ /** MsgRedelegateMining changes the operator for delegated licenses */
144
+ export interface MsgRedelegateMining {
145
+ /** owner is the license owner address */
146
+ owner: string;
147
+ /** license_ids to redelegate */
148
+ licenseIds: bigint[];
149
+ /** new_operator is the new operator address */
150
+ newOperator: string;
151
+ }
152
+ /** MsgRedelegateMiningResponse is the response for MsgRedelegateMining */
153
+ export interface MsgRedelegateMiningResponse {
154
+ }
155
+ /** MsgCancelMiningDelegation cancels licenses' mining delegation */
156
+ export interface MsgCancelMiningDelegation {
157
+ /** owner is the license owner address */
158
+ owner: string;
159
+ /** license_ids to cancel delegation */
160
+ licenseIds: bigint[];
161
+ }
162
+ /**
163
+ * MsgCancelMiningDelegationResponse is the response for
164
+ * MsgCancelMiningDelegation
165
+ */
166
+ export interface MsgCancelMiningDelegationResponse {
167
+ }
168
+ export declare const MsgSetOwnerVrfKey: MessageFns<MsgSetOwnerVrfKey>;
169
+ export declare const MsgSetOwnerVrfKeyResponse: MessageFns<MsgSetOwnerVrfKeyResponse>;
170
+ export declare const MsgSubmitWork: MessageFns<MsgSubmitWork>;
171
+ export declare const MsgSubmitWorkResponse: MessageFns<MsgSubmitWorkResponse>;
172
+ export declare const WorkSubmission: MessageFns<WorkSubmission>;
173
+ export declare const MsgBatchSubmitWork: MessageFns<MsgBatchSubmitWork>;
174
+ export declare const MsgBatchSubmitWorkResponse: MessageFns<MsgBatchSubmitWorkResponse>;
175
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
176
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
177
+ export declare const MsgRegisterOperator: MessageFns<MsgRegisterOperator>;
178
+ export declare const MsgRegisterOperatorResponse: MessageFns<MsgRegisterOperatorResponse>;
179
+ export declare const MsgUnregisterOperator: MessageFns<MsgUnregisterOperator>;
180
+ export declare const MsgUnregisterOperatorResponse: MessageFns<MsgUnregisterOperatorResponse>;
181
+ export declare const MsgUpdateOperatorInfo: MessageFns<MsgUpdateOperatorInfo>;
182
+ export declare const MsgUpdateOperatorInfoResponse: MessageFns<MsgUpdateOperatorInfoResponse>;
183
+ export declare const MsgDelegateMining: MessageFns<MsgDelegateMining>;
184
+ export declare const MsgDelegateMiningResponse: MessageFns<MsgDelegateMiningResponse>;
185
+ export declare const MsgRedelegateMining: MessageFns<MsgRedelegateMining>;
186
+ export declare const MsgRedelegateMiningResponse: MessageFns<MsgRedelegateMiningResponse>;
187
+ export declare const MsgCancelMiningDelegation: MessageFns<MsgCancelMiningDelegation>;
188
+ export declare const MsgCancelMiningDelegationResponse: MessageFns<MsgCancelMiningDelegationResponse>;
189
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
190
+ 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 {} ? {
191
+ [K in keyof T]?: DeepPartial<T[K]>;
192
+ } : Partial<T>;
193
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
194
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
195
+ [K in keyof P]: Exact<P[K], I[K]>;
196
+ } & {
197
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
198
+ };
199
+ export interface MessageFns<T> {
200
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
201
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
202
+ fromJSON(object: any): T;
203
+ toJSON(message: T): unknown;
204
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
205
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
206
+ }
207
+ export {};
@@ -0,0 +1,27 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.ratelimit.v1";
4
+ /** GenesisState defines the ratelimit module's genesis state */
5
+ export interface GenesisState {
6
+ params: Params | undefined;
7
+ }
8
+ export declare const GenesisState: MessageFns<GenesisState>;
9
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
10
+ 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 {} ? {
11
+ [K in keyof T]?: DeepPartial<T[K]>;
12
+ } : Partial<T>;
13
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
14
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
15
+ [K in keyof P]: Exact<P[K], I[K]>;
16
+ } & {
17
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
18
+ };
19
+ export interface MessageFns<T> {
20
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
21
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
22
+ fromJSON(object: any): T;
23
+ toJSON(message: T): unknown;
24
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
25
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
26
+ }
27
+ export {};
@@ -0,0 +1,35 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "ault.ratelimit.v1";
3
+ /** Params defines ratelimit module parameters. */
4
+ export interface Params {
5
+ /** Per message-type rate limit configs. */
6
+ rateLimitConfigs: RateLimitConfig[];
7
+ }
8
+ /** RateLimitConfig defines a rate limit rule. */
9
+ export interface RateLimitConfig {
10
+ /** Message type URL. */
11
+ msgType: string;
12
+ /** Max allowed per block. */
13
+ limit: number;
14
+ }
15
+ export declare const Params: MessageFns<Params>;
16
+ export declare const RateLimitConfig: MessageFns<RateLimitConfig>;
17
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
18
+ 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 {} ? {
19
+ [K in keyof T]?: DeepPartial<T[K]>;
20
+ } : Partial<T>;
21
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
22
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
23
+ [K in keyof P]: Exact<P[K], I[K]>;
24
+ } & {
25
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
26
+ };
27
+ export interface MessageFns<T> {
28
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
29
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
30
+ fromJSON(object: any): T;
31
+ toJSON(message: T): unknown;
32
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
33
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
34
+ }
35
+ export {};
@@ -0,0 +1,42 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params, RateLimitConfig } from "./params";
3
+ export declare const protobufPackage = "ault.ratelimit.v1";
4
+ /** Request config by message type. */
5
+ export interface QueryRateLimitConfigRequest {
6
+ msgType: string;
7
+ }
8
+ /** Response with single config. */
9
+ export interface QueryRateLimitConfigResponse {
10
+ config: RateLimitConfig | undefined;
11
+ }
12
+ /** Request params. */
13
+ export interface QueryParamsRequest {
14
+ }
15
+ /** Response with params. */
16
+ export interface QueryParamsResponse {
17
+ /** params are the module parameters */
18
+ params: Params | undefined;
19
+ }
20
+ export declare const QueryRateLimitConfigRequest: MessageFns<QueryRateLimitConfigRequest>;
21
+ export declare const QueryRateLimitConfigResponse: MessageFns<QueryRateLimitConfigResponse>;
22
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
23
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
24
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
25
+ 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 {} ? {
26
+ [K in keyof T]?: DeepPartial<T[K]>;
27
+ } : Partial<T>;
28
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
29
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
30
+ [K in keyof P]: Exact<P[K], I[K]>;
31
+ } & {
32
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
33
+ };
34
+ export interface MessageFns<T> {
35
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
36
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
37
+ fromJSON(object: any): T;
38
+ toJSON(message: T): unknown;
39
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
40
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
41
+ }
42
+ export {};
@@ -0,0 +1,32 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.ratelimit.v1";
4
+ /** Update ratelimit params. */
5
+ export interface MsgUpdateParams {
6
+ authority: string;
7
+ params: Params | undefined;
8
+ }
9
+ /** UpdateParams response. */
10
+ export interface MsgUpdateParamsResponse {
11
+ }
12
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
13
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
14
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
15
+ 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 {} ? {
16
+ [K in keyof T]?: DeepPartial<T[K]>;
17
+ } : Partial<T>;
18
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
19
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
20
+ [K in keyof P]: Exact<P[K], I[K]>;
21
+ } & {
22
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
23
+ };
24
+ export interface MessageFns<T> {
25
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
26
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
27
+ fromJSON(object: any): T;
28
+ toJSON(message: T): unknown;
29
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
30
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
31
+ }
32
+ export {};
@@ -0,0 +1,67 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./reward";
3
+ export declare const protobufPackage = "ault.reward.v1";
4
+ /** GenesisState defines the reward module's genesis state. */
5
+ export interface GenesisState {
6
+ /** params are the module parameters. */
7
+ params: Params | undefined;
8
+ /** referral_codes are the referral codes. */
9
+ referralCodes: GenesisReferralCode[];
10
+ /** referrals are the referral relationships (referee -> referrer). */
11
+ referrals: GenesisReferral[];
12
+ /** eligible_referrers are the addresses eligible to create referral codes. */
13
+ eligibleReferrers: string[];
14
+ /** deployer_shares are the deployer share configurations. */
15
+ deployerShares: GenesisDeployerShare[];
16
+ /** builder_allowances are the builder allowances. */
17
+ builderAllowances: GenesisBuilderAllowance[];
18
+ }
19
+ /** GenesisReferralCode represents a referral code for genesis. */
20
+ export interface GenesisReferralCode {
21
+ code: string;
22
+ referrer: string;
23
+ }
24
+ /**
25
+ * GenesisReferral represents referral relationships for genesis (grouped by
26
+ * referrer).
27
+ */
28
+ export interface GenesisReferral {
29
+ referrer: string;
30
+ referees: string[];
31
+ }
32
+ /** GenesisDeployerShare represents a deployer share for genesis. */
33
+ export interface GenesisDeployerShare {
34
+ marketId: Uint8Array;
35
+ deployer: string;
36
+ shareRate: string;
37
+ }
38
+ /** GenesisBuilderAllowance represents a builder allowance for genesis. */
39
+ export interface GenesisBuilderAllowance {
40
+ user: string;
41
+ builder: string;
42
+ maxFee: string;
43
+ }
44
+ export declare const GenesisState: MessageFns<GenesisState>;
45
+ export declare const GenesisReferralCode: MessageFns<GenesisReferralCode>;
46
+ export declare const GenesisReferral: MessageFns<GenesisReferral>;
47
+ export declare const GenesisDeployerShare: MessageFns<GenesisDeployerShare>;
48
+ export declare const GenesisBuilderAllowance: MessageFns<GenesisBuilderAllowance>;
49
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
50
+ 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 {} ? {
51
+ [K in keyof T]?: DeepPartial<T[K]>;
52
+ } : Partial<T>;
53
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
54
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
55
+ [K in keyof P]: Exact<P[K], I[K]>;
56
+ } & {
57
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
58
+ };
59
+ export interface MessageFns<T> {
60
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
61
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
62
+ fromJSON(object: any): T;
63
+ toJSON(message: T): unknown;
64
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
65
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
66
+ }
67
+ export {};