tx · 6LJxxk9LVmZM637kDQsjgL9UbVmxwWaRtbYW1k4SSotp 3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW: -0.01400000 Waves 2020.01.04 03:04 [838393] smart account 3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW > SELF 0.00000000 Waves
{ "type": 13, "id": "6LJxxk9LVmZM637kDQsjgL9UbVmxwWaRtbYW1k4SSotp", "fee": 1400000, "feeAssetId": null, "timestamp": 1578096252662, "version": 1, "sender": "3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW", "senderPublicKey": "8zVjiVAuhkkAyQsSHHvjkNNoN8WDKJAEBV5nSpiyyYWr", "proofs": [ "31dcPdz3E7BDfA1apquNyEMXR3GtTTZzxR8peLEdMAmmHow1So8SWTMjctAqzrSxViwftkqZY21pZ86P7ECRFCcx" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIBCBIECgIBCAAAAAYAAAAAEGRhcHBBY291bnRQdWJLZXkBAAAAIFxIRFJtzw8EQGNgJYi+FoqGy/ftVpr8Tfeuof0vU4NYAAAAAAZwYXI3SWQBAAAAIM5YQP2Y4rTFk3fjHMVSaCtBnCyxqxHVfGnKN+eS6UeMAAAAAAZ1c2RuSWQBAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3AAAAAAVidGNJZAEAAAAguec/qo8QJtuj3bookxh1fq0CogDYmuE6CdbFUTcLG40AAAAABmV1cm9JZAEAAAAgksOaihajKoQqnq8MtxuSVjR9ECuhi4KGdaumzXMlMJsAAAAACGNvbXBlTnVtAgAAAAYxMTExMTEAAAACAAAAAWkBAAAAB2RlcG9zaXQAAAACAAAACmNvbXBlU3RhcnQAAAACaWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2Fs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entComplexity": 0 } View: original | compacted Prev: GjNKi1PG2RNBCNwvQnYG8hY5R65nXmd6im3r3Yda6LNx Next: 6DEjRXmCMd8DYiZqmQA4WsQAXF6756XS61FVBcgFXkGB Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ' | |
13 | 13 | ||
14 | - | @Callable(f) | |
15 | - | func deposit (g,h) = { | |
16 | - | let i = extract(f.payment) | |
17 | - | let j = i.assetId | |
18 | - | let k = toBase58String(f.caller.bytes) | |
19 | - | let l = { | |
20 | - | let m = getInteger(this, k) | |
21 | - | if ($isInstanceOf(m, "Int")) | |
14 | + | let f = "111111" | |
15 | + | ||
16 | + | @Callable(g) | |
17 | + | func deposit (h,i) = { | |
18 | + | let j = extract(g.payment) | |
19 | + | let k = j.assetId | |
20 | + | let l = toBase58String(g.caller.bytes) | |
21 | + | let m = { | |
22 | + | let n = getInteger(this, l) | |
23 | + | if ($isInstanceOf(n, "Int")) | |
22 | 24 | then { | |
23 | - | let | |
24 | - | | |
25 | + | let o = n | |
26 | + | o | |
25 | 27 | } | |
26 | 28 | else 0 | |
27 | 29 | } | |
28 | - | let | |
29 | - | WriteSet([DataEntry((( | |
30 | + | let p = (m + j.amount) | |
31 | + | WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p), DataEntry(((((i + "_compeStart_") + f) + "_") + l), h)]) | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | ||
34 | - | @Callable( | |
35 | - | func withdraw ( | |
36 | - | let | |
37 | - | let | |
38 | - | let | |
39 | - | if ($isInstanceOf( | |
36 | + | @Callable(g) | |
37 | + | func withdraw (q,i) = { | |
38 | + | let l = toBase58String(g.caller.bytes) | |
39 | + | let h = { | |
40 | + | let n = getInteger(this, ((((i + "_compeStart_") + f) + "_") + l)) | |
41 | + | if ($isInstanceOf(n, "Int")) | |
40 | 42 | then { | |
41 | - | let | |
42 | - | | |
43 | + | let o = n | |
44 | + | o | |
43 | 45 | } | |
44 | 46 | else 0 | |
45 | 47 | } | |
46 | - | let | |
47 | - | let | |
48 | - | if ($isInstanceOf( | |
48 | + | let m = { | |
49 | + | let n = getInteger(this, ((((i + "_") + f) + "_") + l)) | |
50 | + | if ($isInstanceOf(n, "Int")) | |
49 | 51 | then { | |
50 | - | let | |
51 | - | | |
52 | + | let o = n | |
53 | + | o | |
52 | 54 | } | |
53 | 55 | else 0 | |
54 | 56 | } | |
55 | - | let | |
56 | - | if ((lastBlock.timestamp > | |
57 | + | let p = (m - q) | |
58 | + | if ((lastBlock.timestamp > h)) | |
57 | 59 | then throw("Can't withdraw compe start") | |
58 | - | else if ((0 > | |
60 | + | else if ((0 > q)) | |
59 | 61 | then throw("Can't withdraw negative amount") | |
60 | - | else if ((0 > | |
62 | + | else if ((0 > p)) | |
61 | 63 | then throw("Not enough balance") | |
62 | - | else if (( | |
63 | - | then ScriptResult(WriteSet([DataEntry((( | |
64 | - | else if (( | |
65 | - | then ScriptResult(WriteSet([DataEntry((( | |
66 | - | else if (( | |
67 | - | then ScriptResult(WriteSet([DataEntry((( | |
68 | - | else if (( | |
69 | - | then ScriptResult(WriteSet([DataEntry((( | |
70 | - | else if (( | |
71 | - | then ScriptResult(WriteSet([DataEntry((( | |
64 | + | else if ((i == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm")) | |
65 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, b)])) | |
66 | + | else if ((i == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")) | |
67 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, c)])) | |
68 | + | else if ((i == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")) | |
69 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, d)])) | |
70 | + | else if ((i == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ")) | |
71 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, e)])) | |
72 | + | else if ((i == "WAVES")) | |
73 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, unit)])) | |
72 | 74 | else throw("Can't withdraw") | |
73 | 75 | } | |
74 | 76 | ||
75 | 77 | ||
76 | - | @Verifier( | |
77 | - | func | |
78 | - | let | |
79 | - | if ($isInstanceOf( | |
78 | + | @Verifier(r) | |
79 | + | func s () = { | |
80 | + | let n = r | |
81 | + | if ($isInstanceOf(n, "TransferTransaction")) | |
80 | 82 | then { | |
81 | - | let | |
82 | - | sigVerify( | |
83 | + | let t = n | |
84 | + | sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) | |
83 | 85 | } | |
84 | - | else if ($isInstanceOf( | |
86 | + | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
85 | 87 | then { | |
86 | - | let | |
87 | - | sigVerify( | |
88 | + | let u = n | |
89 | + | sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
88 | 90 | } | |
89 | 91 | else true | |
90 | 92 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK' | |
5 | 5 | ||
6 | 6 | let b = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm' | |
7 | 7 | ||
8 | 8 | let c = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' | |
9 | 9 | ||
10 | 10 | let d = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn' | |
11 | 11 | ||
12 | 12 | let e = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ' | |
13 | 13 | ||
14 | - | @Callable(f) | |
15 | - | func deposit (g,h) = { | |
16 | - | let i = extract(f.payment) | |
17 | - | let j = i.assetId | |
18 | - | let k = toBase58String(f.caller.bytes) | |
19 | - | let l = { | |
20 | - | let m = getInteger(this, k) | |
21 | - | if ($isInstanceOf(m, "Int")) | |
14 | + | let f = "111111" | |
15 | + | ||
16 | + | @Callable(g) | |
17 | + | func deposit (h,i) = { | |
18 | + | let j = extract(g.payment) | |
19 | + | let k = j.assetId | |
20 | + | let l = toBase58String(g.caller.bytes) | |
21 | + | let m = { | |
22 | + | let n = getInteger(this, l) | |
23 | + | if ($isInstanceOf(n, "Int")) | |
22 | 24 | then { | |
23 | - | let | |
24 | - | | |
25 | + | let o = n | |
26 | + | o | |
25 | 27 | } | |
26 | 28 | else 0 | |
27 | 29 | } | |
28 | - | let | |
29 | - | WriteSet([DataEntry((( | |
30 | + | let p = (m + j.amount) | |
31 | + | WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p), DataEntry(((((i + "_compeStart_") + f) + "_") + l), h)]) | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | ||
34 | - | @Callable( | |
35 | - | func withdraw ( | |
36 | - | let | |
37 | - | let | |
38 | - | let | |
39 | - | if ($isInstanceOf( | |
36 | + | @Callable(g) | |
37 | + | func withdraw (q,i) = { | |
38 | + | let l = toBase58String(g.caller.bytes) | |
39 | + | let h = { | |
40 | + | let n = getInteger(this, ((((i + "_compeStart_") + f) + "_") + l)) | |
41 | + | if ($isInstanceOf(n, "Int")) | |
40 | 42 | then { | |
41 | - | let | |
42 | - | | |
43 | + | let o = n | |
44 | + | o | |
43 | 45 | } | |
44 | 46 | else 0 | |
45 | 47 | } | |
46 | - | let | |
47 | - | let | |
48 | - | if ($isInstanceOf( | |
48 | + | let m = { | |
49 | + | let n = getInteger(this, ((((i + "_") + f) + "_") + l)) | |
50 | + | if ($isInstanceOf(n, "Int")) | |
49 | 51 | then { | |
50 | - | let | |
51 | - | | |
52 | + | let o = n | |
53 | + | o | |
52 | 54 | } | |
53 | 55 | else 0 | |
54 | 56 | } | |
55 | - | let | |
56 | - | if ((lastBlock.timestamp > | |
57 | + | let p = (m - q) | |
58 | + | if ((lastBlock.timestamp > h)) | |
57 | 59 | then throw("Can't withdraw compe start") | |
58 | - | else if ((0 > | |
60 | + | else if ((0 > q)) | |
59 | 61 | then throw("Can't withdraw negative amount") | |
60 | - | else if ((0 > | |
62 | + | else if ((0 > p)) | |
61 | 63 | then throw("Not enough balance") | |
62 | - | else if (( | |
63 | - | then ScriptResult(WriteSet([DataEntry((( | |
64 | - | else if (( | |
65 | - | then ScriptResult(WriteSet([DataEntry((( | |
66 | - | else if (( | |
67 | - | then ScriptResult(WriteSet([DataEntry((( | |
68 | - | else if (( | |
69 | - | then ScriptResult(WriteSet([DataEntry((( | |
70 | - | else if (( | |
71 | - | then ScriptResult(WriteSet([DataEntry((( | |
64 | + | else if ((i == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm")) | |
65 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, b)])) | |
66 | + | else if ((i == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")) | |
67 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, c)])) | |
68 | + | else if ((i == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")) | |
69 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, d)])) | |
70 | + | else if ((i == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ")) | |
71 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, e)])) | |
72 | + | else if ((i == "WAVES")) | |
73 | + | then ScriptResult(WriteSet([DataEntry(((((i + "_") + f) + "_") + l), p)]), TransferSet([ScriptTransfer(g.caller, q, unit)])) | |
72 | 74 | else throw("Can't withdraw") | |
73 | 75 | } | |
74 | 76 | ||
75 | 77 | ||
76 | - | @Verifier( | |
77 | - | func | |
78 | - | let | |
79 | - | if ($isInstanceOf( | |
78 | + | @Verifier(r) | |
79 | + | func s () = { | |
80 | + | let n = r | |
81 | + | if ($isInstanceOf(n, "TransferTransaction")) | |
80 | 82 | then { | |
81 | - | let | |
82 | - | sigVerify( | |
83 | + | let t = n | |
84 | + | sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) | |
83 | 85 | } | |
84 | - | else if ($isInstanceOf( | |
86 | + | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
85 | 87 | then { | |
86 | - | let | |
87 | - | sigVerify( | |
88 | + | let u = n | |
89 | + | sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
88 | 90 | } | |
89 | 91 | else true | |
90 | 92 | } | |
91 | 93 |
github/deemru/w8io/169f3d6 40.69 ms ◑