tx · 7fJXystnWQzjTf4rJ8tki8iXHzPxNFnreXTh8iRp8tna 3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR: -0.01000000 Waves 2022.04.01 11:25 [1989278] smart account 3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR > SELF 0.00000000 Waves
{ "type": 13, "id": "7fJXystnWQzjTf4rJ8tki8iXHzPxNFnreXTh8iRp8tna", "fee": 1000000, "feeAssetId": null, "timestamp": 1648801617955, "version": 2, "chainId": 84, "sender": "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR", "senderPublicKey": "Cjdbq4KUpfnLffutB5MU8a1uUFn9ZjuymuH1Q1mRZ6dJ", "proofs": [ "5mAtaiAzYkgE6sRbZkpsV3DVFTAcah4yWAnYvFxnR37usdnZdNVQwGTssZT1uz2biCNNWEVDut2qJBjDepfnTuX8" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAuAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnrAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIK5cVaB67a6ovRta5QFiftZvW16UMw5Mv/WLhV91gKFtAAAAAA1Bc29jUHJlc3RlYzAxAgAAACMzTjg2RDJFN3BTRkQ3ZkpCQjFxa2NHTThTb1I2clpwRnc5bwAAAAANQXNvY1ByZXN0ZWMwMgIAAAAjM04yakh0Z1NWQ3RXNmpkZG1RdWVyTjdOU25YalIzS2NFZmcBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANr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VN0cmluZykAAAABBQAAAAt1c2VyQWRkcmVzcwkAAGgAAAACAAAAAAAAACcQBQAAAAhvcmRlclF0eQUAAAAGQml0Q08yBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAtPd25lclB1YktleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGBwNQ2xU=", "height": 1989278, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3cYXWedyk1yg4b2zB8bZHKSqUVBbZJHcP78L2Wi62T6d Next: 32ayWZUdSyYjTTxjxyezMGGqghyLEi5nZUnRvY3YQUnD Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), ( | |
183 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2)])) | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let BitCO2 = base58'EGY7HCyeHiHiCiiYpqH1Dmd5E6nzbwrgsdX3FHx5kFWw' | |
5 | 5 | ||
6 | 6 | let startTotalQty = 305693 | |
7 | 7 | ||
8 | 8 | let FirstFaseQty = 31193 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 274500 | |
11 | 11 | ||
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | 15 | ||
16 | 16 | let eurou = 116 | |
17 | 17 | ||
18 | 18 | let usdnw = 2539 | |
19 | 19 | ||
20 | 20 | let bco2e = 10 | |
21 | 21 | ||
22 | 22 | let OwnerPubKey = base58'Cjdbq4KUpfnLffutB5MU8a1uUFn9ZjuymuH1Q1mRZ6dJ' | |
23 | 23 | ||
24 | 24 | let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o" | |
25 | 25 | ||
26 | 26 | let AsocPrestec02 = "3N2jHtgSVCtW6jddmQuerN7NSnXjR3KcEfg" | |
27 | 27 | ||
28 | 28 | func getNumberByKey (key) = { | |
29 | 29 | let num = match getInteger(this, key) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | num | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getStrByKey (key) = { | |
40 | 40 | let str = match getString(this, key) { | |
41 | 41 | case a: String => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | NONE | |
45 | 45 | } | |
46 | 46 | str | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getKeyProjectCategory (item) = "Categoría del Proyecto:" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getKeyProjectCountry (item) = "País | Ubicación:" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getKeyProjectCode (item) = "Código:" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados en F1 PreICO:" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, PreICO" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getKeyBalanceSupplier (supplier) = "Fondos para Proyectos Verdes Naturales, Asociados Bit-CO2:" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | @Callable(i) | |
147 | 147 | func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = { | |
148 | 148 | let pmt = extract(i.payment) | |
149 | 149 | if (isDefined(pmt.assetId)) | |
150 | 150 | then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.") | |
151 | 151 | else { | |
152 | 152 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
153 | 153 | case a: String => | |
154 | 154 | a | |
155 | 155 | case _ => | |
156 | 156 | NONE | |
157 | 157 | } | |
158 | 158 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
159 | 159 | case a: Int => | |
160 | 160 | a | |
161 | 161 | case _ => | |
162 | 162 | 0 | |
163 | 163 | } | |
164 | 164 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let userAddress = toBase58String(i.caller.bytes) | |
171 | 171 | if (if ((userAddress != AsocPrestec01)) | |
172 | 172 | then (userAddress != AsocPrestec02) | |
173 | 173 | else false) | |
174 | 174 | then throw("Disculpe, Su cuenta no tiene derecho de Asociado Bit-CO2 a Proyectos") | |
175 | 175 | else { | |
176 | 176 | let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw) | |
177 | 177 | if ((0 >= ((startTotalQty - preIcoQty) - orderQty))) | |
178 | 178 | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción") | |
179 | 179 | else 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 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), ( | |
183 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2)])) | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Verifier(tx) | |
190 | 190 | func verify () = match tx { | |
191 | 191 | case t: SetScriptTransaction => | |
192 | 192 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
193 | 193 | case d: DataTransaction => | |
194 | 194 | true | |
195 | 195 | case tx: TransferTransaction => | |
196 | 196 | true | |
197 | 197 | case _ => | |
198 | 198 | false | |
199 | 199 | } | |
200 | 200 |
github/deemru/w8io/169f3d6 41.39 ms ◑