tx · 7G8jNV4EVMEziJZipFcUuvjjiZi7hNxSVxGP4uEnssWE 3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu: -0.01400000 Waves 2020.01.03 11:01 [837402] smart account 3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu > SELF 0.00000000 Waves
{ "type": 13, "id": "7G8jNV4EVMEziJZipFcUuvjjiZi7hNxSVxGP4uEnssWE", "fee": 1400000, "feeAssetId": null, "timestamp": 1578038558633, "version": 1, "sender": "3NBTGfiEtHiKvpV84qrVpaqycizY8hGAxpu", "senderPublicKey": "7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK", "proofs": [ "gWHLTscXCdgU2s2i3viViYmSwgJ5rrGqP8vthURUGQZKo6gmcAKBDUuafpJrGCSqF3M2XrCtRzkdR1cwWnhQFvM" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIBCBIECgIBCAAAAAYAAAAAEGRhcHBBY291bnRQdWJLZXkBAAAAIFxIRFJtzw8EQGNgJYi+FoqGy/ftVpr8Tfeuof0vU4NYAAAAAAZwYXI3SWQBAAAAIM5YQP2Y4rTFk3fjHMVSaCtBnCyxqxHVfGnKN+eS6UeMAAAAAAZ1c2RuSWQBAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3AAAAAAVidGNJZAEAAAAguec/qo8QJtuj3bookxh1fq0CogDYmuE6CdbFUTcLG40AAAAABmV1cm9JZAEAAAAgksOaihajKoQqnq8MtxuSVjR9ECuhi4KGdaumzXMlMJsAAAAAB3dhdmVzSWQBAAAABBOr2TMAAAACAAAAAWkBAAAAB2RlcG9zaXQAAAACAAAACmNvbXBlU3RhcnQAAAACaWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVy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ZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4BggVMXA=", "chainId": 84, "height": 837402, "spentComplexity": 0 } View: original | compacted Prev: HWPeNV9aLLxNv4F3a6RSpWJwr1uvXCjnwBez5Bu7EtPA Next: 6SMNt2SsSqw2VpZegNvXPrQUyaf8MUw5WAdEEFAF67tn Diff:
Old | New | Differences | |
---|---|---|---|
56 | 56 | } | |
57 | 57 | let p = (m - q) | |
58 | 58 | if ((lastBlock.timestamp > h)) | |
59 | - | then throw("Can't withdraw") | |
59 | + | then throw("Can't withdraw compe start") | |
60 | 60 | else if ((0 > q)) | |
61 | 61 | then throw("Can't withdraw negative amount") | |
62 | 62 | else if ((0 > p)) | |
78 | 78 | @Verifier(r) | |
79 | 79 | func s () = { | |
80 | 80 | let n = r | |
81 | - | if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
82 | - | then { | |
83 | - | let t = n | |
84 | - | true | |
85 | - | } | |
86 | - | else if ($isInstanceOf(n, "TransferTransaction")) | |
87 | - | then { | |
88 | - | let u = n | |
89 | - | sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
90 | - | } | |
91 | - | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
92 | - | then { | |
93 | - | let v = n | |
94 | - | sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) | |
95 | - | } | |
96 | - | else false | |
81 | + | true | |
97 | 82 | } | |
98 | 83 |
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 | 14 | let f = base58'WAVES' | |
15 | 15 | ||
16 | 16 | @Callable(g) | |
17 | 17 | func deposit (h,i) = { | |
18 | 18 | let j = extract(g.payment) | |
19 | 19 | let k = j.assetId | |
20 | 20 | let l = toBase58String(g.caller.bytes) | |
21 | 21 | let m = { | |
22 | 22 | let n = getInteger(this, l) | |
23 | 23 | if ($isInstanceOf(n, "Int")) | |
24 | 24 | then { | |
25 | 25 | let o = n | |
26 | 26 | o | |
27 | 27 | } | |
28 | 28 | else 0 | |
29 | 29 | } | |
30 | 30 | let p = (m + j.amount) | |
31 | 31 | WriteSet([DataEntry((i + l), p), DataEntry((i + l), h)]) | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Callable(g) | |
37 | 37 | func withdraw (q,i) = { | |
38 | 38 | let l = toBase58String(g.caller.bytes) | |
39 | 39 | let h = { | |
40 | 40 | let n = getInteger(this, ("compeStart_" + l)) | |
41 | 41 | if ($isInstanceOf(n, "Int")) | |
42 | 42 | then { | |
43 | 43 | let o = n | |
44 | 44 | o | |
45 | 45 | } | |
46 | 46 | else 0 | |
47 | 47 | } | |
48 | 48 | let m = { | |
49 | 49 | let n = getInteger(this, l) | |
50 | 50 | if ($isInstanceOf(n, "Int")) | |
51 | 51 | then { | |
52 | 52 | let o = n | |
53 | 53 | o | |
54 | 54 | } | |
55 | 55 | else 0 | |
56 | 56 | } | |
57 | 57 | let p = (m - q) | |
58 | 58 | if ((lastBlock.timestamp > h)) | |
59 | - | then throw("Can't withdraw") | |
59 | + | then throw("Can't withdraw compe start") | |
60 | 60 | else if ((0 > q)) | |
61 | 61 | then throw("Can't withdraw negative amount") | |
62 | 62 | else if ((0 > p)) | |
63 | 63 | then throw("Not enough balance") | |
64 | 64 | else if ((i == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm")) | |
65 | 65 | then ScriptResult(WriteSet([DataEntry((i + l), p)]), TransferSet([ScriptTransfer(g.caller, q, b)])) | |
66 | 66 | else if ((i == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")) | |
67 | 67 | then ScriptResult(WriteSet([DataEntry(("USD-N_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, c)])) | |
68 | 68 | else if ((i == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")) | |
69 | 69 | then ScriptResult(WriteSet([DataEntry(("BTC_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, d)])) | |
70 | 70 | else if ((i == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ")) | |
71 | 71 | then ScriptResult(WriteSet([DataEntry(("EURO_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, e)])) | |
72 | 72 | else if ((i == "WAVES")) | |
73 | 73 | then ScriptResult(WriteSet([DataEntry(("WAVES_" + l), p)]), TransferSet([ScriptTransfer(g.caller, q, f)])) | |
74 | 74 | else throw("Can't withdraw") | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Verifier(r) | |
79 | 79 | func s () = { | |
80 | 80 | let n = r | |
81 | - | if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
82 | - | then { | |
83 | - | let t = n | |
84 | - | true | |
85 | - | } | |
86 | - | else if ($isInstanceOf(n, "TransferTransaction")) | |
87 | - | then { | |
88 | - | let u = n | |
89 | - | sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
90 | - | } | |
91 | - | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
92 | - | then { | |
93 | - | let v = n | |
94 | - | sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) | |
95 | - | } | |
96 | - | else false | |
81 | + | true | |
97 | 82 | } | |
98 | 83 |
github/deemru/w8io/169f3d6 31.82 ms ◑