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:AAIDAAAAAAAAAA4IARIDCgEIEgUKAwgICAAAAAYAAAAABE5PTkUCAAAABG5vbmUAAAAABU9XTkVSAgAAAAhCSVROT0RFUwAAAAAKTVVMVElPV05FUgcBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAAA3N0cgEAAAAOYWRkTm9kZURldGFpbHMAAAACAAAABGFkZHIAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEYWRkcgUAAAADa2V5AwkAAAEAAAACBQAAAA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0aWVyBQAAAANuaWwAAAAAGTSP5A==", "chainId": 84, "height": 940350, "spentComplexity": 0 } View: original | compacted Prev: 5Ry3XwvdgHLCiuR7cXDwhRiTazygZFvp2X1FYQzdNpdw Next: none Diff:
OldNewDifferences
9393 then throw("Categoria inexistente")
9494 else {
9595 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)])
9797 }
9898 }
9999
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
66 let b = "BITNODES"
77
88 let c = false
99
1010 func d (e) = {
1111 let f = {
1212 let g = getInteger(this, e)
1313 if ($isInstanceOf(g, "Int"))
1414 then {
1515 let h = g
1616 h
1717 }
1818 else 0
1919 }
2020 f
2121 }
2222
2323
2424 func i (e) = {
2525 let j = {
2626 let g = getString(this, e)
2727 if ($isInstanceOf(g, "String"))
2828 then {
2929 let h = g
3030 h
3131 }
3232 else a
3333 }
3434 j
3535 }
3636
3737
3838 func k (l,e) = {
3939 let j = {
4040 let g = getString(l, e)
4141 if ($isInstanceOf(g, "String"))
4242 then {
4343 let h = g
4444 h
4545 }
4646 else a
4747 }
4848 j
4949 }
5050
5151
5252 @Callable(m)
5353 func updateNode (n) = {
5454 let o = toBase58String(m.caller.bytes)
5555 if ((o != toString(this)))
5656 then throw("Operação não autorizada")
5757 else WriteSet(nil)
5858 }
5959
6060
6161
6262 @Callable(m)
6363 func addNode (p,q,r) = {
6464 let o = toBase58String(m.caller.bytes)
6565 let s = addressFromPublicKey(fromBase58String(p))
6666 let t = k(s, "owner")
6767 let u = k(s, "asset")
6868 if ((o != toString(this)))
6969 then throw("Operação não autorizada")
7070 else if ((t == a))
7171 then throw("Propriedade não identificada")
7272 else if (if ((t != b))
7373 then (c == false)
7474 else false)
7575 then throw("Propriedade incorreta")
7676 else if ((u == a))
7777 then throw("Inconsistencia de dados do node")
7878 else if (if (if ((q != "ON"))
7979 then (q != "OFF")
8080 else false)
8181 then (q != "LAUNCH")
8282 else false)
8383 then throw("Status operacional inexistente")
8484 else if (if (if (if (if ((r != "VOTING"))
8585 then (r != "COLLECTING")
8686 else false)
8787 then (r != "NORMAL")
8888 else false)
8989 then (r != "FEATURED")
9090 else false)
9191 then (r != "EXPERIMENTAL")
9292 else false)
9393 then throw("Categoria inexistente")
9494 else {
9595 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)])
9797 }
9898 }
9999
100100

github/deemru/w8io/169f3d6 
27.64 ms