tx · D4QDtNwpfdM7VStggohUxtnf1FZ2QVMskXgsaViPQadK
3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi: -0.01400000 Waves
2019.08.29 11:13 [652247] smart account 3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi > SELF 0.00000000 Waves
{
"type": 13,
"id": "D4QDtNwpfdM7VStggohUxtnf1FZ2QVMskXgsaViPQadK",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567066505403,
"version": 1,
"sender": "3MxorpV6jKdNhrzHSujnjVXu7fr8PCHhMwi",
"senderPublicKey": "BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH",
"proofs": [
"5PCtiayXHLrPzmgTCmbNx9Tp19gLSeFX7KpE6Cn9PR3f8UyHwD7aPaPWUzk2RzS43hSVoXd2NbF41F8VajhuJyWq"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAHAAAAAA5vd25lclB1YmxpY0tleQEAAAAgnOTxzRGlQL/gVO1uf4r6ecWijHA9iBu9xK1V+iHbiGoAAAAACmRlcGxveUluZm8CAAAAJGFkZGVkIGRhdGEgZnVuY3Rpb25hbGl0eSAodGVzdHBoYXNlKQEAAAAJd3JpdGVEYXRhAAAAAgAAAAdkYXRhS2V5AAAACWRhdGFWYWx1ZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHZGF0YUtleQUAAAAJZGF0YVZhbHVlBQAAAANuaWwBAAAAB2dldERhdGEAAAABAAAAB2RhdGFLZXkEAAAAC2RhdGFQYWNrYWdlCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAdkYXRhS2V5BQAAAAtkYXRhUGFja2FnZQEAAAAJZW1pdFRva2VuAAAAAwAAAAhyZWNlaXZlcgAAAA5kaXNwZW5zZUFtb3VudAAAAAphdHRhY2htZW50BAAAAAV0b2tlbgIAAAAGS0VLUy0xBQAAAAV0b2tlb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URhdGEAAAACBQAAAA1jYWxsZXJBY2NvdW50BQAAAAttZXNzYWdlRGF0YQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYHJDerAg==",
"chainId": 84,
"height": 652247,
"spentComplexity": 0
}
View: original | compacted
Prev: Eyh9rbswVsF1rQK3P9HYgXGYzgVaZ5iHN6vcHgL7h6wq
Next: CfvuBDr5qBpKmQPB6oWskCer12tFgsJTXmu9qGLLfs3r
Diff:
Old | New | | Differences |
---|
36 | 36 | | func dispense () = { |
---|
37 | 37 | | let v = extract(u.payment) |
---|
38 | 38 | | let w = "default message for now" |
---|
39 | | - | let x = ((toBase58String(extract(u.callerPublicKey)) + "_") + toString(height)) |
---|
| 39 | + | let x = toBase58String(extract(u.callerPublicKey)) |
---|
40 | 40 | | let y = u.transactionId |
---|
41 | 41 | | let z = if ((v.amount == 100000000)) |
---|
42 | 42 | | then "S" |
---|
|
45 | 45 | | else if ((v.amount == 400000000)) |
---|
46 | 46 | | then "L" |
---|
47 | 47 | | else "error" |
---|
| 48 | + | let A = ((((((toBase58String(extract(u.callerPublicKey)) + ";") + toString(v.amount)) + ";") + toString(height)) + ";") + z) |
---|
48 | 49 | | if ((z == "error")) |
---|
49 | 50 | | then throw("Unrecognized sizing") |
---|
50 | | - | else c(x, w) |
---|
| 51 | + | else c(x, A) |
---|
51 | 52 | | } |
---|
52 | 53 | | |
---|
53 | 54 | | |
---|
54 | | - | @Verifier(A) |
---|
55 | | - | func B () = { |
---|
56 | | - | let C = A |
---|
57 | | - | if ($isInstanceOf(C, "SetScriptTransaction")) |
---|
| 55 | + | @Verifier(B) |
---|
| 56 | + | func C () = { |
---|
| 57 | + | let D = B |
---|
| 58 | + | if ($isInstanceOf(D, "SetScriptTransaction")) |
---|
58 | 59 | | then { |
---|
59 | | - | let D = C |
---|
60 | | - | sigVerify(A.bodyBytes, A.proofs[0], a) |
---|
| 60 | + | let E = D |
---|
| 61 | + | sigVerify(B.bodyBytes, B.proofs[0], a) |
---|
61 | 62 | | } |
---|
62 | | - | else if ($isInstanceOf(C, "DataTransaction")) |
---|
| 63 | + | else if ($isInstanceOf(D, "DataTransaction")) |
---|
63 | 64 | | then { |
---|
64 | | - | let D = C |
---|
| 65 | + | let E = D |
---|
65 | 66 | | true |
---|
66 | 67 | | } |
---|
67 | | - | else if ($isInstanceOf(C, "TransferTransaction")) |
---|
| 68 | + | else if ($isInstanceOf(D, "TransferTransaction")) |
---|
68 | 69 | | then { |
---|
69 | | - | let D = C |
---|
| 70 | + | let E = D |
---|
70 | 71 | | true |
---|
71 | 72 | | } |
---|
72 | | - | else if ($isInstanceOf(C, "IssueTransaction")) |
---|
| 73 | + | else if ($isInstanceOf(D, "IssueTransaction")) |
---|
73 | 74 | | then { |
---|
74 | | - | let D = C |
---|
| 75 | + | let E = D |
---|
75 | 76 | | true |
---|
76 | 77 | | } |
---|
77 | | - | else if ($isInstanceOf(C, "ReissueTransaction")) |
---|
| 78 | + | else if ($isInstanceOf(D, "ReissueTransaction")) |
---|
78 | 79 | | then { |
---|
79 | | - | let D = C |
---|
| 80 | + | let E = D |
---|
80 | 81 | | true |
---|
81 | 82 | | } |
---|
82 | 83 | | else false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'BZT5fzv8ZeHVn8xAGZVXZHUvoAkdRNCbtEuBn3pCuXEH' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "added data functionality (testphase)" |
---|
7 | 7 | | |
---|
8 | 8 | | func c (d,e) = WriteSet([DataEntry(d, e)]) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | func f (d) = { |
---|
12 | 12 | | let g = getStringValue(this, d) |
---|
13 | 13 | | g |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | func h (i,j,k) = { |
---|
18 | 18 | | let l = "KEKS-1" |
---|
19 | 19 | | l |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | func m (n,o) = { |
---|
24 | 24 | | let p = "x" |
---|
25 | 25 | | p |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | func q (i,r,s) = { |
---|
30 | 30 | | let t = "placeholder" |
---|
31 | 31 | | t |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Callable(u) |
---|
36 | 36 | | func dispense () = { |
---|
37 | 37 | | let v = extract(u.payment) |
---|
38 | 38 | | let w = "default message for now" |
---|
39 | | - | let x = ((toBase58String(extract(u.callerPublicKey)) + "_") + toString(height)) |
---|
| 39 | + | let x = toBase58String(extract(u.callerPublicKey)) |
---|
40 | 40 | | let y = u.transactionId |
---|
41 | 41 | | let z = if ((v.amount == 100000000)) |
---|
42 | 42 | | then "S" |
---|
43 | 43 | | else if ((v.amount == 200000000)) |
---|
44 | 44 | | then "M" |
---|
45 | 45 | | else if ((v.amount == 400000000)) |
---|
46 | 46 | | then "L" |
---|
47 | 47 | | else "error" |
---|
| 48 | + | let A = ((((((toBase58String(extract(u.callerPublicKey)) + ";") + toString(v.amount)) + ";") + toString(height)) + ";") + z) |
---|
48 | 49 | | if ((z == "error")) |
---|
49 | 50 | | then throw("Unrecognized sizing") |
---|
50 | | - | else c(x, w) |
---|
| 51 | + | else c(x, A) |
---|
51 | 52 | | } |
---|
52 | 53 | | |
---|
53 | 54 | | |
---|
54 | | - | @Verifier(A) |
---|
55 | | - | func B () = { |
---|
56 | | - | let C = A |
---|
57 | | - | if ($isInstanceOf(C, "SetScriptTransaction")) |
---|
| 55 | + | @Verifier(B) |
---|
| 56 | + | func C () = { |
---|
| 57 | + | let D = B |
---|
| 58 | + | if ($isInstanceOf(D, "SetScriptTransaction")) |
---|
58 | 59 | | then { |
---|
59 | | - | let D = C |
---|
60 | | - | sigVerify(A.bodyBytes, A.proofs[0], a) |
---|
| 60 | + | let E = D |
---|
| 61 | + | sigVerify(B.bodyBytes, B.proofs[0], a) |
---|
61 | 62 | | } |
---|
62 | | - | else if ($isInstanceOf(C, "DataTransaction")) |
---|
| 63 | + | else if ($isInstanceOf(D, "DataTransaction")) |
---|
63 | 64 | | then { |
---|
64 | | - | let D = C |
---|
| 65 | + | let E = D |
---|
65 | 66 | | true |
---|
66 | 67 | | } |
---|
67 | | - | else if ($isInstanceOf(C, "TransferTransaction")) |
---|
| 68 | + | else if ($isInstanceOf(D, "TransferTransaction")) |
---|
68 | 69 | | then { |
---|
69 | | - | let D = C |
---|
| 70 | + | let E = D |
---|
70 | 71 | | true |
---|
71 | 72 | | } |
---|
72 | | - | else if ($isInstanceOf(C, "IssueTransaction")) |
---|
| 73 | + | else if ($isInstanceOf(D, "IssueTransaction")) |
---|
73 | 74 | | then { |
---|
74 | | - | let D = C |
---|
| 75 | + | let E = D |
---|
75 | 76 | | true |
---|
76 | 77 | | } |
---|
77 | | - | else if ($isInstanceOf(C, "ReissueTransaction")) |
---|
| 78 | + | else if ($isInstanceOf(D, "ReissueTransaction")) |
---|
78 | 79 | | then { |
---|
79 | | - | let D = C |
---|
| 80 | + | let E = D |
---|
80 | 81 | | true |
---|
81 | 82 | | } |
---|
82 | 83 | | else false |
---|
83 | 84 | | } |
---|
84 | 85 | | |
---|