tx · EVW51DXZVMFA3L2SvD6LNkBSFYakLpH9GzpMF4ui5Tys 3MvebeGZYw4DzztAuqcdxyT22s6rB3yMNj7: -0.01000000 Waves 2022.03.31 12:17 [1987901] smart account 3MvebeGZYw4DzztAuqcdxyT22s6rB3yMNj7 > SELF 0.00000000 Waves
{ "type": 13, "id": "EVW51DXZVMFA3L2SvD6LNkBSFYakLpH9GzpMF4ui5Tys", "fee": 1000000, "feeAssetId": null, "timestamp": 1648717972314, "version": 2, "chainId": 84, "sender": "3MvebeGZYw4DzztAuqcdxyT22s6rB3yMNj7", "senderPublicKey": "J283pC8bzRfJ3j1oxPrgDH8hjUVhFZS2CiRcPTmzQukz", "proofs": [ "27A4hgU2g6nb5bjg9JeUriMmCXctq1kJUaJY1FVfLUm84y6frnnU6LRyNaR4Ah3ZgtHK7WZvFs6fh3JipKaXeCvv" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgUKAwgBAQAAAB0AAAAACmRlbGF5QmxvY2sAAAAAAAAAAAoAAAAACm1pblBheW1lbnQAAAAAAAAAAGQAAAAADG1pblBheW1lbnRVTQIAAAAXIGNlbnRlc2ltaSBkaSBibXNDb2luLiAAAAAAEWFjY2VwdGFibGVBc3NldElkAQAAACDk+kZ1aj0nUdt+IJrshSPy02znm1EpK4+A9oKgpa32ygAAAAAMbXNnUGFnYW1lbnRvCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAIERldmkgZWZmZXR0dWFyZSB1biBwYWdhbWVudG8gaW4gCQACWAAAAAEFAAAAEWFjY2VwdGFibGVBc3NldElkAgAAAAsgZGkgYWxtZW5vIAkAAaQAAAABBQAAAAptaW5QYXltZW50BQAAAAxtaW5QYXltZW50VU0AAAAAEmZpZWxkTmFtZVJpc3VsdGF0bwIAAAANc2VtZV9lc3RyYXR0bwAAAAANZmllbGROYW1lU2VlZAIAAAAEc2VlZAAAAAAQZmllbGROYW1lU2VlZEIxNgIAAAAIc2VlZF9iMTYAAAAAG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ACmVzY2x1c2lvbmkCAAAAAltdAwkBAAAAC2lzUGF5bWVudE9rAAAAAQUAAAABaQkBAAAACXJlZ2lzdHJhMQAAAAUFAAAAB2hhc2hfaWQFAAAADnRvdGFsZV9mYXR0dXJlBQAAAA5udW1fZXN0cmF6aW9uaQUAAAAKZXNjbHVzaW9uaQUAAAABaQkAAAIAAAABBQAAAAxtc2dQYWdhbWVudG8AAAAAcGnlDQ==", "height": 1987901, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DAEiHUT5XzNXDRwnMXcBRNzD1WE87SA1Am2Pm1gKoNJt Next: 6XBvUsVb6FHMzsP4qb6ei66sJr5sajhEULUVj7Tw2Tg8 Diff:
Old | New | Differences | |
---|---|---|---|
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | - | func estrazione_seme (hash_ | |
197 | + | func estrazione_seme (hash_id) = { | |
198 | 198 | let numero = 0 | |
199 | - | estrai1(hash_ | |
199 | + | estrai1(hash_id, numero, i) | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | - | func dichiarazione_intenti (hash_ | |
205 | + | func dichiarazione_intenti (hash_id,totale_fatture,num_estrazioni) = { | |
206 | 206 | let esclusioni = "[]" | |
207 | 207 | if (isPaymentOk(i)) | |
208 | - | then registra1(hash_ | |
208 | + | then registra1(hash_id, totale_fatture, num_estrazioni, esclusioni, i) | |
209 | 209 | else throw(msgPagamento) | |
210 | 210 | } | |
211 | 211 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let delayBlock = 10 | |
5 | 5 | ||
6 | 6 | let minPayment = 100 | |
7 | 7 | ||
8 | 8 | let minPaymentUM = " centesimi di bmsCoin. " | |
9 | 9 | ||
10 | 10 | let acceptableAssetId = base58'GQqJPRuXvxoyz22DeLqquGcx3cdbYpWi6QdqfQUMbLuf' | |
11 | 11 | ||
12 | 12 | let msgPagamento = (((("Devi effettuare un pagamento in " + toBase58String(acceptableAssetId)) + " di almeno ") + toString(minPayment)) + minPaymentUM) | |
13 | 13 | ||
14 | 14 | let fieldNameRisultato = "seme_estratto" | |
15 | 15 | ||
16 | 16 | let fieldNameSeed = "seed" | |
17 | 17 | ||
18 | 18 | let fieldNameSeedB16 = "seed_b16" | |
19 | 19 | ||
20 | 20 | let fieldNameHeightExtraction = "height_extraction" | |
21 | 21 | ||
22 | 22 | let fieldNameJson = "json" | |
23 | 23 | ||
24 | 24 | let fieldNameCardinalita = "cardinalita" | |
25 | 25 | ||
26 | 26 | let fieldNameDataRichiesta = "data_richiesta" | |
27 | 27 | ||
28 | 28 | let fieldNameEstrazioni = "estrazioni" | |
29 | 29 | ||
30 | 30 | let fieldNameRichiesta = "richiesta" | |
31 | 31 | ||
32 | 32 | let fieldNameEsclusioni = "esclusioni" | |
33 | 33 | ||
34 | 34 | let fieldNameCounter = "counter" | |
35 | 35 | ||
36 | 36 | let fieldNameIdCounter = "id_richiesta" | |
37 | 37 | ||
38 | 38 | let fieldNameProvider = "provider" | |
39 | 39 | ||
40 | 40 | func isPaymentOk (i) = if ((size(i.payments) == 0)) | |
41 | 41 | then throw(msgPagamento) | |
42 | 42 | else { | |
43 | 43 | let p = i.payments[0] | |
44 | 44 | match p.assetId { | |
45 | 45 | case a: ByteVector => | |
46 | 46 | if ((a == acceptableAssetId)) | |
47 | 47 | then (p.amount >= (minPayment * 1000000)) | |
48 | 48 | else false | |
49 | 49 | case _ => | |
50 | 50 | false | |
51 | 51 | } | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func openJson (key,value) = ((("{\"" + key) + "\": \"") + value) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func addJson (key,value) = ((("\", \"" + key) + "\": \"") + value) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func closeJson (key,value) = (((("\", \"" + key) + "\": \"") + value) + "\"}") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func myGetInt (key,msg) = { | |
65 | 65 | let myInt = match getInteger(this, key) { | |
66 | 66 | case t: Int => | |
67 | 67 | t | |
68 | 68 | case _ => | |
69 | 69 | throw(msg) | |
70 | 70 | } | |
71 | 71 | myInt | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getCurrentBlock () = { | |
76 | 76 | let block = match blockInfoByHeight(height) { | |
77 | 77 | case x: BlockInfo => | |
78 | 78 | x | |
79 | 79 | case _ => | |
80 | 80 | throw("Alla ricerca del blocco corrente: Blocco non trovato!") | |
81 | 81 | } | |
82 | 82 | block | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getTimestamp () = { | |
87 | 87 | let block = match blockInfoByHeight(height) { | |
88 | 88 | case x: BlockInfo => | |
89 | 89 | x.timestamp | |
90 | 90 | case _ => | |
91 | 91 | throw("Alla ricerca del `timestamp`: Blocco non trovato!") | |
92 | 92 | } | |
93 | 93 | block | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getVrf (thisBlock) = { | |
98 | 98 | let vrf = match thisBlock.vrf { | |
99 | 99 | case t: ByteVector => | |
100 | 100 | t | |
101 | 101 | case _ => | |
102 | 102 | throw("Alla ricerca del `vrf`: Blocco non trovato o blocco non in versione 5 ritenta.") | |
103 | 103 | } | |
104 | 104 | vrf | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func randomizer (inv,richiesta) = { | |
109 | 109 | let currentBlock = getCurrentBlock() | |
110 | 110 | let rand = getVrf(currentBlock) | |
111 | 111 | if ((size(rand) > 16000)) | |
112 | 112 | then throw(((((("Dimensione di " + toBase16String(rand)) + " vale ") + toString(size(rand))) + " HASH: ") + toBase16String(sha256_16Kb(sha256_16Kb(rand))))) | |
113 | 113 | else sha256_16Kb(sha256_16Kb(rand)) | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func estrai1 (richiesta,numero,i) = { | |
118 | 118 | let strOwnerAddress = toString(i.caller) | |
119 | 119 | let keyPrefix = (((strOwnerAddress + "_") + richiesta) + "_") | |
120 | 120 | let keyCounter = (keyPrefix + fieldNameCounter) | |
121 | 121 | let maxRichiesta = myGetInt(keyCounter, "La richiesta fatta non è stata ancora registrata") | |
122 | 122 | let numeroRichiesta = if ((0 >= numero)) | |
123 | 123 | then maxRichiesta | |
124 | 124 | else if ((maxRichiesta >= numero)) | |
125 | 125 | then numero | |
126 | 126 | else throw("Non esiste una richiesta con questo numero") | |
127 | 127 | let keyPrefixN = ((keyPrefix + toString(numeroRichiesta)) + "_") | |
128 | 128 | let keyRisultato = (keyPrefixN + fieldNameRisultato) | |
129 | 129 | let isEstratto = match getString(this, keyRisultato) { | |
130 | 130 | case t: String => | |
131 | 131 | throw(((("Risultato già presente in blockchain: " + keyRisultato) + ": ") + t)) | |
132 | 132 | case _ => | |
133 | 133 | false | |
134 | 134 | } | |
135 | 135 | if (!(isEstratto)) | |
136 | 136 | then { | |
137 | 137 | let heightBloccoCandidato = myGetInt((keyPrefixN + fieldNameHeightExtraction), "Errore generico su dati della richiesta") | |
138 | 138 | if ((heightBloccoCandidato > height)) | |
139 | 139 | then throw(((("Devi aspettare il blocco " + toString(heightBloccoCandidato)) + ". siamo al blocco ") + toString(height))) | |
140 | 140 | else { | |
141 | 141 | let keySeme = (keyPrefixN + fieldNameSeed) | |
142 | 142 | let seed = match getBinary(this, keySeme) { | |
143 | 143 | case t: ByteVector => | |
144 | 144 | t | |
145 | 145 | case _ => | |
146 | 146 | throw("Seme non trovato. Qualcosa è andata storta!") | |
147 | 147 | } | |
148 | 148 | let bloccoCandidato = match blockInfoByHeight(heightBloccoCandidato) { | |
149 | 149 | case block: BlockInfo => | |
150 | 150 | block | |
151 | 151 | case _ => | |
152 | 152 | throw("Errore: Il blocco di estrazione non esiste") | |
153 | 153 | } | |
154 | 154 | let vrfValue = match bloccoCandidato.vrf { | |
155 | 155 | case t: ByteVector => | |
156 | 156 | t | |
157 | 157 | case _ => | |
158 | 158 | throw("Blocco non in versione 5 ritenta.") | |
159 | 159 | } | |
160 | 160 | let rand = (((seed + bloccoCandidato.generationSignature) + bloccoCandidato.generatorPublicKey) + getVrf(bloccoCandidato)) | |
161 | 161 | let sha = toBase16String(sha256_16Kb(sha256_16Kb(rand))) | |
162 | 162 | let strCardinalita = toString(myGetInt((keyPrefixN + fieldNameCardinalita), "Errore lettura cardinalità")) | |
163 | 163 | let strDataRichiesta = toString(myGetInt((keyPrefixN + fieldNameDataRichiesta), "Errore lettura DataRichiesta")) | |
164 | 164 | let strEstrazioni = toString(myGetInt((keyPrefixN + fieldNameEstrazioni), "Errore lettura Estrazioni")) | |
165 | 165 | let esclusioni = match getString(this, (keyPrefixN + fieldNameEsclusioni)) { | |
166 | 166 | case t: String => | |
167 | 167 | t | |
168 | 168 | case _ => | |
169 | 169 | throw("Errore: elenco esclusioni non presente") | |
170 | 170 | } | |
171 | 171 | let json = ((((((((((openJson(fieldNameIdCounter, toString(numeroRichiesta)) + addJson(fieldNameCounter, toString(maxRichiesta))) + addJson(fieldNameProvider, strOwnerAddress)) + addJson(fieldNameRichiesta, richiesta)) + addJson(fieldNameCardinalita, strCardinalita)) + addJson(fieldNameEstrazioni, strEstrazioni)) + addJson(fieldNameEsclusioni, esclusioni)) + addJson(fieldNameDataRichiesta, strDataRichiesta)) + addJson(fieldNameSeedB16, toBase16String(seed))) + addJson(fieldNameHeightExtraction, toString(heightBloccoCandidato))) + closeJson(fieldNameRisultato, sha)) | |
172 | 172 | [StringEntry((keyPrefixN + fieldNameJson), json), StringEntry(keyRisultato, sha)] | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | else throw("Errore: non dovresti passare da quì") | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func registra1 (richiesta,cardinalita,estrazioni,esclusioni,i) = { | |
180 | 180 | let keyPrefix = (((toString(i.caller) + "_") + richiesta) + "_") | |
181 | 181 | let keyCounter = (keyPrefix + fieldNameCounter) | |
182 | 182 | let nRichiesta = match getInteger(this, keyCounter) { | |
183 | 183 | case c: Int => | |
184 | 184 | (c + 1) | |
185 | 185 | case _ => | |
186 | 186 | 1 | |
187 | 187 | } | |
188 | 188 | let keyPrefixN = ((keyPrefix + toString(nRichiesta)) + "_") | |
189 | 189 | let seed = randomizer(i, (((richiesta + toString(cardinalita)) + toString(estrazioni)) + esclusioni)) | |
190 | 190 | let currDate = getTimestamp() | |
191 | 191 | let heightExtraction = (height + delayBlock) | |
192 | 192 | [IntegerEntry(keyCounter, nRichiesta), IntegerEntry((keyPrefixN + fieldNameHeightExtraction), heightExtraction), IntegerEntry((keyPrefixN + fieldNameCardinalita), cardinalita), IntegerEntry((keyPrefixN + fieldNameEstrazioni), estrazioni), IntegerEntry((keyPrefixN + fieldNameDataRichiesta), currDate), BinaryEntry((keyPrefixN + fieldNameSeed), seed), StringEntry((keyPrefixN + fieldNameSeedB16), toBase16String(seed)), StringEntry((keyPrefixN + fieldNameEsclusioni), esclusioni), StringEntry((keyPrefixN + fieldNameRichiesta), richiesta)] | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(i) | |
197 | - | func estrazione_seme (hash_ | |
197 | + | func estrazione_seme (hash_id) = { | |
198 | 198 | let numero = 0 | |
199 | - | estrai1(hash_ | |
199 | + | estrai1(hash_id, numero, i) | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | - | func dichiarazione_intenti (hash_ | |
205 | + | func dichiarazione_intenti (hash_id,totale_fatture,num_estrazioni) = { | |
206 | 206 | let esclusioni = "[]" | |
207 | 207 | if (isPaymentOk(i)) | |
208 | - | then registra1(hash_ | |
208 | + | then registra1(hash_id, totale_fatture, num_estrazioni, esclusioni, i) | |
209 | 209 | else throw(msgPagamento) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 |
github/deemru/w8io/169f3d6 54.16 ms ◑