Skip to content

Commit

Permalink
Fix Post Responses (#222)
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 May 20, 2024
1 parent 1322f74 commit e46f6ce
Show file tree
Hide file tree
Showing 33 changed files with 445 additions and 659 deletions.
19 changes: 11 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docs/pages/evm/integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ HyperUSD (FeeToken): [`0x6df8dE86458D15a3Be3A6B907e6aE6B7af352452`](https://cont

| Network | `HandlerV1` | `IsmpHost` |
|:-------------------|:--------------|:-----|
|Ethereum Sepolia | [`0x12122B8E2E1e24345161A2433fF2d91Fca123FAe`](https://sepolia.etherscan.io/address/0x12122B8E2E1e24345161A2433fF2d91Fca123FAe) | [`0x705ba08d072f26bB92C8f71B7E37a3c7aEA5Ecb1`](https://sepolia.etherscan.io/address/0x705ba08d072f26bB92C8f71B7E37a3c7aEA5Ecb1) |
|Arbitrum Sepolia | [`0x3F50392A707B1b77500485b4539C96f3A4311798`](https://sepolia.arbiscan.io/address/0x3F50392A707B1b77500485b4539C96f3A4311798) | [`0xba4deE7C228cB81DB2f7a05CA27444d9a20f4A41`](https://sepolia.arbiscan.io/address/0xba4deE7C228cB81DB2f7a05CA27444d9a20f4A41) |
|Optimism Sepolia | [`0xBE5Ea8A28D5AB4e96532c85F078d83E138EC8d44`](https://sepolia-optimism.etherscan.io/address/0xBE5Ea8A28D5AB4e96532c85F078d83E138EC8d44) | [`0x98A6A9c780D7d54aEF9aBd08c55C9ADc17de48A0`](https://sepolia-optimism.etherscan.io/address/0x98A6A9c780D7d54aEF9aBd08c55C9ADc17de48A0) |
|Base Sepolia | [`0xD61AA09E97cdFF33CCd7f7Da463b95caf6DB79f5`](https://sepolia.basescan.org/address/0xD61AA09E97cdFF33CCd7f7Da463b95caf6DB79f5) | [`0x75Df12dc3e0a32f69DD0F7470dE4eFF5D75C72b0`](https://sepolia.basescan.org/address/0x75Df12dc3e0a32f69DD0F7470dE4eFF5D75C72b0) |
|Bsc Testnet | [`0x13463B01CE69F8B5279c5922D38EB1073503e87b`](https://testnet.bscscan.com/address/0x13463B01CE69F8B5279c5922D38EB1073503e87b) | [`0x1488f22baf2027D6e28D79b6F38EB2CfdfE48d62`](https://testnet.bscscan.com/address/0x1488f22baf2027D6e28D79b6F38EB2CfdfE48d62) |
|Ethereum Sepolia | [`0x7fa6f643A1a522D35058FEE753DA027d25Ea601f`](https://sepolia.etherscan.io/address/0x7fa6f643A1a522D35058FEE753DA027d25Ea601f) | [`0xbDFa473d7E483e088348e071480B624A248b2fC4`](https://sepolia.etherscan.io/address/0xbDFa473d7E483e088348e071480B624A248b2fC4) |
|Arbitrum Sepolia | [`0xc31cc2Fd516a90188a3ECA5cbd757E21DDa84c7b`](https://sepolia.arbiscan.io/address/0xc31cc2Fd516a90188a3ECA5cbd757E21DDa84c7b) | [`0xC98976841a69Ce52d4D17B286A1698963E847982`](https://sepolia.arbiscan.io/address/0xC98976841a69Ce52d4D17B286A1698963E847982) |
|Optimism Sepolia | [`0x6DbcA7CAEBd47D377E230ec3EFaBDdf0A7afA395`](https://sepolia-optimism.etherscan.io/address/0x6DbcA7CAEBd47D377E230ec3EFaBDdf0A7afA395) | [`0x0D811D581D615AA44A36aa638825403F9b434E18`](https://sepolia-optimism.etherscan.io/address/0x0D811D581D615AA44A36aa638825403F9b434E18) |
|Base Sepolia | [`0xCF98639715DA2cDb81C18C51713Cb146455252d0`](https://sepolia.basescan.org/address/0xCF98639715DA2cDb81C18C51713Cb146455252d0) | [`0x7FaBb96851517583eA7df7d6e9Dd28afc2fA38f5`](https://sepolia.basescan.org/address/0x7FaBb96851517583eA7df7d6e9Dd28afc2fA38f5) |
|Bsc Testnet | [`0xBA82A7c413BfbE26ee025DA221088319b895A8E6`](https://testnet.bscscan.com/address/0xBA82A7c413BfbE26ee025DA221088319b895A8E6) | [`0xE6bd95737DD35Fd0e5f134771A832405671f06e9`](https://testnet.bscscan.com/address/0xE6bd95737DD35Fd0e5f134771A832405671f06e9) |

PingModule: [`0xb51d235CF4461D17FEA88733fed1865873c8D686`](https://contractscan.xyz/contract/0xb51d235CF4461D17FEA88733fed1865873c8D686)
PingModule: [`0x9Cc29770F3d643F4094Ee591f3D2E3c98C349761`](https://contractscan.xyz/contract/0x9Cc29770F3d643F4094Ee591f3D2E3c98C349761)

TokenGateway: [`0xD79B936FEe38e86D4b98818773781fa33DB6d945`](https://contractscan.xyz/contract/0xD79B936FEe38e86D4b98818773781fa33DB6d945)
TokenGateway: [`0x08BB29A013469F543575a958ff460Ea6E0510e83`](https://contractscan.xyz/contract/0x08BB29A013469F543575a958ff460Ea6E0510e83)

TokenFaucet: [`0x71FDAa6d246ac7059874580246c608307831970d`](https://contractscan.xyz/contract/0x71FDAa6d246ac7059874580246c608307831970d)
TokenFaucet: [`0x5DB219e4A535E211a70DA94BaFa291Fc1a51f865`](https://contractscan.xyz/contract/0x5DB219e4A535E211a70DA94BaFa291Fc1a51f865)

HyperUSD (FeeToken): [`0xe189D60BCc6114C7cd4F0B9a94C826FAe9D9b078`](https://contractscan.xyz/contract/0xe189D60BCc6114C7cd4F0B9a94C826FAe9D9b078)
HyperUSD (FeeToken): [`0x6B0e814557b15D67db6F0F147702d209DBEd8D1A`](https://contractscan.xyz/contract/0x6B0e814557b15D67db6F0F147702d209DBEd8D1A)
16 changes: 8 additions & 8 deletions docs/pages/network/relayer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,22 @@ delivery_endpoints = [
# Here you'll declare a new chain entry for every chain you want to support.
# eg ethereum
[ethereum]
# configuration type can be "evm" or "substrate"
# configuration type can be either "evm" or "substrate"
type = "evm"
# State machine identifier for the this evm chain. The possible values:
# - { Ethereum = "ExecutionLayer" } # Ethereum L1
# - { Ethereum = "Arbitrum" }
# - { Ethereum = "Optimism" }
# - { Ethereum = "Base" }
# - "Bsc" # Binance smart chain
state_machine = "Bsc"
# state_machine = { Ethereum = "ExecutionLayer" } # Ethereum L1
# state_machine = { Ethereum = "Arbitrum" }
# state_machine = { Ethereum = "Optimism" }
# state_machine = { Ethereum = "Base" }
# state_machine = "Bsc" # Binance smart chain
state_machine = { Ethereum = "ExecutionLayer" }
# http(s) rpc urls for evm based chains
# Multiple rpc endpoints supported for increased reliability
rpc_urls = ["http://127.0.0.1:8545", ""]
# The consensus state identifier for this chain on hyperbridge.
# For Ethereum and it's L2s this will be "ETH0", for BSC this will be "BSC0".
consensus_state_id = "ETH0"
# etherscan api key for querying the state machine's native token price.
# Etherscan api key for querying the state machine's native token price.
# Do not that ethereum and all it's L2's use ETH as the native token
# So they can all share the same key gotten from etherscan.
#
Expand Down
14 changes: 8 additions & 6 deletions evm/abi/src/generated/evm_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ pub mod evm_host {
),
::ethers::core::abi::ethabi::ParamType::Uint(64usize),
::ethers::core::abi::ethabi::ParamType::Address,
::ethers::core::abi::ethabi::ParamType::Uint(256usize),
],
),
internal_type: ::core::option::Option::Some(
Expand Down Expand Up @@ -1893,13 +1894,13 @@ pub mod evm_host {
.method_hash([184, 243, 232, 245], (post,))
.expect("method not found (this should never happen)")
}
///Calls the contract's `dispatch` (0xd0dd5904) function
///Calls the contract's `dispatch` (0xdab0feae) function
pub fn dispatch_with_get(
&self,
get: DispatchGet,
) -> ::ethers::contract::builders::ContractCall<M, [u8; 32]> {
self.0
.method_hash([208, 221, 89, 4], (get,))
.method_hash([218, 176, 254, 174], (get,))
.expect("method not found (this should never happen)")
}
///Calls the contract's `dispatchIncoming` (0x4e9b74ec) function
Expand Down Expand Up @@ -2764,7 +2765,7 @@ pub mod evm_host {
pub post: DispatchPost,
}
///Container type for all input parameters for the `dispatch` function with signature
/// `dispatch((bytes,uint64,bytes[],uint64,address))` and selector `0xd0dd5904`
/// `dispatch((bytes,uint64,bytes[],uint64,address,uint256))` and selector `0xdab0feae`
#[derive(
Clone,
::ethers::contract::EthCall,
Expand All @@ -2775,7 +2776,7 @@ pub mod evm_host {
Eq,
Hash,
)]
#[ethcall(name = "dispatch", abi = "dispatch((bytes,uint64,bytes[],uint64,address))")]
#[ethcall(name = "dispatch", abi = "dispatch((bytes,uint64,bytes[],uint64,address,uint256))")]
pub struct DispatchWithGetCall {
pub get: DispatchGet,
}
Expand Down Expand Up @@ -4002,7 +4003,7 @@ pub mod evm_host {
pub commitment: [u8; 32],
}
///Container type for all return fields from the `dispatch` function with signature
/// `dispatch((bytes,uint64,bytes[],uint64,address))` and selector `0xd0dd5904`
/// `dispatch((bytes,uint64,bytes[],uint64,address,uint256))` and selector `0xdab0feae`
#[derive(
Clone,
::ethers::contract::EthAbiType,
Expand Down Expand Up @@ -4225,7 +4226,7 @@ pub mod evm_host {
Hash,
)]
pub struct UnStakingPeriodReturn(pub ::ethers::core::types::U256);
///`DispatchGet(bytes,uint64,bytes[],uint64,address)`
///`DispatchGet(bytes,uint64,bytes[],uint64,address,uint256)`
#[derive(
Clone,
::ethers::contract::EthAbiType,
Expand All @@ -4242,6 +4243,7 @@ pub mod evm_host {
pub keys: ::std::vec::Vec<::ethers::core::types::Bytes>,
pub timeout: u64,
pub sender: ::ethers::core::types::Address,
pub fee: ::ethers::core::types::U256,
}
///`DispatchPost(bytes,bytes,bytes,uint64,uint256,address)`
#[derive(
Expand Down
Loading

0 comments on commit e46f6ce

Please sign in to comment.