tx · 9hMAYLQ77qNskanc2dRaCvna9UJn2pcmSPzo8bvfjdH4

3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy:  -0.01000000 Waves

2022.12.28 11:06 [2379856] smart account 3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy > SELF 0.00000000 Waves

{ "type": 13, "id": "9hMAYLQ77qNskanc2dRaCvna9UJn2pcmSPzo8bvfjdH4", "fee": 1000000, "feeAssetId": null, "timestamp": 1672214840949, "version": 2, "chainId": 84, "sender": "3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy", "senderPublicKey": "FqQH9eNJSxfrYrhaZ5tfjFyUKdViGSVGnESwPqpwDQGz", "proofs": [ "2oDV8vwpRja8QWesFhjnTsYvJoGAcquBR5ZBTG8m9iCDWV89eTKS3Mx1Vw5u3VykBtE6LfYNLLrd5S1AJ7nevbEW" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGYWRtUHViAQAAACCSM3T/ncM6OSW7t5MIo6BoPvkjQ8aifQCkP8tVwO8YJgAAAAAHZ2F0ZXdheQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVHnur5oRfizEyRQme70fRz4o30Oc3NsESgAAAAAERU5OTwEAAAAg9X6hLSUj8vDDdWwKn9+MJZEpOFonVhnZN5VgGw+Pz70BAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAUAAAAERU5OTwMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABRQYXltZW50IG5vdCBhdHRhY2hlZAQAAAABcAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAANd2FsbGV0QmFsYW5jZQkAA/AAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAAEWFjY2VwdGFibGVBc3NldElkBAAAAAckbWF0Y2gwCAUAAAABcAAAAAdhc3NldElkA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ETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAdhbW91bnRfBQAAAApjdXJyZW50S2V5AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAUAAAANcGF5bWVudEFtb3VudAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx0cmFuc2FjdGlvbl8JAAGkAAAAAQUAAAAGaGVpZ2h0AgAAAAFfBQAAAApjdXJyZW50S2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAB2FkZHJlc3MCAAAAAV8JAAGkAAAAAQUAAAANcGF5bWVudEFtb3VudAIAAAABXwkAAaQAAAABBQAAAAZoZWlnaHQFAAAAA25pbAkAAAIAAAABAgAAABNlbnRlciB2YWxpZCBhZGRyZXNzCQAAAgAAAAECAAAAC2F0dGFjaCBFTk5PCQAAAgAAAAECAAAAEXdhaXQgZm9yIGNvb2xkb3duAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl7UiGW", "height": 2379856, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6iARKDtK16CZEqnnWCZBHBdwkUcTnsF7XFDm4aeC2wDT Next: none Diff:
OldNewDifferences
5050 }
5151
5252
53-
54-@Callable(i)
55-func delete (key) = [DeleteEntry(key)]
56-
57-
5853 @Verifier(tx)
5954 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6055
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
4242 let paymentAsset = p.assetId
4343 if ((paymentAsset != ENNO))
4444 then throw("only enno")
4545 else [Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount), StringEntry(((("transaction_" + toString(height)) + "_") + currentKey), ((((address + "_") + toString(paymentAmount)) + "_") + toString(height)))]
4646 }
4747 else throw("enter valid address")
4848 else throw("attach ENNO")
4949 else throw("wait for cooldown")
5050 }
5151
5252
53-
54-@Callable(i)
55-func delete (key) = [DeleteEntry(key)]
56-
57-
5853 @Verifier(tx)
5954 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6055

github/deemru/w8io/169f3d6 
53.80 ms