tx · FV9d1YBDwV1JZd482PBtmStBhavETMCsGcYXRrzPxdig

3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs:  -0.00600000 Waves

2022.07.17 15:57 [2143781] smart account 3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs > SELF 0.00000000 Waves

{ "type": 13, "id": "FV9d1YBDwV1JZd482PBtmStBhavETMCsGcYXRrzPxdig", "fee": 600000, "feeAssetId": null, "timestamp": 1658062663102, "version": 2, "chainId": 84, "sender": "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs", "senderPublicKey": "FCs6gVPFo4sbN8f7nW2gEm36jeUPWyYdt51xzCTY1Lgi", "proofs": [ "23EDMCbBga8VQtNBLXUBLeaD8GYjceHPeoW9JRGwkbewffA4Q1LcjS8fc7hLTt6k3iR2RzTKUmjzqgDiC39TKQV3" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAACEAAAAAA1ZHVAEAAAAgAPs5y/R2CqiyWSxNldt26J/wx9NuUlms6dNVusQnAScAAAAADXN0YXJ0VG90YWxRdHkAAAAAAAAPQkAAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAHbm9tdmd0dQAAAAAAAAAACgAAAAAFdXNkbncAAAAAAAAAAd4AAAAAC093bmVyUHViS2V5AQAAACDTDabcI8LzB9tWS9lEjmA4w1eYCLI6b207rRBMqkJEGwAAAAAKYWRtTjA4VkdUVwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMp5OFCu+8OtYaQx5WnOCz/kWDHG7i+bOQAAAAARYWRtTjA4c3lzVkdUUGFpc1cJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQbjYxTyT8Q7+WwnaQm5Sj/Z1eJ0rcNywQBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRj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Complexity": 0 } View: original | compacted Prev: 7Ktd1GMJqhJoTnvCqPv3mYm5Do93LmyExNG4U6vYBCF1 Next: 7JfPcsspC4RPEGrAVnAwneEaBVHG4196mtsFD1CHtsRT Diff:
OldNewDifferences
7777 func B (r) = o(A(r))
7878
7979
80-func C (u) = "Fondos | Monto recaudado:"
80+func C (u) = "Fondos | Monto recaudado, wvs"
8181
8282
8383 func D (u) = j(C(u))
154154 then throw("Payment Amount can't be less than item Purchase Order")
155155 else if ((U.amount > T))
156156 then throw("Payment Amount can't be higher than item Purchase Order")
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("Suma transmitida a E2E/Nodo-08, 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. del Progr-VGT-01 en BlockChain:", "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs")]), TransferSet([ScriptTransfer(addressFromStringValue(X), S, a), ScriptTransfer(h, ((95 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)]))
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("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), 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. del Progr-VGT-01 en BlockChain:", "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs")]), TransferSet([ScriptTransfer(addressFromStringValue(X), (10000 * S), a), ScriptTransfer(h, ((75 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)]))
158158 }
159159 }
160160
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'14qBkVfMxkWyR4sjgXVfDanaemoCbhuwy9ptGtUt53Xc'
55
66 let b = 1000000
77
88 let c = 100000000
99
1010 let d = "none"
1111
1212 let e = 10
1313
1414 let f = 478
1515
1616 let g = base58'FCs6gVPFo4sbN8f7nW2gEm36jeUPWyYdt51xzCTY1Lgi'
1717
1818 let h = Address(base58'3N8NfVBXHM7yKRy92ghKc5MJYFuyFXhsDXn')
1919
2020 let i = Address(base58'3MrRmb3ANQy1o15LbHRNhiNHjYvXnoSLMCo')
2121
2222 func j (k) = {
2323 let l = {
2424 let m = getInteger(this, k)
2525 if ($isInstanceOf(m, "Int"))
2626 then {
2727 let n = m
2828 n
2929 }
3030 else 0
3131 }
3232 l
3333 }
3434
3535
3636 func o (k) = {
3737 let p = {
3838 let m = getString(this, k)
3939 if ($isInstanceOf(m, "String"))
4040 then {
4141 let n = m
4242 n
4343 }
4444 else d
4545 }
4646 p
4747 }
4848
4949
5050 func q (r) = "Emisor:"
5151
5252
5353 func s (r) = o(q(r))
5454
5555
5656 func t (u) = (u + "Nodo-08")
5757
5858
5959 func v (r) = "Nodo-País:"
6060
6161
6262 func w (r) = o(v(r))
6363
6464
6565 func x (r) = "Código:"
6666
6767
6868 func y (r) = o(x(r))
6969
7070
7171 func z (r) = "Precio Nominal, 1 VGT:"
7272
7373
7474 func A (r) = "Cantidad de tokens emitidos:"
7575
7676
7777 func B (r) = o(A(r))
7878
7979
80-func C (u) = "Fondos | Monto recaudado:"
80+func C (u) = "Fondos | Monto recaudado, wvs"
8181
8282
8383 func D (u) = j(C(u))
8484
8585
8686 func E (F,r) = "Order_№:"
8787
8888
8989 func G (F,r) = j(E(F, r))
9090
9191
9292 func H (r) = "Documento Nacional de Identidad, DNI:"
9393
9494
9595 func I (r) = o(H(r))
9696
9797
9898 func J (r) = "País de Residencia del Usuario:"
9999
100100
101101 func K (r) = o(J(r))
102102
103103
104104 func L (r) = "Cantidad de tokens adquiridos:"
105105
106106
107107 func M (r) = j(L(r))
108108
109109
110110 func N (r) = "Cantidad de tokens VGT realizados:"
111111
112112
113113 func O (r) = j(N(r))
114114
115115
116116 @Callable(P)
117117 func purchaseVGT (r,Q,R,S,T) = {
118118 let U = extract(P.payment)
119119 if (isDefined(U.assetId))
120120 then throw("Ud. puede adquirir tokens VGT usando WavesKeeper y su token de pago en Waves.")
121121 else {
122122 let u = {
123123 let m = getString(this, t(r))
124124 if ($isInstanceOf(m, "String"))
125125 then {
126126 let n = m
127127 n
128128 }
129129 else d
130130 }
131131 let V = {
132132 let m = getInteger(this, N(r))
133133 if ($isInstanceOf(m, "Int"))
134134 then {
135135 let n = m
136136 n
137137 }
138138 else 0
139139 }
140140 let W = {
141141 let m = getInteger(this, C(u))
142142 if ($isInstanceOf(m, "Int"))
143143 then {
144144 let n = m
145145 n
146146 }
147147 else 0
148148 }
149149 let X = toBase58String(P.caller.bytes)
150150 let Y = ((e * c) / f)
151151 if ((0 >= ((b - V) - S)))
152152 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
153153 else if ((T > U.amount))
154154 then throw("Payment Amount can't be less than item Purchase Order")
155155 else if ((U.amount > T))
156156 then throw("Payment Amount can't be higher than item Purchase Order")
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("Suma transmitida a E2E/Nodo-08, 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. del Progr-VGT-01 en BlockChain:", "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs")]), TransferSet([ScriptTransfer(addressFromStringValue(X), S, a), ScriptTransfer(h, ((95 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)]))
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("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), 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. del Progr-VGT-01 en BlockChain:", "3NALbZy5kRMnNmHrP7WUsgWUf3tCX7vsbAs")]), TransferSet([ScriptTransfer(addressFromStringValue(X), (10000 * S), a), ScriptTransfer(h, ((75 * U.amount) / 100), unit), ScriptTransfer(i, ((5 * U.amount) / 100), unit)]))
158158 }
159159 }
160160
161161
162162 @Verifier(Z)
163163 func aa () = {
164164 let m = Z
165165 if ($isInstanceOf(m, "SetScriptTransaction"))
166166 then {
167167 let ab = m
168168 sigVerify(Z.bodyBytes, Z.proofs[0], g)
169169 }
170170 else if ($isInstanceOf(m, "DataTransaction"))
171171 then {
172172 let ac = m
173173 true
174174 }
175175 else if ($isInstanceOf(m, "TransferTransaction"))
176176 then {
177177 let Z = m
178178 true
179179 }
180180 else false
181181 }
182182

github/deemru/w8io/169f3d6 
40.06 ms