tx · 7FrHgLxpqd4fimnNfUSj1Nrzs9yevachoMkZNBdNoJpT

3NAbS1oNnFUf1vKrdnYn7EEV9yL4RWzGtQ3:  -0.01400000 Waves

2021.10.12 07:36 [1742590] smart account 3NAbS1oNnFUf1vKrdnYn7EEV9yL4RWzGtQ3 > SELF 0.00000000 Waves

{ "type": 13, "id": "7FrHgLxpqd4fimnNfUSj1Nrzs9yevachoMkZNBdNoJpT", "fee": 1400000, "feeAssetId": null, "timestamp": 1634013449900, "version": 2, "chainId": 84, "sender": "3NAbS1oNnFUf1vKrdnYn7EEV9yL4RWzGtQ3", "senderPublicKey": "7d9xNw1GKHw9xCXYh4dfDxKfX7o7gQsoUD7b8y73ENNc", "proofs": [ "7P1AZAfovbsZFivwGiEKbf3dFFWtDHJXv4TgpXxssAkHLUzMYnxZoiKyazrF8AiDQrhxjC4n4ArCWijp7A9Vihv" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAAA0AAAAACGZlZUFkbWluAgAAACMzTXZ1alVaVHRvQU5SenJLWUt6eDk5VnRiOVRVaDZWUENEbQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIMg6uHZ2RjtT9QDpkPnXfMGNNPdunDErmpk5E3/vyxV1AAAAABRhY2NlcHRlZFRva2VuRGVjaW1hbAAAAAAAAAAnEAAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAALc2lnbkRlY2ltYWwAAAAAAAX14QAAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenVLc0MAAAAACHN3b3BEYXBwCQEAAAA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AgIAAAAIY3JlZGl0c18JAAJYAAAAAQUAAAANYWNjZXB0ZWRUb2tlbgkAAGUAAAACBQAAAA9kYXBwU0lHTkNyZWRpdHMAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50CAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAACXNpZ25BZG1pbgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAJc17JU=", "height": 1742590, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm"
5+
6+let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
7+
8+let c = base58'EUcUPrZBMuVVhSsNjbhQdR1hbknRSDqSqGgbsvhFYXwA'
9+
10+let d = 10000
11+
12+let e = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
13+
14+let f = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
15+
16+let g = 100000000
17+
18+let h = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
19+
20+let i = value(addressFromString("3N22SvtBwfGc1BwErX5YQx3WzacDicfMpLr"))
21+
22+let j = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
23+
24+func k (l) = valueOrElse(getInteger(this, l), 0)
25+
26+
27+func m (n,o) = {
28+ let p = getString(this, (n + o))
29+ if ($isInstanceOf(p, "String"))
30+ then {
31+ let q = p
32+ q
33+ }
34+ else "NONE"
35+ }
36+
37+
38+func r (o) = {
39+ let p = getString(this, o)
40+ if ($isInstanceOf(p, "String"))
41+ then {
42+ let q = p
43+ q
44+ }
45+ else "NONE"
46+ }
47+
48+
49+@Callable(s)
50+func setFee (t) = {
51+ let u = toBase58String(s.caller.bytes)
52+ if ((u == a))
53+ then [IntegerEntry(("certification_fee_" + toBase58String(c)), t)]
54+ else throw("You are not allowed to change fee")
55+ }
56+
57+
58+
59+@Callable(s)
60+func refillCredits () = {
61+ let u = toBase58String(s.caller.bytes)
62+ let v = value(s.payments[0])
63+ let w = value(v.amount)
64+ let x = if (isDefined(v.assetId))
65+ then value(v.assetId)
66+ else throw("Accept SIGN token only")
67+ if ((f != x))
68+ then throw("Accept SIGN token only")
69+ else {
70+ let y = getIntegerValue(i, "A_asset_balance")
71+ let z = getIntegerValue(i, "B_asset_balance")
72+ let A = (y / (z * 100))
73+ let B = (A / 2)
74+ let C = ((w / g) / B)
75+ let D = ((w / g) - (C * B))
76+ let E = k(("credits_" + toBase58String(c)))
77+ let F = (C + E)
78+ if ((0 >= C))
79+ then throw("Not enough for at least 1 credit")
80+ else [IntegerEntry(("credits_" + toBase58String(c)), F), ScriptTransfer(addressFromStringValue(j), (w - (D * g)), v.assetId), ScriptTransfer(addressFromStringValue(u), (D * g), v.assetId)]
81+ }
82+ }
83+
84+
85+
86+@Callable(G)
87+func fileCertification (H,I,o,J,K) = {
88+ let L = value(G.transactionId)
89+ let M = m(H, o)
90+ let N = r(o)
91+ let u = toBase58String(G.caller.bytes)
92+ if ((M != "NONE"))
93+ then throw("This entry already exist")
94+ else if ((N != "NONE"))
95+ then throw("This uuid already exist")
96+ else if ((size(o) != 36))
97+ then throw("Uuid should be 36 characters.")
98+ else if ((size(H) != 64))
99+ then throw("Hash should be 64 characters.")
100+ else if ((size(I) > 100))
101+ then throw("Title is too long, 100 characters max.")
102+ else if (if (if (contains(H, "\""))
103+ then true
104+ else contains(I, "\""))
105+ then true
106+ else contains(J, "\""))
107+ then throw("No \" allowed")
108+ else {
109+ let O = (((((((("{\"hash\":\"" + H) + "\",\"timestamp\":") + toString(lastBlock.timestamp)) + ",\"title\":\"") + I) + "\",\"ipfs\":\"") + J) + "\"}")
110+ let v = value(G.payments[0])
111+ let w = value(v.amount)
112+ let x = if (isDefined(v.assetId))
113+ then value(v.assetId)
114+ else throw("Waves is not accepted as payment")
115+ let P = getIntegerValue(this, ("certification_fee_" + toBase58String(value(x))))
116+ let Q = k(("credits_" + toBase58String(c)))
117+ if ((0 >= Q))
118+ then throw("Not enough credit on the dapp, please refill")
119+ else if ((c != x))
120+ then throw("This token is not accepted at the moment")
121+ else if ((w != P))
122+ then throw("The price is wrong")
123+ else [StringEntry(o, toBase58String(L)), StringEntry((H + o), toBase58String(L)), StringEntry((I + o), toBase58String(L)), StringEntry(((("data_fc_" + toBase58String(L)) + "_") + u), O), IntegerEntry(("credits_" + toBase58String(c)), (Q - 1)), ScriptTransfer(addressFromStringValue(b), w, v.assetId)]
124+ }
125+ }
126+
127+
128+
129+@Callable(G)
130+func revokeCertification (R,K) = {
131+ let L = value(G.transactionId)
132+ let u = toBase58String(G.caller.bytes)
133+ let M = {
134+ let p = getString(this, ((("data_fc_" + R) + "_") + u))
135+ if ($isInstanceOf(p, "String"))
136+ then {
137+ let q = p
138+ q
139+ }
140+ else "NONE"
141+ }
142+ let S = {
143+ let p = getString(this, ("STATUS_FC_" + R))
144+ if ($isInstanceOf(p, "String"))
145+ then {
146+ let q = p
147+ q
148+ }
149+ else "NONE"
150+ }
151+ let T = (((dropRight(M, 1) + ",\"status\":\"REVOKED_") + toBase58String(L)) + "\"}")
152+ if ((S != "NONE"))
153+ then throw("This certification have already been revoked.")
154+ else if ((M == "NONE"))
155+ then throw("You cannot change the status of this certification.")
156+ else {
157+ let v = value(G.payments[0])
158+ let w = value(v.amount)
159+ let x = if (isDefined(v.assetId))
160+ then value(v.assetId)
161+ else throw("Waves is not accepted as payment")
162+ let P = getIntegerValue(this, ("certification_fee_" + toBase58String(value(x))))
163+ let Q = getIntegerValue(this, ("credits_" + toBase58String(c)))
164+ if ((0 >= Q))
165+ then throw("Not enough credit on the dapp, please refill")
166+ else if ((c != x))
167+ then throw("This token is not accepted at the moment")
168+ else if ((w != P))
169+ then throw("The price is wrong")
170+ else [StringEntry(("STATUS_FC_" + R), ("REVOKED_" + toBase58String(L))), StringEntry(((("data_fc_" + R) + "_") + u), T), IntegerEntry(("credits_" + toBase58String(c)), (Q - 1)), ScriptTransfer(addressFromStringValue(b), w, v.assetId)]
171+ }
172+ }
173+
174+
175+
176+@Callable(s)
177+func deleteEntry (U) = {
178+ let V = toString(addressFromPublicKey(s.callerPublicKey))
179+ if ((V == e))
180+ then [DeleteEntry(U)]
181+ else throw("no")
182+ }
183+
184+

github/deemru/w8io/169f3d6 
47.70 ms