diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..a65caab --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @zerosnacks \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6f977c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: ci + +permissions: {} + +on: + pull_request: + branches: + - master + paths-ignore: + - "**.md" + push: + branches: + - master + paths-ignore: + - "**.md" + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + persist-credentials: false + + - name: Set up pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + + - name: Set up Node + uses: actions/setup-node@v6 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build project + run: pnpm run build + + - name: Upload build artifacts + uses: actions/upload-artifact@v5 + with: + name: dist + path: dist diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..eaa153c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v24.10.0 \ No newline at end of file diff --git a/index.html b/index.html index 5a9ed6f..fc0cbba 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ -
- No wallets found.
} + + {selected && account && ( +
+ {`\
+chain: ${chain ? `${chain.name} (${chainId})` : chainId ?? "unknown"}
+rpc: ${
+ chain?.rpcUrls?.default?.http?.[0] ??
+ chain?.rpcUrls?.public?.http?.[0] ??
+ "unknown"
+ }`}
+
+ )}
+
+ {selected && (
+ <>
+ {account ? (
+ <>
+