@alchemy/aa-alchemy
Advanced tools
Comparing version 1.2.3 to 1.2.4
import { Alchemy } from "alchemy-sdk"; | ||
import z from "zod"; | ||
export declare const ConnectionConfigSchema: z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodObject<Omit<{ | ||
@@ -53,0 +4,0 @@ rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LightAccountAlchemyProviderConfigSchema = exports.AlchemySdkClientSchema = exports.AlchemyProviderConfigSchema = exports.ConnectionConfigSchema = void 0; | ||
exports.LightAccountAlchemyProviderConfigSchema = exports.AlchemySdkClientSchema = exports.AlchemyProviderConfigSchema = void 0; | ||
const aa_accounts_1 = require("@alchemy/aa-accounts"); | ||
@@ -12,29 +12,7 @@ const aa_core_1 = require("@alchemy/aa-core"); | ||
const zod_1 = __importDefault(require("zod")); | ||
exports.ConnectionConfigSchema = zod_1.default.union([ | ||
zod_1.default.object({ | ||
rpcUrl: zod_1.default.never().optional(), | ||
apiKey: zod_1.default.string(), | ||
jwt: zod_1.default.never().optional(), | ||
}), | ||
zod_1.default.object({ | ||
rpcUrl: zod_1.default.never().optional(), | ||
apiKey: zod_1.default.never().optional(), | ||
jwt: zod_1.default.string(), | ||
}), | ||
zod_1.default.object({ | ||
rpcUrl: zod_1.default.string(), | ||
apiKey: zod_1.default.never().optional(), | ||
jwt: zod_1.default.never().optional(), | ||
}), | ||
zod_1.default.object({ | ||
rpcUrl: zod_1.default.string(), | ||
apiKey: zod_1.default.never().optional(), | ||
jwt: zod_1.default.string(), | ||
}), | ||
]); | ||
exports.AlchemyProviderConfigSchema = (0, aa_core_1.createSmartAccountProviderConfigSchema)() | ||
.omit({ rpcProvider: true }) | ||
.and(exports.ConnectionConfigSchema); | ||
.and(aa_core_1.ConnectionConfigSchema); | ||
exports.AlchemySdkClientSchema = zod_1.default.instanceof(alchemy_sdk_1.Alchemy); | ||
exports.LightAccountAlchemyProviderConfigSchema = exports.AlchemyProviderConfigSchema.and(aa_accounts_1.LightAccountFactoryConfigSchema); | ||
//# sourceMappingURL=schema.js.map |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, ConnectionConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type ConnectionConfig = z.input<typeof ConnectionConfigSchema>; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; |
import { Alchemy } from "alchemy-sdk"; | ||
import z from "zod"; | ||
export declare const ConnectionConfigSchema: z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodObject<Omit<{ | ||
@@ -53,0 +4,0 @@ rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; |
import { LightAccountFactoryConfigSchema } from "@alchemy/aa-accounts"; | ||
import { createSmartAccountProviderConfigSchema } from "@alchemy/aa-core"; | ||
import { ConnectionConfigSchema, createSmartAccountProviderConfigSchema, } from "@alchemy/aa-core"; | ||
import { Alchemy } from "alchemy-sdk"; | ||
import z from "zod"; | ||
export const ConnectionConfigSchema = z.union([ | ||
z.object({ | ||
rpcUrl: z.never().optional(), | ||
apiKey: z.string(), | ||
jwt: z.never().optional(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.never().optional(), | ||
apiKey: z.never().optional(), | ||
jwt: z.string(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.string(), | ||
apiKey: z.never().optional(), | ||
jwt: z.never().optional(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.string(), | ||
apiKey: z.never().optional(), | ||
jwt: z.string(), | ||
}), | ||
]); | ||
export const AlchemyProviderConfigSchema = createSmartAccountProviderConfigSchema() | ||
@@ -28,0 +6,0 @@ .omit({ rpcProvider: true }) |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, ConnectionConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type ConnectionConfig = z.input<typeof ConnectionConfigSchema>; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; |
import { Alchemy } from "alchemy-sdk"; | ||
import z from "zod"; | ||
export declare const ConnectionConfigSchema: z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodObject<Omit<{ | ||
@@ -53,0 +4,0 @@ rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, ConnectionConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type ConnectionConfig = z.input<typeof ConnectionConfigSchema>; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; | ||
//# sourceMappingURL=type.d.ts.map |
{ | ||
"name": "@alchemy/aa-alchemy", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "adapters for @alchemy/aa-core for interacting with alchemy services", | ||
@@ -42,4 +42,4 @@ "author": "Alchemy", | ||
"devDependencies": { | ||
"@alchemy/aa-accounts": "^1.2.1", | ||
"@alchemy/aa-core": "^1.2.1", | ||
"@alchemy/aa-accounts": "^1.2.3", | ||
"@alchemy/aa-core": "^1.2.3", | ||
"typescript": "^5.0.4", | ||
@@ -50,4 +50,4 @@ "typescript-template": "*", | ||
"dependencies": { | ||
"@alchemy/aa-core": "^1.2.3", | ||
"viem": "^1.16.2" | ||
"@alchemy/aa-core": "^1.2.4", | ||
"viem": "^1.21.4" | ||
}, | ||
@@ -66,7 +66,7 @@ "publishConfig": { | ||
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme", | ||
"gitHead": "21936b9a9d0fbc69406f4f7508bc68f7527bafed", | ||
"gitHead": "e1ca0abbf9328ba0d82b6a89c71749506b01c6e3", | ||
"optionalDependencies": { | ||
"@alchemy/aa-accounts": "^1.2.3", | ||
"@alchemy/aa-accounts": "^1.2.4", | ||
"alchemy-sdk": "^3.0.0" | ||
} | ||
} |
import { LightAccountFactoryConfigSchema } from "@alchemy/aa-accounts"; | ||
import { createSmartAccountProviderConfigSchema } from "@alchemy/aa-core"; | ||
import { | ||
ConnectionConfigSchema, | ||
createSmartAccountProviderConfigSchema, | ||
} from "@alchemy/aa-core"; | ||
import { Alchemy } from "alchemy-sdk"; | ||
import z from "zod"; | ||
export const ConnectionConfigSchema = z.union([ | ||
z.object({ | ||
rpcUrl: z.never().optional(), | ||
apiKey: z.string(), | ||
jwt: z.never().optional(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.never().optional(), | ||
apiKey: z.never().optional(), | ||
jwt: z.string(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.string(), | ||
apiKey: z.never().optional(), | ||
jwt: z.never().optional(), | ||
}), | ||
z.object({ | ||
rpcUrl: z.string(), | ||
apiKey: z.never().optional(), | ||
jwt: z.string(), | ||
}), | ||
]); | ||
export const AlchemyProviderConfigSchema = | ||
@@ -30,0 +10,0 @@ createSmartAccountProviderConfigSchema() |
import { z } from "zod"; | ||
import type { | ||
AlchemyProviderConfigSchema, | ||
ConnectionConfigSchema, | ||
LightAccountAlchemyProviderConfigSchema, | ||
} from "./schema.js"; | ||
export type ConnectionConfig = z.input<typeof ConnectionConfigSchema>; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
@@ -11,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266342
3827
Updated@alchemy/aa-core@^1.2.4
Updatedviem@^1.21.4