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