Skip to content

Commit 7838028

Browse files
authored
Feature/add slsa and mvr info (#128)
This PR introduces SLSA (Supply-chain Levels for Software Artifacts) compliance and MVR (Move Verification Registry) provenance for verified package publishing. It also updates the Sui compiler version and refines CI workflows. ### Key Changes - **SLSA & MVR Provenance**: - Added a new GitHub workflow `.github/workflows/publish_package.yml` that utilizes the `sui-mvr-provenance` action for secure, verified deployments with SLSA Level 3 compliance. - Introduced `packages/deeptrade-core/mvr.config.json` to configure registry metadata (name, description, contact info, etc.) for the MVR. - **Sui Version Upgrade**: - Bumped the Sui version from `1.56.2` to `1.62.1` across CI configurations (`move_test.yml`) and the project lockfile. - **CI/CD Enhancements**: - Optimized triggers in `.github/workflows/move_test.yml` to specifically target relevant Move and workflow file changes. - **Contract Configuration**: - Reset the `deeptrade_core` address to `0x0` in `Move.toml`, following deployment best practices for upgrades and new builds. - **Dependency & Environment Updates**: - Updated `Move.lock` with the new compiler version and latest framework revisions. - Removed legacy environment-specific deployment IDs from `Move.lock` to ensure a clean build state. - **Documentation**: Removed the redundant `packages/deeptrade-core/README.md` to consolidate documentation within the repository root.
1 parent 2302fa1 commit 7838028

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish MVR Verified Package
2+
3+
on:
4+
# Trigger on manual button click
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
id-token: write
10+
actions: read
11+
12+
jobs:
13+
publish:
14+
# Sui MVR Provenance action (fork from https://github.com/zktx-io/sui-mvr-provenance)
15+
uses: DeeptradeProtocol/sui-mvr-provenance/.github/workflows/deploy_with_slsa3.yml@37b7f20283ad2a9a039d012722be5ebe4b4bbac2
16+
with:
17+
# Path to the folder containing your Move.toml
18+
working-directory: packages/deeptrade-core
19+
# Sui version to use for the build
20+
sui-version: "1.62.1"
21+
secrets:
22+
# Pass your deployer key into the action's expected secret name
23+
ED25519_PRIVATE_KEY: ${{ secrets.DEPLOYER_KEY }}

packages/deeptrade-core/Move.lock

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[move]
44
version = 3
5-
manifest_digest = "EC7C6207D6B902886ACC53FAE5243A118AAC1FC3BCF2B34B26A921E54A97E69B"
5+
manifest_digest = "69931A1480BE3DF484F425E055C6C764F7512F1B0D6FF5EBFE31A5313B1021A4"
66
deps_digest = "CAFAD8A7CF51067FB4358215BECB86BD100DD64E57C2AC8A7AE7D74B688F5965"
77
dependencies = [
88
{ id = "Bridge", name = "Bridge" },
@@ -16,7 +16,7 @@ dependencies = [
1616

1717
[[move.package]]
1818
id = "Bridge"
19-
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/bridge" }
19+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "4e8b6eda7d6411d80c62f39ac8a4f028e8d174c4", subdir = "crates/sui-framework/packages/bridge" }
2020

2121
dependencies = [
2222
{ id = "MoveStdlib", name = "MoveStdlib" },
@@ -26,7 +26,7 @@ dependencies = [
2626

2727
[[move.package]]
2828
id = "MoveStdlib"
29-
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/move-stdlib" }
29+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "4e8b6eda7d6411d80c62f39ac8a4f028e8d174c4", subdir = "crates/sui-framework/packages/move-stdlib" }
3030

3131
[[move.package]]
3232
id = "Pyth"
@@ -39,15 +39,15 @@ dependencies = [
3939

4040
[[move.package]]
4141
id = "Sui"
42-
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-framework" }
42+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "4e8b6eda7d6411d80c62f39ac8a4f028e8d174c4", subdir = "crates/sui-framework/packages/sui-framework" }
4343

4444
dependencies = [
4545
{ id = "MoveStdlib", name = "MoveStdlib" },
4646
]
4747

4848
[[move.package]]
4949
id = "SuiSystem"
50-
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-system" }
50+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "4e8b6eda7d6411d80c62f39ac8a4f028e8d174c4", subdir = "crates/sui-framework/packages/sui-system" }
5151

5252
dependencies = [
5353
{ id = "MoveStdlib", name = "MoveStdlib" },
@@ -91,14 +91,10 @@ dependencies = [
9191
]
9292

9393
[move.toolchain-version]
94-
compiler-version = "1.56.2"
94+
compiler-version = "1.62.1"
9595
edition = "2024.beta"
9696
flavor = "sui"
9797

9898
[env]
9999

100100
[env.mainnet]
101-
chain-id = "35834a8a"
102-
original-published-id = "0x232b6dccf004919ce5deb1a7ee3d0e9f1c71170c9402ec1918aa212754baadb3"
103-
latest-published-id = "0x232b6dccf004919ce5deb1a7ee3d0e9f1c71170c9402ec1918aa212754baadb3"
104-
published-version = "1"

packages/deeptrade-core/Move.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ multisig = { git = "https://github.com/DeeptradeProtocol/multisig-move.git", sub
1919
[addresses]
2020
# Workaround for Sui compiler bug (#22194) causing namespace conflicts with dependencies.
2121
# This address must be set to `0x0` for deployment or upgrades. See `docs/dev-notes.md`.
22-
deeptrade_core = "0x232b6dccf004919ce5deb1a7ee3d0e9f1c71170c9402ec1918aa212754baadb3"
22+
deeptrade_core = "0x0"

packages/deeptrade-core/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"network": "mainnet",
3+
"owner": "0xed7e0efee7084f2eec7212586d7eb5a94233a45fb13368d05f9641e8ab8d9d52",
4+
"app_name": "@deeptrade/deeptrade-core",
5+
"app_desc": "This package is a comprehensive on-chain trading protocol suite built to enhance and secure liquidity operations on the Sui network's DeepBook order book.",
6+
"upgrade_cap": null,
7+
"app_cap": null,
8+
"pkg_info": null,
9+
"icon_url": "https://deeptrade.io/web-app-manifest-512x512.png",
10+
"homepage_url": "https://deeptrade.io",
11+
"documentation_url": "https://github.com/deeptradeProtocol/deeptrade-core",
12+
"contact": "contact@deeptrade.io"
13+
}

0 commit comments

Comments
 (0)