Skip to main content

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terra_classic_proto-4.0.1.tar.gz (237.6 kB view hashes)

Uploaded Source

Built Distribution

terra_classic_proto-4.0.1-py3-none-any.whl (348.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page