Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Integrate messager facet #279

Merged
merged 4 commits into from
Aug 7, 2023
Merged

Integrate messager facet #279

merged 4 commits into from
Aug 7, 2023

Conversation

cryptoAtwill
Copy link
Contributor

Integrate messager facet from the latest solidity contract. Also removing the deprecated whitelist propagator.

@cryptoAtwill cryptoAtwill requested a review from adlrocha August 7, 2023 03:16
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

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

A few things before we merge:

  • I wouldn't expose publicly in the CLI sendCross to users as it may be quite confusing. Initially, we are thinking as sendCross to be a function only called by smart contracts in a subnet. This may change in the future, but as we haven't tested it yet, I would keep it "out of sight" for now :)
  • I think it makes more sense for the argument of propagate to be a cid instead of Vec<u8> if under the hood we are using a cid. I see that in the contract implementation we expect a bytes, maybe we should double check if this is a hash or a cid and do accordingly (the only issue will arise in the interoperability between native and Solidity contracts, as always).

Apart from this, if the e2e lifecycle of subnets and fund/release work we can get this merged.

src/cli/commands/crossmsg/mod.rs Outdated Show resolved Hide resolved
src/cli/commands/crossmsg/send_cross.rs Outdated Show resolved Hide resolved
}

async fn whitelist_propagator(
async fn set_validator_net_addr(
Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm, why is this one not implemented yet? This is something that users currently need, we should get this one implemented (I didn't know this wasn't the case).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method is not implemented yet in the contract.

src/manager/fvm/mod.rs Outdated Show resolved Hide resolved
src/manager/subnet.rs Outdated Show resolved Hide resolved
@adlrocha adlrocha merged commit b570ae3 into dev Aug 7, 2023
@adlrocha adlrocha deleted the message-facet branch August 7, 2023 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants