@ocap/resolver 1.31.9 → 1.32.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.
Files changed (42) hide show
  1. package/esm/_virtual/rolldown_runtime.mjs +7 -0
  2. package/esm/api.d.mts +33 -5
  3. package/esm/api.mjs +939 -53
  4. package/esm/dashboard.d.mts +199 -0
  5. package/esm/dashboard.mjs +2481 -0
  6. package/esm/explorer.d.mts +29 -0
  7. package/esm/explorer.mjs +227 -0
  8. package/esm/follower.d.mts +294 -0
  9. package/esm/follower.mjs +2452 -0
  10. package/esm/hooks.mjs +1 -1
  11. package/esm/hotstuff-runtime.d.mts +271 -0
  12. package/esm/hotstuff-runtime.mjs +2668 -0
  13. package/esm/index.d.mts +79 -4
  14. package/esm/index.mjs +911 -174
  15. package/esm/node-preferences.d.mts +203 -0
  16. package/esm/node-preferences.mjs +1021 -0
  17. package/esm/replayer.d.mts +114 -0
  18. package/esm/replayer.mjs +430 -0
  19. package/esm/token-distribution.mjs +2 -2
  20. package/esm/token-flow.mjs +1 -1
  21. package/esm/types.d.mts +25 -2
  22. package/lib/api.cjs +941 -52
  23. package/lib/api.d.cts +33 -5
  24. package/lib/dashboard.cjs +2491 -0
  25. package/lib/dashboard.d.cts +199 -0
  26. package/lib/explorer.cjs +227 -0
  27. package/lib/explorer.d.cts +29 -0
  28. package/lib/follower.cjs +2458 -0
  29. package/lib/follower.d.cts +294 -0
  30. package/lib/hooks.cjs +1 -1
  31. package/lib/hotstuff-runtime.cjs +2671 -0
  32. package/lib/hotstuff-runtime.d.cts +271 -0
  33. package/lib/index.cjs +946 -174
  34. package/lib/index.d.cts +79 -4
  35. package/lib/node-preferences.cjs +1043 -0
  36. package/lib/node-preferences.d.cts +203 -0
  37. package/lib/replayer.cjs +432 -0
  38. package/lib/replayer.d.cts +114 -0
  39. package/lib/token-distribution.cjs +2 -2
  40. package/lib/token-flow.cjs +1 -1
  41. package/lib/types.d.cts +25 -2
  42. package/package.json +20 -14
@@ -0,0 +1,114 @@
1
+ import { IChainConfig, IIndexDB, ILedger, ILedgerEntry, IPipelineLogger, IStateDB } from "@ocap/types";
2
+
3
+ //#region src/replayer.d.ts
4
+
5
+ interface IReplayerResolverTarget {
6
+ statedb: IStateDB;
7
+ indexdb: IIndexDB;
8
+ ledger: ILedger;
9
+ config: IChainConfig;
10
+ logger: IPipelineLogger;
11
+ _indexRejectedLedgerTx(ctx: Record<string, unknown>, err: unknown): Promise<void>;
12
+ flushIndexWrites(): Promise<void>;
13
+ }
14
+ interface IReplayEntryOptions {
15
+ /** Whether to append the entry into `resolver.ledger` after `statedb` verification (default: `true`). */
16
+ appendToLedger?: boolean;
17
+ /** Optional upstream `entryHashV2From` policy cutoff passed to `ledger.appendVerifiedEntries`. */
18
+ entryHashV2From?: number | 'infinity';
19
+ }
20
+ interface IReplayEntryResult {
21
+ status: 'applied' | 'persisted-failed' | 'orphan-indexed' | 'already-applied';
22
+ sequence: number;
23
+ hash: string;
24
+ code: string;
25
+ stateCommitHash: string | null;
26
+ }
27
+ interface IDryRunVerifyEntriesOptions {
28
+ expectedPrevSequence?: number;
29
+ prevStateRoot?: string | null;
30
+ entryHashV2From?: number | 'infinity';
31
+ /** Entries come from the local ledger (crash reconciliation), not from a peer: skip the future-timestamp guard. */
32
+ skipFutureTimestampCheck?: boolean;
33
+ }
34
+ interface IValidateWireEntryOptions {
35
+ /** Entries come from the local ledger (crash reconciliation), not from a peer: skip the future-timestamp guard. */
36
+ skipFutureTimestampCheck?: boolean;
37
+ }
38
+ /** Error code of a replayed entry refused for a timestamp ahead of the local clock (retryable, never halting). */
39
+ declare const FUTURE_LEDGER_ENTRY_TIMESTAMP = "FUTURE_LEDGER_ENTRY_TIMESTAMP";
40
+ interface IFutureTimestampRejection {
41
+ sequence: number;
42
+ hash: string;
43
+ timestamp: number;
44
+ nowMs: number;
45
+ maxSkewMs: number;
46
+ activationSequence: number;
47
+ }
48
+ /**
49
+ * #1961: `entry.timestamp` is not covered by `entryHash`, so a leader can stamp a real entry with a future time
50
+ * (and with it every time lock the tx sets). A follower refuses peer entries at or after `activationSequence` whose
51
+ * timestamp is more than `maxSkewMs` ahead of its own clock. Past timestamps are always accepted (no monotonic
52
+ * rule, #1972). The refusal is retryable: the entry is accepted once the local clock catches up.
53
+ */
54
+ interface IFutureTimestampGuardOptions {
55
+ activationSequence: number;
56
+ maxSkewMs: number;
57
+ now?: () => number;
58
+ onReject?: (info: IFutureTimestampRejection) => void;
59
+ }
60
+ interface ILedgerEntryReplayerOptions {
61
+ /** Unset (default): no timestamp guard, today's behavior. */
62
+ futureTimestampGuard?: IFutureTimestampGuardOptions;
63
+ }
64
+ interface IDryRunVerifyEntriesResult {
65
+ derivedStateRoot: string;
66
+ entryHashes: string[];
67
+ }
68
+ declare class LedgerEntryReplayer {
69
+ private readonly resolver;
70
+ private readonly emptyFilter;
71
+ private readonly executor;
72
+ private activeExpectedCommitHash;
73
+ private activeSubLambdaOverride;
74
+ private lastCommittedHash;
75
+ private lastCommitMismatchError;
76
+ private lastStorageError;
77
+ private mutex;
78
+ private readonly futureTimestampGuard;
79
+ constructor(resolver: IReplayerResolverTarget, options?: ILedgerEntryReplayerOptions);
80
+ private runExclusive;
81
+ private appendVerifiedEntryToLedger;
82
+ private verifyRawTxHashMatchesEntry;
83
+ /**
84
+ * #1961 future-timestamp guard (no-op unless `futureTimestampGuard` is configured). Throws a retryable
85
+ * `FUTURE_LEDGER_ENTRY_TIMESTAMP` that is neither a local divergence nor a peer authentication failure, so the
86
+ * follower logs it, keeps its state and retries on the next sync cycle.
87
+ */
88
+ assertEntryTimestampNotInFuture(entry: ILedgerEntry): void;
89
+ /**
90
+ * Pre-replay wire & primitive validation for untrusted network hot-tail / cold-segment payloads (#1710).
91
+ * Throws `INVALID_LEDGER_ENTRY` (peer-disqualifying, non-halting) on any malformed wire field or lossy JSON coercion,
92
+ * and the retryable `FUTURE_LEDGER_ENTRY_TIMESTAMP` when the #1961 guard is on (unless the entry is local).
93
+ */
94
+ validateWireEntry(entry: ILedgerEntry, options?: IValidateWireEntryOptions): void;
95
+ private authenticateAndDecodeEntry;
96
+ private indexOrphanEntry;
97
+ /**
98
+ * Replay a single finalized `ILedgerEntry` sequentially (`concurrency = 1`).
99
+ */
100
+ replayEntry(entry: ILedgerEntry, options?: IReplayEntryOptions): Promise<IReplayEntryResult>;
101
+ /**
102
+ * Dry-run verify a proposed batch of `1..N` finalized entries inside a single rolled-back SQLite
103
+ * transaction (#1712 HotStuff-Lite replica voting), verifying every entry's wire format, `entryHash`,
104
+ * and post-execution `_state_commit` hash with zero mutations to `statedb`, `trusted`, `indexdb`, or `ledger`.
105
+ */
106
+ dryRunVerifyEntries(entries: ILedgerEntry[], options?: IDryRunVerifyEntriesOptions): Promise<IDryRunVerifyEntriesResult>;
107
+ /**
108
+ * Scan existing local ledger entries in `[fromSeq, toSeq]` and ensure any force-finalized
109
+ * orphan entries (`stateCommitHash === ''`) are indexed into `indexdb.tx` after `rebuildIndex()`.
110
+ */
111
+ indexExistingOrphanEntries(fromSeq?: number, toSeq?: number): Promise<number>;
112
+ }
113
+ //#endregion
114
+ export { FUTURE_LEDGER_ENTRY_TIMESTAMP, IDryRunVerifyEntriesOptions, IDryRunVerifyEntriesResult, IFutureTimestampGuardOptions, IFutureTimestampRejection, ILedgerEntryReplayerOptions, IReplayEntryOptions, IReplayEntryResult, IReplayerResolverTarget, IValidateWireEntryOptions, LedgerEntryReplayer };
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- let _ocap_util = require("@ocap/util");
3
- let _arcblock_did = require("@arcblock/did");
4
2
  let _ocap_mcrypto = require("@ocap/mcrypto");
3
+ let _arcblock_did = require("@arcblock/did");
4
+ let _ocap_util = require("@ocap/util");
5
5
  let _ocap_tx_protocols_lib_util = require("@ocap/tx-protocols/lib/util");
6
6
  let lodash_omit = require("lodash/omit");
7
7
  lodash_omit = require_rolldown_runtime.__toESM(lodash_omit);
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let _ocap_util = require("@ocap/util");
3
- let _arcblock_validator = require("@arcblock/validator");
4
3
  let _ocap_util_lib_error = require("@ocap/util/lib/error");
4
+ let _arcblock_validator = require("@arcblock/validator");
5
5
  let lodash_uniq = require("lodash/uniq");
6
6
  lodash_uniq = require_rolldown_runtime.__toESM(lodash_uniq);
7
7
  let _ocap_state_lib_states_tx = require("@ocap/state/lib/states/tx");
package/lib/types.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { Address, BN, DirectionMap, Hash, IAccountState, IAddressArgs, IAny, IAssetFactoryState, IAssetState, IBalanceTable, IChainConfig, IChainConfig as IChainConfig$1, IChainState, IDelegateState, IEvidenceState, IExecutedContext, IForeignToken, IGetAccountStateArgs, IGetAccountTokensArgs, IIndexDB, IIndexDB as IIndexDB$1, IIndexTable, IIndexTable as IIndexTable$1, ILedger, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, IOperationContext, IPipelineLogger, IPipelineLogger as IPipelineLogger$1, IResolver, IResolverAccountState, IResolverChainInfo, IResolverContext, IResolverContext as IResolverContext$1, IResolverFactoryState, IResolverForgeStats, IResolverListAccountsResult, IResolverListAssetsResult, IResolverListDelegationsResult, IResolverListFactoriesResult, IResolverListRollupBlocksResult, IResolverListRollupValidatorsResult, IResolverListRollupsResult, IResolverListStakesResult, IResolverListTokenFactoriesResult, IResolverListTokensResult, IResolverListTransactionsResult, IResolverNetInfo, IResolverNodeInfo, IResolverPaging, IResolverPaging as IResolverPaging$1, IResolverRollupState, IResolverStakeState, IResolverTransaction, IResolverTxItxJson, IResolverValidatorsInfo, IRollupBlock, IRollupState, IRollupValidator, IStakeState, IStateContext, IStateDB, IStateDB as IStateDB$1, IStateTable, IStateTable as IStateTable$1, ITokenConfig, ITokenFactoryState, ITokenFlowsResult, ITokenInfo, ITokenInfo as ITokenInfo$1, ITokenMetadata, ITokenState, ITransactionConfig, ITxGasConfig, ITxStakeConfig, ITxState, IVaultsConfig, IndexTableTypeMap, Promisable, TAccountFilter, TAccountToken, TAddressFilter, TAssetFilter, TDelegationFilter, TFactoryFilter, TIndexedAccountState, TIndexedAssetState, TIndexedDelegationState, TIndexedFactoryState, TIndexedRollupBlock, TIndexedRollupState, TIndexedRollupValidator, TIndexedStakeState, TIndexedTokenFactoryState, TIndexedTokenState, TIndexedTokenState as TIndexedTokenState$1, TIndexedTransaction, TPage, TPageInfo, TPageOrder, TRangeFilter, TReceiptChange, TRequestEstimateGas, TRequestGetEvidenceState, TRequestGetRollupBlock, TRequestGetTokenDistribution, TRequestGetTx, TRequestListAssetTransactions, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokenFlows, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions, TRequestSearch, TRequestVerifyAccountRisk, TRollupFilter, TSearchResult, TStakeFilter, TTimeFilter, TTokenDistribution, TTokenFactoryFilter, TTokenFilter, TTokenMeta, TTransactionReceipt, TTxFilter, TTypeFilter, TValidatorFilter, TValidityFilter, TVerifyAccountRiskResult, TokenBalanceMap, ValidityMap } from "@ocap/types";
1
+ import * as _ocap_types0 from "@ocap/types";
2
+ import { Address, BN, DirectionMap, Hash, IAccountState, IAddressArgs, IAny, IAssetFactoryState, IAssetState, IBalanceTable, IChainConfig, IChainConfig as IChainConfig$1, IChainState, IDelegateState, IEvidenceState, IExecutedContext, IFollowerStatusResponse, IForeignToken, IGetAccountStateArgs, IGetAccountTokensArgs, IIndexDB, IIndexDB as IIndexDB$1, IIndexTable, IIndexTable as IIndexTable$1, ILedger, IListAccountsResult, IListAssetsResult, IListDelegationsResult, IListFactoriesResult, IListRollupBlocksResult, IListRollupValidatorsResult, IListRollupsResult, IListStakesResult, IListTokenFactoriesResult, IListTokensResult, IListTransactionsResult, INodeRuntimeAdapter, IOperationContext, IPipelineLogger, IPipelineLogger as IPipelineLogger$1, IResolver, IResolverAccountState, IResolverChainInfo, IResolverContext, IResolverContext as IResolverContext$1, IResolverFactoryState, IResolverForgeStats, IResolverListAccountsResult, IResolverListAssetsResult, IResolverListDelegationsResult, IResolverListFactoriesResult, IResolverListRollupBlocksResult, IResolverListRollupValidatorsResult, IResolverListRollupsResult, IResolverListStakesResult, IResolverListTokenFactoriesResult, IResolverListTokensResult, IResolverListTransactionsResult, IResolverNetInfo, IResolverNodeInfo, IResolverPaging, IResolverPaging as IResolverPaging$1, IResolverRollupState, IResolverStakeState, IResolverTransaction, IResolverTxItxJson, IResolverValidatorsInfo, IRollupBlock, IRollupState, IRollupValidator, IStakeState, IStateContext, IStateDB, IStateDB as IStateDB$1, IStateTable, IStateTable as IStateTable$1, ITokenConfig, ITokenFactoryState, ITokenFlowsResult, ITokenInfo, ITokenInfo as ITokenInfo$1, ITokenMetadata, ITokenState, ITransactionConfig, ITxGasConfig, ITxStakeConfig, ITxState, IVaultsConfig, IndexTableTypeMap, Promisable, TAccountFilter, TAccountToken, TAddressFilter, TAssetFilter, TDelegationFilter, TFactoryFilter, TFollowerSyncMode, TIndexedAccountState, TIndexedAssetState, TIndexedDelegationState, TIndexedFactoryState, TIndexedRollupBlock, TIndexedRollupState, TIndexedRollupValidator, TIndexedStakeState, TIndexedTokenFactoryState, TIndexedTokenState, TIndexedTokenState as TIndexedTokenState$1, TIndexedTransaction, TNodeRole, TNodeWritePolicy, TPage, TPageInfo, TPageOrder, TRangeFilter, TReceiptChange, TRequestEstimateGas, TRequestGetEvidenceState, TRequestGetRollupBlock, TRequestGetTokenDistribution, TRequestGetTx, TRequestListAssetTransactions, TRequestListAssets, TRequestListDelegations, TRequestListFactories, TRequestListRollupBlocks, TRequestListRollupValidators, TRequestListRollups, TRequestListStakes, TRequestListTokenFactories, TRequestListTokenFlows, TRequestListTokens, TRequestListTopAccounts, TRequestListTransactions, TRequestSearch, TRequestVerifyAccountRisk, TRollupFilter, TSearchResult, TStakeFilter, TTimeFilter, TTokenDistribution, TTokenFactoryFilter, TTokenFilter, TTokenMeta, TTransactionReceipt, TTxFilter, TTypeFilter, TValidatorFilter, TValidityFilter, TVerifyAccountRiskResult, TokenBalanceMap, ValidityMap } from "@ocap/types";
2
3
 
3
4
  //#region src/types.d.ts
4
5
 
@@ -84,7 +85,29 @@ interface IResolverParams {
84
85
  ledger: ILedger;
85
86
  config: IChainConfig$1;
86
87
  filter?: IFilter;
88
+ /**
89
+ * Optional pre-queue RPC admission blocklist callback (#1756).
90
+ * Enforces node-local `blockedAccounts` BEFORE consensus/queue entry without mutating
91
+ * deterministic `OCAPExecutor` `_state_commit` hashes across HotStuff replicas or Followers.
92
+ */
93
+ admissionBlockedCheck?: (address: string) => boolean | Promise<boolean>;
94
+ /**
95
+ * Optional pre-queue RPC admission reserved-symbol callback (#1756).
96
+ * Enforces node-local `reservedSymbols` BEFORE consensus/queue entry without mutating
97
+ * deterministic `OCAPExecutor` `_state_commit` hashes across HotStuff replicas or Followers.
98
+ */
99
+ admissionReservedSymbolCheck?: (symbol: string) => boolean | Promise<boolean>;
87
100
  validateTokenConfig?: boolean;
101
+ skipInitializeStateDB?: boolean;
102
+ deferInitialize?: boolean;
103
+ consensusMode?: 'single' | 'hotstuff';
104
+ txQueueConfig?: {
105
+ maxRequest?: number;
106
+ concurrent?: number;
107
+ timeoutMs?: number;
108
+ };
109
+ now?: () => number;
110
+ nodeRuntime?: _ocap_types0.INodeRuntimeAdapter;
88
111
  logger?: IPipelineLogger$1;
89
112
  }
90
113
  /**
@@ -113,4 +136,4 @@ interface IMigrationChain {
113
136
  findAddressAtTime: (address: string, time: Date) => string;
114
137
  }
115
138
  //#endregion
116
- export { type Address, type BN, type DirectionMap, FlexibleIndexDB, FlexibleStateDB, type Hash, type IAccountState, type IAddressArgs, type IAny, type IAssetFactoryState, type IAssetState, type IBalanceTable, type IChainConfig, type IChainState, IChunkIterator, IDataObject, type IDelegateState, IDelegationOp, type IEvidenceState, type IExecutedContext, IFilter, type IForeignToken, type IGetAccountStateArgs, type IGetAccountTokensArgs, IGetStateParams, type IIndexDB, type IIndexTable, type IListAccountsResult, type IListAssetsResult, IListChunksParams, type IListDelegationsResult, type IListFactoriesResult, type IListRollupBlocksResult, type IListRollupValidatorsResult, type IListRollupsResult, type IListStakesResult, type IListTokenFactoriesResult, type IListTokensResult, type IListTransactionsResult, IMigrationChain, type IOperationContext, IPaginatedResult, type IPipelineLogger, type IResolver, type IResolverAccountState, type IResolverChainInfo, type IResolverContext, type IResolverFactoryState, type IResolverForgeStats, type IResolverListAccountsResult, type IResolverListAssetsResult, type IResolverListDelegationsResult, type IResolverListFactoriesResult, type IResolverListRollupBlocksResult, type IResolverListRollupValidatorsResult, type IResolverListRollupsResult, type IResolverListStakesResult, type IResolverListTokenFactoriesResult, type IResolverListTokensResult, type IResolverListTransactionsResult, type IResolverNetInfo, type IResolverNodeInfo, type IResolverPaging, IResolverParams, type IResolverRollupState, type IResolverStakeState, type IResolverTransaction, type IResolverTxItxJson, type IResolverValidatorsInfo, type IRollupBlock, type IRollupState, type IRollupValidator, type IStakeState, type IStateContext, type IStateDB, type IStateTable, ITokenCache, type ITokenConfig, type ITokenFactoryState, type ITokenFlowsResult, type ITokenInfo, type ITokenMetadata, type ITokenState, type ITransactionConfig, ITrustedAccountConfig, type ITxGasConfig, type ITxStakeConfig, type ITxState, type IVaultsConfig, type IndexTableTypeMap, type Promisable, type TAccountFilter, type TAccountToken, type TAddressFilter, type TAssetFilter, type TDelegationFilter, type TFactoryFilter, type TIndexedAccountState, type TIndexedAssetState, type TIndexedDelegationState, type TIndexedFactoryState, type TIndexedRollupBlock, type TIndexedRollupState, type TIndexedRollupValidator, type TIndexedStakeState, type TIndexedTokenFactoryState, type TIndexedTokenState, type TIndexedTransaction, type TPage, type TPageInfo, type TPageOrder, type TRangeFilter, type TReceiptChange, type TRequestEstimateGas, type TRequestGetEvidenceState, type TRequestGetRollupBlock, type TRequestGetTokenDistribution, type TRequestGetTx, type TRequestListAssetTransactions, type TRequestListAssets, type TRequestListDelegations, type TRequestListFactories, type TRequestListRollupBlocks, type TRequestListRollupValidators, type TRequestListRollups, type TRequestListStakes, type TRequestListTokenFactories, type TRequestListTokenFlows, type TRequestListTokens, type TRequestListTopAccounts, type TRequestListTransactions, type TRequestSearch, type TRequestVerifyAccountRisk, type TRollupFilter, type TSearchResult, type TStakeFilter, type TTimeFilter, type TTokenDistribution, type TTokenFactoryFilter, type TTokenFilter, type TTokenMeta, type TTransactionReceipt, type TTxFilter, type TTypeFilter, type TValidatorFilter, type TValidityFilter, type TVerifyAccountRiskResult, type TokenBalanceMap, type ValidityMap };
139
+ export { type Address, type BN, type DirectionMap, FlexibleIndexDB, FlexibleStateDB, type Hash, type IAccountState, type IAddressArgs, type IAny, type IAssetFactoryState, type IAssetState, type IBalanceTable, type IChainConfig, type IChainState, IChunkIterator, IDataObject, type IDelegateState, IDelegationOp, type IEvidenceState, type IExecutedContext, IFilter, type IFollowerStatusResponse, type IForeignToken, type IGetAccountStateArgs, type IGetAccountTokensArgs, IGetStateParams, type IIndexDB, type IIndexTable, type IListAccountsResult, type IListAssetsResult, IListChunksParams, type IListDelegationsResult, type IListFactoriesResult, type IListRollupBlocksResult, type IListRollupValidatorsResult, type IListRollupsResult, type IListStakesResult, type IListTokenFactoriesResult, type IListTokensResult, type IListTransactionsResult, IMigrationChain, type INodeRuntimeAdapter, type IOperationContext, IPaginatedResult, type IPipelineLogger, type IResolver, type IResolverAccountState, type IResolverChainInfo, type IResolverContext, type IResolverFactoryState, type IResolverForgeStats, type IResolverListAccountsResult, type IResolverListAssetsResult, type IResolverListDelegationsResult, type IResolverListFactoriesResult, type IResolverListRollupBlocksResult, type IResolverListRollupValidatorsResult, type IResolverListRollupsResult, type IResolverListStakesResult, type IResolverListTokenFactoriesResult, type IResolverListTokensResult, type IResolverListTransactionsResult, type IResolverNetInfo, type IResolverNodeInfo, type IResolverPaging, IResolverParams, type IResolverRollupState, type IResolverStakeState, type IResolverTransaction, type IResolverTxItxJson, type IResolverValidatorsInfo, type IRollupBlock, type IRollupState, type IRollupValidator, type IStakeState, type IStateContext, type IStateDB, type IStateTable, ITokenCache, type ITokenConfig, type ITokenFactoryState, type ITokenFlowsResult, type ITokenInfo, type ITokenMetadata, type ITokenState, type ITransactionConfig, ITrustedAccountConfig, type ITxGasConfig, type ITxStakeConfig, type ITxState, type IVaultsConfig, type IndexTableTypeMap, type Promisable, type TAccountFilter, type TAccountToken, type TAddressFilter, type TAssetFilter, type TDelegationFilter, type TFactoryFilter, type TFollowerSyncMode, type TIndexedAccountState, type TIndexedAssetState, type TIndexedDelegationState, type TIndexedFactoryState, type TIndexedRollupBlock, type TIndexedRollupState, type TIndexedRollupValidator, type TIndexedStakeState, type TIndexedTokenFactoryState, type TIndexedTokenState, type TIndexedTransaction, type TNodeRole, type TNodeWritePolicy, type TPage, type TPageInfo, type TPageOrder, type TRangeFilter, type TReceiptChange, type TRequestEstimateGas, type TRequestGetEvidenceState, type TRequestGetRollupBlock, type TRequestGetTokenDistribution, type TRequestGetTx, type TRequestListAssetTransactions, type TRequestListAssets, type TRequestListDelegations, type TRequestListFactories, type TRequestListRollupBlocks, type TRequestListRollupValidators, type TRequestListRollups, type TRequestListStakes, type TRequestListTokenFactories, type TRequestListTokenFlows, type TRequestListTokens, type TRequestListTopAccounts, type TRequestListTransactions, type TRequestSearch, type TRequestVerifyAccountRisk, type TRollupFilter, type TSearchResult, type TStakeFilter, type TTimeFilter, type TTokenDistribution, type TTokenFactoryFilter, type TTokenFilter, type TTokenMeta, type TTransactionReceipt, type TTxFilter, type TTypeFilter, type TValidatorFilter, type TValidityFilter, type TVerifyAccountRiskResult, type TokenBalanceMap, type ValidityMap };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.31.9",
6
+ "version": "1.32.1",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "type": "module",
9
9
  "main": "./lib/index.cjs",
@@ -15,6 +15,11 @@
15
15
  "import": "./esm/index.mjs",
16
16
  "default": "./lib/index.cjs"
17
17
  },
18
+ "./api": {
19
+ "types": "./esm/api.d.mts",
20
+ "import": "./esm/api.mjs",
21
+ "default": "./lib/api.cjs"
22
+ },
18
23
  "./lib/*.js": {
19
24
  "types": "./esm/*.d.mts",
20
25
  "import": "./esm/*.mjs",
@@ -49,20 +54,21 @@
49
54
  "tsdown": "^0.18.4"
50
55
  },
51
56
  "dependencies": {
52
- "@arcblock/did": "1.31.9",
53
- "@arcblock/did-ext": "1.31.9",
54
- "@arcblock/did-util": "1.31.9",
57
+ "@arcblock/did": "1.32.1",
58
+ "@arcblock/did-ext": "1.32.1",
59
+ "@arcblock/did-util": "1.32.1",
60
+ "@arcblock/ledger-core": "1.32.1",
55
61
  "@arcblock/nft-display": "^3.2.3",
56
- "@arcblock/validator": "1.31.9",
57
- "@ocap/config": "1.31.9",
58
- "@ocap/indexdb": "1.31.9",
59
- "@ocap/mcrypto": "1.31.9",
60
- "@ocap/message": "1.31.9",
61
- "@ocap/state": "1.31.9",
62
- "@ocap/tx-protocols": "1.31.9",
63
- "@ocap/types": "1.31.9",
64
- "@ocap/util": "1.31.9",
65
- "@ocap/wallet": "1.31.9",
62
+ "@arcblock/validator": "1.32.1",
63
+ "@ocap/config": "1.32.1",
64
+ "@ocap/indexdb": "1.32.1",
65
+ "@ocap/mcrypto": "1.32.1",
66
+ "@ocap/message": "1.32.1",
67
+ "@ocap/state": "1.32.1",
68
+ "@ocap/tx-protocols": "1.32.1",
69
+ "@ocap/types": "1.32.1",
70
+ "@ocap/util": "1.32.1",
71
+ "@ocap/wallet": "1.32.1",
66
72
  "debug": "^4.4.3",
67
73
  "express": "^4.22.1",
68
74
  "lodash": "^4.17.23",