Skip to content

Commit

Permalink
Deprecate Base Sepolia (#41)
Browse files Browse the repository at this point in the history
* Deprecate Base Sepolia

* Update submodule
  • Loading branch information
ytham authored Oct 21, 2024
1 parent d3a8ee3 commit 03fd399
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 143 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Make a copy of this file and rename to `.env`

# Your provider URI (starting with 'https://...' from Alchemy, Quicknode, Infura, etc)
PROVIDER_URI_11155111=""
RPC_URL_11155111=""
ETHERSCAN_API_KEY=""

# (Optional) Private key for sending a transaction to the AxiomV2Query contract if
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ forge test -vvvv
To send a query on Sepolia testnet (requires `PRIVATE_KEY_11155111` in `.env` file), run

```bash
npx tsx app/index.ts
npx tsx app/index.ts
```

## CLI Cheatsheet

```bash
# compile
npx axiom circuit compile app/axiom/average.circuit.ts --provider $PROVIDER_URI_11155111
npx axiom circuit compile app/axiom/average.circuit.ts --provider $RPC_URL_11155111

# prove
npx axiom circuit prove app/axiom/average.circuit.ts --sourceChainId 11155111 --provider $PROVIDER_URI_11155111
npx axiom circuit prove app/axiom/average.circuit.ts --sourceChainId 11155111 --provider $RPC_URL_11155111

# get parameters to send a query to Axiom using sendQuery
npx axiom circuit query-params <callback contract address> --refundAddress <your Sepolia wallet address> --sourceChainId 11155111 --provider $PROVIDER_URI_11155111
npx axiom circuit query-params <callback contract address> --refundAddress <your Sepolia wallet address> --sourceChainId 11155111 --provider $RPC_URL_11155111
```

## Package Manager Installation
Expand Down
57 changes: 0 additions & 57 deletions app/index-crosschain.ts

This file was deleted.

2 changes: 1 addition & 1 deletion app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const axiomMain = async (input: UserInput<CircuitInputs>) => {
const axiom = new Axiom({
circuit: circuit,
compiledCircuit: compiledCircuit,
chainId: CHAIN_ID, // Sepolia
chainId: CHAIN_ID,
rpcUrl: process.env[`RPC_URL_${CHAIN_ID}`] as string,
privateKey: process.env[`PRIVATE_KEY_${CHAIN_ID}`] as string,
callback: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axiom-quickstart",
"version": "0.2.9",
"version": "0.2.10",
"description": "Axiom Quickstart",
"main": "index.js",
"scripts": {
Expand All @@ -10,7 +10,7 @@
"author": "Intrinsic Technologies",
"license": "MIT",
"dependencies": {
"@axiom-crypto/client": "2.1.0",
"@axiom-crypto/client": "2.1.1",
"dotenv": "^16.3.1"
},
"devDependencies": {
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 0 additions & 68 deletions test-crosschain/AverageBalance.t.sol

This file was deleted.

0 comments on commit 03fd399

Please sign in to comment.