tx · 9oXe3SU5jnF8ieE8sVA9289yqei2cvFyhStjVmDNY6HY

3MtAgj6fMyyXJabxv8a3AQYcgxZT8JZbswc:  -0.01000000 Waves

2021.11.05 21:54 [1778066] smart account 3MtAgj6fMyyXJabxv8a3AQYcgxZT8JZbswc > SELF 0.00000000 Waves

{ "type": 13, "id": "9oXe3SU5jnF8ieE8sVA9289yqei2cvFyhStjVmDNY6HY", "fee": 1000000, "feeAssetId": null, "timestamp": 1636138481753, "version": 2, "chainId": 84, "sender": "3MtAgj6fMyyXJabxv8a3AQYcgxZT8JZbswc", "senderPublicKey": "FaQpHjwkwX9bYYBo8FVTM4KsNRc5ZukEoHWub6nKSnZ9", "proofs": [ "2QymjXB35KgJyHVgSwwVeajfU9jadj33uGMKSaopXfMoDfP1Ebcxceh6wmneabgYkbWAW9xdsJUrTgBxFocjXdUm" ], "script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgBAAAAIQAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAADXN0YXJ0VG90YWxRdHkAAAAAAAABhqAAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAHbm9tdmd0dQAAAAAAAAAAZAAAAAAFZXVyb3UAAAAAAAAAAAEAAAAABXVzZG53AAAAAAAAAAABAAAAAAx1c2VyRGlzY291bnQAAAAAAAAAAAAAAAAAC093bmVyUHViS2V5AQAAACCHCjavfZLifVnrQ+Ec26hgaELdz++KhfvmPcJbb2x8dgEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAANudW0BAAAAC2dldFN0ckJ5S2V5AAAAAQAAAANrZXkEAAAAA3N0cgQAAA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t1c2VyQWRkcmVzcwUAAAAIb3JkZXJRdHkFAAAAB3hCaXRDTzIFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAC093bmVyUHViS2V5AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAAl3aXRoV2F2ZXMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAl3aXRoV2F2ZXMHJSxCVg==", "height": 1778066, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
5+
6+let startTotalQty = 100000
7+
8+let wvs = 100000000
9+
10+let NONE = "none"
11+
12+let nomvgtu = 100
13+
14+let eurou = 1
15+
16+let usdnw = 1
17+
18+let userDiscount = 0
19+
20+let OwnerPubKey = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo'
21+
22+func getNumberByKey (key) = {
23+ let num = match getInteger(this, key) {
24+ case a: Int =>
25+ a
26+ case _ =>
27+ 0
28+ }
29+ num
30+ }
31+
32+
33+func getStrByKey (key) = {
34+ let str = match getString(this, key) {
35+ case a: String =>
36+ a
37+ case _ =>
38+ NONE
39+ }
40+ str
41+ }
42+
43+
44+func getKeyEmisor (item) = "Emisor:"
45+
46+
47+func getValueEmisor (item) = getStrByKey(getKeyEmisor(item))
48+
49+
50+func getKeyItemSupplier (supplier) = (supplier + "Nodo-08")
51+
52+
53+func getKeyEmisionCountry (item) = "Nodo-País:"
54+
55+
56+func getValueEmisionCountry (item) = getStrByKey(getKeyEmisionCountry(item))
57+
58+
59+func getKeyEmisionCode (item) = "Código:"
60+
61+
62+func getValueEmisionCode (item) = getStrByKey(getKeyEmisionCode(item))
63+
64+
65+func getKeyNomTokenPrice (item) = "Precio Nominal, 1 VGT:"
66+
67+
68+func getKeystartTotalQty (item) = "Cantidad de tokens emitidos:"
69+
70+
71+func getValuestartTotalQty (item) = getStrByKey(getKeystartTotalQty(item))
72+
73+
74+func getKeyBalanceSupplier (supplier) = "Fondos | Monto recaudado:"
75+
76+
77+func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
78+
79+
80+func getKeyUserItemCounter (user,item) = "Order_№:"
81+
82+
83+func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
84+
85+
86+func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI:"
87+
88+
89+func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
90+
91+
92+func getKeyUserCountry (item) = "País de Residencia del Usuario:"
93+
94+
95+func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
96+
97+
98+func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
99+
100+
101+func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
102+
103+
104+func getKeySaldoTokenQtyStartEtapa (item) = "Cantidad de tokens VGT realizados:"
105+
106+
107+func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
108+
109+
110+@Callable(i)
111+func purchaseVGT (item,userDocument,userCountry,orderQty) = {
112+ let pmt = extract(i.payment)
113+ if (isDefined(pmt.assetId))
114+ then throw("Ud. puede adquirir tokens xBitCO2 usando WavesKeeper y su token de pago Waves.")
115+ else {
116+ let supplier = match getString(this, getKeyItemSupplier(item)) {
117+ case a: String =>
118+ a
119+ case _ =>
120+ NONE
121+ }
122+ let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
123+ case a: Int =>
124+ a
125+ case _ =>
126+ 0
127+ }
128+ let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
129+ case a: Int =>
130+ a
131+ case _ =>
132+ 0
133+ }
134+ let userAddress = toBase58String(i.caller.bytes)
135+ let currentTokenPrice = ((((((100 - userDiscount) * nomvgtu) * eurou) * wvs) / 100) / usdnw)
136+ let totalAmount = (orderQty * currentTokenPrice)
137+ if ((totalAmount > pmt.amount))
138+ then throw("Payment Amount can't be less than item Purchase Order")
139+ else if ((pmt.amount > totalAmount))
140+ then throw("Payment Amount can't be higher than item Purchase Order")
141+ else ScriptResult(WriteSet([DataEntry(getKeyEmisor(item), "Ecosistema Bit-CO2"), DataEntry(getKeyEmisionCountry(item), "Nodo-08/PE"), DataEntry(getKeyEmisionCode(item), "01E-VGT-N08/PE"), DataEntry(getKeyNomTokenPrice(item), "100.00 USD"), DataEntry(getKeystartTotalQty(item), startTotalQty), DataEntry("Descuento ofrecido:", "Plataforma-GCC, a futuros"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida al Nodo-08/PE, wvs", totalAmount), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens VGT", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
142+ }
143+ }
144+
145+
146+@Verifier(tx)
147+func verify () = match tx {
148+ case t: SetScriptTransaction =>
149+ sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
150+ case d: ReissueTransaction|DataTransaction =>
151+ true
152+ case tx: TransferTransaction =>
153+ true
154+ case tx: ExchangeTransaction =>
155+ let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
156+ then true
157+ else !(isDefined(tx.sellOrder.assetPair.amountAsset))
158+ withWaves
159+ case _ =>
160+ false
161+}
162+

github/deemru/w8io/026f985 
20.83 ms