tx · 9J76DzUTJbqZSLnitf5cSF1fFNxXwjyZ1rw4BZh2nhrP
3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves
2022.09.05 04:26 [2215154] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{
"type": 13,
"id": "9J76DzUTJbqZSLnitf5cSF1fFNxXwjyZ1rw4BZh2nhrP",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1662341206384,
"version": 2,
"chainId": 84,
"sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx",
"senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p",
"proofs": [
"5f8Vc7HvdQFPgm55esSeMuqsYmjTckJprvQFPRNhuQzf5A9oQmRK3ygYJPmNPpE8jP8FkWDRNEjCY9P2vuTYC5Y7"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAABBSZWdpc3RlclVzZXJOYW1lAAAAAQAAAAhVc2VyTmFtZQQAAAADcG10CAUAAAABaQAAAAhwYXltZW50cwQAAAALY2hlY2tzZXJpZXMJAAQdAAAAAgUAAAAEdGhpcwUAAAAIVXNlck5hbWUDCQAAZgAAAAIAAAAAAAAAAAMJAAExAAAAAQUAAAAIVXNlck5hbWUJAAACAAAAAQIAAAAnQ2hvb3NlIGEgVW5pcXVlIFVzZXJOYW1lIGFib3ZlIDMgQ2hhcnMuAwkAAAAAAAACBQAAAAtjaGVja3NlcmllcwUAAAAIVXNlck5hbWUJAAACAAAAAQIAAABlVXNlciBOYW1lIEFscmVhZHkgRXhpc3Qgb3IgVGFrZW4uIENob29zZSBBbm90aGVyIFVuaXF1ZSBVc2VyIE5hbWUgb3IgQ2hvb3NlIFJlZmlsbCB0byByZWZpbGwgYWNjb3VudC4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAIVXNlck5hbWUFAAAACFVzZXJOYW1lBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYgrN8M=",
"height": 2215154,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HA1ZbiM3pMuu5CbME4C3g9KNaK3wdNoZF8hNbjuhthB7
Next: CnFUJEBqRKGE8FWjZPPyq9ebzgcpzXnb5kvkkvWfiLbD
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func RegisterUserName (UserName) = { |
---|
8 | | - | let pmt = if ((size(i.payments) == 0)) |
---|
9 | | - | then i.payments[0] |
---|
10 | | - | else throw((toBase58String(CODEAssetID) + " Token is required as Attached payment.")) |
---|
| 8 | + | let pmt = i.payments |
---|
11 | 9 | | let checkseries = getString(this, UserName) |
---|
12 | 10 | | if ((3 > size(UserName))) |
---|
13 | 11 | | then throw("Choose a Unique UserName above 3 Chars.") |
---|
Full:
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 | | - | let pmt = if ((size(i.payments) == 0)) |
---|
9 | | - | then i.payments[0] |
---|
10 | | - | else throw((toBase58String(CODEAssetID) + " Token is required as Attached payment.")) |
---|
| 8 | + | let pmt = i.payments |
---|
11 | 9 | | let checkseries = getString(this, UserName) |
---|
12 | 10 | | if ((3 > size(UserName))) |
---|
13 | 11 | | then throw("Choose a Unique UserName above 3 Chars.") |
---|
14 | 12 | | else if ((checkseries == UserName)) |
---|
15 | 13 | | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") |
---|
16 | 14 | | else [StringEntry(UserName, UserName)] |
---|
17 | 15 | | } |
---|
18 | 16 | | |
---|
19 | 17 | | |
---|
20 | 18 | | @Verifier(tx) |
---|
21 | 19 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 20 | | |
---|