tx · G3MK8bUADDKPPHJAwSinzJuXmxKLtcXYrM5pCurciFKt

3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi:  -0.01400000 Waves

2019.08.29 10:43 [652217] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves

{ "type": 13, "id": "G3MK8bUADDKPPHJAwSinzJuXmxKLtcXYrM5pCurciFKt", "fee": 1400000, "feeAssetId": null, "timestamp": 1567064663348, "version": 1, "sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi", "senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH", "proofs": [ "4qVojUAvkRP6UBNzNTNZ9eHZV1jfcKbpRwB8siGATSdq5BcNVNoyf5SAhJo5BPKtjPtwgp47ogx93Mv1xFz9zF7d" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAACmRlcGxveUluZm8CAAAAJGFkZGVkIGRhdGEgZnVuY3Rpb25hbGl0eSAodGVzdHBoYXNlKQEAAAAJd3JpdGVEYXRhAAAAAgAAAAdkYXRhS2V5AAAACWRhdGFWYWx1ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHZGF0YUtleQUAAAAJZGF0YVZhbHVlBQAAAANuaWwBAAAAB2dldERhdGEAAAABAAAAB2RhdGFLZXkEAAAAC2RhdGFQYWNrYWdlCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAdkYXRhS2V5BQAAAAtkYXRhUGFja2FnZQEAAAAJZW1pdFRva2VuAAAAAwAAAAhyZWNlaXZlcgAAAA5kaXNwZW5zZUFtb3VudAAAAAphdHRhY2htZW50BAAAAAV0b2tlbgIAAAAGS0VLUy0xBQAAAAV0b2tlbgAAAAE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0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgewQm/L", "chainId": 84, "height": 652217, "spentComplexity": 0 } View: original | compacted Prev: HhPfLTVr1iCp3kjxVDo3xHW5Dk3unwLfpRQ5Hj65QtCi Next: 8AyCKdCUjVdBf7W9CDYqFqpqpigmeiLm7hL857jcxyfq Diff:
OldNewDifferences
55
66 let b = "added data functionality (testphase)"
77
8-let c = DataEntry("Age", 33)
9-
10-let d = c.key
11-
12-let e = c.value
13-
14-func f (g,h) = WriteSet([DataEntry(g, h)])
8+func c (d,e) = WriteSet([DataEntry(d, e)])
159
1610
17-func i (g) = {
18- let j = getStringValue(this, g)
19- j
11+func f (d) = {
12+ let g = getStringValue(this, d)
13+ g
2014 }
2115
2216
23-func k (l) = {
24- let m = "y"
25- m
17+func h (i,j,k) = {
18+ let l = "KEKS-1"
19+ l
2620 }
2721
2822
29-@Callable(n)
23+@Callable(m)
3024 func dispense () = {
31- let o = extract(n.payment)
32- let p = "default message for now"
33- let l = if ((o.amount == 100000000))
25+ let n = extract(m.payment)
26+ let o = "default message for now"
27+ let p = toBase58String(extract(m.callerPublicKey))
28+ let q = m.transactionId
29+ let r = if ((n.amount == 100000000))
3430 then "S"
35- else if ((o.amount == 200000000))
31+ else if ((n.amount == 200000000))
3632 then "M"
37- else if ((o.amount == 400000000))
33+ else if ((n.amount == 400000000))
3834 then "L"
3935 else "error"
40- if ((l == "error"))
36+ if ((r == "error"))
4137 then throw("Unrecognized sizing")
42- else {
43- let j = "x"
44- TransferSet([ScriptTransfer(n.caller, o.amount, unit)])
45- }
38+ else c(p, o)
4639 }
4740
4841
49-@Verifier(q)
50-func r () = {
51- let s = q
52- if ($isInstanceOf(s, "SetScriptTransaction"))
42+@Verifier(s)
43+func t () = {
44+ let u = s
45+ if ($isInstanceOf(u, "SetScriptTransaction"))
5346 then {
54- let t = s
55- sigVerify(q.bodyBytes, q.proofs[0], a)
47+ let v = u
48+ sigVerify(s.bodyBytes, s.proofs[0], a)
5649 }
57- else if ($isInstanceOf(s, "DataTransaction"))
50+ else if ($isInstanceOf(u, "DataTransaction"))
5851 then {
59- let t = s
52+ let v = u
6053 true
6154 }
62- else if ($isInstanceOf(s, "TransferTransaction"))
55+ else if ($isInstanceOf(u, "TransferTransaction"))
6356 then {
64- let t = s
57+ let v = u
6558 true
6659 }
67- else if ($isInstanceOf(s, "IssueTransaction"))
60+ else if ($isInstanceOf(u, "IssueTransaction"))
6861 then {
69- let t = s
62+ let v = u
7063 true
7164 }
72- else if ($isInstanceOf(s, "ReissueTransaction"))
65+ else if ($isInstanceOf(u, "ReissueTransaction"))
7366 then {
74- let t = s
67+ let v = u
7568 true
7669 }
7770 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH'
55
66 let b = "added data functionality (testphase)"
77
8-let c = DataEntry("Age", 33)
9-
10-let d = c.key
11-
12-let e = c.value
13-
14-func f (g,h) = WriteSet([DataEntry(g, h)])
8+func c (d,e) = WriteSet([DataEntry(d, e)])
159
1610
17-func i (g) = {
18- let j = getStringValue(this, g)
19- j
11+func f (d) = {
12+ let g = getStringValue(this, d)
13+ g
2014 }
2115
2216
23-func k (l) = {
24- let m = "y"
25- m
17+func h (i,j,k) = {
18+ let l = "KEKS-1"
19+ l
2620 }
2721
2822
29-@Callable(n)
23+@Callable(m)
3024 func dispense () = {
31- let o = extract(n.payment)
32- let p = "default message for now"
33- let l = if ((o.amount == 100000000))
25+ let n = extract(m.payment)
26+ let o = "default message for now"
27+ let p = toBase58String(extract(m.callerPublicKey))
28+ let q = m.transactionId
29+ let r = if ((n.amount == 100000000))
3430 then "S"
35- else if ((o.amount == 200000000))
31+ else if ((n.amount == 200000000))
3632 then "M"
37- else if ((o.amount == 400000000))
33+ else if ((n.amount == 400000000))
3834 then "L"
3935 else "error"
40- if ((l == "error"))
36+ if ((r == "error"))
4137 then throw("Unrecognized sizing")
42- else {
43- let j = "x"
44- TransferSet([ScriptTransfer(n.caller, o.amount, unit)])
45- }
38+ else c(p, o)
4639 }
4740
4841
49-@Verifier(q)
50-func r () = {
51- let s = q
52- if ($isInstanceOf(s, "SetScriptTransaction"))
42+@Verifier(s)
43+func t () = {
44+ let u = s
45+ if ($isInstanceOf(u, "SetScriptTransaction"))
5346 then {
54- let t = s
55- sigVerify(q.bodyBytes, q.proofs[0], a)
47+ let v = u
48+ sigVerify(s.bodyBytes, s.proofs[0], a)
5649 }
57- else if ($isInstanceOf(s, "DataTransaction"))
50+ else if ($isInstanceOf(u, "DataTransaction"))
5851 then {
59- let t = s
52+ let v = u
6053 true
6154 }
62- else if ($isInstanceOf(s, "TransferTransaction"))
55+ else if ($isInstanceOf(u, "TransferTransaction"))
6356 then {
64- let t = s
57+ let v = u
6558 true
6659 }
67- else if ($isInstanceOf(s, "IssueTransaction"))
60+ else if ($isInstanceOf(u, "IssueTransaction"))
6861 then {
69- let t = s
62+ let v = u
7063 true
7164 }
72- else if ($isInstanceOf(s, "ReissueTransaction"))
65+ else if ($isInstanceOf(u, "ReissueTransaction"))
7366 then {
74- let t = s
67+ let v = u
7568 true
7669 }
7770 else false
7871 }
7972

github/deemru/w8io/169f3d6 
50.36 ms