@circle-fin/usdckit 0.23.0 → 0.23.2

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 (34) hide show
  1. package/dist/cjs/actions/index.d.ts +1 -1
  2. package/dist/cjs/chains/index.d.ts +21 -19
  3. package/dist/cjs/chains/index.js +25 -25
  4. package/dist/cjs/client.d.ts +1 -1
  5. package/dist/cjs/extractChain.d.ts +1198 -1198
  6. package/dist/cjs/index.d.ts +2 -2
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/cjs/metadata.js +1 -1
  9. package/dist/cjs/providers/circle-wallets/actions/createAccount.d.ts +994 -994
  10. package/dist/cjs/providers/circle-wallets/actions/getAccounts.d.ts +994 -994
  11. package/dist/cjs/utils/createConfig.d.ts +1 -1
  12. package/dist/cjs/utils/createCustomWalletClient.d.ts +1 -1
  13. package/dist/cjs/utils/getChainContractByAddress.d.ts +1 -1
  14. package/dist/cjs/utils/getContract.d.ts +8 -8
  15. package/dist/esm/actions/index.d.ts +1 -1
  16. package/dist/esm/chains/index.d.ts +21 -19
  17. package/dist/esm/chains/index.js +20 -19
  18. package/dist/esm/client.d.ts +1 -1
  19. package/dist/esm/extractChain.d.ts +1198 -1198
  20. package/dist/esm/index.d.ts +2 -2
  21. package/dist/esm/index.js +1 -1
  22. package/dist/esm/metadata.js +1 -1
  23. package/dist/esm/package.json +1 -0
  24. package/dist/esm/providers/circle-wallets/actions/createAccount.d.ts +994 -994
  25. package/dist/esm/providers/circle-wallets/actions/getAccounts.d.ts +994 -994
  26. package/dist/esm/utils/createConfig.d.ts +1 -1
  27. package/dist/esm/utils/createCustomWalletClient.d.ts +1 -1
  28. package/dist/esm/utils/getChainContractByAddress.d.ts +1 -1
  29. package/dist/esm/utils/getContract.d.ts +8 -8
  30. package/package.json +13 -2
  31. package/dist/cjs/chains.d.ts +0 -2
  32. package/dist/cjs/chains.js +0 -12
  33. package/dist/esm/chains.d.ts +0 -2
  34. package/dist/esm/chains.js +0 -11
@@ -1,4 +1,4 @@
1
- import type { Chain } from '../chains.js';
1
+ import type { Chain } from '../chains/index.js';
2
2
  import type { Transport } from 'viem';
3
3
  export interface TransportFactoryParams {
4
4
  /** Required chain ID for the transport */
@@ -1,4 +1,4 @@
1
- import type { Chain } from '../chains.js';
1
+ import type { Chain } from '../chains/index.js';
2
2
  import type { CustomWalletClient } from '../client.js';
3
3
  import type { TransportFactoryParams } from './createConfig.js';
4
4
  import type { Transport } from 'viem';
@@ -1,4 +1,4 @@
1
- import type { Chain } from '../chains.js';
1
+ import type { Chain } from '../chains/index.js';
2
2
  import type { Address, ChainContract } from '../types.js';
3
3
  /**
4
4
  * Retrieves the contract associated with a given address from the specified chain.
@@ -53,8 +53,8 @@ export declare function getContract(params: GetContractInput): {
53
53
  };
54
54
  getEvents: {
55
55
  [x: string]: (...parameters: [options?: {
56
- blockHash?: `0x${string}` | undefined;
57
56
  strict?: boolean | undefined;
57
+ blockHash?: `0x${string}` | undefined;
58
58
  fromBlock?: bigint | import("viem").BlockTag | undefined;
59
59
  toBlock?: bigint | import("viem").BlockTag | undefined;
60
60
  } | undefined] | [args?: readonly unknown[] | {
@@ -71,8 +71,8 @@ export declare function getContract(params: GetContractInput): {
71
71
  batch?: undefined;
72
72
  pollingInterval?: undefined;
73
73
  } | undefined, options?: {
74
- blockHash?: `0x${string}` | undefined;
75
74
  strict?: boolean | undefined;
75
+ blockHash?: `0x${string}` | undefined;
76
76
  fromBlock?: bigint | import("viem").BlockTag | undefined;
77
77
  toBlock?: bigint | import("viem").BlockTag | undefined;
78
78
  } | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
@@ -150,8 +150,8 @@ export declare function getContract(params: GetContractInput): {
150
150
  };
151
151
  getEvents: {
152
152
  [x: string]: (...parameters: [options?: {
153
- blockHash?: `0x${string}` | undefined;
154
153
  strict?: boolean | undefined;
154
+ blockHash?: `0x${string}` | undefined;
155
155
  fromBlock?: bigint | import("viem").BlockTag | undefined;
156
156
  toBlock?: bigint | import("viem").BlockTag | undefined;
157
157
  } | undefined] | [args?: readonly unknown[] | {
@@ -168,8 +168,8 @@ export declare function getContract(params: GetContractInput): {
168
168
  batch?: undefined;
169
169
  pollingInterval?: undefined;
170
170
  } | undefined, options?: {
171
- blockHash?: `0x${string}` | undefined;
172
171
  strict?: boolean | undefined;
172
+ blockHash?: `0x${string}` | undefined;
173
173
  fromBlock?: bigint | import("viem").BlockTag | undefined;
174
174
  toBlock?: bigint | import("viem").BlockTag | undefined;
175
175
  } | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
@@ -250,8 +250,8 @@ export declare function getContract(params: GetContractInput): {
250
250
  };
251
251
  getEvents: {
252
252
  [x: string]: (...parameters: [options?: {
253
- blockHash?: `0x${string}` | undefined;
254
253
  strict?: boolean | undefined;
254
+ blockHash?: `0x${string}` | undefined;
255
255
  fromBlock?: bigint | import("viem").BlockTag | undefined;
256
256
  toBlock?: bigint | import("viem").BlockTag | undefined;
257
257
  } | undefined] | [args?: readonly unknown[] | {
@@ -268,8 +268,8 @@ export declare function getContract(params: GetContractInput): {
268
268
  batch?: undefined;
269
269
  pollingInterval?: undefined;
270
270
  } | undefined, options?: {
271
- blockHash?: `0x${string}` | undefined;
272
271
  strict?: boolean | undefined;
272
+ blockHash?: `0x${string}` | undefined;
273
273
  fromBlock?: bigint | import("viem").BlockTag | undefined;
274
274
  toBlock?: bigint | import("viem").BlockTag | undefined;
275
275
  } | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
@@ -347,8 +347,8 @@ export declare function getContract(params: GetContractInput): {
347
347
  };
348
348
  getEvents: {
349
349
  [x: string]: (...parameters: [options?: {
350
- blockHash?: `0x${string}` | undefined;
351
350
  strict?: boolean | undefined;
351
+ blockHash?: `0x${string}` | undefined;
352
352
  fromBlock?: bigint | import("viem").BlockTag | undefined;
353
353
  toBlock?: bigint | import("viem").BlockTag | undefined;
354
354
  } | undefined] | [args?: readonly unknown[] | {
@@ -365,8 +365,8 @@ export declare function getContract(params: GetContractInput): {
365
365
  batch?: undefined;
366
366
  pollingInterval?: undefined;
367
367
  } | undefined, options?: {
368
- blockHash?: `0x${string}` | undefined;
369
368
  strict?: boolean | undefined;
369
+ blockHash?: `0x${string}` | undefined;
370
370
  fromBlock?: bigint | import("viem").BlockTag | undefined;
371
371
  toBlock?: bigint | import("viem").BlockTag | undefined;
372
372
  } | undefined]) => Promise<import("viem").GetContractEventsReturnType<Abi, string>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@circle-fin/usdckit",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/circlefin/w3s-node-sdk.git"
@@ -59,34 +59,42 @@
59
59
  "bin": "dist/esm/cli/index.mjs",
60
60
  "exports": {
61
61
  ".": {
62
+ "types": "./dist/esm/index.d.ts",
62
63
  "import": "./dist/esm/index.js",
63
64
  "require": "./dist/cjs/index.js"
64
65
  },
65
66
  "./actions": {
67
+ "types": "./dist/esm/actions/index.d.ts",
66
68
  "import": "./dist/esm/actions/index.js",
67
69
  "require": "./dist/cjs/actions/index.js"
68
70
  },
69
71
  "./chains": {
72
+ "types": "./dist/esm/chains/index.d.ts",
70
73
  "import": "./dist/esm/chains/index.js",
71
74
  "require": "./dist/cjs/chains/index.js"
72
75
  },
73
76
  "./providers/cross-chain-transfer-protocol": {
77
+ "types": "./dist/esm/providers/cross-chain-transfer-protocol/index.d.ts",
74
78
  "import": "./dist/esm/providers/cross-chain-transfer-protocol/index.js",
75
79
  "require": "./dist/cjs/providers/cross-chain-transfer-protocol/index.js"
76
80
  },
77
81
  "./providers/circle-wallets": {
82
+ "types": "./dist/esm/providers/circle-wallets/index.d.ts",
78
83
  "import": "./dist/esm/providers/circle-wallets/index.js",
79
84
  "require": "./dist/cjs/providers/circle-wallets/index.js"
80
85
  },
81
86
  "./providers/solana": {
87
+ "types": "./dist/esm/providers/solana/index.d.ts",
82
88
  "import": "./dist/esm/providers/solana/index.js",
83
89
  "require": "./dist/cjs/providers/solana/index.js"
84
90
  },
85
91
  "./providers/uniswap": {
92
+ "types": "./dist/esm/providers/uniswap/index.d.ts",
86
93
  "import": "./dist/esm/providers/uniswap/index.js",
87
94
  "require": "./dist/cjs/providers/uniswap/index.js"
88
95
  },
89
96
  "./utils": {
97
+ "types": "./dist/esm/utils/index.d.ts",
90
98
  "import": "./dist/esm/utils/index.js",
91
99
  "require": "./dist/cjs/utils/index.js"
92
100
  }
@@ -98,7 +106,10 @@
98
106
  "lint": "eslint",
99
107
  "test": "vitest --run --coverage",
100
108
  "test:watch": "vitest watch",
101
- "build": "npm run build:cjs && npm run build:esm && npm run generate:embed-metadata -- dist/cjs/metadata.js dist/cjs/metadata.d.ts dist/esm/metadata.js dist/esm/metadata.d.ts",
109
+ "build": "npm run build:cjs && npm run build:esm",
110
+ "postbuild": "npm run postbuild:build-metadata && npm run postbuild:write-package-json",
111
+ "postbuild:build-metadata": "npm run generate:embed-metadata -- dist/cjs/metadata.js dist/cjs/metadata.d.ts dist/esm/metadata.js dist/esm/metadata.d.ts",
112
+ "postbuild:write-package-json": "node ./scripts/write-package-json.mjs",
102
113
  "build:noemit": "npm run build:cjs -- --noemit && npm run build:esm -- --noemit",
103
114
  "build:cjs": "tsc --project tsconfig.cjs.json",
104
115
  "build:esm": "tsc --project tsconfig.esm.json",
@@ -1,2 +0,0 @@
1
- import type * as chains from './chains/index.js';
2
- export type Chain = (typeof chains)[keyof typeof chains];
@@ -1,12 +0,0 @@
1
- "use strict";
2
- // Copyright (c) 2025, Circle Internet Group, Inc.
3
- // All rights reserved.
4
- //
5
- // Circle Internet Group, Inc. CONFIDENTIAL
6
- //
7
- // This file includes unpublished proprietary source code of Circle Internet
8
- // Group, Inc. The copyright notice above does not
9
- // evidence any actual or intended publication of such source code. Disclosure
10
- // of this source code or any related proprietary information is strictly
11
- // prohibited without the express written permission of Circle Internet Group, Inc.
12
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import type * as chains from './chains/index.js';
2
- export type Chain = (typeof chains)[keyof typeof chains];
@@ -1,11 +0,0 @@
1
- // Copyright (c) 2025, Circle Internet Group, Inc.
2
- // All rights reserved.
3
- //
4
- // Circle Internet Group, Inc. CONFIDENTIAL
5
- //
6
- // This file includes unpublished proprietary source code of Circle Internet
7
- // Group, Inc. The copyright notice above does not
8
- // evidence any actual or intended publication of such source code. Disclosure
9
- // of this source code or any related proprietary information is strictly
10
- // prohibited without the express written permission of Circle Internet Group, Inc.
11
- export {};