-
Notifications
You must be signed in to change notification settings - Fork 25
chore: update movement cli for testnet, a few other small cleanups #177
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
base: movement
Are you sure you want to change the base?
Conversation
crates/aptos/src/common/init.rs
Outdated
profile_config.rest_url = Some("https://aptos.devnet.inola.movementlabs.xyz/v1".to_string()); | ||
profile_config.faucet_url = Some("https://faucet.devnet.inola.movementlabs.xyz".to_string()); | ||
profile_config.rest_url = | ||
Some("https://aptos.devnet.inola.movementlabs.xyz/v1".to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've a Devnet deployed. The entry point are:
https://full.devnet.movementinfra.xyz/v1
https://faucet.devnet.movementinfra.xyz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay good to know, I'll update thanks.
crates/aptos/src/common/init.rs
Outdated
Some("https://full.testnet.movementinfra.xyz/v1".to_string()); | ||
profile_config.faucet_url = | ||
Some("https://faucet.testnet.suzuka.movementlabs.xyz/".to_string()); | ||
Some("https://faucet.testnet.movementinfra.xyz/v1".to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faucet entry point doesn't have the /v1
the url is:
https://faucet.testnet.movementinfra.xyz
crates/aptos/src/common/init.rs
Outdated
profile_config.rest_url = | ||
Some("https://aptos.devnet.inola.movementlabs.xyz/v1".to_string()); | ||
profile_config.faucet_url = | ||
Some("https://faucet.devnet.inola.movementlabs.xyz".to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the faucet for devnet.
Some("https://faucet.devnet.inola.movementlabs.xyz".to_string()); | ||
}, | ||
Network::Local => { | ||
profile_config.rest_url = Some("http://localhost:8080".to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url doesn't have the /v1, so I'm not sure if it's needed for the other one.
I'm not sure the local url for movement node is not the 8080 port?
You can add a faucet url too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought :8080 worked for me but I'll double check.
Other than Philippe's comments, this looks good. |
@shayansanjideh @Rahat-ch should |
network | ||
} else { | ||
eprintln!("Choose network from [testnet, local, custom | defaults to testnet]"); | ||
eprintln!("Choose network from [devnet, testnet, local, custom | defaults to testnet]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
Description
Per devrel request, update Movement CLI network endpoints and ensure faucet works with testnet on
movement init
.Changes:
movement init
.movement init
.config.yaml
files to.gitingore
because I noticed ongit add .
myconfig.yaml
file was added.testnet
. (Init with devnet also works.)Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
To test, run:
cargo build -p movement
then
./target/debug/movement init
and play with the different options.
Key Areas to Review
Checklist
Outstanding Issues
local
option still fails due to [Bug]cargo run -p movement -- node run-local-testnet
crashes #174 but this should still be good to ship, for the improvements withtestnet
anddevnet
.