tx · 7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys

3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy:  -0.01000000 Waves

2022.12.28 10:51 [2379843] smart account 3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy > SELF 0.00000000 Waves

{ "type": 13, "id": "7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys", "fee": 1000000, "feeAssetId": null, "timestamp": 1672213957490, "version": 2, "chainId": 84, "sender": "3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy", "senderPublicKey": "FqQH9eNJSxfrYrhaZ5tfjFyUKdViGSVGnESwPqpwDQGz", "proofs": [ "57fG8yka27LD24euHoa1NreDcVA5p7DESM7tVp3VqKBnwFHsevNQtQS2rEn4KDnc1QCa4ah2LfTEWjFqU88vabfB" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAEAAAAAAZhZG1QdWIBAAAAIJIzdP+dwzo5Jbu3kwijoGg++SNDxqJ9AKQ/y1XA7xgmAAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUee6vmhF+LMTJFCZ7vR9HPijfQ5zc2wRKAAAAAARFTk5PAQAAACD1fqEtJSPy8MN1bAqf34wlkSk4WidWGdk3lWAbD4/PvQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkBQAAAARFTk5PAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAA13YWxsZXRCYWxhbmNlCQAD8AAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAARYWNjZXB0YWJsZUFzc2V0SWQEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fz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AV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAA1wYXltZW50QW1vdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADHRyYW5zYWN0aW9uXwkAAaQAAAABBQAAAAZoZWlnaHQCAAAAAV8FAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHYWRkcmVzcwIAAAABXwkAAaQAAAABBQAAAA1wYXltZW50QW1vdW50AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAUAAAADbmlsCQAAAgAAAAECAAAAE2VudGVyIHZhbGlkIGFkZHJlc3MJAAACAAAAAQIAAAALYXR0YWNoIEVOTk8JAAACAAAAAQIAAAARd2FpdCBmb3IgY29vbGRvd24AAAABaQEAAAAGZGVsZXRlAAAAAQAAAANrZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleezQUQ4=", "height": 2379843, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNnbaimdT4AePDA97PmA2i8LNkKKdgDfmHndjiAUVnfs Next: 6iARKDtK16CZEqnnWCZBHBdwkUcTnsF7XFDm4aeC2wDT Diff:
OldNewDifferences
3939 then {
4040 let p = i.payments[0]
4141 let paymentAmount = p.amount
42-[Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount)]
42+[Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount), StringEntry(((("transaction_" + toString(height)) + "_") + currentKey), ((((address + "_") + toString(paymentAmount)) + "_") + toString(height)))]
4343 }
4444 else throw("enter valid address")
4545 else throw("attach ENNO")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let admPub = base58'Aqi2u6UsFt6ePp65gz14SdCvKwP4t3CqiDejGBk7mWuj'
55
66 let gateway = Address(base58'3N12oUKe89XdJsvWgx6ncAJTF6Bk8rP3sfP')
77
88 let ENNO = base58'HXJsuwkQmik6jwh7tC3cc6wq45A9Th2pDENH6HHR5vxt'
99
1010 func isPaymentOk (i) = {
1111 let acceptableAssetId = ENNO
1212 if ((size(i.payments) == 0))
1313 then throw("Payment not attached")
1414 else {
1515 let p = i.payments[0]
1616 let walletBalance = assetBalance(i.caller, acceptableAssetId)
1717 match p.assetId {
1818 case assetId: ByteVector =>
1919 if ((assetId == acceptableAssetId))
2020 then (p.amount > 0)
2121 else false
2222 case _ =>
2323 throw("Wrong payment")
2424 }
2525 }
2626 }
2727
2828
2929 @Callable(i)
3030 func send (address) = {
3131 let currentKey = toBase58String(i.caller.bytes)
3232 let lastBlockHeight = valueOrElse(getInteger(this, ("lastBlock_" + currentKey)), 0)
3333 let diff = (height - lastBlockHeight)
3434 if (if ((diff >= 1440))
3535 then true
3636 else (diff == height))
3737 then if (isPaymentOk(i))
3838 then if ((address != ""))
3939 then {
4040 let p = i.payments[0]
4141 let paymentAmount = p.amount
42-[Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount)]
42+[Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount), StringEntry(((("transaction_" + toString(height)) + "_") + currentKey), ((((address + "_") + toString(paymentAmount)) + "_") + toString(height)))]
4343 }
4444 else throw("enter valid address")
4545 else throw("attach ENNO")
4646 else throw("wait for cooldown")
4747 }
4848
4949
5050
5151 @Callable(i)
5252 func delete (key) = [DeleteEntry(key)]
5353
5454
5555 @Verifier(tx)
5656 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5757

github/deemru/w8io/169f3d6 
46.16 ms