-
Notifications
You must be signed in to change notification settings - Fork 690
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
Set Sui package manifest to pass source verification #3731
base: sui/testnet
Are you sure you want to change the base?
Changes from all commits
41543c8
b7ec84c
5fd439b
510881b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "Wormhole" | ||
version = "0.1.2" | ||
published-at = "0x3542d705ec6a7e05045288ec99a6c4b4e3ded999b6feab720fab535b08fa51f8" | ||
version = "0.2.0" | ||
published-at = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94" | ||
|
||
[dependencies.Sui] | ||
git = "https://github.com/MystenLabs/sui.git" | ||
subdir = "crates/sui-framework/packages/sui-framework" | ||
rev = "09b2081498366df936abae26eea4b2d5cafb2788" | ||
|
||
[addresses] | ||
wormhole = "0x15e1e51cb59fe1f987b037da12745a278855c8ac73050f4f194466096a0ca05b" | ||
wormhole = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
[package] | ||
name = "Wormhole" | ||
version = "0.2.0" | ||
published-at = "0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The address I see in the testnet branch is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's interesting. Indeed, I changed In fact, at Aftermath we've been using Would be good to clarify what's the official version. |
||
|
||
[dependencies.Sui] | ||
git = "https://github.com/MystenLabs/sui.git" | ||
subdir = "crates/sui-framework/packages/sui-framework" | ||
rev = "09b2081498366df936abae26eea4b2d5cafb2788" | ||
rev = "framework/testnet" | ||
|
||
[addresses] | ||
wormhole = "_" | ||
|
||
[dev-addresses] | ||
wormhole = "0x100" | ||
wormhole = "0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e" |
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.
might be best to keep these dependencies pinned to a commit hash
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.
We have to take into account that
Sui
(along withMoveStdlib
at "0x1"AFAIK) is a special package which can be upgraded onchain 'in-place'
(unlike regular Move package upgrades on Sui that in effect create a new
package with a new address.)
The advantage of using
framework/testnet
is that the compiler willautomatically fetch the
Sui
package that's currently on testnet, hencesource verification will succeed.
However, let's say we published the package in the past and set
Sui
to
testnet-v1.17.1
in the manifest. Verification could fail in thefuture to to upgrades to the
Sui
package.For all other packages, it definitely makes sense to pin them to a
commit/tag.