#0
nonstandard
0.00004000 BSV
Q!%¢CÏÊìÀwU#
æYbc0 25¡º|2lÒ¬°Q®MÈ{"_balances":1,"_allowances":2,"__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._allowances = {};\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 this._allowances[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 if (this._isEmpty(sender)) {\n return new Error('ERC20: transfer from the zero address');\n }\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 if (this._isEmpty(account)) {\n return new Error('ERC20: miny from the zero address');\n }\n if (typeof (this._totalSupply) === 'undefined') {\n this._totalSupply = amount;\n }\n else {\n this._totalSupply = this._add(this._totalSupply, amount);\n }\n if (typeof (this._balances[account]) === 'undefined') {\n this._balances[account] = amount;\n }\n else {\n this._balances[account] = this._add(this._balances[account], amount);\n }\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('_add: 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 _isEmpty(e) {\n switch (e) {\n case \"\":\n case 0:\n case \"0\":\n case null:\n case false:\n case e === \"undefined\":\n case typeof (e) == \"undefined\":\n return true;\n default:\n return false;\n }\n }\n}","__index":{"obj":0},"__func":"constructor","__args":["Euro stable coin","EURB","0325a243cfcaec13c0778055238385e659626330003235a114ba7c326cd2ac9db0",100000000]}u
https://whatsonchain.com/tx/a4ca550dc0f4a4fae4f9aacebb4215fc51a92253f87290cbc1601ba7ecd81083