tx · 83qcqP9SJRLBK2xwJS1GE7oebzU15jvR9jipDMwiPdyv 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q: -0.01400000 Waves 2020.08.01 10:26 [1112946] smart account 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q > SELF 0.00000000 Waves
{ "type": 13, "id": "83qcqP9SJRLBK2xwJS1GE7oebzU15jvR9jipDMwiPdyv", "fee": 1400000, "feeAssetId": null, "timestamp": 1596266785777, "version": 1, "sender": "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q", "senderPublicKey": "6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67", "proofs": [ "3bAXJGtp6NaX5GvGMC8Jprgt9yrYucPedWcXVVThJpzupouRxUPfXDU68vEVhyuaJqcYie5hoN3SvSKnGCBRwyD4" ], "script": "base64:AAIDAAAAAAAAABAIARIDCgEBEgcKBQgICAEBAAAAJwAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAACHN0YXJ0UXR5AAAAAAAAADqYAAAAAAhub21QcmljZQAAAAAAAAAAAQAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIFeDoPP2LDG5bo5k3c5sKTo0JzDTjtxRuDTL9ibJxOUUAAAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSvhVyfjAEHvwKgtoZrZYO4od8/0d33wzIAAAAADnByb2plY3RBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUuDlBPckm+RCPrTJrg9abdfqbLEagJ56jAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA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nR4AAAACXJlY2lwaWVudAAAAAVieXRlcwMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAACBZb3UgY2FuJ3QgdHJhbnNmZXJyZWQgdGhpcyB0b2tlbgehgf6q", "chainId": 84, "height": 1112946, "spentComplexity": 0 } View: original | compacted Prev: 5rKvEDcTQFXin9hZoLrexok6syP4XpTfcV8XHpngutzz Next: 5JVjnq7HYPBhwiE9pYncuKsAaJY4csinJQCf2H8s5t8k Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = "none" | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q') | |
15 | 15 | ||
16 | - | let g = Address(base58' | |
16 | + | let g = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa') | |
17 | 17 | ||
18 | - | let h = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa') | |
19 | - | ||
20 | - | func i (j) = { | |
21 | - | let k = { | |
22 | - | let l = getInteger(this, j) | |
23 | - | if ($isInstanceOf(l, "Int")) | |
18 | + | func h (i) = { | |
19 | + | let j = { | |
20 | + | let k = getInteger(this, i) | |
21 | + | if ($isInstanceOf(k, "Int")) | |
24 | 22 | then { | |
25 | - | let | |
26 | - | | |
23 | + | let l = k | |
24 | + | l | |
27 | 25 | } | |
28 | 26 | else 0 | |
29 | 27 | } | |
30 | - | | |
28 | + | j | |
31 | 29 | } | |
32 | 30 | ||
33 | 31 | ||
34 | - | func | |
35 | - | let | |
36 | - | let | |
37 | - | if ($isInstanceOf( | |
32 | + | func m (i) = { | |
33 | + | let n = { | |
34 | + | let k = getString(this, i) | |
35 | + | if ($isInstanceOf(k, "String")) | |
38 | 36 | then { | |
39 | - | let | |
40 | - | | |
37 | + | let l = k | |
38 | + | l | |
41 | 39 | } | |
42 | - | else | |
40 | + | else d | |
43 | 41 | } | |
44 | - | | |
42 | + | n | |
45 | 43 | } | |
46 | 44 | ||
47 | 45 | ||
48 | - | func | |
46 | + | func o (p,q) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((p + q))))) | |
49 | 47 | ||
50 | 48 | ||
51 | - | func | |
49 | + | func r (p) = (p + "Comunidad Achuar Kapawi del Ecuador") | |
52 | 50 | ||
53 | 51 | ||
54 | - | func | |
52 | + | func s (p) = m(r(p)) | |
55 | 53 | ||
56 | 54 | ||
57 | - | func | |
55 | + | func t (u) = "01-EC/SGT - ACHUARKAPAWI-01" | |
58 | 56 | ||
59 | 57 | ||
60 | - | func | |
58 | + | func v (w) = "Reserva Amazónica Achuar-Kapawi" | |
61 | 59 | ||
62 | 60 | ||
63 | - | func | |
61 | + | func x (w) = m(v(w)) | |
64 | 62 | ||
65 | 63 | ||
66 | - | func | |
64 | + | func y (g) = "AchuarKapawi, I Etapa: PreICO" | |
67 | 65 | ||
68 | 66 | ||
69 | - | func | |
67 | + | func z (g) = m(y(g)) | |
70 | 68 | ||
71 | 69 | ||
72 | - | func | |
70 | + | func A (B) = "República del Ecuador" | |
73 | 71 | ||
74 | 72 | ||
75 | - | func | |
73 | + | func C (B) = "Fundación Ecológica 'NASE'" | |
76 | 74 | ||
77 | 75 | ||
78 | - | func | |
76 | + | func D (B) = "15000 tokens Bit-CO2" | |
79 | 77 | ||
80 | 78 | ||
81 | - | func | |
79 | + | func E (B) = "10.00 Euros" | |
82 | 80 | ||
83 | 81 | ||
84 | - | func | |
82 | + | func F (B) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
85 | 83 | ||
86 | 84 | ||
87 | - | func | |
85 | + | func G (B) = "8.80 Euros por 1 token Bit-CO2" | |
88 | 86 | ||
89 | 87 | ||
90 | - | func | |
88 | + | func H (I,B) = "Order_№:" | |
91 | 89 | ||
92 | 90 | ||
93 | - | func | |
91 | + | func J (I,B) = h(H(I, B)) | |
94 | 92 | ||
95 | 93 | ||
96 | - | func | |
94 | + | func K (B) = "Nombre del Usuario:" | |
97 | 95 | ||
98 | 96 | ||
99 | - | func | |
97 | + | func L (B) = m(K(B)) | |
100 | 98 | ||
101 | 99 | ||
102 | - | func | |
100 | + | func M (B) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
103 | 101 | ||
104 | 102 | ||
105 | - | func | |
103 | + | func N (B) = m(M(B)) | |
106 | 104 | ||
107 | 105 | ||
108 | - | func | |
106 | + | func O (B) = "País de Residencia del Usuario:" | |
109 | 107 | ||
110 | 108 | ||
111 | - | func | |
109 | + | func P (B) = m(O(B)) | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
112 | + | func Q (B) = "Descuento elejido por el Usuario, %:" | |
115 | 113 | ||
116 | 114 | ||
117 | - | func | |
115 | + | func R (B) = h(Q(B)) | |
118 | 116 | ||
119 | 117 | ||
120 | - | func | |
118 | + | func S (B) = "Orden de Compra, cantidad solicitada:" | |
121 | 119 | ||
122 | 120 | ||
123 | - | func | |
121 | + | func T (B) = h(S(B)) | |
124 | 122 | ||
125 | 123 | ||
126 | - | func | |
124 | + | func U (B) = "Tokens Ofertados en la presente etapa / Saldo:" | |
127 | 125 | ||
128 | 126 | ||
129 | - | func | |
127 | + | func V (B) = h(U(B)) | |
130 | 128 | ||
131 | 129 | ||
132 | - | func | |
130 | + | func W (p) = "Ingresos por Venta Directa / BlockChain:" | |
133 | 131 | ||
134 | 132 | ||
135 | - | func | |
133 | + | func X (p) = h(W(p)) | |
136 | 134 | ||
137 | 135 | ||
138 | - | @Callable( | |
139 | - | func deposit ( | |
140 | - | let | |
141 | - | if (( | |
136 | + | @Callable(Y) | |
137 | + | func deposit (Z) = { | |
138 | + | let aa = extract(Y.payment) | |
139 | + | if ((aa.assetId != a)) | |
142 | 140 | then throw("Use xBitCO2 tokens only for the wallet deposit") | |
143 | 141 | else { | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
142 | + | let p = toBase58String(Y.caller.bytes) | |
143 | + | let ab = { | |
144 | + | let k = getInteger(this, p) | |
145 | + | if ($isInstanceOf(k, "Int")) | |
148 | 146 | then { | |
149 | - | let | |
150 | - | | |
147 | + | let l = k | |
148 | + | l | |
151 | 149 | } | |
152 | 150 | else b | |
153 | 151 | } | |
154 | - | let | |
155 | - | WriteSet([DataEntry( | |
152 | + | let ac = (ab + aa.amount) | |
153 | + | WriteSet([DataEntry(p, ac)]) | |
156 | 154 | } | |
157 | 155 | } | |
158 | 156 | ||
159 | 157 | ||
160 | 158 | ||
161 | - | @Callable( | |
162 | - | func purchase ( | |
163 | - | let | |
164 | - | if (isDefined( | |
159 | + | @Callable(Y) | |
160 | + | func purchase (B,ad,ae,af,ag) = { | |
161 | + | let aa = extract(Y.payment) | |
162 | + | if (isDefined(aa.assetId)) | |
165 | 163 | then throw("you can adquire xBitCO2 only by Waves tokens") | |
166 | 164 | else { | |
167 | - | let | |
168 | - | let | |
169 | - | if ($isInstanceOf( | |
165 | + | let p = { | |
166 | + | let k = getString(this, r(B)) | |
167 | + | if ($isInstanceOf(k, "String")) | |
170 | 168 | then { | |
171 | - | let | |
172 | - | | |
169 | + | let l = k | |
170 | + | l | |
173 | 171 | } | |
174 | - | else | |
172 | + | else d | |
175 | 173 | } | |
176 | - | let | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
174 | + | let ah = { | |
175 | + | let k = getInteger(this, U(B)) | |
176 | + | if ($isInstanceOf(k, "Int")) | |
179 | 177 | then { | |
180 | - | let | |
181 | - | | |
178 | + | let l = k | |
179 | + | l | |
182 | 180 | } | |
183 | 181 | else b | |
184 | 182 | } | |
185 | - | let | |
186 | - | let | |
187 | - | if ($isInstanceOf( | |
183 | + | let ai = { | |
184 | + | let k = getInteger(this, W(p)) | |
185 | + | if ($isInstanceOf(k, "Int")) | |
188 | 186 | then { | |
189 | - | let | |
190 | - | | |
187 | + | let l = k | |
188 | + | l | |
191 | 189 | } | |
192 | 190 | else 0 | |
193 | 191 | } | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | if (( | |
192 | + | let aj = toBase58String(Y.caller.bytes) | |
193 | + | let ak = (((100 - af) * c) / 100) | |
194 | + | let al = (ag * ak) | |
195 | + | if ((al > aa.amount)) | |
198 | 196 | then throw("Payment Amount can't be less than item Purchase Order") | |
199 | - | else if (( | |
197 | + | else if ((aa.amount > al)) | |
200 | 198 | then throw("Payment Amount can't be higher than item Purchase Order") | |
201 | - | else ScriptResult(WriteSet([DataEntry("Tipo de Proyecto:", "Reserva Forestal Amazónica"), DataEntry("Categoría:", "Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", "República del Ecuador"), DataEntry("Nombre del Proyecto:", "Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", "01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", "Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", "Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", "2 Etapas"), DataEntry("Etapas del Proyecto, en Ejecución:", "A Definir, Fundación REDD"), DataEntry("Cantidad Total de Tokens a Emitir, I y II Etapa Pre-ICO:", "305693 tokens Bit-CO2"), DataEntry("Precio Nominal, 1 token Bit-CO2:", "10.00 Euros"), DataEntry("Máximo Descuento ofrecido, I Etapa:", "12.00 %"), DataEntry( | |
199 | + | else ScriptResult(WriteSet([DataEntry("Tipo de Proyecto:", "Reserva Forestal Amazónica"), DataEntry("Categoría:", "Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", "República del Ecuador"), DataEntry("Nombre del Proyecto:", "Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", "01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", "Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", "Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", "2 Etapas"), DataEntry("Etapas del Proyecto, en Ejecución:", "A Definir, Fundación REDD"), DataEntry("Cantidad Total de Tokens a Emitir, I y II Etapa Pre-ICO:", "305693 tokens Bit-CO2"), DataEntry("Precio Nominal, 1 token Bit-CO2:", "10.00 Euros"), DataEntry("Máximo Descuento ofrecido, I Etapa:", "12.00 %"), DataEntry(H(aj, B), (J(aj, B) + 1)), DataEntry("Total Tokens Emitidos, I Etapa Pre-ICO", b), DataEntry(K(B), ad), DataEntry(O(B), ae), DataEntry(Q(B), af), DataEntry(S(B), ag), DataEntry("tokenPrice/Supplier, waves", c), DataEntry("tokenPrice/User, waves", ak), DataEntry("investedAmount/User, waves", al), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(U(B), (ah - ag)), DataEntry(W(p), (ai + aa.amount)), DataEntry("Cuenta del Proyecto en BlockChain:", p), DataEntry("Cuenta del Proyecto en BlockChain:", base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa')]), TransferSet([ScriptTransfer(addressFromStringValue(aj), ag, a)])) | |
202 | 200 | } | |
203 | 201 | } | |
204 | 202 | ||
205 | 203 | ||
206 | - | @Verifier( | |
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
204 | + | @Verifier(am) | |
205 | + | func an () = { | |
206 | + | let k = am | |
207 | + | if ($isInstanceOf(k, "SetScriptTransaction")) | |
210 | 208 | then { | |
211 | - | let | |
212 | - | sigVerify( | |
209 | + | let ao = k | |
210 | + | sigVerify(am.bodyBytes, am.proofs[0], e) | |
213 | 211 | } | |
214 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(k, "DataTransaction")) | |
215 | 213 | then { | |
216 | - | let | |
214 | + | let ap = k | |
217 | 215 | true | |
218 | 216 | } | |
219 | - | else if ($isInstanceOf( | |
217 | + | else if ($isInstanceOf(k, "TransferTransaction")) | |
220 | 218 | then { | |
221 | - | let | |
222 | - | let | |
223 | - | if (( | |
219 | + | let am = k | |
220 | + | let aq = toBase58String(addressFromRecipient(am.recipient).bytes) | |
221 | + | if ((am.sender == f)) | |
224 | 222 | then true | |
225 | 223 | else throw("You can't transferred this token") | |
226 | 224 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let b = 15000 | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = "none" | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q') | |
15 | 15 | ||
16 | - | let g = Address(base58' | |
16 | + | let g = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa') | |
17 | 17 | ||
18 | - | let h = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa') | |
19 | - | ||
20 | - | func i (j) = { | |
21 | - | let k = { | |
22 | - | let l = getInteger(this, j) | |
23 | - | if ($isInstanceOf(l, "Int")) | |
18 | + | func h (i) = { | |
19 | + | let j = { | |
20 | + | let k = getInteger(this, i) | |
21 | + | if ($isInstanceOf(k, "Int")) | |
24 | 22 | then { | |
25 | - | let | |
26 | - | | |
23 | + | let l = k | |
24 | + | l | |
27 | 25 | } | |
28 | 26 | else 0 | |
29 | 27 | } | |
30 | - | | |
28 | + | j | |
31 | 29 | } | |
32 | 30 | ||
33 | 31 | ||
34 | - | func | |
35 | - | let | |
36 | - | let | |
37 | - | if ($isInstanceOf( | |
32 | + | func m (i) = { | |
33 | + | let n = { | |
34 | + | let k = getString(this, i) | |
35 | + | if ($isInstanceOf(k, "String")) | |
38 | 36 | then { | |
39 | - | let | |
40 | - | | |
37 | + | let l = k | |
38 | + | l | |
41 | 39 | } | |
42 | - | else | |
40 | + | else d | |
43 | 41 | } | |
44 | - | | |
42 | + | n | |
45 | 43 | } | |
46 | 44 | ||
47 | 45 | ||
48 | - | func | |
46 | + | func o (p,q) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((p + q))))) | |
49 | 47 | ||
50 | 48 | ||
51 | - | func | |
49 | + | func r (p) = (p + "Comunidad Achuar Kapawi del Ecuador") | |
52 | 50 | ||
53 | 51 | ||
54 | - | func | |
52 | + | func s (p) = m(r(p)) | |
55 | 53 | ||
56 | 54 | ||
57 | - | func | |
55 | + | func t (u) = "01-EC/SGT - ACHUARKAPAWI-01" | |
58 | 56 | ||
59 | 57 | ||
60 | - | func | |
58 | + | func v (w) = "Reserva Amazónica Achuar-Kapawi" | |
61 | 59 | ||
62 | 60 | ||
63 | - | func | |
61 | + | func x (w) = m(v(w)) | |
64 | 62 | ||
65 | 63 | ||
66 | - | func | |
64 | + | func y (g) = "AchuarKapawi, I Etapa: PreICO" | |
67 | 65 | ||
68 | 66 | ||
69 | - | func | |
67 | + | func z (g) = m(y(g)) | |
70 | 68 | ||
71 | 69 | ||
72 | - | func | |
70 | + | func A (B) = "República del Ecuador" | |
73 | 71 | ||
74 | 72 | ||
75 | - | func | |
73 | + | func C (B) = "Fundación Ecológica 'NASE'" | |
76 | 74 | ||
77 | 75 | ||
78 | - | func | |
76 | + | func D (B) = "15000 tokens Bit-CO2" | |
79 | 77 | ||
80 | 78 | ||
81 | - | func | |
79 | + | func E (B) = "10.00 Euros" | |
82 | 80 | ||
83 | 81 | ||
84 | - | func | |
82 | + | func F (B) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
85 | 83 | ||
86 | 84 | ||
87 | - | func | |
85 | + | func G (B) = "8.80 Euros por 1 token Bit-CO2" | |
88 | 86 | ||
89 | 87 | ||
90 | - | func | |
88 | + | func H (I,B) = "Order_№:" | |
91 | 89 | ||
92 | 90 | ||
93 | - | func | |
91 | + | func J (I,B) = h(H(I, B)) | |
94 | 92 | ||
95 | 93 | ||
96 | - | func | |
94 | + | func K (B) = "Nombre del Usuario:" | |
97 | 95 | ||
98 | 96 | ||
99 | - | func | |
97 | + | func L (B) = m(K(B)) | |
100 | 98 | ||
101 | 99 | ||
102 | - | func | |
100 | + | func M (B) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
103 | 101 | ||
104 | 102 | ||
105 | - | func | |
103 | + | func N (B) = m(M(B)) | |
106 | 104 | ||
107 | 105 | ||
108 | - | func | |
106 | + | func O (B) = "País de Residencia del Usuario:" | |
109 | 107 | ||
110 | 108 | ||
111 | - | func | |
109 | + | func P (B) = m(O(B)) | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
112 | + | func Q (B) = "Descuento elejido por el Usuario, %:" | |
115 | 113 | ||
116 | 114 | ||
117 | - | func | |
115 | + | func R (B) = h(Q(B)) | |
118 | 116 | ||
119 | 117 | ||
120 | - | func | |
118 | + | func S (B) = "Orden de Compra, cantidad solicitada:" | |
121 | 119 | ||
122 | 120 | ||
123 | - | func | |
121 | + | func T (B) = h(S(B)) | |
124 | 122 | ||
125 | 123 | ||
126 | - | func | |
124 | + | func U (B) = "Tokens Ofertados en la presente etapa / Saldo:" | |
127 | 125 | ||
128 | 126 | ||
129 | - | func | |
127 | + | func V (B) = h(U(B)) | |
130 | 128 | ||
131 | 129 | ||
132 | - | func | |
130 | + | func W (p) = "Ingresos por Venta Directa / BlockChain:" | |
133 | 131 | ||
134 | 132 | ||
135 | - | func | |
133 | + | func X (p) = h(W(p)) | |
136 | 134 | ||
137 | 135 | ||
138 | - | @Callable( | |
139 | - | func deposit ( | |
140 | - | let | |
141 | - | if (( | |
136 | + | @Callable(Y) | |
137 | + | func deposit (Z) = { | |
138 | + | let aa = extract(Y.payment) | |
139 | + | if ((aa.assetId != a)) | |
142 | 140 | then throw("Use xBitCO2 tokens only for the wallet deposit") | |
143 | 141 | else { | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | if ($isInstanceOf( | |
142 | + | let p = toBase58String(Y.caller.bytes) | |
143 | + | let ab = { | |
144 | + | let k = getInteger(this, p) | |
145 | + | if ($isInstanceOf(k, "Int")) | |
148 | 146 | then { | |
149 | - | let | |
150 | - | | |
147 | + | let l = k | |
148 | + | l | |
151 | 149 | } | |
152 | 150 | else b | |
153 | 151 | } | |
154 | - | let | |
155 | - | WriteSet([DataEntry( | |
152 | + | let ac = (ab + aa.amount) | |
153 | + | WriteSet([DataEntry(p, ac)]) | |
156 | 154 | } | |
157 | 155 | } | |
158 | 156 | ||
159 | 157 | ||
160 | 158 | ||
161 | - | @Callable( | |
162 | - | func purchase ( | |
163 | - | let | |
164 | - | if (isDefined( | |
159 | + | @Callable(Y) | |
160 | + | func purchase (B,ad,ae,af,ag) = { | |
161 | + | let aa = extract(Y.payment) | |
162 | + | if (isDefined(aa.assetId)) | |
165 | 163 | then throw("you can adquire xBitCO2 only by Waves tokens") | |
166 | 164 | else { | |
167 | - | let | |
168 | - | let | |
169 | - | if ($isInstanceOf( | |
165 | + | let p = { | |
166 | + | let k = getString(this, r(B)) | |
167 | + | if ($isInstanceOf(k, "String")) | |
170 | 168 | then { | |
171 | - | let | |
172 | - | | |
169 | + | let l = k | |
170 | + | l | |
173 | 171 | } | |
174 | - | else | |
172 | + | else d | |
175 | 173 | } | |
176 | - | let | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
174 | + | let ah = { | |
175 | + | let k = getInteger(this, U(B)) | |
176 | + | if ($isInstanceOf(k, "Int")) | |
179 | 177 | then { | |
180 | - | let | |
181 | - | | |
178 | + | let l = k | |
179 | + | l | |
182 | 180 | } | |
183 | 181 | else b | |
184 | 182 | } | |
185 | - | let | |
186 | - | let | |
187 | - | if ($isInstanceOf( | |
183 | + | let ai = { | |
184 | + | let k = getInteger(this, W(p)) | |
185 | + | if ($isInstanceOf(k, "Int")) | |
188 | 186 | then { | |
189 | - | let | |
190 | - | | |
187 | + | let l = k | |
188 | + | l | |
191 | 189 | } | |
192 | 190 | else 0 | |
193 | 191 | } | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | if (( | |
192 | + | let aj = toBase58String(Y.caller.bytes) | |
193 | + | let ak = (((100 - af) * c) / 100) | |
194 | + | let al = (ag * ak) | |
195 | + | if ((al > aa.amount)) | |
198 | 196 | then throw("Payment Amount can't be less than item Purchase Order") | |
199 | - | else if (( | |
197 | + | else if ((aa.amount > al)) | |
200 | 198 | then throw("Payment Amount can't be higher than item Purchase Order") | |
201 | - | else ScriptResult(WriteSet([DataEntry("Tipo de Proyecto:", "Reserva Forestal Amazónica"), DataEntry("Categoría:", "Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", "República del Ecuador"), DataEntry("Nombre del Proyecto:", "Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", "01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", "Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", "Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", "2 Etapas"), DataEntry("Etapas del Proyecto, en Ejecución:", "A Definir, Fundación REDD"), DataEntry("Cantidad Total de Tokens a Emitir, I y II Etapa Pre-ICO:", "305693 tokens Bit-CO2"), DataEntry("Precio Nominal, 1 token Bit-CO2:", "10.00 Euros"), DataEntry("Máximo Descuento ofrecido, I Etapa:", "12.00 %"), DataEntry( | |
199 | + | else ScriptResult(WriteSet([DataEntry("Tipo de Proyecto:", "Reserva Forestal Amazónica"), DataEntry("Categoría:", "Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", "República del Ecuador"), DataEntry("Nombre del Proyecto:", "Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", "01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", "Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", "Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", "2 Etapas"), DataEntry("Etapas del Proyecto, en Ejecución:", "A Definir, Fundación REDD"), DataEntry("Cantidad Total de Tokens a Emitir, I y II Etapa Pre-ICO:", "305693 tokens Bit-CO2"), DataEntry("Precio Nominal, 1 token Bit-CO2:", "10.00 Euros"), DataEntry("Máximo Descuento ofrecido, I Etapa:", "12.00 %"), DataEntry(H(aj, B), (J(aj, B) + 1)), DataEntry("Total Tokens Emitidos, I Etapa Pre-ICO", b), DataEntry(K(B), ad), DataEntry(O(B), ae), DataEntry(Q(B), af), DataEntry(S(B), ag), DataEntry("tokenPrice/Supplier, waves", c), DataEntry("tokenPrice/User, waves", ak), DataEntry("investedAmount/User, waves", al), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(U(B), (ah - ag)), DataEntry(W(p), (ai + aa.amount)), DataEntry("Cuenta del Proyecto en BlockChain:", p), DataEntry("Cuenta del Proyecto en BlockChain:", base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa')]), TransferSet([ScriptTransfer(addressFromStringValue(aj), ag, a)])) | |
202 | 200 | } | |
203 | 201 | } | |
204 | 202 | ||
205 | 203 | ||
206 | - | @Verifier( | |
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
204 | + | @Verifier(am) | |
205 | + | func an () = { | |
206 | + | let k = am | |
207 | + | if ($isInstanceOf(k, "SetScriptTransaction")) | |
210 | 208 | then { | |
211 | - | let | |
212 | - | sigVerify( | |
209 | + | let ao = k | |
210 | + | sigVerify(am.bodyBytes, am.proofs[0], e) | |
213 | 211 | } | |
214 | - | else if ($isInstanceOf( | |
212 | + | else if ($isInstanceOf(k, "DataTransaction")) | |
215 | 213 | then { | |
216 | - | let | |
214 | + | let ap = k | |
217 | 215 | true | |
218 | 216 | } | |
219 | - | else if ($isInstanceOf( | |
217 | + | else if ($isInstanceOf(k, "TransferTransaction")) | |
220 | 218 | then { | |
221 | - | let | |
222 | - | let | |
223 | - | if (( | |
219 | + | let am = k | |
220 | + | let aq = toBase58String(addressFromRecipient(am.recipient).bytes) | |
221 | + | if ((am.sender == f)) | |
224 | 222 | then true | |
225 | 223 | else throw("You can't transferred this token") | |
226 | 224 | } | |
227 | 225 | else false | |
228 | 226 | } | |
229 | 227 |
github/deemru/w8io/026f985 100.22 ms ◑