tx · EtHxzrhBkmyAWa8miF4gcTJm2d7J1uSiDf3Ud8bVBGMm
3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK: -0.01400000 Waves
2022.08.20 17:14 [2192898] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves
{
"type": 13,
"id": "EtHxzrhBkmyAWa8miF4gcTJm2d7J1uSiDf3Ud8bVBGMm",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1661004928056,
"version": 2,
"chainId": 84,
"sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK",
"senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y",
"proofs": [
"5gRdjwVBotQDeGQyqZ5iRuWoYNvrMoUk14MKWBYpxboxsk7B7woR7SQbb96jHHvJdZ8bFdZQSQ4RQ7vmsxWMgQ84"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAxSZWdpc3RlclRHSUQAAAABAAAABFRHSUQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJY2hlY2tUR0lECQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAIVEdJRF9PZl8FAAAACmN1cnJlbnRLZXkEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAADtObyBQYXltZW50cyBBdHRhY2hlZCBQbGVhc2UgQXR0YWNoIFdoaXRlbGFibGVkIEFzc2V0cyBPbmx5LgMJAAAAAAAAAgUAAAAJY2hlY2tUR0lEBQAAAARUR0lECQAAAgAAAAECAAAARVRlbGVncmFtIElEIEFscmVhZHkgUmVnaXN0ZXJlZC4gWW91IGp1c3QgbmVlZCB0byBSZWZpbGwgeW91ciBBY2NvdW50LgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACFRHSURfT2ZfBQAAAApjdXJyZW50S2V5BQAAAARUR0lEBQAAAANuaWwAAAAATUHzbw==",
"height": 2192898,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2wQhGWeZbudE9zt8Kmj4PbZeSeHNqyd1TSoZ5b1Zvt83
Next: FZA9Jz7M84yd3KmdbiZYYcqUYLR43o3tExux8f4MPjxL
Diff:
Old | New | | Differences |
---|
10 | 10 | | let pmt = if ((size(i.payments) == 1)) |
---|
11 | 11 | | then i.payments[0] |
---|
12 | 12 | | else throw("No Payments Attached Please Attach Whitelabled Assets Only.") |
---|
13 | | - | let AssetAmount = match getInteger(this, "Staked_Amount") { |
---|
14 | | - | case a: Int => |
---|
15 | | - | a |
---|
16 | | - | case _ => |
---|
17 | | - | 0 |
---|
18 | | - | } |
---|
19 | | - | let newStakedA4AAmount = (AssetAmount + pmt.amount) |
---|
20 | 13 | | if ((checkTGID == TGID)) |
---|
21 | 14 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
22 | | - | else if ((pmt.assetId != CODEAssetID)) |
---|
23 | | - | then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
24 | | - | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
| 15 | + | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
25 | 16 | | } |
---|
26 | 17 | | |
---|
27 | 18 | | |
---|
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 | 12 | | else throw("No Payments Attached Please Attach Whitelabled Assets Only.") |
---|
13 | | - | let AssetAmount = match getInteger(this, "Staked_Amount") { |
---|
14 | | - | case a: Int => |
---|
15 | | - | a |
---|
16 | | - | case _ => |
---|
17 | | - | 0 |
---|
18 | | - | } |
---|
19 | | - | let newStakedA4AAmount = (AssetAmount + pmt.amount) |
---|
20 | 13 | | if ((checkTGID == TGID)) |
---|
21 | 14 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
22 | | - | else if ((pmt.assetId != CODEAssetID)) |
---|
23 | | - | then throw((("Kindly Deposit Only " + toBase58String(CODEAssetID)) + " [CODE].")) |
---|
24 | | - | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
| 15 | + | else [StringEntry(("TGID_Of_" + currentKey), TGID)] |
---|
25 | 16 | | } |
---|
26 | 17 | | |
---|
27 | 18 | | |
---|