Skip to content

Commit

Permalink
adds ix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
austbot committed Jun 18, 2024
1 parent 8976abb commit 2e7472e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Ensure you set ```local_signer_keypair_content``` with the content of the relay
In a production scenario you will want to use the ```GrpcSubscription``` ingester type to avoid the need for a colocated Solana node. Triton One or Helius offer GRPC streams of solana transactions. We reccomend triton for this as they created the Yellowstone library in use for the Grpc Ingest option in this prover node.

## Running Tests
There are a few tests in the channel directory. You can run them with `pnpm test`. This will deploy a zk program and start an execution request which the relay will respond to.
There are a few tests in the `onchain/channel/ts-client` directory. You can run them with `pnpm test`. This will deploy a zk program and start an execution request which the relay will respond to.
In a locall environment you need to run `solana-test-validator` and then airdrop some money to your relay keypair `solana -u http://localhost:8899 airdrop 1 --keypair relaykp.json`. Then you can run the tests.

For a public network jsut set the `KP` and `RPC_ENDPOINT` env variables to the path of your keypair and run the tests.

0 comments on commit 2e7472e

Please sign in to comment.