tx · Hmji9iEkLZnTxTZFjbMzwfRBDfE6oaQ5G1sndtKEDWWf

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 15:01 [1828115] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "Hmji9iEkLZnTxTZFjbMzwfRBDfE6oaQ5G1sndtKEDWWf", "fee": 1400000, "feeAssetId": null, "timestamp": 1639137747386, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "2VEe5ZuFg1eb1xECC1nunZR5kzJKph1tcqVmYJfD4Try64XstexUZM5wCaujBKoJWfQSaxTNsLEA5qp5QfPdVPqh" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAA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GltZQUAAAAEdGltZQkAASwAAAACAgAAAApvdmVydGltZTogCQABpAAAAAEFAAAABnRydGltZQMJAQAAAAIhPQAAAAIFAAAADGNhbGxlckFkcmVzcwUAAAAIdHJzZW5kZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEmluY29ycmVjdCBzZW5kZXI6IAkABCUAAAABBQAAAAxjYWxsZXJBZHJlc3MCAAAAAyAvIAkABCUAAAABBQAAAAh0cnNlbmRlcgMFAAAACHJlY2VpdmVkAgAAAAhyZWNlaXZlZAIAAAAHcHJvb3ZlZAMFAAAACWlzcHJvb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGkAAAAAQUAAAALY3VycmVudHRpbWUFAAAAA25pbAkAAAIAAAABAgAAAAtub3QgcHJvb3ZlZAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTXAvDU=", "height": 1828115, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z Next: KVfiXbTGFfciqZwfL7bwQmGsoxyNAzAADnww5W9tbb4 Diff:
OldNewDifferences
4646 case _ =>
4747 throw("Can't find block")
4848 }
49- let isprooved = if (if (if ((trtime > time))
49+ let isprooved = if (if ((trtime > time))
5050 then true
5151 else (callerAdress != trsender))
52- then true
53- else received)
5452 then false
5553 else true
5654 let mess = if ((trtime > time))
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')
77
88 @Callable(i)
99 func reset () = [DeleteEntry(toBase58String(i.caller.bytes))]
1010
1111
1212
1313 @Callable(i)
1414 func call (id58) = {
1515 let balance = assetBalance(airdrop, token)
1616 let dropamount = 100
1717 let isenough = if ((balance > dropamount))
1818 then true
1919 else throw("not enough")
2020 if ((isenough == isenough))
2121 then {
2222 let id = fromBase58String(id58)
2323 let callerAdress = Address(i.caller.bytes)
2424 let time = 1639131654752
2525 let trtime = match transferTransactionById(id) {
2626 case ttx: TransferTransaction =>
2727 ttx.timestamp
2828 case _ =>
2929 throw("Can't find transaction")
3030 }
3131 let trsender = match transferTransactionById(id) {
3232 case ttx: TransferTransaction =>
3333 ttx.sender
3434 case _ =>
3535 throw("Can't find transaction")
3636 }
3737 let received = match getString(toBase58String(i.caller.bytes)) {
3838 case a: String =>
3939 false
4040 case _ =>
4141 true
4242 }
4343 let currenttime = match blockInfoByHeight(height) {
4444 case block: BlockInfo =>
4545 block.timestamp
4646 case _ =>
4747 throw("Can't find block")
4848 }
49- let isprooved = if (if (if ((trtime > time))
49+ let isprooved = if (if ((trtime > time))
5050 then true
5151 else (callerAdress != trsender))
52- then true
53- else received)
5452 then false
5553 else true
5654 let mess = if ((trtime > time))
5755 then ("overtime: " + toString(trtime))
5856 else if ((callerAdress != trsender))
5957 then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender))
6058 else if (received)
6159 then "received"
6260 else "prooved"
6361 if (isprooved)
6462 then [StringEntry(toBase58String(i.caller.bytes), toString(currenttime))]
6563 else throw("not prooved")
6664 }
6765 else throw("Strict value is not equal to itself.")
6866 }
6967
7068
7169 @Verifier(tx)
7270 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7371

github/deemru/w8io/026f985 
29.38 ms