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+pssRqAnnqMBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAA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CQACWAAAAAEICQAEJAAAAAEIBQAAAAJ0eAAAAAlyZWNpcGllbnQAAAAFYnl0ZXMDCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAgWW91IGNhbid0IHRyYW5zZmVycmVkIHRoaXMgdG9rZW4HwL6MVA==", "chainId": 84, "height": 1112281, "spentComplexity": 0 } View: original | compacted Prev: 8rEiqyXLbKBGuXdk8z8iDDEbkq7FVWbKR4e1GGGVNPuh Next: 5rKvEDcTQFXin9hZoLrexok6syP4XpTfcV8XHpngutzz Diff:
OldNewDifferences
55
66 let startQty = 15000
77
8-let nomPrice = 10
8+let nomPrice = 1
99
1010 let wvs = 10000000
1111
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
8-let nomPrice = 10
8+let nomPrice = 1
99
1010 let wvs = 10000000
1111
1212 let NONE = "none"
1313
1414 let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67'
1515
1616 let issuer = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q')
1717
1818 let projectAddress = Address(base58'3N6iAhMV5VZ31hJSJT4e3DoaBoiHCPxbZNa')
1919
2020 func getNumberByKey (key) = {
2121 let num = match getInteger(this, key) {
2222 case a: Int =>
2323 a
2424 case _ =>
2525 0
2626 }
2727 num
2828 }
2929
3030
3131 func getStrByKey (key) = {
3232 let str = match getString(this, key) {
3333 case a: String =>
3434 a
3535 case _ =>
3636 NONE
3737 }
3838 str
3939 }
4040
4141
4242 func getKeyItem (supplier,title) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + title)))))
4343
4444
4545 func getKeyPropietario (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
4646
4747
4848 func getValuePropietario (supplier) = getStrByKey(getKeyPropietario(supplier))
4949
5050
5151 func getKeyProjectCode (projectCode) = "01-EC/SGT - ACHUARKAPAWI-01"
5252
5353
5454 func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi"
5555
5656
5757 func getValueProjectName (projectName) = getStrByKey(getKeyProjectName(projectName))
5858
5959
6060 func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO"
6161
6262
6363 func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress))
6464
6565
6666 func getKeyProjectCountry (item) = "República del Ecuador"
6767
6868
6969 func getKeyProjectDev (item) = "Fundación Ecológica 'NASE'"
7070
7171
7272 func getKeyTokenStartQty (item) = "15000 tokens Bit-CO2"
7373
7474
7575 func getKeyNomTokenPrice (item) = "10.00 Euros"
7676
7777
7878 func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2"
7979
8080
8181 func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2"
8282
8383
8484 func getKeyUserItemCounter (user,item) = "Order_№:"
8585
8686
8787 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
8888
8989
9090 func getKeyUserName (item) = "Nombre del Usuario:"
9191
9292
9393 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
9494
9595
9696 func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:"
9797
9898
9999 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
100100
101101
102102 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
103103
104104
105105 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
106106
107107
108108 func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:"
109109
110110
111111 func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item))
112112
113113
114114 func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:"
115115
116116
117117 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
118118
119119
120120 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
121121
122122
123123 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
124124
125125
126126 func getKeyBalanceSupplierSellIncome (supplier) = "Ingresos por Venta Directa / BlockChain:"
127127
128128
129129 func getValueBalanceSupplierSellIncome (supplier) = getNumberByKey(getKeyBalanceSupplierSellIncome(supplier))
130130
131131
132132 @Callable(i)
133133 func deposit (amount) = {
134134 let pmt = extract(i.payment)
135135 if ((pmt.assetId != xBitCO2))
136136 then throw("Use cBitCO2 tokens only for the wallet deposit")
137137 else {
138138 let supplier = toBase58String(i.caller.bytes)
139139 let currentAmount = match getInteger(this, supplier) {
140140 case a: Int =>
141141 a
142142 case _ =>
143143 startQty
144144 }
145145 let newAmount = (currentAmount + pmt.amount)
146146 WriteSet([DataEntry(supplier, newAmount)])
147147 }
148148 }
149149
150150
151151
152152 @Callable(i)
153153 func purchase (item,userName,userCountry,userDiscount,orderQty) = {
154154 let pmt = extract(i.payment)
155155 if (isDefined(pmt.assetId))
156156 then throw("you can adquire xBitCO2 only by Waves tokens")
157157 else {
158158 let supplier = match getString(this, getKeyPropietario(item)) {
159159 case a: String =>
160160 a
161161 case _ =>
162162 NONE
163163 }
164164 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 startQty
169169 }
170170 let balanceSupplier = match getInteger(this, getKeyBalanceSupplierSellIncome(supplier)) {
171171 case a: Int =>
172172 a
173173 case _ =>
174174 0
175175 }
176176 let userAddress = toBase58String(i.caller.bytes)
177177 let buyerTokenPrice = ((((100 - userDiscount) * nomPrice) * wvs) / 100)
178178 let totalAmount = (orderQty * buyerTokenPrice)
179179 if ((totalAmount > pmt.amount))
180180 then throw("Payment Amount can't be less than item Purchase Order")
181181 else if ((pmt.amount > totalAmount))
182182 then throw("Payment Amount can't be higher than item Purchase Order")
183183 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)]))
184184 }
185185 }
186186
187187
188188 @Verifier(tx)
189189 func verify () = match tx {
190190 case t: SetScriptTransaction =>
191191 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
192192 case d: DataTransaction =>
193193 true
194194 case tx: TransferTransaction =>
195195 let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes)
196196 if ((tx.sender == issuer))
197197 then true
198198 else throw("You can't transferred this token")
199199 case _ =>
200200 false
201201 }
202202

github/deemru/w8io/026f985 
48.76 ms