ault-sdk-ts 0.0.2-alpha.10

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 +923 -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 +18409 -0
  45. package/dist/index.cjs.map +1 -0
  46. package/dist/index.d.ts +38 -0
  47. package/dist/index.js +18137 -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 +34 -0
  136. package/dist/ws/index.d.ts +5 -0
  137. package/dist/ws/types.d.ts +72 -0
  138. package/package.json +103 -0
@@ -0,0 +1,507 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { PublicKey } from "../crypto/keys";
3
+ import { ProofOps } from "../crypto/proof";
4
+ import { ConsensusParams } from "../types/params";
5
+ import { BlockIDFlag } from "../types/validator";
6
+ export declare const protobufPackage = "tendermint.abci";
7
+ export declare enum CheckTxType {
8
+ NEW = 0,
9
+ RECHECK = 1,
10
+ UNRECOGNIZED = -1
11
+ }
12
+ export declare function checkTxTypeFromJSON(object: any): CheckTxType;
13
+ export declare function checkTxTypeToJSON(object: CheckTxType): string;
14
+ export declare enum MisbehaviorType {
15
+ UNKNOWN = 0,
16
+ DUPLICATE_VOTE = 1,
17
+ LIGHT_CLIENT_ATTACK = 2,
18
+ UNRECOGNIZED = -1
19
+ }
20
+ export declare function misbehaviorTypeFromJSON(object: any): MisbehaviorType;
21
+ export declare function misbehaviorTypeToJSON(object: MisbehaviorType): string;
22
+ export interface Request {
23
+ echo?: RequestEcho | undefined;
24
+ flush?: RequestFlush | undefined;
25
+ info?: RequestInfo | undefined;
26
+ initChain?: RequestInitChain | undefined;
27
+ query?: RequestQuery | undefined;
28
+ checkTx?: RequestCheckTx | undefined;
29
+ commit?: RequestCommit | undefined;
30
+ listSnapshots?: RequestListSnapshots | undefined;
31
+ offerSnapshot?: RequestOfferSnapshot | undefined;
32
+ loadSnapshotChunk?: RequestLoadSnapshotChunk | undefined;
33
+ applySnapshotChunk?: RequestApplySnapshotChunk | undefined;
34
+ prepareProposal?: RequestPrepareProposal | undefined;
35
+ processProposal?: RequestProcessProposal | undefined;
36
+ extendVote?: RequestExtendVote | undefined;
37
+ verifyVoteExtension?: RequestVerifyVoteExtension | undefined;
38
+ finalizeBlock?: RequestFinalizeBlock | undefined;
39
+ }
40
+ export interface RequestEcho {
41
+ message: string;
42
+ }
43
+ export interface RequestFlush {
44
+ }
45
+ export interface RequestInfo {
46
+ version: string;
47
+ blockVersion: bigint;
48
+ p2pVersion: bigint;
49
+ abciVersion: string;
50
+ }
51
+ export interface RequestInitChain {
52
+ time: Date | undefined;
53
+ chainId: string;
54
+ consensusParams: ConsensusParams | undefined;
55
+ validators: ValidatorUpdate[];
56
+ appStateBytes: Uint8Array;
57
+ initialHeight: bigint;
58
+ }
59
+ export interface RequestQuery {
60
+ data: Uint8Array;
61
+ path: string;
62
+ height: bigint;
63
+ prove: boolean;
64
+ }
65
+ export interface RequestCheckTx {
66
+ tx: Uint8Array;
67
+ type: CheckTxType;
68
+ }
69
+ export interface RequestCommit {
70
+ }
71
+ /** lists available snapshots */
72
+ export interface RequestListSnapshots {
73
+ }
74
+ /** offers a snapshot to the application */
75
+ export interface RequestOfferSnapshot {
76
+ /** snapshot offered by peers */
77
+ snapshot: Snapshot | undefined;
78
+ /** light client-verified app hash for snapshot height */
79
+ appHash: Uint8Array;
80
+ }
81
+ /** loads a snapshot chunk */
82
+ export interface RequestLoadSnapshotChunk {
83
+ height: bigint;
84
+ format: number;
85
+ chunk: number;
86
+ }
87
+ /** Applies a snapshot chunk */
88
+ export interface RequestApplySnapshotChunk {
89
+ index: number;
90
+ chunk: Uint8Array;
91
+ sender: string;
92
+ }
93
+ export interface RequestPrepareProposal {
94
+ /** the modified transactions cannot exceed this size. */
95
+ maxTxBytes: bigint;
96
+ /**
97
+ * txs is an array of transactions that will be included in a block,
98
+ * sent to the app for possible modifications.
99
+ */
100
+ txs: Uint8Array[];
101
+ localLastCommit: ExtendedCommitInfo | undefined;
102
+ misbehavior: Misbehavior[];
103
+ height: bigint;
104
+ time: Date | undefined;
105
+ nextValidatorsHash: Uint8Array;
106
+ /** address of the public key of the validator proposing the block. */
107
+ proposerAddress: Uint8Array;
108
+ }
109
+ export interface RequestProcessProposal {
110
+ txs: Uint8Array[];
111
+ proposedLastCommit: CommitInfo | undefined;
112
+ misbehavior: Misbehavior[];
113
+ /** hash is the merkle root hash of the fields of the proposed block. */
114
+ hash: Uint8Array;
115
+ height: bigint;
116
+ time: Date | undefined;
117
+ nextValidatorsHash: Uint8Array;
118
+ /** address of the public key of the original proposer of the block. */
119
+ proposerAddress: Uint8Array;
120
+ }
121
+ /** Extends a vote with application-injected data */
122
+ export interface RequestExtendVote {
123
+ /** the hash of the block that this vote may be referring to */
124
+ hash: Uint8Array;
125
+ /** the height of the extended vote */
126
+ height: bigint;
127
+ /** info of the block that this vote may be referring to */
128
+ time: Date | undefined;
129
+ txs: Uint8Array[];
130
+ proposedLastCommit: CommitInfo | undefined;
131
+ misbehavior: Misbehavior[];
132
+ nextValidatorsHash: Uint8Array;
133
+ /** address of the public key of the original proposer of the block. */
134
+ proposerAddress: Uint8Array;
135
+ }
136
+ /** Verify the vote extension */
137
+ export interface RequestVerifyVoteExtension {
138
+ /** the hash of the block that this received vote corresponds to */
139
+ hash: Uint8Array;
140
+ /** the validator that signed the vote extension */
141
+ validatorAddress: Uint8Array;
142
+ height: bigint;
143
+ voteExtension: Uint8Array;
144
+ }
145
+ export interface RequestFinalizeBlock {
146
+ txs: Uint8Array[];
147
+ decidedLastCommit: CommitInfo | undefined;
148
+ misbehavior: Misbehavior[];
149
+ /** hash is the merkle root hash of the fields of the decided block. */
150
+ hash: Uint8Array;
151
+ height: bigint;
152
+ time: Date | undefined;
153
+ nextValidatorsHash: Uint8Array;
154
+ /** proposer_address is the address of the public key of the original proposer of the block. */
155
+ proposerAddress: Uint8Array;
156
+ }
157
+ export interface Response {
158
+ exception?: ResponseException | undefined;
159
+ echo?: ResponseEcho | undefined;
160
+ flush?: ResponseFlush | undefined;
161
+ info?: ResponseInfo | undefined;
162
+ initChain?: ResponseInitChain | undefined;
163
+ query?: ResponseQuery | undefined;
164
+ checkTx?: ResponseCheckTx | undefined;
165
+ commit?: ResponseCommit | undefined;
166
+ listSnapshots?: ResponseListSnapshots | undefined;
167
+ offerSnapshot?: ResponseOfferSnapshot | undefined;
168
+ loadSnapshotChunk?: ResponseLoadSnapshotChunk | undefined;
169
+ applySnapshotChunk?: ResponseApplySnapshotChunk | undefined;
170
+ prepareProposal?: ResponsePrepareProposal | undefined;
171
+ processProposal?: ResponseProcessProposal | undefined;
172
+ extendVote?: ResponseExtendVote | undefined;
173
+ verifyVoteExtension?: ResponseVerifyVoteExtension | undefined;
174
+ finalizeBlock?: ResponseFinalizeBlock | undefined;
175
+ }
176
+ /** nondeterministic */
177
+ export interface ResponseException {
178
+ error: string;
179
+ }
180
+ export interface ResponseEcho {
181
+ message: string;
182
+ }
183
+ export interface ResponseFlush {
184
+ }
185
+ export interface ResponseInfo {
186
+ data: string;
187
+ version: string;
188
+ appVersion: bigint;
189
+ lastBlockHeight: bigint;
190
+ lastBlockAppHash: Uint8Array;
191
+ }
192
+ export interface ResponseInitChain {
193
+ consensusParams: ConsensusParams | undefined;
194
+ validators: ValidatorUpdate[];
195
+ appHash: Uint8Array;
196
+ }
197
+ export interface ResponseQuery {
198
+ code: number;
199
+ /** bytes data = 2; // use "value" instead. */
200
+ log: string;
201
+ /** nondeterministic */
202
+ info: string;
203
+ index: bigint;
204
+ key: Uint8Array;
205
+ value: Uint8Array;
206
+ proofOps: ProofOps | undefined;
207
+ height: bigint;
208
+ codespace: string;
209
+ }
210
+ export interface ResponseCheckTx {
211
+ code: number;
212
+ data: Uint8Array;
213
+ /** nondeterministic */
214
+ log: string;
215
+ /** nondeterministic */
216
+ info: string;
217
+ gasWanted: bigint;
218
+ gasUsed: bigint;
219
+ events: Event[];
220
+ codespace: string;
221
+ }
222
+ export interface ResponseCommit {
223
+ retainHeight: bigint;
224
+ }
225
+ export interface ResponseListSnapshots {
226
+ snapshots: Snapshot[];
227
+ }
228
+ export interface ResponseOfferSnapshot {
229
+ result: ResponseOfferSnapshot_Result;
230
+ }
231
+ export declare enum ResponseOfferSnapshot_Result {
232
+ /** UNKNOWN - Unknown result, abort all snapshot restoration */
233
+ UNKNOWN = 0,
234
+ /** ACCEPT - Snapshot accepted, apply chunks */
235
+ ACCEPT = 1,
236
+ /** ABORT - Abort all snapshot restoration */
237
+ ABORT = 2,
238
+ /** REJECT - Reject this specific snapshot, try others */
239
+ REJECT = 3,
240
+ /** REJECT_FORMAT - Reject all snapshots of this format, try others */
241
+ REJECT_FORMAT = 4,
242
+ /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */
243
+ REJECT_SENDER = 5,
244
+ UNRECOGNIZED = -1
245
+ }
246
+ export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result;
247
+ export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string;
248
+ export interface ResponseLoadSnapshotChunk {
249
+ chunk: Uint8Array;
250
+ }
251
+ export interface ResponseApplySnapshotChunk {
252
+ result: ResponseApplySnapshotChunk_Result;
253
+ /** Chunks to refetch and reapply */
254
+ refetchChunks: number[];
255
+ /** Chunk senders to reject and ban */
256
+ rejectSenders: string[];
257
+ }
258
+ export declare enum ResponseApplySnapshotChunk_Result {
259
+ /** UNKNOWN - Unknown result, abort all snapshot restoration */
260
+ UNKNOWN = 0,
261
+ /** ACCEPT - Chunk successfully accepted */
262
+ ACCEPT = 1,
263
+ /** ABORT - Abort all snapshot restoration */
264
+ ABORT = 2,
265
+ /** RETRY - Retry chunk (combine with refetch and reject) */
266
+ RETRY = 3,
267
+ /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */
268
+ RETRY_SNAPSHOT = 4,
269
+ /** REJECT_SNAPSHOT - Reject this snapshot, try others */
270
+ REJECT_SNAPSHOT = 5,
271
+ UNRECOGNIZED = -1
272
+ }
273
+ export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result;
274
+ export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string;
275
+ export interface ResponsePrepareProposal {
276
+ txs: Uint8Array[];
277
+ }
278
+ export interface ResponseProcessProposal {
279
+ status: ResponseProcessProposal_ProposalStatus;
280
+ }
281
+ export declare enum ResponseProcessProposal_ProposalStatus {
282
+ UNKNOWN = 0,
283
+ ACCEPT = 1,
284
+ REJECT = 2,
285
+ UNRECOGNIZED = -1
286
+ }
287
+ export declare function responseProcessProposal_ProposalStatusFromJSON(object: any): ResponseProcessProposal_ProposalStatus;
288
+ export declare function responseProcessProposal_ProposalStatusToJSON(object: ResponseProcessProposal_ProposalStatus): string;
289
+ export interface ResponseExtendVote {
290
+ voteExtension: Uint8Array;
291
+ }
292
+ export interface ResponseVerifyVoteExtension {
293
+ status: ResponseVerifyVoteExtension_VerifyStatus;
294
+ }
295
+ export declare enum ResponseVerifyVoteExtension_VerifyStatus {
296
+ UNKNOWN = 0,
297
+ ACCEPT = 1,
298
+ /**
299
+ * REJECT - Rejecting the vote extension will reject the entire precommit by the sender.
300
+ * Incorrectly implementing this thus has liveness implications as it may affect
301
+ * CometBFT's ability to receive 2/3+ valid votes to finalize the block.
302
+ * Honest nodes should never be rejected.
303
+ */
304
+ REJECT = 2,
305
+ UNRECOGNIZED = -1
306
+ }
307
+ export declare function responseVerifyVoteExtension_VerifyStatusFromJSON(object: any): ResponseVerifyVoteExtension_VerifyStatus;
308
+ export declare function responseVerifyVoteExtension_VerifyStatusToJSON(object: ResponseVerifyVoteExtension_VerifyStatus): string;
309
+ export interface ResponseFinalizeBlock {
310
+ /** set of block events emmitted as part of executing the block */
311
+ events: Event[];
312
+ /**
313
+ * the result of executing each transaction including the events
314
+ * the particular transction emitted. This should match the order
315
+ * of the transactions delivered in the block itself
316
+ */
317
+ txResults: ExecTxResult[];
318
+ /** a list of updates to the validator set. These will reflect the validator set at current height + 2. */
319
+ validatorUpdates: ValidatorUpdate[];
320
+ /** updates to the consensus params, if any. */
321
+ consensusParamUpdates: ConsensusParams | undefined;
322
+ /**
323
+ * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was
324
+ * deterministic. It is up to the application to decide which algorithm to use.
325
+ */
326
+ appHash: Uint8Array;
327
+ }
328
+ export interface CommitInfo {
329
+ round: number;
330
+ votes: VoteInfo[];
331
+ }
332
+ /**
333
+ * ExtendedCommitInfo is similar to CommitInfo except that it is only used in
334
+ * the PrepareProposal request such that CometBFT can provide vote extensions
335
+ * to the application.
336
+ */
337
+ export interface ExtendedCommitInfo {
338
+ /** The round at which the block proposer decided in the previous height. */
339
+ round: number;
340
+ /**
341
+ * List of validators' addresses in the last validator set with their voting
342
+ * information, including vote extensions.
343
+ */
344
+ votes: ExtendedVoteInfo[];
345
+ }
346
+ /**
347
+ * Event allows application developers to attach additional information to
348
+ * ResponseFinalizeBlock and ResponseCheckTx.
349
+ * Later, transactions may be queried using these events.
350
+ */
351
+ export interface Event {
352
+ type: string;
353
+ attributes: EventAttribute[];
354
+ }
355
+ /** EventAttribute is a single key-value pair, associated with an event. */
356
+ export interface EventAttribute {
357
+ key: string;
358
+ value: string;
359
+ /** nondeterministic */
360
+ index: boolean;
361
+ }
362
+ /**
363
+ * ExecTxResult contains results of executing one individual transaction.
364
+ *
365
+ * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted
366
+ */
367
+ export interface ExecTxResult {
368
+ code: number;
369
+ data: Uint8Array;
370
+ /** nondeterministic */
371
+ log: string;
372
+ /** nondeterministic */
373
+ info: string;
374
+ gasWanted: bigint;
375
+ gasUsed: bigint;
376
+ /** nondeterministic */
377
+ events: Event[];
378
+ codespace: string;
379
+ }
380
+ /**
381
+ * TxResult contains results of executing the transaction.
382
+ *
383
+ * One usage is indexing transaction results.
384
+ */
385
+ export interface TxResult {
386
+ height: bigint;
387
+ index: number;
388
+ tx: Uint8Array;
389
+ result: ExecTxResult | undefined;
390
+ }
391
+ export interface Validator {
392
+ /** The first 20 bytes of SHA256(public key) */
393
+ address: Uint8Array;
394
+ /** PubKey pub_key = 2 [(gogoproto.nullable)=false]; */
395
+ power: bigint;
396
+ }
397
+ export interface ValidatorUpdate {
398
+ pubKey: PublicKey | undefined;
399
+ power: bigint;
400
+ }
401
+ export interface VoteInfo {
402
+ validator: Validator | undefined;
403
+ blockIdFlag: BlockIDFlag;
404
+ }
405
+ export interface ExtendedVoteInfo {
406
+ /** The validator that sent the vote. */
407
+ validator: Validator | undefined;
408
+ /** Non-deterministic extension provided by the sending validator's application. */
409
+ voteExtension: Uint8Array;
410
+ /** Vote extension signature created by CometBFT */
411
+ extensionSignature: Uint8Array;
412
+ /** block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all */
413
+ blockIdFlag: BlockIDFlag;
414
+ }
415
+ export interface Misbehavior {
416
+ type: MisbehaviorType;
417
+ /** The offending validator */
418
+ validator: Validator | undefined;
419
+ /** The height when the offense occurred */
420
+ height: bigint;
421
+ /** The corresponding time where the offense occurred */
422
+ time: Date | undefined;
423
+ /**
424
+ * Total voting power of the validator set in case the ABCI application does
425
+ * not store historical validators.
426
+ * https://github.com/tendermint/tendermint/issues/4581
427
+ */
428
+ totalVotingPower: bigint;
429
+ }
430
+ export interface Snapshot {
431
+ /** The height at which the snapshot was taken */
432
+ height: bigint;
433
+ /** The application-specific snapshot format */
434
+ format: number;
435
+ /** Number of chunks in the snapshot */
436
+ chunks: number;
437
+ /** Arbitrary snapshot hash, equal only if identical */
438
+ hash: Uint8Array;
439
+ /** Arbitrary application metadata */
440
+ metadata: Uint8Array;
441
+ }
442
+ export declare const Request: MessageFns<Request>;
443
+ export declare const RequestEcho: MessageFns<RequestEcho>;
444
+ export declare const RequestFlush: MessageFns<RequestFlush>;
445
+ export declare const RequestInfo: MessageFns<RequestInfo>;
446
+ export declare const RequestInitChain: MessageFns<RequestInitChain>;
447
+ export declare const RequestQuery: MessageFns<RequestQuery>;
448
+ export declare const RequestCheckTx: MessageFns<RequestCheckTx>;
449
+ export declare const RequestCommit: MessageFns<RequestCommit>;
450
+ export declare const RequestListSnapshots: MessageFns<RequestListSnapshots>;
451
+ export declare const RequestOfferSnapshot: MessageFns<RequestOfferSnapshot>;
452
+ export declare const RequestLoadSnapshotChunk: MessageFns<RequestLoadSnapshotChunk>;
453
+ export declare const RequestApplySnapshotChunk: MessageFns<RequestApplySnapshotChunk>;
454
+ export declare const RequestPrepareProposal: MessageFns<RequestPrepareProposal>;
455
+ export declare const RequestProcessProposal: MessageFns<RequestProcessProposal>;
456
+ export declare const RequestExtendVote: MessageFns<RequestExtendVote>;
457
+ export declare const RequestVerifyVoteExtension: MessageFns<RequestVerifyVoteExtension>;
458
+ export declare const RequestFinalizeBlock: MessageFns<RequestFinalizeBlock>;
459
+ export declare const Response: MessageFns<Response>;
460
+ export declare const ResponseException: MessageFns<ResponseException>;
461
+ export declare const ResponseEcho: MessageFns<ResponseEcho>;
462
+ export declare const ResponseFlush: MessageFns<ResponseFlush>;
463
+ export declare const ResponseInfo: MessageFns<ResponseInfo>;
464
+ export declare const ResponseInitChain: MessageFns<ResponseInitChain>;
465
+ export declare const ResponseQuery: MessageFns<ResponseQuery>;
466
+ export declare const ResponseCheckTx: MessageFns<ResponseCheckTx>;
467
+ export declare const ResponseCommit: MessageFns<ResponseCommit>;
468
+ export declare const ResponseListSnapshots: MessageFns<ResponseListSnapshots>;
469
+ export declare const ResponseOfferSnapshot: MessageFns<ResponseOfferSnapshot>;
470
+ export declare const ResponseLoadSnapshotChunk: MessageFns<ResponseLoadSnapshotChunk>;
471
+ export declare const ResponseApplySnapshotChunk: MessageFns<ResponseApplySnapshotChunk>;
472
+ export declare const ResponsePrepareProposal: MessageFns<ResponsePrepareProposal>;
473
+ export declare const ResponseProcessProposal: MessageFns<ResponseProcessProposal>;
474
+ export declare const ResponseExtendVote: MessageFns<ResponseExtendVote>;
475
+ export declare const ResponseVerifyVoteExtension: MessageFns<ResponseVerifyVoteExtension>;
476
+ export declare const ResponseFinalizeBlock: MessageFns<ResponseFinalizeBlock>;
477
+ export declare const CommitInfo: MessageFns<CommitInfo>;
478
+ export declare const ExtendedCommitInfo: MessageFns<ExtendedCommitInfo>;
479
+ export declare const Event: MessageFns<Event>;
480
+ export declare const EventAttribute: MessageFns<EventAttribute>;
481
+ export declare const ExecTxResult: MessageFns<ExecTxResult>;
482
+ export declare const TxResult: MessageFns<TxResult>;
483
+ export declare const Validator: MessageFns<Validator>;
484
+ export declare const ValidatorUpdate: MessageFns<ValidatorUpdate>;
485
+ export declare const VoteInfo: MessageFns<VoteInfo>;
486
+ export declare const ExtendedVoteInfo: MessageFns<ExtendedVoteInfo>;
487
+ export declare const Misbehavior: MessageFns<Misbehavior>;
488
+ export declare const Snapshot: MessageFns<Snapshot>;
489
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
490
+ 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 {} ? {
491
+ [K in keyof T]?: DeepPartial<T[K]>;
492
+ } : Partial<T>;
493
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
494
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
495
+ [K in keyof P]: Exact<P[K], I[K]>;
496
+ } & {
497
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
498
+ };
499
+ export interface MessageFns<T> {
500
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
501
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
502
+ fromJSON(object: any): T;
503
+ toJSON(message: T): unknown;
504
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
505
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
506
+ }
507
+ export {};
@@ -0,0 +1,27 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "tendermint.crypto";
3
+ /** PublicKey defines the keys available for use with Validators */
4
+ export interface PublicKey {
5
+ ed25519?: Uint8Array | undefined;
6
+ secp256k1?: Uint8Array | undefined;
7
+ }
8
+ export declare const PublicKey: MessageFns<PublicKey>;
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,57 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "tendermint.crypto";
3
+ export interface Proof {
4
+ total: bigint;
5
+ index: bigint;
6
+ leafHash: Uint8Array;
7
+ aunts: Uint8Array[];
8
+ }
9
+ export interface ValueOp {
10
+ /** Encoded in ProofOp.Key. */
11
+ key: Uint8Array;
12
+ /** To encode in ProofOp.Data */
13
+ proof: Proof | undefined;
14
+ }
15
+ export interface DominoOp {
16
+ key: string;
17
+ input: string;
18
+ output: string;
19
+ }
20
+ /**
21
+ * ProofOp defines an operation used for calculating Merkle root
22
+ * The data could be arbitrary format, providing nessecary data
23
+ * for example neighbouring node hash
24
+ */
25
+ export interface ProofOp {
26
+ type: string;
27
+ key: Uint8Array;
28
+ data: Uint8Array;
29
+ }
30
+ /** ProofOps is Merkle proof defined by the list of ProofOps */
31
+ export interface ProofOps {
32
+ ops: ProofOp[];
33
+ }
34
+ export declare const Proof: MessageFns<Proof>;
35
+ export declare const ValueOp: MessageFns<ValueOp>;
36
+ export declare const DominoOp: MessageFns<DominoOp>;
37
+ export declare const ProofOp: MessageFns<ProofOp>;
38
+ export declare const ProofOps: MessageFns<ProofOps>;
39
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
40
+ 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 {} ? {
41
+ [K in keyof T]?: DeepPartial<T[K]>;
42
+ } : Partial<T>;
43
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
44
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
45
+ [K in keyof P]: Exact<P[K], I[K]>;
46
+ } & {
47
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
48
+ };
49
+ export interface MessageFns<T> {
50
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
51
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
52
+ fromJSON(object: any): T;
53
+ toJSON(message: T): unknown;
54
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
55
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
56
+ }
57
+ export {};