tx · 4apd8yx3VJnxmLSyniWw8sQwNFYrx5uvPkh4WjTMwLop

3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx:  -0.01400000 Waves

2022.09.05 04:46 [2215174] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves

{ "type": 13, "id": "4apd8yx3VJnxmLSyniWw8sQwNFYrx5uvPkh4WjTMwLop", "fee": 1400000, "feeAssetId": null, "timestamp": 1662342477243, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "2c9BD9be5zFpxb7wEu6RGeV5hqKzxSPSS9kMpAH3VEX9jeuRBUYDcAPyotHRktAASbNecrosSCBQBRhiFmFbxfKk" ], "script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAABAAAAAAtDT0RFQXNzZXRJRAEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAACAAAAAWkBAAAAEFJlZ2lzdGVyVXNlck5hbWUAAAABAAAACFVzZXJOYW1lBAAAAANwbXQIBQAAAAFpAAAACHBheW1lbnRzBAAAAAtjaGVja3NlcmllcwkABB0AAAACBQAAAAR0aGlzBQAAAAhVc2VyTmFtZQMJAABmAAAAAgAAAAAAAAAAAwkAATEAAAABBQAAAAhVc2VyTmFtZQkAAAIAAAABAgAAACdDaG9vc2UgYSBVbmlxdWUgVXNlck5hbWUgYWJvdmUgMyBDaGFycy4DCQAAAAAAAAIFAAAAC2NoZWNrc2VyaWVzBQAAAAhVc2VyTmFtZQkAAAIAAAABAgAAAGVVc2VyIE5hbWUgQWxyZWFkeSBFeGlzdCBvciBUYWtlbi4gQ2hvb3NlIEFub3RoZXIgVW5pcXVlIFVzZXIgTmFtZSBvciBDaG9vc2UgUmVmaWxsIHRvIHJlZmlsbCBhY2NvdW50LgkABEwAA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nRyeQAAAAIFAAAACFVzZXJOYW1lBQAAABRuZXdEZXBvc2l0Q09ERUFtb3VudAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlJoTbL", "height": 2215174, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2VFucK6Dyk7Q2KUc3KfLGuJiqht9g8wFU4jjg1xTpGej Next: GUSTwuMmzggnA62TbotB8xCn2K8GQWjP5zMtyrXsscRg Diff:
OldNewDifferences
2121 let pmt = if ((size(i.payments) == 1))
2222 then i.payments[0]
2323 else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(CODEAssetID)) + "]"))
24- let DepositCODEAmount = match getInteger(this, ("Deposit_Amount_" + UserName)) {
24+ let DepositCODEAmount = match getInteger(this, UserName) {
2525 case a: Int =>
2626 a
2727 case _ =>
3232 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
3333 else if ((1000 > pmt.amount))
3434 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
35- else [IntegerEntry(("Deposit_Amount_" + UserName), newDepositCODEAmount)]
35+ else [IntegerEntry(UserName, newDepositCODEAmount)]
3636 }
3737
3838
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 pmt = i.payments
99 let checkseries = getString(this, UserName)
1010 if ((3 > size(UserName)))
1111 then throw("Choose a Unique UserName above 3 Chars.")
1212 else if ((checkseries == UserName))
1313 then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.")
1414 else [StringEntry(UserName, UserName)]
1515 }
1616
1717
1818
1919 @Callable(i)
2020 func Recharge (UserName) = {
2121 let pmt = if ((size(i.payments) == 1))
2222 then i.payments[0]
2323 else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(CODEAssetID)) + "]"))
24- let DepositCODEAmount = match getInteger(this, ("Deposit_Amount_" + UserName)) {
24+ let DepositCODEAmount = match getInteger(this, UserName) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030 let newDepositCODEAmount = (DepositCODEAmount + pmt.amount)
3131 if ((pmt.assetId != CODEAssetID))
3232 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
3333 else if ((1000 > pmt.amount))
3434 then throw((("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)) + " asset only"))
35- else [IntegerEntry(("Deposit_Amount_" + UserName), newDepositCODEAmount)]
35+ else [IntegerEntry(UserName, newDepositCODEAmount)]
3636 }
3737
3838
3939 @Verifier(tx)
4040 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4141

github/deemru/w8io/169f3d6 
34.16 ms