@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.
- package/interfaces/ledger.ts +3 -1
- package/interfaces/resolver.ts +1 -0
- package/interfaces/state.ts +9 -0
- package/lib/trace-type_pb.d.ts +3 -0
- package/package.json +1 -1
package/interfaces/ledger.ts
CHANGED
|
@@ -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' | '
|
|
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;
|
package/interfaces/resolver.ts
CHANGED
package/interfaces/state.ts
CHANGED
|
@@ -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 {
|
package/lib/trace-type_pb.d.ts
CHANGED
|
@@ -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 = {
|