tx · 9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW
3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01400000 Waves
2021.12.10 14:29 [1828087] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{
"type": 13,
"id": "9PR7nSqRiRramspw2BLGZ3pEWwXAenLj18AE9FWgTSxW",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1639135784328,
"version": 2,
"chainId": 84,
"sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV",
"senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7",
"proofs": [
"3ojT8oizSvKd2rpEpdZFLsYtBKqHoCGUWXkcYywyiY91sTmqGuogqtjhsuXN5xSXr71nXep7aeJcHCJc24msTKcb"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFdG9rZW4BAAAAIOc5mAuQ0CpHzn2Eeqy2bd/5bxix/Zvv2ghyN3nN6l5mAAAAAAdhaXJkcm9wCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvl8ZsNRuQjR8RHdkDfsNYL0aRkcYXOeKAAAAAQAAAAFpAQAAAARjYWxsAAAAAQAAAARpZDU4BAAAAAdiYWxhbmNlCQAD8AAAAAIFAAAAB2FpcmRyb3AFAAAABXRva2VuBAAAAApkcm9wYW1vdW50AAAAAAAAAABkBAAAAAhpc2Vub3VnaAMJAABmAAAAAgUAAAAHYmFsYW5jZQUAAAAKZHJvcGFtb3VudAYJAAACAAAAAQIAAAAKbm90IGVub3VnaAMJAAAAAAAAAgUAAAAIaXNlbm91Z2gFAAAACGlzZW5vdWdoBAAAAAJpZAkAAlkAAAABBQAAAARpZDU4BAAAAAxjYWxsZXJBZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEdGltZQAAAAF9o9wqYA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lZAMFAAAACWlzcHJvb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABG1lc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHYmFsYW5jZQkAAaQAAAABBQAAAAdiYWxhbmNlBQAAAANuaWwJAAACAAAAAQIAAAALbm90IHByb292ZWQJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnbiV6V",
"height": 1828087,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CPHhfneoWM4KouQ85JUERQQ6waSXhBgC3vuKknUAGj8m
Next: 2RrhLdF3EkWedR1ViV8qJJtNKQ8fL3HgB1Ps8VVYcLvn
Diff:
Old | New | | Differences |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func call (d) = { |
---|
10 | 10 | | let e = assetBalance(b, a) |
---|
11 | | - | let f = 1000000001 |
---|
| 11 | + | let f = 100 |
---|
12 | 12 | | let g = if ((e > f)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else throw("not enough") |
---|
|
35 | 35 | | } |
---|
36 | 36 | | else throw("Can't find transaction") |
---|
37 | 37 | | } |
---|
38 | | - | let o = if (if ((k > j)) |
---|
| 38 | + | let o = { |
---|
| 39 | + | let l = getString(toBase58String(c.caller.bytes)) |
---|
| 40 | + | if ($isInstanceOf(l, "Unit")) |
---|
| 41 | + | then { |
---|
| 42 | + | let p = l |
---|
| 43 | + | true |
---|
| 44 | + | } |
---|
| 45 | + | else false |
---|
| 46 | + | } |
---|
| 47 | + | let q = if (if (if ((k > j)) |
---|
39 | 48 | | then true |
---|
40 | 49 | | else (i != n)) |
---|
| 50 | + | then true |
---|
| 51 | + | else o) |
---|
41 | 52 | | then false |
---|
42 | 53 | | else true |
---|
43 | | - | let p = if ((k > j)) |
---|
| 54 | + | let r = if ((k > j)) |
---|
44 | 55 | | then ("overtime: " + toString(k)) |
---|
45 | 56 | | else if ((i != n)) |
---|
46 | 57 | | then ((("incorrect sender: " + toString(i)) + " / ") + toString(n)) |
---|
47 | | - | else "prooved" |
---|
48 | | - | if (o) |
---|
49 | | - | then [StringEntry(toBase58String(c.caller.bytes), p), StringEntry("balance", toString(e))] |
---|
| 58 | + | else if (o) |
---|
| 59 | + | then "received" |
---|
| 60 | + | else "prooved" |
---|
| 61 | + | if (q) |
---|
| 62 | + | then [StringEntry(toBase58String(c.caller.bytes), r), StringEntry("balance", toString(e))] |
---|
50 | 63 | | else throw("not prooved") |
---|
51 | 64 | | } |
---|
52 | 65 | | else throw("Strict value is not equal to itself.") |
---|
53 | 66 | | } |
---|
54 | 67 | | |
---|
55 | 68 | | |
---|
56 | | - | @Verifier(q) |
---|
57 | | - | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
| 69 | + | @Verifier(s) |
---|
| 70 | + | func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
58 | 71 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV') |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func call (d) = { |
---|
10 | 10 | | let e = assetBalance(b, a) |
---|
11 | | - | let f = 1000000001 |
---|
| 11 | + | let f = 100 |
---|
12 | 12 | | let g = if ((e > f)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else throw("not enough") |
---|
15 | 15 | | if ((g == g)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let h = fromBase58String(d) |
---|
18 | 18 | | let i = Address(c.caller.bytes) |
---|
19 | 19 | | let j = 1639131654752 |
---|
20 | 20 | | let k = { |
---|
21 | 21 | | let l = transferTransactionById(h) |
---|
22 | 22 | | if ($isInstanceOf(l, "TransferTransaction")) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let m = l |
---|
25 | 25 | | m.timestamp |
---|
26 | 26 | | } |
---|
27 | 27 | | else throw("Can't find transaction") |
---|
28 | 28 | | } |
---|
29 | 29 | | let n = { |
---|
30 | 30 | | let l = transferTransactionById(h) |
---|
31 | 31 | | if ($isInstanceOf(l, "TransferTransaction")) |
---|
32 | 32 | | then { |
---|
33 | 33 | | let m = l |
---|
34 | 34 | | m.sender |
---|
35 | 35 | | } |
---|
36 | 36 | | else throw("Can't find transaction") |
---|
37 | 37 | | } |
---|
38 | | - | let o = if (if ((k > j)) |
---|
| 38 | + | let o = { |
---|
| 39 | + | let l = getString(toBase58String(c.caller.bytes)) |
---|
| 40 | + | if ($isInstanceOf(l, "Unit")) |
---|
| 41 | + | then { |
---|
| 42 | + | let p = l |
---|
| 43 | + | true |
---|
| 44 | + | } |
---|
| 45 | + | else false |
---|
| 46 | + | } |
---|
| 47 | + | let q = if (if (if ((k > j)) |
---|
39 | 48 | | then true |
---|
40 | 49 | | else (i != n)) |
---|
| 50 | + | then true |
---|
| 51 | + | else o) |
---|
41 | 52 | | then false |
---|
42 | 53 | | else true |
---|
43 | | - | let p = if ((k > j)) |
---|
| 54 | + | let r = if ((k > j)) |
---|
44 | 55 | | then ("overtime: " + toString(k)) |
---|
45 | 56 | | else if ((i != n)) |
---|
46 | 57 | | then ((("incorrect sender: " + toString(i)) + " / ") + toString(n)) |
---|
47 | | - | else "prooved" |
---|
48 | | - | if (o) |
---|
49 | | - | then [StringEntry(toBase58String(c.caller.bytes), p), StringEntry("balance", toString(e))] |
---|
| 58 | + | else if (o) |
---|
| 59 | + | then "received" |
---|
| 60 | + | else "prooved" |
---|
| 61 | + | if (q) |
---|
| 62 | + | then [StringEntry(toBase58String(c.caller.bytes), r), StringEntry("balance", toString(e))] |
---|
50 | 63 | | else throw("not prooved") |
---|
51 | 64 | | } |
---|
52 | 65 | | else throw("Strict value is not equal to itself.") |
---|
53 | 66 | | } |
---|
54 | 67 | | |
---|
55 | 68 | | |
---|
56 | | - | @Verifier(q) |
---|
57 | | - | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
| 69 | + | @Verifier(s) |
---|
| 70 | + | func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey) |
---|
58 | 71 | | |
---|