tx · GrUywcufiYAEUaibiQUxxD9kjUvzUbYpU8eKJxyMXKWd

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01400000 Waves

2021.12.10 14:19 [1828079] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "GrUywcufiYAEUaibiQUxxD9kjUvzUbYpU8eKJxyMXKWd", "fee": 1400000, "feeAssetId": null, "timestamp": 1639135260754, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "4C8L45FzTYRHhHqy3A39AEfCjm2DcL4rXnXxqZHn666RaZ5BX4XkGB7KATaxq3Yxxm5964hjH7NQDshhQ3WBzwB6" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFdG9rZW4BAAAAIOc5mAuQ0CpHzn2Eeqy2bd/5bxix/Zvv2ghyN3nN6l5mAAAAAAdhaXJkcm9wCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvl8ZsNRuQjR8RHdkDfsNYL0aRkcYXOeKAAAAAQAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAD0JBBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BAAAAAxjYWxsZXJBZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEdGltZQAAAAF9o9wqYAQAAA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pbAkAAAIAAAABAgAAAAtub3QgcHJvb3ZlZAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVdl9Hg=", "height": 1828079, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BeKmQmR5fjjjy47jjyKmBauY4MkAd4zFd4oXVLagEnZ1 Next: CPHhfneoWM4KouQ85JUERQQ6waSXhBgC3vuKknUAGj8m Diff:
OldNewDifferences
66 let airdrop = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV')
77
88 @Callable(i)
9-func start () = [IntegerEntry("balanceforairdrop", 1000000)]
10-
11-
12-
13-@Callable(i)
149 func call (id58) = {
15- let balanceforairdrop = assetBalance(airdrop, token)
10+ let balance = assetBalance(airdrop, token)
1611 let dropamount = 1000001
17- let isenough = if ((balanceforairdrop >= dropamount))
12+ let isenough = if ((balance > dropamount))
1813 then true
1914 else throw("not enough")
2015 if ((isenough == isenough))
4540 then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender))
4641 else "prooved"
4742 if (isprooved)
48- then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balanceforairdrop))]
43+ then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balance))]
4944 else throw("not prooved")
5045 }
5146 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)
9-func start () = [IntegerEntry("balanceforairdrop", 1000000)]
10-
11-
12-
13-@Callable(i)
149 func call (id58) = {
15- let balanceforairdrop = assetBalance(airdrop, token)
10+ let balance = assetBalance(airdrop, token)
1611 let dropamount = 1000001
17- let isenough = if ((balanceforairdrop >= dropamount))
12+ let isenough = if ((balance > dropamount))
1813 then true
1914 else throw("not enough")
2015 if ((isenough == isenough))
2116 then {
2217 let id = fromBase58String(id58)
2318 let callerAdress = Address(i.caller.bytes)
2419 let time = 1639131654752
2520 let trtime = match transferTransactionById(id) {
2621 case ttx: TransferTransaction =>
2722 ttx.timestamp
2823 case _ =>
2924 throw("Can't find transaction")
3025 }
3126 let trsender = match transferTransactionById(id) {
3227 case ttx: TransferTransaction =>
3328 ttx.sender
3429 case _ =>
3530 throw("Can't find transaction")
3631 }
3732 let isprooved = if (if ((trtime > time))
3833 then true
3934 else (callerAdress != trsender))
4035 then false
4136 else true
4237 let mess = if ((trtime > time))
4338 then ("overtime: " + toString(trtime))
4439 else if ((callerAdress != trsender))
4540 then ((("incorrect sender: " + toString(callerAdress)) + " / ") + toString(trsender))
4641 else "prooved"
4742 if (isprooved)
48- then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balanceforairdrop))]
43+ then [StringEntry(toBase58String(i.caller.bytes), mess), StringEntry("balance", toString(balance))]
4944 else throw("not prooved")
5045 }
5146 else throw("Strict value is not equal to itself.")
5247 }
5348
5449
5550 @Verifier(tx)
5651 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5752

github/deemru/w8io/169f3d6 
28.85 ms