tx · ETErTKDvPX12corf6cbaxT7JamJsbNn6oauNrMVduFCq

3MtdJWgm2KSya5uZBAznuYy6mCAWiHruFNe:  -0.01400000 Waves

2019.07.26 11:19 [602789] smart account 3MtdJWgm2KSya5uZBAznuYy6mCAWiHruFNe > SELF 0.00000000 Waves

{ "type": 13, "id": "ETErTKDvPX12corf6cbaxT7JamJsbNn6oauNrMVduFCq", "fee": 1400000, "feeAssetId": null, "timestamp": 1564129163639, "version": 1, "sender": "3MtdJWgm2KSya5uZBAznuYy6mCAWiHruFNe", "senderPublicKey": "4AMgyr9MFjyvd1ppoqFg3WSNfYoG7SfdimS8yYPW592m", "proofs": [ "5T2CFsirV7VbJbNA7AEauTC5695o38xk2Ktv2pzNcoMWHSV948rVMmpcnD54NYhEzXdqFxiiQdN5zRsjeFr5A7sM" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABVoYXNTdHJpbmdLZXlJbkFjY291bnQAAAACAAAADmFjY291bnRBZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAA5hY2NvdW50QWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXgFAAAAByRtYXRjaDAGBwAAAAEAAAABaQEAAAARcmVnaXN0ZXJEZWNTZXJ2ZXIAAAACAAAACXB1YmxpY0tleQAAAARob3N0BAAAABJub2RlQWNjb3VudEFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAVaXNEZWNTZXJ2ZXJSZWdpc3RlcmVkCQEAAAAVaGFzU3RyaW5nS2V5SW5BY2NvdW50AAAAAgUAAAAEdGhpcwUAAAAJcHVibGljS2V5AwUAAAAVaXNEZWNTZXJ2ZXJSZWdpc3RlcmVkCQAAAgAAAAECAAAALVN1Y2ggZGVjcnlwdGlvbiBzZXJ2ZXIgd2FzIGFscmVhZHkgcmVnaXN0ZXJlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAJcHVibGljS2V5BQAAAARob3N0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABoeA2aA=", "chainId": 84, "height": 602789, "spentComplexity": 0 } View: original | compacted Prev: none Next: 8Jh9zxp3PDxc9aNj8pHepooHqQtsDLpL96gUcTE9WXxx Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func hasStringKeyInAccount (accountAddress,key) = match getString(accountAddress, key) {
5+ case x: String =>
6+ true
7+ case _ =>
8+ false
9+}
10+
11+
12+@Callable(i)
13+func registerDecServer (publicKey,host) = {
14+ let nodeAccountAddress = toBase58String(i.caller.bytes)
15+ let isDecServerRegistered = hasStringKeyInAccount(this, publicKey)
16+ if (isDecServerRegistered)
17+ then throw("Such decryption server was already registered")
18+ else WriteSet([DataEntry(publicKey, host)])
19+ }
20+
21+
22+@Verifier(tx)
23+func verify () = true
24+

github/deemru/w8io/169f3d6 
18.77 ms