diff --git a/package.json b/package.json index 4a7b1f052..693565d1f 100644 --- a/package.json +++ b/package.json @@ -83,11 +83,21 @@ }, "resolutions": {}, "workspaces": [ - "packages/*" + "packages/0xsequence", + "packages/tests", + "packages/common/*", + "packages/apis/*", + "packages/wallet/*", + "packages/dapp/*" ], "preconstruct": { "packages": [ - "packages/*" + "packages/0xsequence", + "packages/tests", + "packages/common/*", + "packages/apis/*", + "packages/wallet/*", + "packages/dapp/*" ], "globals": { "ethers": "ethers" diff --git a/packages/api/CHANGELOG.md b/packages/apis/api/CHANGELOG.md similarity index 100% rename from packages/api/CHANGELOG.md rename to packages/apis/api/CHANGELOG.md diff --git a/packages/api/README.md b/packages/apis/api/README.md similarity index 100% rename from packages/api/README.md rename to packages/apis/api/README.md diff --git a/packages/api/package.json b/packages/apis/api/package.json similarity index 100% rename from packages/api/package.json rename to packages/apis/api/package.json diff --git a/packages/api/src/api.gen.ts b/packages/apis/api/src/api.gen.ts similarity index 100% rename from packages/api/src/api.gen.ts rename to packages/apis/api/src/api.gen.ts diff --git a/packages/api/src/index.ts b/packages/apis/api/src/index.ts similarity index 100% rename from packages/api/src/index.ts rename to packages/apis/api/src/index.ts diff --git a/packages/indexer/CHANGELOG.md b/packages/apis/indexer/CHANGELOG.md similarity index 100% rename from packages/indexer/CHANGELOG.md rename to packages/apis/indexer/CHANGELOG.md diff --git a/packages/indexer/README.md b/packages/apis/indexer/README.md similarity index 100% rename from packages/indexer/README.md rename to packages/apis/indexer/README.md diff --git a/packages/indexer/package.json b/packages/apis/indexer/package.json similarity index 100% rename from packages/indexer/package.json rename to packages/apis/indexer/package.json diff --git a/packages/indexer/src/index.ts b/packages/apis/indexer/src/index.ts similarity index 100% rename from packages/indexer/src/index.ts rename to packages/apis/indexer/src/index.ts diff --git a/packages/indexer/src/indexer.gen.ts b/packages/apis/indexer/src/indexer.gen.ts similarity index 100% rename from packages/indexer/src/indexer.gen.ts rename to packages/apis/indexer/src/indexer.gen.ts diff --git a/packages/metadata/CHANGELOG.md b/packages/apis/metadata/CHANGELOG.md similarity index 100% rename from packages/metadata/CHANGELOG.md rename to packages/apis/metadata/CHANGELOG.md diff --git a/packages/metadata/README.md b/packages/apis/metadata/README.md similarity index 100% rename from packages/metadata/README.md rename to packages/apis/metadata/README.md diff --git a/packages/metadata/package.json b/packages/apis/metadata/package.json similarity index 100% rename from packages/metadata/package.json rename to packages/apis/metadata/package.json diff --git a/packages/metadata/src/index.ts b/packages/apis/metadata/src/index.ts similarity index 100% rename from packages/metadata/src/index.ts rename to packages/apis/metadata/src/index.ts diff --git a/packages/metadata/src/metadata.gen.ts b/packages/apis/metadata/src/metadata.gen.ts similarity index 100% rename from packages/metadata/src/metadata.gen.ts rename to packages/apis/metadata/src/metadata.gen.ts diff --git a/packages/deployer/.gitignore b/packages/common/deployer/.gitignore similarity index 100% rename from packages/deployer/.gitignore rename to packages/common/deployer/.gitignore diff --git a/packages/deployer/CHANGELOG.md b/packages/common/deployer/CHANGELOG.md similarity index 100% rename from packages/deployer/CHANGELOG.md rename to packages/common/deployer/CHANGELOG.md diff --git a/packages/deployer/README.md b/packages/common/deployer/README.md similarity index 100% rename from packages/deployer/README.md rename to packages/common/deployer/README.md diff --git a/packages/deployer/artifacts/contracts/NanoUniversalDeployer.sol/NanoUniversalDeployer.json b/packages/common/deployer/artifacts/contracts/NanoUniversalDeployer.sol/NanoUniversalDeployer.json similarity index 100% rename from packages/deployer/artifacts/contracts/NanoUniversalDeployer.sol/NanoUniversalDeployer.json rename to packages/common/deployer/artifacts/contracts/NanoUniversalDeployer.sol/NanoUniversalDeployer.json diff --git a/packages/deployer/artifacts/contracts/UniversalDeployer2.sol/UniversalDeployer2.json b/packages/common/deployer/artifacts/contracts/UniversalDeployer2.sol/UniversalDeployer2.json similarity index 100% rename from packages/deployer/artifacts/contracts/UniversalDeployer2.sol/UniversalDeployer2.json rename to packages/common/deployer/artifacts/contracts/UniversalDeployer2.sol/UniversalDeployer2.json diff --git a/packages/deployer/config/PROD.env.sample b/packages/common/deployer/config/PROD.env.sample similarity index 100% rename from packages/deployer/config/PROD.env.sample rename to packages/common/deployer/config/PROD.env.sample diff --git a/packages/deployer/contracts/NanoUniversalDeployer.sol b/packages/common/deployer/contracts/NanoUniversalDeployer.sol similarity index 100% rename from packages/deployer/contracts/NanoUniversalDeployer.sol rename to packages/common/deployer/contracts/NanoUniversalDeployer.sol diff --git a/packages/deployer/contracts/UniversalDeployer2.sol b/packages/common/deployer/contracts/UniversalDeployer2.sol similarity index 100% rename from packages/deployer/contracts/UniversalDeployer2.sol rename to packages/common/deployer/contracts/UniversalDeployer2.sol diff --git a/packages/deployer/hardhat.config.ts b/packages/common/deployer/hardhat.config.ts similarity index 100% rename from packages/deployer/hardhat.config.ts rename to packages/common/deployer/hardhat.config.ts diff --git a/packages/deployer/package.json b/packages/common/deployer/package.json similarity index 80% rename from packages/deployer/package.json rename to packages/common/deployer/package.json index 1fbc89f86..a7075d411 100644 --- a/packages/deployer/package.json +++ b/packages/common/deployer/package.json @@ -12,8 +12,8 @@ "test": "pnpm test:file tests/**/*.spec.ts", "test:file": "NODE_OPTIONS='--import tsx' mocha --timeout 30000", "typecheck": "tsc --noEmit", - "build": "rm -rf src/typings && TS_NODE_PROJECT=../../tsconfig.test.json hardhat clean && pnpm compile-contracts && pnpm gen:typings", - "compile-contracts": "TS_NODE_PROJECT=../../tsconfig.test.json hardhat --max-memory 4096 compile", + "build": "rm -rf src/typings && TS_NODE_PROJECT=../../../tsconfig.test.json hardhat clean && pnpm compile-contracts && pnpm gen:typings", + "compile-contracts": "TS_NODE_PROJECT=../../../tsconfig.test.json hardhat --max-memory 4096 compile", "gen:typings": "rm -rf ./src/typings/contracts/* && typechain --target ethers-v6 --out-dir src/typings/contracts './artifacts/contracts/!(build-info)/**/*[^dbg].json'" }, "dependencies": { diff --git a/packages/deployer/src/UniversalDeployer.ts b/packages/common/deployer/src/UniversalDeployer.ts similarity index 100% rename from packages/deployer/src/UniversalDeployer.ts rename to packages/common/deployer/src/UniversalDeployer.ts diff --git a/packages/deployer/src/constants.ts b/packages/common/deployer/src/constants.ts similarity index 100% rename from packages/deployer/src/constants.ts rename to packages/common/deployer/src/constants.ts diff --git a/packages/deployer/src/index.ts b/packages/common/deployer/src/index.ts similarity index 100% rename from packages/deployer/src/index.ts rename to packages/common/deployer/src/index.ts diff --git a/packages/deployer/src/types.ts b/packages/common/deployer/src/types.ts similarity index 100% rename from packages/deployer/src/types.ts rename to packages/common/deployer/src/types.ts diff --git a/packages/deployer/src/typings/contracts/NanoUniversalDeployer.ts b/packages/common/deployer/src/typings/contracts/NanoUniversalDeployer.ts similarity index 100% rename from packages/deployer/src/typings/contracts/NanoUniversalDeployer.ts rename to packages/common/deployer/src/typings/contracts/NanoUniversalDeployer.ts diff --git a/packages/deployer/src/typings/contracts/UniversalDeployer2.ts b/packages/common/deployer/src/typings/contracts/UniversalDeployer2.ts similarity index 100% rename from packages/deployer/src/typings/contracts/UniversalDeployer2.ts rename to packages/common/deployer/src/typings/contracts/UniversalDeployer2.ts diff --git a/packages/deployer/src/typings/contracts/common.ts b/packages/common/deployer/src/typings/contracts/common.ts similarity index 100% rename from packages/deployer/src/typings/contracts/common.ts rename to packages/common/deployer/src/typings/contracts/common.ts diff --git a/packages/deployer/src/typings/contracts/factories/NanoUniversalDeployer__factory.ts b/packages/common/deployer/src/typings/contracts/factories/NanoUniversalDeployer__factory.ts similarity index 100% rename from packages/deployer/src/typings/contracts/factories/NanoUniversalDeployer__factory.ts rename to packages/common/deployer/src/typings/contracts/factories/NanoUniversalDeployer__factory.ts diff --git a/packages/deployer/src/typings/contracts/factories/UniversalDeployer2__factory.ts b/packages/common/deployer/src/typings/contracts/factories/UniversalDeployer2__factory.ts similarity index 100% rename from packages/deployer/src/typings/contracts/factories/UniversalDeployer2__factory.ts rename to packages/common/deployer/src/typings/contracts/factories/UniversalDeployer2__factory.ts diff --git a/packages/deployer/src/typings/contracts/factories/index.ts b/packages/common/deployer/src/typings/contracts/factories/index.ts similarity index 100% rename from packages/deployer/src/typings/contracts/factories/index.ts rename to packages/common/deployer/src/typings/contracts/factories/index.ts diff --git a/packages/deployer/src/typings/contracts/index.ts b/packages/common/deployer/src/typings/contracts/index.ts similarity index 100% rename from packages/deployer/src/typings/contracts/index.ts rename to packages/common/deployer/src/typings/contracts/index.ts diff --git a/packages/deployer/src/utils/configLoader.ts b/packages/common/deployer/src/utils/configLoader.ts similarity index 100% rename from packages/deployer/src/utils/configLoader.ts rename to packages/common/deployer/src/utils/configLoader.ts diff --git a/packages/deployer/src/utils/logger.ts b/packages/common/deployer/src/utils/logger.ts similarity index 100% rename from packages/deployer/src/utils/logger.ts rename to packages/common/deployer/src/utils/logger.ts diff --git a/packages/deployer/tests/mock.spec.ts b/packages/common/deployer/tests/mock.spec.ts similarity index 100% rename from packages/deployer/tests/mock.spec.ts rename to packages/common/deployer/tests/mock.spec.ts diff --git a/packages/network/CHANGELOG.md b/packages/common/network/CHANGELOG.md similarity index 100% rename from packages/network/CHANGELOG.md rename to packages/common/network/CHANGELOG.md diff --git a/packages/network/README.md b/packages/common/network/README.md similarity index 100% rename from packages/network/README.md rename to packages/common/network/README.md diff --git a/packages/network/constants/package.json b/packages/common/network/constants/package.json similarity index 100% rename from packages/network/constants/package.json rename to packages/common/network/constants/package.json diff --git a/packages/network/package.json b/packages/common/network/package.json similarity index 100% rename from packages/network/package.json rename to packages/common/network/package.json diff --git a/packages/network/src/config.ts b/packages/common/network/src/config.ts similarity index 100% rename from packages/network/src/config.ts rename to packages/common/network/src/config.ts diff --git a/packages/network/src/constants.ts b/packages/common/network/src/constants.ts similarity index 100% rename from packages/network/src/constants.ts rename to packages/common/network/src/constants.ts diff --git a/packages/network/src/index.ts b/packages/common/network/src/index.ts similarity index 100% rename from packages/network/src/index.ts rename to packages/common/network/src/index.ts diff --git a/packages/network/src/json-rpc-provider.ts b/packages/common/network/src/json-rpc-provider.ts similarity index 100% rename from packages/network/src/json-rpc-provider.ts rename to packages/common/network/src/json-rpc-provider.ts diff --git a/packages/network/src/json-rpc/handler.ts b/packages/common/network/src/json-rpc/handler.ts similarity index 100% rename from packages/network/src/json-rpc/handler.ts rename to packages/common/network/src/json-rpc/handler.ts diff --git a/packages/network/src/json-rpc/index.ts b/packages/common/network/src/json-rpc/index.ts similarity index 100% rename from packages/network/src/json-rpc/index.ts rename to packages/common/network/src/json-rpc/index.ts diff --git a/packages/network/src/json-rpc/middleware/allow-provider.ts b/packages/common/network/src/json-rpc/middleware/allow-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/allow-provider.ts rename to packages/common/network/src/json-rpc/middleware/allow-provider.ts diff --git a/packages/network/src/json-rpc/middleware/cached-provider.ts b/packages/common/network/src/json-rpc/middleware/cached-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/cached-provider.ts rename to packages/common/network/src/json-rpc/middleware/cached-provider.ts diff --git a/packages/network/src/json-rpc/middleware/eager-provider.ts b/packages/common/network/src/json-rpc/middleware/eager-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/eager-provider.ts rename to packages/common/network/src/json-rpc/middleware/eager-provider.ts diff --git a/packages/network/src/json-rpc/middleware/exception-provider.ts b/packages/common/network/src/json-rpc/middleware/exception-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/exception-provider.ts rename to packages/common/network/src/json-rpc/middleware/exception-provider.ts diff --git a/packages/network/src/json-rpc/middleware/index.ts b/packages/common/network/src/json-rpc/middleware/index.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/index.ts rename to packages/common/network/src/json-rpc/middleware/index.ts diff --git a/packages/network/src/json-rpc/middleware/logging-provider.ts b/packages/common/network/src/json-rpc/middleware/logging-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/logging-provider.ts rename to packages/common/network/src/json-rpc/middleware/logging-provider.ts diff --git a/packages/network/src/json-rpc/middleware/network-provider.ts b/packages/common/network/src/json-rpc/middleware/network-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/network-provider.ts rename to packages/common/network/src/json-rpc/middleware/network-provider.ts diff --git a/packages/network/src/json-rpc/middleware/public-provider.ts b/packages/common/network/src/json-rpc/middleware/public-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/public-provider.ts rename to packages/common/network/src/json-rpc/middleware/public-provider.ts diff --git a/packages/network/src/json-rpc/middleware/signing-provider.ts b/packages/common/network/src/json-rpc/middleware/signing-provider.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/signing-provider.ts rename to packages/common/network/src/json-rpc/middleware/signing-provider.ts diff --git a/packages/network/src/json-rpc/middleware/singleflight.ts b/packages/common/network/src/json-rpc/middleware/singleflight.ts similarity index 100% rename from packages/network/src/json-rpc/middleware/singleflight.ts rename to packages/common/network/src/json-rpc/middleware/singleflight.ts diff --git a/packages/network/src/json-rpc/router.ts b/packages/common/network/src/json-rpc/router.ts similarity index 100% rename from packages/network/src/json-rpc/router.ts rename to packages/common/network/src/json-rpc/router.ts diff --git a/packages/network/src/json-rpc/types.ts b/packages/common/network/src/json-rpc/types.ts similarity index 100% rename from packages/network/src/json-rpc/types.ts rename to packages/common/network/src/json-rpc/types.ts diff --git a/packages/network/src/json-rpc/utils.ts b/packages/common/network/src/json-rpc/utils.ts similarity index 100% rename from packages/network/src/json-rpc/utils.ts rename to packages/common/network/src/json-rpc/utils.ts diff --git a/packages/network/src/utils.ts b/packages/common/network/src/utils.ts similarity index 100% rename from packages/network/src/utils.ts rename to packages/common/network/src/utils.ts diff --git a/packages/replacer/CHANGELOG.md b/packages/common/replacer/CHANGELOG.md similarity index 100% rename from packages/replacer/CHANGELOG.md rename to packages/common/replacer/CHANGELOG.md diff --git a/packages/replacer/package.json b/packages/common/replacer/package.json similarity index 100% rename from packages/replacer/package.json rename to packages/common/replacer/package.json diff --git a/packages/replacer/src/cached.ts b/packages/common/replacer/src/cached.ts similarity index 100% rename from packages/replacer/src/cached.ts rename to packages/common/replacer/src/cached.ts diff --git a/packages/replacer/src/index.ts b/packages/common/replacer/src/index.ts similarity index 100% rename from packages/replacer/src/index.ts rename to packages/common/replacer/src/index.ts diff --git a/packages/replacer/src/ipfs.ts b/packages/common/replacer/src/ipfs.ts similarity index 100% rename from packages/replacer/src/ipfs.ts rename to packages/common/replacer/src/ipfs.ts diff --git a/packages/utils/CHANGELOG.md b/packages/common/utils/CHANGELOG.md similarity index 100% rename from packages/utils/CHANGELOG.md rename to packages/common/utils/CHANGELOG.md diff --git a/packages/utils/README.md b/packages/common/utils/README.md similarity index 100% rename from packages/utils/README.md rename to packages/common/utils/README.md diff --git a/packages/utils/package.json b/packages/common/utils/package.json similarity index 100% rename from packages/utils/package.json rename to packages/common/utils/package.json diff --git a/packages/utils/src/access-key.ts b/packages/common/utils/src/access-key.ts similarity index 100% rename from packages/utils/src/access-key.ts rename to packages/common/utils/src/access-key.ts diff --git a/packages/utils/src/base64.ts b/packages/common/utils/src/base64.ts similarity index 100% rename from packages/utils/src/base64.ts rename to packages/common/utils/src/base64.ts diff --git a/packages/utils/src/bigint.ts b/packages/common/utils/src/bigint.ts similarity index 100% rename from packages/utils/src/bigint.ts rename to packages/common/utils/src/bigint.ts diff --git a/packages/utils/src/digest.ts b/packages/common/utils/src/digest.ts similarity index 100% rename from packages/utils/src/digest.ts rename to packages/common/utils/src/digest.ts diff --git a/packages/utils/src/index.ts b/packages/common/utils/src/index.ts similarity index 100% rename from packages/utils/src/index.ts rename to packages/common/utils/src/index.ts diff --git a/packages/utils/src/is-node-or-browser.ts b/packages/common/utils/src/is-node-or-browser.ts similarity index 100% rename from packages/utils/src/is-node-or-browser.ts rename to packages/common/utils/src/is-node-or-browser.ts diff --git a/packages/utils/src/jwt-decode.ts b/packages/common/utils/src/jwt-decode.ts similarity index 100% rename from packages/utils/src/jwt-decode.ts rename to packages/common/utils/src/jwt-decode.ts diff --git a/packages/utils/src/logger.ts b/packages/common/utils/src/logger.ts similarity index 100% rename from packages/utils/src/logger.ts rename to packages/common/utils/src/logger.ts diff --git a/packages/utils/src/merkle.ts b/packages/common/utils/src/merkle.ts similarity index 100% rename from packages/utils/src/merkle.ts rename to packages/common/utils/src/merkle.ts diff --git a/packages/utils/src/merkletree/Base.ts b/packages/common/utils/src/merkletree/Base.ts similarity index 100% rename from packages/utils/src/merkletree/Base.ts rename to packages/common/utils/src/merkletree/Base.ts diff --git a/packages/utils/src/merkletree/MerkleTree.ts b/packages/common/utils/src/merkletree/MerkleTree.ts similarity index 100% rename from packages/utils/src/merkletree/MerkleTree.ts rename to packages/common/utils/src/merkletree/MerkleTree.ts diff --git a/packages/utils/src/merkletree/README.md b/packages/common/utils/src/merkletree/README.md similarity index 100% rename from packages/utils/src/merkletree/README.md rename to packages/common/utils/src/merkletree/README.md diff --git a/packages/utils/src/merkletree/index.ts b/packages/common/utils/src/merkletree/index.ts similarity index 100% rename from packages/utils/src/merkletree/index.ts rename to packages/common/utils/src/merkletree/index.ts diff --git a/packages/utils/src/network.ts b/packages/common/utils/src/network.ts similarity index 100% rename from packages/utils/src/network.ts rename to packages/common/utils/src/network.ts diff --git a/packages/utils/src/promise-cache.ts b/packages/common/utils/src/promise-cache.ts similarity index 100% rename from packages/utils/src/promise-cache.ts rename to packages/common/utils/src/promise-cache.ts diff --git a/packages/utils/src/promisify.ts b/packages/common/utils/src/promisify.ts similarity index 100% rename from packages/utils/src/promisify.ts rename to packages/common/utils/src/promisify.ts diff --git a/packages/utils/src/query-string.ts b/packages/common/utils/src/query-string.ts similarity index 100% rename from packages/utils/src/query-string.ts rename to packages/common/utils/src/query-string.ts diff --git a/packages/utils/src/rand.ts b/packages/common/utils/src/rand.ts similarity index 100% rename from packages/utils/src/rand.ts rename to packages/common/utils/src/rand.ts diff --git a/packages/utils/src/sanitize.ts b/packages/common/utils/src/sanitize.ts similarity index 100% rename from packages/utils/src/sanitize.ts rename to packages/common/utils/src/sanitize.ts diff --git a/packages/utils/src/sleep.ts b/packages/common/utils/src/sleep.ts similarity index 100% rename from packages/utils/src/sleep.ts rename to packages/common/utils/src/sleep.ts diff --git a/packages/utils/src/typed-data.ts b/packages/common/utils/src/typed-data.ts similarity index 100% rename from packages/utils/src/typed-data.ts rename to packages/common/utils/src/typed-data.ts diff --git a/packages/utils/src/types.ts b/packages/common/utils/src/types.ts similarity index 100% rename from packages/utils/src/types.ts rename to packages/common/utils/src/types.ts diff --git a/packages/utils/src/web.ts b/packages/common/utils/src/web.ts similarity index 100% rename from packages/utils/src/web.ts rename to packages/common/utils/src/web.ts diff --git a/packages/utils/tests/access-key.spec.ts b/packages/common/utils/tests/access-key.spec.ts similarity index 100% rename from packages/utils/tests/access-key.spec.ts rename to packages/common/utils/tests/access-key.spec.ts diff --git a/packages/utils/tests/base64.spec.ts b/packages/common/utils/tests/base64.spec.ts similarity index 100% rename from packages/utils/tests/base64.spec.ts rename to packages/common/utils/tests/base64.spec.ts diff --git a/packages/utils/tests/bigint.spec.ts b/packages/common/utils/tests/bigint.spec.ts similarity index 100% rename from packages/utils/tests/bigint.spec.ts rename to packages/common/utils/tests/bigint.spec.ts diff --git a/packages/utils/tests/jwt-decode.spec.ts b/packages/common/utils/tests/jwt-decode.spec.ts similarity index 100% rename from packages/utils/tests/jwt-decode.spec.ts rename to packages/common/utils/tests/jwt-decode.spec.ts diff --git a/packages/utils/tests/merkle.spec.ts b/packages/common/utils/tests/merkle.spec.ts similarity index 100% rename from packages/utils/tests/merkle.spec.ts rename to packages/common/utils/tests/merkle.spec.ts diff --git a/packages/utils/tests/query-string.spec.ts b/packages/common/utils/tests/query-string.spec.ts similarity index 100% rename from packages/utils/tests/query-string.spec.ts rename to packages/common/utils/tests/query-string.spec.ts diff --git a/packages/utils/tests/sanitize.spec.ts b/packages/common/utils/tests/sanitize.spec.ts similarity index 100% rename from packages/utils/tests/sanitize.spec.ts rename to packages/common/utils/tests/sanitize.spec.ts diff --git a/packages/provider/CHANGELOG.md b/packages/dapp/provider/CHANGELOG.md similarity index 100% rename from packages/provider/CHANGELOG.md rename to packages/dapp/provider/CHANGELOG.md diff --git a/packages/provider/README.md b/packages/dapp/provider/README.md similarity index 100% rename from packages/provider/README.md rename to packages/dapp/provider/README.md diff --git a/packages/provider/hardhat1.config.cts b/packages/dapp/provider/hardhat1.config.cts similarity index 100% rename from packages/provider/hardhat1.config.cts rename to packages/dapp/provider/hardhat1.config.cts diff --git a/packages/provider/hardhat1.config.js b/packages/dapp/provider/hardhat1.config.js similarity index 100% rename from packages/provider/hardhat1.config.js rename to packages/dapp/provider/hardhat1.config.js diff --git a/packages/provider/hardhat2.config.cts b/packages/dapp/provider/hardhat2.config.cts similarity index 100% rename from packages/provider/hardhat2.config.cts rename to packages/dapp/provider/hardhat2.config.cts diff --git a/packages/provider/hardhat2.config.js b/packages/dapp/provider/hardhat2.config.js similarity index 100% rename from packages/provider/hardhat2.config.js rename to packages/dapp/provider/hardhat2.config.js diff --git a/packages/provider/package.json b/packages/dapp/provider/package.json similarity index 100% rename from packages/provider/package.json rename to packages/dapp/provider/package.json diff --git a/packages/provider/src/analytics.ts b/packages/dapp/provider/src/analytics.ts similarity index 100% rename from packages/provider/src/analytics.ts rename to packages/dapp/provider/src/analytics.ts diff --git a/packages/provider/src/client.ts b/packages/dapp/provider/src/client.ts similarity index 100% rename from packages/provider/src/client.ts rename to packages/dapp/provider/src/client.ts diff --git a/packages/provider/src/eip191exceptions.ts b/packages/dapp/provider/src/eip191exceptions.ts similarity index 100% rename from packages/provider/src/eip191exceptions.ts rename to packages/dapp/provider/src/eip191exceptions.ts diff --git a/packages/provider/src/extended.ts b/packages/dapp/provider/src/extended.ts similarity index 100% rename from packages/provider/src/extended.ts rename to packages/dapp/provider/src/extended.ts diff --git a/packages/provider/src/index.ts b/packages/dapp/provider/src/index.ts similarity index 100% rename from packages/provider/src/index.ts rename to packages/dapp/provider/src/index.ts diff --git a/packages/provider/src/init.ts b/packages/dapp/provider/src/init.ts similarity index 100% rename from packages/provider/src/init.ts rename to packages/dapp/provider/src/init.ts diff --git a/packages/provider/src/provider.ts b/packages/dapp/provider/src/provider.ts similarity index 100% rename from packages/provider/src/provider.ts rename to packages/dapp/provider/src/provider.ts diff --git a/packages/provider/src/signer.ts b/packages/dapp/provider/src/signer.ts similarity index 100% rename from packages/provider/src/signer.ts rename to packages/dapp/provider/src/signer.ts diff --git a/packages/provider/src/transactions.ts b/packages/dapp/provider/src/transactions.ts similarity index 100% rename from packages/provider/src/transactions.ts rename to packages/dapp/provider/src/transactions.ts diff --git a/packages/provider/src/transports/base-provider-transport.ts b/packages/dapp/provider/src/transports/base-provider-transport.ts similarity index 100% rename from packages/provider/src/transports/base-provider-transport.ts rename to packages/dapp/provider/src/transports/base-provider-transport.ts diff --git a/packages/provider/src/transports/base-wallet-transport.ts b/packages/dapp/provider/src/transports/base-wallet-transport.ts similarity index 100% rename from packages/provider/src/transports/base-wallet-transport.ts rename to packages/dapp/provider/src/transports/base-wallet-transport.ts diff --git a/packages/provider/src/transports/extension-transport/base-injected-transport.ts b/packages/dapp/provider/src/transports/extension-transport/base-injected-transport.ts similarity index 100% rename from packages/provider/src/transports/extension-transport/base-injected-transport.ts rename to packages/dapp/provider/src/transports/extension-transport/base-injected-transport.ts diff --git a/packages/provider/src/transports/extension-transport/extension-message-handler.ts b/packages/dapp/provider/src/transports/extension-transport/extension-message-handler.ts similarity index 100% rename from packages/provider/src/transports/extension-transport/extension-message-handler.ts rename to packages/dapp/provider/src/transports/extension-transport/extension-message-handler.ts diff --git a/packages/provider/src/transports/extension-transport/extension-message-provider.ts b/packages/dapp/provider/src/transports/extension-transport/extension-message-provider.ts similarity index 100% rename from packages/provider/src/transports/extension-transport/extension-message-provider.ts rename to packages/dapp/provider/src/transports/extension-transport/extension-message-provider.ts diff --git a/packages/provider/src/transports/extension-transport/index.ts b/packages/dapp/provider/src/transports/extension-transport/index.ts similarity index 100% rename from packages/provider/src/transports/extension-transport/index.ts rename to packages/dapp/provider/src/transports/extension-transport/index.ts diff --git a/packages/provider/src/transports/index.ts b/packages/dapp/provider/src/transports/index.ts similarity index 100% rename from packages/provider/src/transports/index.ts rename to packages/dapp/provider/src/transports/index.ts diff --git a/packages/provider/src/transports/mux-transport/index.ts b/packages/dapp/provider/src/transports/mux-transport/index.ts similarity index 100% rename from packages/provider/src/transports/mux-transport/index.ts rename to packages/dapp/provider/src/transports/mux-transport/index.ts diff --git a/packages/provider/src/transports/mux-transport/mux-message-provider.ts b/packages/dapp/provider/src/transports/mux-transport/mux-message-provider.ts similarity index 100% rename from packages/provider/src/transports/mux-transport/mux-message-provider.ts rename to packages/dapp/provider/src/transports/mux-transport/mux-message-provider.ts diff --git a/packages/provider/src/transports/proxy-transport/index.ts b/packages/dapp/provider/src/transports/proxy-transport/index.ts similarity index 100% rename from packages/provider/src/transports/proxy-transport/index.ts rename to packages/dapp/provider/src/transports/proxy-transport/index.ts diff --git a/packages/provider/src/transports/proxy-transport/proxy-message-channel.ts b/packages/dapp/provider/src/transports/proxy-transport/proxy-message-channel.ts similarity index 100% rename from packages/provider/src/transports/proxy-transport/proxy-message-channel.ts rename to packages/dapp/provider/src/transports/proxy-transport/proxy-message-channel.ts diff --git a/packages/provider/src/transports/proxy-transport/proxy-message-handler.ts b/packages/dapp/provider/src/transports/proxy-transport/proxy-message-handler.ts similarity index 100% rename from packages/provider/src/transports/proxy-transport/proxy-message-handler.ts rename to packages/dapp/provider/src/transports/proxy-transport/proxy-message-handler.ts diff --git a/packages/provider/src/transports/proxy-transport/proxy-message-provider.ts b/packages/dapp/provider/src/transports/proxy-transport/proxy-message-provider.ts similarity index 100% rename from packages/provider/src/transports/proxy-transport/proxy-message-provider.ts rename to packages/dapp/provider/src/transports/proxy-transport/proxy-message-provider.ts diff --git a/packages/provider/src/transports/unreal-transport/index.ts b/packages/dapp/provider/src/transports/unreal-transport/index.ts similarity index 100% rename from packages/provider/src/transports/unreal-transport/index.ts rename to packages/dapp/provider/src/transports/unreal-transport/index.ts diff --git a/packages/provider/src/transports/unreal-transport/overridelogs.ts b/packages/dapp/provider/src/transports/unreal-transport/overridelogs.ts similarity index 100% rename from packages/provider/src/transports/unreal-transport/overridelogs.ts rename to packages/dapp/provider/src/transports/unreal-transport/overridelogs.ts diff --git a/packages/provider/src/transports/unreal-transport/unreal-message-handler.ts b/packages/dapp/provider/src/transports/unreal-transport/unreal-message-handler.ts similarity index 100% rename from packages/provider/src/transports/unreal-transport/unreal-message-handler.ts rename to packages/dapp/provider/src/transports/unreal-transport/unreal-message-handler.ts diff --git a/packages/provider/src/transports/unreal-transport/unreal-message-provider.ts b/packages/dapp/provider/src/transports/unreal-transport/unreal-message-provider.ts similarity index 100% rename from packages/provider/src/transports/unreal-transport/unreal-message-provider.ts rename to packages/dapp/provider/src/transports/unreal-transport/unreal-message-provider.ts diff --git a/packages/provider/src/transports/wallet-request-handler.ts b/packages/dapp/provider/src/transports/wallet-request-handler.ts similarity index 100% rename from packages/provider/src/transports/wallet-request-handler.ts rename to packages/dapp/provider/src/transports/wallet-request-handler.ts diff --git a/packages/provider/src/transports/window-transport/index.ts b/packages/dapp/provider/src/transports/window-transport/index.ts similarity index 100% rename from packages/provider/src/transports/window-transport/index.ts rename to packages/dapp/provider/src/transports/window-transport/index.ts diff --git a/packages/provider/src/transports/window-transport/window-message-handler.ts b/packages/dapp/provider/src/transports/window-transport/window-message-handler.ts similarity index 100% rename from packages/provider/src/transports/window-transport/window-message-handler.ts rename to packages/dapp/provider/src/transports/window-transport/window-message-handler.ts diff --git a/packages/provider/src/transports/window-transport/window-message-provider.ts b/packages/dapp/provider/src/transports/window-transport/window-message-provider.ts similarity index 100% rename from packages/provider/src/transports/window-transport/window-message-provider.ts rename to packages/dapp/provider/src/transports/window-transport/window-message-provider.ts diff --git a/packages/provider/src/types.ts b/packages/dapp/provider/src/types.ts similarity index 100% rename from packages/provider/src/types.ts rename to packages/dapp/provider/src/types.ts diff --git a/packages/provider/src/utils.ts b/packages/dapp/provider/src/utils.ts similarity index 100% rename from packages/provider/src/utils.ts rename to packages/dapp/provider/src/utils.ts diff --git a/packages/provider/src/utils/index.ts b/packages/dapp/provider/src/utils/index.ts similarity index 100% rename from packages/provider/src/utils/index.ts rename to packages/dapp/provider/src/utils/index.ts diff --git a/packages/provider/tests/client.spec.ts b/packages/dapp/provider/tests/client.spec.ts similarity index 100% rename from packages/provider/tests/client.spec.ts rename to packages/dapp/provider/tests/client.spec.ts diff --git a/packages/provider/tests/eip191prefix.spec.ts b/packages/dapp/provider/tests/eip191prefix.spec.ts similarity index 100% rename from packages/provider/tests/eip191prefix.spec.ts rename to packages/dapp/provider/tests/eip191prefix.spec.ts diff --git a/packages/provider/tests/messages.ts b/packages/dapp/provider/tests/messages.ts similarity index 100% rename from packages/provider/tests/messages.ts rename to packages/dapp/provider/tests/messages.ts diff --git a/packages/provider/tests/provider.spec.ts b/packages/dapp/provider/tests/provider.spec.ts similarity index 100% rename from packages/provider/tests/provider.spec.ts rename to packages/dapp/provider/tests/provider.spec.ts diff --git a/packages/provider/tests/remove-eip191prefix.spec.ts b/packages/dapp/provider/tests/remove-eip191prefix.spec.ts similarity index 100% rename from packages/provider/tests/remove-eip191prefix.spec.ts rename to packages/dapp/provider/tests/remove-eip191prefix.spec.ts diff --git a/packages/provider/tests/signer.spec.ts b/packages/dapp/provider/tests/signer.spec.ts similarity index 100% rename from packages/provider/tests/signer.spec.ts rename to packages/dapp/provider/tests/signer.spec.ts diff --git a/packages/provider/tests/transactions.spec.ts b/packages/dapp/provider/tests/transactions.spec.ts similarity index 100% rename from packages/provider/tests/transactions.spec.ts rename to packages/dapp/provider/tests/transactions.spec.ts diff --git a/packages/provider/tests/zeroxv3.spec.ts b/packages/dapp/provider/tests/zeroxv3.spec.ts similarity index 100% rename from packages/provider/tests/zeroxv3.spec.ts rename to packages/dapp/provider/tests/zeroxv3.spec.ts diff --git a/packages/waas-ethers/CHANGELOG.md b/packages/dapp/waas-ethers/CHANGELOG.md similarity index 100% rename from packages/waas-ethers/CHANGELOG.md rename to packages/dapp/waas-ethers/CHANGELOG.md diff --git a/packages/waas-ethers/README.md b/packages/dapp/waas-ethers/README.md similarity index 100% rename from packages/waas-ethers/README.md rename to packages/dapp/waas-ethers/README.md diff --git a/packages/waas-ethers/package.json b/packages/dapp/waas-ethers/package.json similarity index 100% rename from packages/waas-ethers/package.json rename to packages/dapp/waas-ethers/package.json diff --git a/packages/waas-ethers/src/index.ts b/packages/dapp/waas-ethers/src/index.ts similarity index 100% rename from packages/waas-ethers/src/index.ts rename to packages/dapp/waas-ethers/src/index.ts diff --git a/packages/waas-ethers/src/signer.ts b/packages/dapp/waas-ethers/src/signer.ts similarity index 100% rename from packages/waas-ethers/src/signer.ts rename to packages/dapp/waas-ethers/src/signer.ts diff --git a/packages/waas/CHANGELOG.md b/packages/dapp/waas/CHANGELOG.md similarity index 100% rename from packages/waas/CHANGELOG.md rename to packages/dapp/waas/CHANGELOG.md diff --git a/packages/waas/README.md b/packages/dapp/waas/README.md similarity index 100% rename from packages/waas/README.md rename to packages/dapp/waas/README.md diff --git a/packages/waas/package.json b/packages/dapp/waas/package.json similarity index 100% rename from packages/waas/package.json rename to packages/dapp/waas/package.json diff --git a/packages/waas/src/auth.ts b/packages/dapp/waas/src/auth.ts similarity index 100% rename from packages/waas/src/auth.ts rename to packages/dapp/waas/src/auth.ts diff --git a/packages/waas/src/base.ts b/packages/dapp/waas/src/base.ts similarity index 100% rename from packages/waas/src/base.ts rename to packages/dapp/waas/src/base.ts diff --git a/packages/waas/src/challenge.ts b/packages/dapp/waas/src/challenge.ts similarity index 100% rename from packages/waas/src/challenge.ts rename to packages/dapp/waas/src/challenge.ts diff --git a/packages/waas/src/clients/authenticator.gen.ts b/packages/dapp/waas/src/clients/authenticator.gen.ts similarity index 100% rename from packages/waas/src/clients/authenticator.gen.ts rename to packages/dapp/waas/src/clients/authenticator.gen.ts diff --git a/packages/waas/src/clients/intent.gen.ts b/packages/dapp/waas/src/clients/intent.gen.ts similarity index 100% rename from packages/waas/src/clients/intent.gen.ts rename to packages/dapp/waas/src/clients/intent.gen.ts diff --git a/packages/waas/src/email.ts b/packages/dapp/waas/src/email.ts similarity index 100% rename from packages/waas/src/email.ts rename to packages/dapp/waas/src/email.ts diff --git a/packages/waas/src/index.ts b/packages/dapp/waas/src/index.ts similarity index 100% rename from packages/waas/src/index.ts rename to packages/dapp/waas/src/index.ts diff --git a/packages/waas/src/intents/accounts.ts b/packages/dapp/waas/src/intents/accounts.ts similarity index 100% rename from packages/waas/src/intents/accounts.ts rename to packages/dapp/waas/src/intents/accounts.ts diff --git a/packages/waas/src/intents/base.ts b/packages/dapp/waas/src/intents/base.ts similarity index 100% rename from packages/waas/src/intents/base.ts rename to packages/dapp/waas/src/intents/base.ts diff --git a/packages/waas/src/intents/index.ts b/packages/dapp/waas/src/intents/index.ts similarity index 100% rename from packages/waas/src/intents/index.ts rename to packages/dapp/waas/src/intents/index.ts diff --git a/packages/waas/src/intents/messages.ts b/packages/dapp/waas/src/intents/messages.ts similarity index 100% rename from packages/waas/src/intents/messages.ts rename to packages/dapp/waas/src/intents/messages.ts diff --git a/packages/waas/src/intents/responses.ts b/packages/dapp/waas/src/intents/responses.ts similarity index 100% rename from packages/waas/src/intents/responses.ts rename to packages/dapp/waas/src/intents/responses.ts diff --git a/packages/waas/src/intents/session.ts b/packages/dapp/waas/src/intents/session.ts similarity index 100% rename from packages/waas/src/intents/session.ts rename to packages/dapp/waas/src/intents/session.ts diff --git a/packages/waas/src/intents/transactions.ts b/packages/dapp/waas/src/intents/transactions.ts similarity index 100% rename from packages/waas/src/intents/transactions.ts rename to packages/dapp/waas/src/intents/transactions.ts diff --git a/packages/waas/src/intents/utils.ts b/packages/dapp/waas/src/intents/utils.ts similarity index 100% rename from packages/waas/src/intents/utils.ts rename to packages/dapp/waas/src/intents/utils.ts diff --git a/packages/waas/src/networks.ts b/packages/dapp/waas/src/networks.ts similarity index 100% rename from packages/waas/src/networks.ts rename to packages/dapp/waas/src/networks.ts diff --git a/packages/waas/src/secure-store.ts b/packages/dapp/waas/src/secure-store.ts similarity index 100% rename from packages/waas/src/secure-store.ts rename to packages/dapp/waas/src/secure-store.ts diff --git a/packages/waas/src/session/index.ts b/packages/dapp/waas/src/session/index.ts similarity index 100% rename from packages/waas/src/session/index.ts rename to packages/dapp/waas/src/session/index.ts diff --git a/packages/waas/src/session/keyTypes.ts b/packages/dapp/waas/src/session/keyTypes.ts similarity index 100% rename from packages/waas/src/session/keyTypes.ts rename to packages/dapp/waas/src/session/keyTypes.ts diff --git a/packages/waas/src/session/secp256k1.ts b/packages/dapp/waas/src/session/secp256k1.ts similarity index 100% rename from packages/waas/src/session/secp256k1.ts rename to packages/dapp/waas/src/session/secp256k1.ts diff --git a/packages/waas/src/session/secp256r1.ts b/packages/dapp/waas/src/session/secp256r1.ts similarity index 100% rename from packages/waas/src/session/secp256r1.ts rename to packages/dapp/waas/src/session/secp256r1.ts diff --git a/packages/waas/src/store.ts b/packages/dapp/waas/src/store.ts similarity index 100% rename from packages/waas/src/store.ts rename to packages/dapp/waas/src/store.ts diff --git a/packages/waas/src/subtle-crypto.ts b/packages/dapp/waas/src/subtle-crypto.ts similarity index 100% rename from packages/waas/src/subtle-crypto.ts rename to packages/dapp/waas/src/subtle-crypto.ts diff --git a/packages/waas/tests/intents.spec.ts b/packages/dapp/waas/tests/intents.spec.ts similarity index 100% rename from packages/waas/tests/intents.spec.ts rename to packages/dapp/waas/tests/intents.spec.ts diff --git a/packages/tests/src/networks.ts b/packages/tests/src/networks.ts index b23912279..131e14c5b 100644 --- a/packages/tests/src/networks.ts +++ b/packages/tests/src/networks.ts @@ -1,4 +1,4 @@ -import { ChainId, NetworkConfig, NetworkMetadata } from '../../network/src' +import { ChainId, NetworkConfig, NetworkMetadata } from '../../common/network/src' export enum HardhatChainId { HARDHAT = 31337, diff --git a/packages/abi/CHANGELOG.md b/packages/wallet/abi/CHANGELOG.md similarity index 100% rename from packages/abi/CHANGELOG.md rename to packages/wallet/abi/CHANGELOG.md diff --git a/packages/abi/README.md b/packages/wallet/abi/README.md similarity index 100% rename from packages/abi/README.md rename to packages/wallet/abi/README.md diff --git a/packages/abi/package.json b/packages/wallet/abi/package.json similarity index 100% rename from packages/abi/package.json rename to packages/wallet/abi/package.json diff --git a/packages/abi/src/index.ts b/packages/wallet/abi/src/index.ts similarity index 100% rename from packages/abi/src/index.ts rename to packages/wallet/abi/src/index.ts diff --git a/packages/abi/src/tokens/erc1155.ts b/packages/wallet/abi/src/tokens/erc1155.ts similarity index 100% rename from packages/abi/src/tokens/erc1155.ts rename to packages/wallet/abi/src/tokens/erc1155.ts diff --git a/packages/abi/src/tokens/erc20.ts b/packages/wallet/abi/src/tokens/erc20.ts similarity index 100% rename from packages/abi/src/tokens/erc20.ts rename to packages/wallet/abi/src/tokens/erc20.ts diff --git a/packages/abi/src/tokens/erc721.ts b/packages/wallet/abi/src/tokens/erc721.ts similarity index 100% rename from packages/abi/src/tokens/erc721.ts rename to packages/wallet/abi/src/tokens/erc721.ts diff --git a/packages/abi/src/wallet/erc1271.ts b/packages/wallet/abi/src/wallet/erc1271.ts similarity index 100% rename from packages/abi/src/wallet/erc1271.ts rename to packages/wallet/abi/src/wallet/erc1271.ts diff --git a/packages/abi/src/wallet/erc5719.ts b/packages/wallet/abi/src/wallet/erc5719.ts similarity index 100% rename from packages/abi/src/wallet/erc5719.ts rename to packages/wallet/abi/src/wallet/erc5719.ts diff --git a/packages/abi/src/wallet/erc6492.ts b/packages/wallet/abi/src/wallet/erc6492.ts similarity index 100% rename from packages/abi/src/wallet/erc6492.ts rename to packages/wallet/abi/src/wallet/erc6492.ts diff --git a/packages/abi/src/wallet/factory.ts b/packages/wallet/abi/src/wallet/factory.ts similarity index 100% rename from packages/abi/src/wallet/factory.ts rename to packages/wallet/abi/src/wallet/factory.ts diff --git a/packages/abi/src/wallet/index.ts b/packages/wallet/abi/src/wallet/index.ts similarity index 100% rename from packages/abi/src/wallet/index.ts rename to packages/wallet/abi/src/wallet/index.ts diff --git a/packages/abi/src/wallet/libs/requireFreshSigners.ts b/packages/wallet/abi/src/wallet/libs/requireFreshSigners.ts similarity index 100% rename from packages/abi/src/wallet/libs/requireFreshSigners.ts rename to packages/wallet/abi/src/wallet/libs/requireFreshSigners.ts diff --git a/packages/abi/src/wallet/mainModule.ts b/packages/wallet/abi/src/wallet/mainModule.ts similarity index 100% rename from packages/abi/src/wallet/mainModule.ts rename to packages/wallet/abi/src/wallet/mainModule.ts diff --git a/packages/abi/src/wallet/mainModuleUpgradable.ts b/packages/wallet/abi/src/wallet/mainModuleUpgradable.ts similarity index 100% rename from packages/abi/src/wallet/mainModuleUpgradable.ts rename to packages/wallet/abi/src/wallet/mainModuleUpgradable.ts diff --git a/packages/abi/src/wallet/sequenceUtils.ts b/packages/wallet/abi/src/wallet/sequenceUtils.ts similarity index 100% rename from packages/abi/src/wallet/sequenceUtils.ts rename to packages/wallet/abi/src/wallet/sequenceUtils.ts diff --git a/packages/account/CHANGELOG.md b/packages/wallet/account/CHANGELOG.md similarity index 100% rename from packages/account/CHANGELOG.md rename to packages/wallet/account/CHANGELOG.md diff --git a/packages/account/hardhat.config.js b/packages/wallet/account/hardhat.config.js similarity index 100% rename from packages/account/hardhat.config.js rename to packages/wallet/account/hardhat.config.js diff --git a/packages/account/hardhat2.config.js b/packages/wallet/account/hardhat2.config.js similarity index 100% rename from packages/account/hardhat2.config.js rename to packages/wallet/account/hardhat2.config.js diff --git a/packages/account/package.json b/packages/wallet/account/package.json similarity index 92% rename from packages/account/package.json rename to packages/wallet/account/package.json index 6ec042c07..4c4ec36fe 100644 --- a/packages/account/package.json +++ b/packages/wallet/account/package.json @@ -11,7 +11,7 @@ "scripts": { "test": "pnpm test:concurrently 'pnpm test:run'", "test:run": "pnpm test:file tests/**/*.spec.ts", - "test:file": "TS_NODE_PROJECT=../../tsconfig.test.json mocha -r ts-node/register --timeout 120000", + "test:file": "TS_NODE_PROJECT=../../../tsconfig.test.json mocha -r ts-node/register --timeout 120000", "test:concurrently": "concurrently -k --success first 'pnpm start:hardhat2 > /dev/null'", "start:hardhat2": "hardhat node --hostname 0.0.0.0 --port 7048 --config ./hardhat2.config.js", "test:coverage": "nyc pnpm test" diff --git a/packages/account/src/account.ts b/packages/wallet/account/src/account.ts similarity index 100% rename from packages/account/src/account.ts rename to packages/wallet/account/src/account.ts diff --git a/packages/account/src/index.ts b/packages/wallet/account/src/index.ts similarity index 100% rename from packages/account/src/index.ts rename to packages/wallet/account/src/index.ts diff --git a/packages/account/src/orchestrator/wrapper.ts b/packages/wallet/account/src/orchestrator/wrapper.ts similarity index 100% rename from packages/account/src/orchestrator/wrapper.ts rename to packages/wallet/account/src/orchestrator/wrapper.ts diff --git a/packages/account/src/signer.ts b/packages/wallet/account/src/signer.ts similarity index 100% rename from packages/account/src/signer.ts rename to packages/wallet/account/src/signer.ts diff --git a/packages/account/tests/account.spec.ts b/packages/wallet/account/tests/account.spec.ts similarity index 100% rename from packages/account/tests/account.spec.ts rename to packages/wallet/account/tests/account.spec.ts diff --git a/packages/account/tests/signer.spec.ts b/packages/wallet/account/tests/signer.spec.ts similarity index 100% rename from packages/account/tests/signer.spec.ts rename to packages/wallet/account/tests/signer.spec.ts diff --git a/packages/auth/CHANGELOG.md b/packages/wallet/auth/CHANGELOG.md similarity index 100% rename from packages/auth/CHANGELOG.md rename to packages/wallet/auth/CHANGELOG.md diff --git a/packages/auth/README.md b/packages/wallet/auth/README.md similarity index 100% rename from packages/auth/README.md rename to packages/wallet/auth/README.md diff --git a/packages/auth/hardhat.config.js b/packages/wallet/auth/hardhat.config.js similarity index 100% rename from packages/auth/hardhat.config.js rename to packages/wallet/auth/hardhat.config.js diff --git a/packages/auth/package.json b/packages/wallet/auth/package.json similarity index 100% rename from packages/auth/package.json rename to packages/wallet/auth/package.json diff --git a/packages/auth/src/authorization.ts b/packages/wallet/auth/src/authorization.ts similarity index 100% rename from packages/auth/src/authorization.ts rename to packages/wallet/auth/src/authorization.ts diff --git a/packages/auth/src/index.ts b/packages/wallet/auth/src/index.ts similarity index 100% rename from packages/auth/src/index.ts rename to packages/wallet/auth/src/index.ts diff --git a/packages/auth/src/proof.ts b/packages/wallet/auth/src/proof.ts similarity index 100% rename from packages/auth/src/proof.ts rename to packages/wallet/auth/src/proof.ts diff --git a/packages/auth/src/services.ts b/packages/wallet/auth/src/services.ts similarity index 100% rename from packages/auth/src/services.ts rename to packages/wallet/auth/src/services.ts diff --git a/packages/auth/src/session.ts b/packages/wallet/auth/src/session.ts similarity index 100% rename from packages/auth/src/session.ts rename to packages/wallet/auth/src/session.ts diff --git a/packages/auth/tests/session.spec.ts b/packages/wallet/auth/tests/session.spec.ts similarity index 100% rename from packages/auth/tests/session.spec.ts rename to packages/wallet/auth/tests/session.spec.ts diff --git a/packages/auth/tests/utils/index.ts b/packages/wallet/auth/tests/utils/index.ts similarity index 100% rename from packages/auth/tests/utils/index.ts rename to packages/wallet/auth/tests/utils/index.ts diff --git a/packages/core/CHANGELOG.md b/packages/wallet/core/CHANGELOG.md similarity index 100% rename from packages/core/CHANGELOG.md rename to packages/wallet/core/CHANGELOG.md diff --git a/packages/core/package.json b/packages/wallet/core/package.json similarity index 88% rename from packages/core/package.json rename to packages/wallet/core/package.json index 5bc7f3087..3896f5126 100644 --- a/packages/core/package.json +++ b/packages/wallet/core/package.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "scripts": { "test": "pnpm test:file tests/**/*.spec.ts", - "test:file": "TS_NODE_PROJECT=../../tsconfig.test.json mocha -r ts-node/register --timeout 30000", + "test:file": "TS_NODE_PROJECT=../../../tsconfig.test.json mocha -r ts-node/register --timeout 30000", "test:coverage": "nyc pnpm test" }, "peerDependencies": { diff --git a/packages/core/src/commons/config.ts b/packages/wallet/core/src/commons/config.ts similarity index 100% rename from packages/core/src/commons/config.ts rename to packages/wallet/core/src/commons/config.ts diff --git a/packages/core/src/commons/context.ts b/packages/wallet/core/src/commons/context.ts similarity index 100% rename from packages/core/src/commons/context.ts rename to packages/wallet/core/src/commons/context.ts diff --git a/packages/core/src/commons/index.ts b/packages/wallet/core/src/commons/index.ts similarity index 100% rename from packages/core/src/commons/index.ts rename to packages/wallet/core/src/commons/index.ts diff --git a/packages/core/src/commons/orchestrator.ts b/packages/wallet/core/src/commons/orchestrator.ts similarity index 100% rename from packages/core/src/commons/orchestrator.ts rename to packages/wallet/core/src/commons/orchestrator.ts diff --git a/packages/core/src/commons/reader.ts b/packages/wallet/core/src/commons/reader.ts similarity index 100% rename from packages/core/src/commons/reader.ts rename to packages/wallet/core/src/commons/reader.ts diff --git a/packages/core/src/commons/signature.ts b/packages/wallet/core/src/commons/signature.ts similarity index 100% rename from packages/core/src/commons/signature.ts rename to packages/wallet/core/src/commons/signature.ts diff --git a/packages/core/src/commons/signer.ts b/packages/wallet/core/src/commons/signer.ts similarity index 100% rename from packages/core/src/commons/signer.ts rename to packages/wallet/core/src/commons/signer.ts diff --git a/packages/core/src/commons/transaction.ts b/packages/wallet/core/src/commons/transaction.ts similarity index 100% rename from packages/core/src/commons/transaction.ts rename to packages/wallet/core/src/commons/transaction.ts diff --git a/packages/core/src/commons/validateEIP1271.ts b/packages/wallet/core/src/commons/validateEIP1271.ts similarity index 100% rename from packages/core/src/commons/validateEIP1271.ts rename to packages/wallet/core/src/commons/validateEIP1271.ts diff --git a/packages/core/src/commons/validateEIP6492.ts b/packages/wallet/core/src/commons/validateEIP6492.ts similarity index 100% rename from packages/core/src/commons/validateEIP6492.ts rename to packages/wallet/core/src/commons/validateEIP6492.ts diff --git a/packages/core/src/index.ts b/packages/wallet/core/src/index.ts similarity index 100% rename from packages/core/src/index.ts rename to packages/wallet/core/src/index.ts diff --git a/packages/core/src/universal/index.ts b/packages/wallet/core/src/universal/index.ts similarity index 100% rename from packages/core/src/universal/index.ts rename to packages/wallet/core/src/universal/index.ts diff --git a/packages/core/src/v1/config.ts b/packages/wallet/core/src/v1/config.ts similarity index 100% rename from packages/core/src/v1/config.ts rename to packages/wallet/core/src/v1/config.ts diff --git a/packages/core/src/v1/context.ts b/packages/wallet/core/src/v1/context.ts similarity index 100% rename from packages/core/src/v1/context.ts rename to packages/wallet/core/src/v1/context.ts diff --git a/packages/core/src/v1/index.ts b/packages/wallet/core/src/v1/index.ts similarity index 100% rename from packages/core/src/v1/index.ts rename to packages/wallet/core/src/v1/index.ts diff --git a/packages/core/src/v1/signature.ts b/packages/wallet/core/src/v1/signature.ts similarity index 100% rename from packages/core/src/v1/signature.ts rename to packages/wallet/core/src/v1/signature.ts diff --git a/packages/core/src/v2/chained.ts b/packages/wallet/core/src/v2/chained.ts similarity index 100% rename from packages/core/src/v2/chained.ts rename to packages/wallet/core/src/v2/chained.ts diff --git a/packages/core/src/v2/config.ts b/packages/wallet/core/src/v2/config.ts similarity index 100% rename from packages/core/src/v2/config.ts rename to packages/wallet/core/src/v2/config.ts diff --git a/packages/core/src/v2/context.ts b/packages/wallet/core/src/v2/context.ts similarity index 100% rename from packages/core/src/v2/context.ts rename to packages/wallet/core/src/v2/context.ts diff --git a/packages/core/src/v2/index.ts b/packages/wallet/core/src/v2/index.ts similarity index 100% rename from packages/core/src/v2/index.ts rename to packages/wallet/core/src/v2/index.ts diff --git a/packages/core/src/v2/signature.ts b/packages/wallet/core/src/v2/signature.ts similarity index 100% rename from packages/core/src/v2/signature.ts rename to packages/wallet/core/src/v2/signature.ts diff --git a/packages/core/src/version.ts b/packages/wallet/core/src/version.ts similarity index 100% rename from packages/core/src/version.ts rename to packages/wallet/core/src/version.ts diff --git a/packages/core/tests/v2/config.spec.ts b/packages/wallet/core/tests/v2/config.spec.ts similarity index 100% rename from packages/core/tests/v2/config.spec.ts rename to packages/wallet/core/tests/v2/config.spec.ts diff --git a/packages/core/tests/v2/signature.spec.ts b/packages/wallet/core/tests/v2/signature.spec.ts similarity index 100% rename from packages/core/tests/v2/signature.spec.ts rename to packages/wallet/core/tests/v2/signature.spec.ts diff --git a/packages/guard/CHANGELOG.md b/packages/wallet/guard/CHANGELOG.md similarity index 100% rename from packages/guard/CHANGELOG.md rename to packages/wallet/guard/CHANGELOG.md diff --git a/packages/guard/README.md b/packages/wallet/guard/README.md similarity index 100% rename from packages/guard/README.md rename to packages/wallet/guard/README.md diff --git a/packages/guard/package.json b/packages/wallet/guard/package.json similarity index 100% rename from packages/guard/package.json rename to packages/wallet/guard/package.json diff --git a/packages/guard/src/guard.gen.ts b/packages/wallet/guard/src/guard.gen.ts similarity index 100% rename from packages/guard/src/guard.gen.ts rename to packages/wallet/guard/src/guard.gen.ts diff --git a/packages/guard/src/index.ts b/packages/wallet/guard/src/index.ts similarity index 100% rename from packages/guard/src/index.ts rename to packages/wallet/guard/src/index.ts diff --git a/packages/guard/src/signer.ts b/packages/wallet/guard/src/signer.ts similarity index 100% rename from packages/guard/src/signer.ts rename to packages/wallet/guard/src/signer.ts diff --git a/packages/migration/CHANGELOG.md b/packages/wallet/migration/CHANGELOG.md similarity index 100% rename from packages/migration/CHANGELOG.md rename to packages/wallet/migration/CHANGELOG.md diff --git a/packages/migration/package.json b/packages/wallet/migration/package.json similarity index 100% rename from packages/migration/package.json rename to packages/wallet/migration/package.json diff --git a/packages/migration/src/defaults.ts b/packages/wallet/migration/src/defaults.ts similarity index 100% rename from packages/migration/src/defaults.ts rename to packages/wallet/migration/src/defaults.ts diff --git a/packages/migration/src/index.ts b/packages/wallet/migration/src/index.ts similarity index 100% rename from packages/migration/src/index.ts rename to packages/wallet/migration/src/index.ts diff --git a/packages/migration/src/migrations/index.ts b/packages/wallet/migration/src/migrations/index.ts similarity index 100% rename from packages/migration/src/migrations/index.ts rename to packages/wallet/migration/src/migrations/index.ts diff --git a/packages/migration/src/migrations/migration_01_02.ts b/packages/wallet/migration/src/migrations/migration_01_02.ts similarity index 100% rename from packages/migration/src/migrations/migration_01_02.ts rename to packages/wallet/migration/src/migrations/migration_01_02.ts diff --git a/packages/migration/src/migrator.ts b/packages/wallet/migration/src/migrator.ts similarity index 100% rename from packages/migration/src/migrator.ts rename to packages/wallet/migration/src/migrator.ts diff --git a/packages/migration/src/version.ts b/packages/wallet/migration/src/version.ts similarity index 100% rename from packages/migration/src/version.ts rename to packages/wallet/migration/src/version.ts diff --git a/packages/react-native/CHANGELOG.md b/packages/wallet/react-native/CHANGELOG.md similarity index 100% rename from packages/react-native/CHANGELOG.md rename to packages/wallet/react-native/CHANGELOG.md diff --git a/packages/react-native/package.json b/packages/wallet/react-native/package.json similarity index 100% rename from packages/react-native/package.json rename to packages/wallet/react-native/package.json diff --git a/packages/react-native/src/index.ts b/packages/wallet/react-native/src/index.ts similarity index 100% rename from packages/react-native/src/index.ts rename to packages/wallet/react-native/src/index.ts diff --git a/packages/react-native/src/keychain-store.ts b/packages/wallet/react-native/src/keychain-store.ts similarity index 100% rename from packages/react-native/src/keychain-store.ts rename to packages/wallet/react-native/src/keychain-store.ts diff --git a/packages/relayer/CHANGELOG.md b/packages/wallet/relayer/CHANGELOG.md similarity index 100% rename from packages/relayer/CHANGELOG.md rename to packages/wallet/relayer/CHANGELOG.md diff --git a/packages/relayer/README.md b/packages/wallet/relayer/README.md similarity index 100% rename from packages/relayer/README.md rename to packages/wallet/relayer/README.md diff --git a/packages/relayer/hardhat.config.js b/packages/wallet/relayer/hardhat.config.js similarity index 100% rename from packages/relayer/hardhat.config.js rename to packages/wallet/relayer/hardhat.config.js diff --git a/packages/relayer/package.json b/packages/wallet/relayer/package.json similarity index 100% rename from packages/relayer/package.json rename to packages/wallet/relayer/package.json diff --git a/packages/relayer/src/index.ts b/packages/wallet/relayer/src/index.ts similarity index 100% rename from packages/relayer/src/index.ts rename to packages/wallet/relayer/src/index.ts diff --git a/packages/relayer/src/local-relayer.ts b/packages/wallet/relayer/src/local-relayer.ts similarity index 100% rename from packages/relayer/src/local-relayer.ts rename to packages/wallet/relayer/src/local-relayer.ts diff --git a/packages/relayer/src/provider-relayer.ts b/packages/wallet/relayer/src/provider-relayer.ts similarity index 100% rename from packages/relayer/src/provider-relayer.ts rename to packages/wallet/relayer/src/provider-relayer.ts diff --git a/packages/relayer/src/rpc-relayer/index.ts b/packages/wallet/relayer/src/rpc-relayer/index.ts similarity index 100% rename from packages/relayer/src/rpc-relayer/index.ts rename to packages/wallet/relayer/src/rpc-relayer/index.ts diff --git a/packages/relayer/src/rpc-relayer/relayer.gen.ts b/packages/wallet/relayer/src/rpc-relayer/relayer.gen.ts similarity index 100% rename from packages/relayer/src/rpc-relayer/relayer.gen.ts rename to packages/wallet/relayer/src/rpc-relayer/relayer.gen.ts diff --git a/packages/relayer/tests/provider-relayer.spec.ts b/packages/wallet/relayer/tests/provider-relayer.spec.ts similarity index 100% rename from packages/relayer/tests/provider-relayer.spec.ts rename to packages/wallet/relayer/tests/provider-relayer.spec.ts diff --git a/packages/sessions/CHANGELOG.md b/packages/wallet/sessions/CHANGELOG.md similarity index 100% rename from packages/sessions/CHANGELOG.md rename to packages/wallet/sessions/CHANGELOG.md diff --git a/packages/sessions/hardhat.config.js b/packages/wallet/sessions/hardhat.config.js similarity index 100% rename from packages/sessions/hardhat.config.js rename to packages/wallet/sessions/hardhat.config.js diff --git a/packages/sessions/package.json b/packages/wallet/sessions/package.json similarity index 90% rename from packages/sessions/package.json rename to packages/wallet/sessions/package.json index 286cbd26b..63a48b557 100644 --- a/packages/sessions/package.json +++ b/packages/wallet/sessions/package.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "scripts": { "test": "pnpm test:file tests/**/*.spec.ts", - "test:file": "TS_NODE_PROJECT=../../tsconfig.test.json mocha -r ts-node/register --timeout 60000", + "test:file": "TS_NODE_PROJECT=../../../tsconfig.test.json mocha -r ts-node/register --timeout 60000", "test:coverage": "nyc pnpm test" }, "dependencies": { diff --git a/packages/sessions/src/index.ts b/packages/wallet/sessions/src/index.ts similarity index 100% rename from packages/sessions/src/index.ts rename to packages/wallet/sessions/src/index.ts diff --git a/packages/sessions/src/tracker.ts b/packages/wallet/sessions/src/tracker.ts similarity index 100% rename from packages/sessions/src/tracker.ts rename to packages/wallet/sessions/src/tracker.ts diff --git a/packages/sessions/src/trackers/cached.ts b/packages/wallet/sessions/src/trackers/cached.ts similarity index 100% rename from packages/sessions/src/trackers/cached.ts rename to packages/wallet/sessions/src/trackers/cached.ts diff --git a/packages/sessions/src/trackers/debug.ts b/packages/wallet/sessions/src/trackers/debug.ts similarity index 100% rename from packages/sessions/src/trackers/debug.ts rename to packages/wallet/sessions/src/trackers/debug.ts diff --git a/packages/sessions/src/trackers/deduped.ts b/packages/wallet/sessions/src/trackers/deduped.ts similarity index 100% rename from packages/sessions/src/trackers/deduped.ts rename to packages/wallet/sessions/src/trackers/deduped.ts diff --git a/packages/sessions/src/trackers/index.ts b/packages/wallet/sessions/src/trackers/index.ts similarity index 100% rename from packages/sessions/src/trackers/index.ts rename to packages/wallet/sessions/src/trackers/index.ts diff --git a/packages/sessions/src/trackers/local.ts b/packages/wallet/sessions/src/trackers/local.ts similarity index 100% rename from packages/sessions/src/trackers/local.ts rename to packages/wallet/sessions/src/trackers/local.ts diff --git a/packages/sessions/src/trackers/multiple.ts b/packages/wallet/sessions/src/trackers/multiple.ts similarity index 100% rename from packages/sessions/src/trackers/multiple.ts rename to packages/wallet/sessions/src/trackers/multiple.ts diff --git a/packages/sessions/src/trackers/promise-cache.ts b/packages/wallet/sessions/src/trackers/promise-cache.ts similarity index 100% rename from packages/sessions/src/trackers/promise-cache.ts rename to packages/wallet/sessions/src/trackers/promise-cache.ts diff --git a/packages/sessions/src/trackers/remote/index.ts b/packages/wallet/sessions/src/trackers/remote/index.ts similarity index 100% rename from packages/sessions/src/trackers/remote/index.ts rename to packages/wallet/sessions/src/trackers/remote/index.ts diff --git a/packages/sessions/src/trackers/remote/sessions.gen.ts b/packages/wallet/sessions/src/trackers/remote/sessions.gen.ts similarity index 100% rename from packages/sessions/src/trackers/remote/sessions.gen.ts rename to packages/wallet/sessions/src/trackers/remote/sessions.gen.ts diff --git a/packages/sessions/src/trackers/stores/index.ts b/packages/wallet/sessions/src/trackers/stores/index.ts similarity index 100% rename from packages/sessions/src/trackers/stores/index.ts rename to packages/wallet/sessions/src/trackers/stores/index.ts diff --git a/packages/sessions/src/trackers/stores/indexedDBStore.ts b/packages/wallet/sessions/src/trackers/stores/indexedDBStore.ts similarity index 100% rename from packages/sessions/src/trackers/stores/indexedDBStore.ts rename to packages/wallet/sessions/src/trackers/stores/indexedDBStore.ts diff --git a/packages/sessions/src/trackers/stores/memoryStore.ts b/packages/wallet/sessions/src/trackers/stores/memoryStore.ts similarity index 100% rename from packages/sessions/src/trackers/stores/memoryStore.ts rename to packages/wallet/sessions/src/trackers/stores/memoryStore.ts diff --git a/packages/sessions/tests/local.spec.ts b/packages/wallet/sessions/tests/local.spec.ts similarity index 100% rename from packages/sessions/tests/local.spec.ts rename to packages/wallet/sessions/tests/local.spec.ts diff --git a/packages/signhub/CHANGELOG.md b/packages/wallet/signhub/CHANGELOG.md similarity index 100% rename from packages/signhub/CHANGELOG.md rename to packages/wallet/signhub/CHANGELOG.md diff --git a/packages/signhub/package.json b/packages/wallet/signhub/package.json similarity index 88% rename from packages/signhub/package.json rename to packages/wallet/signhub/package.json index 0e0b5d71f..a3daefa03 100644 --- a/packages/signhub/package.json +++ b/packages/wallet/signhub/package.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "scripts": { "test": "pnpm test:file tests/**/*.spec.ts", - "test:file": "TS_NODE_PROJECT=../../tsconfig.test.json mocha -r ts-node/register --timeout 30000", + "test:file": "TS_NODE_PROJECT=../../../tsconfig.test.json mocha -r ts-node/register --timeout 30000", "test:coverage": "nyc pnpm test" }, "dependencies": { diff --git a/packages/signhub/src/index.ts b/packages/wallet/signhub/src/index.ts similarity index 100% rename from packages/signhub/src/index.ts rename to packages/wallet/signhub/src/index.ts diff --git a/packages/signhub/src/orchestrator.ts b/packages/wallet/signhub/src/orchestrator.ts similarity index 100% rename from packages/signhub/src/orchestrator.ts rename to packages/wallet/signhub/src/orchestrator.ts diff --git a/packages/signhub/src/signers/index.ts b/packages/wallet/signhub/src/signers/index.ts similarity index 100% rename from packages/signhub/src/signers/index.ts rename to packages/wallet/signhub/src/signers/index.ts diff --git a/packages/signhub/src/signers/signer.ts b/packages/wallet/signhub/src/signers/signer.ts similarity index 100% rename from packages/signhub/src/signers/signer.ts rename to packages/wallet/signhub/src/signers/signer.ts diff --git a/packages/signhub/src/signers/wrapper.ts b/packages/wallet/signhub/src/signers/wrapper.ts similarity index 100% rename from packages/signhub/src/signers/wrapper.ts rename to packages/wallet/signhub/src/signers/wrapper.ts diff --git a/packages/signhub/tests/orchestrator.spec.ts b/packages/wallet/signhub/tests/orchestrator.spec.ts similarity index 100% rename from packages/signhub/tests/orchestrator.spec.ts rename to packages/wallet/signhub/tests/orchestrator.spec.ts diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/wallet/CHANGELOG.md similarity index 100% rename from packages/wallet/CHANGELOG.md rename to packages/wallet/wallet/CHANGELOG.md diff --git a/packages/wallet/README.md b/packages/wallet/wallet/README.md similarity index 100% rename from packages/wallet/README.md rename to packages/wallet/wallet/README.md diff --git a/packages/wallet/hardhat.config.js b/packages/wallet/wallet/hardhat.config.js similarity index 100% rename from packages/wallet/hardhat.config.js rename to packages/wallet/wallet/hardhat.config.js diff --git a/packages/wallet/hardhat2.config.js b/packages/wallet/wallet/hardhat2.config.js similarity index 100% rename from packages/wallet/hardhat2.config.js rename to packages/wallet/wallet/hardhat2.config.js diff --git a/packages/wallet/package.json b/packages/wallet/wallet/package.json similarity index 100% rename from packages/wallet/package.json rename to packages/wallet/wallet/package.json diff --git a/packages/wallet/src/index.ts b/packages/wallet/wallet/src/index.ts similarity index 100% rename from packages/wallet/src/index.ts rename to packages/wallet/wallet/src/index.ts diff --git a/packages/wallet/src/orchestrator/wrapper.ts b/packages/wallet/wallet/src/orchestrator/wrapper.ts similarity index 100% rename from packages/wallet/src/orchestrator/wrapper.ts rename to packages/wallet/wallet/src/orchestrator/wrapper.ts diff --git a/packages/wallet/src/signer.ts b/packages/wallet/wallet/src/signer.ts similarity index 100% rename from packages/wallet/src/signer.ts rename to packages/wallet/wallet/src/signer.ts diff --git a/packages/wallet/src/utils.ts b/packages/wallet/wallet/src/utils.ts similarity index 100% rename from packages/wallet/src/utils.ts rename to packages/wallet/wallet/src/utils.ts diff --git a/packages/wallet/src/wallet.ts b/packages/wallet/wallet/src/wallet.ts similarity index 100% rename from packages/wallet/src/wallet.ts rename to packages/wallet/wallet/src/wallet.ts diff --git a/packages/wallet/tests/utils/deploy-wallet-context.ts b/packages/wallet/wallet/tests/utils/deploy-wallet-context.ts similarity index 100% rename from packages/wallet/tests/utils/deploy-wallet-context.ts rename to packages/wallet/wallet/tests/utils/deploy-wallet-context.ts diff --git a/packages/wallet/tests/utils/get-contract.ts b/packages/wallet/wallet/tests/utils/get-contract.ts similarity index 100% rename from packages/wallet/tests/utils/get-contract.ts rename to packages/wallet/wallet/tests/utils/get-contract.ts diff --git a/packages/wallet/tests/utils/index.ts b/packages/wallet/wallet/tests/utils/index.ts similarity index 100% rename from packages/wallet/tests/utils/index.ts rename to packages/wallet/wallet/tests/utils/index.ts diff --git a/packages/wallet/tests/wallet.spec.ts b/packages/wallet/wallet/tests/wallet.spec.ts similarity index 100% rename from packages/wallet/tests/wallet.spec.ts rename to packages/wallet/wallet/tests/wallet.spec.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4142a28da..b8799d1e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,40 +17,40 @@ importers: devDependencies: '@0xsequence/abi': specifier: workspace:* - version: link:packages/abi + version: link:packages/wallet/abi '@0xsequence/api': specifier: workspace:* - version: link:packages/api + version: link:packages/apis/api '@0xsequence/auth': specifier: workspace:* - version: link:packages/auth + version: link:packages/wallet/auth '@0xsequence/deployer': specifier: workspace:* - version: link:packages/deployer + version: link:packages/common/deployer '@0xsequence/guard': specifier: workspace:* - version: link:packages/guard + version: link:packages/wallet/guard '@0xsequence/indexer': specifier: workspace:* - version: link:packages/indexer + version: link:packages/apis/indexer '@0xsequence/metadata': specifier: workspace:* - version: link:packages/metadata + version: link:packages/apis/metadata '@0xsequence/network': specifier: workspace:* - version: link:packages/network + version: link:packages/common/network '@0xsequence/provider': specifier: workspace:* - version: link:packages/provider + version: link:packages/dapp/provider '@0xsequence/relayer': specifier: workspace:* - version: link:packages/relayer + version: link:packages/wallet/relayer '@0xsequence/utils': specifier: workspace:* - version: link:packages/utils + version: link:packages/common/utils '@0xsequence/wallet': specifier: workspace:* - version: link:packages/wallet + version: link:packages/wallet/wallet '@babel/core': specifier: ^7.21.4 version: 7.23.9 @@ -164,52 +164,52 @@ importers: dependencies: '@0xsequence/abi': specifier: workspace:* - version: link:../abi + version: link:../wallet/abi '@0xsequence/account': specifier: workspace:* - version: link:../account + version: link:../wallet/account '@0xsequence/api': specifier: workspace:* - version: link:../api + version: link:../apis/api '@0xsequence/auth': specifier: workspace:* - version: link:../auth + version: link:../wallet/auth '@0xsequence/core': specifier: workspace:* - version: link:../core + version: link:../wallet/core '@0xsequence/guard': specifier: workspace:* - version: link:../guard + version: link:../wallet/guard '@0xsequence/indexer': specifier: workspace:* - version: link:../indexer + version: link:../apis/indexer '@0xsequence/metadata': specifier: workspace:* - version: link:../metadata + version: link:../apis/metadata '@0xsequence/migration': specifier: workspace:* - version: link:../migration + version: link:../wallet/migration '@0xsequence/network': specifier: workspace:* - version: link:../network + version: link:../common/network '@0xsequence/provider': specifier: workspace:* - version: link:../provider + version: link:../dapp/provider '@0xsequence/relayer': specifier: workspace:* - version: link:../relayer + version: link:../wallet/relayer '@0xsequence/sessions': specifier: workspace:* - version: link:../sessions + version: link:../wallet/sessions '@0xsequence/signhub': specifier: workspace:* - version: link:../signhub + version: link:../wallet/signhub '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../common/utils '@0xsequence/wallet': specifier: workspace:* - version: link:../wallet + version: link:../wallet/wallet devDependencies: '@0xsequence/tests': specifier: workspace:* @@ -245,9 +245,183 @@ importers: specifier: ^3.11.2 version: 3.11.3(bufferutil@4.0.8)(utf-8-validate@6.0.3)(webpack-cli@4.10.0)(webpack@5.90.3) - packages/abi: {} + packages/apis/api: {} + + packages/apis/indexer: {} + + packages/apis/metadata: {} + + packages/common/deployer: + dependencies: + '@0xsequence/utils': + specifier: workspace:* + version: link:../utils + devDependencies: + dotenv: + specifier: ^16.0.3 + version: 16.4.5 + ethers: + specifier: ^6.13.0 + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + typechain: + specifier: ^8.1.1 + version: 8.3.2(typescript@5.3.3) + + packages/common/network: + dependencies: + '@0xsequence/core': + specifier: workspace:* + version: link:../../wallet/core + '@0xsequence/indexer': + specifier: workspace:* + version: link:../../apis/indexer + '@0xsequence/relayer': + specifier: workspace:* + version: link:../../wallet/relayer + '@0xsequence/utils': + specifier: workspace:* + version: link:../utils + devDependencies: + ethers: + specifier: ^6.13.0 + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + + packages/common/replacer: + dependencies: + '@0xsequence/abi': + specifier: workspace:* + version: link:../../wallet/abi + '@0xsequence/core': + specifier: workspace:* + version: link:../../wallet/core + ethers: + specifier: '>=6' + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + + packages/common/utils: + dependencies: + js-base64: + specifier: ^3.7.2 + version: 3.7.7 + devDependencies: + ethers: + specifier: ^6.13.0 + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + + packages/dapp/provider: + dependencies: + '@0xsequence/abi': + specifier: workspace:* + version: link:../../wallet/abi + '@0xsequence/account': + specifier: workspace:* + version: link:../../wallet/account + '@0xsequence/auth': + specifier: workspace:* + version: link:../../wallet/auth + '@0xsequence/core': + specifier: workspace:* + version: link:../../wallet/core + '@0xsequence/migration': + specifier: workspace:* + version: link:../../wallet/migration + '@0xsequence/network': + specifier: workspace:* + version: link:../../common/network + '@0xsequence/relayer': + specifier: workspace:* + version: link:../../wallet/relayer + '@0xsequence/utils': + specifier: workspace:* + version: link:../../common/utils + '@0xsequence/wallet': + specifier: workspace:* + version: link:../../wallet/wallet + '@databeat/tracker': + specifier: ^0.9.1 + version: 0.9.1 + eventemitter2: + specifier: ^6.4.5 + version: 6.4.9 + webextension-polyfill: + specifier: ^0.10.0 + version: 0.10.0 + devDependencies: + '@types/webextension-polyfill': + specifier: ^0.10.0 + version: 0.10.7 + ethers: + specifier: ^6.13.0 + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + hardhat: + specifier: ^2.20.1 + version: 2.20.1(bufferutil@4.0.8)(ts-node@10.9.2(@types/node@20.11.20)(typescript@5.3.3))(typescript@5.3.3)(utf-8-validate@6.0.3) + + packages/dapp/waas: + dependencies: + '@0xsequence/core': + specifier: workspace:* + version: link:../../wallet/core + '@0xsequence/network': + specifier: workspace:* + version: link:../../common/network + '@0xsequence/utils': + specifier: workspace:* + version: link:../../common/utils + '@aws-sdk/client-cognito-identity-provider': + specifier: ^3.445.0 + version: 3.521.0 + ethers: + specifier: '>=6' + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + idb: + specifier: ^7.1.1 + version: 7.1.1 + json-canonicalize: + specifier: ^1.0.6 + version: 1.0.6 + jwt-decode: + specifier: ^4.0.0 + version: 4.0.0 + devDependencies: + '@types/jwt-decode': + specifier: ^3.1.0 + version: 3.1.0 + fake-indexeddb: + specifier: ^4.0.1 + version: 4.0.2 - packages/account: + packages/dapp/waas-ethers: + dependencies: + '@0xsequence/waas': + specifier: workspace:* + version: link:../waas + ethers: + specifier: '>=6' + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + + packages/tests: + dependencies: + '@0xsequence/core': + specifier: workspace:* + version: link:../wallet/core + '@0xsequence/utils': + specifier: workspace:* + version: link:../common/utils + devDependencies: + '@istanbuljs/nyc-config-typescript': + specifier: ^1.0.1 + version: 1.0.2(nyc@15.1.0) + ethers: + specifier: ^6.13.0 + version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + web3: + specifier: ^1.8.1 + version: 1.10.4(bufferutil@4.0.8)(utf-8-validate@6.0.3) + + packages/wallet/abi: {} + + packages/wallet/account: dependencies: '@0xsequence/abi': specifier: workspace:* @@ -260,7 +434,7 @@ importers: version: link:../migration '@0xsequence/network': specifier: workspace:* - version: link:../network + version: link:../../common/network '@0xsequence/relayer': specifier: workspace:* version: link:../relayer @@ -269,7 +443,7 @@ importers: version: link:../sessions '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils '@0xsequence/wallet': specifier: workspace:* version: link:../wallet @@ -279,7 +453,7 @@ importers: version: link:../signhub '@0xsequence/tests': specifier: workspace:* - version: link:../tests + version: link:../../tests '@istanbuljs/nyc-config-typescript': specifier: ^1.0.2 version: 1.0.2(nyc@15.1.0) @@ -290,9 +464,7 @@ importers: specifier: ^15.1.0 version: 15.1.0 - packages/api: {} - - packages/auth: + packages/wallet/auth: dependencies: '@0xsequence/abi': specifier: workspace:* @@ -302,7 +474,7 @@ importers: version: link:../account '@0xsequence/api': specifier: workspace:* - version: link:../api + version: link:../../apis/api '@0xsequence/core': specifier: workspace:* version: link:../core @@ -311,16 +483,16 @@ importers: version: 1.0.0(ethers@6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3)) '@0xsequence/indexer': specifier: workspace:* - version: link:../indexer + version: link:../../apis/indexer '@0xsequence/metadata': specifier: workspace:* - version: link:../metadata + version: link:../../apis/metadata '@0xsequence/migration': specifier: workspace:* version: link:../migration '@0xsequence/network': specifier: workspace:* - version: link:../network + version: link:../../common/network '@0xsequence/sessions': specifier: workspace:* version: link:../sessions @@ -329,14 +501,14 @@ importers: version: link:../signhub '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils '@0xsequence/wallet': specifier: workspace:* version: link:../wallet devDependencies: '@0xsequence/tests': specifier: workspace:* - version: link:../tests + version: link:../../tests '@0xsequence/wallet-contracts': specifier: ^3.0.1 version: 3.0.1(bufferutil@4.0.8)(typechain@8.3.2(typescript@5.3.3))(typescript@5.3.3)(utf-8-validate@6.0.3) @@ -353,14 +525,14 @@ importers: specifier: ^3.6.0 version: 3.10.1(bufferutil@4.0.8)(utf-8-validate@6.0.3) - packages/core: + packages/wallet/core: dependencies: '@0xsequence/abi': specifier: workspace:* version: link:../abi '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils ethers: specifier: '>=6' version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) @@ -372,23 +544,7 @@ importers: specifier: ^15.1.0 version: 15.1.0 - packages/deployer: - dependencies: - '@0xsequence/utils': - specifier: workspace:* - version: link:../utils - devDependencies: - dotenv: - specifier: ^16.0.3 - version: 16.4.5 - ethers: - specifier: ^6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - typechain: - specifier: ^8.1.1 - version: 8.3.2(typescript@5.3.3) - - packages/guard: + packages/wallet/guard: dependencies: '@0xsequence/account': specifier: workspace:* @@ -401,16 +557,12 @@ importers: version: link:../signhub '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils ethers: specifier: ^6.13.0 version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - packages/indexer: {} - - packages/metadata: {} - - packages/migration: + packages/wallet/migration: dependencies: '@0xsequence/abi': specifier: workspace:* @@ -432,84 +584,16 @@ importers: specifier: ^15.1.0 version: 15.1.0 - packages/network: - dependencies: - '@0xsequence/core': - specifier: workspace:* - version: link:../core - '@0xsequence/indexer': - specifier: workspace:* - version: link:../indexer - '@0xsequence/relayer': - specifier: workspace:* - version: link:../relayer - '@0xsequence/utils': - specifier: workspace:* - version: link:../utils - devDependencies: - ethers: - specifier: ^6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - - packages/provider: - dependencies: - '@0xsequence/abi': - specifier: workspace:* - version: link:../abi - '@0xsequence/account': - specifier: workspace:* - version: link:../account - '@0xsequence/auth': - specifier: workspace:* - version: link:../auth - '@0xsequence/core': - specifier: workspace:* - version: link:../core - '@0xsequence/migration': - specifier: workspace:* - version: link:../migration - '@0xsequence/network': - specifier: workspace:* - version: link:../network - '@0xsequence/relayer': - specifier: workspace:* - version: link:../relayer - '@0xsequence/utils': - specifier: workspace:* - version: link:../utils - '@0xsequence/wallet': - specifier: workspace:* - version: link:../wallet - '@databeat/tracker': - specifier: ^0.9.1 - version: 0.9.1 - eventemitter2: - specifier: ^6.4.5 - version: 6.4.9 - webextension-polyfill: - specifier: ^0.10.0 - version: 0.10.0 - devDependencies: - '@types/webextension-polyfill': - specifier: ^0.10.0 - version: 0.10.7 - ethers: - specifier: ^6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - hardhat: - specifier: ^2.20.1 - version: 2.20.1(bufferutil@4.0.8)(ts-node@10.9.2(@types/node@20.11.20)(typescript@5.3.3))(typescript@5.3.3)(utf-8-validate@6.0.3) - - packages/react-native: + packages/wallet/react-native: dependencies: '@0xsequence/waas': specifier: workspace:* - version: link:../waas + version: link:../../dapp/waas react-native-keychain: specifier: ^8.2.0 version: 8.2.0 - packages/relayer: + packages/wallet/relayer: dependencies: '@0xsequence/abi': specifier: workspace:* @@ -519,14 +603,14 @@ importers: version: link:../core '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils devDependencies: '@0xsequence/signhub': specifier: workspace:* version: link:../signhub '@0xsequence/tests': specifier: workspace:* - version: link:../tests + version: link:../../tests '@0xsequence/wallet-contracts': specifier: ^3.0.1 version: 3.0.1(bufferutil@4.0.8)(typechain@8.3.2(typescript@5.3.3))(typescript@5.3.3)(utf-8-validate@6.0.3) @@ -534,19 +618,7 @@ importers: specifier: ^6.13.0 version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - packages/replacer: - dependencies: - '@0xsequence/abi': - specifier: workspace:* - version: link:../abi - '@0xsequence/core': - specifier: workspace:* - version: link:../core - ethers: - specifier: '>=6' - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - - packages/sessions: + packages/wallet/sessions: dependencies: '@0xsequence/core': specifier: workspace:* @@ -556,7 +628,7 @@ importers: version: link:../migration '@0xsequence/replacer': specifier: workspace:* - version: link:../replacer + version: link:../../common/replacer ethers: specifier: ^6.13.0 version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) @@ -569,7 +641,7 @@ importers: version: link:../signhub '@0xsequence/tests': specifier: workspace:* - version: link:../tests + version: link:../../tests '@istanbuljs/nyc-config-typescript': specifier: ^1.0.2 version: 1.0.2(nyc@15.1.0) @@ -580,7 +652,7 @@ importers: specifier: ^15.1.0 version: 15.1.0 - packages/signhub: + packages/wallet/signhub: dependencies: '@0xsequence/core': specifier: workspace:* @@ -596,79 +668,7 @@ importers: specifier: ^15.1.0 version: 15.1.0 - packages/tests: - dependencies: - '@0xsequence/core': - specifier: workspace:* - version: link:../core - '@0xsequence/utils': - specifier: workspace:* - version: link:../utils - devDependencies: - '@istanbuljs/nyc-config-typescript': - specifier: ^1.0.1 - version: 1.0.2(nyc@15.1.0) - ethers: - specifier: ^6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - web3: - specifier: ^1.8.1 - version: 1.10.4(bufferutil@4.0.8)(utf-8-validate@6.0.3) - - packages/utils: - dependencies: - js-base64: - specifier: ^3.7.2 - version: 3.7.7 - devDependencies: - ethers: - specifier: ^6.13.0 - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - - packages/waas: - dependencies: - '@0xsequence/core': - specifier: workspace:* - version: link:../core - '@0xsequence/network': - specifier: workspace:* - version: link:../network - '@0xsequence/utils': - specifier: workspace:* - version: link:../utils - '@aws-sdk/client-cognito-identity-provider': - specifier: ^3.445.0 - version: 3.521.0 - ethers: - specifier: '>=6' - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - idb: - specifier: ^7.1.1 - version: 7.1.1 - json-canonicalize: - specifier: ^1.0.6 - version: 1.0.6 - jwt-decode: - specifier: ^4.0.0 - version: 4.0.0 - devDependencies: - '@types/jwt-decode': - specifier: ^3.1.0 - version: 3.1.0 - fake-indexeddb: - specifier: ^4.0.1 - version: 4.0.2 - - packages/waas-ethers: - dependencies: - '@0xsequence/waas': - specifier: workspace:* - version: link:../waas - ethers: - specifier: '>=6' - version: 6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) - - packages/wallet: + packages/wallet/wallet: dependencies: '@0xsequence/abi': specifier: workspace:* @@ -678,7 +678,7 @@ importers: version: link:../core '@0xsequence/network': specifier: workspace:* - version: link:../network + version: link:../../common/network '@0xsequence/relayer': specifier: workspace:* version: link:../relayer @@ -687,14 +687,14 @@ importers: version: link:../signhub '@0xsequence/utils': specifier: workspace:* - version: link:../utils + version: link:../../common/utils devDependencies: '@0xsequence/ethauth': specifier: ^1.0.0 version: 1.0.0(ethers@6.13.0(bufferutil@4.0.8)(utf-8-validate@6.0.3)) '@0xsequence/tests': specifier: workspace:* - version: link:../tests + version: link:../../tests '@0xsequence/wallet-contracts': specifier: ^3.0.1 version: 3.0.1(bufferutil@4.0.8)(typechain@8.3.2(typescript@5.3.3))(typescript@5.3.3)(utf-8-validate@6.0.3) @@ -4674,9 +4674,11 @@ packages: glob@7.1.7: resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} + deprecated: Glob versions prior to v9 are no longer supported glob@7.2.0: resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} + deprecated: Glob versions prior to v9 are no longer supported glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} @@ -7027,9 +7029,6 @@ packages: spawn-command@0.0.2: resolution: {integrity: sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==} - spawn-command@0.0.2-1: - resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} - spawn-wrap@2.0.0: resolution: {integrity: sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==} engines: {node: '>=8'} @@ -12114,7 +12113,7 @@ snapshots: lodash: 4.17.21 rxjs: 7.8.1 shell-quote: 1.8.1 - spawn-command: 0.0.2-1 + spawn-command: 0.0.2 supports-color: 8.1.1 tree-kill: 1.2.2 yargs: 17.7.2 @@ -16209,8 +16208,6 @@ snapshots: spawn-command@0.0.2: {} - spawn-command@0.0.2-1: {} - spawn-wrap@2.0.0: dependencies: foreground-child: 2.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 18ec407ef..1e299e729 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,7 @@ packages: - - 'packages/*' + - 'packages/0xsequence' + - 'packages/tests' + - 'packages/wallet/*' + - 'packages/dapp/*' + - 'packages/common/*' + - 'packages/apis/*'