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