git.delta.rocks / unique-network / refs/commits / ec349b062948

difftreelog

source

tests/src/eth/api/UniqueNativeFungible.sol2.8 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12	function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @dev the ERC-165 identifier for this interface is 0xff15c6f416interface ERC20UniqueExtensions is Dummy, ERC165 {17	/// @dev EVM selector for this function is: 0x2ada85ff,18	///  or in textual repr: transferCross((address,uint256),uint256)19	function transferCross(CrossAddress memory to, uint256 amount) external returns (bool);2021	/// @dev EVM selector for this function is: 0xd5cf430b,22	///  or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)23	function transferFromCross(24		CrossAddress memory from,25		CrossAddress memory to,26		uint256 amount27	) external returns (bool);28}2930/// Cross account struct31struct CrossAddress {32	address eth;33	uint256 sub;34}3536/// @dev inlined interface37interface ERC20Events {38	event Transfer(address indexed from, address indexed to, uint256 value);39	event Approval(address indexed owner, address indexed spender, uint256 value);40}4142/// @dev the ERC-165 identifier for this interface is 0x942e8b2243interface ERC20 is Dummy, ERC165, ERC20Events {44	/// @dev EVM selector for this function is: 0xdd62ed3e,45	///  or in textual repr: allowance(address,address)46	function allowance(address owner, address spender) external view returns (uint256);4748	/// @dev EVM selector for this function is: 0x095ea7b3,49	///  or in textual repr: approve(address,uint256)50	function approve(address spender, uint256 amount) external returns (bool);5152	/// @dev EVM selector for this function is: 0x70a08231,53	///  or in textual repr: balanceOf(address)54	function balanceOf(address owner) external view returns (uint256);5556	/// @dev EVM selector for this function is: 0x313ce567,57	///  or in textual repr: decimals()58	function decimals() external view returns (uint8);5960	/// @dev EVM selector for this function is: 0x06fdde03,61	///  or in textual repr: name()62	function name() external view returns (string memory);6364	/// @dev EVM selector for this function is: 0x95d89b41,65	///  or in textual repr: symbol()66	function symbol() external view returns (string memory);6768	/// @dev EVM selector for this function is: 0x18160ddd,69	///  or in textual repr: totalSupply()70	function totalSupply() external view returns (uint256);7172	/// @dev EVM selector for this function is: 0xa9059cbb,73	///  or in textual repr: transfer(address,uint256)74	function transfer(address to, uint256 amount) external returns (bool);7576	/// @dev EVM selector for this function is: 0x23b872dd,77	///  or in textual repr: transferFrom(address,address,uint256)78	function transferFrom(79		address from,80		address to,81		uint256 amount82	) external returns (bool);83}8485interface UniqueNativeFungible is Dummy, ERC165, ERC20, ERC20UniqueExtensions {}