tx · 2uC99yj81Fk8yFiyg6KS5QRAnVVZVWgzMHZAbgQczo22 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2021.09.29 10:14 [1723918] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "2uC99yj81Fk8yFiyg6KS5QRAnVVZVWgzMHZAbgQczo22", "fee": 1400000, "feeAssetId": null, "timestamp": 1632899642458, "version": 2, "chainId": 84, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "r1X5oiz2GakvsAUMLAae77CXMzmpguieVUXvN8VQ3W6YvhxD8T1sUWkKQsBTQcu9sDJGg8UAhLPWmowTfaCTAuZ" ], "script": "base64:AAIFAAAAAAAAAC0IAhIHCgUICAgICBIECgIICBIHCgUICAgICBIICgYICAgICAgSBQoDCAgIEgAAAAAQAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAABGJhbmsCAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAGdXNkbklEAgAAACwzS0ZYQkdHTENqQTVaMkR1VzREcTlmRERySGpKSlAxWkVrYW9halN6dUtzQwEAAAAKY2hlY2tFbnRyeQAAAAIAAAAGcHJlZml4AAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAZwcmVmaXgFAAAABHV1aWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAAB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CQEAAAAIYXNTdHJpbmcAAAABCQABkQAAAAIIBQAAAANpbnYAAAAEYXJncwAAAAAAAAAAAQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V54X1+XA==", "height": 1723918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4hawzMxiBEspyPUH6rxyTJ5N2Y9PWSPCwLfF2PpgRUwp Next: HCMNYD1gru7BSEwezGAox2zAmfu2DjQhm4hNeZt3p6PZ 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) | |
111 | 110 | if (true) | |
112 | 111 | then throw("up to gere ok") | |
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") | |
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 | + | } | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 |
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) | |
111 | 110 | if (true) | |
112 | 111 | then throw("up to gere ok") | |
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") | |
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 | + | } | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | ||
146 | 148 | @Callable(invoke) | |
147 | 149 | func revokeCertification (certificationId,signerPubKey) = { | |
148 | 150 | let id = value(invoke.transactionId) | |
149 | 151 | let callerIsDapp = (this == invoke.caller) | |
150 | 152 | let callerAddress = if (callerIsDapp) | |
151 | 153 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
152 | 154 | else toBase58String(invoke.caller.bytes) | |
153 | 155 | let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) { | |
154 | 156 | case a: String => | |
155 | 157 | a | |
156 | 158 | case _ => | |
157 | 159 | "NONE" | |
158 | 160 | } | |
159 | 161 | let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) { | |
160 | 162 | case a: String => | |
161 | 163 | a | |
162 | 164 | case _ => | |
163 | 165 | "NONE" | |
164 | 166 | } | |
165 | 167 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
166 | 168 | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}") | |
167 | 169 | if ((isRevoked != "NONE")) | |
168 | 170 | then throw("This certification have already been revoked.") | |
169 | 171 | else if ((entryExist == "NONE")) | |
170 | 172 | then throw("You cannot change the status of this certification.") | |
171 | 173 | else if ((callerIsWhiteListedNum > 0)) | |
172 | 174 | then [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)] | |
173 | 175 | else if (!(callerIsDapp)) | |
174 | 176 | then { | |
175 | 177 | let payment = value(invoke.payments[0]) | |
176 | 178 | let amount = value(payment.amount) | |
177 | 179 | let paymentAssetId = if (isDefined(payment.assetId)) | |
178 | 180 | then value(payment.assetId) | |
179 | 181 | else throw("Waves is not accepted as payment") | |
180 | 182 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
181 | 183 | if ((acceptedToken != paymentAssetId)) | |
182 | 184 | then throw("This token is not accepted at the moment") | |
183 | 185 | else if (if ((amount != currentPrice)) | |
184 | 186 | then (0 >= callerIsWhiteListedNum) | |
185 | 187 | else false) | |
186 | 188 | then throw("The price is wrong") | |
187 | 189 | else [StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson), ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)] | |
188 | 190 | } | |
189 | 191 | else throw("You are not allowed to do that") | |
190 | 192 | } | |
191 | 193 | ||
192 | 194 | ||
193 | 195 | ||
194 | 196 | @Callable(invoke) | |
195 | 197 | func emailCertification (domain,title,uuid,data,signerPubKey) = { | |
196 | 198 | let id = value(invoke.transactionId) | |
197 | 199 | let entryExist = checkEntryEmail(domain, uuid) | |
198 | 200 | let uuidExist = checkUUID(uuid) | |
199 | 201 | let callerIsDapp = (this == invoke.caller) | |
200 | 202 | let callerAddress = if (callerIsDapp) | |
201 | 203 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
202 | 204 | else toBase58String(invoke.caller.bytes) | |
203 | 205 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
204 | 206 | if ((entryExist != "NONE")) | |
205 | 207 | then throw("This entry already exist") | |
206 | 208 | else if ((uuidExist != "NONE")) | |
207 | 209 | then throw("This uuid already exist") | |
208 | 210 | else if ((size(uuid) > 36)) | |
209 | 211 | then throw("Uuid is too long, 36 characters max.") | |
210 | 212 | else if ((size(domain) > 150)) | |
211 | 213 | then throw("Domain is too long, 150 characters max.") | |
212 | 214 | else if ((size(title) > 150)) | |
213 | 215 | then throw("Title is too long, 150 characters max.") | |
214 | 216 | else if ((callerIsWhiteListedNum > 0)) | |
215 | 217 | 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)] | |
216 | 218 | else if (!(callerIsDapp)) | |
217 | 219 | then { | |
218 | 220 | let payment = value(invoke.payments[0]) | |
219 | 221 | let amount = value(payment.amount) | |
220 | 222 | let paymentAssetId = if (isDefined(payment.assetId)) | |
221 | 223 | then value(payment.assetId) | |
222 | 224 | else throw("Waves is not accepted as payment") | |
223 | 225 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
224 | 226 | if ((acceptedToken != paymentAssetId)) | |
225 | 227 | then throw("This token is not accepted at the moment") | |
226 | 228 | else if (if ((amount != currentPrice)) | |
227 | 229 | then (0 >= callerIsWhiteListedNum) | |
228 | 230 | else false) | |
229 | 231 | then throw("The price is wrong") | |
230 | 232 | 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)] | |
231 | 233 | } | |
232 | 234 | else throw("You are not allowed to do that") | |
233 | 235 | } | |
234 | 236 | ||
235 | 237 | ||
236 | 238 | ||
237 | 239 | @Callable(invoke) | |
238 | 240 | func createAgreement (hash,title,stringifiedJSON,counterParts,signerPubKey,uuid) = { | |
239 | 241 | let id = value(invoke.transactionId) | |
240 | 242 | let entryExist = checkEntry(hash, uuid) | |
241 | 243 | let uuidExist = checkUUID(uuid) | |
242 | 244 | let callerIsDapp = (this == invoke.caller) | |
243 | 245 | let callerAddress = if (callerIsDapp) | |
244 | 246 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
245 | 247 | else toBase58String(invoke.caller.bytes) | |
246 | 248 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
247 | 249 | let JSON = ((((getJsonBeforeValue(stringifiedJSON, "creator") + "\"") + callerAddress) + "\"") + getJsonAfterValue(stringifiedJSON, "creator")) | |
248 | 250 | let addressesArray = split(counterParts, ",") | |
249 | 251 | let totalAddresses = size(addressesArray) | |
250 | 252 | let globalDataTitle = StringEntry((title + uuid), toBase58String(id)) | |
251 | 253 | let globalDataHash = StringEntry((hash + uuid), toBase58String(id)) | |
252 | 254 | let globalDataJson = StringEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), JSON) | |
253 | 255 | let globalDataOwner = StringEntry(((callerAddress + "_MA_") + toBase58String(id)), ("SIGNED_" + toBase58String(id))) | |
254 | 256 | let dataWhiteListed = IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - (totalAddresses + 1))) | |
255 | 257 | if ((entryExist != "NONE")) | |
256 | 258 | then throw("This entry already exist") | |
257 | 259 | else if ((uuidExist != "NONE")) | |
258 | 260 | then throw("This uuid already exist") | |
259 | 261 | else if ((size(uuid) > 36)) | |
260 | 262 | then throw("Uuid is too long, 36 characters max.") | |
261 | 263 | else if ((size(hash) > 64)) | |
262 | 264 | then throw("Message-id is too long, 64 characters max.") | |
263 | 265 | else if ((size(title) > 150)) | |
264 | 266 | then throw("Title is too long, 150 characters max.") | |
265 | 267 | else if ((callerIsWhiteListedNum > 0)) | |
266 | 268 | then if (((totalAddresses + 1) > callerIsWhiteListedNum)) | |
267 | 269 | then throw("You don't have enough certification credit") | |
268 | 270 | else if ((totalAddresses == 6)) | |
269 | 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"), 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)] | |
270 | 272 | else if ((totalAddresses == 5)) | |
271 | 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"), 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)] | |
272 | 274 | else if ((totalAddresses == 4)) | |
273 | 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"), 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)] | |
274 | 276 | else if ((totalAddresses == 3)) | |
275 | 277 | 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)] | |
276 | 278 | else if ((totalAddresses == 2)) | |
277 | 279 | 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)] | |
278 | 280 | else if ((totalAddresses == 1)) | |
279 | 281 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
280 | 282 | else throw("Wrong number of participants") | |
281 | 283 | else if (!(callerIsDapp)) | |
282 | 284 | then { | |
283 | 285 | let payment = value(invoke.payments[0]) | |
284 | 286 | let amount = if (isDefined(payment.amount)) | |
285 | 287 | then value(payment.amount) | |
286 | 288 | else 0 | |
287 | 289 | let paymentAssetId = if (isDefined(payment.assetId)) | |
288 | 290 | then value(payment.assetId) | |
289 | 291 | else acceptedToken | |
290 | 292 | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
291 | 293 | if (((currentPrice * (totalAddresses + 1)) > amount)) | |
292 | 294 | then throw(("The price is wrong, it should be " + toString((currentPrice * (totalAddresses + 1))))) | |
293 | 295 | else if ((totalAddresses == 6)) | |
294 | 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"), 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)] | |
295 | 297 | else if ((totalAddresses == 5)) | |
296 | 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"), 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)] | |
297 | 299 | else if ((totalAddresses == 4)) | |
298 | 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"), 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)] | |
299 | 301 | else if ((totalAddresses == 3)) | |
300 | 302 | 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)] | |
301 | 303 | else if ((totalAddresses == 2)) | |
302 | 304 | 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)] | |
303 | 305 | else if ((totalAddresses == 1)) | |
304 | 306 | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
305 | 307 | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(totalAddresses))) | |
306 | 308 | } | |
307 | 309 | else throw("You are not allowed to do that") | |
308 | 310 | } | |
309 | 311 | ||
310 | 312 | ||
311 | 313 | ||
312 | 314 | @Callable(invoke) | |
313 | 315 | func signAgreement (hash,agreementId,signerPubKey) = { | |
314 | 316 | let payment = value(invoke.payments[0]) | |
315 | 317 | let amount = value(payment.amount) | |
316 | 318 | let id = value(invoke.transactionId) | |
317 | 319 | let callerIsDapp = (this == invoke.caller) | |
318 | 320 | let signer = if (callerIsDapp) | |
319 | 321 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
320 | 322 | else toBase58String(invoke.caller.bytes) | |
321 | 323 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
322 | 324 | if (!(signingRequestExist)) | |
323 | 325 | then throw("Sorry there is no pending signature") | |
324 | 326 | else [StringEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id))), ScriptTransfer(addressFromStringValue(signer), 0, acceptedToken)] | |
325 | 327 | } | |
326 | 328 | ||
327 | 329 | ||
328 | 330 | ||
329 | 331 | @Callable(invoke) | |
330 | 332 | func usdnSignCredits () = { | |
331 | 333 | let payment = value(invoke.payments[0]) | |
332 | 334 | let callerAddress = toBase58String(invoke.caller.bytes) | |
333 | 335 | let tokenId = value(payment.assetId) | |
334 | 336 | let amount = value(payment.amount) | |
335 | 337 | let numberOfCredits = ((amount * 2) / 1000000) | |
336 | 338 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
337 | 339 | if ((toBase58String(tokenId) != usdnID)) | |
338 | 340 | then throw("Only USDN can be exchanged") | |
339 | 341 | else if (if (((amount % 1000000) != 0)) | |
340 | 342 | then ((amount % 1000000) != 500000) | |
341 | 343 | else false) | |
342 | 344 | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(amount), 6)) + ".") + takeRight(toString(amount), 6))) | |
343 | 345 | else [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum + numberOfCredits)), ScriptTransfer(addressFromStringValue(bank), amount, tokenId)] | |
344 | 346 | } | |
345 | 347 | ||
346 | 348 | ||
347 | 349 | @Verifier(tx) | |
348 | 350 | func verifier () = match tx { | |
349 | 351 | case inv: InvokeScriptTransaction => | |
350 | 352 | if (if (if ((inv.function == "fileCertification")) | |
351 | 353 | then true | |
352 | 354 | else (inv.function == "emailCertification")) | |
353 | 355 | then true | |
354 | 356 | else (inv.function == "createAgreement")) | |
355 | 357 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[4]))) | |
356 | 358 | else if ((inv.function == "signAgreement")) | |
357 | 359 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[2]))) | |
358 | 360 | else if ((inv.function == "revokeCertification")) | |
359 | 361 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[1]))) | |
360 | 362 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
361 | 363 | case _ => | |
362 | 364 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
363 | 365 | } | |
364 | 366 |
github/deemru/w8io/026f985 103.53 ms ◑