tx · 8m927wJu4N4cspP1WRPPbNLcysEThnfzeQRkWfTcnTrV 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib: -0.01400000 Waves 2022.06.02 11:51 [2078504] smart account 3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib > SELF 0.00000000 Waves
{ "type": 13, "id": "8m927wJu4N4cspP1WRPPbNLcysEThnfzeQRkWfTcnTrV", "fee": 1400000, "feeAssetId": null, "timestamp": 1654159998464, "version": 2, "chainId": 84, "sender": "3NBwZbvD45CscLGF78qTaDRBZ7mDBHt3Yib", "senderPublicKey": "3q3N8Kv49DbzNHyTB4A87UYz2DdquXCgP3GNCcD9Zj66", "proofs": [ "4hq8BVvNQXkgEmkZUrScDeb9R8yXm54gcxxpFacEySCh2wpA4M3rXEE6zZhvZgkBHfv5ncQqS5oCdyPmzf6MML97" ], "script": "base64:AAIFAAAAAAAAACYIAhIFCgMICAgSBAoCCAgSBAoCCAgSBAoCCAgSBAoCBAgSAwoBCAAAABwAAAAAC0NPTkZfSU5JVF9LAgAAAAtjb25maWdfaW5pdAAAAAALQ09ORl9BTUlOX0sCAAAADGNvbmZpZ19hZG1pbgAAAAANQ09ORl9PUkFDTEVfSwIAAAANY29uZmlnX29yYWNsZQAAAAATQ09ORl9BUlRXT1JLX0RBUFBfSwIAAAATY29uZmlnX2FydHdvcmtfZGFwcAAAAAAOZGFwcFJ1bm5pbmdLZXkCAAAAFGNvbmZfZGFwcF9pc19ydW5uaW5nAAAAABFtYWludGVuYW5jZU1TR0tleQIAAAAUY29uZl9tYWludGVuYW5jZV9tc2cAAAAAC2RhcHBSdW5uaW5nCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAADmRhcHBSdW5uaW5nS2V5BgAAAAAObWFpbnRlbmFuY2VNU0cJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAAAAAA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IAAAABAgAAAA5ORlQgbm90IGxvY2tlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAMa2V5TkZUc3RhdHVzAAAAAQUAAAAFbmZ0SWQFAAAAD3N0YXR1c19VTkxPQ0tFRAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAJcmVjaXBpZW50AAAAAAAAAAABCQACWQAAAAEFAAAABW5mdElkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAABaQEAAAAKYXBwUnVubmluZwAAAAIAAAAGaXNMaXZlAAAAB21lc3NhZ2UDCQEAAAABIQAAAAEFAAAABmlzSW5pdAkAAAIAAAABAgAAAA5kQXBwIG5vdCByZWFkeQMJAQAAAAlvd25lck9ubHkAAAABBQAAAAFpCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAA5kYXBwUnVubmluZ0tleQUAAAAGaXNMaXZlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEW1haW50ZW5hbmNlTVNHS2V5BQAAAAdtZXNzYWdlBQAAAANuaWwJAAACAAAAAQIAAAAiWW91IGFyZSBub3QgYWxsb3dlZCB0byBjaGFuZ2UgdGhpcwAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkDCQEAAAAJb3duZXJPbmx5AAAAAQUAAAABaQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAOtiQfY=", "height": 2078504, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4vGT4SQzjoFjntjjMx4SFbSpTAV6C1RqXH8ePtJ1BYG6 Next: HEUwHLTziR9EB36o8tGDXzBumjfduNFDBWdEFVCeBxBQ Diff:
Old | New | Differences | |
---|---|---|---|
83 | 83 | let L = toString(addressFromPublicKey(E.callerPublicKey)) | |
84 | 84 | let C = toBase58String(E.transactionId) | |
85 | 85 | let M = if (J) | |
86 | - | then [v, toString(this)] | |
86 | + | then [toString(v), toString(this)] | |
87 | 87 | else [toString(this)] | |
88 | 88 | if (containsElement(M, L)) | |
89 | 89 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "config_init" | |
5 | 5 | ||
6 | 6 | let b = "config_admin" | |
7 | 7 | ||
8 | 8 | let c = "config_oracle" | |
9 | 9 | ||
10 | 10 | let d = "config_artwork_dapp" | |
11 | 11 | ||
12 | 12 | let e = "conf_dapp_is_running" | |
13 | 13 | ||
14 | 14 | let f = "conf_maintenance_msg" | |
15 | 15 | ||
16 | 16 | let g = valueOrElse(getBoolean(this, e), true) | |
17 | 17 | ||
18 | 18 | let h = valueOrElse(getString(this, f), "") | |
19 | 19 | ||
20 | 20 | let i = "LOCKED" | |
21 | 21 | ||
22 | 22 | let j = "UNLOCKED" | |
23 | 23 | ||
24 | 24 | let k = "PENDING" | |
25 | 25 | ||
26 | 26 | let l = "CLOSED" | |
27 | 27 | ||
28 | 28 | let m = ["ETH", "POLYGON"] | |
29 | 29 | ||
30 | 30 | func n (o) = (("nft_" + o) + "_status") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (o,q) = ((("transfer_" + o) + "_") + q) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func r (s) = valueOrElse(getString(this, s), "") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func t (s) = valueOrElse(getInteger(this, s), 0) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func u (s) = valueOrElse(getBoolean(this, s), false) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let v = value(addressFromString(r(b))) | |
46 | 46 | ||
47 | 47 | let w = value(addressFromString(r(d))) | |
48 | 48 | ||
49 | 49 | let x = value(addressFromString(r(c))) | |
50 | 50 | ||
51 | 51 | func y (s) = valueOrErrorMessage(getInteger(x, s), "Integer undefine or 0 in oracle") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func z (A) = if (if (if ((A.quantity == 1)) | |
55 | 55 | then (A.decimals == 0) | |
56 | 56 | else false) | |
57 | 57 | then (A.reissuable == false) | |
58 | 58 | else false) | |
59 | 59 | then (A.issuer == w) | |
60 | 60 | else false | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func B (C) = { | |
64 | 64 | let A = value(assetInfo(C)) | |
65 | 65 | z(A) | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D (E) = if ((size(E.payments) == 0)) | |
70 | 70 | then throw("No payment attached") | |
71 | 71 | else { | |
72 | 72 | let F = value(E.payments[0]) | |
73 | 73 | let G = value(F.amount) | |
74 | 74 | let H = value(E.payments[1]) | |
75 | 75 | let I = value(H.amount) | |
76 | 76 | $Tuple4(F, G, H, I) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | let J = valueOrElse(u(a), false) | |
81 | 81 | ||
82 | 82 | func K (E) = { | |
83 | 83 | let L = toString(addressFromPublicKey(E.callerPublicKey)) | |
84 | 84 | let C = toBase58String(E.transactionId) | |
85 | 85 | let M = if (J) | |
86 | - | then [v, toString(this)] | |
86 | + | then [toString(v), toString(this)] | |
87 | 87 | else [toString(this)] | |
88 | 88 | if (containsElement(M, L)) | |
89 | 89 | then true | |
90 | 90 | else false | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func N (E) = if (!(g)) | |
95 | 95 | then throw(h) | |
96 | 96 | else $Tuple3(toBase58String(E.transactionId), toBase58String(E.caller.bytes), lastBlock.timestamp) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(E) | |
100 | 100 | func init (O,x,w) = if (K(E)) | |
101 | 101 | then [StringEntry(b, O), StringEntry(c, x), StringEntry(d, w), BooleanEntry(a, true)] | |
102 | 102 | else throw("Not allowed") | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(E) | |
107 | 107 | func lock (P,Q) = if (!(J)) | |
108 | 108 | then throw("dApp not ready") | |
109 | 109 | else if (!(containsElement(m, Q))) | |
110 | 110 | then throw("Network not supported") | |
111 | 111 | else { | |
112 | 112 | let R = N(E) | |
113 | 113 | let C = R._1 | |
114 | 114 | let L = R._2 | |
115 | 115 | let S = R._3 | |
116 | 116 | let T = D(E) | |
117 | 117 | let F = T._1 | |
118 | 118 | let G = T._2 | |
119 | 119 | let H = T._3 | |
120 | 120 | let I = T._4 | |
121 | 121 | if ((G != 1)) | |
122 | 122 | then throw("No NFT attached") | |
123 | 123 | else { | |
124 | 124 | let o = if (if (isDefined(F.assetId)) | |
125 | 125 | then B(value(F.assetId)) | |
126 | 126 | else false) | |
127 | 127 | then toBase58String(value(F.assetId)) | |
128 | 128 | else throw("Only SIGN Art NFT accepted.") | |
129 | 129 | let U = r(n(o)) | |
130 | 130 | if ((U == i)) | |
131 | 131 | then throw("NFT already locked") | |
132 | 132 | else [StringEntry(n(o), i), StringEntry(((p(o, C) + "_") + k), ((((((((P + "_") + Q) + "_") + L) + "_") + C) + "_") + toString(S)))] | |
133 | 133 | } | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(E) | |
139 | 139 | func processedLock (o,V) = if (!(J)) | |
140 | 140 | then throw("dApp not ready") | |
141 | 141 | else if (K(E)) | |
142 | 142 | then { | |
143 | 143 | let U = r(n(o)) | |
144 | 144 | if ((U != i)) | |
145 | 145 | then throw("NFT not locked") | |
146 | 146 | else { | |
147 | 147 | let W = r(p(o, V)) | |
148 | 148 | let X = ((p(o, V) + "_") + l) | |
149 | 149 | [DeleteEntry(((p(o, V) + "_") + k)), StringEntry(X, W)] | |
150 | 150 | } | |
151 | 151 | } | |
152 | 152 | else throw("Not allowed") | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Callable(E) | |
157 | 157 | func unlock (P,o) = if (!(J)) | |
158 | 158 | then throw("dApp not ready") | |
159 | 159 | else if (K(E)) | |
160 | 160 | then { | |
161 | 161 | let U = r(n(o)) | |
162 | 162 | if ((U != i)) | |
163 | 163 | then throw("NFT not locked") | |
164 | 164 | else [StringEntry(n(o), j), ScriptTransfer(Address(fromBase58String(P)), 1, fromBase58String(o))] | |
165 | 165 | } | |
166 | 166 | else throw("Not allowed") | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(E) | |
171 | 171 | func appRunning (Y,Z) = if (!(J)) | |
172 | 172 | then throw("dApp not ready") | |
173 | 173 | else if (K(E)) | |
174 | 174 | then [BooleanEntry(e, Y), StringEntry(f, Z)] | |
175 | 175 | else throw("You are not allowed to change this") | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(E) | |
180 | 180 | func deleteEntry (aa) = if (K(E)) | |
181 | 181 | then [DeleteEntry(aa)] | |
182 | 182 | else throw("no") | |
183 | 183 | ||
184 | 184 |
github/deemru/w8io/026f985 30.94 ms ◑