-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
d307b4b
to
b893dcd
Compare
b893dcd
to
cbe1b3c
Compare
5e12e69
to
7f68583
Compare
cbe1b3c
to
886adf6
Compare
7f68583
to
5e12e69
Compare
886adf6
to
cbe1b3c
Compare
5e12e69
to
2b027ec
Compare
cbe1b3c
to
f0609fc
Compare
2b027ec
to
7fafeec
Compare
f0609fc
to
b6fe533
Compare
7fafeec
to
2b027ec
Compare
b6fe533
to
f0609fc
Compare
2b027ec
to
d0153c2
Compare
d94ac57
to
67b5a3b
Compare
9aff9d6
to
2c22b6f
Compare
2c22b6f
to
9660fa9
Compare
e156af9
to
59751b0
Compare
694e214
to
b3cdf37
Compare
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments and nitpicks. And a discussion point.
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! LGTM. Really looking forward to the refactor so we can simplify the code a bit:)
int64 constant DEFAULT_CHECKPOINT_PERIOD = 10; | ||
|
||
/// @notice minimum amount of wei to register a subnet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should check this once we try to deploy the smart contract in Filecoin, but I don't know how are Filecoin units when sent in a payable transaction considered by the smart contract. Maybe we should use the Filecoin Solidity type for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fevmate library has a WFIL implementation that is an ERC20 with 18 decimals, same as ether. This brings me to the thought that if wrapped FIL has 18 decimals the native one may have 18 as well?
|
||
IPCMsgType applyType = crossMsg.message.applyType(networkName); | ||
|
||
if (crossMsg.message.to.subnetId.equals(networkName)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (crossMsg.message.to.subnetId.equals(networkName)) { | |
// If the cross-message destination is the current network. | |
if (crossMsg.message.to.subnetId.equals(networkName)) { |
|
||
return crossMsg.execute(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// when the destination is not the current network we add it to the postbox for further propagation |
function _bottomUpStateTransition( | ||
StorableMsg calldata storableMsg | ||
) internal { | ||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot how horrible this piece of code was 🤦 This will be significantly simplified after the refactor. The behavior is the same as with top-down messages where there is a unique nonce for each cross-net message, and for each subnet (instead of having to aggregate them as we do now)
Signed-off-by: Anton Rusev <anton.rusev@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful :)
applyMsg
method that triggers the execution of a cross-subnet messagesystem actor
validationpostbox
storage