tx · QyANuPkjRBFA3hfQ37pQJZ7DMMWNEZbWm4Pqcdg2yjM

3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7:  -0.01400000 Waves

2020.02.03 17:38 [883111] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves

{ "type": 13, "id": "QyANuPkjRBFA3hfQ37pQJZ7DMMWNEZbWm4Pqcdg2yjM", "fee": 1400000, "feeAssetId": null, "timestamp": 1580740720458, "version": 1, "sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7", "senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU", "proofs": [ "4j2YFGs3BDCok5v7TmdCkoEjyLwyWTAeJURYC2Ps2gg2yaB6Ng3zhxYzSE1qQv8DpGmJpXCdcKwj1UaMQPUqFyvU" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgECEgAAAAADAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAaAVT2IQwdZvI4cdfE/aE0KgPNEyFI1dNVNJQBAAAACGlzUGxheWVyAAAAAgAAAAFpAAAABnB1YktleQkAAAAAAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAABnB1YktleQEAAAAGaXNSb290AAAAAQAAAAFpCQAAAAAAAAIIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAUcm9vdEFjY291bnRQdWJsaWNLZXkAAAACAAAAAWkBAAAAEXNldEFjY2VwdGVkUGxheWVyAAAAAQAAAA9wbGF5ZXJQdWJsaWNLZXkDCQEAAAACIT0AAAACCQACWAAAAAEFAAAAD3BsYXllclB1YmxpY0tleQkAAlgAAAABBQAAABRyb290QWNjb3VudFB1YmxpY0tleQkAAAIAAAABCQABLAAAAAICAAAAEGVycm9yIG9ubHkgcm9vdCAJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEFAAAAD3BsYXllclB1YmxpY0tleQAAAAAAAAAAAQUAAAADbmlsAAAAAWkBAAAADHBsYXllckludm9rZQAAAAAEAAAAD3BsYXllclB1YmxpY0tleQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQkABBsAAAACBQAAAAR0aGlzCQACWAAAAAEFAAAAD3BsYXllclB1YmxpY0tleQkAAAIAAAABCQABLAAAAAICAAAAGVlvdSBhcmUgbm90IGFsbG93ZWQgaGVyZSAJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAD3BsYXllclB1YmxpY0tleQAAAAAAAA27oAUAAAAEdW5pdAUAAAADbmlsAAAAAGVaewM=", "chainId": 84, "height": 883111, "spentComplexity": 0 } View: original | compacted Prev: H3J4TK7HKprphUT38KnUcvfntcQBXx8RJVGDmfeWCS6a Next: Hh7ePeM1KHpUdsPuE8fBbhiQkqSHBz3vSCPvKFqiVrNy Diff:
OldNewDifferences
2020 func playerInvoke () = {
2121 let playerPublicKey = i.callerPublicKey
2222 if (!(isDefined(getBoolean(this, toBase58String(playerPublicKey)))))
23- then throw("You are not allowed here")
23+ then throw(("You are not allowed here " + toBase58String(playerPublicKey)))
2424 else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)]))
2525 }
2626
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let rootAccountPublicKey = base58'3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7'
55
66 func isPlayer (i,pubKey) = (i.callerPublicKey == pubKey)
77
88
99 func isRoot (i) = (i.callerPublicKey == rootAccountPublicKey)
1010
1111
1212 @Callable(i)
1313 func setAcceptedPlayer (playerPublicKey) = if ((toBase58String(playerPublicKey) != toBase58String(rootAccountPublicKey)))
1414 then throw(("error only root " + toBase58String(playerPublicKey)))
1515 else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)])
1616
1717
1818
1919 @Callable(i)
2020 func playerInvoke () = {
2121 let playerPublicKey = i.callerPublicKey
2222 if (!(isDefined(getBoolean(this, toBase58String(playerPublicKey)))))
23- then throw("You are not allowed here")
23+ then throw(("You are not allowed here " + toBase58String(playerPublicKey)))
2424 else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)]))
2525 }
2626
2727

github/deemru/w8io/026f985 
22.82 ms