Skip to content
Open
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
34 changes: 34 additions & 0 deletions contracts/msend_coins/msend_series_4/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "E1AEBA886D1387920A09DBEC5DF19D670C5544E89F059836FB2637DEB0EB3704"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ id = "Sui", name = "Sui" },
]

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/mainnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[move.toolchain-version]
compiler-version = "1.48.1"
edition = "2024.beta"
flavor = "sui"

[env]

[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0x7607d60723bc41caac04d02e38001ed18d4ba65acce6d8abd9aa3eb25d9a0f6b"
latest-published-id = "0x7607d60723bc41caac04d02e38001ed18d4ba65acce6d8abd9aa3eb25d9a0f6b"
published-version = "1"
14 changes: 14 additions & 0 deletions contracts/msend_coins/msend_series_4/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "msend_series_4"
version = "0.0.1"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
published-at = "0x0"

[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "framework/mainnet"

[addresses]
msend_series_4 = "0x0"
sui = "0x2"
29 changes: 29 additions & 0 deletions contracts/msend_coins/msend_series_4/sources/msend_series_4.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module msend_series_4::msend_series_4 {
use sui::{coin, url};
use std::option::{some};

public struct MSEND_SERIES_4 has drop {}

const NAME: vector<u8> = b"mSEND Series 4";
const SYMBOL: vector<u8> = b"mSEND";
const DESCRIPTION: vector<u8> = b"mSEND(2025/06/01-2025/09/01) SUI";
const DECIMALS: u8 = 6;
const LOGO_URL: vector<u8> = b"https://suilend-assets.s3.us-east-2.amazonaws.com/SEND/mSEND.svg";

fun init(otw: MSEND_SERIES_4, ctx: &mut TxContext) {
let logo_url = url::new_unsafe_from_bytes(LOGO_URL);

let (treasury_cap, metadata) = coin::create_currency(
otw,
DECIMALS,
SYMBOL,
NAME,
DESCRIPTION,
some(logo_url),
ctx,
);

transfer::public_transfer(treasury_cap, tx_context::sender(ctx));
transfer::public_share_object(metadata);
}
}