tx · AVRuaY6wd6t3rQnEPRjug8hgk5VhLCGZmXRwnaGysHRL 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q: -0.01400000 Waves 2020.07.31 23:24 [1112281] smart account 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q > SELF 0.00000000 Waves
{ "type": 13, "id": "AVRuaY6wd6t3rQnEPRjug8hgk5VhLCGZmXRwnaGysHRL", "fee": 1400000, "feeAssetId": null, "timestamp": 1596227084052, "version": 1, "sender": "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q", "senderPublicKey": "6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67", "proofs": [ "5PrGFiEMyMX6YoiY5k2rbLiYEJoQB8GKQ2MHRuyQZndVU4rgTDwq5QqvVTq9mni515WHiu5wq3jhdE5HFsqpTYhV" ], "script": "base64:AAIDAAAAAAAAABAIARIDCgEBEgcKBQgICAEBAAAAKAAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAACHN0YXJ0UXR5AAAAAAAAADqYAAAAAAhub21QcmljZQAAAAAAAAAAAQAAAAADd3ZzAAAAAAAAmJaAAAAAAAROT05FAgAAAARub25lAAAAAAtPd25lclB1YktleQEAAAAgV4Og8/YsMblujmTdzmwpOjQnMNOO3FG4NMv2JsnE5RQAAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVK+FXJ+MAQe/AqC2hmtlg7ih3z/R3ffDMgAAAAAOcHJvamVjdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS4OUE9ySb5EI+tMmuD1pt1+pssRqAnnqMBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAA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QACWAAAAAEICQAEJAAAAAEIBQAAAAJ0eAAAAAlyZWNpcGllbnQAAAAFYnl0ZXMDCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAgWW91IGNhbid0IHRyYW5zZmVycmVkIHRoaXMgdG9rZW4HwL6MVA==", "chainId": 84, "height": 1112281, "spentComplexity": 0 } View: original | compacted Prev: 8rEiqyXLbKBGuXdk8z8iDDEbkq7FVWbKR4e1GGGVNPuh Next: 5rKvEDcTQFXin9hZoLrexok6syP4XpTfcV8XHpngutzz Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let startQty = 15000 | |
7 | 7 | ||
8 | - | let nomPrice = | |
8 | + | let nomPrice = 1 | |
9 | 9 | ||
10 | 10 | let wvs = 10000000 | |
11 | 11 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let startQty = 15000 | |
7 | 7 | ||
8 | - | let nomPrice = | |
8 | + | let nomPrice = 1 | |
9 | 9 | ||
10 | 10 | let wvs = 10000000 | |
11 | 11 | ||
12 | 12 | let NONE = "none" | |
13 | 13 | ||
14 | 14 | let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67' | |
15 | 15 | ||
16 | 16 | let issuer = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q') | |
17 | 17 | ||
18 | 18 | let projectAddress = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa') | |
19 | 19 | ||
20 | 20 | func getNumberByKey (key) = { | |
21 | 21 | let num = match getInteger(this, key) { | |
22 | 22 | case a: Int => | |
23 | 23 | a | |
24 | 24 | case _ => | |
25 | 25 | 0 | |
26 | 26 | } | |
27 | 27 | num | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getStrByKey (key) = { | |
32 | 32 | let str = match getString(this, key) { | |
33 | 33 | case a: String => | |
34 | 34 | a | |
35 | 35 | case _ => | |
36 | 36 | NONE | |
37 | 37 | } | |
38 | 38 | str | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getKeyItem (supplier,title) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + title))))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getKeyPropietario (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getValuePropietario (supplier) = getStrByKey(getKeyPropietario(supplier)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getKeyProjectCode (projectCode) = "01-EC/SGT - ACHUARKAPAWI-01" | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getValueProjectName (projectName) = getStrByKey(getKeyProjectName(projectName)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func getKeyProjectCountry (item) = "República del Ecuador" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getKeyProjectDev (item) = "Fundación Ecológica 'NASE'" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func getKeyTokenStartQty (item) = "15000 tokens Bit-CO2" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getKeyNomTokenPrice (item) = "10.00 Euros" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getKeyUserName (item) = "Nombre del Usuario:" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getValueUserName (item) = getStrByKey(getKeyUserName(item)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getKeyBalanceSupplierSellIncome (supplier) = "Ingresos por Venta Directa / BlockChain:" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getValueBalanceSupplierSellIncome (supplier) = getNumberByKey(getKeyBalanceSupplierSellIncome(supplier)) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func deposit (amount) = { | |
134 | 134 | let pmt = extract(i.payment) | |
135 | 135 | if ((pmt.assetId != xBitCO2)) | |
136 | 136 | then throw("Use cBitCO2 tokens only for the wallet deposit") | |
137 | 137 | else { | |
138 | 138 | let supplier = toBase58String(i.caller.bytes) | |
139 | 139 | let currentAmount = match getInteger(this, supplier) { | |
140 | 140 | case a: Int => | |
141 | 141 | a | |
142 | 142 | case _ => | |
143 | 143 | startQty | |
144 | 144 | } | |
145 | 145 | let newAmount = (currentAmount + pmt.amount) | |
146 | 146 | WriteSet([DataEntry(supplier, newAmount)]) | |
147 | 147 | } | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(i) | |
153 | 153 | func purchase (item,userName,userCountry,userDiscount,orderQty) = { | |
154 | 154 | let pmt = extract(i.payment) | |
155 | 155 | if (isDefined(pmt.assetId)) | |
156 | 156 | then throw("you can adquire xBitCO2 only by Waves tokens") | |
157 | 157 | else { | |
158 | 158 | let supplier = match getString(this, getKeyPropietario(item)) { | |
159 | 159 | case a: String => | |
160 | 160 | a | |
161 | 161 | case _ => | |
162 | 162 | NONE | |
163 | 163 | } | |
164 | 164 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | startQty | |
169 | 169 | } | |
170 | 170 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplierSellIncome(supplier)) { | |
171 | 171 | case a: Int => | |
172 | 172 | a | |
173 | 173 | case _ => | |
174 | 174 | 0 | |
175 | 175 | } | |
176 | 176 | let userAddress = toBase58String(i.caller.bytes) | |
177 | 177 | let buyerTokenPrice = ((((100 - userDiscount) * nomPrice) * wvs) / 100) | |
178 | 178 | let totalAmount = (orderQty * buyerTokenPrice) | |
179 | 179 | if ((totalAmount > pmt.amount)) | |
180 | 180 | then throw("Payment Amount can't be less than item Purchase Order") | |
181 | 181 | else if ((pmt.amount > totalAmount)) | |
182 | 182 | then throw("Payment Amount can't be higher than item Purchase Order") | |
183 | 183 | 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(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total Tokens Emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", buyerTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplierSellIncome(supplier), (balanceSupplier + pmt.amount)), DataEntry("Cuenta del Proyecto en BlockChain:", supplier), DataEntry("Cuenta del Proyecto en BlockChain:", base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa')]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Verifier(tx) | |
189 | 189 | func verify () = match tx { | |
190 | 190 | case t: SetScriptTransaction => | |
191 | 191 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
192 | 192 | case d: DataTransaction => | |
193 | 193 | true | |
194 | 194 | case tx: TransferTransaction => | |
195 | 195 | let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes) | |
196 | 196 | if ((tx.sender == issuer)) | |
197 | 197 | then true | |
198 | 198 | else throw("You can't transferred this token") | |
199 | 199 | case _ => | |
200 | 200 | false | |
201 | 201 | } | |
202 | 202 |
github/deemru/w8io/026f985 48.76 ms ◑