Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/sui-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Sui Move CI

on:
push:
branches: [ main, "feat/**" ]
paths:
- 'Sui/Move/**'
- '.github/workflows/sui-ci.yml'
pull_request:
branches: [ main ]
paths:
- 'Sui/Move/**'
- '.github/workflows/sui-ci.yml'

jobs:
sui-ci:
name: Build, Test, Lint & Coverage (Sui Move)
runs-on: ubuntu-latest

defaults:
run:
working-directory: Sui/Move/smart-contracts/escrow/contract

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Sui CLI
run: |
echo "Downloading precompiled Sui binary..."
curl -fsSL "https://github.com/MystenLabs/sui/releases/download/testnet-v1.76.1/sui-testnet-v1.76.1-ubuntu-x86_64.tgz" -o sui.tgz
tar -xzf sui.tgz
sudo find . -name "sui" -type f -exec mv {} /usr/local/bin/sui \;
sudo chmod +x /usr/local/bin/sui

- name: Verify Sui installation
run: sui --version

- name: 1. Build Package & Enforce Linter
run: sui move build --lint --warnings-are-errors

- name: 2. Run Unit Tests
run: sui move test

- name: 3. Code Coverage Summary
run: |
sui move test --coverage
sui move coverage summary

- name: 4. Gas & Computation Units Benchmarks
run: |
echo "### 📊 Sui Move Gas & Computation Units Benchmarks" >> $GITHUB_STEP_SUMMARY
echo '```text' >> $GITHUB_STEP_SUMMARY
sui move test --statistics >> $GITHUB_STEP_SUMMARY 2>&1
echo '```' >> $GITHUB_STEP_SUMMARY
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Agent skills
.agents/
.claude/
agent/
skills-lock.json
2 changes: 2 additions & 0 deletions Sui/Move/smart-contracts/escrow/contract/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
.coverage_map.mvcov
41 changes: 41 additions & 0 deletions Sui/Move/smart-contracts/escrow/contract/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by move; do not edit
# This file should be checked in.

[move]
version = 4

[pinned.local.MoveStdlib]
source = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/move-stdlib", rev = "718ae563a42fb4ba0d055588f81c704dcef58c25" }
use_environment = "local"
manifest_digest = "C4FE4C91DE74CBF223B2E380AE40F592177D21870DC2D7EB6227D2D694E05363"
deps = {}

[pinned.local.Sui]
source = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "718ae563a42fb4ba0d055588f81c704dcef58c25" }
use_environment = "local"
manifest_digest = "98EF265044695258DF77084171BC5CCC94248AEEC2463AF6274326433A1512BA"
deps = { MoveStdlib = "MoveStdlib" }

[pinned.local.escrow]
source = { root = true }
use_environment = "local"
manifest_digest = "5F75228E403340DD70556AFD567899C8C2E4BB556771AF4C11F408D875984A08"
deps = { std = "MoveStdlib", sui = "Sui" }

[pinned.testnet.MoveStdlib]
source = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/move-stdlib", rev = "718ae563a42fb4ba0d055588f81c704dcef58c25" }
use_environment = "testnet"
manifest_digest = "C4FE4C91DE74CBF223B2E380AE40F592177D21870DC2D7EB6227D2D694E05363"
deps = {}

[pinned.testnet.Sui]
source = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "718ae563a42fb4ba0d055588f81c704dcef58c25" }
use_environment = "testnet"
manifest_digest = "7AFB66695545775FBFBB2D3078ADFD084244D5002392E837FDE21D9EA1C6D01C"
deps = { MoveStdlib = "MoveStdlib" }

[pinned.testnet.escrow]
source = { root = true }
use_environment = "testnet"
manifest_digest = "5745706258F61D6CE210904B3E6AE87A73CE9D31A6F93BE4718C442529332A87"
deps = { std = "MoveStdlib", sui = "Sui" }
8 changes: 8 additions & 0 deletions Sui/Move/smart-contracts/escrow/contract/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "escrow"
edition = "2024.beta"

[dependencies]

[environments]
local = "786400e0"
12 changes: 12 additions & 0 deletions Sui/Move/smart-contracts/escrow/contract/Published.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Move
# This file contains metadata about published versions of this package in different environments
# This file SHOULD be committed to source control

[published.local]
chain-id = "786400e0"
published-at = "0xf155a09874b07527d5bd7e8f919f26e09c9e4a324166425c9c4b4c0221e79f4e"
original-id = "0xf155a09874b07527d5bd7e8f919f26e09c9e4a324166425c9c4b4c0221e79f4e"
version = 1
toolchain-version = "1.73.0"
build-config = { flavor = "sui", edition = "2024" }
upgrade-capability = "0xb5e86fdba15a266be9a659635ace8af7ac1e698e7087389b6f9f6777ae4f5c4c"
Loading
Loading