Skip to content

Commit 22b3753

Browse files
committed
chore: add muno
Signed-off-by: aeryz <[email protected]>
1 parent 9cafdb5 commit 22b3753

File tree

7 files changed

+178
-21
lines changed

7 files changed

+178
-21
lines changed

sui/muno/.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*

sui/muno/Move.lock

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# @generated by Move, please check-in and do not edit manually.
2+
3+
[move]
4+
version = 3
5+
manifest_digest = "8C972825465DD7FF963AD3E385007C2FCC1AC85CC2F78691F3CA1A2E4E225286"
6+
deps_digest = "F9B494B64F0615AED0E98FC12A85B85ECD2BC5185C22D30E7F67786BB52E507C"
7+
dependencies = [
8+
{ id = "Bridge", name = "Bridge" },
9+
{ id = "MoveStdlib", name = "MoveStdlib" },
10+
{ id = "Sui", name = "Sui" },
11+
{ id = "SuiSystem", name = "SuiSystem" },
12+
]
13+
14+
[[move.package]]
15+
id = "Bridge"
16+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b448b1d971bd6c1aac8ef4eee4305943806d5d5b", subdir = "crates/sui-framework/packages/bridge" }
17+
18+
dependencies = [
19+
{ id = "MoveStdlib", name = "MoveStdlib" },
20+
{ id = "Sui", name = "Sui" },
21+
{ id = "SuiSystem", name = "SuiSystem" },
22+
]
23+
24+
[[move.package]]
25+
id = "MoveStdlib"
26+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b448b1d971bd6c1aac8ef4eee4305943806d5d5b", subdir = "crates/sui-framework/packages/move-stdlib" }
27+
28+
[[move.package]]
29+
id = "Sui"
30+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b448b1d971bd6c1aac8ef4eee4305943806d5d5b", subdir = "crates/sui-framework/packages/sui-framework" }
31+
32+
dependencies = [
33+
{ id = "MoveStdlib", name = "MoveStdlib" },
34+
]
35+
36+
[[move.package]]
37+
id = "SuiSystem"
38+
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b448b1d971bd6c1aac8ef4eee4305943806d5d5b", subdir = "crates/sui-framework/packages/sui-system" }
39+
40+
dependencies = [
41+
{ id = "MoveStdlib", name = "MoveStdlib" },
42+
{ id = "Sui", name = "Sui" },
43+
]
44+
45+
[move.toolchain-version]
46+
compiler-version = "1.53.2"
47+
edition = "2024.beta"
48+
flavor = "sui"
49+
50+
[env]
51+
52+
[env.testnet]
53+
chain-id = "4c78adac"
54+
original-published-id = "0x9f2da79979c0bf626e81cdb834ca92f16dc677bce9f36fc2c28c38315840ef4f"
55+
latest-published-id = "0x9f2da79979c0bf626e81cdb834ca92f16dc677bce9f36fc2c28c38315840ef4f"
56+
published-version = "1"

sui/muno/Move.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[package]
2+
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
3+
name = "muno"
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+
muno = "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"

sui/muno/sources/muno.move

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
2+
// "Business Source License" is a trademark of MariaDB Corporation Ab.
3+
4+
// Parameters
5+
6+
// Licensor: Union.fi, Labs Inc.
7+
// Licensed Work: All files under https://github.com/unionlabs/union's sui subdirectory
8+
// The Licensed Work is (c) 2024 Union.fi, Labs Inc.
9+
// Change Date: Four years from the date the Licensed Work is published.
10+
// Change License: Apache-2.0
11+
//
12+
13+
// For information about alternative licensing arrangements for the Licensed Work,
14+
// please contact [email protected].
15+
16+
// Notice
17+
18+
// Business Source License 1.1
19+
20+
// Terms
21+
22+
// The Licensor hereby grants you the right to copy, modify, create derivative
23+
// works, redistribute, and make non-production use of the Licensed Work. The
24+
// Licensor may make an Additional Use Grant, above, permitting limited production use.
25+
26+
// Effective on the Change Date, or the fourth anniversary of the first publicly
27+
// available distribution of a specific version of the Licensed Work under this
28+
// License, whichever comes first, the Licensor hereby grants you rights under
29+
// the terms of the Change License, and the rights granted in the paragraph
30+
// above terminate.
31+
32+
// If your use of the Licensed Work does not comply with the requirements
33+
// currently in effect as described in this License, you must purchase a
34+
// commercial license from the Licensor, its affiliated entities, or authorized
35+
// resellers, or you must refrain from using the Licensed Work.
36+
37+
// All copies of the original and modified Licensed Work, and derivative works
38+
// of the Licensed Work, are subject to this License. This License applies
39+
// separately for each version of the Licensed Work and the Change Date may vary
40+
// for each version of the Licensed Work released by Licensor.
41+
42+
// You must conspicuously display this License on each original or modified copy
43+
// of the Licensed Work. If you receive the Licensed Work in original or
44+
// modified form from a third party, the terms and conditions set forth in this
45+
// License apply to your use of that work.
46+
47+
// Any use of the Licensed Work in violation of this License will automatically
48+
// terminate your rights under this License for the current and all other
49+
// versions of the Licensed Work.
50+
51+
// This License does not grant you any right in any trademark or logo of
52+
// Licensor or its affiliates (provided that you may use a trademark or logo of
53+
// Licensor as expressly required by this License).
54+
55+
// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
56+
// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
57+
// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
58+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
59+
// TITLE.
60+
61+
module muno::muno {
62+
use sui::coin::{Self};
63+
64+
// one time witness
65+
public struct MUNO has drop {}
66+
67+
fun init(witness: MUNO, ctx: &mut TxContext) {
68+
let (treasury_cap, metadata) =
69+
coin::create_currency<MUNO>(
70+
witness,
71+
6,
72+
b"muno",
73+
b"muno",
74+
b"U",
75+
option::none(),
76+
ctx
77+
);
78+
79+
transfer::public_share_object(metadata);
80+
transfer::public_transfer(treasury_cap, tx_context::sender(ctx))
81+
}
82+
}

sui/u/sources/u.move

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ module u::u {
6969
coin::create_currency<U>(
7070
witness,
7171
6,
72-
b"muno",
73-
b"muno",
72+
b"au",
73+
b"au",
7474
b"U",
7575
option::none(),
7676
ctx

sui/u/tests/u_tests.move

Lines changed: 0 additions & 18 deletions
This file was deleted.

voyager/plugins/sui-ibc-app/src/lib.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)