8 stable releases
1.1.8 | Mar 7, 2022 |
---|---|
1.1.7 | Feb 21, 2022 |
1.0.4 | Oct 6, 2021 |
0.2.0 | Aug 18, 2021 |
#15 in #terra
630KB
7.5K
SLoC
Terra Rust
This is a WIP.
No security audit has been performed.
There are currently 5 interesting things
- Terra-Rust A cross-platform CLI tool
- Terra-Rust-API an API you can integrate into your own code
- Terra-Rust-Wallet a secure OS agnostic wallet, using keyring
- Terra-Rust-Cli a collection of helper functions to help get arguments in a common way
- Terra-exec & Terra-query which make it much simpler to do smart contract development
Terra-Rust to help smart contract development
Randomness
The API is currently using random numbers via
let mut rng = rand::thread_rng();
Disclaimer
This may steal your money.
This is not investment advice.
Do you own research
Why?
I built this for 2 main reasons.
- There was no easy way for me to get the default terra-cli to work on Windows
- I wanted a RUST api to use in other things. The CLI is just cream on top.
Environment Variables
some things are used often and repeatedly, so we decided to use environment variables.
TERRARUST_LCD sets the LCD URL. e.g. https://tequila-lcd.terra.dev
TERRARUST_CHAIN set the CHAIN to use e.g. tequila-0004
TERRARUST_SEED_PHRASE the passphrase used in combination with the 24-words to generate the private key
TERRARUST_WALLET the default wallet to use
TERRARUST_GAS_PRICES the gas price to use. e.g. 50ukrw
TERRARUST_GAS_ADJUSTMENT the gas adjustment multiplier to use
TERRARUST_CONTRACT (for smart contract development) your contract to migrate you can also set these in a file called '.env' if you prefer
Documentation
- API docs are available here
- Wallet docs
on first install you may want to:
$ terra-rust wallet create default
Help ?
$ terra-rust --help
If you think this was useful, feel free to delegate to the PFC validator. It will help defray the costs.
PFC - Terra/Luna is Pretty Freaking Cool right... feel free to drop me a line
Contribute
Feel free to submit patches/comments/Pull Requests.
We have also set up a Discord channel to discuss this, and other PFC things
Dependencies
~25–43MB
~663K SLoC