tx · 3BjCwym3ZNjpeXWs4paHyTGuk6DKGZUPomdZ52vtrWFC
3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK: -0.01400000 Waves
2022.08.20 17:45 [2192931] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves
{
"type": 13,
"id": "3BjCwym3ZNjpeXWs4paHyTGuk6DKGZUPomdZ52vtrWFC",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1661006720327,
"version": 2,
"chainId": 84,
"sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK",
"senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y",
"proofs": [
"4e3pAeXZxoxR8fj5HH4trWqeemGi5YEGwqF9ATPBxRUEGJqGeZEjbQkTJfqiCEUn7hCGmyB7ZrLgQhm28zF8xBYQ"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAQAAAAFpAQAAAAxSZWdpc3RlclRHSUQAAAABAAAABFRHSUQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJY2hlY2tUR0lECQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAIVEdJRF9PZl8FAAAACmN1cnJlbnRLZXkEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAAEBObyBQYXltZW50cyB3ZXJlIGF0dGFjaGVkIHBsZWFzZSBhdHRhY2ggd2hpdGVsYWJsZWQgYXNzZXRzIG9ubHkuBAAAABNQcmV2aW91c1VzZXJEZXBvc2l0BAAAAAckbWF0Y2gwCQAEGg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gFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXppst4=",
"height": 2192931,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BsoW4JbAnS4k8ZRbMxvsfoKHBVGG4WBqt9tzgX85DECJ
Next: none
Diff:
Old | New | | Differences |
---|
10 | 10 | | let f = if ((size(b.payments) == 1)) |
---|
11 | 11 | | then b.payments[0] |
---|
12 | 12 | | else throw("No Payments were attached please attach whitelabled assets only.") |
---|
| 13 | + | let g = { |
---|
| 14 | + | let h = getInteger(this, ("Deposit_Amount_Of_" + d)) |
---|
| 15 | + | if ($isInstanceOf(h, "Int")) |
---|
| 16 | + | then { |
---|
| 17 | + | let i = h |
---|
| 18 | + | i |
---|
| 19 | + | } |
---|
| 20 | + | else 0 |
---|
| 21 | + | } |
---|
| 22 | + | let j = (g + f.amount) |
---|
13 | 23 | | if ((e == c)) |
---|
14 | 24 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
15 | 25 | | else if ((f.assetId != a)) |
---|
16 | 26 | | then throw((("Kindly Deposit Only " + toBase58String(a)) + " [CODE].")) |
---|
17 | 27 | | else if ((1000 > f.amount)) |
---|
18 | 28 | | then throw("Attached Amount is less than 1 Please attach more.") |
---|
19 | | - | else [StringEntry(("TGID_Of_" + d), c)] |
---|
| 29 | + | else [StringEntry(("TGID_Of_" + d), c), IntegerEntry(("Deposit_Amount_Of_" + d), j)] |
---|
20 | 30 | | } |
---|
21 | 31 | | |
---|
22 | 32 | | |
---|
23 | | - | @Verifier(g) |
---|
24 | | - | func h () = { |
---|
25 | | - | let i = g |
---|
26 | | - | sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
| 33 | + | @Verifier(k) |
---|
| 34 | + | func l () = { |
---|
| 35 | + | let h = k |
---|
| 36 | + | sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
27 | 37 | | } |
---|
28 | 38 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func RegisterTGID (c) = { |
---|
8 | 8 | | let d = toBase58String(b.caller.bytes) |
---|
9 | 9 | | let e = getString(this, ("TGID_Of_" + d)) |
---|
10 | 10 | | let f = if ((size(b.payments) == 1)) |
---|
11 | 11 | | then b.payments[0] |
---|
12 | 12 | | else throw("No Payments were attached please attach whitelabled assets only.") |
---|
| 13 | + | let g = { |
---|
| 14 | + | let h = getInteger(this, ("Deposit_Amount_Of_" + d)) |
---|
| 15 | + | if ($isInstanceOf(h, "Int")) |
---|
| 16 | + | then { |
---|
| 17 | + | let i = h |
---|
| 18 | + | i |
---|
| 19 | + | } |
---|
| 20 | + | else 0 |
---|
| 21 | + | } |
---|
| 22 | + | let j = (g + f.amount) |
---|
13 | 23 | | if ((e == c)) |
---|
14 | 24 | | then throw("Telegram ID Already Registered. You just need to Refill your Account.") |
---|
15 | 25 | | else if ((f.assetId != a)) |
---|
16 | 26 | | then throw((("Kindly Deposit Only " + toBase58String(a)) + " [CODE].")) |
---|
17 | 27 | | else if ((1000 > f.amount)) |
---|
18 | 28 | | then throw("Attached Amount is less than 1 Please attach more.") |
---|
19 | | - | else [StringEntry(("TGID_Of_" + d), c)] |
---|
| 29 | + | else [StringEntry(("TGID_Of_" + d), c), IntegerEntry(("Deposit_Amount_Of_" + d), j)] |
---|
20 | 30 | | } |
---|
21 | 31 | | |
---|
22 | 32 | | |
---|
23 | | - | @Verifier(g) |
---|
24 | | - | func h () = { |
---|
25 | | - | let i = g |
---|
26 | | - | sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
| 33 | + | @Verifier(k) |
---|
| 34 | + | func l () = { |
---|
| 35 | + | let h = k |
---|
| 36 | + | sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
27 | 37 | | } |
---|
28 | 38 | | |
---|