tx · 2WWAvn3YXGpRKjNtUerDTfDE5rgSqfaDhvim4R1kytqY 3MvuveAR1Z4LmsKiNvjDKDNdUwhRY1peZcX: -0.01400000 Waves 2020.05.23 02:24 [1010145] smart account 3MvuveAR1Z4LmsKiNvjDKDNdUwhRY1peZcX > SELF 0.00000000 Waves
{ "type": 13, "id": "2WWAvn3YXGpRKjNtUerDTfDE5rgSqfaDhvim4R1kytqY", "fee": 1400000, "feeAssetId": null, "timestamp": 1590189844016, "version": 1, "sender": "3MvuveAR1Z4LmsKiNvjDKDNdUwhRY1peZcX", "senderPublicKey": "ATKvASNMrYVF14RZZmQE1XB1SEL2JSn7EVZMr9XcG4ho", "proofs": [ "4rAqP2UjTNYCfGTycc6Qiw7jZQy95DC7poT1vvx2j9aUpK7gerX5eSefdQFHZdLZgxfMAkTJtvYNEK8D1KatSFSj" ], "script": "base64:AAIDAAAAAAAAABEIARIHCgUICAgICBIECgIICAAAAAYAAAAABE5PTkUCAAAABG5vbmUAAAAACWFkbVB1YktleQEAAAAgjHesJPp5xIuoKzJYyBWRN6te3+eZKpca/z07LlUeq3IBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAAA3N0cgEAAAANZ2V0U2VjdXJlSGFzaAAAAAEAAAADa2V5CQACWAAAAAEJAAH1AAAAAQkAAfYAAAABCQABmwAAAAEFAAAAA2tleQEAAAALZ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prev: EbUncTbqSj4FkzKbEmkUh6WGVPgoFEykxdwCM2VEZEf2 Next: 31X97VH8cQuaeWheH8NXKBYNZLaS2E6HVizTHWvTJhk1 Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "none" | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'ATKvASNMrYVF14RZZmQE1XB1SEL2JSn7EVZMr9XcG4ho' | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "none" | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'ATKvASNMrYVF14RZZmQE1XB1SEL2JSn7EVZMr9XcG4ho' | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = { | |
10 | 10 | let f = getInteger(this, d) | |
11 | 11 | if ($isInstanceOf(f, "Int")) | |
12 | 12 | then { | |
13 | 13 | let g = f | |
14 | 14 | g | |
15 | 15 | } | |
16 | 16 | else 0 | |
17 | 17 | } | |
18 | 18 | e | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func h (d) = { | |
23 | 23 | let i = { | |
24 | 24 | let f = getString(this, d) | |
25 | 25 | if ($isInstanceOf(f, "String")) | |
26 | 26 | then { | |
27 | 27 | let g = f | |
28 | 28 | g | |
29 | 29 | } | |
30 | 30 | else a | |
31 | 31 | } | |
32 | 32 | i | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func j (d) = toBase58String(keccak256(blake2b256(toBytes(d)))) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func k (l,m) = { | |
40 | 40 | let n = extract(l) | |
41 | 41 | if ((isDefined(n) == false)) | |
42 | 42 | then throw("You need pay at least 2 waves for this operation") | |
43 | 43 | else if (if ((isDefined(extract(n.assetId)) == true)) | |
44 | 44 | then true | |
45 | 45 | else ((2000000 * (m + 1)) >= n.amount)) | |
46 | 46 | then throw("Need at least 2 Waves for auth change password") | |
47 | 47 | else TransferSet([ScriptTransfer(addressFromStringValue("3MpBUJbYZVA8iwoesCYaSytA82dVPyzVpmW"), 15000000, n.assetId)]) | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(o) | |
52 | 52 | func addOp (p,q,r,s,t) = { | |
53 | 53 | let u = toBase58String(o.callerPublicKey) | |
54 | 54 | let v = j(p) | |
55 | 55 | let w = j(q) | |
56 | 56 | if ((u != toBase58String(b))) | |
57 | 57 | then throw("Not auth to add operator") | |
58 | 58 | else if ((h(v) != a)) | |
59 | 59 | then throw("This operator already added") | |
60 | 60 | else if ((addressFromPublicKey(o.callerPublicKey) != this)) | |
61 | 61 | then k(o.payment, 5) | |
62 | 62 | else if ((sigVerify(toBytes((p + q)), fromBase58String(s), fromBase58String(u)) == false)) | |
63 | 63 | then throw("Sign not verified") | |
64 | 64 | else WriteSet([DataEntry(v, w), DataEntry((v + "_opKey"), r), DataEntry((v + "_opId"), toBase58String(o.transactionId)), DataEntry((v + "_opLevel"), t), DataEntry((v + "_opAuth"), ("Allow,0," + toString(lastBlock.height)))]) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(o) | |
70 | 70 | func resetOp (p,x) = { | |
71 | 71 | let u = toBase58String(o.callerPublicKey) | |
72 | 72 | let n = extract(o.payment) | |
73 | 73 | let v = j(p) | |
74 | 74 | if ((h(v) == a)) | |
75 | 75 | then throw("This operator does not exist") | |
76 | 76 | else { | |
77 | 77 | let y = split(h((v + "_opAuth")), ",") | |
78 | 78 | if (((h(v) + "_opKey") != u)) | |
79 | 79 | then k(extract(o.payment), parseIntValue(y[1])) | |
80 | 80 | else if ((parseIntValue(y[2]) >= height)) | |
81 | 81 | then throw((("There is already a request delivered to your email, wait " + toString((parseIntValue(y[2]) - height))) + " minutes")) | |
82 | 82 | else if (if (if ((y[0] == "Allow")) | |
83 | 83 | then true | |
84 | 84 | else (y[0] != "Recovery")) | |
85 | 85 | then if ((y[0] != "Allow")) | |
86 | 86 | then true | |
87 | 87 | else (y[0] == "Recovery") | |
88 | 88 | else false) | |
89 | 89 | then throw("Request not allowed") | |
90 | 90 | else if ((y[0] == "Recovery")) | |
91 | 91 | then { | |
92 | 92 | let z = parseIntValue(y[1]) | |
93 | 93 | WriteSet([DataEntry((v + "_opAuth"), ((("Recovery," + toString((z + 1))) + ",") + toString((lastBlock.height + (z * 60)))))]) | |
94 | 94 | } | |
95 | 95 | else WriteSet([DataEntry(v, x), DataEntry((v + "_opAuth"), ("Recovery,1," + toString((lastBlock.height + 60))))]) | |
96 | 96 | } | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 |
github/deemru/w8io/026f985 26.40 ms ◑