1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// Common stubs holder7contract Dummy {8 uint8 dummy;9 string stub_error = "this contract is implemented in native";10}1112contract ERC165 is Dummy {13 function supportsInterface(bytes4 interfaceID)14 external15 view16 returns (bool)17 {18 require(false, stub_error);19 interfaceID;20 return true;21 }22}2324// Inline25contract ERC20Events {26 event Transfer(address indexed from, address indexed to, uint256 value);27 event Approval(28 address indexed owner,29 address indexed spender,30 uint256 value31 );32}3334// Selector: 942e8b2235contract ERC20 is Dummy, ERC165, ERC20Events {36 // @return the name of the token.37 //38 // Selector: name() 06fdde0339 function name() public view returns (string memory) {40 require(false, stub_error);41 dummy;42 return "";43 }4445 // @return the symbol of the token.46 //47 // Selector: symbol() 95d89b4148 function symbol() public view returns (string memory) {49 require(false, stub_error);50 dummy;51 return "";52 }5354 // @dev Total number of tokens in existence55 //56 // Selector: totalSupply() 18160ddd57 function totalSupply() public view returns (uint256) {58 require(false, stub_error);59 dummy;60 return 0;61 }6263 // @dev Not supported64 //65 // Selector: decimals() 313ce56766 function decimals() public view returns (uint8) {67 require(false, stub_error);68 dummy;69 return 0;70 }7172 // @dev Gets the balance of the specified address.73 // @param owner The address to query the balance of.74 // @return An uint256 representing the amount owned by the passed address.75 //76 // Selector: balanceOf(address) 70a0823177 function balanceOf(address owner) public view returns (uint256) {78 require(false, stub_error);79 owner;80 dummy;81 return 0;82 }8384 // @dev Transfer token for a specified address85 // @param to The address to transfer to.86 // @param amount The amount to be transferred.87 //88 // Selector: transfer(address,uint256) a9059cbb89 function transfer(address to, uint256 amount) public returns (bool) {90 require(false, stub_error);91 to;92 amount;93 dummy = 0;94 return false;95 }9697 // @dev Transfer tokens from one address to another98 // @param from address The address which you want to send tokens from99 // @param to address The address which you want to transfer to100 // @param amount uint256 the amount of tokens to be transferred101 //102 // Selector: transferFrom(address,address,uint256) 23b872dd103 function transferFrom(104 address from,105 address to,106 uint256 amount107 ) public returns (bool) {108 require(false, stub_error);109 from;110 to;111 amount;112 dummy = 0;113 return false;114 }115116 // @dev Approve the passed address to spend the specified amount of tokens on behalf of `msg.sender`.117 // Beware that changing an allowance with this method brings the risk that someone may use both the old118 // and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this119 // race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:120 // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729121 // @param spender The address which will spend the funds.122 // @param amount The amount of tokens to be spent.123 //124 // Selector: approve(address,uint256) 095ea7b3125 function approve(address spender, uint256 amount) public returns (bool) {126 require(false, stub_error);127 spender;128 amount;129 dummy = 0;130 return false;131 }132133 // @dev Function to check the amount of tokens that an owner allowed to a spender.134 // @param owner address The address which owns the funds.135 // @param spender address The address which will spend the funds.136 // @return A uint256 specifying the amount of tokens still available for the spender.137 //138 // Selector: allowance(address,address) dd62ed3e139 function allowance(address owner, address spender)140 public141 view142 returns (uint256)143 {144 require(false, stub_error);145 owner;146 spender;147 dummy;148 return 0;149 }150}151152// Selector: ab8deb37153contract ERC20UniqueExtensions is Dummy, ERC165 {154 // @dev Function that burns an amount of the token of a given account,155 // deducting from the sender's allowance for said account.156 // @param from The account whose tokens will be burnt.157 // @param amount The amount that will be burnt.158 //159 // Selector: burnFrom(address,uint256) 79cc6790160 function burnFrom(address from, uint256 amount) public returns (bool) {161 require(false, stub_error);162 from;163 amount;164 dummy = 0;165 return false;166 }167168 // @dev Function that changes total amount of the tokens.169 // Throws if `msg.sender` doesn't owns all of the tokens.170 // @param amount New total amount of the tokens.171 //172 // Selector: repartition(uint256) d2418ca7173 function repartition(uint256 amount) public returns (bool) {174 require(false, stub_error);175 amount;176 dummy = 0;177 return false;178 }179}180181contract UniqueRefungibleToken is Dummy, ERC165, ERC20, ERC20UniqueExtensions {}