tx · 5poWSEu6dAdXNgfMsV5ud82jUttzKg3f2LxsyE5sbB3g 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves 2022.04.13 01:12 [2005951] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{ "type": 13, "id": "5poWSEu6dAdXNgfMsV5ud82jUttzKg3f2LxsyE5sbB3g", "fee": 1400000, "feeAssetId": null, "timestamp": 1649801594535, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "2Qo8C2JQHVKaSwo6Kyx4XXXL69JgJnikBLPf6VxFnMnPHwSpf8nAPYGyPvPKEsozio38quZUbqDCVUh3J1de93UL" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIICAAAAAEAAAAAC0NoYXRBc3NldElEAQAAACAIZYS3D/CKahrz4mjoLgiQJMPTJ1gDzSz2Ll4L39oVpAAAAAEAAAABaQEAAAAQUmVnaXN0ZXJVc2VyTmFtZQAAAAIAAAAIVXNlck5hbWUAAAAPVXNlckRlc2NyaXB0aW9uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABCQABLAAAAAIJAAJYAAAAAQUAAAALQ2hhdEFzc2V0SUQCAAAAJyBUb2tlbiBpcyByZXF1aXJlZCBhcyBBdHRhY2hlZCBwYXltZW50LgQAAAALY2hlY2tzZXJpZXMJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAlVc2VyTmFtZV8FAAAACFVzZXJOYW1lAwkAAGYAAAACAAAAAAAAAAADCQABM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XRpb25fVGltZVN0YW1wBQAAAAhVc2VyTmFtZQgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAWTGFzdF9NZXNzYWdlX1RpbWVzdGFtcAUAAAAIVXNlck5hbWUIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAD01lc3NhZ2VDb3VudGVyXwUAAAAIVXNlck5hbWUAAAAAAAAAAAAFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5nUcs7A==", "height": 2005951, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3Aq71avoGGz337Jp1jKiSEaPp2EqcxnYxiekSUcHBqPh Next: EdZzkw8uMv8qFUeMauR77Wjpigy2yaMCwfLivVLUeTHz Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | then throw(("Wrong Asset Attached please Attach " + toBase58String(a))) | |
17 | 17 | else if ((g == c)) | |
18 | 18 | then throw("User Name Already Exist or Taken. Choose Another Unique User Name.") | |
19 | - | else if ((1000000 | |
19 | + | else if ((1000000 != f.amount)) | |
20 | 20 | then throw(("Please Attach Exact Amount = 1 " + toBase58String(a))) | |
21 | 21 | else [StringEntry(("UserName_" + c), c), StringEntry(("UserDescription_" + c), d), StringEntry(("UserAddress_" + c), e), StringEntry(("Plan_" + c), "Basic"), IntegerEntry(("Account_Creation_TimeStamp" + c), lastBlock.timestamp), IntegerEntry(("Last_Message_Timestamp" + c), lastBlock.timestamp), IntegerEntry(("MessageCounter_" + c), 0)] | |
22 | 22 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func RegisterUserName (c,d) = { | |
8 | 8 | let e = toBase58String(b.caller.bytes) | |
9 | 9 | let f = if ((size(b.payments) == 1)) | |
10 | 10 | then b.payments[0] | |
11 | 11 | else throw((toBase58String(a) + " Token is required as Attached payment.")) | |
12 | 12 | let g = getString(this, ("UserName_" + c)) | |
13 | 13 | if ((3 > size(c))) | |
14 | 14 | then throw("Choose a Unique UserName above 3 Chars.") | |
15 | 15 | else if ((f.assetId != a)) | |
16 | 16 | then throw(("Wrong Asset Attached please Attach " + toBase58String(a))) | |
17 | 17 | else if ((g == c)) | |
18 | 18 | then throw("User Name Already Exist or Taken. Choose Another Unique User Name.") | |
19 | - | else if ((1000000 | |
19 | + | else if ((1000000 != f.amount)) | |
20 | 20 | then throw(("Please Attach Exact Amount = 1 " + toBase58String(a))) | |
21 | 21 | else [StringEntry(("UserName_" + c), c), StringEntry(("UserDescription_" + c), d), StringEntry(("UserAddress_" + c), e), StringEntry(("Plan_" + c), "Basic"), IntegerEntry(("Account_Creation_TimeStamp" + c), lastBlock.timestamp), IntegerEntry(("Last_Message_Timestamp" + c), lastBlock.timestamp), IntegerEntry(("MessageCounter_" + c), 0)] | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Verifier(h) | |
26 | 26 | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) | |
27 | 27 |
github/deemru/w8io/169f3d6 21.11 ms ◑