tx · 48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 14:59 [1828112] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z", "fee": 1400000, "feeAssetId": null, "timestamp": 1639137523410, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3mgArwHENMWE3emskX1d3wuuZn9mtvAiga1iZ2ANu6WQtyKhwSXJwzv39fJ1m8fatBjC82yyqMXeoqqw3DYWmZm4" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4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AAZgAAAAIFAAAABnRydGltZQUAAAAEdGltZQkAASwAAAACAgAAAApvdmVydGltZTogCQABpAAAAAEFAAAABnRydGltZQMJAQAAAAIhPQAAAAIFAAAADGNhbGxlckFkcmVzcwUAAAAIdHJzZW5kZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEmluY29ycmVjdCBzZW5kZXI6IAkABCUAAAABBQAAAAxjYWxsZXJBZHJlc3MCAAAAAyAvIAkABCUAAAABBQAAAAh0cnNlbmRlcgMFAAAACHJlY2VpdmVkAgAAAAhyZWNlaXZlZAIAAAAHcHJvb3ZlZAMFAAAACWlzcHJvb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGkAAAAAQUAAAALY3VycmVudHRpbWUFAAAAA25pbAkAAAIAAAABAgAAAAtub3QgcHJvb3ZlZAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRY4hm0=", "height": 1828112, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn Next: Hmji9iEkLZnTxTZFjbMzwfRBDfE6oaQ5G1sndtKEDWWf Diff:
OldNewDifferences
44 let token = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo'
55
66 let airdrop = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
7+
8+@Callable(i)
9+func reset () = [DeleteEntry(toBase58String(i.caller.bytes))]
10+
11+
712
813 @Callable(i)
914 func call (id58) = {
3540 case _ =>
3641 true
3742 }
43+ let currenttime = match blockInfoByHeight(height) {
44+ case block: BlockInfo =>
45+ block.timestamp
46+ case _ =>
47+ throw("Can't find block")
48+ }
3849 let isprooved = if (if (if ((trtime > time))
3950 then true
4051 else (callerAdress != trsender))
5061 then "received"
5162 else "prooved"
5263 if (isprooved)
53- then [StringEntry(toBase58String(i.caller.bytes), mess)]
64+ then [StringEntry(toBase58String(i.caller.bytes), toString(currenttime))]
5465 else throw("not prooved")
5566 }
5667 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let token = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo'
55
66 let airdrop = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
7+
8+@Callable(i)
9+func reset () = [DeleteEntry(toBase58String(i.caller.bytes))]
10+
11+
712
813 @Callable(i)
914 func call (id58) = {
1015 let balance = assetBalance(airdrop, token)
1116 let dropamount = 100
1217 let isenough = if ((balance > dropamount))
1318 then true
1419 else throw("not enough")
1520 if ((isenough == isenough))
1621 then {
1722 let id = fromBase58String(id58)
1823 let callerAdress = Address(i.caller.bytes)
1924 let time = 1639131654752
2025 let trtime = match transferTransactionById(id) {
2126 case ttx: TransferTransaction =>
2227 ttx.timestamp
2328 case _ =>
2429 throw("Can't find transaction")
2530 }
2631 let trsender = match transferTransactionById(id) {
2732 case ttx: TransferTransaction =>
2833 ttx.sender
2934 case _ =>
3035 throw("Can't find transaction")
3136 }
3237 let received = match getString(toBase58String(i.caller.bytes)) {
3338 case a: String =>
3439 false
3540 case _ =>
3641 true
3742 }
43+ let currenttime = match blockInfoByHeight(height) {
44+ case block: BlockInfo =>
45+ block.timestamp
46+ case _ =>
47+ throw("Can't find block")
48+ }
3849 let isprooved = if (if (if ((trtime > time))
3950 then true
4051 else (callerAdress != trsender))
4152 then true
4253 else received)
4354 then false
4455 else true
4556 let mess = if ((trtime > time))
4657 then ("overtime: " + toString(trtime))
4758 else if ((callerAdress != trsender))
4859 then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender))
4960 else if (received)
5061 then "received"
5162 else "prooved"
5263 if (isprooved)
53- then [StringEntry(toBase58String(i.caller.bytes), mess)]
64+ then [StringEntry(toBase58String(i.caller.bytes), toString(currenttime))]
5465 else throw("not prooved")
5566 }
5667 else throw("Strict value is not equal to itself.")
5768 }
5869
5970
6071 @Verifier(tx)
6172 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6273

github/deemru/w8io/026f985 
36.28 ms