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]"
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/
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.0b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c99acb1f300d7a96b55c402cd58bb2c84afcbe2b187f4fefb5c8248e36e7ee5a |
|
MD5 | 897f432b812d1578e2505f079e587130 |
|
BLAKE2b-256 | 76ff3fb38a0298258783484a2fb5bea09da1cd51ac6294272b6c789ebfc7f140 |
Hashes for terra_classic_proto-4.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5394f8be63763280d1edc6df6d9a4772da4f2b8a45cc9449b4e032e63241070b |
|
MD5 | d90e3a1d848e5873cf428b3117fb959d |
|
BLAKE2b-256 | c418c55ca1c8b7bba6e59d46db827ef19789bfbe436863885d13078ca5413be9 |