Skip to content

Commit 5dca93a

Browse files
committed
feat(lazer/sui): init lazer sui contract
1 parent 1f1c17f commit 5dca93a

File tree

5 files changed

+64
-1
lines changed

5 files changed

+64
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/contracts/sui/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/*
2+
.trace
3+
.coverage*

lazer/contracts/sui/Move.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[package]
2+
name = "pyth_lazer"
3+
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
4+
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
5+
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]
6+
7+
[dependencies]
8+
9+
# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`.
10+
# Revision can be a branch, a tag, and a commit hash.
11+
# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" }
12+
13+
# For local dependencies use `local = path`. Path is relative to the package root
14+
# Local = { local = "../path/to" }
15+
16+
# To resolve a version conflict and force a specific version for dependency
17+
# override use `override = true`
18+
# Override = { local = "../conflicting/version", override = true }
19+
20+
[addresses]
21+
pyth_lazer = "0x0"
22+
23+
# Named addresses will be accessible in Move as `@name`. They're also exported:
24+
# for example, `std = "0x1"` is exported by the Standard Library.
25+
# alice = "0xA11CE"
26+
27+
[dev-dependencies]
28+
# The dev-dependencies section allows overriding dependencies for `--test` and
29+
# `--dev` modes. You can introduce test-only dependencies here.
30+
# Local = { local = "../path/to/dev-build" }
31+
32+
[dev-addresses]
33+
# The dev-addresses section allows overwriting named addresses for the `--test`
34+
# and `--dev` modes.
35+
# alice = "0xB0B"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
/// Module: pyth_lazer
3+
module pyth_lazer::pyth_lazer;
4+
*/
5+
6+
// For Move coding conventions, see
7+
// https://docs.sui.io/concepts/sui-move-concepts/conventions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
#[test_only]
3+
module pyth_lazer::pyth_lazer_tests;
4+
// uncomment this line to import the module
5+
// use pyth_lazer::pyth_lazer;
6+
7+
const ENotImplemented: u64 = 0;
8+
9+
#[test]
10+
fun test_pyth_lazer() {
11+
// pass
12+
}
13+
14+
#[test, expected_failure(abort_code = ::pyth_lazer::pyth_lazer_tests::ENotImplemented)]
15+
fun test_pyth_lazer_fail() {
16+
abort ENotImplemented
17+
}
18+
*/

0 commit comments

Comments
 (0)