tx · HsUUp1ReSHsakkfUcTNA5kkzjLqJcirj3PAywnoztoYH 3MuQJ2by8GXusfNAEdX1jYW2WMQbjVzwxzX: -0.01000000 Waves 2023.09.27 14:45 [2773770] smart account 3MuQJ2by8GXusfNAEdX1jYW2WMQbjVzwxzX > SELF 0.00000000 Waves
{ "type": 13, "id": "HsUUp1ReSHsakkfUcTNA5kkzjLqJcirj3PAywnoztoYH", "fee": 1000000, "feeAssetId": null, "timestamp": 1695815185075, "version": 2, "chainId": 84, "sender": "3MuQJ2by8GXusfNAEdX1jYW2WMQbjVzwxzX", "senderPublicKey": "DCZ3si1pk7A23sVSwzZtghP1jZR2YyYEH2WaMxvELct9", "proofs": [ "5BRTx5R1vrxKjFsMX3v48fqdGwCyakokyb22yFnJbHVA38bvGWFzSJyvbJgJAKZkehD9R4k1aAQ4cqpVGiHsvfPJ" ], "script": "base64:BgIqCAISBAoCCAgSBAoCCAESBQoDAgECEgQKAgIBEgUKAwICAhIAEgQKAggYDwARa0ZhY3RvcnlQdWJsaWNLZXkCFCVzX19mYWN0b3J5UHVibGljS2V5ABFrU2VydmljZVB1YmxpY0tleQIUJXNfX3NlcnZpY2VQdWJsaWNLZXkAD2tPd25lclB1YmxpY0tleQISJXNfX293bmVyUHVibGljS2V5ABFrQ3JlYXRvclB1YmxpY0tleQIUJXNfX2NyZWF0b3JQdWJsaWNLZXkADWtCb3RQdWJsaWNLZXkCECVzX19ib3RQdWJsaWNLZXkACWtWZXJpZmllZAIMJXNfX3ZlcmlmaWVkAQh2ZXJpZmllZAAJAQt2YWx1ZU9yRWxzZQIJAJsIAgUEdGhpcwUJa1ZlcmlmaWVkBwAOZmFjdG9yeUFkZHJlc3MJAKcIAQkBEUBleHRyTmF0aXZlKDEwNTIpAgUEdGhpcwURa0ZhY3RvcnlQdWJsaWNLZXkADnNlcnZpY2VBZGRyZXNzCQCnCAEJARFAZXh0ck5hdGl2ZSgxMDUyKQIFDmZhY3RvcnlBZGRyZXNzBRFrU2VydmljZVB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AAIJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEBAVQEDGJvdFB1YmxpY0tleQkBEUBleHRyTmF0aXZlKDEwNTIpAgUOZmFjdG9yeUFkZHJlc3MFDWtCb3RQdWJsaWNLZXkEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACBU9yZGVyCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxib3RQdWJsaWNLZXkDCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24DCQEIdmVyaWZpZWQABwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQMJAQEhAQUHdGVzdG5ldAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXm2ZHf2", "height": 2773770, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AdfbHKt54m7jJkCh6ENyEiKLWa8SScd7MzWRjYxA5QsR Next: Eb2V6VxfsWYPxZ1bepS1zDAAqbQK8nXwiZecGZ1zoxB Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "%s__factoryPublicKey" | |
5 | 5 | ||
6 | 6 | let b = "%s__servicePublicKey" | |
7 | 7 | ||
8 | 8 | let c = "%s__ownerPublicKey" | |
9 | 9 | ||
10 | 10 | let d = "%s__creatorPublicKey" | |
11 | 11 | ||
12 | 12 | let e = "%s__botPublicKey" | |
13 | 13 | ||
14 | 14 | let f = "%s__verified" | |
15 | 15 | ||
16 | 16 | func g () = valueOrElse(getBoolean(this, f), false) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let h = addressFromPublicKey(getBinaryValue(this, a)) | |
20 | 20 | ||
21 | 21 | let i = addressFromPublicKey(getBinaryValue(h, b)) | |
22 | 22 | ||
23 | 23 | let j = addressFromPublicKey(getBinaryValue(this, c)) | |
24 | 24 | ||
25 | 25 | func k (l,m) = if ((l.caller == m)) | |
26 | 26 | then true | |
27 | 27 | else throw() | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func n (l) = k(l, this) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func o (l) = k(l, i) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func p (l) = k(l, j) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (l) = k(l, h) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(l) | |
43 | 43 | func stringEntry (r,s) = if (o(l)) | |
44 | 44 | then $Tuple2([StringEntry(r, s)], r) | |
45 | 45 | else $Tuple2(nil, unit) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(l) | |
50 | 50 | func integerEntry (r,s) = if (o(l)) | |
51 | 51 | then $Tuple2([IntegerEntry(r, s)], r) | |
52 | 52 | else $Tuple2(nil, unit) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | ||
56 | 56 | @Callable(l) | |
57 | 57 | func transferAsset (t,u,v) = if (o(l)) | |
58 | 58 | then $Tuple2([ScriptTransfer(Address(t), u, v)], u) | |
59 | 59 | else $Tuple2(nil, unit) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(l) | |
64 | 64 | func transferWaves (t,u) = if (o(l)) | |
65 | 65 | then $Tuple2([ScriptTransfer(Address(t), u, unit)], u) | |
66 | 66 | else $Tuple2(nil, unit) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | ||
70 | 70 | @Callable(l) | |
71 | 71 | func init (w,x,y) = { | |
72 | 72 | let z = n(l) | |
73 | 73 | if ((z == z)) | |
74 | 74 | then $Tuple2([BinaryEntry(a, w), BinaryEntry(c, x), BinaryEntry(d, y)], unit) | |
75 | 75 | else throw("Strict value is not equal to itself.") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(l) | |
81 | 81 | func approve () = { | |
82 | 82 | let z = q(l) | |
83 | 83 | if ((z == z)) | |
84 | 84 | then $Tuple2([BooleanEntry(f, true)], unit) | |
85 | 85 | else throw("Strict value is not equal to itself.") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(l) | |
91 | 91 | func call (A,B) = { | |
92 | 92 | let z = p(l) | |
93 | 93 | if ((z == z)) | |
94 | 94 | then { | |
95 | 95 | let C = reentrantInvoke(i, A, [B], l.payments) | |
96 | 96 | $Tuple2(nil, C) | |
97 | 97 | } | |
98 | 98 | else throw("Strict value is not equal to itself.") | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Verifier(D) | |
103 | 103 | func E () = { | |
104 | 104 | let F = (take(drop(this.bytes, 1), 1) == base58'2T') | |
105 | 105 | let G = getBinaryValue(h, e) | |
106 | 106 | let H = D | |
107 | 107 | if ($isInstanceOf(H, "Order")) | |
108 | 108 | then sigVerify(D.bodyBytes, D.proofs[0], G) | |
109 | 109 | else if ($isInstanceOf(H, "InvokeScriptTransaction")) | |
110 | 110 | then if (g()) | |
111 | 111 | then false | |
112 | 112 | else sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
113 | 113 | else if (!(F)) | |
114 | 114 | then false | |
115 | 115 | else sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
116 | 116 | } | |
117 | 117 |
github/deemru/w8io/026f985 40.64 ms ◑