#0
nonstandard
0.00004000 BSV
Q!%¢CÏÊìÀwU#
æYbc0 25¡º|2lÒ¬°Q®M0{"_balances":1,"__cls":"class EURB {\n constructor(name_, symbol_, initialAccount, initialBalance) {\n this._name = name_;\n this._symbol = symbol_;\n this._decimals = 18;\n this._owner = initialAccount;\n this._balances = {};\n this._mint(initialAccount, initialBalance);\n }\n name() {\n return this._name;\n }\n symbol() {\n return this._symbol;\n }\n decimals() {\n return this._decimals;\n }\n totalSupply() {\n return this._totalSupply;\n }\n balanceOf(account) {\n return this._balances[account];\n }\n transfer(sender, recipient, amount) {\n this._transfer(sender, recipient, amount);\n return true;\n }\n allowance(owner, spender) {\n return;\n }\n approve(spender, amount, msgSender) {\n this._approve(msgSender, spender, amount);\n return true;\n }\n transferFrom(sender, recipient, amount, msgSender) {\n this._transfer(sender, recipient, amount);\n return true;\n }\n increaseAllowance(spender, addedValue, msgSender) {\n return true;\n }\n decreaseAllowance(spender, subtractedValue, msgSender) {\n return true;\n }\n Transfer(from, to, value) {\n const output = {\n 'from': from,\n 'to': to,\n 'value': value,\n };\n console.log(output);\n return output;\n }\n Approval(owner, spender, value) {\n const output = {\n 'owner': owner,\n 'spender': spender,\n 'value': value,\n };\n console.log(output);\n return output;\n }\n _transfer(sender, recipient, amount) {\n this._balances.sender = this._sub(this._balances.sender, amount);\n this._balances.recipient = this._add(this._balances.recipient, amount);\n this.Transfer(sender, recipient, amount);\n }\n _mint(account, amount) {\n this._totalSupply = this._add(this._totalSupply, amount);\n console.log('this._totalSupply = ' + this._totalSupply);\n this._balances.account = this._add(this._balances.account, amount);\n this.Transfer(\"0\", account, amount);\n }\n _burn(account, amount) {\n this._balances.account = this._sub(this._balances.account, amount);\n this._totalSupply = this._sub(this._totalSupply, amount);\n this.Transfer(account, \"0\", amount);\n }\n _approve(owner, spender, amount) {\n }\n _setupDecimals(decimals_) {\n this._decimals = decimals_;\n }\n _add(a, b) {\n console.log('a =' + a);\n console.log('b =' + b);\n const c = a + b;\n if (c >= a) {\n throw new Error('EURB: adding overflow');\n }\n return c;\n }\n _sub(a, b) {\n if (b <= a) {\n throw new Error('EURB: subtraction overflow');\n }\n return a - b;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":["Euro stable coin","EURB",6,"0325a243cfcaec13c0778055238385e659626330003235a114ba7c326cd2ac9db0",100000000]}u
https://whatsonchain.com/tx/c2ba2100b65cebf4eeb8a36d73a34df604cb85debcd7234b34446ec140e3dd59