tx · 9zFfuwXYhxftvMUKMfMpShTHHE1YwBazWcSgFtv5Ee8H

3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E:  -0.01400000 Waves

2020.11.26 11:00 [1282115] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves

{ "type": 13, "id": "9zFfuwXYhxftvMUKMfMpShTHHE1YwBazWcSgFtv5Ee8H", "fee": 1400000, "feeAssetId": null, "timestamp": 1606377656350, "version": 2, "chainId": 84, "sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E", "senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1", "proofs": [ "ybFi4Hcrr4Vn8wRNT1YBJEes8KLnhdm1Qb4xpUCBaxp4oUN9r979PdRcd8QNYJUvYFn6kLCZAWSYBc5NqGMY32D" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABQAAAAAFZGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAACVAvkAAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAZQAAAAIFAAAABmhlaWdodAUAAAAFZGVsYXkBAAAACGFzU3RyaW5nAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAADYnYwBQAAAAckbWF0Y2gwBQAAAANidjAJAAACAAAAAQIAAAAXQWRkcmVzcyBTdHJpbmcgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB2dldFNpZ24AAAABAAAABGFkZHIEAAAADmxhc3RDYWxsSGV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2VuZGVyUHVibGljS2V5B2rXRSI=", "height": 1282115, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B4aZPSHXihFqetkCTxWkNp8BxGJzmQJKqnEjE92os9ZL Next: 6FcsZQTwQxxmmLX1AjGG4oRoGKfntFqzZktEM9ijGqJb Diff:
OldNewDifferences
1818 }
1919
2020
21-@Callable(h)
22-func getSign (i) = {
23- let j = d(i)
24- let k = ((height - j) >= a)
25- if (k)
26- then [IntegerEntry(i, height), ScriptTransfer(Address(fromBase58String(i)), b, c)]
21+func h (i) = {
22+ let f = i
23+ if ($isInstanceOf(f, "String"))
24+ then {
25+ let j = f
26+ j
27+ }
28+ else throw("Address String expected")
29+ }
30+
31+
32+@Callable(k)
33+func getSign (l) = {
34+ let m = d(l)
35+ let n = ((height - m) >= a)
36+ if (n)
37+ then [IntegerEntry(l, height), ScriptTransfer(Address(fromBase58String(l)), b, c)]
2738 else throw("You cannot get SIGN Token again yet")
2839 }
2940
3041
31-@Verifier(l)
32-func m () = {
33- let f = l
42+@Verifier(o)
43+func p () = {
44+ let f = o
3445 if ($isInstanceOf(f, "InvokeScriptTransaction"))
3546 then {
36- let n = f
37- true
47+ let q = f
48+ let m = d(h(q.args[0]))
49+ let n = ((height - m) >= a)
50+ if (n)
51+ then (q.function == "getSign")
52+ else false
3853 }
3954 else if ($isInstanceOf(f, "SetScriptTransaction"))
4055 then {
41- let o = f
42- sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
56+ let r = f
57+ sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
4358 }
4459 else false
4560 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 10
55
66 let b = 10000000000
77
88 let c = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
99
1010 func d (e) = {
1111 let f = getInteger(this, e)
1212 if ($isInstanceOf(f, "Int"))
1313 then {
1414 let g = f
1515 g
1616 }
1717 else (height - a)
1818 }
1919
2020
21-@Callable(h)
22-func getSign (i) = {
23- let j = d(i)
24- let k = ((height - j) >= a)
25- if (k)
26- then [IntegerEntry(i, height), ScriptTransfer(Address(fromBase58String(i)), b, c)]
21+func h (i) = {
22+ let f = i
23+ if ($isInstanceOf(f, "String"))
24+ then {
25+ let j = f
26+ j
27+ }
28+ else throw("Address String expected")
29+ }
30+
31+
32+@Callable(k)
33+func getSign (l) = {
34+ let m = d(l)
35+ let n = ((height - m) >= a)
36+ if (n)
37+ then [IntegerEntry(l, height), ScriptTransfer(Address(fromBase58String(l)), b, c)]
2738 else throw("You cannot get SIGN Token again yet")
2839 }
2940
3041
31-@Verifier(l)
32-func m () = {
33- let f = l
42+@Verifier(o)
43+func p () = {
44+ let f = o
3445 if ($isInstanceOf(f, "InvokeScriptTransaction"))
3546 then {
36- let n = f
37- true
47+ let q = f
48+ let m = d(h(q.args[0]))
49+ let n = ((height - m) >= a)
50+ if (n)
51+ then (q.function == "getSign")
52+ else false
3853 }
3954 else if ($isInstanceOf(f, "SetScriptTransaction"))
4055 then {
41- let o = f
42- sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
56+ let r = f
57+ sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)
4358 }
4459 else false
4560 }
4661

github/deemru/w8io/169f3d6 
33.72 ms