tx · DkByukNa5t5iF43AyBfsT8wZmeynRpCbcNb41SgowdTF 3N7L7f19WTTyBdjuAEo9zUk41KhJwHfWDL4: -0.04000000 Waves 2020.04.05 06:06 [940350] smart account 3N7L7f19WTTyBdjuAEo9zUk41KhJwHfWDL4 > SELF 0.00000000 Waves
{ "type": 13, "id": "DkByukNa5t5iF43AyBfsT8wZmeynRpCbcNb41SgowdTF", "fee": 4000000, "feeAssetId": null, "timestamp": 1586053877116, "version": 1, "sender": "3N7L7f19WTTyBdjuAEo9zUk41KhJwHfWDL4", "senderPublicKey": "59CTY5y8NhiUeszz262yuvhjCJujTUAJ7TETzN6ASuGs", "proofs": [ "39RbhHcnzphEzsm3gWjnJ1rTrkVVYJuZYVxEjaQfJRLmUQnnaWcTwden1eWtvXJw64t8drQjZxtMYUJXHeimXnNg" ], "script": "base64:AAIDAAAAAAAAAA4IARIDCgEIEgUKAwgICAAAAAYAAAAABE5PTkUCAAAABG5vbmUAAAAABU9XTkVSAgAAAAhCSVROT0RFUwAAAAAKTVVMVElPV05FUgcBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAAA3N0cgEAAAAOYWRkTm9kZURldGFpbHMAAAACAAAABGFkZHIAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEYWRkcgUAAAADa2V5AwkAAAEAAAACBQAAAAck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aWVyBQAAAANuaWwAAAAAGTSP5A==", "chainId": 84, "height": 940350, "spentComplexity": 0 } View: original | compacted Prev: 5Ry3XwvdgHLCiuR7cXDwhRiTazygZFvp2X1FYQzdNpdw Next: none Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | then throw("Categoria inexistente") | |
94 | 94 | else { | |
95 | 95 | let v = k(s, "details") | |
96 | - | WriteSet([DataEntry(u, p), DataEntry((p + "_nodeSC"), toString(s)), DataEntry((p + "_nodeDetails"), v), DataEntry((p + "_nodeStatus"), q)]) | |
96 | + | WriteSet([DataEntry(u, p), DataEntry((p + "_nodeSC"), toString(s)), DataEntry((p + "_nodeDetails"), v), DataEntry((p + "_nodeStatus"), q), DataEntry((p + "_tier"), r)]) | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "none" | |
5 | 5 | ||
6 | 6 | let b = "BITNODES" | |
7 | 7 | ||
8 | 8 | let c = false | |
9 | 9 | ||
10 | 10 | func d (e) = { | |
11 | 11 | let f = { | |
12 | 12 | let g = getInteger(this, e) | |
13 | 13 | if ($isInstanceOf(g, "Int")) | |
14 | 14 | then { | |
15 | 15 | let h = g | |
16 | 16 | h | |
17 | 17 | } | |
18 | 18 | else 0 | |
19 | 19 | } | |
20 | 20 | f | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i (e) = { | |
25 | 25 | let j = { | |
26 | 26 | let g = getString(this, e) | |
27 | 27 | if ($isInstanceOf(g, "String")) | |
28 | 28 | then { | |
29 | 29 | let h = g | |
30 | 30 | h | |
31 | 31 | } | |
32 | 32 | else a | |
33 | 33 | } | |
34 | 34 | j | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func k (l,e) = { | |
39 | 39 | let j = { | |
40 | 40 | let g = getString(l, e) | |
41 | 41 | if ($isInstanceOf(g, "String")) | |
42 | 42 | then { | |
43 | 43 | let h = g | |
44 | 44 | h | |
45 | 45 | } | |
46 | 46 | else a | |
47 | 47 | } | |
48 | 48 | j | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(m) | |
53 | 53 | func updateNode (n) = { | |
54 | 54 | let o = toBase58String(m.caller.bytes) | |
55 | 55 | if ((o != toString(this))) | |
56 | 56 | then throw("Operação não autorizada") | |
57 | 57 | else WriteSet(nil) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(m) | |
63 | 63 | func addNode (p,q,r) = { | |
64 | 64 | let o = toBase58String(m.caller.bytes) | |
65 | 65 | let s = addressFromPublicKey(fromBase58String(p)) | |
66 | 66 | let t = k(s, "owner") | |
67 | 67 | let u = k(s, "asset") | |
68 | 68 | if ((o != toString(this))) | |
69 | 69 | then throw("Operação não autorizada") | |
70 | 70 | else if ((t == a)) | |
71 | 71 | then throw("Propriedade não identificada") | |
72 | 72 | else if (if ((t != b)) | |
73 | 73 | then (c == false) | |
74 | 74 | else false) | |
75 | 75 | then throw("Propriedade incorreta") | |
76 | 76 | else if ((u == a)) | |
77 | 77 | then throw("Inconsistencia de dados do node") | |
78 | 78 | else if (if (if ((q != "ON")) | |
79 | 79 | then (q != "OFF") | |
80 | 80 | else false) | |
81 | 81 | then (q != "LAUNCH") | |
82 | 82 | else false) | |
83 | 83 | then throw("Status operacional inexistente") | |
84 | 84 | else if (if (if (if (if ((r != "VOTING")) | |
85 | 85 | then (r != "COLLECTING") | |
86 | 86 | else false) | |
87 | 87 | then (r != "NORMAL") | |
88 | 88 | else false) | |
89 | 89 | then (r != "FEATURED") | |
90 | 90 | else false) | |
91 | 91 | then (r != "EXPERIMENTAL") | |
92 | 92 | else false) | |
93 | 93 | then throw("Categoria inexistente") | |
94 | 94 | else { | |
95 | 95 | let v = k(s, "details") | |
96 | - | WriteSet([DataEntry(u, p), DataEntry((p + "_nodeSC"), toString(s)), DataEntry((p + "_nodeDetails"), v), DataEntry((p + "_nodeStatus"), q)]) | |
96 | + | WriteSet([DataEntry(u, p), DataEntry((p + "_nodeSC"), toString(s)), DataEntry((p + "_nodeDetails"), v), DataEntry((p + "_nodeStatus"), q), DataEntry((p + "_tier"), r)]) | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 |
github/deemru/w8io/169f3d6 27.64 ms ◑