The Python Protobuf implementation for Terra Classic
Project description
Python implementation for terra.proto
This is a version of terra.proto which specifically supports Terra Classic.
It is intended to be a drop-in replacement for terra.proto - it will install itself as terra.proto.
This is required if you are using the Terra Classic SDK.
Build instructions
Requirements:
python -m pip install "betterproto[compiler]==2.0.0b6"
brew install protobuf
Steps
Download the 50.x version of terra.proto. You can replace the branch name with whatever is relevant.
git clone -b v0.50.x-support https://github.com/geoffmunn/terra.proto.git
Alongside this, download the current version of terra/core from terra-money
git clone https://github.com/terra-money/core.git terra/
If terra/
already exists, then delete it with this: git rm -r terra
Move into the terra.proto directory and add the submodules
cd terra.proto
git submodule add https://github.com/classic-terra/core terra/
git submodule update --init
cd terra/
git checkout 680792d
[!IMPORTANT] 680792d is the commit ID of the terra branch we want to use (not 'main'). Replace this with the version you are interested in.
Now copy from the terra-money terra location the following files into the terra.proto/terra/proto location:
cd ./proto
cp -r ../../../terra/proto/cosmos .
cp -r ../../../terra/proto/juno .
cp -r ../../../terra/proto/osmosis .
Move to the scripts location to start the build process
cd ../../python/scripts
rm -rf ../terra.proto (location may not exist, ok if it doesn’t)
sh proto-gen.sh
AFTER RUNNING THE PROTO BUILD SH FILE:
cp -r ./gamm-files/ ../terra_proto/osmosis/
Finished! You can run the python module build steps from here.
Alternative options to this library can be found here:
- GoLang Terra Core clients,
- JavaScript @terra-money/terra.proto,
- Rust terra-proto-rs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for terra_classic_proto-4.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21965857b1e9067f4c2213c6be695c640e6d95b695dbf1c34e2e5b0fc3ab9388 |
|
MD5 | 0bef73c6e96ada6ff7fc21406db3bda7 |
|
BLAKE2b-256 | a668447b9204a701c595eb277af942f73c60eed5e6001adcebc241ea9303b5e0 |
Hashes for terra_classic_proto-4.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10e1e7aca161a19726672bf179d20fc0ea76a48cac5a533c0e4b5915dd87101d |
|
MD5 | 05512c2257ca150b3d0bde6716768f5f |
|
BLAKE2b-256 | 82cee545837577eb77272bfcdc6959733779512e26f62234ee26847246b8adc7 |