tx · AZWqzReh6ej7ChaMCkLRJv14eRiZdcv8amRjdckChe9f

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.10 16:08 [1828181] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "AZWqzReh6ej7ChaMCkLRJv14eRiZdcv8amRjdckChe9f", "fee": 1000000, "feeAssetId": null, "timestamp": 1639141793150, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5TfKa8NbCdd9P6KUpi4VQpi67sUMV9sRTsSYe9Ys587a75S6B8jzkRnufCQW8ZUrcm3MPQG1P7F32hJyAVMrK41x" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAA25pbAAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BA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", "height": 1828181, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fs7rKk6m3URkVNmEChYZf4rtyK7HCbEuSPPgMuAKRBns Next: GMspQ99yRZWzZyPNo3LceUQa5MginNnJ3zsiHSQJBs14 Diff:
OldNewDifferences
6868 else true
6969 if ((mess3 == mess3))
7070 then if (isprooved)
71- then [IntegerEntry(toBase58String(i.caller.bytes), currenttime), ScriptTransfer(callerAdress, dropamount, token)]
71+ then [IntegerEntry(toBase58String(i.caller.bytes), currenttime), ScriptTransfer(callerAdress, dropamount, token), Burn(token, 999)]
7272 else throw("not prooved")
7373 else throw("Strict value is not equal to itself.")
7474 }
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 getInteger(toBase58String(i.caller.bytes)) {
3838 case a: Int =>
3939 true
4040 case _ =>
4141 false
4242 }
4343 let currenttime = match blockInfoByHeight(height) {
4444 case block: BlockInfo =>
4545 block.timestamp
4646 case _ =>
4747 throw("Can't find block")
4848 }
4949 let isprooved = if (if (if ((trtime > time))
5050 then true
5151 else (callerAdress != trsender))
5252 then true
5353 else received)
5454 then false
5555 else true
5656 let mess1 = if ((trtime > time))
5757 then throw(("overtime: " + toString(trtime)))
5858 else true
5959 if ((mess1 == mess1))
6060 then {
6161 let mess2 = if ((callerAdress != trsender))
6262 then throw(((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender)))
6363 else true
6464 if ((mess2 == mess2))
6565 then {
6666 let mess3 = if (received)
6767 then throw("received ")
6868 else true
6969 if ((mess3 == mess3))
7070 then if (isprooved)
71- then [IntegerEntry(toBase58String(i.caller.bytes), currenttime), ScriptTransfer(callerAdress, dropamount, token)]
71+ then [IntegerEntry(toBase58String(i.caller.bytes), currenttime), ScriptTransfer(callerAdress, dropamount, token), Burn(token, 999)]
7272 else throw("not prooved")
7373 else throw("Strict value is not equal to itself.")
7474 }
7575 else throw("Strict value is not equal to itself.")
7676 }
7777 else throw("Strict value is not equal to itself.")
7878 }
7979 else throw("Strict value is not equal to itself.")
8080 }
8181
8282

github/deemru/w8io/026f985 
23.64 ms