SC Arguments: [Name:SC_ACTION Type:uint64 Value:'0' Name:SC_ID Type:hash Value:'bb8714fefca6187c914872ff138fcf4bf883d2ba81dfa73ea19265a2012f3cd0' Name:code Type:string Value:'
// ____ _ _
// / ___| ___ ___ _ _ _ __(_) |_ _ _
// \___ \ / _ \/ __| | | | `__| | __| | | |
// ___) | __/ (__| |_| | | | | |_| |_| |
// |____/ \___|\___|\__,_|_| |_|\__|\__, |
// _ _ _ _ |___/
// / \ _ _ __| (_) |_
// / _ \| | | |/ _` | | __|
// / ___ \ |_| | (_| | | |_
// /_/ \_\__,_|\__,_|_|\__|
//
// .-----.
// .` - - `.
// / .-. .-. \
// | | | | | |
// \ \o/ \o/ /
// _/ ^ \_
// | \ `---` / |
// / /`--. .--`\ \
// / /`---` `---`\ \
// `.__. .__.`
// `| |`
// | \
// \ `--.
// `. `\
// ``---. |
// ,__) /
// `..`
//
/////////////////////////////////////////////
// Don`t panic! Funds are safe.
/////////////////////////////////////////////
Function Initialize() Uint64
10 RETURN 0
End Function
Function UpdateCode(code String) Uint64
10 IF LOAD("owner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 UPDATE_SC_CODE(code)
40 RETURN 0
End Function
Function TransferSCOwnership(newowner String) Uint64
10 IF LOAD("owner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 STORE("own1",ADDRESS_RAW(newowner))
40 RETURN 0
End Function
Function ClaimSCOwnership() Uint64
10 IF LOAD("own1") == SIGNER() THEN GOTO 30
20 RETURN 1
30 STORE("owner",SIGNER())
40 RETURN 0
End Function
' Name:entrypoint Type:string Value:'UpdateCode'] |