tx · ApQkRhczP6rodK6eWj2wS14bpUguDQCRhw1KyKsVGfWK 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves 2022.09.05 05:07 [2215193] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{ "type": 13, "id": "ApQkRhczP6rodK6eWj2wS14bpUguDQCRhw1KyKsVGfWK", "fee": 1400000, "feeAssetId": null, "timestamp": 1662343667201, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "5Fb8XtuQ436XmUU9w8diFXzNC3GHHLLE9nNB3X5tHKkyAgWVGKUQ6nebyN8spLSKF9XJNjrkd8mP6whCK6rJcd3P" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAhSZWNoYXJnZQAAAAEAAAAIVXNlck5hbWUEAAAABHBtdDEJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABHBtdDIJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEEAAAAEURlcG9zaXRDT0RFQW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACFVzZXJOYW1lAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFG5ld0RlcG9zaXRDT0RFQW1vdW50CQAAZAAAAAIFAAAAEURlcG9zaXRDT0RFQW1vdW50CAUAAAAEcG10MQAAAAZhbW91bnQDCQEAAAACIT0AAAACCAUAAAAEcG10MQAAAAdhc3NldElkBQAAAAtDT0RFQXNzZXRJRAkAAAIAAAABAgAAAFBJbmNvcnJlY3QgYXNzZXQgYXR0YWNoZWQgZm9yIGluIHBheW1lbnRbMV0sIHBsZWFzZSBhdHRhY2ggbWluaW11bSAxMCBDT0RFIFRva2VuLgMJAABmAAAAAgAAAAAAC+vCAAgFAAAABHBtdDEAAAAGYW1vdW50CQAAAgAAAAECAAAAIkxlc3MgdGhhbiAxMCBDT0RFIGFtb3VudCBhdHRhY2hlZC4DCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBtdDIAAAAHYXNzZXRJZAkAAAIAAAABAgAAAD9JbmNvcnJlY3QgYXNzZXQgYXR0YWNoZWQgZm9yIFBheW1lbnRbMl0sIHBsZWFzZSBhdHRhY2ggVE4gb25seS4DCQAAZgAAAAIJAABrAAAAAwgFAAAABHBtdDEAAAAGYW1vdW50AAAAAAAAAAABAAAAAAAAAAAKCAUAAAAEcG10MgAAAAZhbW91bnQJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAP0luY29ycmVjdCBhbW91bnQgb2YgcGF5bWVudFsyXSBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCBtaW5pbXVtIAkAAaQAAAABCQAAawAAAAMIBQAAAARwbXQxAAAABmFtb3VudAAAAAAAAAAAAQAAAAAAAAAACgIAAAAQLzEwMDAwMDAwMC4gW1ROXQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAIVXNlck5hbWUFAAAAFG5ld0RlcG9zaXRDT0RFQW1vdW50BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleV6gTcY=", "height": 2215193, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ehkew2h1Xp9j2QAcbRNvdAGpg5VDPaEBUrnr8vcgA7nR Next: EcH1QMEkjG6p1pnQWj1uTSPnLDM5FuNUUaFVLMso9ujg Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let CODEAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | - | ||
6 | - | @Callable(i) | |
7 | - | func RegisterUserName (UserName) = { | |
8 | - | let pmt = i.payments | |
9 | - | let checkseries = getString(this, UserName) | |
10 | - | if ((3 > size(UserName))) | |
11 | - | then throw("Choose a Unique UserName above 3 Chars.") | |
12 | - | else if ((checkseries == UserName)) | |
13 | - | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") | |
14 | - | else [StringEntry(UserName, UserName)] | |
15 | - | } | |
16 | - | ||
17 | - | ||
18 | 5 | ||
19 | 6 | @Callable(i) | |
20 | 7 | func Recharge (UserName) = { |
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 | - | ||
6 | - | @Callable(i) | |
7 | - | func RegisterUserName (UserName) = { | |
8 | - | let pmt = i.payments | |
9 | - | let checkseries = getString(this, UserName) | |
10 | - | if ((3 > size(UserName))) | |
11 | - | then throw("Choose a Unique UserName above 3 Chars.") | |
12 | - | else if ((checkseries == UserName)) | |
13 | - | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") | |
14 | - | else [StringEntry(UserName, UserName)] | |
15 | - | } | |
16 | - | ||
17 | - | ||
18 | 5 | ||
19 | 6 | @Callable(i) | |
20 | 7 | func Recharge (UserName) = { | |
21 | 8 | let pmt1 = value(i.payments[0]) | |
22 | 9 | let pmt2 = value(i.payments[1]) | |
23 | 10 | let DepositCODEAmount = match getInteger(this, UserName) { | |
24 | 11 | case a: Int => | |
25 | 12 | a | |
26 | 13 | case _ => | |
27 | 14 | 0 | |
28 | 15 | } | |
29 | 16 | let newDepositCODEAmount = (DepositCODEAmount + pmt1.amount) | |
30 | 17 | if ((pmt1.assetId != CODEAssetID)) | |
31 | 18 | then throw("Incorrect asset attached for in payment[1], please attach minimum 10 CODE Token.") | |
32 | 19 | else if ((200000000 > pmt1.amount)) | |
33 | 20 | then throw("Less than 10 CODE amount attached.") | |
34 | 21 | else if (isDefined(pmt2.assetId)) | |
35 | 22 | then throw("Incorrect asset attached for Payment[2], please attach TN only.") | |
36 | 23 | else if ((fraction(pmt1.amount, 1, 10) > pmt2.amount)) | |
37 | 24 | then throw((("Incorrect amount of payment[2] attached, please attach minimum " + toString(fraction(pmt1.amount, 1, 10))) + "/100000000. [TN]")) | |
38 | 25 | else [IntegerEntry(UserName, newDepositCODEAmount)] | |
39 | 26 | } | |
40 | 27 | ||
41 | 28 | ||
42 | 29 | @Verifier(tx) | |
43 | 30 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
44 | 31 |
github/deemru/w8io/169f3d6 21.13 ms ◑