Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warp contract implementation #718

Merged
merged 37 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ed77e1f
Add warp contract implementation
aaronbuchwald Jul 10, 2023
15ef5de
Cleanup predicate test
aaronbuchwald Jul 11, 2023
059d7f9
Fix new function signature
aaronbuchwald Jul 11, 2023
d955a11
Replace invalid fuzz test with unit test
aaronbuchwald Jul 11, 2023
81520a5
Add chain config to enable warp API for warp e2e test
aaronbuchwald Jul 11, 2023
ee3c039
remove unused var
aaronbuchwald Jul 11, 2023
c70159e
Add experimental warning and move warp precompile to x/ package
aaronbuchwald Jul 11, 2023
6a44f20
fix warning label
aaronbuchwald Jul 11, 2023
72e0a1f
Fix warning
aaronbuchwald Jul 11, 2023
8de1e35
vm test nits
aaronbuchwald Jul 20, 2023
2c64fe6
Improve sendWarpMessenger sol comment
aaronbuchwald Jul 20, 2023
51b0dee
more vm warp test nits
aaronbuchwald Jul 20, 2023
8053091
Move warp params into params package
aaronbuchwald Jul 20, 2023
2bfd284
More vm warp test nits
aaronbuchwald Jul 20, 2023
bcef7a9
Address more PR comments
aaronbuchwald Jul 20, 2023
90adf6f
Remove triggerTx2
aaronbuchwald Jul 20, 2023
99f43c7
Add check for expected topics from sendWarpMessage log
aaronbuchwald Jul 20, 2023
70cd4ed
Merge branch 'master' into warp-contract
aaronbuchwald Jul 20, 2023
c023439
Fix config test
aaronbuchwald Jul 20, 2023
4fbb599
Fix incorrect replace
aaronbuchwald Jul 20, 2023
b4a7056
remove unnecessary echo
aaronbuchwald Jul 20, 2023
e4ae637
Address comments
aaronbuchwald Jul 21, 2023
119be31
Address comments
aaronbuchwald Jul 24, 2023
eb93a70
Address PR comments
aaronbuchwald Jul 24, 2023
533bb58
Merge branch 'master' into warp-contract
aaronbuchwald Jul 24, 2023
56d2322
Improve comments
aaronbuchwald Jul 25, 2023
9507e18
Convert [32]byte type to common.Hash
aaronbuchwald Jul 25, 2023
1ad4ea6
Add base cost for getVerifiedWarpMessage
aaronbuchwald Jul 25, 2023
471d0bd
fix require equal type check
aaronbuchwald Jul 25, 2023
d3cf0e3
merge
aaronbuchwald Jul 26, 2023
6b35ece
Fix updated awm message format
aaronbuchwald Jul 26, 2023
c64deae
Update warp message format
aaronbuchwald Jul 27, 2023
19567d8
Move IWarpMessenger.sol to interfaces/
aaronbuchwald Jul 27, 2023
26c0deb
Add newline to warp genesis
aaronbuchwald Jul 27, 2023
063a82f
uncomment assertion
aaronbuchwald Jul 27, 2023
744434c
Fix broken links in README
aaronbuchwald Jul 31, 2023
a607a84
Merge branch 'master' into warp-contract
aaronbuchwald Jul 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move IWarpMessenger.sol to interfaces/
  • Loading branch information
aaronbuchwald committed Jul 27, 2023
commit 19567d8d7ce8f48eedeef3b1682250e8b7281446
8 changes: 4 additions & 4 deletions contracts/contracts/ExampleWarp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import "./IWarpMessenger.sol";
import "./interfaces/IWarpMessenger.sol";

contract ExampleWarp {
address constant WARP_ADDRESS = 0x0200000000000000000000000000000000000005;
Expand All @@ -11,7 +11,7 @@ contract ExampleWarp {
// sendWarpMessage sends a warp message to the specified destination chain and address pair containing the payload
function sendWarpMessage(
bytes32 destinationChainID,
bytes32 destinationAddress,
address destinationAddress,
bytes calldata payload
) external {
warp.sendWarpMessage(destinationChainID, destinationAddress, payload);
ceyonur marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -21,9 +21,9 @@ contract ExampleWarp {
// validateWarpMessage retrieves the warp message attached to the transaction and verifies all of its attributes.
function validateWarpMessage(
bytes32 originChainID,
bytes32 originSenderAddress,
address originSenderAddress,
bytes32 destinationChainID,
bytes32 destinationAddress,
address destinationAddress,
bytes calldata payload
) external view {
(WarpMessage memory message, bool exists) = warp.getVerifiedWarpMessage();
Expand Down