1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev 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/// @dev the ERC-165 identifier for this interface is 0x5755c3f225contract ERC1633 is Dummy, ERC165 {26 /// @dev EVM selector for this function is: 0x80a54001,27 /// or in textual repr: parentToken()28 function parentToken() public view returns (address) {29 require(false, stub_error);30 dummy;31 return 0x0000000000000000000000000000000000000000;32 }3334 /// @dev EVM selector for this function is: 0xd7f083f3,35 /// or in textual repr: parentTokenId()36 function parentTokenId() public view returns (uint256) {37 require(false, stub_error);38 dummy;39 return 0;40 }41}4243/// @dev the ERC-165 identifier for this interface is 0xab8deb3744contract ERC20UniqueExtensions is Dummy, ERC165 {45 /// @dev Function that burns an amount of the token of a given account,46 /// deducting from the sender's allowance for said account.47 /// @param from The account whose tokens will be burnt.48 /// @param amount The amount that will be burnt.49 /// @dev EVM selector for this function is: 0x79cc6790,50 /// or in textual repr: burnFrom(address,uint256)51 function burnFrom(address from, uint256 amount) public returns (bool) {52 require(false, stub_error);53 from;54 amount;55 dummy = 0;56 return false;57 }5859 /// @dev Function that changes total amount of the tokens.60 /// Throws if `msg.sender` doesn't owns all of the tokens.61 /// @param amount New total amount of the tokens.62 /// @dev EVM selector for this function is: 0xd2418ca7,63 /// or in textual repr: repartition(uint256)64 function repartition(uint256 amount) public returns (bool) {65 require(false, stub_error);66 amount;67 dummy = 0;68 return false;69 }70}7172/// @dev inlined interface73contract ERC20Events {74 event Transfer(address indexed from, address indexed to, uint256 value);75 event Approval(76 address indexed owner,77 address indexed spender,78 uint256 value79 );80}8182/// @title Standard ERC20 token83///84/// @dev Implementation of the basic standard token.85/// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md86/// @dev the ERC-165 identifier for this interface is 0x942e8b2287contract ERC20 is Dummy, ERC165, ERC20Events {88 /// @return the name of the token.89 /// @dev EVM selector for this function is: 0x06fdde03,90 /// or in textual repr: name()91 function name() public view returns (string memory) {92 require(false, stub_error);93 dummy;94 return "";95 }9697 /// @return the symbol of the token.98 /// @dev EVM selector for this function is: 0x95d89b41,99 /// or in textual repr: symbol()100 function symbol() public view returns (string memory) {101 require(false, stub_error);102 dummy;103 return "";104 }105106 /// @dev Total number of tokens in existence107 /// @dev EVM selector for this function is: 0x18160ddd,108 /// or in textual repr: totalSupply()109 function totalSupply() public view returns (uint256) {110 require(false, stub_error);111 dummy;112 return 0;113 }114115 /// @dev Not supported116 /// @dev EVM selector for this function is: 0x313ce567,117 /// or in textual repr: decimals()118 function decimals() public view returns (uint8) {119 require(false, stub_error);120 dummy;121 return 0;122 }123124 /// @dev Gets the balance of the specified address.125 /// @param owner The address to query the balance of.126 /// @return An uint256 representing the amount owned by the passed address.127 /// @dev EVM selector for this function is: 0x70a08231,128 /// or in textual repr: balanceOf(address)129 function balanceOf(address owner) public view returns (uint256) {130 require(false, stub_error);131 owner;132 dummy;133 return 0;134 }135136 /// @dev Transfer token for a specified address137 /// @param to The address to transfer to.138 /// @param amount The amount to be transferred.139 /// @dev EVM selector for this function is: 0xa9059cbb,140 /// or in textual repr: transfer(address,uint256)141 function transfer(address to, uint256 amount) public returns (bool) {142 require(false, stub_error);143 to;144 amount;145 dummy = 0;146 return false;147 }148149 /// @dev Transfer tokens from one address to another150 /// @param from address The address which you want to send tokens from151 /// @param to address The address which you want to transfer to152 /// @param amount uint256 the amount of tokens to be transferred153 /// @dev EVM selector for this function is: 0x23b872dd,154 /// or in textual repr: transferFrom(address,address,uint256)155 function transferFrom(156 address from,157 address to,158 uint256 amount159 ) public returns (bool) {160 require(false, stub_error);161 from;162 to;163 amount;164 dummy = 0;165 return false;166 }167168 /// @dev Approve the passed address to spend the specified amount of tokens on behalf of `msg.sender`.169 /// Beware that changing an allowance with this method brings the risk that someone may use both the old170 /// and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this171 /// race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:172 /// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729173 /// @param spender The address which will spend the funds.174 /// @param amount The amount of tokens to be spent.175 /// @dev EVM selector for this function is: 0x095ea7b3,176 /// or in textual repr: approve(address,uint256)177 function approve(address spender, uint256 amount) public returns (bool) {178 require(false, stub_error);179 spender;180 amount;181 dummy = 0;182 return false;183 }184185 /// @dev Function to check the amount of tokens that an owner allowed to a spender.186 /// @param owner address The address which owns the funds.187 /// @param spender address The address which will spend the funds.188 /// @return A uint256 specifying the amount of tokens still available for the spender.189 /// @dev EVM selector for this function is: 0xdd62ed3e,190 /// or in textual repr: allowance(address,address)191 function allowance(address owner, address spender)192 public193 view194 returns (uint256)195 {196 require(false, stub_error);197 owner;198 spender;199 dummy;200 return 0;201 }202}203204contract UniqueRefungibleToken is205 Dummy,206 ERC165,207 ERC20,208 ERC20UniqueExtensions,209 ERC1633210{}