@andrewkimjoseph/celina-sdk 0.25.25 → 0.25.27

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.
@@ -2,4 +2,4 @@
2
2
  * Browser-safe prepared-step simulation (no Node analytics / wallet product logic).
3
3
  */
4
4
  export type { PreparedTx } from "../types/prepared.js";
5
- export { simulatePreparedStep, type SimulatePreparedStepOptions, type SimulatePreparedStepParams, } from "./simulate-prepared-step.js";
5
+ export { PreparedFlowExecutionError, isPreparedFlowExecutionError, simulatePreparedStep, simulatePreparedStepWithRetry, type SimulatePreparedStepOptions, type SimulatePreparedStepParams, type SimulatePreparedStepRetryOptions, } from "./simulate-prepared-step.js";
@@ -1,2 +1,2 @@
1
- export { simulatePreparedStep, } from "./simulate-prepared-step.js";
1
+ export { PreparedFlowExecutionError, isPreparedFlowExecutionError, simulatePreparedStep, simulatePreparedStepWithRetry, } from "./simulate-prepared-step.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/simulation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oBAAoB,GAGrB,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/simulation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,6BAA6B,GAI9B,MAAM,6BAA6B,CAAC"}
@@ -10,8 +10,28 @@ export type SimulatePreparedStepParams = {
10
10
  account: `0x${string}`;
11
11
  step: PreparedTx;
12
12
  };
13
+ /** Backoff between simulation retries after a failed `eth_call` / `estimateGas`. */
14
+ export type SimulatePreparedStepRetryOptions = {
15
+ /** Delays in ms after each failed attempt. Default: 750, 1500, 3000. */
16
+ delaysMs?: readonly number[];
17
+ };
18
+ /**
19
+ * Thrown when a multi-step prepared flow fails after one or more steps already
20
+ * broadcast. Carries confirmed hashes so hosts can report partial progress.
21
+ */
22
+ export declare class PreparedFlowExecutionError extends Error {
23
+ readonly stepHashes: `0x${string}`[];
24
+ readonly stepCount?: number;
25
+ constructor(message: string, stepHashes?: `0x${string}`[], stepCount?: number);
26
+ }
27
+ export declare function isPreparedFlowExecutionError(error: unknown): error is PreparedFlowExecutionError;
13
28
  /**
14
29
  * Simulate a prepared transaction step against current chain state.
15
30
  * Throws when the transaction would revert — call immediately before send.
16
31
  */
17
32
  export declare function simulatePreparedStep(publicClient: PublicClient, params: SimulatePreparedStepParams, options?: SimulatePreparedStepOptions): Promise<void>;
33
+ /**
34
+ * Simulate a prepared step, retrying on failure to absorb RPC replica lag
35
+ * after a prior approval is mined. Genuine reverts still fail after retries.
36
+ */
37
+ export declare function simulatePreparedStepWithRetry(publicClient: PublicClient, params: SimulatePreparedStepParams, options?: SimulatePreparedStepOptions, retry?: SimulatePreparedStepRetryOptions): Promise<void>;
@@ -1,4 +1,25 @@
1
1
  import { isInsufficientBalanceSimulationError } from "../utils/transaction-errors.js";
2
+ const DEFAULT_RETRY_DELAYS_MS = [750, 1500, 3000];
3
+ /**
4
+ * Thrown when a multi-step prepared flow fails after one or more steps already
5
+ * broadcast. Carries confirmed hashes so hosts can report partial progress.
6
+ */
7
+ export class PreparedFlowExecutionError extends Error {
8
+ stepHashes;
9
+ stepCount;
10
+ constructor(message, stepHashes = [], stepCount) {
11
+ super(message);
12
+ this.name = "PreparedFlowExecutionError";
13
+ this.stepHashes = stepHashes;
14
+ this.stepCount = stepCount;
15
+ }
16
+ }
17
+ export function isPreparedFlowExecutionError(error) {
18
+ return (error instanceof PreparedFlowExecutionError ||
19
+ (error instanceof Error &&
20
+ error.name === "PreparedFlowExecutionError" &&
21
+ Array.isArray(error.stepHashes)));
22
+ }
2
23
  function stepRequest(account, step) {
3
24
  return {
4
25
  account,
@@ -39,4 +60,30 @@ export async function simulatePreparedStep(publicClient, params, options) {
39
60
  throw new Error(simulationErrorMessage(params.step, error));
40
61
  }
41
62
  }
63
+ function sleep(ms) {
64
+ return new Promise((resolve) => {
65
+ setTimeout(resolve, ms);
66
+ });
67
+ }
68
+ /**
69
+ * Simulate a prepared step, retrying on failure to absorb RPC replica lag
70
+ * after a prior approval is mined. Genuine reverts still fail after retries.
71
+ */
72
+ export async function simulatePreparedStepWithRetry(publicClient, params, options, retry) {
73
+ const delaysMs = retry?.delaysMs ?? DEFAULT_RETRY_DELAYS_MS;
74
+ let lastError;
75
+ for (let attempt = 0; attempt <= delaysMs.length; attempt++) {
76
+ if (attempt > 0) {
77
+ await sleep(delaysMs[attempt - 1]);
78
+ }
79
+ try {
80
+ await simulatePreparedStep(publicClient, params, options);
81
+ return;
82
+ }
83
+ catch (error) {
84
+ lastError = error;
85
+ }
86
+ }
87
+ throw lastError;
88
+ }
42
89
  //# sourceMappingURL=simulate-prepared-step.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-prepared-step.js","sourceRoot":"","sources":["../../src/simulation/simulate-prepared-step.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oCAAoC,EAAE,MAAM,gCAAgC,CAAC;AActF,SAAS,WAAW,CAClB,OAAsB,EACtB,IAAgB;IAOhB,OAAO;QACL,OAAO;QACP,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAQ;QAChC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;KAC5C,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAgB,EAAE,KAAc;IAC9D,MAAM,IAAI,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEpE,IAAI,oCAAoC,CAAC,KAAK,CAAC,EAAE,CAAC;QAChD,OAAO,CACL,0BAA0B,IAAI,CAA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AAE,OAAO,EAAE,EAAE,CAAC;QAC5D,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAE,CAAC,CAAC;QACtC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC1D,OAAO;QACT,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IAED,MAAM,SAAS,CAAC;AAClB,CAAC"}
@@ -2,4 +2,4 @@
2
2
  * Browser-safe prepared-step simulation (no Node analytics / wallet product logic).
3
3
  */
4
4
  export type { PreparedTx } from "../types/prepared.js";
5
- export { simulatePreparedStep, type SimulatePreparedStepOptions, type SimulatePreparedStepParams, } from "./simulate-prepared-step.js";
5
+ export { PreparedFlowExecutionError, isPreparedFlowExecutionError, simulatePreparedStep, simulatePreparedStepWithRetry, type SimulatePreparedStepOptions, type SimulatePreparedStepParams, type SimulatePreparedStepRetryOptions, } from "./simulate-prepared-step.js";
@@ -1,2 +1,2 @@
1
- export { simulatePreparedStep, } from "./simulate-prepared-step.js";
1
+ export { PreparedFlowExecutionError, isPreparedFlowExecutionError, simulatePreparedStep, simulatePreparedStepWithRetry, } from "./simulate-prepared-step.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/simulation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oBAAoB,GAGrB,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/simulation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,6BAA6B,GAI9B,MAAM,6BAA6B,CAAC"}
@@ -10,8 +10,28 @@ export type SimulatePreparedStepParams = {
10
10
  account: `0x${string}`;
11
11
  step: PreparedTx;
12
12
  };
13
+ /** Backoff between simulation retries after a failed `eth_call` / `estimateGas`. */
14
+ export type SimulatePreparedStepRetryOptions = {
15
+ /** Delays in ms after each failed attempt. Default: 750, 1500, 3000. */
16
+ delaysMs?: readonly number[];
17
+ };
18
+ /**
19
+ * Thrown when a multi-step prepared flow fails after one or more steps already
20
+ * broadcast. Carries confirmed hashes so hosts can report partial progress.
21
+ */
22
+ export declare class PreparedFlowExecutionError extends Error {
23
+ readonly stepHashes: `0x${string}`[];
24
+ readonly stepCount?: number;
25
+ constructor(message: string, stepHashes?: `0x${string}`[], stepCount?: number);
26
+ }
27
+ export declare function isPreparedFlowExecutionError(error: unknown): error is PreparedFlowExecutionError;
13
28
  /**
14
29
  * Simulate a prepared transaction step against current chain state.
15
30
  * Throws when the transaction would revert — call immediately before send.
16
31
  */
17
32
  export declare function simulatePreparedStep(publicClient: PublicClient, params: SimulatePreparedStepParams, options?: SimulatePreparedStepOptions): Promise<void>;
33
+ /**
34
+ * Simulate a prepared step, retrying on failure to absorb RPC replica lag
35
+ * after a prior approval is mined. Genuine reverts still fail after retries.
36
+ */
37
+ export declare function simulatePreparedStepWithRetry(publicClient: PublicClient, params: SimulatePreparedStepParams, options?: SimulatePreparedStepOptions, retry?: SimulatePreparedStepRetryOptions): Promise<void>;
@@ -1,4 +1,25 @@
1
1
  import { isInsufficientBalanceSimulationError } from "../utils/transaction-errors.js";
2
+ const DEFAULT_RETRY_DELAYS_MS = [750, 1500, 3000];
3
+ /**
4
+ * Thrown when a multi-step prepared flow fails after one or more steps already
5
+ * broadcast. Carries confirmed hashes so hosts can report partial progress.
6
+ */
7
+ export class PreparedFlowExecutionError extends Error {
8
+ stepHashes;
9
+ stepCount;
10
+ constructor(message, stepHashes = [], stepCount) {
11
+ super(message);
12
+ this.name = "PreparedFlowExecutionError";
13
+ this.stepHashes = stepHashes;
14
+ this.stepCount = stepCount;
15
+ }
16
+ }
17
+ export function isPreparedFlowExecutionError(error) {
18
+ return (error instanceof PreparedFlowExecutionError ||
19
+ (error instanceof Error &&
20
+ error.name === "PreparedFlowExecutionError" &&
21
+ Array.isArray(error.stepHashes)));
22
+ }
2
23
  function stepRequest(account, step) {
3
24
  return {
4
25
  account,
@@ -39,4 +60,30 @@ export async function simulatePreparedStep(publicClient, params, options) {
39
60
  throw new Error(simulationErrorMessage(params.step, error));
40
61
  }
41
62
  }
63
+ function sleep(ms) {
64
+ return new Promise((resolve) => {
65
+ setTimeout(resolve, ms);
66
+ });
67
+ }
68
+ /**
69
+ * Simulate a prepared step, retrying on failure to absorb RPC replica lag
70
+ * after a prior approval is mined. Genuine reverts still fail after retries.
71
+ */
72
+ export async function simulatePreparedStepWithRetry(publicClient, params, options, retry) {
73
+ const delaysMs = retry?.delaysMs ?? DEFAULT_RETRY_DELAYS_MS;
74
+ let lastError;
75
+ for (let attempt = 0; attempt <= delaysMs.length; attempt++) {
76
+ if (attempt > 0) {
77
+ await sleep(delaysMs[attempt - 1]);
78
+ }
79
+ try {
80
+ await simulatePreparedStep(publicClient, params, options);
81
+ return;
82
+ }
83
+ catch (error) {
84
+ lastError = error;
85
+ }
86
+ }
87
+ throw lastError;
88
+ }
42
89
  //# sourceMappingURL=simulate-prepared-step.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulate-prepared-step.js","sourceRoot":"","sources":["../../../src/simulation/simulate-prepared-step.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oCAAoC,EAAE,MAAM,gCAAgC,CAAC;AActF,SAAS,WAAW,CAClB,OAAsB,EACtB,IAAgB;IAOhB,OAAO;QACL,OAAO;QACP,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAQ;QAChC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;KAC5C,CAAC;AACJ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;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,YAA0B,EAC1B,MAAkC,EAClC,OAAqC,EACrC,KAAwC;IAExC,MAAM,QAAQ,GAAG,KAAK,EAAE,QAAQ,IAAI,uBAAuB,CAAC;IAC5D,IAAI,SAAkB,CAAC;IAEvB,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC;QAC5D,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;YAChB,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAE,CAAC,CAAC;QACtC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;YAC1D,OAAO;QACT,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IAED,MAAM,SAAS,CAAC;AAClB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrewkimjoseph/celina-sdk",
3
- "version": "0.25.25",
3
+ "version": "0.25.27",
4
4
  "description": "Celina SDK — Celo mainnet reads, unsigned transaction preparation, and ERC-4337 createAAClient for sponsored UserOps.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -41,6 +41,11 @@
41
41
  "types": "./build/aa/index.d.ts",
42
42
  "import": "./build/aa/index.js",
43
43
  "default": "./build/aa/index.js"
44
+ },
45
+ "./onchain-stats": {
46
+ "types": "./build/analytics/onchain-stats.d.ts",
47
+ "import": "./build/analytics/onchain-stats.js",
48
+ "default": "./build/analytics/onchain-stats.js"
44
49
  }
45
50
  },
46
51
  "files": [