@atxp/worldchain 0.10.3 → 0.10.4

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.
@@ -10,9 +10,9 @@ export declare const TEST_PAYMASTER_URL = "https://worldchain-bundler.example.co
10
10
  export declare const TEST_BUNDLER_URL = "https://worldchain-bundler.example.com";
11
11
  export declare const TEST_CONFIRMATION_DELAYS: ConfirmationDelays;
12
12
  export declare function mockProvider({ request }?: {
13
- request?: import("vitest").Mock<(...args: any[]) => any> | undefined;
13
+ request?: import("vitest").Mock<import("@vitest/spy").Procedure> | undefined;
14
14
  }): {
15
- request: import("vitest").Mock<(...args: any[]) => any>;
15
+ request: import("vitest").Mock<import("@vitest/spy").Procedure>;
16
16
  };
17
17
  export declare function mockSpendPermission({ signature, account, spender, token, allowance, // 10 USDC
18
18
  period, // 7 days
@@ -34,12 +34,12 @@ export declare function expectTimestampAround(timestamp: number, expectedOffset?
34
34
  export declare function mockExpiredSpendPermission(overrides?: {}): SpendPermission;
35
35
  export declare function mockSmartAccount({ address, signMessage }?: {
36
36
  address?: `0x${string}` | undefined;
37
- signMessage?: import("vitest").Mock<(...args: any[]) => any> | undefined;
37
+ signMessage?: import("vitest").Mock<import("@vitest/spy").Procedure> | undefined;
38
38
  }): any;
39
39
  export declare function mockBundlerClient({ sendUserOperation, waitForUserOperationReceipt, waitForTransactionReceipt }?: {
40
- sendUserOperation?: import("vitest").Mock<(...args: any[]) => any> | undefined;
41
- waitForUserOperationReceipt?: import("vitest").Mock<(...args: any[]) => any> | undefined;
42
- waitForTransactionReceipt?: import("vitest").Mock<(...args: any[]) => any> | undefined;
40
+ sendUserOperation?: import("vitest").Mock<import("@vitest/spy").Procedure> | undefined;
41
+ waitForUserOperationReceipt?: import("vitest").Mock<import("@vitest/spy").Procedure> | undefined;
42
+ waitForTransactionReceipt?: import("vitest").Mock<import("@vitest/spy").Procedure> | undefined;
43
43
  }): any;
44
44
  export declare function mockFailedBundlerClient({ failureType }?: {
45
45
  failureType?: string | undefined;
@@ -86,7 +86,7 @@ export declare class TestWorldchainPaymentMakerBuilder {
86
86
  }
87
87
  export declare function setupInitializationMocks({ provider, smartAccount, bundlerClient, spendPermission, ephemeralWallet }?: {
88
88
  provider?: {
89
- request: import("vitest").Mock<(...args: any[]) => any>;
89
+ request: import("vitest").Mock<import("@vitest/spy").Procedure>;
90
90
  } | undefined;
91
91
  smartAccount?: any;
92
92
  bundlerClient?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atxp/worldchain",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "ATXP for World Chain Mini Apps",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,24 +33,24 @@
33
33
  "pack:dry": "npm pack --dry-run"
34
34
  },
35
35
  "dependencies": {
36
- "@atxp/client": "0.10.3",
37
- "@atxp/common": "0.10.3",
36
+ "@atxp/client": "0.10.4",
37
+ "@atxp/common": "0.10.4",
38
38
  "@worldcoin/minikit-js": "^1.9.6",
39
39
  "bignumber.js": "^9.3.0",
40
40
  "viem": "^2.34.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "^22.13.0",
43
+ "@types/node": "^25.0.3",
44
44
  "@types/supertest": "^6.0.3",
45
- "@typescript-eslint/eslint-plugin": "^8.38.0",
46
- "@typescript-eslint/parser": "^8.38.0",
45
+ "@typescript-eslint/eslint-plugin": "^8.51.0",
46
+ "@typescript-eslint/parser": "^8.51.0",
47
47
  "eslint": "^9.32.0",
48
48
  "fetch-mock": "^12.5.2",
49
49
  "happy-dom": "^20.0.11",
50
- "jsdom": "^25.0.1",
50
+ "jsdom": "^27.4.0",
51
51
  "supertest": "^7.1.4",
52
52
  "typescript": "^5.7.3",
53
53
  "viem": "^2.34.0",
54
- "vitest": "^3.0.9"
54
+ "vitest": "^4.0.16"
55
55
  }
56
56
  }