tx · GYaYkb8qsVNkuWjZzz23Z9ZzJ5EUGKLaHLntrHbaTFo5
3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9: -0.01400000 Waves
2019.11.25 17:25 [780914] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "GYaYkb8qsVNkuWjZzz23Z9ZzJ5EUGKLaHLntrHbaTFo5",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574691933853,
"version": 1,
"sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9",
"senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW",
"proofs": [
"39tBZ6M5Js1Jemw2Tc8rFfP8f7Jjzf42u1wPQgzJpqBjTUeEcxzNw35bDXKLBLLLMea3cWasyYtzBxCegzjE1cwM"
],
"script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAEAQAAAAZzZXRyZWYAAAADAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIEAAAAA2xkZQgFAAAAAmxkAAAABGRhdGEEAAAAB2lzcmVmZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAR1c2VyAgAAAARfcmVmAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAMJAAAAAAAAAgUAAAAHaXNyZWZlcgIAAAAABAAAAANkc2wJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgUAAAAFcmVmZXIFAAAAA2xkZQQAAAAEZHNsMQkBAAAACFdyaXRlU2V0AAAAAQUAAAADZHNsBQAAAARkc2wxBQAAAAJsZAEAAAAPbmV4dGNvdW50dGlja2V0AAAAAgAAAAJsZAAAAAhuZXdjb3VudAQAAAADbGRlCAUAAAACbGQAAAAEZGF0YQQAA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1RpY2tldGNvdW50BAAAABBjdXJyZW50a2V5dGlja2V0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAHdGlja2V0XwkAAaQAAAABBQAAAAtudW1iZXJyb3VuZAIAAAABXwkAAaQAAAABBQAAAA5uZXdUaWNrZXRjb3VudAIAAAABXwUAAAAEdXNlcgQAAAAEZHNsMwkBAAAACmRhdGF0aWNrZXQAAAADBQAAAARkc2wyBQAAABBjdXJyZW50a2V5dGlja2V0BQAAAAZ0aWNrZXQEAAAABGRzbDQJAQAAAA5jaGVja25leHRyb3VuZAAAAAMFAAAABGRzbDMFAAAADm5ld1RpY2tldGNvdW50BQAAAAtudW1iZXJyb3VuZAUAAAAEZHNsNAAAAAAvdVu2",
"chainId": 84,
"height": 780914,
"spentComplexity": 0
}
View: original | compacted
Prev: 297jcJw6PCXqJF4M7MmdgTi4Sr4feagrCxe6QUreoXT3
Next: 9ejjoQdvPZzPhoZFNdcV1y6Zn3F5auUHpdSUH5muA1Ug
Diff:
Old | New | | Differences |
---|
53 | 53 | | @Callable(v) |
---|
54 | 54 | | func playbingo (w,x,d) = { |
---|
55 | 55 | | let y = extract(v.payment) |
---|
56 | | - | let z = y.amount |
---|
| 56 | + | let z = extract(y.amount) |
---|
57 | 57 | | let A = parseIntValue(x) |
---|
58 | 58 | | let B = (z * A) |
---|
59 | 59 | | if ((1 > B)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c,d) = { |
---|
5 | 5 | | let e = b.data |
---|
6 | 6 | | let f = { |
---|
7 | 7 | | let g = getString(this, (c + "_ref")) |
---|
8 | 8 | | if ($isInstanceOf(g, "String")) |
---|
9 | 9 | | then { |
---|
10 | 10 | | let h = g |
---|
11 | 11 | | h |
---|
12 | 12 | | } |
---|
13 | 13 | | else "" |
---|
14 | 14 | | } |
---|
15 | 15 | | if ((f == "")) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let i = DataEntry((c + "_ref"), d) :: e |
---|
18 | 18 | | let j = WriteSet(i) |
---|
19 | 19 | | j |
---|
20 | 20 | | } |
---|
21 | 21 | | else b |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | func k (b,l) = { |
---|
26 | 26 | | let e = b.data |
---|
27 | 27 | | let m = DataEntry("ticketcount", l) :: e |
---|
28 | 28 | | let n = WriteSet(m) |
---|
29 | 29 | | n |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | func o (b,p,q) = { |
---|
34 | 34 | | let e = b.data |
---|
35 | 35 | | let r = DataEntry(p, q) :: e |
---|
36 | 36 | | let n = WriteSet(r) |
---|
37 | 37 | | n |
---|
38 | 38 | | } |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | func s (b,t,u) = { |
---|
42 | 42 | | let e = b.data |
---|
43 | 43 | | if ((t == 100)) |
---|
44 | 44 | | then { |
---|
45 | 45 | | let r = DataEntry("numberofround", (u + 1)) :: e |
---|
46 | 46 | | let n = WriteSet(r) |
---|
47 | 47 | | n |
---|
48 | 48 | | } |
---|
49 | 49 | | else b |
---|
50 | 50 | | } |
---|
51 | 51 | | |
---|
52 | 52 | | |
---|
53 | 53 | | @Callable(v) |
---|
54 | 54 | | func playbingo (w,x,d) = { |
---|
55 | 55 | | let y = extract(v.payment) |
---|
56 | | - | let z = y.amount |
---|
| 56 | + | let z = extract(y.amount) |
---|
57 | 57 | | let A = parseIntValue(x) |
---|
58 | 58 | | let B = (z * A) |
---|
59 | 59 | | if ((1 > B)) |
---|
60 | 60 | | then throw("Ticket price is 1 WAVES") |
---|
61 | 61 | | else { |
---|
62 | 62 | | let C = { |
---|
63 | 63 | | let g = getInteger(this, "fondprize") |
---|
64 | 64 | | if ($isInstanceOf(g, "Int")) |
---|
65 | 65 | | then { |
---|
66 | 66 | | let h = g |
---|
67 | 67 | | h |
---|
68 | 68 | | } |
---|
69 | 69 | | else 0 |
---|
70 | 70 | | } |
---|
71 | 71 | | let D = DataEntry("fondprize", (C + (B / 2))) |
---|
72 | 72 | | let i = WriteSet([D]) |
---|
73 | 73 | | let E = { |
---|
74 | 74 | | let g = getInteger(this, "numberofround") |
---|
75 | 75 | | if ($isInstanceOf(g, "Int")) |
---|
76 | 76 | | then { |
---|
77 | 77 | | let h = g |
---|
78 | 78 | | h |
---|
79 | 79 | | } |
---|
80 | 80 | | else 1 |
---|
81 | 81 | | } |
---|
82 | 82 | | let c = toString(v.caller) |
---|
83 | 83 | | let j = a(i, c, d) |
---|
84 | 84 | | let F = { |
---|
85 | 85 | | let g = getInteger(this, "ticketcount") |
---|
86 | 86 | | if ($isInstanceOf(g, "Int")) |
---|
87 | 87 | | then { |
---|
88 | 88 | | let h = g |
---|
89 | 89 | | h |
---|
90 | 90 | | } |
---|
91 | 91 | | else 0 |
---|
92 | 92 | | } |
---|
93 | 93 | | let G = (F + 1) |
---|
94 | 94 | | let H = k(j, G) |
---|
95 | 95 | | let I = ((((("ticket_" + toString(E)) + "_") + toString(G)) + "_") + c) |
---|
96 | 96 | | let J = o(H, I, w) |
---|
97 | 97 | | let K = s(J, G, E) |
---|
98 | 98 | | K |
---|
99 | 99 | | } |
---|
100 | 100 | | } |
---|
101 | 101 | | |
---|
102 | 102 | | |
---|