SafeCoin
Home
NetworkAccountsCheckpointsEpochsStakeTransactionsValidators
AssetsSAFETokensNFTs
EcosystemDeFiProjects
AnalyticsStatisticsEmissions
DevelopersAPI

Package

0xa6ac0bde4af3ca22c6b9ba617aadc5fea4204890e14d73c0728926af4bff5755

version
1
digest
7M6bakTbfDAnt6LXKBApsNtyatBrYumg8pRJPq4d2gix
previous transaction
31pT5cP9riHhhMPZ4dicc9PaQjmQz2uT2msYEqYyvpkG
last modified
Aug 3, 7:16:02 PM
checkpoint
1626006

Modules (1)

btc
// Move bytecode v6
module a6ac0bde4af3ca22c6b9ba617aadc5fea4204890e14d73c0728926af4bff5755.btc {
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::url;
use 0000000000000000000000000000000000000000000000000000000000000001::option;

struct BTC has drop {
	dummy_field: bool
}

init(Arg0: BTC, Arg1: &mut TxContext) {
L2:	loc0: CoinMetadata<BTC>
L3:	loc1: TreasuryCap<BTC>
B0:
	0: MoveLoc[0](Arg0: BTC)
	1: LdU8(8)
	2: LdConst[0](vector<u8>: "BTC..)
	3: LdConst[1](vector<u8>: "Bit..)
	4: LdConst[2](vector<u8>: "Tes..)
	5: LdConst[3](vector<u8>: "htt..)
	6: Call url::new_unsafe_from_bytes(vector<u8>): Url
	7: Call option::some<Url>(Url): Option<Url>
	8: CopyLoc[1](Arg1: &mut TxContext)
	9: Call coin::create_currency<BTC>(BTC, u8, vector<u8>, vector<u8>, vector<u8>, Option<Url>, &mut TxContext): TreasuryCap<BTC> * CoinMetadata<BTC>
	10: StLoc[2](loc0: CoinMetadata<BTC>)
	11: StLoc[3](loc1: TreasuryCap<BTC>)
	12: MoveLoc[2](loc0: CoinMetadata<BTC>)
	13: Call transfer::public_freeze_object<CoinMetadata<BTC>>(CoinMetadata<BTC>)
	14: MoveLoc[3](loc1: TreasuryCap<BTC>)
	15: MoveLoc[1](Arg1: &mut TxContext)
	16: FreezeRef
	17: Call tx_context::sender(&TxContext): address
	18: Call transfer::public_transfer<TreasuryCap<BTC>>(TreasuryCap<BTC>, address)
	19: Ret
}

entry public mint(Arg0: &mut TreasuryCap<BTC>, Arg1: u64, Arg2: address, Arg3: &mut TxContext) {
B0:
	0: MoveLoc[0](Arg0: &mut TreasuryCap<BTC>)
	1: MoveLoc[1](Arg1: u64)
	2: MoveLoc[3](Arg3: &mut TxContext)
	3: Call coin::mint<BTC>(&mut TreasuryCap<BTC>, u64, &mut TxContext): Coin<BTC>
	4: MoveLoc[2](Arg2: address)
	5: Call transfer::public_transfer<Coin<BTC>>(Coin<BTC>, address)
	6: Ret
}

Constants [
	0 => vector<u8>: "BTC" // interpreted as UTF8 string
	1 => vector<u8>: "Bitcoin" // interpreted as UTF8 string
	2 => vector<u8>: "Test BTC coin for stress testing" // interpreted as UTF8 string
	3 => vector<u8>: "https://s2.coinmarketcap.com/static/img/coins/200x200/1.png" // interpreted as UTF8 string
]
}