tx · 85gpZfgFMmUQNQpmkjP2FaMhNDZVFvvE53GNeLzADvRL

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.11 11:45 [1829350] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "85gpZfgFMmUQNQpmkjP2FaMhNDZVFvvE53GNeLzADvRL", "fee": 1000000, "feeAssetId": null, "timestamp": 1639212349801, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3j6iWEcz4x38yTNrzyf8ZDqaP44bP4jB7LGSZ6jHxXfuuR8FwTiQUjAHNd4kSQAUNz1ua6xBqkb3xSmzucJL63gF" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADGJ1cm5pbmdzdGFnZQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAABGNhbGwAAAABAAAABGlkNTgEAAAAC2N1cnJlbnR0aW1lBAAAAAckbWF0Y2gwCQAD7QAAAAEFAAAABmhlaWdodAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAJQmxvY2tJbmZvBAAAAAVibG9jawUAAAAHJG1hdGNoMAgFAAAABWJsb2NrAAAACXRpbWVzdGFtcAkAAAIAAAABAgA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AAEsAAAAAgIAAAAMcmVzZWl2ZWQgaW4gCQABpAAAAAEFAAAAC2N1cnJlbnR0aW1lAgAAAAACAAAAFWNhbnQgZmluZCB0cmFuc2FjdGlvbgMFAAAACWlzcHJvb3ZlZAMJAABmAAAAAgUAAAAKYnVybmFtb3VudAAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxjYWxsZXJBZHJlc3MFAAAACmRyb3BhbW91bnQFAAAABXRva2VuCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAGcmVzdWx0CQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAFdG9rZW4AAAAAAAAAA+cFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAtjdXJyZW50dGltZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxjYWxsZXJBZHJlc3MFAAAACmRyb3BhbW91bnQFAAAABXRva2VuBQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZyZXN1bHQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAjpTt/w==", "height": 1829350, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2AyZ25iTsheeDdqQ3g2X6zrAY7bEAcjyCwjghGcxmAGx Next: BKiUxiX31xrvnKvU4fKkyBxwGt2PdizczEBMmjdAMHpq Diff:
OldNewDifferences
7171 }
7272 else b
7373 }
74- let t = {
75- let f = getInteger(toBase58String(c.caller.bytes))
76- if ($isInstanceOf(f, "Int"))
77- then {
78- let j = f
79- true
80- }
81- else false
82- }
74+ let t = if ((take(valueOrElse(getStringValue(toBase58String(c.caller.bytes)), ""), 8) == "received"))
75+ then true
76+ else false
8377 let u = if (if (if ((r > o))
8478 then true
8579 else (n != s))
8983 else true
9084 let v = if (p)
9185 then if ((r > o))
92- then ("out of time range: " + toString(r))
86+ then ("transaction is out of time range: " + toString(r))
9387 else ("" + (if ((n != s))
94- then (((" incorrect sender: " + toString(n)) + " / ") + toString(s))
88+ then ((("it is incorrect sender: " + toString(n)) + " / ") + toString(s))
9589 else ("" + (if (t)
96- then getStringValue((toBase58String(c.caller.bytes) + "_result"))
90+ then getStringValue(toBase58String(c.caller.bytes))
9791 else ("" + (if (u)
9892 then ("reseived in " + toString(e))
9993 else ""))))))
10094 else "cant find transaction"
10195 if (u)
10296 then if ((i > 0))
103- then [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a), StringEntry((toBase58String(c.caller.bytes) + "_result"), v), Burn(a, 999)]
97+ then [ScriptTransfer(n, k, a), StringEntry(toBase58String(c.caller.bytes), v), Burn(a, 999)]
10498 else [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a)]
105- else [StringEntry((toBase58String(c.caller.bytes) + "_result"), v)]
99+ else [StringEntry(toBase58String(c.caller.bytes), v)]
106100 }
107101 else throw("Strict value is not equal to itself.")
108102 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo'
55
66 let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
77
88 @Callable(c)
99 func reset () = [DeleteEntry(toBase58String(c.caller.bytes)), IntegerEntry("burningstage", 0)]
1010
1111
1212
1313 @Callable(c)
1414 func call (d) = {
1515 let e = {
1616 let f = blockInfoByHeight(height)
1717 if ($isInstanceOf(f, "BlockInfo"))
1818 then {
1919 let g = f
2020 g.timestamp
2121 }
2222 else throw("Can't find block")
2323 }
2424 let h = assetBalance(b, a)
2525 let i = {
2626 let f = getInteger("burningstage")
2727 if ($isInstanceOf(f, "Int"))
2828 then {
2929 let j = f
3030 if (if ((getIntegerValue("burningstage") == 0))
3131 then (e > 1639131654752)
3232 else false)
3333 then fraction(h, 10, 100)
3434 else 0
3535 }
3636 else throw("no burningstage")
3737 }
3838 let k = 100
3939 let l = if ((h > k))
4040 then true
4141 else throw("not enough")
4242 if ((l == l))
4343 then {
4444 let m = fromBase58String(d)
4545 let n = Address(c.caller.bytes)
4646 let o = 1639148135492
4747 let p = {
4848 let f = transferTransactionById(m)
4949 if ($isInstanceOf(f, "TransferTransaction"))
5050 then {
5151 let q = f
5252 true
5353 }
5454 else false
5555 }
5656 let r = {
5757 let f = transferTransactionById(m)
5858 if ($isInstanceOf(f, "TransferTransaction"))
5959 then {
6060 let q = f
6161 q.timestamp
6262 }
6363 else 9999999999999
6464 }
6565 let s = {
6666 let f = transferTransactionById(m)
6767 if ($isInstanceOf(f, "TransferTransaction"))
6868 then {
6969 let q = f
7070 q.sender
7171 }
7272 else b
7373 }
74- let t = {
75- let f = getInteger(toBase58String(c.caller.bytes))
76- if ($isInstanceOf(f, "Int"))
77- then {
78- let j = f
79- true
80- }
81- else false
82- }
74+ let t = if ((take(valueOrElse(getStringValue(toBase58String(c.caller.bytes)), ""), 8) == "received"))
75+ then true
76+ else false
8377 let u = if (if (if ((r > o))
8478 then true
8579 else (n != s))
8680 then true
8781 else t)
8882 then false
8983 else true
9084 let v = if (p)
9185 then if ((r > o))
92- then ("out of time range: " + toString(r))
86+ then ("transaction is out of time range: " + toString(r))
9387 else ("" + (if ((n != s))
94- then (((" incorrect sender: " + toString(n)) + " / ") + toString(s))
88+ then ((("it is incorrect sender: " + toString(n)) + " / ") + toString(s))
9589 else ("" + (if (t)
96- then getStringValue((toBase58String(c.caller.bytes) + "_result"))
90+ then getStringValue(toBase58String(c.caller.bytes))
9791 else ("" + (if (u)
9892 then ("reseived in " + toString(e))
9993 else ""))))))
10094 else "cant find transaction"
10195 if (u)
10296 then if ((i > 0))
103- then [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a), StringEntry((toBase58String(c.caller.bytes) + "_result"), v), Burn(a, 999)]
97+ then [ScriptTransfer(n, k, a), StringEntry(toBase58String(c.caller.bytes), v), Burn(a, 999)]
10498 else [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a)]
105- else [StringEntry((toBase58String(c.caller.bytes) + "_result"), v)]
99+ else [StringEntry(toBase58String(c.caller.bytes), v)]
106100 }
107101 else throw("Strict value is not equal to itself.")
108102 }
109103
110104

github/deemru/w8io/026f985 
39.58 ms