tx · 8yS4MxgrzC9oo39xkWNZihNLUpCSAK753D1bFjUzrxBP 3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs: -0.00600000 Waves 2022.07.28 20:04 [2159956] smart account 3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs > SELF 0.00000000 Waves
{ "type": 13, "id": "8yS4MxgrzC9oo39xkWNZihNLUpCSAK753D1bFjUzrxBP", "fee": 600000, "feeAssetId": null, "timestamp": 1659027892019, "version": 2, "chainId": 84, "sender": "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs", "senderPublicKey": "FCs6gVPFo4sbN8f7nW2gEm36jeUPWyYdt51xzCTY1Lgi", "proofs": [ "2yT4oTkYN76i9nwjKCjygBsX9swdwp98NeaL1xvrk1uVQBHgJzWmNcaPF4pirdg7LJW2SG1FexsfKqLwq1gZiPPi" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAACEAAAAAA1ZHVAEAAAAgAPs5y/R2CqiyWSxNldt26J/wx9NuUlms6dNVusQnAScAAAAADXN0YXJ0VG90YWxRdHkAAAAAAAAPQkAAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAHbm9tdmd0dQAAAAAAAAAACgAAAAAFdXNkbncAAAAAAAAAAd4AAAAAC093bmVyUHViS2V5AQAAACDTDabcI8LzB9tWS9lEjmA4w1eYCLI6b207rRBMqkJEGwAAAAAKYWRtTjA4VkdUVwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMp5OFCu+8OtYaQx5WnOCz/kWDHG7i+bOQAAAAARYWRtTjA4c3lzVkdUUGFpc1cJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQbjYxTyT8Q7+WwnaQm5Sj/Z1eJ0rcNywQBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtY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tclVxTHh0c1lwd3hjN2hnM3c1CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAACZDdGEuIFZHVCBBZG1pbiBkZWwgRTJFIE4wOCwgYmxvY2tjaGFpbgIAAAAjM1BSNUFnN2pQQkdwZnI3VVVVYWNCUlQ1VzVXZVBDOTFCTVcFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAC3VzZXJBZGRyZXNzCQAAaAAAAAIAAAAAAAAAAGQFAAAACG9yZGVyUXR5BQAAAANWR1QJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAKYWRtTjA4VkdUVwkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAF4IBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEWFkbU4wOHN5c1ZHVFBhaXNXCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQgFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAC093bmVyUHViS2V5B+kjeF4=", "height": 2159956, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7JfPcsspC4RPEGrAVnAwneEaBVHG4196mtsFD1CHtsRT Next: 8GErbYVutPd2bEsD7Es37T4tz8Q7Pq1GRf6eNoRiR2YL Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | if ((0 >= ((b - V) - S))) | |
152 | 152 | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción") | |
153 | 153 | else if ((T > U.amount)) | |
154 | - | then throw(" | |
154 | + | then throw("El monto del pago no puede ser menor que la orden de compra del artículo") | |
155 | 155 | else if ((U.amount > T)) | |
156 | - | then throw(" | |
157 | - | else ScriptResult(WriteSet([DataEntry(q(r), "Ecosistema Bit-CO2"), DataEntry(v(r), "E2E/N08PE"), DataEntry(x(r), "E2E_N00-VGT-01"), DataEntry(z(r), "10.00 USD | |
156 | + | then throw("El monto del pago no puede ser mayor que la orden de compra del artículo") | |
157 | + | else ScriptResult(WriteSet([DataEntry(q(r), "Ecosistema Bit-CO2"), DataEntry(v(r), "E2E/N08PE"), DataEntry(x(r), "E2E_N00-VGT-01"), DataEntry(z(r), "10.00 USD"), DataEntry(A(r), b), DataEntry(E(X, r), (G(X, r) + 1)), DataEntry(H(r), Q), DataEntry(J(r), R), DataEntry(L(r), S), DataEntry("Monto de Inversión | Participación, wvs", T), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(N(r), (O(r) + S)), DataEntry("Saldo de Tokens VGT", ((b - O(r)) - S)), DataEntry(C(u), (D(u) + U.amount)), DataEntry("Cta. VGT Admin del N08-PE, blockchain", "3PNRormQTw186a91mrUqLxtsYpwxc7hg3w5"), DataEntry("Cta. VGT Admin del E2E N08, blockchain", "3PR5Ag7jPBGpfr7UUUacBRT5W5WePC91BMW")]), TransferSet([ScriptTransfer(addressFromStringValue(X), (100 * S), a), ScriptTransfer(h, ((94 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)])) | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
167 | 167 | let ab = m | |
168 | 168 | sigVerify(Z.bodyBytes, Z.proofs[0], g) | |
169 | 169 | } | |
170 | - | else if ($isInstanceOf(m, "DataTransaction")) | |
171 | - | then { | |
172 | - | let ac = m | |
173 | - | true | |
174 | - | } | |
175 | - | else if ($isInstanceOf(m, "TransferTransaction")) | |
176 | - | then { | |
177 | - | let Z = m | |
178 | - | true | |
179 | - | } | |
180 | - | else false | |
170 | + | else false | |
181 | 171 | } | |
182 | 172 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'14qBkVfMxkWyR4sjgXVfDanaemoCbhuwy9ptGtUt53Xc' | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "none" | |
11 | 11 | ||
12 | 12 | let e = 10 | |
13 | 13 | ||
14 | 14 | let f = 478 | |
15 | 15 | ||
16 | 16 | let g = base58'FCs6gVPFo4sbN8f7nW2gEm36jeUPWyYdt51xzCTY1Lgi' | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3N8NfVBXHM7yKRy92ghKc5MJYFuyFXhsDXn') | |
19 | 19 | ||
20 | 20 | let i = Address(base58'3MrRmb3ANQy1o15LbHRNhiNHjYvXnoSLMCo') | |
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = { | |
24 | 24 | let m = getInteger(this, k) | |
25 | 25 | if ($isInstanceOf(m, "Int")) | |
26 | 26 | then { | |
27 | 27 | let n = m | |
28 | 28 | n | |
29 | 29 | } | |
30 | 30 | else 0 | |
31 | 31 | } | |
32 | 32 | l | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (k) = { | |
37 | 37 | let p = { | |
38 | 38 | let m = getString(this, k) | |
39 | 39 | if ($isInstanceOf(m, "String")) | |
40 | 40 | then { | |
41 | 41 | let n = m | |
42 | 42 | n | |
43 | 43 | } | |
44 | 44 | else d | |
45 | 45 | } | |
46 | 46 | p | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (r) = "Emisor:" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func s (r) = o(q(r)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func t (u) = (u + "Nodo-08") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func v (r) = "Nodo-País:" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func w (r) = o(v(r)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func x (r) = "Código:" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func y (r) = o(x(r)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func z (r) = "Precio Nominal, 1 VGT:" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func A (r) = "Cantidad de tokens emitidos:" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func B (r) = o(A(r)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func C (u) = "Fondos | Monto recaudado, wvs" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func D (u) = j(C(u)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func E (F,r) = "Order_№:" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func G (F,r) = j(E(F, r)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func H (r) = "Documento Nacional de Identidad, DNI:" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func I (r) = o(H(r)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func J (r) = "País de Residencia del Usuario:" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func K (r) = o(J(r)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func L (r) = "Cantidad de tokens adquiridos:" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func M (r) = j(L(r)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func N (r) = "Cantidad de tokens VGT realizados:" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func O (r) = j(N(r)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(P) | |
117 | 117 | func purchaseVGT (r,Q,R,S,T) = { | |
118 | 118 | let U = extract(P.payment) | |
119 | 119 | if (isDefined(U.assetId)) | |
120 | 120 | then throw("Ud. puede adquirir tokens VGT usando WavesKeeper y su token de pago en Waves.") | |
121 | 121 | else { | |
122 | 122 | let u = { | |
123 | 123 | let m = getString(this, t(r)) | |
124 | 124 | if ($isInstanceOf(m, "String")) | |
125 | 125 | then { | |
126 | 126 | let n = m | |
127 | 127 | n | |
128 | 128 | } | |
129 | 129 | else d | |
130 | 130 | } | |
131 | 131 | let V = { | |
132 | 132 | let m = getInteger(this, N(r)) | |
133 | 133 | if ($isInstanceOf(m, "Int")) | |
134 | 134 | then { | |
135 | 135 | let n = m | |
136 | 136 | n | |
137 | 137 | } | |
138 | 138 | else 0 | |
139 | 139 | } | |
140 | 140 | let W = { | |
141 | 141 | let m = getInteger(this, C(u)) | |
142 | 142 | if ($isInstanceOf(m, "Int")) | |
143 | 143 | then { | |
144 | 144 | let n = m | |
145 | 145 | n | |
146 | 146 | } | |
147 | 147 | else 0 | |
148 | 148 | } | |
149 | 149 | let X = toBase58String(P.caller.bytes) | |
150 | 150 | let Y = ((e * c) / f) | |
151 | 151 | if ((0 >= ((b - V) - S))) | |
152 | 152 | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción") | |
153 | 153 | else if ((T > U.amount)) | |
154 | - | then throw(" | |
154 | + | then throw("El monto del pago no puede ser menor que la orden de compra del artículo") | |
155 | 155 | else if ((U.amount > T)) | |
156 | - | then throw(" | |
157 | - | else ScriptResult(WriteSet([DataEntry(q(r), "Ecosistema Bit-CO2"), DataEntry(v(r), "E2E/N08PE"), DataEntry(x(r), "E2E_N00-VGT-01"), DataEntry(z(r), "10.00 USD | |
156 | + | then throw("El monto del pago no puede ser mayor que la orden de compra del artículo") | |
157 | + | else ScriptResult(WriteSet([DataEntry(q(r), "Ecosistema Bit-CO2"), DataEntry(v(r), "E2E/N08PE"), DataEntry(x(r), "E2E_N00-VGT-01"), DataEntry(z(r), "10.00 USD"), DataEntry(A(r), b), DataEntry(E(X, r), (G(X, r) + 1)), DataEntry(H(r), Q), DataEntry(J(r), R), DataEntry(L(r), S), DataEntry("Monto de Inversión | Participación, wvs", T), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(N(r), (O(r) + S)), DataEntry("Saldo de Tokens VGT", ((b - O(r)) - S)), DataEntry(C(u), (D(u) + U.amount)), DataEntry("Cta. VGT Admin del N08-PE, blockchain", "3PNRormQTw186a91mrUqLxtsYpwxc7hg3w5"), DataEntry("Cta. VGT Admin del E2E N08, blockchain", "3PR5Ag7jPBGpfr7UUUacBRT5W5WePC91BMW")]), TransferSet([ScriptTransfer(addressFromStringValue(X), (100 * S), a), ScriptTransfer(h, ((94 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)])) | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Verifier(Z) | |
163 | 163 | func aa () = { | |
164 | 164 | let m = Z | |
165 | 165 | if ($isInstanceOf(m, "SetScriptTransaction")) | |
166 | 166 | then { | |
167 | 167 | let ab = m | |
168 | 168 | sigVerify(Z.bodyBytes, Z.proofs[0], g) | |
169 | 169 | } | |
170 | - | else if ($isInstanceOf(m, "DataTransaction")) | |
171 | - | then { | |
172 | - | let ac = m | |
173 | - | true | |
174 | - | } | |
175 | - | else if ($isInstanceOf(m, "TransferTransaction")) | |
176 | - | then { | |
177 | - | let Z = m | |
178 | - | true | |
179 | - | } | |
180 | - | else false | |
170 | + | else false | |
181 | 171 | } | |
182 | 172 |
github/deemru/w8io/026f985 42.15 ms ◑