@account-kit/infra 4.0.0-alpha.2 → 4.0.0-alpha.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,7 +10,7 @@ const zod_1 = __importDefault(require("zod"));
10
10
  exports.AlchemyChainSchema = zod_1.default.custom((chain) => {
11
11
  const chain_ = core_1.ChainSchema.parse(chain);
12
12
  return chain_.rpcUrls.alchemy != null;
13
- }, "chain must include an alchemy rpc url. See `createAlchemyChain` or use the `AlchemyChainMap` exported from `@aa-sdk/core`");
13
+ }, "chain must include an alchemy rpc url. See `createAlchemyChain` or import a chain from `@account-kit/infra`.");
14
14
  exports.AlchemyProviderConfigSchema = core_1.ConnectionConfigSchema.and(zod_1.default.object({
15
15
  chain: exports.AlchemyChainSchema,
16
16
  opts: core_1.SmartAccountClientOptsSchema.optional().default(core_1.SmartAccountClientOptsSchema.parse({})),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":";;;;;;AAAA,uCAIsB;AACtB,6CAAsC;AAEtC,8CAAoB;AAEP,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAQ,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,kBAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;AACxC,CAAC,EAAE,2HAA2H,CAAC,CAAC;AAEnH,QAAA,2BAA2B,GAAG,6BAAsB,CAAC,GAAG,CACnE,aAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,0BAAkB;IACzB,IAAI,EAAE,mCAA4B,CAAC,QAAQ,EAAE,CAAC,OAAO,CACnD,mCAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,CACvC;CACF,CAAC,CACH,CAAC;AAEW,QAAA,sBAAsB,GAAG,aAAC,CAAC,UAAU,CAAC,qBAAO,CAAC,CAAC","sourcesContent":["import {\n ChainSchema,\n ConnectionConfigSchema,\n SmartAccountClientOptsSchema,\n} from \"@aa-sdk/core\";\nimport { Alchemy } from \"alchemy-sdk\";\nimport type { Chain } from \"viem\";\nimport z from \"zod\";\n\nexport const AlchemyChainSchema = z.custom<Chain>((chain) => {\n const chain_ = ChainSchema.parse(chain);\n\n return chain_.rpcUrls.alchemy != null;\n}, \"chain must include an alchemy rpc url. See `createAlchemyChain` or use the `AlchemyChainMap` exported from `@aa-sdk/core`\");\n\nexport const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(\n z.object({\n chain: AlchemyChainSchema,\n opts: SmartAccountClientOptsSchema.optional().default(\n SmartAccountClientOptsSchema.parse({})\n ),\n })\n);\n\nexport const AlchemySdkClientSchema = z.instanceof(Alchemy);\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":";;;;;;AAAA,uCAIsB;AACtB,6CAAsC;AAEtC,8CAAoB;AAEP,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAQ,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,kBAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;AACxC,CAAC,EAAE,8GAA8G,CAAC,CAAC;AAEtG,QAAA,2BAA2B,GAAG,6BAAsB,CAAC,GAAG,CACnE,aAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,0BAAkB;IACzB,IAAI,EAAE,mCAA4B,CAAC,QAAQ,EAAE,CAAC,OAAO,CACnD,mCAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,CACvC;CACF,CAAC,CACH,CAAC;AAEW,QAAA,sBAAsB,GAAG,aAAC,CAAC,UAAU,CAAC,qBAAO,CAAC,CAAC","sourcesContent":["import {\n ChainSchema,\n ConnectionConfigSchema,\n SmartAccountClientOptsSchema,\n} from \"@aa-sdk/core\";\nimport { Alchemy } from \"alchemy-sdk\";\nimport type { Chain } from \"viem\";\nimport z from \"zod\";\n\nexport const AlchemyChainSchema = z.custom<Chain>((chain) => {\n const chain_ = ChainSchema.parse(chain);\n\n return chain_.rpcUrls.alchemy != null;\n}, \"chain must include an alchemy rpc url. See `createAlchemyChain` or import a chain from `@account-kit/infra`.\");\n\nexport const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(\n z.object({\n chain: AlchemyChainSchema,\n opts: SmartAccountClientOptsSchema.optional().default(\n SmartAccountClientOptsSchema.parse({})\n ),\n })\n);\n\nexport const AlchemySdkClientSchema = z.instanceof(Alchemy);\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.0-alpha.2";
1
+ export declare const VERSION = "4.0.0-alpha.4";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "4.0.0-alpha.2";
4
+ exports.VERSION = "4.0.0-alpha.4";
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.2\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.4\";\n"]}
@@ -4,7 +4,7 @@ import z from "zod";
4
4
  export const AlchemyChainSchema = z.custom((chain) => {
5
5
  const chain_ = ChainSchema.parse(chain);
6
6
  return chain_.rpcUrls.alchemy != null;
7
- }, "chain must include an alchemy rpc url. See `createAlchemyChain` or use the `AlchemyChainMap` exported from `@aa-sdk/core`");
7
+ }, "chain must include an alchemy rpc url. See `createAlchemyChain` or import a chain from `@account-kit/infra`.");
8
8
  export const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(z.object({
9
9
  chain: AlchemyChainSchema,
10
10
  opts: SmartAccountClientOptsSchema.optional().default(SmartAccountClientOptsSchema.parse({})),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAQ,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;AACxC,CAAC,EAAE,2HAA2H,CAAC,CAAC;AAEhI,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,GAAG,CACnE,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,4BAA4B,CAAC,QAAQ,EAAE,CAAC,OAAO,CACnD,4BAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,CACvC;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC","sourcesContent":["import {\n ChainSchema,\n ConnectionConfigSchema,\n SmartAccountClientOptsSchema,\n} from \"@aa-sdk/core\";\nimport { Alchemy } from \"alchemy-sdk\";\nimport type { Chain } from \"viem\";\nimport z from \"zod\";\n\nexport const AlchemyChainSchema = z.custom<Chain>((chain) => {\n const chain_ = ChainSchema.parse(chain);\n\n return chain_.rpcUrls.alchemy != null;\n}, \"chain must include an alchemy rpc url. See `createAlchemyChain` or use the `AlchemyChainMap` exported from `@aa-sdk/core`\");\n\nexport const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(\n z.object({\n chain: AlchemyChainSchema,\n opts: SmartAccountClientOptsSchema.optional().default(\n SmartAccountClientOptsSchema.parse({})\n ),\n })\n);\n\nexport const AlchemySdkClientSchema = z.instanceof(Alchemy);\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAQ,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC;AACxC,CAAC,EAAE,8GAA8G,CAAC,CAAC;AAEnH,MAAM,CAAC,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,GAAG,CACnE,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,4BAA4B,CAAC,QAAQ,EAAE,CAAC,OAAO,CACnD,4BAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,CACvC;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC","sourcesContent":["import {\n ChainSchema,\n ConnectionConfigSchema,\n SmartAccountClientOptsSchema,\n} from \"@aa-sdk/core\";\nimport { Alchemy } from \"alchemy-sdk\";\nimport type { Chain } from \"viem\";\nimport z from \"zod\";\n\nexport const AlchemyChainSchema = z.custom<Chain>((chain) => {\n const chain_ = ChainSchema.parse(chain);\n\n return chain_.rpcUrls.alchemy != null;\n}, \"chain must include an alchemy rpc url. See `createAlchemyChain` or import a chain from `@account-kit/infra`.\");\n\nexport const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(\n z.object({\n chain: AlchemyChainSchema,\n opts: SmartAccountClientOptsSchema.optional().default(\n SmartAccountClientOptsSchema.parse({})\n ),\n })\n);\n\nexport const AlchemySdkClientSchema = z.instanceof(Alchemy);\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.0-alpha.2";
1
+ export declare const VERSION = "4.0.0-alpha.4";
@@ -1,2 +1,2 @@
1
- export const VERSION = "4.0.0-alpha.2";
1
+ export const VERSION = "4.0.0-alpha.4";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.2\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.4\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,kBAAkB,uCAIgG,CAAC;AAEhI,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,2CAAwB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.0.0-alpha.2";
1
+ export declare const VERSION = "4.0.0-alpha.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@account-kit/infra",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.4",
4
4
  "description": "adapters for @aa-sdk/core for interacting with alchemy services",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "vitest": "^0.31.0"
46
46
  },
47
47
  "dependencies": {
48
- "@aa-sdk/core": "^4.0.0-alpha.2",
48
+ "@aa-sdk/core": "^4.0.0-alpha.4",
49
49
  "eventemitter3": "^5.0.1",
50
50
  "viem": "2.8.6",
51
51
  "zod": "^3.22.4"
@@ -68,7 +68,7 @@
68
68
  "url": "https://github.com/alchemyplatform/aa-sdk/issues"
69
69
  },
70
70
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
71
- "gitHead": "af70c1ea67be7f49339a1267ccadd8dc10aabde1",
71
+ "gitHead": "07d3a1a98377c9db41d7f48cd89747d9e881267c",
72
72
  "optionalDependencies": {
73
73
  "alchemy-sdk": "^3.0.0"
74
74
  }
package/src/schema.ts CHANGED
@@ -11,7 +11,7 @@ export const AlchemyChainSchema = z.custom<Chain>((chain) => {
11
11
  const chain_ = ChainSchema.parse(chain);
12
12
 
13
13
  return chain_.rpcUrls.alchemy != null;
14
- }, "chain must include an alchemy rpc url. See `createAlchemyChain` or use the `AlchemyChainMap` exported from `@aa-sdk/core`");
14
+ }, "chain must include an alchemy rpc url. See `createAlchemyChain` or import a chain from `@account-kit/infra`.");
15
15
 
16
16
  export const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(
17
17
  z.object({
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.0.0-alpha.2";
3
+ export const VERSION = "4.0.0-alpha.4";