tx · BsoW4JbAnS4k8ZRbMxvsfoKHBVGG4WBqt9tzgX85DECJ
3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK: -0.01400000 Waves
2022.08.20 17:35 [2192920] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves
{
"type": 13,
"id": "BsoW4JbAnS4k8ZRbMxvsfoKHBVGG4WBqt9tzgX85DECJ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1661006144646,
"version": 2,
"chainId": 84,
"sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK",
"senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y",
"proofs": [
"4MG8n4o2pSGpdoaHrUvaXuk7WgmRVkzzNZxXH2ajySdzxKifg9XoLq6Zu3LoZkCQciAJhME2VQEpcZT6rMmutQGr"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAxSZWdpc3RlclRHSUQAAAABAAAABFRHSUQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJY2hlY2tUR0lECQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAIVEdJRF9PZl8FAAAACmN1cnJlbnRLZXkEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAAEBObyBQYXltZW50cyB3ZXJlIGF0dGFjaGVkIHBsZWFzZSBhdHRhY2ggd2hpdGVsYWJsZWQgYXNzZXRzIG9ubHkuAwkAAAAAAAACBQAAAAljaGVja1RHSUQFAAAABFRHSUQJAAACAAAAAQIAAABFVGVsZWdyYW0gSUQgQWxyZWFkeSBSZWdpc3RlcmVkLiBZb3UganVzdCBuZWVkIHRvIFJlZmlsbCB5b3VyIEFjY291bnQuAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtDT0RFQXNzZXRJRAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAUS2luZGx5IERlcG9zaXQgT25seSAJAAJYAAAAAQUAAAALQ09ERUFzc2V0SUQCAAAACCBbQ09ERV0uAwkAAGYAAAACAAAAAAAAAAPoCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAADJBdHRhY2hlZCBBbW91bnQgaXMgbGVzcyB0aGFuIDEgUGxlYXNlIGF0dGFjaCBtb3JlLgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACFRHSURfT2ZfBQAAAApjdXJyZW50S2V5BQAAAARUR0lEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlUtRVc",
"height": 2192920,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 41ZgQaGn1nQD2EUhwLjYt4TKP9KAozxjjY18xBXGuEbk
Next: 3BjCwym3ZNjpeXWs4paHyTGuk6DKGZUPomdZ52vtrWFC
Diff:
Old | New | | Differences |
---|
9 | 9 | | let checkTGID = getString(this, ("TGID_Of_" + currentKey)) |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
11 | 11 | | then i.payments[0] |
---|
12 | | - | else throw("No Payments wer attached please attach whitelabled assets only.") |
---|
| 12 | + | else throw("No Payments were attached please attach whitelabled assets only.") |
---|
13 | 13 | | if ((checkTGID == TGID)) |
---|
14 | 14 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
15 | 15 | | else if ((pmt.assetId != CODEAssetID)) |
---|
16 | 16 | | then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
17 | 17 | | else if ((1000 > pmt.amount)) |
---|
18 | | - | then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
| 18 | + | then throw("Attached Amount is less than 1 Please attach more.") |
---|
19 | 19 | | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
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 RegisterTGID (TGID) = { |
---|
8 | 8 | | let currentKey = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let checkTGID = getString(this, ("TGID_Of_" + currentKey)) |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
11 | 11 | | then i.payments[0] |
---|
12 | | - | else throw("No Payments wer attached please attach whitelabled assets only.") |
---|
| 12 | + | else throw("No Payments were attached please attach whitelabled assets only.") |
---|
13 | 13 | | if ((checkTGID == TGID)) |
---|
14 | 14 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
15 | 15 | | else if ((pmt.assetId != CODEAssetID)) |
---|
16 | 16 | | then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
17 | 17 | | else if ((1000 > pmt.amount)) |
---|
18 | | - | then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
| 18 | + | then throw("Attached Amount is less than 1 Please attach more.") |
---|
19 | 19 | | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Verifier(tx) |
---|
24 | 24 | | func verify () = match tx { |
---|
25 | 25 | | case _ => |
---|
26 | 26 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|