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

Implement mailbox process #17

Merged
merged 34 commits into from
Dec 21, 2022
Merged

Implement mailbox process #17

merged 34 commits into from
Dec 21, 2022

Conversation

yorhodes
Copy link
Member

@yorhodes yorhodes commented Dec 6, 2022

Fixes #5
Touches #28

@yorhodes yorhodes requested a review from tkporter December 6, 2022 23:57
Copy link
Collaborator

@tkporter tkporter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would love to ship this with tests. May require creating some MockRecipients - I haven't thought about the best way to test this yet so lmk if you wanna talk through it at all

hyperlane-mailbox/src/main.sw Outdated Show resolved Hide resolved
hyperlane-mailbox/src/main.sw Outdated Show resolved Hide resolved
@yorhodes yorhodes force-pushed the yorhodes/multisig-ism branch from fb68bc9 to 4913a82 Compare December 9, 2022 18:52
@yorhodes yorhodes force-pushed the yorhodes/mailbox-process branch from fe1d911 to dc7cf39 Compare December 9, 2022 21:36
@yorhodes yorhodes marked this pull request as ready for review December 12, 2022 16:29
@yorhodes yorhodes force-pushed the yorhodes/multisig-ism branch from 6b4dbcf to c6aac86 Compare December 13, 2022 20:38
@yorhodes yorhodes force-pushed the yorhodes/mailbox-process branch from 2eab1e2 to 6b7ce79 Compare December 13, 2022 20:42
Copy link
Collaborator

@tkporter tkporter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lfg, looks great

Waiting to approve till tests 🤓

@@ -22,9 +23,15 @@ const VERSION: u8 = 0;
// "fuel" in bytes
const LOCAL_DOMAIN: u32 = 0x6675656cu32;

const ZERO_ID: ContractId = ContractId {
value: 0x0000000000000000000000000000000000000000000000000000000000000000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use ZERO_B256 here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant to change this to ZERO_B256 because of the import?

hyperlane-mailbox/src/main.sw Show resolved Hide resolved
hyperlane-mailbox/src/interface.sw Outdated Show resolved Hide resolved
@yorhodes yorhodes force-pushed the yorhodes/mailbox-process branch from c3c3467 to efdb340 Compare December 15, 2022 21:08
@yorhodes yorhodes changed the base branch from yorhodes/multisig-ism to main December 15, 2022 21:08
* Add interfaces pkg and make multisig ism compat

* Make ISM verify write
build.sh Outdated Show resolved Hide resolved
hyperlane-mailbox/src/main.sw Show resolved Hide resolved
hyperlane-mailbox/tests/harness.rs Outdated Show resolved Hide resolved
hyperlane-mailbox/tests/harness.rs Outdated Show resolved Hide resolved
build.sh Outdated Show resolved Hide resolved
hyperlane-mailbox/tests/harness.rs Outdated Show resolved Hide resolved
hyperlane-mailbox/tests/harness.rs Outdated Show resolved Hide resolved
@yorhodes yorhodes force-pushed the yorhodes/mailbox-process branch from 872bdde to 63f098f Compare December 19, 2022 19:44
Copy link
Collaborator

@tkporter tkporter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job, this looks great - really loving the new repo structure & CI as well

@@ -22,9 +23,15 @@ const VERSION: u8 = 0;
// "fuel" in bytes
const LOCAL_DOMAIN: u32 = 0x6675656cu32;

const ZERO_ID: ContractId = ContractId {
value: 0x0000000000000000000000000000000000000000000000000000000000000000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant to change this to ZERO_B256 because of the import?

hyperlane-mailbox/src/main.sw Show resolved Hide resolved
test-utils/src/lib.rs Outdated Show resolved Hide resolved
hyperlane-mailbox/tests/harness.rs Show resolved Hide resolved
hyperlane-interfaces/src/main.sw Show resolved Hide resolved
@yorhodes yorhodes merged commit 476a9d2 into main Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mailbox: process messages & add default ISM
2 participants