tx · 2iWvKK2fE6JTabQkUfCnnSz3mQEXwZZvKiV6fbsmGBHE 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL: -0.01000000 Waves 2022.04.24 14:13 [2022511] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves
{ "type": 13, "id": "2iWvKK2fE6JTabQkUfCnnSz3mQEXwZZvKiV6fbsmGBHE", "fee": 1000000, "feeAssetId": null, "timestamp": 1650798779977, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "4muDhnCJYz6XnoGKDK3VCnZks56kSQiL8zH1Hqe7fsLbHDoRdVUiFuZJtBm6gKGbSdKYdYtp7zENC6dJE9R4deTX" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIBCBIDCgEBEgMKAQESBAoCAQgSBAoCAQgSAwoBAQAAAAcBAAAABWFzSW50AAAAAQAAAAV2YWx1ZQQAAAAHJG1hdGNoMAUAAAAFdmFsdWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADaW50BQAAAAckbWF0Y2gwBQAAAANpbnQJAAACAAAAAQIAAAANZXhwZWN0ZWQ6IEludAEAAAAEZ2V0SQAAAAEAAAADa2V5CQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAId3JpdGVJbnQAAAACAAAAA2tleQAAAAV2YWx1ZQMJAABmAAAAAgAAAAAAAAAAAAUAAAAFdmFsdWUJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAXd3JpdGluZyBuZWdhdGl2ZSB2YWx1ZSAJAAGkAAAAAQUAAAAFdmFsdWUCAAAACSBmb3Iga2V5IAUAAAADa2V5CQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAV2YWx1ZQAAAAAEbWFpbgkBA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spentComplexity": 0 } View: original | compacted Prev: F8PMCQCXbycWrCXmVcwZ8SFFfBanUQC8JvwXg5XCN4aG Next: 7KQLpMahWng2xtpXT1LYgYZb3BWBtQ7J9Y6r7qAVrwWp Diff:
Old | New | Differences | |
---|---|---|---|
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(l) | |
88 | + | func testkiss (r,f) = { | |
89 | + | let o = 1000000000 | |
90 | + | if ((r > o)) | |
91 | + | then throw("1") | |
92 | + | else { | |
93 | + | let s = valueOrElse(e(f), 0) | |
94 | + | if ((s == 1)) | |
95 | + | then throw("2") | |
96 | + | else $Tuple2([g(f, 1)], r) | |
97 | + | } | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | @Callable(l) | |
88 | 103 | func bb1 (n) = { | |
89 | 104 | let o = assetBalance(j, k) | |
90 | 105 | let p = a(invoke(j, "userDepositUSD", [toString(this)], nil)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = b | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else throw("expected: Int") | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (f) = getInteger(this, f) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (f,b) = if ((0 > b)) | |
19 | 19 | then throw(((("writing negative value " + toString(b)) + " for key ") + f)) | |
20 | 20 | else IntegerEntry(f, b) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT") | |
24 | 24 | ||
25 | 25 | let i = "6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ" | |
26 | 26 | ||
27 | 27 | let j = addressFromStringValue("3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S") | |
28 | 28 | ||
29 | 29 | let k = fromBase58String(i) | |
30 | 30 | ||
31 | 31 | @Callable(l) | |
32 | 32 | func initbal (m,f) = $Tuple2([g("MyBal", m), g(f, 0)], unit) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Callable(l) | |
37 | 37 | func byebye (n) = { | |
38 | 38 | let o = assetBalance(j, k) | |
39 | 39 | if ((n > o)) | |
40 | 40 | then throw("1") | |
41 | 41 | else { | |
42 | 42 | let p = a(invoke(j, "userDepositUSD", [toString(this)], nil)) | |
43 | 43 | let q = if ((o > p)) | |
44 | 44 | then p | |
45 | 45 | else o | |
46 | 46 | if ((q == 0)) | |
47 | 47 | then throw("2") | |
48 | 48 | else $Tuple2(nil, a(invoke(h, "withdraw", [i, q], nil))) | |
49 | 49 | } | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(l) | |
55 | 55 | func goodbye (n) = { | |
56 | 56 | let o = assetBalance(j, k) | |
57 | 57 | if ((n > o)) | |
58 | 58 | then throw("1") | |
59 | 59 | else { | |
60 | 60 | let p = valueOrElse(e("MyBal"), 0) | |
61 | 61 | let q = if ((o > p)) | |
62 | 62 | then p | |
63 | 63 | else o | |
64 | 64 | if ((q == 0)) | |
65 | 65 | then throw("2") | |
66 | 66 | else $Tuple2([g("MyBal", (p - q))], a(invoke(h, "withdraw", [i, q], nil))) | |
67 | 67 | } | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(l) | |
73 | 73 | func kissmegoodbye (r,f) = { | |
74 | 74 | let o = assetBalance(j, k) | |
75 | 75 | if ((r > o)) | |
76 | 76 | then throw("1") | |
77 | 77 | else { | |
78 | 78 | let s = valueOrElse(e(f), 0) | |
79 | 79 | if ((s == 1)) | |
80 | 80 | then throw("2") | |
81 | 81 | else $Tuple2([g(f, 1)], a(invoke(h, "withdraw", [i, r], nil))) | |
82 | 82 | } | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(l) | |
88 | + | func testkiss (r,f) = { | |
89 | + | let o = 1000000000 | |
90 | + | if ((r > o)) | |
91 | + | then throw("1") | |
92 | + | else { | |
93 | + | let s = valueOrElse(e(f), 0) | |
94 | + | if ((s == 1)) | |
95 | + | then throw("2") | |
96 | + | else $Tuple2([g(f, 1)], r) | |
97 | + | } | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | @Callable(l) | |
88 | 103 | func bb1 (n) = { | |
89 | 104 | let o = assetBalance(j, k) | |
90 | 105 | let p = a(invoke(j, "userDepositUSD", [toString(this)], nil)) | |
91 | 106 | let q = if ((o > p)) | |
92 | 107 | then p | |
93 | 108 | else o | |
94 | 109 | if ((1 > q)) | |
95 | 110 | then throw("1") | |
96 | 111 | else $Tuple2(nil, a(invoke(h, "withdraw", [i, q], nil))) | |
97 | 112 | } | |
98 | 113 | ||
99 | 114 |
github/deemru/w8io/169f3d6 25.00 ms ◑