tx · GftuRzV8GiAb1E98hTJq9QgTDGGcquBnoAU9zZcupCm5 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves 2021.05.30 18:44 [1548604] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{ "type": 13, "id": "GftuRzV8GiAb1E98hTJq9QgTDGGcquBnoAU9zZcupCm5", "fee": 1400000, "feeAssetId": null, "timestamp": 1622389498855, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "2vw8kjbp4AwAK9XoSN1CW58CVdz1KxFWNvyAm15AdkqMCBzYKF5nVnwn9XimHaDwr1qdAes3YWkp9Y4XrNHvRRX6" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAwAAAAAIa2l0dGVuSWQCAAAALEd1b2JjSHZXOVdxb3Rua0dVajdKa3BjYlh0Z1ZmQjM3VEE0SmtnU2o5UWJiAQAAAApnZW5lcmF0aW9uAAAAAQAAAANudW0DAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAAAGCQAAZwAAAAIAAAAAAAAAASwFAAAAA251bQIAAAACRzEDAwkAAGYAAAACBQAAAANudW0AAAAAAAAAASwGCQAAZwAAAAIAAAAAAAAAA+gFAAAAA251bQIAAAACRzICAAAAAkczAQAAAA1pc3N1ZUdlbmVDb2RlAAAAAAQAAAAJdGltZXN0YW1wCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAQAAAAMdGltZXN0YW1wU3RyCQABpAAAAAEFAAAACXRpbWVzdGFtcAQAAAAKdGltZXN0YW1wMgkBAAAACXRha2VSaWdodAAAAAIFAAAADHRpbWVzdGFtcFN0cgAAAAAAAAAAAgQAAAAHcGVyY2VudAkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAAAp0aW1lc3RhbXAyAwkAAA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AAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xFwVqw==", "height": 1548604, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GEQ7huav6U5Er4HAhMuy7onYhJMWxQMZaAj3uqFAEMQC Next: 4fZEMf3Ze5GMUnUDLrLSMWknHJjrLJ1fJzKQrKqYoziJ Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | func b (c) = if (if ((c > 0)) | |
7 | 7 | then true | |
8 | - | else ( | |
8 | + | else (300 >= c)) | |
9 | 9 | then "G1" | |
10 | - | else if (if ((c > | |
10 | + | else if (if ((c > 300)) | |
11 | 11 | then true | |
12 | - | else ( | |
12 | + | else (1000 >= c)) | |
13 | 13 | then "G2" | |
14 | 14 | else "G3" | |
15 | 15 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb" | |
5 | 5 | ||
6 | 6 | func b (c) = if (if ((c > 0)) | |
7 | 7 | then true | |
8 | - | else ( | |
8 | + | else (300 >= c)) | |
9 | 9 | then "G1" | |
10 | - | else if (if ((c > | |
10 | + | else if (if ((c > 300)) | |
11 | 11 | then true | |
12 | - | else ( | |
12 | + | else (1000 >= c)) | |
13 | 13 | then "G2" | |
14 | 14 | else "G3" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func d () = { | |
18 | 18 | let e = lastBlock.timestamp | |
19 | 19 | let f = toString(e) | |
20 | 20 | let g = takeRight(f, 2) | |
21 | 21 | let h = parseIntValue(g) | |
22 | 22 | if ((h == 0)) | |
23 | 23 | then "AA-AA-AA-AA" | |
24 | 24 | else if (if ((h > 0)) | |
25 | 25 | then true | |
26 | 26 | else (3 >= h)) | |
27 | 27 | then "BB-BB-BB-BB" | |
28 | 28 | else if (if ((h > 3)) | |
29 | 29 | then true | |
30 | 30 | else (8 >= h)) | |
31 | 31 | then "CC-CC-CC-CC" | |
32 | 32 | else if (if ((h > 8)) | |
33 | 33 | then true | |
34 | 34 | else (15 >= h)) | |
35 | 35 | then "DD-DD-DD-DD" | |
36 | 36 | else if (if ((h > 15)) | |
37 | 37 | then true | |
38 | 38 | else (24 >= h)) | |
39 | 39 | then "EE-EE-EE-EE" | |
40 | 40 | else if (if ((h > 24)) | |
41 | 41 | then true | |
42 | 42 | else (35 >= h)) | |
43 | 43 | then "FF-FF-FF-FF" | |
44 | 44 | else if (if ((h > 35)) | |
45 | 45 | then true | |
46 | 46 | else (48 >= h)) | |
47 | 47 | then "GG-GG-GG-GG" | |
48 | 48 | else "HH-HH-HH-HH" | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(i) | |
53 | 53 | func giveBirthKitten () = { | |
54 | 54 | let j = i.payments[0] | |
55 | 55 | let k = toBase58String(value(j.assetId)) | |
56 | 56 | if ((k != a)) | |
57 | 57 | then throw("Please send Kitten token.") | |
58 | 58 | else { | |
59 | 59 | let l = j.amount | |
60 | 60 | let m = { | |
61 | 61 | let n = getInteger(this, "issueQuantity") | |
62 | 62 | if ($isInstanceOf(n, "Int")) | |
63 | 63 | then { | |
64 | 64 | let o = n | |
65 | 65 | o | |
66 | 66 | } | |
67 | 67 | else 0 | |
68 | 68 | } | |
69 | 69 | let p = (m + 1) | |
70 | 70 | let q = b(p) | |
71 | 71 | if ((l > 300)) | |
72 | 72 | then throw("Amount of Kitten tokens sent is 3 tokens.") | |
73 | 73 | else if ((300 > l)) | |
74 | 74 | then throw("Amount of Kitten tokens sent is 3 tokens.") | |
75 | 75 | else { | |
76 | 76 | let r = Issue("Kitten(=^・^=)", ("generation:" + q), 1, 0, false) | |
77 | 77 | let s = calculateAssetId(r) | |
78 | 78 | let t = ScriptTransfer(i.caller, 1, s) | |
79 | 79 | let u = d() | |
80 | 80 | [r, t, StringEntry(toBase58String(value(s)), u)] | |
81 | 81 | } | |
82 | 82 | } | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | @Verifier(v) | |
87 | 87 | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) | |
88 | 88 |
github/deemru/w8io/026f985 25.91 ms ◑