tx · 2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 14:39 [1828095] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn", "fee": 1400000, "feeAssetId": null, "timestamp": 1639136384844, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3GYvY41kTDnTb2ZZsBJFwLXPFvk7MeeWGgMkm3xbT2kCXJGm4UTK3fD8R8Vp41qkL9Yq1GEQERdqX5k8xeJVX5Ev" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFdG9rZW4BAAAAIOc5mAuQ0CpHzn2Eeqy2bd/5bxix/Zvv2ghyN3nN6l5mAAAAAAdhaXJkcm9wCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvl8ZsNRuQjR8RHdkDfsNYL0aRkcYXOeKAAAAAQAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BAAAAAxjYWxsZXJBZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEdGltZQAA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CAAAACHJlY2VpdmVkAgAAAAdwcm9vdmVkAwUAAAAJaXNwcm9vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAEbWVzcwUAAAADbmlsCQAAAgAAAAECAAAAC25vdCBwcm9vdmVkCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kAt7CQ==", "height": 1828095, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW Next: 48efv1TpfzhnXjMiFrRV49iyFePySZ9ogH6MSd7Bck6z Diff:
OldNewDifferences
3030 throw("Can't find transaction")
3131 }
3232 let received = match getString(toBase58String(i.caller.bytes)) {
33- case a: Unit =>
33+ case a: String =>
34+ false
35+ case _ =>
3436 true
35- case _ =>
36- false
3737 }
3838 let isprooved = if (if (if ((trtime > time))
3939 then true
5050 then "received"
5151 else "prooved"
5252 if (isprooved)
53- then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balance))]
53+ then [StringEntry(toBase58String(i.caller.bytes), mess)]
5454 else throw("not prooved")
5555 }
5656 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')
77
88 @Callable(i)
99 func call (id58) = {
1010 let balance = assetBalance(airdrop, token)
1111 let dropamount = 100
1212 let isenough = if ((balance > dropamount))
1313 then true
1414 else throw("not enough")
1515 if ((isenough == isenough))
1616 then {
1717 let id = fromBase58String(id58)
1818 let callerAdress = Address(i.caller.bytes)
1919 let time = 1639131654752
2020 let trtime = match transferTransactionById(id) {
2121 case ttx: TransferTransaction =>
2222 ttx.timestamp
2323 case _ =>
2424 throw("Can't find transaction")
2525 }
2626 let trsender = match transferTransactionById(id) {
2727 case ttx: TransferTransaction =>
2828 ttx.sender
2929 case _ =>
3030 throw("Can't find transaction")
3131 }
3232 let received = match getString(toBase58String(i.caller.bytes)) {
33- case a: Unit =>
33+ case a: String =>
34+ false
35+ case _ =>
3436 true
35- case _ =>
36- false
3737 }
3838 let isprooved = if (if (if ((trtime > time))
3939 then true
4040 else (callerAdress != trsender))
4141 then true
4242 else received)
4343 then false
4444 else true
4545 let mess = if ((trtime > time))
4646 then ("overtime: " + toString(trtime))
4747 else if ((callerAdress != trsender))
4848 then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender))
4949 else if (received)
5050 then "received"
5151 else "prooved"
5252 if (isprooved)
53- then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balance))]
53+ then [StringEntry(toBase58String(i.caller.bytes), mess)]
5454 else throw("not prooved")
5555 }
5656 else throw("Strict value is not equal to itself.")
5757 }
5858
5959
6060 @Verifier(tx)
6161 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6262

github/deemru/w8io/026f985 
19.81 ms