tx · 4U9nJ3jsAxdjVEBTSoMfVmFxVHbYZQ5Fe7V6L5rwk8xY
3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves
2021.05.26 13:05 [1542488] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{
"type": 13,
"id": "4U9nJ3jsAxdjVEBTSoMfVmFxVHbYZQ5Fe7V6L5rwk8xY",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622023566391,
"version": 2,
"chainId": 84,
"sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB",
"senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb",
"proofs": [
"4BuNvdfnfh9Bk15fqU8DRKBnYmtcyj89pn17N6XRUnihU8Vijj716PBMvxfqsZkwV3pPQBNdQPGZLLzPZxjwnunQ"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgAAAAAIa2l0dGVuSWQCAAAALEd1b2JjSHZXOVdxb3Rua0dVajdKa3BjYlh0Z1ZmQjM3VEE0SmtnU2o5UWJiAQAAAApnZW5lcmF0aW9uAAAAAQAAAANudW0DAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAAAGCQAAZwAAAAIAAAAAAAAAAGQFAAAAA251bQIAAAACRzEDAwkAAGYAAAACBQAAAANudW0AAAAAAAAAAGQGCQAAZwAAAAIAAAAAAAAAA4QFAAAAA251bQIAAAACRzICAAAAAkczAAAAAQAAAAFpAQAAAA9naXZlQmlydGhLaXR0ZW4AAAAABAAAAANwbXQJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABXBtdElkCQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAMJAQAAAAIhPQAAAAIFAAAABXBtdElkBQAAAAhraXR0ZW5JZAkAAAIAAAABAgAAABlQbGVhc2Ugc2VuZCBLaXR0ZW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AA9zZW5kZXJQdWJsaWNLZXnpT3Xq",
"height": 1542488,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DthZSH1gMzDMG9Yxhj6MTyBbre7KqTpniNoYcQSVeW5P
Next: GEQ7huav6U5Er4HAhMuy7onYhJMWxQMZaAj3uqFAEMQC
Diff:
Old | New | | Differences |
---|
33 | 33 | | } |
---|
34 | 34 | | let k = (h + 1) |
---|
35 | 35 | | let l = b(k) |
---|
36 | | - | if ((g > 3)) |
---|
| 36 | + | if ((g > 300)) |
---|
37 | 37 | | then throw("Amount of Kitten tokens sent is 3 tokens.") |
---|
38 | | - | else if ((3 > g)) |
---|
| 38 | + | else if ((300 > g)) |
---|
39 | 39 | | then throw("Amount of Kitten tokens sent is 3 tokens.") |
---|
40 | 40 | | else { |
---|
41 | 41 | | let m = Issue("Kitten(=^・^=)", ("generation:" + l), 1, 0, false) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "GuobcHvW9WqotnkGUj7JkpcbXtgVfB37TA4JkgSj9Qbb" |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c) = if (if ((c > 0)) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else (100 >= c)) |
---|
9 | 9 | | then "G1" |
---|
10 | 10 | | else if (if ((c > 100)) |
---|
11 | 11 | | then true |
---|
12 | 12 | | else (900 >= c)) |
---|
13 | 13 | | then "G2" |
---|
14 | 14 | | else "G3" |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(d) |
---|
18 | 18 | | func giveBirthKitten () = { |
---|
19 | 19 | | let e = d.payments[0] |
---|
20 | 20 | | let f = toBase58String(value(e.assetId)) |
---|
21 | 21 | | if ((f != a)) |
---|
22 | 22 | | then throw("Please send Kitten token.") |
---|
23 | 23 | | else { |
---|
24 | 24 | | let g = e.amount |
---|
25 | 25 | | let h = { |
---|
26 | 26 | | let i = getInteger(this, "issueQuantity") |
---|
27 | 27 | | if ($isInstanceOf(i, "Int")) |
---|
28 | 28 | | then { |
---|
29 | 29 | | let j = i |
---|
30 | 30 | | j |
---|
31 | 31 | | } |
---|
32 | 32 | | else 0 |
---|
33 | 33 | | } |
---|
34 | 34 | | let k = (h + 1) |
---|
35 | 35 | | let l = b(k) |
---|
36 | | - | if ((g > 3)) |
---|
| 36 | + | if ((g > 300)) |
---|
37 | 37 | | then throw("Amount of Kitten tokens sent is 3 tokens.") |
---|
38 | | - | else if ((3 > g)) |
---|
| 38 | + | else if ((300 > g)) |
---|
39 | 39 | | then throw("Amount of Kitten tokens sent is 3 tokens.") |
---|
40 | 40 | | else { |
---|
41 | 41 | | let m = Issue("Kitten(=^・^=)", ("generation:" + l), 1, 0, false) |
---|
42 | 42 | | let n = calculateAssetId(m) |
---|
43 | 43 | | [m, ScriptTransfer(d.caller, 1, n)] |
---|
44 | 44 | | } |
---|
45 | 45 | | } |
---|
46 | 46 | | } |
---|
47 | 47 | | |
---|
48 | 48 | | |
---|
49 | 49 | | @Verifier(o) |
---|
50 | 50 | | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
51 | 51 | | |
---|