tx · 4m7YTvePdAzignJRoWbXYNKoukdLpP5znYQdjjDXgJDc

3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu:  -0.01400000 Waves

2020.08.27 12:47 [1150952] smart account 3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu > SELF 0.00000000 Waves

{ "type": 13, "id": "4m7YTvePdAzignJRoWbXYNKoukdLpP5znYQdjjDXgJDc", "fee": 1400000, "feeAssetId": null, "timestamp": 1598521740658, "version": 1, "sender": "3N5rNyYSAsaP9QL2eQq286RhevB8msHFffu", "senderPublicKey": "CBTEuFN6ku1LNaPuGHHTMh2CBb3kPa5D73XXTJvKydun", "proofs": [ "43kktb3Thy8cKXeHE46nCbaPdH6hBAbTGJKkNM6LVuPbCV8oBxJWXPHG4Se5ZAPC21RpYrphJxkaRprQpeiNZLAc" ], "script": "base64:AAIDAAAAAAAAABsIARIHCgUICAgICBIECgIICBIDCgEIEgMKAQgAAAAJAAAAAAZ1cFZvdGUCAAAABnVwdm90ZQAAAAAIZG93blZvdGUCAAAACGRvd252b3RlAAAAAAxhZG1pbkFkZHJlc3MBAAAAGgFUOLYhWIA2WAg9IJQBVCmgZJeEnZPD9jSLAQAAAA1nZXRQcm9maWxlS2V5AAAAAQAAAAJpZAkAASwAAAACBQAAAAJpZAIAAAAUX2VudHJlcHJlbmV1clByb2ZpbGUBAAAADGdldFN0YXR1c0tleQAAAAEAAAACaWQJAAEsAAAAAgUAAAACaWQCAAAAB19zdGF0dXMBAAAACmdldFZvdGVLZXkAAAACAAAAAmlkAAAABHR5cGUDCQAAAAAAAAIFAAAABHR5cGUCAAAABnVwdm90ZQkAASwAAAACBQAAAAJpZAIAAAAHX3Vwdm90ZQMJAAAAAAAAAgUAAAAEdHlwZQIAAAAIZG93bnZvdGUJAAEsAAAAAgUAAAACaWQCAAAACV9kb3dudm90ZQkAAAIAAAABAgAAABFJbnZhbGlkIHZvdGUgdHlwZQEAAAAMcHJvZmlsZUV4aXN0AAAAAQAAAAJpZAQAAAAH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HVlCQAAAgAAAAECAAAAI1RoaXMgcHJvZmlsZSBpcyBub3Qgb3BlbiBmb3Igdm90aW5nCQAAAgAAAAECAAAAD0ludmFsaWQgUHJvZmlsZQAAAAFpAQAAAAhvcGVuVm90ZQAAAAEAAAAGdm90ZUlkAwkBAAAAAiE9AAAAAggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAMYWRtaW5BZGRyZXNzCQAAAgAAAAECAAAALk9ubHkgRHl6cnVwdCBBZG1pbiBjYW4gY2FsbCB0aGlzIGRBcHAgZnVuY3Rpb24DCQEAAAAMcHJvZmlsZUV4aXN0AAAAAQUAAAAGdm90ZUlkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAMZ2V0U3RhdHVzS2V5AAAAAQUAAAAGdm90ZUlkAgAAAARvcGVuBQAAAANuaWwJAAACAAAAAQIAAAAKSW52YWxpZCBJRAAAAAFpAQAAAAljbG9zZVZvdGUAAAABAAAABnZvdGVJZAMJAQAAAAIhPQAAAAIICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAADGFkbWluQWRkcmVzcwkAAAIAAAABAgAAAC5Pbmx5IER5enJ1cHQgQWRtaW4gY2FuIGNhbGwgdGhpcyBkQXBwIGZ1bmN0aW9uAwkBAAAADHByb2ZpbGVFeGlzdAAAAAEFAAAABnZvdGVJZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAADGdldFN0YXR1c0tleQAAAAEFAAAABnZvdGVJZAIAAAAGY2xvc2VkBQAAAANuaWwJAAACAAAAAQIAAAAKSW52YWxpZCBJRAAAAAAAUuya", "chainId": 84, "height": 1150952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4azDtZGzz29TmKxoHG6P9q3Y8s8EBe7etozL8iwaXD2a Next: 9YWZEUdaZisAJ7AvsaToWskp7nGe4j4RcQqL5iih8Rjo Diff:
OldNewDifferences
55
66 let b = "downvote"
77
8-let c = base58'3MtMR16kp56cr9Hfb2dVBAM5PtuhJDCK5fu'
8+let c = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
99
1010 func d (e) = (e + "_entrepreneurProfile")
1111
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "upvote"
55
66 let b = "downvote"
77
8-let c = base58'3MtMR16kp56cr9Hfb2dVBAM5PtuhJDCK5fu'
8+let c = base58'3Mu5woJ54s7vHJgaeNcJ4C9ByfdmMF2jpjC'
99
1010 func d (e) = (e + "_entrepreneurProfile")
1111
1212
1313 func f (e) = (e + "_status")
1414
1515
1616 func g (e,h) = if ((h == "upvote"))
1717 then (e + "_upvote")
1818 else if ((h == "downvote"))
1919 then (e + "_downvote")
2020 else throw("Invalid vote type")
2121
2222
2323 func i (e) = {
2424 let j = getString(this, d(e))
2525 if ($isInstanceOf(j, "String"))
2626 then {
2727 let k = j
2828 true
2929 }
3030 else false
3131 }
3232
3333
3434 func l (m) = {
3535 let j = getString(this, f(m))
3636 if ($isInstanceOf(j, "String"))
3737 then {
3838 let k = j
3939 k
4040 }
4141 else false
4242 }
4343
4444
4545 func n (m,o) = {
4646 let j = getInteger(this, g(m, o))
4747 if ($isInstanceOf(j, "Int"))
4848 then {
4949 let k = j
5050 k
5151 }
5252 else throw("Not a valid vote ID")
5353 }
5454
5555
5656 @Callable(p)
5757 func addEntrepreneurProfile (q,r,s,t,u) = if ((p.caller.bytes != c))
5858 then throw("Only Dyzrupt Admin can call this dApp function")
5959 else {
6060 let v = toBase58String(p.transactionId)
6161 WriteSet([DataEntry(d(v), ((((((((q + "_") + r) + "_") + s) + "_") + t) + "_") + u)), DataEntry(g(v, "upvote"), 0), DataEntry(f(v), "open"), DataEntry(g(v, "downvote"), 0)])
6262 }
6363
6464
6565
6666 @Callable(p)
6767 func vote (m,o) = if (i(m))
6868 then if ((l(m) == "open"))
6969 then if (if ((o == a))
7070 then true
7171 else (o == b))
7272 then {
7373 let w = n(m, o)
7474 let x = (w + 1)
7575 WriteSet([DataEntry(g(m, o), x)])
7676 }
7777 else throw("Not a valid vote value")
7878 else throw("This profile is not open for voting")
7979 else throw("Invalid Profile")
8080
8181
8282
8383 @Callable(p)
8484 func openVote (m) = if ((p.caller.bytes != c))
8585 then throw("Only Dyzrupt Admin can call this dApp function")
8686 else if (i(m))
8787 then WriteSet([DataEntry(f(m), "open")])
8888 else throw("Invalid ID")
8989
9090
9191
9292 @Callable(p)
9393 func closeVote (m) = if ((p.caller.bytes != c))
9494 then throw("Only Dyzrupt Admin can call this dApp function")
9595 else if (i(m))
9696 then WriteSet([DataEntry(f(m), "closed")])
9797 else throw("Invalid ID")
9898
9999

github/deemru/w8io/169f3d6 
35.31 ms