Skip to content

Commit

Permalink
[feat] Crosschain (#21)
Browse files Browse the repository at this point in the history
* Crosschain

* Update version

* Split out samechain and crosschain

* Default to samechain

* Update rpc getter

* Update client SDK v2.1.0 & callback target

* Update readme
  • Loading branch information
ytham authored Jul 17, 2024
1 parent 855574b commit 294737a
Show file tree
Hide file tree
Showing 29 changed files with 7,105 additions and 5,622 deletions.
3 changes: 2 additions & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# duplicate this file and rename to .env.local and fill in all items

# Provider URI (https://... from Alchemy, Quicknode, Infura, etc)
NEXT_PUBLIC_PROVIDER_URI_11155111=
NEXT_PUBLIC_RPC_URL_11155111=
NEXT_PUBLIC_RPC_URL_84532=

# Get your project ID from WalletConnect Cloud https://cloud.walletconnect.com/
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
pull_request:

env:
NEXT_PUBLIC_PROVIDER_URI_11155111: ${{ secrets.NEXT_PUBLIC_PROVIDER_URI_11155111 }}
NEXT_PUBLIC_RPC_URL_11155111: ${{ secrets.NEXT_PUBLIC_RPC_URL_11155111 }}
NEXT_PUBLIC_RPC_URL_84532: ${{ secrets.NEXT_PUBLIC_RPC_URL_84532 }}
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID }}

jobs:
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

This Axiom Next.js 14 Quickstart provides a barebones framework through which you build full stack dApps on top of Axiom. The Axiom circuit and build files are inside the [axiom/](./axiom/) folder and [src/](./src/) contains a Next.js template.

Note that although this repository can be used in its current standalone form, it is most ideal to instead run `npx create-axiom-client` to run the interactive Axiom project setup.

## Setup

1. Copy `.env.local.example` as a new file named `.env.local`
2. Fill in the values in `.env.local` with your own values
a. `NEXT_PUBLIC_PROVIDER_URI_[CHAIN_ID]` is your JSON-RPC provider URL (`[CHAIN_ID]` is the chain ID number of the network you are using); you'll need to sign up for a free account with a node provider such as [Alchemy](https://www.alchemy.com/) or [QuickNode](https://www.quicknode.com)
b. `NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID` is your WalletConnect project ID; you'll need to sign up for a [WalletConnect](https://walletconnect.com/) account
a. `NEXT_PUBLIC_RPC_URL_[CHAIN_ID]` is your JSON-RPC provider URL (`[CHAIN_ID]` is the chain ID number of the network you are using); you'll need to sign up for a free account with a node provider such as [Alchemy](https://www.alchemy.com/) or [QuickNode](https://www.quicknode.com)
b. `NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID` is your WalletConnect project ID; you'll need to sign up for a [WalletConnect](https://walletconnect.com/) account
3. Run `npm install` (or `yarn`/`pnpm`) to install dependencies
4. Run `npm run dev` to start the local development server

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"build:circuit": "axiom circuit compile axiom/average.circuit.ts"
},
"dependencies": {
"@axiom-crypto/client": "2.0.9",
"@axiom-crypto/react": "2.0.9",
"@axiom-crypto/client": "2.1.0",
"@axiom-crypto/react": "2.1.0",
"@tanstack/react-query": "^5.17.12",
"@types/node": "20.6.2",
"@types/react": "18.2.48",
Expand Down
Loading

0 comments on commit 294737a

Please sign in to comment.