Skip to content
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

Tendermint liquidity module codec #2

Merged
merged 3 commits into from
May 22, 2023

Conversation

pharr117
Copy link
Collaborator

Add the following:

  • Proto definitions for tendermint liquidity message types and service
  • Script and autogenerated code using for Liquidity messages
  • Filled out Liquidity message interface
  • Inclusion of Tendermint liquidity messages in base application codec
  • Extension to main.go proof of concept code

See the README.md file under proto/ for reasoning, requirements and guidance on how/why this is needed.

This code was tested in the following manner:

  • Env vars:
export RPC_SERVER="https://rpc-cosmoshub.ecostake.com:443"
export CHAIN_ID="cosmoshub-4"
export ACCOUNT_PREFIX="cosmoshub"
  • Ran main.go on CosmosHub block 15289176, observed a successful Transaction query on CosmosHub transaction C5E6841062462B8989D5565802023E08283C2B6311AC1A8C0E476055D9201164 containing a /tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch message
  • Output:
go run .
Got status, some data follows:
Node moniker: ECO Stake
Got block, some data follows:
Height: 15289176
Got block results, some data follows:
Height: 15289176
Got txes, some TX hashes follow:
TX Hash: C5E6841062462B8989D5565802023E08283C2B6311AC1A8C0E476055D9201164
Contains these messages:
/tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch

* Proto definitions for tendermint liquidity message types and service
* Script and autogenerated code using  for Liquidity messages
* Filled out Liquidity message interface
* Inclusion of Tendermint liquidity messages in base application codec
* Extension to main.go proof of concept code
@pharr117 pharr117 requested a review from danbryan May 21, 2023 23:47
@pharr117 pharr117 merged commit 63fbe54 into main May 22, 2023
@pharr117 pharr117 deleted the tendermint-liquidity-module-codec branch May 22, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants