tx · CNnbaimdT4AePDA97PmA2i8LNkKKdgDfmHndjiAUVnfs

3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy:  -0.01000000 Waves

2022.12.28 10:48 [2379839] smart account 3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy > SELF 0.00000000 Waves

{ "type": 13, "id": "CNnbaimdT4AePDA97PmA2i8LNkKKdgDfmHndjiAUVnfs", "fee": 1000000, "feeAssetId": null, "timestamp": 1672213688943, "version": 2, "chainId": 84, "sender": "3Mrk1Lpprkmc68ZpGLKzGi6bChA2JsQtsWy", "senderPublicKey": "FqQH9eNJSxfrYrhaZ5tfjFyUKdViGSVGnESwPqpwDQGz", "proofs": [ "3A7WPuBg36XsQwioHWWRoHhS9ijpxUQEicsapTHhqz5kvaMczvVQWJTJX1HRmJ13ENn18fCeHwdkUZxLZR4cpRDF" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAEAAAAAAZhZG1QdWIBAAAAIJIzdP+dwzo5Jbu3kwijoGg++SNDxqJ9AKQ/y1XA7xgmAAAAAAdnYXRld2F5CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUee6vmhF+LMTJFCZ7vR9HPijfQ5zc2wRKAAAAAARFTk5PAQAAACD1fqEtJSPy8MN1bAqf34wlkSk4WidWGdk3lWAbD4/PvQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkBQAAAARFTk5PAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAA13YWxsZXRCYWxhbmNlCQAD8AAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAARYWNjZXB0YWJsZUFzc2V0SWQEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2F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AAV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAA1wYXltZW50QW1vdW50BQAAAANuaWwJAAACAAAAAQIAAAATZW50ZXIgdmFsaWQgYWRkcmVzcwkAAAIAAAABAgAAAAthdHRhY2ggRU5OTwkAAAIAAAABAgAAABF3YWl0IGZvciBjb29sZG93bgAAAAFpAQAAAAZkZWxldGUAAAABAAAAA2tleQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xNVwlw==", "height": 2379839, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HZsWzGA8qkqebh1MkFS6q1JCd2ZbhiYitxxTMkgdEKQe Next: 7sMMN71BVJYbRfBHcSCbxxHQJcdehm8fGnEoWAGk19ys Diff:
OldNewDifferences
4747 }
4848
4949
50+
51+@Callable(i)
52+func delete (key) = [DeleteEntry(key)]
53+
54+
5055 @Verifier(tx)
5156 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5257
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 [Burn(ENNO, paymentAmount), IntegerEntry(("lastBlock_" + currentKey), height), IntegerEntry(((("amount_" + currentKey) + "_") + toString(height)), paymentAmount)]
4343 }
4444 else throw("enter valid address")
4545 else throw("attach ENNO")
4646 else throw("wait for cooldown")
4747 }
4848
4949
50+
51+@Callable(i)
52+func delete (key) = [DeleteEntry(key)]
53+
54+
5055 @Verifier(tx)
5156 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5257

github/deemru/w8io/169f3d6 
25.04 ms