@ocap/types 1.29.14 → 1.29.16
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/indexdb.ts +8 -0
- package/interfaces/state.ts +3 -1
- package/lib/state_pb.d.ts +2 -0
- package/lib/trace-type_pb.d.ts +1 -0
- package/lib/tx_pb.d.ts +2 -0
- package/package.json +1 -1
package/interfaces/indexdb.ts
CHANGED
|
@@ -94,6 +94,7 @@ import type {
|
|
|
94
94
|
TIndexedTokenState,
|
|
95
95
|
TIndexedTransaction,
|
|
96
96
|
TPageInfo,
|
|
97
|
+
TSearchResult,
|
|
97
98
|
TTokenDistribution,
|
|
98
99
|
} from '../lib/trace-type_pb';
|
|
99
100
|
|
|
@@ -423,6 +424,13 @@ export interface IIndexDB {
|
|
|
423
424
|
listRollupValidators(params?: Partial<TRequestListRollupValidators>): Promisable<IListRollupValidatorsResult>;
|
|
424
425
|
listTokenFactories(params?: Partial<TRequestListTokenFactories>): Promisable<IListTokenFactoriesResult>;
|
|
425
426
|
|
|
427
|
+
/**
|
|
428
|
+
* Search entities by semantic fields (moniker, name, symbol, description)
|
|
429
|
+
* @param keyword - Search keyword
|
|
430
|
+
* @returns Array of matching search results
|
|
431
|
+
*/
|
|
432
|
+
search?(keyword: string): Promisable<TSearchResult[]>;
|
|
433
|
+
|
|
426
434
|
/**
|
|
427
435
|
* Get related addresses for account migration tracking
|
|
428
436
|
* @param address - Account address
|
package/interfaces/state.ts
CHANGED
|
@@ -236,8 +236,10 @@ export interface IDelegationOpLimit {
|
|
|
236
236
|
export type IDelegationOps = Record<string, { limit: IDelegationOpLimit }>;
|
|
237
237
|
|
|
238
238
|
/** ops: IDelegationOps instead of opsMap */
|
|
239
|
-
export interface IDelegateState extends Omit<TDelegateState, 'opsMap' | 'context' | 'data'> {
|
|
239
|
+
export interface IDelegateState extends Omit<TDelegateState, 'opsMap' | 'context' | 'data' | 'deny' | 'validUntil'> {
|
|
240
240
|
ops?: IDelegationOps | null;
|
|
241
|
+
deny?: string[];
|
|
242
|
+
validUntil?: number;
|
|
241
243
|
context: IStateContext;
|
|
242
244
|
/** Protobuf google.protobuf.Any - structure varies by delegation type */
|
|
243
245
|
data?: unknown;
|
package/lib/state_pb.d.ts
CHANGED
package/lib/trace-type_pb.d.ts
CHANGED
package/lib/tx_pb.d.ts
CHANGED