tx · Bro2913rhsobSodyqitc4TVXeE5yW35VPBqLWWCN9Gk3

3MySPM4gzNE8iefJDpekrCeXLAXwnvWhU2o:  -0.01000000 Waves

2021.11.03 22:07 [1775195] smart account 3MySPM4gzNE8iefJDpekrCeXLAXwnvWhU2o > SELF 0.00000000 Waves

{ "type": 13, "id": "Bro2913rhsobSodyqitc4TVXeE5yW35VPBqLWWCN9Gk3", "fee": 1000000, "feeAssetId": null, "timestamp": 1635966455984, "version": 2, "chainId": 84, "sender": "3MySPM4gzNE8iefJDpekrCeXLAXwnvWhU2o", "senderPublicKey": "5qTzfYpQxgho51JhHuiVXkksJnxe9n2PzSmXtEto8VyG", "proofs": [ "283d3pNDE9hHRA2mRBy2LvRczYdjiWYgLmMHDa4RZVTXhEuvdQu9SUEGvatrvNrfzAVmh1knXXp8DPCHebHbv8MN" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYBCAgICAgAAAAuAAAAAAd5Qml0Q08yAQAAACBpjNT/200BfejLeLffs4/BXDw5W+kMeWgNIY5n6ZtLrQAAAAAQVG9rVG9WZW5kZWRvclF0eQAAAAAAAAAnEAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIEfZJiTjEbCW1ePg4KFg875nRP72kK8UjQkTbQvjiwZHAAAAAAZjdGFBcHACAAAAIzNNeVNQTTRnek5FOGllZkpEcGVrckNlWExBWHdudldoVTJvAAAAABZlY3hhY2h4a2FwYXdpeDAxcHJlaWNvCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU3xPba43MIrTdBzkj1KIh5RJhI+0VJu6nAAAAABxlTTN4TjA4eE4wOHBleHByb2R4YWNBcHB4d3ZzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUZXtlAwFojd9til2zY8ueY3NTvHmic+ofAAAAAAp0eGFjeE4wOHBlCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU2H+zv6hoVfC6umL2/Iw6/XNeoYjeAvgKAAAAAApOMDhwZXhwc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 1775195, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4es8ARherweHnVK5NmjghwFSGUPaoRHcVbkz2aa8GhM8 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
5+
6+let TokToVendedorQty = 10000
7+
8+let NONE = "none"
9+
10+let OwnerPubKey = base58'5qTzfYpQxgho51JhHuiVXkksJnxe9n2PzSmXtEto8VyG'
11+
12+let ctaApp = "3MySPM4gzNE8iefJDpekrCeXLAXwnvWhU2o"
13+
14+let ecxachxkapawix01preico = Address(base58'3NAFcFPrj1wWrVMcsJMLvWBzmBt93oLh6w8')
15+
16+let eM3xN08xN08pexprodxacAppxwvs = Address(base58'3MyAfquD1K4mvWJNDLVPRG4BWiAW3RQUpXG')
17+
18+let txacxN08pe = Address(base58'3N9epiFphbL3Sf25xMASL1jAPxDH5D8vX85')
19+
20+let N08pexprod = Address(base58'3N4c7DzgBcyVWTEv9N11vNpg4B1bfg5ryfJ')
21+
22+let eurou = 116
23+
24+let usdnw = 2539
25+
26+let bco2e = 100000
27+
28+let bitdscto = 3
29+
30+let pIP = 10
31+
32+let eIP = 1
33+
34+let uBP = 7
35+
36+let sBP = 2
37+
38+let eBP = 2
39+
40+let relacdcto = 11
41+
42+func getNumberByKey (key) = {
43+ let num = match getInteger(this, key) {
44+ case a: Int =>
45+ a
46+ case _ =>
47+ 0
48+ }
49+ num
50+ }
51+
52+
53+func getStrByKey (key) = {
54+ let str = match getString(this, key) {
55+ case a: String =>
56+ a
57+ case _ =>
58+ NONE
59+ }
60+ str
61+ }
62+
63+
64+func getKeyUserItemGtsCounter (user,item) = "Order_№:"
65+
66+
67+func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
68+
69+
70+func getKeyprojectName (item) = "Proyecto de Apoyo | Inversión"
71+
72+
73+func getValueprojectName (item) = getStrByKey(getKeyprojectName(item))
74+
75+
76+func getKeyUserDocument (item) = "№ de Documento | DNI del Comprador:"
77+
78+
79+func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
80+
81+
82+func getKeyItemName (item) = "Producto-GTS adquirido | Categoría:"
83+
84+
85+func getValueItemName (item) = getStrByKey(getKeyItemName(item))
86+
87+
88+func getKeyTName (item) = "Tienda | Vendedor-GTS:"
89+
90+
91+func getValueTName (item) = getStrByKey(getKeyTName(item))
92+
93+
94+func getKeySupplier (item) = "Nodo-Activo Participante"
95+
96+
97+func getKeyPI (item) = "PI, wvls:"
98+
99+
100+func getValuePI (item) = getNumberByKey(getKeyPI(item))
101+
102+
103+func getKeyNIw (item) = "NIw, wvls:"
104+
105+
106+func getValueNIw (item) = getNumberByKey(getKeyNIw(item))
107+
108+
109+func getKeyUI (item) = "UI, 10e-4 bit-co2:"
110+
111+
112+func getValueUI (item) = getNumberByKey(getKeyUI(item))
113+
114+
115+func getKeySI (item) = "SI, 10e-4 bit-co2:"
116+
117+
118+func getValueSI (item) = getNumberByKey(getKeySI(item))
119+
120+
121+func getKeyNIb (item) = "NIb, 10e-4 bit-co2:"
122+
123+
124+func getValueNIb (item) = getNumberByKey(getKeyNIb(item))
125+
126+
127+func getKeyBalanceToken (tienda) = "Tokens entregados desde Tienda1, 10e-4 bit-co2:"
128+
129+
130+func getValueBalanceToken (tienda) = getNumberByKey(getKeyBalanceToken(tienda))
131+
132+
133+func getKeyBalanceProyecto (proyecto) = "Fondos desde Programa-03gts, wvls:"
134+
135+
136+func getValueBalanceProyecto (proyecto) = getNumberByKey(getKeyBalanceProyecto(proyecto))
137+
138+
139+@Callable(i)
140+func purchaseGTS (totalAmount,userDocument,projectName,itemName,tName,item) = {
141+ let pmt = extract(i.payment)
142+ if (isDefined(pmt.assetId))
143+ then throw("El Precio en waves.")
144+ else {
145+ let supplier = match getString(this, getKeySupplier(item)) {
146+ case a: String =>
147+ a
148+ case _ =>
149+ NONE
150+ }
151+ let tienda = toBase58String(txacxN08pe.bytes)
152+ let saldoTienda1 = match getInteger(this, getKeyBalanceToken(tienda)) {
153+ case a: Int =>
154+ a
155+ case _ =>
156+ 0
157+ }
158+ let proyecto = toBase58String(ecxachxkapawix01preico.bytes)
159+ let saldoProj = match getInteger(this, getKeyBalanceProyecto(proyecto)) {
160+ case a: Int =>
161+ a
162+ case _ =>
163+ 0
164+ }
165+ let userAddress = toBase58String(i.caller.bytes)
166+ let subTotal = totalAmount
167+ let pIw = ((pIP * subTotal) / relacdcto)
168+ let eIw = ((eIP * subTotal) / relacdcto)
169+ let bco2menosdcto = (((100 - bitdscto) * (eurou * bco2e)) / 10000)
170+ let subTotalb = (((totalAmount * usdnw) / 100) / bco2menosdcto)
171+ let totalb = (subTotalb * 10000)
172+ let uIb = ((uBP * subTotalb) / relacdcto)
173+ let sIb = ((sBP * subTotalb) / relacdcto)
174+ let eIb = ((eBP * subTotalb) / relacdcto)
175+ if ((saldoTienda1 >= (TokToVendedorQty * 10000)))
176+ then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
177+ else {
178+ let amountBCO2 = ((TokToVendedorQty * 10000) - saldoTienda1)
179+ if ((totalAmount > pmt.amount))
180+ then throw("Payment Amount can't be less than item Purchase Order")
181+ else if ((pmt.amount > totalAmount))
182+ then throw("Payment Amount can't be higher than item Purchase Order")
183+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry("Monto de apoyo ecológico, wvls", totalAmount), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry(getKeySupplier(item), item), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("Precio de 1 token con dscto, 10e-4 usd", bco2menosdcto), DataEntry("Total de tokens a distribuir, 10e-4 bit-co2", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry(getKeyBalanceToken(tienda), (getValueBalanceToken(tienda) + subTotalb)), DataEntry("Saldo de tokens en oferta, 10e-04 bit-co2", (amountBCO2 - ((getValueBalanceToken(tienda) - saldoTienda1) + subTotalb)))]), TransferSet([ScriptTransfer(ecxachxkapawix01preico, pIw, unit), ScriptTransfer(eM3xN08xN08pexprodxacAppxwvs, eIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(txacxN08pe, sIb, yBitCO2), ScriptTransfer(N08pexprod, eIb, yBitCO2)]))
184+ }
185+ }
186+ }
187+
188+
189+@Verifier(tx)
190+func verify () = match tx {
191+ case t: SetScriptTransaction =>
192+ sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
193+ case d: ReissueTransaction|DataTransaction =>
194+ true
195+ case tx: TransferTransaction =>
196+ true
197+ case _ =>
198+ false
199+}
200+

github/deemru/w8io/026f985 
23.24 ms