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+RCPrTJrg9abdfqbLEagJ56jAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAA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AnR4AAAACXJlY2lwaWVudAAAAAVieXRlcwMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAACBZb3UgY2FuJ3QgdHJhbnNmZXJyZWQgdGhpcyB0b2tlbgehgf6q", "chainId": 84, "height": 1112946, "spentComplexity": 0 } View: original | compacted Prev: 5rKvEDcTQFXin9hZoLrexok6syP4XpTfcV8XHpngutzz Next: 5JVjnq7HYPBhwiE9pYncuKsAaJY4csinJQCf2H8s5t8k Diff:
OldNewDifferences
66 let startQty = 15000
77
88 let nomPrice = 1
9-
10-let wvs = 10000000
119
1210 let NONE = "none"
1311
180178 then throw("Payment Amount can't be less than item Purchase Order")
181179 else if ((pmt.amount > totalAmount))
182180 then throw("Payment Amount can't be higher than item Purchase Order")
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)]))
181+ 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, waves", nomPrice), DataEntry("tokenPrice/User, waves", buyerTokenPrice), DataEntry("investedAmount/User, waves", 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)]))
184182 }
185183 }
186184
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
55
66 let startQty = 15000
77
88 let nomPrice = 1
9-
10-let wvs = 10000000
119
1210 let NONE = "none"
1311
1412 let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67'
1513
1614 let issuer = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q')
1715
1816 let projectAddress = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa')
1917
2018 func getNumberByKey (key) = {
2119 let num = match getInteger(this, key) {
2220 case a: Int =>
2321 a
2422 case _ =>
2523 0
2624 }
2725 num
2826 }
2927
3028
3129 func getStrByKey (key) = {
3230 let str = match getString(this, key) {
3331 case a: String =>
3432 a
3533 case _ =>
3634 NONE
3735 }
3836 str
3937 }
4038
4139
4240 func getKeyItem (supplier,title) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + title)))))
4341
4442
4543 func getKeyPropietario (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
4644
4745
4846 func getValuePropietario (supplier) = getStrByKey(getKeyPropietario(supplier))
4947
5048
5149 func getKeyProjectCode (projectCode) = "01-EC/SGT - ACHUARKAPAWI-01"
5250
5351
5452 func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi"
5553
5654
5755 func getValueProjectName (projectName) = getStrByKey(getKeyProjectName(projectName))
5856
5957
6058 func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO"
6159
6260
6361 func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress))
6462
6563
6664 func getKeyProjectCountry (item) = "República del Ecuador"
6765
6866
6967 func getKeyProjectDev (item) = "Fundación Ecológica 'NASE'"
7068
7169
7270 func getKeyTokenStartQty (item) = "15000 tokens Bit-CO2"
7371
7472
7573 func getKeyNomTokenPrice (item) = "10.00 Euros"
7674
7775
7876 func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2"
7977
8078
8179 func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2"
8280
8381
8482 func getKeyUserItemCounter (user,item) = "Order_№:"
8583
8684
8785 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
8886
8987
9088 func getKeyUserName (item) = "Nombre del Usuario:"
9189
9290
9391 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
9492
9593
9694 func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:"
9795
9896
9997 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
10098
10199
102100 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
103101
104102
105103 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
106104
107105
108106 func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:"
109107
110108
111109 func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item))
112110
113111
114112 func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:"
115113
116114
117115 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
118116
119117
120118 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
121119
122120
123121 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
124122
125123
126124 func getKeyBalanceSupplierSellIncome (supplier) = "Ingresos por Venta Directa / BlockChain:"
127125
128126
129127 func getValueBalanceSupplierSellIncome (supplier) = getNumberByKey(getKeyBalanceSupplierSellIncome(supplier))
130128
131129
132130 @Callable(i)
133131 func deposit (amount) = {
134132 let pmt = extract(i.payment)
135133 if ((pmt.assetId != xBitCO2))
136134 then throw("Use xBitCO2 tokens only for the wallet deposit")
137135 else {
138136 let supplier = toBase58String(i.caller.bytes)
139137 let currentAmount = match getInteger(this, supplier) {
140138 case a: Int =>
141139 a
142140 case _ =>
143141 startQty
144142 }
145143 let newAmount = (currentAmount + pmt.amount)
146144 WriteSet([DataEntry(supplier, newAmount)])
147145 }
148146 }
149147
150148
151149
152150 @Callable(i)
153151 func purchase (item,userName,userCountry,userDiscount,orderQty) = {
154152 let pmt = extract(i.payment)
155153 if (isDefined(pmt.assetId))
156154 then throw("you can adquire xBitCO2 only by Waves tokens")
157155 else {
158156 let supplier = match getString(this, getKeyPropietario(item)) {
159157 case a: String =>
160158 a
161159 case _ =>
162160 NONE
163161 }
164162 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
165163 case a: Int =>
166164 a
167165 case _ =>
168166 startQty
169167 }
170168 let balanceSupplier = match getInteger(this, getKeyBalanceSupplierSellIncome(supplier)) {
171169 case a: Int =>
172170 a
173171 case _ =>
174172 0
175173 }
176174 let userAddress = toBase58String(i.caller.bytes)
177175 let buyerTokenPrice = (((100 - userDiscount) * nomPrice) / 100)
178176 let totalAmount = (orderQty * buyerTokenPrice)
179177 if ((totalAmount > pmt.amount))
180178 then throw("Payment Amount can't be less than item Purchase Order")
181179 else if ((pmt.amount > totalAmount))
182180 then throw("Payment Amount can't be higher than item Purchase Order")
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)]))
181+ 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, waves", nomPrice), DataEntry("tokenPrice/User, waves", buyerTokenPrice), DataEntry("investedAmount/User, waves", 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)]))
184182 }
185183 }
186184
187185
188186 @Verifier(tx)
189187 func verify () = match tx {
190188 case t: SetScriptTransaction =>
191189 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
192190 case d: DataTransaction =>
193191 true
194192 case tx: TransferTransaction =>
195193 let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes)
196194 if ((tx.sender == issuer))
197195 then true
198196 else throw("You can't transferred this token")
199197 case _ =>
200198 false
201199 }
202200

github/deemru/w8io/026f985 
45.02 ms