@ocap/types 1.31.0 → 1.31.1

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.
@@ -417,7 +417,9 @@ export interface IVerifyTxInclusionParams {
417
417
 
418
418
  /** Ledger entry returned by getLedgerEntry */
419
419
  entry: Pick<ILedgerEntry, 'sequence' | 'hash' | 'txRaw' | 'entryHash' | 'stateCommitHash' | 'finalized'> &
420
- Partial<Pick<ILedgerEntry, 'from' | 'nonce' | 'pk' | 'signature' | 'tx' | 'txType' | 'chainId'>>;
420
+ Partial<Pick<ILedgerEntry, 'from' | 'pk' | 'signature' | 'tx' | 'txType' | 'chainId'>> & {
421
+ nonce?: number | string;
422
+ };
421
423
 
422
424
  /** Merkle inclusion proof returned by getMerkleProof */
423
425
  proof: IMerkleProof;
@@ -229,6 +229,7 @@ export interface IResolverTransaction {
229
229
  code?: string;
230
230
  sender?: string;
231
231
  receiver?: string;
232
+ gasPayer?: string;
232
233
  receipts?: TTransactionReceipt[];
233
234
  tokenSymbols?: ITokenInfo[];
234
235
  accounts?: string[];
@@ -23,10 +23,19 @@ import type {
23
23
  TVariableInput,
24
24
  } from '../lib/type_pb';
25
25
 
26
+ /** Per-revoke accounting entry for stake state (#1352) */
27
+ export interface IStakeRevokeEntry {
28
+ txTime: string;
29
+ tokens?: TokenBalanceMap;
30
+ assets?: string[];
31
+ }
32
+
26
33
  /** Storage format with ISO 8601 string timestamps */
27
34
  export interface IStateContext extends Omit<TStateContext, 'genesisTime' | 'renaissanceTime'> {
28
35
  genesisTime: string;
29
36
  renaissanceTime: string;
37
+ /** Per-revoke accounting keyed by revoke tx hash (#1352) */
38
+ revokes?: Record<string, IStakeRevokeEntry>;
30
39
  }
31
40
 
32
41
  export interface IStateContextInput {
@@ -48,6 +48,7 @@ export type TAccountFilter = {
48
48
 
49
49
  export type TTxFilter = {
50
50
  txs: Array<string>,
51
+ gasPayer?: string,
51
52
  }
52
53
 
53
54
  export type TRollupFilter = {
@@ -72,6 +73,7 @@ export type TAddressFilter = {
72
73
  sender: string,
73
74
  receiver: string,
74
75
  direction: DirectionMap[keyof DirectionMap],
76
+ gasPayer?: string,
75
77
  }
76
78
 
77
79
  export type TPageInfo = {
@@ -124,6 +126,7 @@ export type TIndexedTransaction = {
124
126
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
125
127
  tokenSymbols: Array<TTokenMeta>,
126
128
  receipts: Array<type_pb.TTransactionReceipt>,
129
+ gasPayer?: string,
127
130
  }
128
131
 
129
132
  export type TIndexedAccountState = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/types",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "description": "Typescript definitions generated from protobuf",
5
5
  "keywords": [
6
6
  "ocap",