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

difftreelog

source

pallets/balances-adapter/src/stubs/UniqueNativeFungible.sol3.7 KiBsourcehistory
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) external view returns (bool) {14		require(false, stub_error);15		interfaceID;16		return true;17	}18}1920/// @dev the ERC-165 identifier for this interface is 0xff15c6f421contract ERC20UniqueExtensions is Dummy, ERC165 {22	/// @dev EVM selector for this function is: 0x2ada85ff,23	///  or in textual repr: transferCross((address,uint256),uint256)24	function transferCross(CrossAddress memory to, uint256 amount) public returns (bool) {25		require(false, stub_error);26		to;27		amount;28		dummy = 0;29		return false;30	}3132	/// @dev EVM selector for this function is: 0xd5cf430b,33	///  or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)34	function transferFromCross(35		CrossAddress memory from,36		CrossAddress memory to,37		uint256 amount38	) public returns (bool) {39		require(false, stub_error);40		from;41		to;42		amount;43		dummy = 0;44		return false;45	}46}4748/// Cross account struct49struct CrossAddress {50	address eth;51	uint256 sub;52}5354/// @dev inlined interface55contract ERC20Events {56	event Transfer(address indexed from, address indexed to, uint256 value);57	event Approval(address indexed owner, address indexed spender, uint256 value);58}5960/// @dev the ERC-165 identifier for this interface is 0x942e8b2261contract ERC20 is Dummy, ERC165, ERC20Events {62	/// @dev EVM selector for this function is: 0xdd62ed3e,63	///  or in textual repr: allowance(address,address)64	function allowance(address owner, address spender) public view returns (uint256) {65		require(false, stub_error);66		owner;67		spender;68		dummy;69		return 0;70	}7172	/// @dev EVM selector for this function is: 0x095ea7b3,73	///  or in textual repr: approve(address,uint256)74	function approve(address spender, uint256 amount) public returns (bool) {75		require(false, stub_error);76		spender;77		amount;78		dummy = 0;79		return false;80	}8182	/// @dev EVM selector for this function is: 0x70a08231,83	///  or in textual repr: balanceOf(address)84	function balanceOf(address owner) public view returns (uint256) {85		require(false, stub_error);86		owner;87		dummy;88		return 0;89	}9091	/// @dev EVM selector for this function is: 0x313ce567,92	///  or in textual repr: decimals()93	function decimals() public view returns (uint8) {94		require(false, stub_error);95		dummy;96		return 0;97	}9899	/// @dev EVM selector for this function is: 0x06fdde03,100	///  or in textual repr: name()101	function name() public view returns (string memory) {102		require(false, stub_error);103		dummy;104		return "";105	}106107	/// @dev EVM selector for this function is: 0x95d89b41,108	///  or in textual repr: symbol()109	function symbol() public view returns (string memory) {110		require(false, stub_error);111		dummy;112		return "";113	}114115	/// @dev EVM selector for this function is: 0x18160ddd,116	///  or in textual repr: totalSupply()117	function totalSupply() public view returns (uint256) {118		require(false, stub_error);119		dummy;120		return 0;121	}122123	/// @dev EVM selector for this function is: 0xa9059cbb,124	///  or in textual repr: transfer(address,uint256)125	function transfer(address to, uint256 amount) public returns (bool) {126		require(false, stub_error);127		to;128		amount;129		dummy = 0;130		return false;131	}132133	/// @dev EVM selector for this function is: 0x23b872dd,134	///  or in textual repr: transferFrom(address,address,uint256)135	function transferFrom(136		address from,137		address to,138		uint256 amount139	) public returns (bool) {140		require(false, stub_error);141		from;142		to;143		amount;144		dummy = 0;145		return false;146	}147}148149contract UniqueNativeFungible is Dummy, ERC165, ERC20, ERC20UniqueExtensions {}