Skip to content

Commit

Permalink
update hyperbridge (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: David Salami <[email protected]>
  • Loading branch information
seunlanlege and Wizdave97 authored Dec 23, 2023
1 parent 1acb5a9 commit 014aafd
Show file tree
Hide file tree
Showing 15 changed files with 7,158 additions and 2,538 deletions.
2,524 changes: 1,490 additions & 1,034 deletions Cargo.lock

Large diffs are not rendered by default.

3,347 changes: 3,347 additions & 0 deletions ethereum/evm/abis/CrossChainMessenger.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ethereum/evm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fn main() -> anyhow::Result<()> {
("L2OutputOracle", format!("{base_dir}/abis/L2OutputOracle.json")),
("IRollup", format!("{base_dir}/abis/IRollupCore.json")),
("PingModule", format!("{base_dir}/abis/PingModule.json")),
("CrossChainMessenger", format!("{base_dir}/abis/CrossChainMessenger.json")),
];

MultiAbigen::new(sources)
Expand Down
10 changes: 5 additions & 5 deletions ethereum/evm/src/abi/beefy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,26 +586,26 @@ pub mod beefy {
if let Ok(decoded) =
<AuraConsensusIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::AuraConsensusId(decoded))
return Ok(Self::AuraConsensusId(decoded));
}
if let Ok(decoded) =
<IsmpConsensusIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::IsmpConsensusId(decoded))
return Ok(Self::IsmpConsensusId(decoded));
}
if let Ok(decoded) =
<MmrRootPayloadIdCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::MmrRootPayloadId(decoded))
return Ok(Self::MmrRootPayloadId(decoded));
}
if let Ok(decoded) = <SlotDurationCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SlotDuration(decoded))
return Ok(Self::SlotDuration(decoded));
}
if let Ok(decoded) =
<VerifyConsensusCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::VerifyConsensus(decoded))
return Ok(Self::VerifyConsensus(decoded));
}
if let Ok(decoded) = <VerifyConsensusWithEncodedStateAndEncodedProofCall as ::ethers::core::abi::AbiDecode>::decode(
data,
Expand Down
781 changes: 781 additions & 0 deletions ethereum/evm/src/abi/cross_chain_messenger.rs

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions ethereum/evm/src/abi/i_ismp_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1297,13 +1297,13 @@ pub mod i_ismp_host {
log: &::ethers::core::abi::RawLog,
) -> ::core::result::Result<Self, ::ethers::core::abi::Error> {
if let Ok(decoded) = GetRequestEventFilter::decode_log(log) {
return Ok(IIsmpHostEvents::GetRequestEventFilter(decoded))
return Ok(IIsmpHostEvents::GetRequestEventFilter(decoded));
}
if let Ok(decoded) = PostRequestEventFilter::decode_log(log) {
return Ok(IIsmpHostEvents::PostRequestEventFilter(decoded))
return Ok(IIsmpHostEvents::PostRequestEventFilter(decoded));
}
if let Ok(decoded) = PostResponseEventFilter::decode_log(log) {
return Ok(IIsmpHostEvents::PostResponseEventFilter(decoded))
return Ok(IIsmpHostEvents::PostResponseEventFilter(decoded));
}
Err(::ethers::core::abi::Error::InvalidData)
}
Expand Down Expand Up @@ -1911,155 +1911,155 @@ pub mod i_ismp_host {
) -> ::core::result::Result<Self, ::ethers::core::abi::AbiError> {
let data = data.as_ref();
if let Ok(decoded) = <AdminCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Admin(decoded))
return Ok(Self::Admin(decoded));
}
if let Ok(decoded) =
<ChallengePeriodCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ChallengePeriod(decoded))
return Ok(Self::ChallengePeriod(decoded));
}
if let Ok(decoded) =
<ConsensusClientCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ConsensusClient(decoded))
return Ok(Self::ConsensusClient(decoded));
}
if let Ok(decoded) =
<ConsensusStateCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ConsensusState(decoded))
return Ok(Self::ConsensusState(decoded));
}
if let Ok(decoded) =
<ConsensusUpdateTimeCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ConsensusUpdateTime(decoded))
return Ok(Self::ConsensusUpdateTime(decoded));
}
if let Ok(decoded) = <DispatchCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Dispatch(decoded))
return Ok(Self::Dispatch(decoded));
}
if let Ok(decoded) =
<DispatchWithResponseCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchWithResponse(decoded))
return Ok(Self::DispatchWithResponse(decoded));
}
if let Ok(decoded) =
<DispatchWithRequestCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchWithRequest(decoded))
return Ok(Self::DispatchWithRequest(decoded));
}
if let Ok(decoded) =
<DispatchIncoming0Call as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchIncoming0(decoded))
return Ok(Self::DispatchIncoming0(decoded));
}
if let Ok(decoded) =
<DispatchIncoming1Call as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchIncoming1(decoded))
return Ok(Self::DispatchIncoming1(decoded));
}
if let Ok(decoded) =
<DispatchIncoming2Call as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchIncoming2(decoded))
return Ok(Self::DispatchIncoming2(decoded));
}
if let Ok(decoded) =
<DispatchIncoming3Call as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchIncoming3(decoded))
return Ok(Self::DispatchIncoming3(decoded));
}
if let Ok(decoded) =
<DispatchIncoming4Call as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::DispatchIncoming4(decoded))
return Ok(Self::DispatchIncoming4(decoded));
}
if let Ok(decoded) = <FrozenCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Frozen(decoded))
return Ok(Self::Frozen(decoded));
}
if let Ok(decoded) = <HostCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Host(decoded))
return Ok(Self::Host(decoded));
}
if let Ok(decoded) =
<LatestStateMachineHeightCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::LatestStateMachineHeight(decoded))
return Ok(Self::LatestStateMachineHeight(decoded));
}
if let Ok(decoded) =
<RequestCommitmentsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::RequestCommitments(decoded))
return Ok(Self::RequestCommitments(decoded));
}
if let Ok(decoded) =
<RequestReceiptsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::RequestReceipts(decoded))
return Ok(Self::RequestReceipts(decoded));
}
if let Ok(decoded) =
<ResponseCommitmentsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ResponseCommitments(decoded))
return Ok(Self::ResponseCommitments(decoded));
}
if let Ok(decoded) =
<ResponseReceiptsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::ResponseReceipts(decoded))
return Ok(Self::ResponseReceipts(decoded));
}
if let Ok(decoded) =
<SetBridgeParamsCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetBridgeParams(decoded))
return Ok(Self::SetBridgeParams(decoded));
}
if let Ok(decoded) =
<SetConsensusStateCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetConsensusState(decoded))
return Ok(Self::SetConsensusState(decoded));
}
if let Ok(decoded) =
<SetFrozenStateCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::SetFrozenState(decoded))
return Ok(Self::SetFrozenState(decoded));
}
if let Ok(decoded) =
<StateMachineCommitmentCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::StateMachineCommitment(decoded))
return Ok(Self::StateMachineCommitment(decoded));
}
if let Ok(decoded) =
<StateMachineCommitmentUpdateTimeCall as ::ethers::core::abi::AbiDecode>::decode(
data,
) {
return Ok(Self::StateMachineCommitmentUpdateTime(decoded))
return Ok(Self::StateMachineCommitmentUpdateTime(decoded));
}
if let Ok(decoded) =
<StoreConsensusStateCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::StoreConsensusState(decoded))
return Ok(Self::StoreConsensusState(decoded));
}
if let Ok(decoded) =
<StoreConsensusUpdateTimeCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::StoreConsensusUpdateTime(decoded))
return Ok(Self::StoreConsensusUpdateTime(decoded));
}
if let Ok(decoded) =
<StoreLatestStateMachineHeightCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::StoreLatestStateMachineHeight(decoded))
return Ok(Self::StoreLatestStateMachineHeight(decoded));
}
if let Ok(decoded) =
<StoreStateMachineCommitmentCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::StoreStateMachineCommitment(decoded))
return Ok(Self::StoreStateMachineCommitment(decoded));
}
if let Ok(decoded) = <StoreStateMachineCommitmentUpdateTimeCall as ::ethers::core::abi::AbiDecode>::decode(
data,
) {
return Ok(Self::StoreStateMachineCommitmentUpdateTime(decoded));
}
if let Ok(decoded) = <TimestampCall as ::ethers::core::abi::AbiDecode>::decode(data) {
return Ok(Self::Timestamp(decoded))
return Ok(Self::Timestamp(decoded));
}
if let Ok(decoded) =
<UnStakingPeriodCall as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::UnStakingPeriod(decoded))
return Ok(Self::UnStakingPeriod(decoded));
}
Err(::ethers::core::abi::Error::InvalidData.into())
}
Expand Down
Loading

0 comments on commit 014aafd

Please sign in to comment.