tx · 5M9qPDMQpnZyVze6LUhZkrxQDvTH8eMtckDXQF69ZJs8 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves 2022.09.04 21:39 [2214750] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{ "type": 13, "id": "5M9qPDMQpnZyVze6LUhZkrxQDvTH8eMtckDXQF69ZJs8", "fee": 1400000, "feeAssetId": null, "timestamp": 1662316758579, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "5WM1dkTua4saUAftcM9atv5ULKVDTkeAMEJYxkUcfNM5FiYZjJtdBqE8Q9gGEHbgkCNQjHm91hUmpYHvMCQ6kkuH" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAABBSZWdpc3RlclVzZXJOYW1lAAAAAQAAAAhVc2VyTmFtZQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQkAASwAAAACCQACWAAAAAEFAAAAC0NPREVBc3NldElEAgAAACcgVG9rZW4gaXMgcmVxdWlyZWQgYXMgQXR0YWNoZWQgcGF5bWVudC4EAAAAC2NoZWNrc2VyaWVzCQAEHQAAAAIFAAAABHRoaXMFAAAACFVzZXJOYW1lAwkAAGYAAAACAAAAAAAAAAADCQABMQAAAAEFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAJ0Nob29zZSBhIFVuaXF1ZSBVc2VyTmFtZSBhYm92ZSAzIENoYXJzLgMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALQ09ERUFzc2V0SUQJAAACAAAAAQkAASwAAAACAgAAACNXcm9uZyBBc3NldCBBdHRhY2hlZCBwbGVhc2UgQXR0YWNoIAkAAlgAAAABBQAAAAtDT0RFQXNzZXRJRAMJAAAAAAAAAgUAAAALY2hlY2tzZXJpZXMFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAZVVzZXIgTmFtZSBBbHJlYWR5IEV4aXN0IG9yIFRha2VuLiBDaG9vc2UgQW5vdGhlciBVbmlxdWUgVXNlciBOYW1lIG9yIENob29zZSBSZWZpbGwgdG8gcmVmaWxsIGFjY291bnQuAwkAAGYAAAACAAAAAAAAD0JACAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAfUGxlYXNlIEF0dGFjaCBNaW5pbXVtIDEwIENPREUgWwkAAlgAAAABBQAAAAtDT0RFQXNzZXRJRAIAAAABXQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAIVXNlck5hbWUIBQAAAANwbXQAAAAGYW1vdW50BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleayqxFE=", "height": 2214750, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FGsn3zf9o1SekbhEKCv2tqwP7JFFJZuG2j2EZh8PxHZi Next: 3G6YUWXWLWYNN739f5YZtgyLaeTiMa2px67gzEiewaG3 Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") | |
19 | 19 | else if ((1000000 > pmt.amount)) | |
20 | 20 | then throw((("Please Attach Minimum 10 CODE [" + toBase58String(CODEAssetID)) + "]")) | |
21 | - | else [ | |
21 | + | else [IntegerEntry(UserName, pmt.amount)] | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let CODEAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func RegisterUserName (UserName) = { | |
8 | 8 | let currentKey = toBase58String(i.caller.bytes) | |
9 | 9 | let pmt = if ((size(i.payments) == 1)) | |
10 | 10 | then i.payments[0] | |
11 | 11 | else throw((toBase58String(CODEAssetID) + " Token is required as Attached payment.")) | |
12 | 12 | let checkseries = getString(this, UserName) | |
13 | 13 | if ((3 > size(UserName))) | |
14 | 14 | then throw("Choose a Unique UserName above 3 Chars.") | |
15 | 15 | else if ((pmt.assetId != CODEAssetID)) | |
16 | 16 | then throw(("Wrong Asset Attached please Attach " + toBase58String(CODEAssetID))) | |
17 | 17 | else if ((checkseries == UserName)) | |
18 | 18 | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") | |
19 | 19 | else if ((1000000 > pmt.amount)) | |
20 | 20 | then throw((("Please Attach Minimum 10 CODE [" + toBase58String(CODEAssetID)) + "]")) | |
21 | - | else [ | |
21 | + | else [IntegerEntry(UserName, pmt.amount)] | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Verifier(tx) | |
26 | 26 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
27 | 27 |
github/deemru/w8io/169f3d6 23.99 ms ◑