tx · 7sDT8wewW3KN6UhG9F1MCbDeTdYgHs8W35tS1mtqKBjK

3MpwA3zztn9AiVLgzxtYyj21AAbvtWeBodX:  -0.01000000 Waves

2022.05.11 22:51 [2047447] smart account 3MpwA3zztn9AiVLgzxtYyj21AAbvtWeBodX > SELF 0.00000000 Waves

{ "type": 13, "id": "7sDT8wewW3KN6UhG9F1MCbDeTdYgHs8W35tS1mtqKBjK", "fee": 1000000, "feeAssetId": null, "timestamp": 1652298684534, "version": 2, "chainId": 84, "sender": "3MpwA3zztn9AiVLgzxtYyj21AAbvtWeBodX", "senderPublicKey": "DiHcx3LJuz15WXcQqQE1gEhBzw6k7HqgBE7m1qn3APFw", "proofs": [ "2M7KwTFhELcJszGWipsXZGEGvk3Kcb95C5aPkgSLMEZYnPvS8pWFEaLnH39ZzGnDvfoPzKqAk3zmERTECvYRAhJ7" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAALUkVXQVJEQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAQAAAAFpAQAAAARjYWxsAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAX14QAFAAAAC1JFV0FSREFTU0VUBQAAAANuaWwAAAAA/9FSzQ==", "height": 2047447, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8o3juiN1Dev2zdt11ushde6rfK96F6bXZiyfxcsaBpnq Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
55
6-func b (c) = {
7- let d = a
8- if ((size(c.payments) == 0))
9- then throw("Payment not attached")
10- else {
11- let e = c.payments[0]
12- let f = e.assetId
13- if ($isInstanceOf(f, "ByteVector"))
14- then {
15- let g = f
16- if ((g == d))
17- then (e.amount == 1000000)
18- else false
19- }
20- else throw("Wrong payment asset")
21- }
22- }
23-
24-
25-@Callable(c)
26-func flip (h) = if (b(c))
27- then {
28- let i = valueOrElse(h, 0)
29- if (if ((i == 1))
30- then true
31- else (i == 0))
32- then {
33- let j = (((toBase58String(c.caller.bytes) + "_") + toString(h)) + "_c")
34- throw(j)
35- }
36- else throw("wrong choice ser!!")
37- }
38- else throw("wrong payment asset ser!!")
6+@Callable(b)
7+func call () = [ScriptTransfer(b.caller, 100000000, a)]
398
409
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
55
6-func b (c) = {
7- let d = a
8- if ((size(c.payments) == 0))
9- then throw("Payment not attached")
10- else {
11- let e = c.payments[0]
12- let f = e.assetId
13- if ($isInstanceOf(f, "ByteVector"))
14- then {
15- let g = f
16- if ((g == d))
17- then (e.amount == 1000000)
18- else false
19- }
20- else throw("Wrong payment asset")
21- }
22- }
23-
24-
25-@Callable(c)
26-func flip (h) = if (b(c))
27- then {
28- let i = valueOrElse(h, 0)
29- if (if ((i == 1))
30- then true
31- else (i == 0))
32- then {
33- let j = (((toBase58String(c.caller.bytes) + "_") + toString(h)) + "_c")
34- throw(j)
35- }
36- else throw("wrong choice ser!!")
37- }
38- else throw("wrong payment asset ser!!")
6+@Callable(b)
7+func call () = [ScriptTransfer(b.caller, 100000000, a)]
398
409

github/deemru/w8io/873ac7e 
20.05 ms