From 05f9602415ea439132ee6d8a801f34123629d608 Mon Sep 17 00:00:00 2001 From: Fuxing Loh <4266087+fuxingloh@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:35:28 +0800 Subject: [PATCH] chore: various cleanup and refactor (#73) - add website - rename `./definitions` to `./chainfile` - various other smaller cleanup and refactor --- .idea/codeStyles/Project.xml | 5 + README.md | 3 +- .../bitcoincore}/LICENSE | 0 .../bitcoincore/mainnet.json | 1 - .../bitcoincore/mainnet.test.ts | 6 +- .../bitcoincore}/package.json | 18 +- .../bitcoincore/regtest.json | 1 - .../bitcoincore/regtest.test.ts | 6 +- .../ganache}/LICENSE | 0 .../ganache/localhost.json | 1 - chainfile/ganache/localhost.test.ts | 25 + .../ganache}/package.json | 18 +- .../eip155-1337 => chainfile/hardhat}/LICENSE | 0 .../hardhat/localhost.json | 1 - chainfile/hardhat/localhost.test.ts | 26 + .../hardhat}/package.json | 18 +- .../eip155-31337 => chainfile/solana}/LICENSE | 0 .../solana}/package.json | 18 +- .../solana}/solana-test-validator.json | 1 - .../solana}/solana-test-validator.test.ts | 2 +- .../tsconfig.json | 3 - definitions/eip155-1337/ganache.test.ts | 34 - definitions/eip155-1337/tsconfig.json | 3 - definitions/eip155-31337/hardhat.test.ts | 34 - definitions/eip155-31337/tsconfig.json | 3 - .../package.json | 31 - .../tsconfig.json | 3 - package.json | 2 + packages/chainfile-agent/package.json | 4 - .../chainfile-agent/routers/agent.test.ts | 2 - packages/chainfile-agent/routers/agent.ts | 3 - .../__snapshots__/synthesizer.test.ts.snap | 5 +- packages/chainfile-docker/commands.ts | 4 +- packages/chainfile-docker/package.json | 4 +- packages/chainfile-docker/synthesizer.test.ts | 2 - packages/chainfile-docker/synthesizer.ts | 3 +- .../chainfile-testcontainers/index.test.ts | 6 +- packages/chainfile-testcontainers/index.ts | 4 +- .../chainfile-testcontainers/package.json | 4 - packages/chainfile/package.json | 2 - packages/chainfile/schema.json | 7 +- packages/chainfile/type.ts | 4 - pnpm-lock.yaml | 3442 +++++++++++++++-- pnpm-workspace.yaml | 3 +- .../tsconfig.json => tsconfig.json | 0 website/.gitignore | 4 + .../LICENSE | 0 website/app/schema.json/route.ts | 5 + website/components/ChainfileLogo.tsx | 19 + website/eslint.config.js | 1 + website/next-env.d.ts | 6 + website/next.config.mjs | 21 + website/package.json | 34 + website/pages/_meta.json | 6 + website/pages/core-concepts/4-step.mdx | 71 + website/pages/core-concepts/_meta.json | 5 + website/pages/core-concepts/schema.mdx | 5 + website/pages/core-concepts/testing.mdx | 5 + website/pages/definitions.mdx | 0 website/pages/definitions/bitcoin-core.mdx | 1 + website/pages/definitions/ganache.mdx | 1 + website/pages/definitions/hardhat.mdx | 1 + website/pages/definitions/solana.mdx | 1 + website/pages/index.mdx | 21 + website/pages/runtime.mdx | 9 + website/pages/runtime/_meta.json | 5 + website/pages/runtime/docker.mdx | 5 + website/pages/runtime/kubernetes.mdx | 5 + website/pages/runtime/testcontainers.mdx | 5 + website/theme.config.tsx | 17 + website/tsconfig.json | 30 + website/turbo.json | 15 + website/vercel.json | 7 + workspace/eslint-config-next/index.js | 49 + workspace/eslint-config-next/package.json | 13 + 75 files changed, 3585 insertions(+), 544 deletions(-) rename {definitions/bip122-000000000019d6689c085ae165831e93 => chainfile/bitcoincore}/LICENSE (100%) rename definitions/bip122-000000000019d6689c085ae165831e93/bitcoind.json => chainfile/bitcoincore/mainnet.json (96%) rename definitions/bip122-000000000019d6689c085ae165831e93/bitcoind.test.ts => chainfile/bitcoincore/mainnet.test.ts (96%) rename {definitions/eip155-1337 => chainfile/bitcoincore}/package.json (54%) rename definitions/bip122-0f9188f13cb7b2c71f2a335e3a4fc328/bitcoind.json => chainfile/bitcoincore/regtest.json (96%) rename definitions/bip122-0f9188f13cb7b2c71f2a335e3a4fc328/bitcoind.test.ts => chainfile/bitcoincore/regtest.test.ts (96%) rename {definitions/bip122-0f9188f13cb7b2c71f2a335e3a4fc328 => chainfile/ganache}/LICENSE (100%) rename definitions/eip155-1337/ganache.json => chainfile/ganache/localhost.json (95%) create mode 100644 chainfile/ganache/localhost.test.ts rename {definitions/eip155-31337 => chainfile/ganache}/package.json (53%) rename {definitions/eip155-1337 => chainfile/hardhat}/LICENSE (100%) rename definitions/eip155-31337/hardhat.json => chainfile/hardhat/localhost.json (95%) create mode 100644 chainfile/hardhat/localhost.test.ts rename {definitions/bip122-0f9188f13cb7b2c71f2a335e3a4fc328 => chainfile/hardhat}/package.json (51%) rename {definitions/eip155-31337 => chainfile/solana}/LICENSE (100%) rename {definitions/bip122-000000000019d6689c085ae165831e93 => chainfile/solana}/package.json (51%) rename {definitions/solana-00000000000000000000000000000000 => chainfile/solana}/solana-test-validator.json (90%) rename {definitions/solana-00000000000000000000000000000000 => chainfile/solana}/solana-test-validator.test.ts (91%) delete mode 100644 definitions/bip122-0f9188f13cb7b2c71f2a335e3a4fc328/tsconfig.json delete mode 100644 definitions/eip155-1337/ganache.test.ts delete mode 100644 definitions/eip155-1337/tsconfig.json delete mode 100644 definitions/eip155-31337/hardhat.test.ts delete mode 100644 definitions/eip155-31337/tsconfig.json delete mode 100644 definitions/solana-00000000000000000000000000000000/package.json delete mode 100644 definitions/solana-00000000000000000000000000000000/tsconfig.json rename definitions/bip122-000000000019d6689c085ae165831e93/tsconfig.json => tsconfig.json (100%) create mode 100644 website/.gitignore rename {definitions/solana-00000000000000000000000000000000 => website}/LICENSE (100%) create mode 100644 website/app/schema.json/route.ts create mode 100644 website/components/ChainfileLogo.tsx create mode 100644 website/eslint.config.js create mode 100644 website/next-env.d.ts create mode 100644 website/next.config.mjs create mode 100644 website/package.json create mode 100644 website/pages/_meta.json create mode 100644 website/pages/core-concepts/4-step.mdx create mode 100644 website/pages/core-concepts/_meta.json create mode 100644 website/pages/core-concepts/schema.mdx create mode 100644 website/pages/core-concepts/testing.mdx create mode 100644 website/pages/definitions.mdx create mode 100644 website/pages/definitions/bitcoin-core.mdx create mode 100644 website/pages/definitions/ganache.mdx create mode 100644 website/pages/definitions/hardhat.mdx create mode 100644 website/pages/definitions/solana.mdx create mode 100644 website/pages/index.mdx create mode 100644 website/pages/runtime.mdx create mode 100644 website/pages/runtime/_meta.json create mode 100644 website/pages/runtime/docker.mdx create mode 100644 website/pages/runtime/kubernetes.mdx create mode 100644 website/pages/runtime/testcontainers.mdx create mode 100644 website/theme.config.tsx create mode 100644 website/tsconfig.json create mode 100644 website/turbo.json create mode 100644 website/vercel.json create mode 100644 workspace/eslint-config-next/index.js create mode 100644 workspace/eslint-config-next/package.json diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index c196a7c..c471365 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,5 +1,10 @@ +