@black-market/sdk 0.6.1 → 0.6.3
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/dist/lifecycle/planner.d.ts.map +1 -1
- package/dist/lifecycle/planner.js +78 -75
- package/dist/lifecycle/planner.js.map +1 -1
- package/dist/lifecycle/progress.d.ts.map +1 -1
- package/dist/lifecycle/progress.js +65 -65
- package/dist/lifecycle/progress.js.map +1 -1
- package/dist/lifecycle/rpc.d.ts +3 -1
- package/dist/lifecycle/rpc.d.ts.map +1 -1
- package/dist/lifecycle/rpc.js +62 -4
- package/dist/lifecycle/rpc.js.map +1 -1
- package/dist/lifecycle/simulation.d.ts.map +1 -1
- package/dist/lifecycle/simulation.js +39 -13
- package/dist/lifecycle/simulation.js.map +1 -1
- package/dist/lifecycle/types.d.ts +13 -0
- package/dist/lifecycle/types.d.ts.map +1 -1
- package/dist/lifecycle/types.js.map +1 -1
- package/docs/launch-lifecycle.md +102 -0
- package/package.json +1 -1
- package/src/lifecycle/planner.ts +27 -23
- package/src/lifecycle/progress.ts +58 -59
- package/src/lifecycle/rpc.ts +58 -5
- package/src/lifecycle/simulation.ts +39 -13
- package/src/lifecycle/types.ts +17 -0
package/src/lifecycle/types.ts
CHANGED
|
@@ -4,11 +4,28 @@ import type {
|
|
|
4
4
|
MarketLiveStateV1, PreparedMarketV1, ProfileRegistrationV1, ProfileTopologyV1, LaunchEnvelopeV2, LifecycleDeveloperTerms,
|
|
5
5
|
} from "./schema.js";
|
|
6
6
|
|
|
7
|
+
/** Local opt-in timing only: never contains request arguments, addresses, results or errors. */
|
|
8
|
+
export type LifecycleDiagnosticStage =
|
|
9
|
+
| "plan" | "plan.context" | "plan.domain" | "plan.progress" | "plan.inputs" | "rpc"
|
|
10
|
+
| "profile.certification" | "simulation.context" | "simulation.nitro"
|
|
11
|
+
| "simulation.poster" | "simulation.measure" | "simulation.replay" | "simulation.envelope";
|
|
12
|
+
export type LifecycleDiagnosticEvent = {
|
|
13
|
+
stage: LifecycleDiagnosticStage;
|
|
14
|
+
phase: "queued" | "start" | "success" | "failure" | "reuse";
|
|
15
|
+
durationMs?: number;
|
|
16
|
+
queueMs?: number;
|
|
17
|
+
requestId?: number;
|
|
18
|
+
method?: string;
|
|
19
|
+
};
|
|
20
|
+
export type LifecycleDiagnosticListener = (event: LifecycleDiagnosticEvent) => void | Promise<void>;
|
|
21
|
+
|
|
7
22
|
/** viem public clients or a raw JSON-RPC client; neither selects a transport. */
|
|
8
23
|
export type LifecycleRpcClient = {
|
|
9
24
|
request(args: { method: string; params?: readonly unknown[] }): Promise<unknown>;
|
|
10
25
|
/** Opt in to bounded parallel reads only when the supplied transport batches concurrent requests. */
|
|
11
26
|
supportsReadBatching?: boolean;
|
|
27
|
+
/** Optional local observer. Listener failures cannot change execution or admission. */
|
|
28
|
+
onDiagnostic?: LifecycleDiagnosticListener;
|
|
12
29
|
};
|
|
13
30
|
export type LifecycleBlock = { number: bigint; hash: Hash; timestamp: bigint; gasLimit: bigint; baseFeePerGas?: bigint };
|
|
14
31
|
export type LifecycleLimitContext = { client: LifecycleRpcClient; account: Address; orchestrator: Address; block: LifecycleBlock; chainId: bigint };
|