tx · 4NDyjCLJpn9rWy83n8VxkZEkSKmNM5Z2poPNDZVtGdAw

3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK:  -0.01400000 Waves

2022.08.20 17:28 [2192912] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves

{ "type": 13, "id": "4NDyjCLJpn9rWy83n8VxkZEkSKmNM5Z2poPNDZVtGdAw", "fee": 1400000, "feeAssetId": null, "timestamp": 1661005777301, "version": 2, "chainId": 84, "sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK", "senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y", "proofs": [ "q98VCSxphmkqU8Zojffiox3d9bHEe1S3WwSDaNxhUhQXWBQqFB7XGxankKhNN8jgrzUemKPfi4gFG8ei3NrpHFQ" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAxSZWdpc3RlclRHSUQAAAABAAAABFRHSUQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJY2hlY2tUR0lECQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAIVEdJRF9PZl8FAAAACmN1cnJlbnRLZXkEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAAD9ObyBQYXltZW50cyB3ZXIgYXR0YWNoZWQgcGxlYXNlIGF0dGFjaCB3aGl0ZWxhYmxlZCBhc3NldHMgb25seS4DCQAAAAAAAAIFAAAACWNoZWNrVEdJRAUAAAAEVEdJRAkAAAIAAAABAgAAAEVUZWxlZ3JhbSBJRCBBbHJlYWR5IFJlZ2lzdGVyZWQuIFlvdSBqdXN0IG5lZWQgdG8gUmVmaWxsIHlvdXIgQWNjb3VudC4DCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAC0NPREVBc3NldElECQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABRLaW5kbHkgRGVwb3NpdCBPbmx5IAkAAlgAAAABBQAAAAtDT0RFQXNzZXRJRAIAAAAIIFtDT0RFXS4DCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAPoCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAABNLaW5kbHkgQXR0YWNoIE9ubHkgCQACWAAAAAEFAAAAC0NPREVBc3NldElEAgAAAAggW0NPREVdLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACFRHSURfT2ZfBQAAAApjdXJyZW50S2V5BQAAAARUR0lEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkwb1x3", "height": 2192912, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gaq2GgVnRgGbuU2f2r6ggmzqcyzj7LwHW4CXpRWYpshb Next: 41ZgQaGn1nQD2EUhwLjYt4TKP9KAozxjjY18xBXGuEbk Diff:
OldNewDifferences
77 func RegisterTGID (TGID) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let checkTGID = getString(this, ("TGID_Of_" + currentKey))
10- let pmt = if ((size(i.payments) == 0))
11- then throw("No Payments Required to Attach Here. Use Topup Bot to add Balance.")
12- else true
10+ let pmt = if ((size(i.payments) == 1))
11+ then i.payments[0]
12+ else throw("No Payments wer attached please attach whitelabled assets only.")
1313 if ((checkTGID == TGID))
1414 then throw("Telegram ID Already Registered. You just need to Refill your Account.")
15- else [StringEntry(("TGID_Of_" + currentKey), TGID)]
15+ else if ((pmt.assetId != CODEAssetID))
16+ then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE]."))
17+ else if ((pmt.amount > 1000))
18+ then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " [CODE]."))
19+ else [StringEntry(("TGID_Of_" + currentKey), TGID)]
1620 }
1721
22+
23+@Verifier(tx)
24+func verify () = match tx {
25+ case _ =>
26+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
27+}
1828
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 RegisterTGID (TGID) = {
88 let currentKey = toBase58String(i.caller.bytes)
99 let checkTGID = getString(this, ("TGID_Of_" + currentKey))
10- let pmt = if ((size(i.payments) == 0))
11- then throw("No Payments Required to Attach Here. Use Topup Bot to add Balance.")
12- else true
10+ let pmt = if ((size(i.payments) == 1))
11+ then i.payments[0]
12+ else throw("No Payments wer attached please attach whitelabled assets only.")
1313 if ((checkTGID == TGID))
1414 then throw("Telegram ID Already Registered. You just need to Refill your Account.")
15- else [StringEntry(("TGID_Of_" + currentKey), TGID)]
15+ else if ((pmt.assetId != CODEAssetID))
16+ then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE]."))
17+ else if ((pmt.amount > 1000))
18+ then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " [CODE]."))
19+ else [StringEntry(("TGID_Of_" + currentKey), TGID)]
1620 }
1721
22+
23+@Verifier(tx)
24+func verify () = match tx {
25+ case _ =>
26+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
27+}
1828

github/deemru/w8io/169f3d6 
48.87 ms