tx · HXSZ3S9Yped4i87qkztRrZXsmCqpBmuwrXCGnKpKkAtj 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2021.09.20 22:10 [1711777] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "HXSZ3S9Yped4i87qkztRrZXsmCqpBmuwrXCGnKpKkAtj", "fee": 1400000, "feeAssetId": null, "timestamp": 1632165047136, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "32jn6C9Z1YXo5zByZ2ceVJRkywXbGpxCJ4KWMDutSKmTbeq3MikSNxjmXgvPKtLYrxxKjFUG4XjTMsgAuYwNc3JW" ], "script": "base64:AAIFAAAAAAAAABEIAhIAEgASAwoBCBIECgIIAQAAAAIAAAAACXVzZXJBc3NldAIAAAAsR3JmZ3BjemNjcm41QWJydUxjdFh3Qzk0MWRnd2lwQnk2SFpZRGFRWEhidWsAAAAACWRBcHBBc3NldAIAAAAsN2FwU0p4TG54REt1bmI3YUJHYXVnNXFmVFg4OGpwYzNSMjI0OXBidUpVMngAAAAEAAAAAmE4AQAAAARpbml0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAxM1BQSDd4N2lxb2JXNXppeWlSQ2ljMTlyUXFLcjZuUFlhSzFfYXNzZXRfYmFsYW5jZQAAAAAAAAAAAAUAAAADbmlsAAAAAmE4AQAAAARjYWxsAAAAAAQAAAACYTkJAARDAAAABwIAAAAGQXNzZXQxAgAAAA9Bc3NldCBmcm9tIGRBcHAAAAAAAAABhqAAAAAAAAAAAAIGBQAAAAR1bml0AAAAAAAAAAAABAAAAAJiMQkABDgAAAABBQAAAAJhOQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAEYm9vbAYJ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hdGNoMAIAAAADSW50BAAAAANpbnQFAAAAByRtYXRjaDAFAAAAA2ludAQAAAAHbm90aGluZwUAAAAHJG1hdGNoMAAAAAAAAAAAAAQAAAANbmV3VXNlckVhcm5lZAkAAGQAAAACBQAAAAp1c2VyRWFybmVkCQAAaAAAAAIFAAAABmFtb3VudAUAAAAOc2hhcmVUb2tlbkNvc3QEAAAADW5ld1Bvb2xBbW91bnQJAABlAAAAAgUAAAAKcG9vbEFtb3VudAUAAAAGYW1vdW50AwkAAGcAAAACBQAAAAp1c2VyQW1vdW50BQAAAAZhbW91bnQEAAAAEW5ld1VzZXJQb29sQW1vdW50CQAAZQAAAAIFAAAACnVzZXJBbW91bnQFAAAABmFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAkAAlkAAAABBQAAAAl1c2VyQXNzZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADXBvb2xBbW91bnRLZXkFAAAADW5ld1Bvb2xBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAEXVzZXJQb29sQW1vdW50S2V5BQAAABFuZXdVc2VyUG9vbEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARdXNlclBvb2xFYXJuZWRLZXkFAAAADW5ld1VzZXJFYXJuZWQFAAAAA25pbAkAAAIAAAABAgAAACZZb3UgaGF2ZSBub3Qgc3VjaCBiYWxhbmNlIGZvciB3aXRoZHJhdwAAAAEAAAACYjYBAAAAAmI3AAAAAAkAAfQAAAADCAUAAAACYjYAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJiNgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJiNgAAAA9zZW5kZXJQdWJsaWNLZXnfQbLe", "height": 1711777, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 95g7u3y36cuqUkc4qemS75aW64RbBPBuEUCDagkr7TiP Next: VN92H8FxCeL4t7P6B3pbQTfaQNAxUpsZ7Upk3QmsGpM Diff:
Old | New | Differences | |
---|---|---|---|
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | let v = { | |
71 | - | let o = getInteger( | |
71 | + | let o = getInteger(u) | |
72 | 72 | if ($isInstanceOf(o, "Int")) | |
73 | 73 | then { | |
74 | 74 | let p = o |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "Grfgpczccrn5AbruLctXwC941dgwipBy6HZYDaQXHbuk" | |
5 | 5 | ||
6 | 6 | let b = "7apSJxLnxDKunb7aBGaug5qfTX88jpc3R2249pbuJU2x" | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 0)] | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(c) | |
14 | 14 | func call () = { | |
15 | 15 | let d = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0) | |
16 | 16 | let e = calculateAssetId(d) | |
17 | 17 | [BooleanEntry("bool", true), d] | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | ||
22 | 22 | @Callable(f) | |
23 | 23 | func deposit (g) = { | |
24 | 24 | let h = f.payments[0].amount | |
25 | 25 | let i = f.payments[0].assetId | |
26 | 26 | let j = (g + "_asset_balance") | |
27 | 27 | let k = toString(f.caller) | |
28 | 28 | let l = (((g + "_") + k) + "_asset_balance") | |
29 | 29 | let m = getIntegerValue(this, j) | |
30 | 30 | let n = { | |
31 | 31 | let o = getInteger(l) | |
32 | 32 | if ($isInstanceOf(o, "Int")) | |
33 | 33 | then { | |
34 | 34 | let p = o | |
35 | 35 | p | |
36 | 36 | } | |
37 | 37 | else { | |
38 | 38 | let q = o | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | } | |
42 | 42 | let r = (m + h) | |
43 | 43 | let s = (n + h) | |
44 | 44 | [ScriptTransfer(f.caller, h, fromBase58String(b)), IntegerEntry(j, r), IntegerEntry(l, s)] | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(f) | |
50 | 50 | func withdraw (g,t) = { | |
51 | 51 | let h = f.payments[0].amount | |
52 | 52 | let i = f.payments[0].assetId | |
53 | 53 | let j = (g + "_asset_balance") | |
54 | 54 | let k = toString(f.caller) | |
55 | 55 | let l = (((g + "_") + k) + "_asset_balance") | |
56 | 56 | let u = (((g + "_") + k) + "_earned") | |
57 | 57 | let m = getIntegerValue(this, j) | |
58 | 58 | let n = { | |
59 | 59 | let o = getInteger(l) | |
60 | 60 | if ($isInstanceOf(o, "Int")) | |
61 | 61 | then { | |
62 | 62 | let p = o | |
63 | 63 | p | |
64 | 64 | } | |
65 | 65 | else { | |
66 | 66 | let q = o | |
67 | 67 | 0 | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | let v = { | |
71 | - | let o = getInteger( | |
71 | + | let o = getInteger(u) | |
72 | 72 | if ($isInstanceOf(o, "Int")) | |
73 | 73 | then { | |
74 | 74 | let p = o | |
75 | 75 | p | |
76 | 76 | } | |
77 | 77 | else { | |
78 | 78 | let q = o | |
79 | 79 | 0 | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | let w = (v + (h * t)) | |
83 | 83 | let r = (m - h) | |
84 | 84 | if ((n >= h)) | |
85 | 85 | then { | |
86 | 86 | let s = (n - h) | |
87 | 87 | [ScriptTransfer(f.caller, h, fromBase58String(a)), IntegerEntry(j, r), IntegerEntry(l, s), IntegerEntry(u, w)] | |
88 | 88 | } | |
89 | 89 | else throw("You have not such balance for withdraw") | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Verifier(x) | |
94 | 94 | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
95 | 95 |
github/deemru/w8io/03bedc9 23.65 ms ◑![]()