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