tx · EqFyfdU5BAvkegBNvh6CDaW7fEbadczjZoWT86PSbvbe

3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h:  -0.01400000 Waves

2021.10.07 15:18 [1735803] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves

{ "type": 13, "id": "EqFyfdU5BAvkegBNvh6CDaW7fEbadczjZoWT86PSbvbe", "fee": 1400000, "feeAssetId": null, "timestamp": 1633609147250, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "3odUvcHADikPrARAiMWfpgTocGPt3yV6QHxPTQ24srMrNmgtmNKPigN19Do32fLeF9HESMtAEJWEnd6D7zo8Q7xr" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAAA0AAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNNdnVqVVpUdG9BTlJ6cktZS3p4OTlWdGI5VFVoNlZQQ0RtAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAACHN3b3BEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMjJTdnRCd2ZHYzFCd0VyWDVZUXgzV3phY0RpY2ZNcExyAAAAAAlzaWduVG9rZW4BAAAAIOilarzKd0LycGEyNUpPR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AAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAACGNyZWRpdHNfCQACWAAAAAEFAAAADWFjY2VwdGVkVG9rZW4JAABlAAAAAgUAAAAPZGFwcFNJR05DcmVkaXRzAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABGJhbmsFAAAABmFtb3VudAgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAlzaWduQWRtaW4JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAABYf6Wa", "height": 1735803, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4NhUFScTcSx5xSxNWpRzN1jTzchBzMSeJBTERxai415b Next: none Diff:
OldNewDifferences
1111
1212 let e = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC'
1313
14-let f = 100000000
14+let f = value(addressFromString("3N22SvtBwfGc1BwErX5YQx3WzacDicfMpLr"))
1515
16-let g = value(addressFromString("3N22SvtBwfGc1BwErX5YQx3WzacDicfMpLr"))
16+let g = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1717
18-let h = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
18+let h = 100000000
1919
2020 let i = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
2121
6464 let x = if (isDefined(v.assetId))
6565 then value(v.assetId)
6666 else throw("Accept SIGN token only")
67- if ((h != x))
67+ if ((g != x))
6868 then throw("Accept SIGN token only")
6969 else {
70- let y = getIntegerValue(g, "A_asset_balance")
71- let z = getIntegerValue(g, "B_asset_balance")
70+ let y = getIntegerValue(f, "A_asset_balance")
71+ let z = getIntegerValue(f, "B_asset_balance")
7272 let A = (y / (z * 100))
7373 let B = (A / 2)
74- let C = ((w / f) / B)
75- let D = ((w / f) - (C * B))
74+ let C = ((w / h) / B)
75+ let D = ((w / h) - (C * B))
7676 let E = k(("credits_" + toBase58String(e)))
7777 let F = (C + E)
7878 if ((0 >= C))
7979 then throw("Not enough for at least 1 credit")
80- else [IntegerEntry(("credits_" + toBase58String(e)), F), ScriptTransfer(addressFromStringValue(j), (w - (D * f)), v.assetId), ScriptTransfer(addressFromStringValue(u), (D * f), v.assetId)]
80+ else [IntegerEntry(("credits_" + toBase58String(e)), F), ScriptTransfer(addressFromStringValue(j), (w - (D * h)), v.assetId), ScriptTransfer(addressFromStringValue(u), (D * h), v.assetId)]
8181 }
8282 }
8383
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif"
77
88 let c = "3MvujUZTtoANRzrKYKzx99Vtb9TUh6VPCDm"
99
1010 let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1111
1212 let e = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC'
1313
14-let f = 100000000
14+let f = value(addressFromString("3N22SvtBwfGc1BwErX5YQx3WzacDicfMpLr"))
1515
16-let g = value(addressFromString("3N22SvtBwfGc1BwErX5YQx3WzacDicfMpLr"))
16+let g = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1717
18-let h = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
18+let h = 100000000
1919
2020 let i = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
2121
2222 let j = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
2323
2424 func k (l) = valueOrElse(getInteger(this, l), 0)
2525
2626
2727 func m (n,o) = {
2828 let p = getString(this, (n + o))
2929 if ($isInstanceOf(p, "String"))
3030 then {
3131 let q = p
3232 q
3333 }
3434 else "NONE"
3535 }
3636
3737
3838 func r (o) = {
3939 let p = getString(this, o)
4040 if ($isInstanceOf(p, "String"))
4141 then {
4242 let q = p
4343 q
4444 }
4545 else "NONE"
4646 }
4747
4848
4949 @Callable(s)
5050 func setFee (t) = {
5151 let u = toBase58String(s.caller.bytes)
5252 if ((u == c))
5353 then [IntegerEntry(("certification_fee_" + toBase58String(e)), t)]
5454 else throw("You are not allowed to change fee")
5555 }
5656
5757
5858
5959 @Callable(s)
6060 func refillCredits () = {
6161 let u = toBase58String(s.caller.bytes)
6262 let v = value(s.payments[0])
6363 let w = value(v.amount)
6464 let x = if (isDefined(v.assetId))
6565 then value(v.assetId)
6666 else throw("Accept SIGN token only")
67- if ((h != x))
67+ if ((g != x))
6868 then throw("Accept SIGN token only")
6969 else {
70- let y = getIntegerValue(g, "A_asset_balance")
71- let z = getIntegerValue(g, "B_asset_balance")
70+ let y = getIntegerValue(f, "A_asset_balance")
71+ let z = getIntegerValue(f, "B_asset_balance")
7272 let A = (y / (z * 100))
7373 let B = (A / 2)
74- let C = ((w / f) / B)
75- let D = ((w / f) - (C * B))
74+ let C = ((w / h) / B)
75+ let D = ((w / h) - (C * B))
7676 let E = k(("credits_" + toBase58String(e)))
7777 let F = (C + E)
7878 if ((0 >= C))
7979 then throw("Not enough for at least 1 credit")
80- else [IntegerEntry(("credits_" + toBase58String(e)), F), ScriptTransfer(addressFromStringValue(j), (w - (D * f)), v.assetId), ScriptTransfer(addressFromStringValue(u), (D * f), v.assetId)]
80+ else [IntegerEntry(("credits_" + toBase58String(e)), F), ScriptTransfer(addressFromStringValue(j), (w - (D * h)), v.assetId), ScriptTransfer(addressFromStringValue(u), (D * h), v.assetId)]
8181 }
8282 }
8383
8484
8585
8686 @Callable(G)
8787 func fileCertification (H,I,o,J,K) = {
8888 let L = value(G.transactionId)
8989 let M = m(H, o)
9090 let N = r(o)
9191 let u = toBase58String(G.caller.bytes)
9292 if ((M != "NONE"))
9393 then throw("This entry already exist")
9494 else if ((N != "NONE"))
9595 then throw("This uuid already exist")
9696 else if ((size(o) != 36))
9797 then throw("Uuid should be 36 characters.")
9898 else if ((size(H) != 64))
9999 then throw("Hash should be 64 characters.")
100100 else if ((size(I) > 100))
101101 then throw("Title is too long, 100 characters max.")
102102 else if (if (if (contains(H, "\""))
103103 then true
104104 else contains(I, "\""))
105105 then true
106106 else contains(J, "\""))
107107 then throw("No \" allowed")
108108 else {
109109 let O = (((((((("{\"hash\":\"" + H) + "\",\"timestamp\":") + toString(lastBlock.timestamp)) + ",\"title\":\"") + I) + "\",\"ipfs\":\"") + J) + "\"}")
110110 let v = value(G.payments[0])
111111 let w = value(v.amount)
112112 let x = if (isDefined(v.assetId))
113113 then value(v.assetId)
114114 else throw("Waves is not accepted as payment")
115115 let P = getIntegerValue(this, ("certification_fee_" + toBase58String(value(x))))
116116 let Q = k(("credits_" + toBase58String(e)))
117117 if ((0 >= Q))
118118 then throw("Not enough credit on the dapp, please refill")
119119 else if ((e != x))
120120 then throw("This token is not accepted at the moment")
121121 else if ((w != P))
122122 then throw("The price is wrong")
123123 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(e)), (Q - 1)), ScriptTransfer(addressFromStringValue(d), w, v.assetId)]
124124 }
125125 }
126126
127127
128128
129129 @Callable(G)
130130 func revokeCertification (R,K) = {
131131 let L = value(G.transactionId)
132132 let u = toBase58String(G.caller.bytes)
133133 let M = {
134134 let p = getString(this, ((("data_fc_" + R) + "_") + u))
135135 if ($isInstanceOf(p, "String"))
136136 then {
137137 let q = p
138138 q
139139 }
140140 else "NONE"
141141 }
142142 let S = {
143143 let p = getString(this, ("STATUS_FC_" + R))
144144 if ($isInstanceOf(p, "String"))
145145 then {
146146 let q = p
147147 q
148148 }
149149 else "NONE"
150150 }
151151 let T = (((dropRight(M, 1) + ",\"status\":\"REVOKED_") + toBase58String(L)) + "\"}")
152152 if ((S != "NONE"))
153153 then throw("This certification have already been revoked.")
154154 else if ((M == "NONE"))
155155 then throw("You cannot change the status of this certification.")
156156 else {
157157 let v = value(G.payments[0])
158158 let w = value(v.amount)
159159 let x = if (isDefined(v.assetId))
160160 then value(v.assetId)
161161 else throw("Waves is not accepted as payment")
162162 let P = getIntegerValue(this, ("certification_fee_" + toBase58String(value(x))))
163163 let Q = getIntegerValue(this, ("credits_" + toBase58String(e)))
164164 if ((0 >= Q))
165165 then throw("Not enough credit on the dapp, please refill")
166166 else if ((e != x))
167167 then throw("This token is not accepted at the moment")
168168 else if ((w != P))
169169 then throw("The price is wrong")
170170 else [StringEntry(("STATUS_FC_" + R), ("REVOKED_" + toBase58String(L))), StringEntry(((("data_fc_" + R) + "_") + u), T), IntegerEntry(("credits_" + toBase58String(e)), (Q - 1)), ScriptTransfer(addressFromStringValue(d), w, v.assetId)]
171171 }
172172 }
173173
174174
175175
176176 @Callable(s)
177177 func deleteEntry (U) = {
178178 let V = toString(addressFromPublicKey(s.callerPublicKey))
179179 if ((V == b))
180180 then [DeleteEntry(U)]
181181 else throw("no")
182182 }
183183
184184

github/deemru/w8io/169f3d6 
77.60 ms