Proto commits in cosmos/gravity-bridge

These commits are when the Protocol Buffers files have changed: (only the last 100 relevant commits are shown)

Commit:40b8bae
Author:Mantas Vidutis

no hexbytes

Commit:cd69f7a
Author:Mantas Vidutis

logging in conf msg handler

Commit:899a671
Author:Zaki Manian

Merge branch 'main' of https://github.com/cosmos/gravity-bridge into zaki/evidence_port

Commit:168b8f1
Author:Zaki Manian

Merge branch 'main' of https://github.com/cosmos/gravity-bridge into zaki/cherry-picked-docs

Commit:541e875
Author:Justin Kilpatrick
Committer:Zaki Manian

Documentation overhaul and modernization This patch overhauls the documentation to cover a lot more info and provide a lot more details on different subjects

Commit:0195030
Author:billy rennekamp
Committer:GitHub

chore: update paths (#376)

The documentation is generated from this commit.

Commit:ea6e96b
Author:marbar3778

add proto files and evidence msgs

Commit:932ab51
Author:Jehan Tremback

Clean up docs more, add notes about where stuff is implemented

Commit:c310a5b
Author:Jehan Tremback

put params comments inline

Commit:9aa15e8
Author:Mantas Vidutis
Committer:GitHub

Outgoing Contract Calls (#110)

Commit:1f1ecae
Author:Mantas Vidutis

eth timeout

Commit:673a609
Author:Mantas Vidutis

initial contract call logic

Commit:040b927
Author:Mantas Vidutis
Committer:GitHub

Gravity Event Hooks (#108)

Commit:7458c3a
Author:Mantas Vidutis

remove unneeded tm validator proto

Commit:0952ac5
Author:Mantas Vidutis

rc3 tm proto

Commit:5bc3036
Author:Mantas Vidutis

update proto deps

Commit:6f794ab
Author:Mantas Vidutis

gravity hooks

Commit:f7b4c14
Author:Levi Cook
Committer:GitHub

Let the chain determine our ideal ERC-20 config for a denom. (#106) * module: query to support creating erc-20s correctly * module: DenomToERC20Params query scaffolding * module: DenomToERC20Params query almost there (IBC support is TBD) * rust bindings for denom_to_erc20_params * deploy-erc20-representation should not accept erc-20 params from the user * encourage DenomToERC20Params to agree with our verifyERC20DeployedEvent rules * noting todos/concerns * clarify what happens when we have metadata and when we don't * ensure our eth event always carries the right "cosmos denom" * Apply suggestions from code review Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> * Update grpc_query.go * don't bother navigating display denoms * Update module/proto/gravity/v1/query.proto Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> * Update module/x/gravity/client/cli/query.go Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> * Update module/proto/gravity/v1/query.proto Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

Commit:30a2517
Author:Aleksandr Bezobchuk
Committer:GitHub

x/gravity: Verify Eth Sig in MsgDelegateKeys (#75)

Commit:0a44527
Author:Aleksandr Bezobchuk

x/gravity: lint++

Commit:ea494b5
Author:Aleksandr Bezobchuk

x/gravity: update MsgDelegateKeys

Commit:5182db4
Author:Mantas Vidutis
Committer:GitHub

Merge PR #41: refactor testnet for better fit in CI * wip * first pass go based test net * cleanup * accounts genesis * generating keys, accounts, and ethereum genesis * generating and signing gentx * go mod files * trying to bring up containers * bringing up containers * validators failing to connect * disable state sync * all validators up, miscommunicating * nodes signing, contracts deploying * orchestators failing on delegate keys * no need to give orchestrator consensus key * adding debuging rpc * delegate keys dump * failing keygen test * failing test for mnemonic mismatch * unused code * use fundraiser paths in key gen * happy path 2 * auto remove containers * cleanup * desperate attempt to keep containers clean * deterministic test * happy path passes * use go test for integration test * debug proto check breaking * build binary before test * check out put * short circuit on failed contract deploy * proto breaking debugging * fix integration test action * checkout project * maybe they intended to use an env * build test in step * cmd typo * attempting to read logs from tet runner * only pull stderr

Commit:5475625
Author:Jack Zampolin
Committer:GitHub

Merge PR #53: imports from cosmos -> peggyjv

Commit:fded762
Author:Levi Cook
Committer:GitHub

VALSET_STRESS end-to-end test fixes (#45) * test_runner - delegate with deep_space instead of gravity cli (wip) * fix(?): not providing enough fees to cover delegation * orchestrator keys have the funds to delegate/stake (not validator); wip: account sequence mismatch tho * rust was out of sync with start-testnet -- the latter provisions 100B; not 1B stake tokens * debug/hack: lower powerDiff required to gen a signer set test_runner is generating a 0.046 powerDiff where cosmos wants 0.05 to automatically create a signes set tx. Lowered it on this commit to 0.045 so we would generate the tx -- but still not seeing the system progress correctly. * relaying valset updates (more or less) * let us see if github will run the new dockerized tests * test_runner - wrap delegate_to_validator in a retry loop (because we are accidentally competing with other processes signing txns * restore the modules goal of generating singer sets at 5% * dropping some TODOs

Commit:0eeb0e5
Author:Levi Cook

YAY! switching amount from bytes to string passes integration tests

Commit:ed3ccdf
Author:Levi Cook

almost relaying deposit events (making it to cosmos, but not accepting them yet)

Commit:80e0aab
Author:Jehan Tremback

"Signature" -> "Confirmation" There was a struct called "*Signature", which within it contained an actual signature and some metadata. This was very confusing so the struct has been renamed to "Confirmation"

Commit:70963e8
Author:Jehan Tremback

Clean up proto naming - Pending**EthereumSignatures -> Unisgned** - comment out useless http route annotations

Commit:cb0203f
Author:Jehan Tremback
Committer:Jehan Tremback

update proto to stop using magic values and clarify some nonce names. plus some other random WIP stuff, but at least it builds

Commit:e81c230
Author:Zaki Manian
Committer:GitHub

Merge PR #21: Regenerate rust code from proto files and compiling orchestrator Fixes query.rs and tx.rs Propogates type changes Co-authored-by: Jtremback <hi@jehan.email>

Commit:f55eccd
Author:Jack Zampolin
Committer:GitHub

Merge PR #1: Gravity Refactor, compiling orchestrator and chain * Audit proto files * iotaized key prefixes * first sweep on proto files * Fix proto compilation erros * cleaning up key building : * remove double append * WIP rename * WIP rename * Compiling renamed proto files * Add interfaces * address PR comments * Update to reflect @jtremback review * add GetStoreIndex to OutgoingTx * Merge PR #2: iotaized key prefixes @mvid * iotaized key prefixes * cleaning up key building : * remove double append * update comments * renaming state vars * carry over proto-all from cosmos-sdk * initial types conversion * initial key renaming pass * Minor changes * converting messages * slog * valset conversion * cleanup * remove codec calls * clear out codec * pull out error * coin cleanup * remove querier * unneeded pointers * Address PR comments * initial interface implementation * catch up tests * clean up batch functions * change Amount to []byte * full ethereum name * Update module/proto/gravity/v1/genesis.proto Co-authored-by: Filipe Azevedo <filipe@azevedo.io> * erc20token * renaming * proper contract conversion * remove unneeded variable prefix * msg server updates for interface style * attestation cleanup * Finish up attestation to ethereumEventVote refactor * Implement interfaces * more cleanup * remove codec function * pool fixes * batch fixes * unused functions * meeting work * Merge PR #7: gravity query cleanup (wip) * Begin rewrite of queries * keeper queries - return the results we dug up * keeper queries - return the results we dug up (one more) * WIP querier refactor * compiling keeper * keeper cleanup * Clean up and beginning of batch refactor * Compiling again, working on pool tests * Compiling again, working on pool tests * Pull in some upstream changes including the signersettxexecutedevent * begin abci cleanup * merge * add instantiation keywords * keeper can locate pending eth sigs for an validator/orchestrator * keeper can locate pending batchtxs for a validator/orchestrator * keeper can locate pending contract call txs for a validator/orchestrator * keeper can lookup delegate keys by validator address * cleanup * keeper can lookup delegate keys by ethereum signer address * keeper can lookup delegate keys by orchestrator address * keeper can query demom to erc20 and vice-versa * keeper can query BatchTx fees * Merge PR #9: first pass batch review and cleanup Co-authored-by: Mantas Vidutis <mantas.a.vidutis@gmail.com> * Merge PR #8: Endblock refactor * WIP endblock compilation * WIP compiling * make proto-all to ensure we have up-to-date generated Go * ./contrib/local/protocgen.sh to ensure we have up-to-date generated Go * get the app module compiling Co-authored-by: Levi Cook <levicook@gmail.com> * gravity builds * wip * Merge PR #10: batch refactor cont * first pass batch review and cleanup * get rid of silly GetBatchTxs and associated functions * fix logic bug * shorten redundant getter logic in GetLastSlashedBatchBlock * change some wording and remove unnecessary if statement Co-authored-by: Mantas Vidutis <mantas.a.vidutis@gmail.com> Co-authored-by: Jtremback <hi@jehan.email> * wip batch debugging feat @mvid @jtremback * Merge PR #6: Proposed gorc CLI Structure * Update orchestrator proto files * Regen proto files to match jack/interface * regen proto files * Add brief readme to the rust code * Proposed CLI structure * small additions * Begin implementation * Restore readme update * correct generated code * Merge PR #11: update batch code, passing keeper tests * updated tests from merge * batch tests clean * keeper test cleanup * pool test utility function fixed * WIP abci test debugging * Working testcase in keeper * more wip * passing abci_test.go a few more to go... * abci test fix * Merge PR #12: abci test debugging * WIP abci test debugging * Working testcase in keeper * more wip * passing abci_test.go a few more to go... * Batch refactor * WIP * gravity tests are passing * WIP commands * WIP query things * stubbing out cli - gravity tx sub-commands * stubbing out cli - gravity query sub-command stubs * stubbing out cli - gravity query batch-tx and contract-call-tx stubs * stubbing out cli query stubs: signer-set-txs; batch-txs; contract-call-txs * stubbing out cli query stub: signer-set-tx-ethereum-signatures * stubbing out cli query stub: batch-tx-ethereum-sinatures * stubbing out cli query stub: contract-call-tx-ethereum-signatures * stubbing out cli query stub: pending-signer-set-tx-ethereum-signatures * stubbing out cli query stub: pending-batch-tx-ethereum-signatures * stubbing out cli query stub: pending-contract-call-tx-ethereum-signatures * stubbing out cli query stub: last-submitted-ethereum-event * stubbing out cli query stub: batch-tx-fees * stubbing out cli query stub: erc20-to-denom * stubbing out cli query stub: denom-to-erc20 * stubbing out cli query stub: pending-send-to-ethereums * stubbing out cli query stub: delegate-keys-by-validator * stubbing out cli query stub: delegate-keys-by-ethereum-signer * stubbing out cli query stub: delegate-keys-by-orchestrator * WIP abci.go refactor and general code cleanup * get tests passing after deleting specialized outgoinTx last slashed code * clean up unused exports and delete dead code in keeper * get rid of weird different error types * WIP delete and fix code, halfway through ethereum_event.go * Fix batch nonce issue * Fix batch nonce issue * stubbing out cli: implement query signer-set-tx * cli: implement query batch-tx * finish up dead code audit * change ErrInvalid back to 3 * fix wrong "!" * cli: implement query signer-set-txs * Merge PR #14: Rust compiles (thanks @zmanian!) and gorc stubbed out * Stub out the command hierarchy * WIP commit * gravity_proto: fix super::super errors * progress towards compiling the the protos * Merge PR #11: update batch code, passing keeper tests * updated tests from merge * batch tests clean * keeper test cleanup * pool test utility function fixed * Merge PR #12: abci test debugging * WIP abci test debugging * Working testcase in keeper * more wip * passing abci_test.go a few more to go... * More type fixes * gravity_proto: hand edit fix for BatchTx::transactions `prost-build` almost seems to be misgenerating this in its output. I'm not sure why, but perhaps a temporary hand edit will suffice to make progress getting the code to compile. * More fixes for the refactored protocol buffers * More fixes * Make send.rs compile * Make queries compile but much of it stubbed out waiting query fixes * Fix build errors * The orchestrator compiles * Fix anthor compilation error * Test_runner compiles * Gorc compiles Co-authored-by: Zaki Manian <zaki@manian.org> Co-authored-by: Tony Arcieri <tony@iqlusion.io> Co-authored-by: Mantas Vidutis <mantas.a.vidutis@gmail.com> * Merge PR #15: grpc_query.go major fixes * query send to ethereums * last event nonce query * batch tx query * rename to original file * docs for 0 nonce * using consistent error types with cosmos sdk * pagination and validation * casing issues * ethereum signature hex bytes * compiling and passing tests for go again Co-authored-by: Mantas Vidutis <mantas.a.vidutis@gmail.com> Co-authored-by: Filipe Azevedo <filipe@azevedo.io> Co-authored-by: Levi Cook <levicook@users.noreply.github.com> Co-authored-by: Levi Cook <levicook@gmail.com> Co-authored-by: Jtremback <hi@jehan.email> Co-authored-by: Jehan <jehan.tremback@gmail.com> Co-authored-by: Zaki Manian <zaki@manian.org> Co-authored-by: Tony Arcieri <tony@iqlusion.io>

Commit:340891a
Author:Jack Zampolin

wip

Commit:03c4228
Author:Jack Zampolin
Committer:GitHub

Merge PR #8: Endblock refactor * WIP endblock compilation * WIP compiling * make proto-all to ensure we have up-to-date generated Go * ./contrib/local/protocgen.sh to ensure we have up-to-date generated Go * get the app module compiling Co-authored-by: Levi Cook <levicook@gmail.com>

Commit:e34ce0c
Author:Jack Zampolin

Pull in some upstream changes including the signersettxexecutedevent

Commit:bf483de
Author:Jack Zampolin

keeper cleanup

Commit:7d51a4a
Author:Jack Zampolin

compiling keeper

Commit:321921f
Author:Jack Zampolin

WIP querier refactor

Commit:c09b6e7
Author:Jack Zampolin

Begin rewrite of queries

Commit:146b14b
Author:Levi Cook
Committer:GitHub

Merge PR #7: gravity query cleanup (wip)

Commit:d425317
Author:Jtremback

rename proto files

Commit:c268085
Author:Jtremback

more small renames

Commit:1e2ac4f
Author:Mantas Vidutis

more cleanup

Commit:1ce8475
Author:Jtremback

work on getting rid of "confirm" and other various renaming

Commit:6aaba1c
Author:Jtremback

last fixes, renamed module compiles, unit tests very broken

Commit:ea9e753
Author:Jack Zampolin

Finish up attestation to ethereumEventVote refactor

Commit:a723ab9
Author:Jtremback

fix and clean genesi.go

Commit:38ffb5f
Author:Mantas Vidutis

remove unneeded variable prefix

Commit:419af17
Author:Mantas Vidutis

renaming

Commit:9742779
Author:Jtremback
Committer:Jtremback

remove useless cosmos prefix

Commit:503b2aa
Author:Jtremback

remove query prefix

Commit:f1a51a0
Author:Jtremback

rename RPC in msgs.proto, small fixes in query.proto

Commit:0e62661
Author:Jtremback

bug fixes and rename in query.proto, without touching routes

Commit:e604941
Author:Jtremback

add in types proto

Commit:c7e5337
Author:Jtremback

add in msgs proto

Commit:394cf2b
Author:Jtremback

add in genesis proto

Commit:c4f6913
Author:Jtremback

add batch proto

Commit:d2f546c
Author:Jtremback

update attestation proto

Commit:745263f
Author:Mantas Vidutis

erc20token

Commit:4217a2d
Author:Jehan
Committer:GitHub

Spec updates (#341) * format markdown tables * Add documentation of attestation and claim state and transitions * code format attestation snippet * batch state and state transitions * logic call docs * valset state and state transition docs * clean up messages and other stuff * add narrative explanation of endblocker slashing * spec on attestation vote counting * more endblocker docs on batch cleanup and valset creation * endblock slashing docs and first ADR * Update docs/architecture/adr-001-no-light-clients.md remove ADR template text Co-authored-by: Marko <marbar3778@yahoo.com> * Update docs/architecture/adr-001-no-light-clients.md remove ADR template text Co-authored-by: Marko <marbar3778@yahoo.com> * add event nonce adr * add documentation of batch timeout Co-authored-by: Marko <marbar3778@yahoo.com>

Commit:1caab03
Author:Jack Zampolin
Committer:GitHub

Update module/proto/gravity/v1/genesis.proto Co-authored-by: Filipe Azevedo <filipe@azevedo.io>

Commit:817b21c
Author:Mantas Vidutis

full ethereum name

Commit:9939035
Author:Mantas Vidutis

change Amount to []byte

Commit:cb8f31a
Author:Jtremback
Committer:Justin Kilpatrick

finish endpoint and clean up comments

Commit:edaff11
Author:Jtremback
Committer:Justin Kilpatrick

basic evidence slashing functionality and smoke tests

Commit:963449f
Author:Jtremback
Committer:Justin Kilpatrick

add implementation note comments

Commit:ac3ba79
Author:Mantas Vidutis

merge

Commit:8237a24
Author:Justin Kilpatrick
Committer:Justin Kilpatrick

Set last observed validator set in Cosmos store This patch adds the MsgValsetUpdatedEvent to the cosmos module logic, this processes and stores the latest validator set as an event. We've resisted doing this for quite a long time. With concern that developers would want to use this value in ways it's not safe to use. But we need it for two purposes that it is safe to use for. 1) warnings about bridge highjacking 2) efficient pruning of validator sets without pruning too many sets

Commit:e551d9a
Author:Jack Zampolin

Address PR comments

Commit:f81b087
Author:Mantas Vidutis

coin cleanup

Commit:9bae304
Author:Mantas Vidutis

valset conversion

Commit:fec364d
Author:Mantas Vidutis

slog

Commit:b9d548f
Author:Mantas Vidutis

merge

Commit:584a529
Author:Mantas Vidutis

converting messages

Commit:13138ff
Author:Jack Zampolin

Minor changes

Commit:4ff1784
Author:Mantas Vidutis

carry over proto-all from cosmos-sdk

Commit:65336ab
Author:Mantas Vidutis

renaming state vars

Commit:7273b36
Author:Jack Zampolin

Update to reflect @jtremback review

Commit:cd7960f
Author:Jack Zampolin

address PR comments

Commit:830b34a
Author:Jack Zampolin

Compiling renamed proto files

Commit:69eec5a
Author:Jack Zampolin

WIP rename

Commit:831734a
Author:Jack Zampolin

WIP rename

Commit:017d4e5
Author:Jack Zampolin

Fix proto compilation erros

Commit:137aabb
Author:Jack Zampolin

first sweep on proto files

Commit:506f52c
Author:Jack Zampolin

Audit proto files

Commit:3c37256
Author:Jack Zampolin

WIP pairing

Commit:ed24035
Author:Jack Zampolin

Push wip work from pairing

Commit:74a14d4
Author:Federico Kunze

genesis wip

Commit:0fd4806
Author:Federico Kunze

attestation and genesis fixes

Commit:90a99ba
Author:marbar3778

Merge branch 'main' into marko/update_spec

Commit:d8cd0a5
Author:Justin Kilpatrick
Committer:Justin Kilpatrick

Oracle for valset rewards This patch adds oracle support for validator set update rewards. What this does functionally is allow us to keep the number of tokens in the keeper consistent with what we actually have in the bridge. Even if we're issuing tokens on Ethereum for the first time or spending Ethereum denominated assets to fund validator set updates.

Commit:4b57694
Author:Justin Kilpatrick
Committer:Justin Kilpatrick

Add valset reward to x/gravity This changes the proto representation of the validator set reward to include the token and amount of the reward. Whith special values of zero representing 'no reward'.

Commit:a5b4568
Author:Jack Zampolin

WIP event/attestation flow refactor feat @jtremback

Commit:3dae047
Author:Jack Zampolin

WIP attestation reimplementation feat @jtremback

Commit:4eae29c
Author:Jack Zampolin

'Working' confirm flow

Commit:8ffa364
Author:Jack Zampolin

WIP confirm flow

Commit:38e2997
Author:Federico Kunze

set confirm

Commit:35627b1
Author:Jack Zampolin

WIP state additions

Commit:2a256ad
Author:Jack Zampolin

Add queries for delegate keys and also add index for map[ethaddr]orchaddr

Commit:eec507f
Author:Federico Kunze

update confirm

Commit:bb70046
Author:Federico Kunze

fix signer set