-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split aa-alchemy into account-kit packages (#704)
* refactor: split aa-alchemy into account-kit packages BREAKING CHANGE: this removes the @alchemy/aa-alchemy package in favor of @account-kit/* * refactor: delete aa-accounts and move to @account-kit/accounts (#706) BREAKING CHANGE: @alchemy/aa-accounts was deleted in favor of @account-kit/accounts * refactor: further rename packages
- Loading branch information
Showing
716 changed files
with
1,995 additions
and
13,198 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../plugingen/src/commands/generate/types.ts → .../plugingen/src/commands/generate/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { IPluginAbi } from "../IPlugin.js"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"name": "@account-kit/core", | ||
"version": "3.18.2", | ||
"description": "Core library for account kit that provides state management and framework indepednent abstractions across infra, Alchemy Signer, and Smart Contracts", | ||
"author": "Alchemy", | ||
"license": "MIT", | ||
"private": false, | ||
"type": "module", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/types/index.d.ts", | ||
"typings": "./dist/types/index.d.ts", | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"src/**/*.ts", | ||
"!dist/**/*.tsbuildinfo", | ||
"!vitest.config.ts", | ||
"!.env", | ||
"!src/**/*.test.ts", | ||
"!src/__tests__/**/*" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
"default": "./dist/cjs/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"prebuild": "node --loader ts-node/esm ./inject-version.ts", | ||
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", | ||
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'", | ||
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir ./dist/esm --removeComments && echo > ./dist/esm/package.json '{\"type\":\"module\"}'", | ||
"build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap", | ||
"clean": "rm -rf ./dist", | ||
"test": "vitest --passWithNoTests", | ||
"test:run": "vitest run --passWithNoTests", | ||
"test:run-e2e": "vitest run --config vitest.config.e2e.ts --passWithNoTests" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.0.4", | ||
"typescript-template": "*", | ||
"vitest": "^0.31.0" | ||
}, | ||
"dependencies": { | ||
"@account-kit/infra": "^3.18.2", | ||
"@wagmi/core": "^2.9.8", | ||
"js-cookie": "^3.0.5", | ||
"viem": "2.8.6", | ||
"zod": "^3.22.4", | ||
"zustand": "^4.5.2" | ||
}, | ||
"peerDependencies": { | ||
"viem": "2.8.6" | ||
}, | ||
"resolutions": { | ||
"viem": "2.8.6" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/alchemyplatform/aa-sdk.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/alchemyplatform/aa-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme", | ||
"gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", | ||
"optionalDependencies": { | ||
"alchemy-sdk": "^3.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../alchemy/src/config/actions/getAccount.ts → account-kit/core/src/actions/getAccount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...my/src/config/actions/getBundlerClient.ts → ...-kit/core/src/actions/getBundlerClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...chemy/src/config/actions/getConnection.ts → ...unt-kit/core/src/actions/getConnection.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ges/alchemy/src/config/actions/getUser.ts → account-kit/core/src/actions/getUser.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/alchemy/src/config/actions/reconnect.ts → account-kit/core/src/actions/reconnect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/alchemy/src/config/actions/setChain.ts → account-kit/core/src/actions/setChain.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lchemy/src/config/actions/watchAccount.ts → account-kit/core/src/actions/watchAccount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/config/actions/watchBundlerClient.ts → ...it/core/src/actions/watchBundlerClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...y/src/config/actions/watchSignerStatus.ts → ...kit/core/src/actions/watchSignerStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/alchemy/src/config/actions/watchUser.ts → account-kit/core/src/actions/watchUser.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/alchemy/src/config/createConfig.ts → account-kit/core/src/createConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
packages/alchemy/src/config/errors.ts → account-kit/core/src/errors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/alchemy/src/config/hydrate.ts → account-kit/core/src/hydrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export type * from "./actions/createAccount.js"; | ||
export { createAccount } from "./actions/createAccount.js"; | ||
export type * from "./actions/getAccount.js"; | ||
export { getAccount } from "./actions/getAccount.js"; | ||
export type * from "./actions/getBundlerClient.js"; | ||
export { getBundlerClient } from "./actions/getBundlerClient.js"; | ||
export { getChain } from "./actions/getChain.js"; | ||
export type * from "./actions/getConnection.js"; | ||
export { getConnection } from "./actions/getConnection.js"; | ||
export type * from "./actions/getSigner.js"; | ||
export { getSigner } from "./actions/getSigner.js"; | ||
export type * from "./actions/getSignerStatus.js"; | ||
export { getSignerStatus } from "./actions/getSignerStatus.js"; | ||
export type * from "./actions/getUser.js"; | ||
export { getUser } from "./actions/getUser.js"; | ||
export type * from "./actions/reconnect.js"; | ||
export { reconnect } from "./actions/reconnect.js"; | ||
export { setChain } from "./actions/setChain.js"; | ||
export type * from "./actions/watchAccount.js"; | ||
export { watchAccount } from "./actions/watchAccount.js"; | ||
export type * from "./actions/watchBundlerClient.js"; | ||
export { watchBundlerClient } from "./actions/watchBundlerClient.js"; | ||
export { watchChain } from "./actions/watchChain.js"; | ||
export type * from "./actions/watchConnection.js"; | ||
export { watchConnection } from "./actions/watchConnection.js"; | ||
export type * from "./actions/watchSigner.js"; | ||
export { watchSigner } from "./actions/watchSigner.js"; | ||
export type * from "./actions/watchSignerStatus.js"; | ||
export { watchSignerStatus } from "./actions/watchSignerStatus.js"; | ||
export type * from "./actions/watchUser.js"; | ||
export { watchUser } from "./actions/watchUser.js"; | ||
export { DEFAULT_IFRAME_CONTAINER_ID, createConfig } from "./createConfig.js"; | ||
export type * from "./createConfig.js"; | ||
export { ClientOnlyPropertyError } from "./errors.js"; | ||
export { hydrate } from "./hydrate.js"; | ||
export { defaultAccountState } from "./store/client.js"; | ||
export type { SignerStatus } from "./store/types.js"; | ||
export type * from "./types.js"; | ||
export { cookieStorage, cookieToInitialState } from "./utils/cookies.js"; |
Oops, something went wrong.