tx · 87JdZ4R1dRndX3jQXj5YDKFmuYwped8wm2X47Bvp5EwA 3Mx6VAk4PwJkgwJAB4neyWQnAjhhoihyxK7: -0.01400000 Waves 2022.12.04 08:42 [2345215] smart account 3Mx6VAk4PwJkgwJAB4neyWQnAjhhoihyxK7 > SELF 0.00000000 Waves
{ "type": 13, "id": "87JdZ4R1dRndX3jQXj5YDKFmuYwped8wm2X47Bvp5EwA", "fee": 1400000, "feeAssetId": null, "timestamp": 1670132582029, "version": 2, "chainId": 84, "sender": "3Mx6VAk4PwJkgwJAB4neyWQnAjhhoihyxK7", "senderPublicKey": "6CHrNfMVYQdFML9xmsJTxiYQPv43hirVZyd8HVuqiBYT", "proofs": [ "2wQQhoUHzQYDue8GtVkmPw1V2hMXBv7yK6voksXQFpHK7V8Kykgijb2tM99otdHAURSaFqsCvWy7KFps1umB6UBL" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAKTGljZW5zZUZlZQAAAAAAATEtAAAAAAASTGljZW5zZUFzc2V0QW1vdW50AAAAAAAAAAABAAAAAA9BNEFMaWNlbnNlQXNzZXQBAAAAIL9mOrw5Izzw10Ei5j2LoIsr6n+8ryH3VB8XSe9TnZ6UAAAAAQAAAAFpAQAAAARzd2FwAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAkAAAIAAAABAgAAAFhJbmNvcnJlY3QgYXNzZXQgcGFzc2VkLCBwbGVhc2Ugc2VuZCBabjNjTEhXN2FBVlBtNWFBQ2NUanZnN2U3aUV5MmNLRHRib3dvazVxYTlIICggVVNEVCkuAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAACkxpY2Vuc2VGZWUJAAACAAAAAQIAAABKSW5jb3JyZWN0IGFzc2V0IGFtb3VudCBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCBleGFjdCAyMCQgZm9yIFVTRFQgQXNzZXRJRC4JAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAA9BNEFMaWNlbnNlQXNzZXQFAAAAEkxpY2Vuc2VBc3NldEFtb3VudAYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAABJMaWNlbnNlQXNzZXRBbW91bnQFAAAAD0E0QUxpY2Vuc2VBc3NldAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmQpBkF", "height": 2345215, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let LicenseFee = 20000000 | |
5 | + | ||
6 | + | let LicenseAssetAmount = 1 | |
7 | + | ||
8 | + | let A4ALicenseAsset = base58'Dt9HPLe78DSJcb8CP4YEm8mQgLMiTEpBE1sgqU9eeP8F' | |
9 | + | ||
10 | + | @Callable(i) | |
11 | + | func swap () = { | |
12 | + | let pmt = value(i.payments[0]) | |
13 | + | if ((pmt.assetId != base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H')) | |
14 | + | then throw("Incorrect asset passed, please send Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H ( USDT).") | |
15 | + | else if ((pmt.amount != LicenseFee)) | |
16 | + | then throw("Incorrect asset amount attached, please attach exact 20$ for USDT AssetID.") | |
17 | + | else [Reissue(A4ALicenseAsset, LicenseAssetAmount, true), ScriptTransfer(i.caller, LicenseAssetAmount, A4ALicenseAsset)] | |
18 | + | } | |
19 | + | ||
20 | + | ||
21 | + | @Verifier(tx) | |
22 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
23 | + |
github/deemru/w8io/169f3d6 22.07 ms ◑