-
Notifications
You must be signed in to change notification settings - Fork 232
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
Move warp payload to avalanchego #923
Conversation
742ed5e
to
8bd462d
Compare
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.
could we change the target branch from master
to warp-remove-destinationChainID-destinationAddress
?
@ceyonur done. |
db45c01
to
d74711b
Compare
I've added a DO NOT MERGE tag. We can remove once this is unblocked. |
d74711b
to
e2f1728
Compare
7d8eaa9
to
82e7cff
Compare
fd00831
to
8d8de76
Compare
549f9f5
to
7261bfa
Compare
Converting to a draft until ava-labs/avalanchego#2116 is merged |
x/warp/contract_warp_handler.go
Outdated
} | ||
return PackGetVerifiedWarpMessageOutput(GetVerifiedWarpMessageOutput{ | ||
Message: WarpMessage{ | ||
SourceChainID: common.Hash(warpMessage.SourceChainID), | ||
OriginSenderAddress: addressedPayload.SourceAddress, | ||
Payload: addressedPayload.Payload, | ||
OriginSenderAddress: common.BytesToAddress(addressedCall.SourceAddress), |
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.
Will make a follow up PR to switch from converting the bytes to an address to exposing the byte array directly to the caller and changing the Warp Solidity contract interface.
We can undraft this after #952 |
a705b1f
to
05b25a0
Compare
05b25a0
to
b08dcef
Compare
@ceyonur @aaronbuchwald This is ready for another round of reviews |
tests/warp/warp_test.go
Outdated
@@ -21,6 +21,7 @@ import ( | |||
"github.com/ava-labs/avalanchego/utils/crypto/bls" | |||
"github.com/ava-labs/avalanchego/utils/set" | |||
avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" | |||
avalancheWarpPayload "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" |
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.
q: why we need the alias? Can't we use payload
as package name?
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.
only a question about the package alias. Not sure we need to remark payload is an avalanche package in the package alias
The alias is not longer needed
Why this should be merged
This fixes ava-labs/avalanchego#2050 and ava-labs/avalanchego#2116
ava-labs/avalanchego#2116 and #920 should be merged before this PR
How this works
How this was tested
How is this documented