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