tx · 43QB5RjGWZtfzu51SMmd3Xi2A8iRfob7tj3vEaZBfRA5

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.08 16:36 [1825344] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "43QB5RjGWZtfzu51SMmd3Xi2A8iRfob7tj3vEaZBfRA5", "fee": 1000000, "feeAssetId": null, "timestamp": 1638970588155, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3bmEzcaWfTiueGyskfTJaxvb8vnsWojHYRcapBDcwG4eXoKMmURztSFzY3PtkQmtzY54QLghvQ8FkM7wpCKU7FBk" ], "script": "base64:AAIFAAAAAAAAAAoIAhIECgIIARIAAAAAAQAAAAAFc2VwYXICAAAAAXwAAAACAAAAAWkBAAAADHNldGNoYWxsZW5nZQAAAAIAAAAEc2lkZQAAAAVzdGFrZQMDCQAAAAAAAAIFAAAABHNpZGUCAAAABWJsYWNrBgkAAAAAAAACBQAAAARzaWRlAgAAAAV3aGl0ZQQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFW11c3Qgc3Rha2Ugc29tZSB3YXZlcwMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAxjYWxsZXJBZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNhbGx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ub3QgZXhpc3RzAAAAAOYKo7I=", "height": 1825344, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DNUpuYH3XLS7VppsBSopAiGHodbbzbofzuC5BgzXzzkZ Next: 8rPgN9aFGac9bbZDYMcq6S9B4JZz2z3fJc398zoe4VFk Diff:
OldNewDifferences
2323
2424
2525 @Callable(b)
26-func unsetchallenge (g) = {
26+func unsetchallenge () = {
2727 let f = toBase58String(b.caller.bytes)
28- func h (g) = {
29- let i = getString(g)
28+ func g (h) = {
29+ let i = getString(h)
3030 if ($isInstanceOf(i, "String"))
3131 then {
3232 let j = i
33- getStringValue(g)
33+ getStringValue(h)
3434 }
3535 else ""
3636 }
3737
38- let k = split(h(f), a)
38+ let k = split(g(f), a)
3939 if ((size(k) == 1))
4040 then if ((k[0] == "awaiting"))
4141 then [StringEntry(("challenge-" + f), makeString(["unset", k[1], k[2]], a))]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "|"
55
66 @Callable(b)
77 func setchallenge (c,d) = if (if ((c == "black"))
88 then true
99 else (c == "white"))
1010 then {
1111 let e = if ((size(b.payments) == 1))
1212 then b.payments[0]
1313 else throw("must stake some waves")
1414 if (isDefined(e.assetId))
1515 then throw("works with waves only")
1616 else {
1717 let f = toBase58String(b.caller.bytes)
1818 [StringEntry(("challenge-" + f), makeString(["awaiting", c, toString(e.amount)], a))]
1919 }
2020 }
2121 else throw("invalid side")
2222
2323
2424
2525 @Callable(b)
26-func unsetchallenge (g) = {
26+func unsetchallenge () = {
2727 let f = toBase58String(b.caller.bytes)
28- func h (g) = {
29- let i = getString(g)
28+ func g (h) = {
29+ let i = getString(h)
3030 if ($isInstanceOf(i, "String"))
3131 then {
3232 let j = i
33- getStringValue(g)
33+ getStringValue(h)
3434 }
3535 else ""
3636 }
3737
38- let k = split(h(f), a)
38+ let k = split(g(f), a)
3939 if ((size(k) == 1))
4040 then if ((k[0] == "awaiting"))
4141 then [StringEntry(("challenge-" + f), makeString(["unset", k[1], k[2]], a))]
4242 else throw("challenge not exists")
4343 else throw("challenge not exists")
4444 }
4545
4646

github/deemru/w8io/026f985 
42.31 ms