tx · GUSTwuMmzggnA62TbotB8xCn2K8GQWjP5zMtyrXsscRg
3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves
2022.09.05 04:54 [2215180] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{
"type": 13,
"id": "GUSTwuMmzggnA62TbotB8xCn2K8GQWjP5zMtyrXsscRg",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1662342857634,
"version": 2,
"chainId": 84,
"sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx",
"senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p",
"proofs": [
"2HDEXbegkubo3wBzvQ1whvvYCwAchDQa4B8FAS38MHYVkwfkf43skMB2KoRX7aG6c91dbRr7MgLvTz5BRHimWMUn"
],
"script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAABAAAAAAtDT0RFQXNzZXRJRAEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAACAAAAAWkBAAAAEFJlZ2lzdGVyVXNlck5hbWUAAAABAAAACFVzZXJOYW1lBAAAAANwbXQIBQAAAAFpAAAACHBheW1lbnRzBAAAAAtjaGVja3NlcmllcwkABB0AAAACBQAAAAR0aGlzBQAAAAhVc2VyTmFtZQMJAABmAAAAAgAAAAAAAAAAAwkAATEAAAABBQAAAAhVc2VyTmFtZQkAAAIAAAABAgAAACdDaG9vc2UgYSBVbmlxdWUgVXNlck5hbWUgYWJvdmUgMyBDaGFycy4DCQAAAAAAAAIFAAAAC2NoZWNrc2VyaWVzBQAAAAhVc2VyTmFtZQkAAAIAAAABAgAAAGVVc2VyIE5hbWUgQWxyZWFkeSBFeGlzdCBvciBUYWtlbi4gQ2hvb3NlIEFub3RoZXIgVW5pcXVlIFVzZXIgTmFtZSBvciBDaG9vc2UgUmVmaWxsIHRvIHJlZmlsbCBhY2NvdW50LgkAB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QCAAAACyBhc3NldCBvbmx5CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAhVc2VyTmFtZQUAAAAUbmV3RGVwb3NpdENPREVBbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5XpCWDA==",
"height": 2215180,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4apd8yx3VJnxmLSyniWw8sQwNFYrx5uvPkh4WjTMwLop
Next: Ehkew2h1Xp9j2QAcbRNvdAGpg5VDPaEBUrnr8vcgA7nR
Diff:
Old | New | | Differences |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(b) |
---|
20 | 20 | | func Recharge (c) = { |
---|
21 | | - | let d = if ((size(b.payments) == 1)) |
---|
| 21 | + | let d = if ((size(b.payments) != 2)) |
---|
22 | 22 | | then b.payments[0] |
---|
23 | | - | else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(a)) + "]")) |
---|
| 23 | + | else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(a)) + "] as payment 1 and TN as payment [2].")) |
---|
24 | 24 | | let f = { |
---|
25 | 25 | | let g = getInteger(this, c) |
---|
26 | 26 | | if ($isInstanceOf(g, "Int")) |
---|
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 RegisterUserName (c) = { |
---|
8 | 8 | | let d = b.payments |
---|
9 | 9 | | let e = getString(this, c) |
---|
10 | 10 | | if ((3 > size(c))) |
---|
11 | 11 | | then throw("Choose a Unique UserName above 3 Chars.") |
---|
12 | 12 | | else if ((e == c)) |
---|
13 | 13 | | then throw("User Name Already Exist or Taken. Choose Another Unique User Name or Choose Refill to refill account.") |
---|
14 | 14 | | else [StringEntry(c, c)] |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(b) |
---|
20 | 20 | | func Recharge (c) = { |
---|
21 | | - | let d = if ((size(b.payments) == 1)) |
---|
| 21 | + | let d = if ((size(b.payments) != 2)) |
---|
22 | 22 | | then b.payments[0] |
---|
23 | | - | else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(a)) + "]")) |
---|
| 23 | + | else throw((("No payment attached, Please Attach CODE Token [" + toBase58String(a)) + "] as payment 1 and TN as payment [2].")) |
---|
24 | 24 | | let f = { |
---|
25 | 25 | | let g = getInteger(this, c) |
---|
26 | 26 | | if ($isInstanceOf(g, "Int")) |
---|
27 | 27 | | then { |
---|
28 | 28 | | let h = g |
---|
29 | 29 | | h |
---|
30 | 30 | | } |
---|
31 | 31 | | else 0 |
---|
32 | 32 | | } |
---|
33 | 33 | | let i = (f + d.amount) |
---|
34 | 34 | | if ((d.assetId != a)) |
---|
35 | 35 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " asset only")) |
---|
36 | 36 | | else if ((1000 > d.amount)) |
---|
37 | 37 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " asset only")) |
---|
38 | 38 | | else [IntegerEntry(c, i)] |
---|
39 | 39 | | } |
---|
40 | 40 | | |
---|
41 | 41 | | |
---|
42 | 42 | | @Verifier(j) |
---|
43 | 43 | | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
44 | 44 | | |
---|