Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Base Sepolia #41

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading