tx · 6iFZyLLmhFGTNVNzbFtYjgjPJY2bk8j6xmfba1fWCwnK
3N81rtbVaBBCFJV79mTsSEy1GTn7pZiEMaG: -0.05000000 Waves
2022.04.10 11:10 [2002225] smart account 3N81rtbVaBBCFJV79mTsSEy1GTn7pZiEMaG > SELF 0.00000000 Waves
{
"type": 13,
"id": "6iFZyLLmhFGTNVNzbFtYjgjPJY2bk8j6xmfba1fWCwnK",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1649578327262,
"version": 2,
"chainId": 84,
"sender": "3N81rtbVaBBCFJV79mTsSEy1GTn7pZiEMaG",
"senderPublicKey": "Gjvg3XWonvtwS11qYisF5ctyEfXSdfGFc89vdwQ15rgs",
"proofs": [
"QkCJHiXJNFQugDXRXoHogZKX3U4y3Jtfw1QHE8K9XGc1htBBZDdyLiL1CPDSyq2EzYWhvyfuqW45XyrfEhZMULE"
],
"script": "base64:AAIFAAAAAAAAANUIAhIAEgAaCAoBYRIDQVBQGgsKAWISBkRPTkFURRoSCgFjEg10cnlHZXRJbnRlZ2VyGggKAWQSA2tleRoICgFlEgN2YWwaDAoBZhIHJG1hdGNoMBoGCgFnEgFiGgYKAWgSAWkaCAoBaRIDcG10GgsKAWoSBmFtb3VudBoRCgFrEgxjdXJyZW50VmFsdWUaCwoBbBIGbmV3VmFsGhIKAW0SDWNhbGxlckFkZHJlc3MaDwoBbhIKYXBwQWRkcmVzcxoHCgFvEgJ0eBoLCgFwEgZ2ZXJpZnkAAAADAAAAAAFhAQAAABoBVMaKAQxN6ucN17nYrm3GRhXIB6PoszBfsQAAAAABYgEAAAAaAVQ5nlzIm5WiZ3Y4LveGIZcS/w2qhE5DsSABAAAAAWMAAAABAAAAAWQEAAAAAWUEAAAAAWYJAAQaAAAAAgUAAAAEdGhpcwUAAAABZAMJAAABAAAAAgUAAAABZgIAAAADSW50BAAAAAFnBQAAAAFmBQAAAAFnAAAAAAAAAAAABQAAAAFlAAAAAgAAAAFoAQAAAARzZW5kAAAAAAQAAAABaQkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaAAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAABaggFAAAAAWkAAAAGYW1vdW50BAAAAAFrCQEAAAABYwAAAAECAAAABXZhbHVlBAAAAAFsCQAAZAAAAAIFAAAAAWsFAAAAAWoJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABXZhbHVlBQAAAAFsBQAAAANuaWwAAAABaAEAAAAGZG9uYXRlAAAAAAQAAAABbQkAAlgAAAABCAgFAAAAAWgAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAFuCQACWAAAAAEFAAAAAWEEAAAAAWsJAQAAAAFjAAAAAQIAAAAFdmFsdWUDCQAAAAAAAAIFAAAAAW0FAAAAAW4DCQAAZgAAAAIFAAAAAWsAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAFiBQAAAAFrBQAAAAR1bml0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAV2YWx1ZQAAAAAAAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAD05vdCBlbm91Z2ggZnVuZAkAAAIAAAABAgAAABhPbmx5IE93bmVyIGNhbiBjYWxsIHRoaXMAAAABAAAAAW8BAAAAAXAAAAAACQAB9AAAAAMIBQAAAAFvAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABbwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFvAAAAD3NlbmRlclB1YmxpY0tlefL/DJg=",
"height": 2002225,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: vtoCCpzNizbevCMUG4vzNwAraP8ruVgTfCGgGpHdGNa
Next: none
Diff:
Old | New | | Differences |
---|
25 | 25 | | let j = i.amount |
---|
26 | 26 | | let k = c("value") |
---|
27 | 27 | | let l = (k + j) |
---|
28 | | - | [IntegerEntry("value", k)] |
---|
| 28 | + | [IntegerEntry("value", l)] |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'3N81rtbVaBBCFJV79mTsSEy1GTn7pZiEMaG' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'3MuAk151ARFqSSJVvmi9jnnB2CpHEAFJZvw' |
---|
7 | 7 | | |
---|
8 | 8 | | func c (d) = { |
---|
9 | 9 | | let e = { |
---|
10 | 10 | | let f = getInteger(this, d) |
---|
11 | 11 | | if ($isInstanceOf(f, "Int")) |
---|
12 | 12 | | then { |
---|
13 | 13 | | let g = f |
---|
14 | 14 | | g |
---|
15 | 15 | | } |
---|
16 | 16 | | else 0 |
---|
17 | 17 | | } |
---|
18 | 18 | | e |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(h) |
---|
23 | 23 | | func send () = { |
---|
24 | 24 | | let i = value(h.payments[0]) |
---|
25 | 25 | | let j = i.amount |
---|
26 | 26 | | let k = c("value") |
---|
27 | 27 | | let l = (k + j) |
---|
28 | | - | [IntegerEntry("value", k)] |
---|
| 28 | + | [IntegerEntry("value", l)] |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | @Callable(h) |
---|
34 | 34 | | func donate () = { |
---|
35 | 35 | | let m = toBase58String(h.caller.bytes) |
---|
36 | 36 | | let n = toBase58String(a) |
---|
37 | 37 | | let k = c("value") |
---|
38 | 38 | | if ((m == n)) |
---|
39 | 39 | | then if ((k > 1)) |
---|
40 | 40 | | then [ScriptTransfer(Address(b), k, unit), IntegerEntry("value", 0)] |
---|
41 | 41 | | else throw("Not enough fund") |
---|
42 | 42 | | else throw("Only Owner can call this") |
---|
43 | 43 | | } |
---|
44 | 44 | | |
---|
45 | 45 | | |
---|
46 | 46 | | @Verifier(o) |
---|
47 | 47 | | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
48 | 48 | | |
---|