tx · 3qaZtCkxntLKNwLMk8N6UbD8tEyhpAzFyCxKx5e8C5AW 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ: -0.01400000 Waves 2021.09.21 15:56 [1712846] smart account 3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ > SELF 0.00000000 Waves
{ "type": 13, "id": "3qaZtCkxntLKNwLMk8N6UbD8tEyhpAzFyCxKx5e8C5AW", "fee": 1400000, "feeAssetId": null, "timestamp": 1632229006741, "version": 2, "chainId": 84, "sender": "3N17JMn4WESkhCSrcEwdADBZFAe8uiuvCGQ", "senderPublicKey": "BMLuSYJ8rvQD55waCoKpzCBhJAbY8s9pp4V5ZgxuzCBD", "proofs": [ "2uETPvK9BnLsKfg4X8LxUK5j3uWo2bvGhAPE3bXyHnZhUMWvCRLJT3iqQUEaCJfqZ1pUjFgWEseMT1dQaDMnsM1J" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgAAAAAKQTRBQXNzZXRJRAEAAAAg/sQa4d7v52kifRLo73ftXd9xD7wgh9JaaHT98W4IWDcAAAAAC1VTRFRBc3NldElEAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAEAAAABaQEAAAAEVm90ZQAAAAAEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAADQwLjAwMDEgQTRBIFRva2VuIGlzIHJlcXVpcmVkIGFzIEF0dGFjaGVkIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWNoZWNrYXNzZXRiYWwJAAPwAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAApBNEFBc3NldElEAwkAAGYAAAACAAAAAAAF9eEABQAAAA1jaGVja2Fzc2V0YmFsCQAAAgAAAAECAAAAZU1pbmltdW0gMSBBNEEgaXMgcmVxdWlyZWQgb24gWW91ciBBZGRyZXNzIHRvIFZvdGUuIFBsZWFzZSBNaW50IG9yIGhvbGQgbWluaW11bSAxIEE0QSBvbiB0aGlzIEFkZHJlc3MuAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAApBNEFBc3NldElECQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAChJbmNvcnJlY3QgYXNzZXQgYXR0YWNoZWQsIHBsZWFzZSBhdHRhY2ggCQACWAAAAAEFAAAACkE0QUFzc2V0SUQCAAAADiBhc3NldGlkIE9ubHkuAwkAAGYAAAACAAAAAAAAACcQCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAAClQbGVhc2UgQXR0YWNoIG1pbmltdW0gMC4wMDAxIEE0QSBUbyBWb3RlLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAdtZXNzYWdlAgAAACU8aDE+QTRBIElzc3VlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAKQTRBQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkMHBRP", "height": 1712846, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 87jeX7RT9E4AnqzjNPogceQrzLpPH2eHhBxEApX25XFU Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let A4AAssetID = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook' | |
5 | + | ||
6 | + | let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func Vote () = { | |
10 | + | let pmt = if ((size(i.payments) == 1)) | |
11 | + | then i.payments[0] | |
12 | + | else throw("0.0001 A4A Token is required as Attached payment[1].") | |
13 | + | let currentKey = toBase58String(i.caller.bytes) | |
14 | + | let checkassetbal = assetBalance(addressFromPublicKey(i.callerPublicKey), A4AAssetID) | |
15 | + | if ((100000000 > checkassetbal)) | |
16 | + | then throw("Minimum 1 A4A is required on Your Address to Vote. Please Mint or hold minimum 1 A4A on this Address.") | |
17 | + | else if ((pmt.assetId != A4AAssetID)) | |
18 | + | then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " assetid Only.")) | |
19 | + | else if ((10000 > pmt.amount)) | |
20 | + | then throw("Please Attach minimum 0.0001 A4A To Vote.") | |
21 | + | else [StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), ScriptTransfer(i.caller, 1, A4AAssetID)] | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Verifier(tx) | |
26 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | + |
github/deemru/w8io/026f985 19.40 ms ◑