tx · 4fPasczzohrThKz1rFKHjWg4rqF3uuJW6zGnJEqChKaa

3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx:  -0.01400000 Waves

2022.09.04 21:52 [2214762] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves

{ "type": 13, "id": "4fPasczzohrThKz1rFKHjWg4rqF3uuJW6zGnJEqChKaa", "fee": 1400000, "feeAssetId": null, "timestamp": 1662317568242, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "vzVEhyG4nBpPofffZKrVPnNNeUDANzSf6SBP6jFVTSLZ72bM5fiJohjyE4h7N9S9aoi5qvf4HFv4khbxmmRPtXS" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAABBSZWdpc3RlclVzZXJOYW1lAAAAAQAAAAhVc2VyTmFtZQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAtjaGVja3NlcmllcwkABB0AAAACBQAAAAR0aGlzBQAAAAhVc2VyTmFtZQQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQAAAgAAAAECAAAANE5vIFRva2VuIG9yIFBheW1lbnQgaXMgcmVxdWlyZWQgYXMgQXR0YWNoZWQgcGF5bWVudC4GAwkAAGYAAAACAAAAAAAAAAADCQABMQAAAAEFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAJ0Nob29zZSBhIFVuaXF1ZSBVc2VyTmFtZSBhYm92ZSAzIENoYXJzLgMJAAAAAAAAAgUAAAALY2hlY2tzZXJpZXMFAAAACFVzZXJOYW1lCQAAAgAAAAECAAAAZVVzZXIgTmFtZSBBbHJlYWR5IEV4aXN0IG9yIFRha2VuLiBDaG9vc2UgQW5vdGhlciBVbmlxdWUgVXNlciBOYW1lIG9yIENob29zZSBSZWZpbGwgdG8gcmVmaWxsIGFjY291bnQuCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACFVzZXJOYW1lBQAAAAhVc2VyTmFtZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXndU3t+", "height": 2214762, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3G6YUWXWLWYNN739f5YZtgyLaeTiMa2px67gzEiewaG3 Next: 5ykMQGKb5sQJU8AqGBgXWmtKe9kboQFPYdANBKt7pw3k Diff:
OldNewDifferences
66 @Callable(i)
77 func RegisterUserName (UserName) = {
88 let currentKey = toBase58String(i.caller.bytes)
9+ let checkseries = getString(this, UserName)
910 let pmt = if ((size(i.payments) == 1))
10- then i.payments[0]
11- else throw((toBase58String(CODEAssetID) + " Token is required as Attached payment."))
12- let checkseries = getString(this, UserName)
11+ then throw("No Token or Payment is required as Attached payment.")
12+ else true
1313 if ((3 > size(UserName)))
1414 then throw("Choose a Unique UserName above 3 Chars.")
15- else if ((pmt.assetId != CODEAssetID))
16- then throw(("Wrong Asset Attached please Attach " + toBase58String(CODEAssetID)))
17- else if ((checkseries == UserName))
18- then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.")
19- else if ((1000000 > pmt.amount))
20- then throw((("Please Attach Minimum 10 CODE [" + toBase58String(CODEAssetID)) + "]"))
21- else [StringEntry(UserName, toString(pmt.amount))]
15+ else if ((checkseries == UserName))
16+ then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.")
17+ else [StringEntry(UserName, UserName)]
2218 }
2319
2420
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
66 @Callable(i)
77 func RegisterUserName (UserName) = {
88 let currentKey = toBase58String(i.caller.bytes)
9+ let checkseries = getString(this, UserName)
910 let pmt = if ((size(i.payments) == 1))
10- then i.payments[0]
11- else throw((toBase58String(CODEAssetID) + " Token is required as Attached payment."))
12- let checkseries = getString(this, UserName)
11+ then throw("No Token or Payment is required as Attached payment.")
12+ else true
1313 if ((3 > size(UserName)))
1414 then throw("Choose a Unique UserName above 3 Chars.")
15- else if ((pmt.assetId != CODEAssetID))
16- then throw(("Wrong Asset Attached please Attach " + toBase58String(CODEAssetID)))
17- else if ((checkseries == UserName))
18- then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.")
19- else if ((1000000 > pmt.amount))
20- then throw((("Please Attach Minimum 10 CODE [" + toBase58String(CODEAssetID)) + "]"))
21- else [StringEntry(UserName, toString(pmt.amount))]
15+ else if ((checkseries == UserName))
16+ then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.")
17+ else [StringEntry(UserName, UserName)]
2218 }
2319
2420
2521 @Verifier(tx)
2622 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2723

github/deemru/w8io/169f3d6 
71.63 ms