tx · 37m4ALwpfazKr8d3fVwP9ShzET9KQ3EDCeYCtE45ypnk 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2021.09.29 10:15 [1723921] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "37m4ALwpfazKr8d3fVwP9ShzET9KQ3EDCeYCtE45ypnk", "fee": 1400000, "feeAssetId": null, "timestamp": 1632899774575, "version": 2, "chainId": 84, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "5NR4zgAvQiaqtYR3u7HcttKVGZEYLitENUn98HvSArctdiJECFDcGwUpXUCjZuhPQrgxLYrdVpmGzcExhrQ9dTfB" ], "script": "base64:AAIFAAAAAAAAAC0IAhIHCgUICAgICBIECgIICBIHCgUICAgICBIICgYICAgICAgSBQoDCAgIEgAAAAAQAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAABGJhbmsCAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAGdXNkbklEAgAAACwzS0ZYQkdHTENqQTVaMkR1VzREcTlmRERySGpKSlAxWkVrYW9halN6dUtzQwEAAAAKY2hlY2tFbnRyeQAAAAIAAAAGcHJlZml4AAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAZwcmVmaXgFAAAABHV1aWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQ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AAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQEAAAAIYXNTdHJpbmcAAAABCQABkQAAAAIIBQAAAANpbnYAAAAEYXJncwAAAAAAAAAAAQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xnypcQ==", "height": 1723921, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HCMNYD1gru7BSEwezGAox2zAmfu2DjQhm4hNeZt3p6PZ Next: 7tGG1yafiFuUbDzmcEGNqe19uLBieaajWzZc4ZWfifDH Diff:
Old | New | Differences | |
---|---|---|---|
107 | 107 | let callerAddress = if (callerIsDapp) | |
108 | 108 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
109 | 109 | else toBase58String(invoke.caller.bytes) | |
110 | + | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
110 | 111 | if (true) | |
111 | - | then throw(("up to gere ok " + toBase58String(invoke.caller.bytes))) | |
112 | - | else { | |
113 | - | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
114 | - | if ((entryExist != "NONE")) | |
115 | - | then throw("This entry already exist") | |
116 | - | else if ((uuidExist != "NONE")) | |
117 | - | then throw("This uuid already exist") | |
118 | - | else if ((size(uuid) != 36)) | |
119 | - | then throw("Uuid should be 36 characters.") | |
120 | - | else if ((size(hash) != 64)) | |
121 | - | then throw("Hash should be 64 characters.") | |
122 | - | else if ((size(title) > 150)) | |
123 | - | then throw("Title is too long, 150 characters max.") | |
124 | - | else if ((callerIsWhiteListedNum > 0)) | |
125 | - | then [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
126 | - | else if (!(callerIsDapp)) | |
127 | - | then { | |
128 | - | let payment = value(invoke.payments[0]) | |
129 | - | let amount = value(payment.amount) | |
130 | - | let paymentAssetId = if (isDefined(payment.assetId)) | |
131 | - | then value(payment.assetId) | |
132 | - | else throw("Waves is not accepted as payment") | |
133 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
134 | - | if ((acceptedToken != paymentAssetId)) | |
135 | - | then throw("This token is not accepted at the moment") | |
136 | - | else if (if ((amount != currentPrice)) | |
137 | - | then (0 >= callerIsWhiteListedNum) | |
138 | - | else false) | |
139 | - | then throw("The price is wrong") | |
140 | - | else [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
141 | - | } | |
142 | - | else throw("You are not allowed to do that") | |
143 | - | } | |
112 | + | then throw(("up to gere ok hihi " + toBase58String(invoke.caller.bytes))) | |
113 | + | else if ((entryExist != "NONE")) | |
114 | + | then throw("This entry already exist") | |
115 | + | else if ((uuidExist != "NONE")) | |
116 | + | then throw("This uuid already exist") | |
117 | + | else if ((size(uuid) != 36)) | |
118 | + | then throw("Uuid should be 36 characters.") | |
119 | + | else if ((size(hash) != 64)) | |
120 | + | then throw("Hash should be 64 characters.") | |
121 | + | else if ((size(title) > 150)) | |
122 | + | then throw("Title is too long, 150 characters max.") | |
123 | + | else if ((callerIsWhiteListedNum > 0)) | |
124 | + | then [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
125 | + | else if (!(callerIsDapp)) | |
126 | + | then { | |
127 | + | let payment = value(invoke.payments[0]) | |
128 | + | let amount = value(payment.amount) | |
129 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
130 | + | then value(payment.assetId) | |
131 | + | else throw("Waves is not accepted as payment") | |
132 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
133 | + | if ((acceptedToken != paymentAssetId)) | |
134 | + | then throw("This token is not accepted at the moment") | |
135 | + | else if (if ((amount != currentPrice)) | |
136 | + | then (0 >= callerIsWhiteListedNum) | |
137 | + | else false) | |
138 | + | then throw("The price is wrong") | |
139 | + | else [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
140 | + | } | |
141 | + | else throw("You are not allowed to do that") | |
144 | 142 | } | |
145 | 143 | ||
146 | 144 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
11 | 11 | ||
12 | 12 | func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) { | |
13 | 13 | case a: String => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | "NONE" | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func checkEntryEmail (uuid,domain) = match getString(this, ((uuid + "@") + domain)) { | |
21 | 21 | case a: String => | |
22 | 22 | a | |
23 | 23 | case _ => | |
24 | 24 | "NONE" | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func checkUUID (uuid) = match getString(this, uuid) { | |
29 | 29 | case a: String => | |
30 | 30 | a | |
31 | 31 | case _ => | |
32 | 32 | "NONE" | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) { | |
37 | 37 | case a: Int => | |
38 | 38 | a | |
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func isAdress (addr) = if (if (if ((size(addr) == 35)) | |
45 | 45 | then (take(addr, 2) == "3P") | |
46 | 46 | else false) | |
47 | 47 | then true | |
48 | 48 | else (take(addr, 2) == "3N")) | |
49 | 49 | then true | |
50 | 50 | else (take(addr, 2) == "3M") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
54 | 54 | then (accumulator + 1) | |
55 | 55 | else (accumulator + 0) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func checkIfPendingToSign (key) = match getString(this, key) { | |
59 | 59 | case a: String => | |
60 | 60 | if ((a == "PENDING")) | |
61 | 61 | then true | |
62 | 62 | else false | |
63 | 63 | case _ => | |
64 | 64 | false | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\""))) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getValue (json,key) = { | |
72 | 72 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
73 | 73 | let data = drop(json, ((keyIndex + size(key)) + 3)) | |
74 | 74 | let jsonValue = getValueString(data) | |
75 | 75 | jsonValue | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getJsonBeforeValue (json,key) = { | |
80 | 80 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
81 | 81 | let data = take(json, ((keyIndex + size(key)) + 3)) | |
82 | 82 | data | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getJsonAfterValue (json,key) = { | |
87 | 87 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
88 | 88 | let data = takeRight(json, (size(json) - ((((keyIndex + size(key)) + 3) + 0) + 2))) | |
89 | 89 | data | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func asString (bv) = match bv { | |
94 | 94 | case bv0: String => | |
95 | 95 | bv0 | |
96 | 96 | case _ => | |
97 | 97 | throw("Sponsored Public Key String expected") | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(invoke) | |
102 | 102 | func fileCertification (hash,title,uuid,data,signerPubKey) = { | |
103 | 103 | let id = value(invoke.transactionId) | |
104 | 104 | let entryExist = checkEntry(hash, uuid) | |
105 | 105 | let uuidExist = checkUUID(uuid) | |
106 | 106 | let callerIsDapp = (this == invoke.caller) | |
107 | 107 | let callerAddress = if (callerIsDapp) | |
108 | 108 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
109 | 109 | else toBase58String(invoke.caller.bytes) | |
110 | + | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
110 | 111 | if (true) | |
111 | - | then throw(("up to gere ok " + toBase58String(invoke.caller.bytes))) | |
112 | - | else { | |
113 | - | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
114 | - | if ((entryExist != "NONE")) | |
115 | - | then throw("This entry already exist") | |
116 | - | else if ((uuidExist != "NONE")) | |
117 | - | then throw("This uuid already exist") | |
118 | - | else if ((size(uuid) != 36)) | |
119 | - | then throw("Uuid should be 36 characters.") | |
120 | - | else if ((size(hash) != 64)) | |
121 | - | then throw("Hash should be 64 characters.") | |
122 | - | else if ((size(title) > 150)) | |
123 | - | then throw("Title is too long, 150 characters max.") | |
124 | - | else if ((callerIsWhiteListedNum > 0)) | |
125 | - | then [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
126 | - | else if (!(callerIsDapp)) | |
127 | - | then { | |
128 | - | let payment = value(invoke.payments[0]) | |
129 | - | let amount = value(payment.amount) | |
130 | - | let paymentAssetId = if (isDefined(payment.assetId)) | |
131 | - | then value(payment.assetId) | |
132 | - | else throw("Waves is not accepted as payment") | |
133 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
134 | - | if ((acceptedToken != paymentAssetId)) | |
135 | - | then throw("This token is not accepted at the moment") | |
136 | - | else if (if ((amount != currentPrice)) | |
137 | - | then (0 >= callerIsWhiteListedNum) | |
138 | - | else false) | |
139 | - | then throw("The price is wrong") | |
140 | - | else [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
141 | - | } | |
142 | - | else throw("You are not allowed to do that") | |
143 | - | } | |
112 | + | then throw(("up to gere ok hihi " + toBase58String(invoke.caller.bytes))) | |
113 | + | else if ((entryExist != "NONE")) | |
114 | + | then throw("This entry already exist") | |
115 | + | else if ((uuidExist != "NONE")) | |
116 | + | then throw("This uuid already exist") | |
117 | + | else if ((size(uuid) != 36)) | |
118 | + | then throw("Uuid should be 36 characters.") | |
119 | + | else if ((size(hash) != 64)) | |
120 | + | then throw("Hash should be 64 characters.") | |
121 | + | else if ((size(title) > 150)) | |
122 | + | then throw("Title is too long, 150 characters max.") | |
123 | + | else if ((callerIsWhiteListedNum > 0)) | |
124 | + | then [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
125 | + | else if (!(callerIsDapp)) | |
126 | + | then { | |
127 | + | let payment = value(invoke.payments[0]) | |
128 | + | let amount = value(payment.amount) | |
129 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
130 | + | then value(payment.assetId) | |
131 | + | else throw("Waves is not accepted as payment") | |
132 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
133 | + | if ((acceptedToken != paymentAssetId)) | |
134 | + | then throw("This token is not accepted at the moment") | |
135 | + | else if (if ((amount != currentPrice)) | |
136 | + | then (0 >= callerIsWhiteListedNum) | |
137 | + | else false) | |
138 | + | then throw("The price is wrong") | |
139 | + | else [StringEntry(uuid, toBase58String(id)), StringEntry((hash + uuid), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
140 | + | } | |
141 | + | else throw("You are not allowed to do that") | |
144 | 142 | } | |
145 | 143 | ||
146 | 144 | ||
147 | 145 | ||
148 | 146 | @Callable(invoke) | |
149 | 147 | func revokeCertification (certificationId,signerPubKey) = { | |
150 | 148 | let id = value(invoke.transactionId) | |
151 | 149 | let callerIsDapp = (this == invoke.caller) | |
152 | 150 | let callerAddress = if (callerIsDapp) | |
153 | 151 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
154 | 152 | else toBase58String(invoke.caller.bytes) | |
155 | 153 | let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) { | |
156 | 154 | case a: String => | |
157 | 155 | a | |
158 | 156 | case _ => | |
159 | 157 | "NONE" | |
160 | 158 | } | |
161 | 159 | let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) { | |
162 | 160 | case a: String => | |
163 | 161 | a | |
164 | 162 | case _ => | |
165 | 163 | "NONE" | |
166 | 164 | } | |
167 | 165 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
168 | 166 | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}") | |
169 | 167 | if ((isRevoked != "NONE")) | |
170 | 168 | then throw("This certification have already been revoked.") | |
171 | 169 | else if ((entryExist == "NONE")) | |
172 | 170 | then throw("You cannot change the status of this certification.") | |
173 | 171 | else if ((callerIsWhiteListedNum > 0)) | |
174 | 172 | then [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)] | |
175 | 173 | else if (!(callerIsDapp)) | |
176 | 174 | then { | |
177 | 175 | let payment = value(invoke.payments[0]) | |
178 | 176 | let amount = value(payment.amount) | |
179 | 177 | let paymentAssetId = if (isDefined(payment.assetId)) | |
180 | 178 | then value(payment.assetId) | |
181 | 179 | else throw("Waves is not accepted as payment") | |
182 | 180 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
183 | 181 | if ((acceptedToken != paymentAssetId)) | |
184 | 182 | then throw("This token is not accepted at the moment") | |
185 | 183 | else if (if ((amount != currentPrice)) | |
186 | 184 | then (0 >= callerIsWhiteListedNum) | |
187 | 185 | else false) | |
188 | 186 | then throw("The price is wrong") | |
189 | 187 | else [StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
190 | 188 | } | |
191 | 189 | else throw("You are not allowed to do that") | |
192 | 190 | } | |
193 | 191 | ||
194 | 192 | ||
195 | 193 | ||
196 | 194 | @Callable(invoke) | |
197 | 195 | func emailCertification (domain,title,uuid,data,signerPubKey) = { | |
198 | 196 | let id = value(invoke.transactionId) | |
199 | 197 | let entryExist = checkEntryEmail(domain, uuid) | |
200 | 198 | let uuidExist = checkUUID(uuid) | |
201 | 199 | let callerIsDapp = (this == invoke.caller) | |
202 | 200 | let callerAddress = if (callerIsDapp) | |
203 | 201 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
204 | 202 | else toBase58String(invoke.caller.bytes) | |
205 | 203 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
206 | 204 | if ((entryExist != "NONE")) | |
207 | 205 | then throw("This entry already exist") | |
208 | 206 | else if ((uuidExist != "NONE")) | |
209 | 207 | then throw("This uuid already exist") | |
210 | 208 | else if ((size(uuid) > 36)) | |
211 | 209 | then throw("Uuid is too long, 36 characters max.") | |
212 | 210 | else if ((size(domain) > 150)) | |
213 | 211 | then throw("Domain is too long, 150 characters max.") | |
214 | 212 | else if ((size(title) > 150)) | |
215 | 213 | then throw("Title is too long, 150 characters max.") | |
216 | 214 | else if ((callerIsWhiteListedNum > 0)) | |
217 | 215 | then [StringEntry(uuid, toBase58String(id)), StringEntry(((uuid + "@") + domain), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
218 | 216 | else if (!(callerIsDapp)) | |
219 | 217 | then { | |
220 | 218 | let payment = value(invoke.payments[0]) | |
221 | 219 | let amount = value(payment.amount) | |
222 | 220 | let paymentAssetId = if (isDefined(payment.assetId)) | |
223 | 221 | then value(payment.assetId) | |
224 | 222 | else throw("Waves is not accepted as payment") | |
225 | 223 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
226 | 224 | if ((acceptedToken != paymentAssetId)) | |
227 | 225 | then throw("This token is not accepted at the moment") | |
228 | 226 | else if (if ((amount != currentPrice)) | |
229 | 227 | then (0 >= callerIsWhiteListedNum) | |
230 | 228 | else false) | |
231 | 229 | then throw("The price is wrong") | |
232 | 230 | else [StringEntry(uuid, toBase58String(id)), StringEntry(((uuid + "@") + domain), toBase58String(id)), StringEntry((title + uuid), toBase58String(id)), StringEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
233 | 231 | } | |
234 | 232 | else throw("You are not allowed to do that") | |
235 | 233 | } | |
236 | 234 | ||
237 | 235 | ||
238 | 236 | ||
239 | 237 | @Callable(invoke) | |
240 | 238 | func createAgreement (hash,title,stringifiedJSON,counterParts,signerPubKey,uuid) = { | |
241 | 239 | let id = value(invoke.transactionId) | |
242 | 240 | let entryExist = checkEntry(hash, uuid) | |
243 | 241 | let uuidExist = checkUUID(uuid) | |
244 | 242 | let callerIsDapp = (this == invoke.caller) | |
245 | 243 | let callerAddress = if (callerIsDapp) | |
246 | 244 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
247 | 245 | else toBase58String(invoke.caller.bytes) | |
248 | 246 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
249 | 247 | let JSON = ((((getJsonBeforeValue(stringifiedJSON, "creator") + "\"") + callerAddress) + "\"") + getJsonAfterValue(stringifiedJSON, "creator")) | |
250 | 248 | let addressesArray = split(counterParts, ",") | |
251 | 249 | let totalAddresses = size(addressesArray) | |
252 | 250 | let globalDataTitle = StringEntry((title + uuid), toBase58String(id)) | |
253 | 251 | let globalDataHash = StringEntry((hash + uuid), toBase58String(id)) | |
254 | 252 | let globalDataJson = StringEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), JSON) | |
255 | 253 | let globalDataOwner = StringEntry(((callerAddress + "_MA_") + toBase58String(id)), ("SIGNED_" + toBase58String(id))) | |
256 | 254 | let dataWhiteListed = IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - (totalAddresses + 1))) | |
257 | 255 | if ((entryExist != "NONE")) | |
258 | 256 | then throw("This entry already exist") | |
259 | 257 | else if ((uuidExist != "NONE")) | |
260 | 258 | then throw("This uuid already exist") | |
261 | 259 | else if ((size(uuid) > 36)) | |
262 | 260 | then throw("Uuid is too long, 36 characters max.") | |
263 | 261 | else if ((size(hash) > 64)) | |
264 | 262 | then throw("Message-id is too long, 64 characters max.") | |
265 | 263 | else if ((size(title) > 150)) | |
266 | 264 | then throw("Title is too long, 150 characters max.") | |
267 | 265 | else if ((callerIsWhiteListedNum > 0)) | |
268 | 266 | then if (((totalAddresses + 1) > callerIsWhiteListedNum)) | |
269 | 267 | then throw("You don't have enough certification credit") | |
270 | 268 | else if ((totalAddresses == 6)) | |
271 | 269 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)] | |
272 | 270 | else if ((totalAddresses == 5)) | |
273 | 271 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)] | |
274 | 272 | else if ((totalAddresses == 4)) | |
275 | 273 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)] | |
276 | 274 | else if ((totalAddresses == 3)) | |
277 | 275 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
278 | 276 | else if ((totalAddresses == 2)) | |
279 | 277 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
280 | 278 | else if ((totalAddresses == 1)) | |
281 | 279 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
282 | 280 | else throw("Wrong number of participants") | |
283 | 281 | else if (!(callerIsDapp)) | |
284 | 282 | then { | |
285 | 283 | let payment = value(invoke.payments[0]) | |
286 | 284 | let amount = if (isDefined(payment.amount)) | |
287 | 285 | then value(payment.amount) | |
288 | 286 | else 0 | |
289 | 287 | let paymentAssetId = if (isDefined(payment.assetId)) | |
290 | 288 | then value(payment.assetId) | |
291 | 289 | else acceptedToken | |
292 | 290 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
293 | 291 | if (((currentPrice * (totalAddresses + 1)) > amount)) | |
294 | 292 | then throw(("The price is wrong, it should be " + toString((currentPrice * (totalAddresses + 1))))) | |
295 | 293 | else if ((totalAddresses == 6)) | |
296 | 294 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)] | |
297 | 295 | else if ((totalAddresses == 5)) | |
298 | 296 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)] | |
299 | 297 | else if ((totalAddresses == 4)) | |
300 | 298 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)] | |
301 | 299 | else if ((totalAddresses == 3)) | |
302 | 300 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
303 | 301 | else if ((totalAddresses == 2)) | |
304 | 302 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
305 | 303 | else if ((totalAddresses == 1)) | |
306 | 304 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
307 | 305 | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(totalAddresses))) | |
308 | 306 | } | |
309 | 307 | else throw("You are not allowed to do that") | |
310 | 308 | } | |
311 | 309 | ||
312 | 310 | ||
313 | 311 | ||
314 | 312 | @Callable(invoke) | |
315 | 313 | func signAgreement (hash,agreementId,signerPubKey) = { | |
316 | 314 | let payment = value(invoke.payments[0]) | |
317 | 315 | let amount = value(payment.amount) | |
318 | 316 | let id = value(invoke.transactionId) | |
319 | 317 | let callerIsDapp = (this == invoke.caller) | |
320 | 318 | let signer = if (callerIsDapp) | |
321 | 319 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
322 | 320 | else toBase58String(invoke.caller.bytes) | |
323 | 321 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
324 | 322 | if (!(signingRequestExist)) | |
325 | 323 | then throw("Sorry there is no pending signature") | |
326 | 324 | else [StringEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id))), ScriptTransfer(addressFromStringValue(signer), 0, acceptedToken)] | |
327 | 325 | } | |
328 | 326 | ||
329 | 327 | ||
330 | 328 | ||
331 | 329 | @Callable(invoke) | |
332 | 330 | func usdnSignCredits () = { | |
333 | 331 | let payment = value(invoke.payments[0]) | |
334 | 332 | let callerAddress = toBase58String(invoke.caller.bytes) | |
335 | 333 | let tokenId = value(payment.assetId) | |
336 | 334 | let amount = value(payment.amount) | |
337 | 335 | let numberOfCredits = ((amount * 2) / 1000000) | |
338 | 336 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
339 | 337 | if ((toBase58String(tokenId) != usdnID)) | |
340 | 338 | then throw("Only USDN can be exchanged") | |
341 | 339 | else if (if (((amount % 1000000) != 0)) | |
342 | 340 | then ((amount % 1000000) != 500000) | |
343 | 341 | else false) | |
344 | 342 | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(amount), 6)) + ".") + takeRight(toString(amount), 6))) | |
345 | 343 | else [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum + numberOfCredits)), ScriptTransfer(addressFromStringValue(bank), amount, tokenId)] | |
346 | 344 | } | |
347 | 345 | ||
348 | 346 | ||
349 | 347 | @Verifier(tx) | |
350 | 348 | func verifier () = match tx { | |
351 | 349 | case inv: InvokeScriptTransaction => | |
352 | 350 | if (if (if ((inv.function == "fileCertification")) | |
353 | 351 | then true | |
354 | 352 | else (inv.function == "emailCertification")) | |
355 | 353 | then true | |
356 | 354 | else (inv.function == "createAgreement")) | |
357 | 355 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[4]))) | |
358 | 356 | else if ((inv.function == "signAgreement")) | |
359 | 357 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[2]))) | |
360 | 358 | else if ((inv.function == "revokeCertification")) | |
361 | 359 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[1]))) | |
362 | 360 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
363 | 361 | case _ => | |
364 | 362 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
365 | 363 | } | |
366 | 364 |
github/deemru/w8io/026f985 62.39 ms ◑