Skip to content

Commit

Permalink
initial support for Penumbra chains in Hermes
Browse files Browse the repository at this point in the history
Co-Authored-By: Conor Schaefer <[email protected]>
Co-Authored-By: Ava Howell <[email protected]>

add verify_header impl

add detect_misbehavior

add query_clients

add abci_query capability

implement query_consensus_state

implement query_connections

implement query_client_connections

implement query_connection_channels

implement query_channels

implement query_channel

implement query_channel_client_state

implement query_packet_commitment

implement query_packet_commitments

implement query_packet_receipt

implement query_unreceived_packets

implement query_packet_acknowledgement

implement query_packet_acknowledgements

implement query_unreceived_acknowledgements

implement query_next_sequence_receive

add config.toml, fill out more implementation

Co-Authored-By: Henry de Valence <[email protected]>

implement do_send_messages_and_wait_commit, working create_client

handshake is working now

implement event source, client connections query

add osmosis testnet relayer config

add query_packet_events

add config for devnet relaying

addd do_send_messages_and_wait_check_tx

use git repo instead of path

cleanup

copy impl of query_txs

clean up warnings, split off into query.rs and proofspec.rs

break out penumbra tx mod
  • Loading branch information
hdevalence authored and conorsch committed Sep 25, 2023
1 parent 6113050 commit 648cbb1
Show file tree
Hide file tree
Showing 21 changed files with 3,694 additions and 765 deletions.
1,861 changes: 1,458 additions & 403 deletions Cargo.lock

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions config-devnet-osmosis.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[global]
log_level = 'debug'

[mode]

[mode.clients]
enabled = true
refresh = true
misbehaviour = false

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = true

[telemetry]
enabled = true
host = '127.0.0.1'
port = 3001

[[chains]]
id = 'penumbra-testnet-tethys-8777cb20'
type = 'penumbra'
rpc_addr = 'http://localhost:26657'
grpc_addr = 'http://localhost:8080'
event_source = { mode = 'pull', interval = '1s' }
rpc_timeout = '15s'
account_prefix = 'fake' # not used
key_name = 'penumbra-wallet'
store_prefix = '' # not used, the commitment prefix for penumbra IBC is PenumbraAppHash
gas_price = { price = 1, denom = 'upenumbra' } # not used
max_gas = 10000000 # not used
clock_drift = '5s'
trusting_period = '2h' # this should be changed in the future
trust_threshold = { numerator = '1', denominator = '3' }


[[chains]]
id = 'osmo-test-5'
type = 'cosmos-sdk'
rpc_addr = 'https://rpc.testnet.osmosis.zone'
grpc_addr = 'https://grpc.testnet.osmosis.zone'
event_source = { mode = 'pull', interval = '1s' }
rpc_timeout = '15s'
account_prefix = 'osmo' # not used
key_name = 'osmosis'
store_prefix = 'ibc' # not used, the commitment prefix for penumbra IBC is PenumbraAppHash
gas_price = { price = 0.0026, denom = 'uosmo' }
gas_multiplier = 1.1
clock_drift = '20s'
max_block_time = '10s'
trusting_period = '1days'
memo_prefix = 'Hello from Penumbra 😎🌘'
trust_threshold = { numerator = '1', denominator = '3' }
61 changes: 61 additions & 0 deletions config-osmosistestnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[global]
log_level = 'debug'

[mode]

[mode.clients]
enabled = true
refresh = true
misbehaviour = false

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = true

[telemetry]
enabled = true
host = '127.0.0.1'
port = 3001

[[chains]]
id = 'penumbra-testnet-tethys'
type = 'penumbra'
rpc_addr = 'https://rpc.testnet.penumbra.zone'
grpc_addr = 'https://grpc.testnet.penumbra.zone'
event_source = { mode = 'pull', interval = '1s' }
rpc_timeout = '15s'
account_prefix = 'fake' # not used
key_name = 'penumbra-wallet'
store_prefix = '' # not used, the commitment prefix for penumbra IBC is PenumbraAppHash
gas_price = { price = 1, denom = 'upenumbra' } # not used
max_gas = 10000000 # not used
clock_drift = '5s'
trusting_period = '2h' # this should be changed in the future
trust_threshold = { numerator = '1', denominator = '3' }


[[chains]]
id = 'osmo-test-5'
type = 'cosmos-sdk'
rpc_addr = 'https://rpc.testnet.osmosis.zone'
grpc_addr = 'https://grpc.testnet.osmosis.zone'
event_source = { mode = 'pull', interval = '1s' }
rpc_timeout = '15s'
account_prefix = 'osmo' # not used
key_name = 'osmosis'
store_prefix = 'ibc' # not used, the commitment prefix for penumbra IBC is PenumbraAppHash
gas_price = { price = 0.0026, denom = 'uosmo' }
gas_multiplier = 1.1
clock_drift = '20s'
max_block_time = '10s'
trusting_period = '1days'
memo_prefix = 'Osmosis Docs Rocks'
trust_threshold = { numerator = '1', denominator = '3' }
Loading

0 comments on commit 648cbb1

Please sign in to comment.