SC Arguments: [Name:SC_ACTION Type:uint64 Value:'0' Name:SC_ID Type:hash Value:'c902ac1027e60e482fa942f68b136f7a50eb981990342f74d6d6d7b440feedf2' Name:code Type:string Value:'Function InitializePrivate() Uint64
10 STORE("owner", SIGNER())
30 STORE("nameHdr", "nfaloader.js")
31 STORE("descrHdr", "Script for NFA loader")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "webguy.tools.nfaloader.js")
34 STORE("docType", "TELA-JS-MUTABLE-1")
35 STORE("subDir", "")
40 RETURN 0
End Function
Function TransferOwnership(newowner String) Uint64
10 IF LOAD("owner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 STORE("tmpowner",ADDRESS_RAW(newowner))
40 RETURN 0
End Function
Function ClaimOwnership() Uint64
10 IF LOAD("tmpowner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 STORE("owner",SIGNER())
40 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
/*
//GNU lisence implied
*/' Name:entrypoint Type:string Value:'UpdateCode'] |