-
Notifications
You must be signed in to change notification settings - Fork 4
docs: add support for running basic_solana locally and on mainnet
#91
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f402038
XC-355: Improve instructions for basic_solana
lpahlavi 411c8d6
XC-335: Add support for both local and mainnet basic_solana
lpahlavi 7015cdc
XC-335: Small improvements to README and deployment files
lpahlavi fa47dae
XC-335: Provision API keys for local development in dfx.json post_ins…
lpahlavi 6105d7a
XC-335: Change local canister ID for sol_rpc canister
lpahlavi c5aa8fc
XC-335: Move post_install to sol_rpc canister
lpahlavi 6fa5798
XC-335: Fix candid file for mainnet basic_solana
lpahlavi 4eb4ede
XC-335: Add explicit instructions to use dfx 0.27.0
lpahlavi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "sol_rpc": { | ||
| "local": "lxzze-o7777-77777-aaaaa-cai" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "canisters": { | ||
| "sol_rpc": { | ||
| "specified_id": "lxzze-o7777-77777-aaaaa-cai", | ||
| "candid": "../../../canister/sol_rpc_canister.did", | ||
| "package": "sol_rpc_canister", | ||
| "type": "custom", | ||
| "build": [ | ||
| "cargo build --no-default-features --target wasm32-unknown-unknown --release --manifest-path ../../../canister/Cargo.toml" | ||
| ], | ||
| "wasm": "../../../target/wasm32-unknown-unknown/release/sol_rpc_canister.wasm", | ||
| "metadata": [ | ||
| { | ||
| "name": "candid:service" | ||
| } | ||
| ], | ||
| "init_arg": "( record { manageApiKeys = null; overrideProvider = opt record { overrideUrl = opt record { pattern = \".*\"; replacement = \"https://api.devnet.solana.com\" } }; logFilter = opt variant { ShowAll }; numSubnetNodes = null; mode = opt variant { Demo }; } )", | ||
| "post_install": "./provision.sh" | ||
| }, | ||
| "basic_solana": { | ||
| "candid": "../basic_solana.did", | ||
| "package": "basic_solana", | ||
| "type": "custom", | ||
| "build": [ | ||
| "cargo build --no-default-features --target wasm32-unknown-unknown --release" | ||
| ], | ||
| "wasm": "../../../target/wasm32-unknown-unknown/release/basic_solana.wasm", | ||
| "metadata": [ | ||
| { | ||
| "name": "candid:service" | ||
| } | ||
| ], | ||
| "init_arg": "( record { solana_network = opt variant { Devnet }; ed25519_key_name = opt variant { LocalDevelopment }; sol_rpc_canister_id = opt principal \"lxzze-o7777-77777-aaaaa-cai\" } )" | ||
| } | ||
| }, | ||
| "version": 1 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e -x | ||
|
|
||
| # Set a dummy value for the API keys | ||
| DUMMY_API_KEY="dummy" | ||
|
|
||
| dfx canister call sol_rpc updateApiKeys "(vec { | ||
| record { variant { AlchemyMainnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { AlchemyDevnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { AnkrMainnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { AnkrDevnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { ChainstackMainnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { ChainstackDevnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { DrpcMainnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { DrpcDevnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { HeliusMainnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| record { variant { HeliusDevnet }; opt \"${DUMMY_API_KEY}\" }; | ||
| })" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "sol_rpc": { | ||
| "ic": "tghme-zyaaa-aaaar-qarca-cai" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "canisters": { | ||
| "basic_solana": { | ||
| "candid": "../basic_solana.did", | ||
| "package": "basic_solana", | ||
| "type": "custom", | ||
| "build": [ | ||
| "cargo build --no-default-features --target wasm32-unknown-unknown --release" | ||
| ], | ||
| "wasm": "../../../target/wasm32-unknown-unknown/release/basic_solana.wasm", | ||
| "metadata": [ | ||
| { | ||
| "name": "candid:service" | ||
| } | ||
| ], | ||
| "init_arg": "( record { solana_network = opt variant { Devnet }; ed25519_key_name = opt variant { MainnetTestKey1 }; sol_rpc_canister_id = opt principal \"tghme-zyaaa-aaaar-qarca-cai\" } )" | ||
| } | ||
| }, | ||
| "version": 1 | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.