Skip to content

Commit

Permalink
Merge commit 'a1bd8866ad7156cf83202b993aee543f389558a7' into debug
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Jun 17, 2024
2 parents 697f1f8 + a1bd886 commit 3ee462e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
14 changes: 13 additions & 1 deletion script/BaseMultiChainDeployer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ contract BaseMultiChainDeployer is Script {
Base,
Blast,
Optimism,
SEI,
XAI,
// Testnets
Sepolia,
BaseSepolia,
ArbitrumSepolia,
OptimismSepolia,
BlastTestnet
BlastTestnet,
SEIDevnet
}

mapping(Chains => string) public chainKey;
Expand All @@ -49,6 +52,12 @@ contract BaseMultiChainDeployer is Script {
chainKey[Chains.Optimism] = "optimism";
chain_list.push(Chains.Optimism);

chainKey[Chains.SEI] = "sei";
chain_list.push(Chains.SEI);

chainKey[Chains.XAI] = "xai";
chain_list.push(Chains.XAI);

chainKey[Chains.Sepolia] = "sepolia";
chain_list_testnet.push(Chains.Sepolia);

Expand All @@ -64,6 +73,9 @@ contract BaseMultiChainDeployer is Script {
chainKey[Chains.BlastTestnet] = "blasttestnet";
chain_list_testnet.push(Chains.BlastTestnet);

chainKey[Chains.SEIDevnet] = "seidevnet";
chain_list_testnet.push(Chains.SEIDevnet);

// ADD: To deploy Generalised Incentives to a new chain, add 2 lines above this comment:
// chainKey[Chains.OptimismSepolia] = "optimismsepolia"; // What is the external key used to identify this chain? Please add it to .env.example for an RPC key.
// chain_list.push(Chains.OptimismSepolia); // Is the chain legacy, please specify by pushing to the correct list?
Expand Down
8 changes: 6 additions & 2 deletions script/bridge_contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@
"LayerZero": {
"basesepolia": {
"bridge": "0x6EDCE65403992e310A62460808c4b910D972f10f",
"escrow": "0xDb93559e30F5A3845438DDcf7Ca8A2D6D9005d30"
"escrow": "0xbA6f62a6539e4Bc11d2A8B1C760b5a1097c6cF6B"
},
"optimismsepolia": {
"bridge": "0x6EDCE65403992e310A62460808c4b910D972f10f",
"escrow": "0xDb93559e30F5A3845438DDcf7Ca8A2D6D9005d30"
"escrow": "0xbA6f62a6539e4Bc11d2A8B1C760b5a1097c6cF6B"
},
"seidevnet": {
"bridge": "0x6EDCE65403992e310A62460808c4b910D972f10f",
"escrow": "0xbA6f62a6539e4Bc11d2A8B1C760b5a1097c6cF6B"
}
}
}
5 changes: 2 additions & 3 deletions src/interfaces/IIncentivizedMessageEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ interface IIncentivizedMessageEscrow is IMessageEscrowStructs, IMessageEscrowErr
function processPacket(bytes calldata messagingProtocolContext, bytes calldata message, bytes32 feeRecipient) payable external;

function setRemoteImplementation(bytes32 chainIdentifier, bytes calldata implementation) external;

/**
* @notice Estimates the additional cost to the messaging router to validate the message
* @param destinationChainIdentifier Destination chain. Some messaging protocols have chain based costs.
* @return asset The asset the token is in. If native token, returns address(0);
* @return amount The number of assets to pay.
*/
function estimateAdditionalCost(bytes32 destinationChainIdentifier) external view returns(address asset, uint256 amount);
function estimateAdditionalCost() external view returns(address asset, uint256 amount);

function timeoutMessage(
bytes32 sourceIdentifier,
Expand Down

0 comments on commit 3ee462e

Please sign in to comment.