git.delta.rocks / unique-network / refs/commits / 4e01cb3cfaf7

difftreelog

source

tests/src/eth/api/ContractHelpers.sol4.0 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev anonymous struct7struct Tuple0 {8	address field_0;9	uint256 field_1;10}1112/// @dev common stubs holder13interface Dummy {1415}1617interface ERC165 is Dummy {18	function supportsInterface(bytes4 interfaceID) external view returns (bool);19}2021/// @dev the ERC-165 identifier for this interface is 0x6073d91722interface ContractHelpers is Dummy, ERC165 {23	/// Get contract ovner24	///25	/// @param contractAddress contract for which the owner is being determined.26	/// @return Contract owner.27	///28	/// Selector: contractOwner(address) 5152b14c29	function contractOwner(address contractAddress)30		external31		view32		returns (address);3334	/// Set sponsor.35	///36	/// @param contractAddress Contract for which a sponsor is being established.37	/// @param sponsor User address who set as pending sponsor.38	///39	/// Selector: setSponsor(address,address) f01fba9340	function setSponsor(address contractAddress, address sponsor) external;4142	/// Set contract as self sponsored.43	///44	/// @param contractAddress Contract for which a self sponsoring is being enabled.45	///46	/// Selector: selfSponsoredEnable(address) 89f7d9ae47	function selfSponsoredEnable(address contractAddress) external;4849	/// Remove sponsor.50	///51	/// @param contractAddress Contract for which a sponsorship is being removed.52	///53	/// Selector: removeSponsor(address) ef78425054	function removeSponsor(address contractAddress) external;5556	/// Confirm sponsorship.57	///58	/// @dev Caller must be same that set via [`setSponsor`].59	///60	/// @param contractAddress Сontract for which need to confirm sponsorship.61	///62	/// Selector: confirmSponsorship(address) abc0000163	function confirmSponsorship(address contractAddress) external;6465	/// Get current sponsor.66	///67	/// @param contractAddress The contract for which a sponsor is requested.68	/// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.69	///70	/// Selector: getSponsor(address) 743fc74571	function getSponsor(address contractAddress)72		external73		view74		returns (Tuple0 memory);7576	/// Check tat contract has confirmed sponsor.77	///78	/// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.79	/// @return **true** if contract has confirmed sponsor.80	///81	/// Selector: hasSponsor(address) 9741860382	function hasSponsor(address contractAddress) external view returns (bool);8384	/// Check tat contract has pending sponsor.85	///86	/// @param contractAddress The contract for which the presence of a pending sponsor is checked.87	/// @return **true** if contract has pending sponsor.88	///89	/// Selector: hasPendingSponsor(address) 39b9b24290	function hasPendingSponsor(address contractAddress)91		external92		view93		returns (bool);9495	/// Selector: sponsoringEnabled(address) 6027dc6196	function sponsoringEnabled(address contractAddress)97		external98		view99		returns (bool);100101	/// Selector: setSponsoringMode(address,uint8) fde8a560102	function setSponsoringMode(address contractAddress, uint8 mode) external;103104	/// Selector: sponsoringMode(address) b70c7267105	function sponsoringMode(address contractAddress)106		external107		view108		returns (uint8);109110	/// Selector: setSponsoringRateLimit(address,uint32) 77b6c908111	function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)112		external;113114	/// Selector: getSponsoringRateLimit(address) 610cfabd115	function getSponsoringRateLimit(address contractAddress)116		external117		view118		returns (uint32);119120	/// Selector: allowed(address,address) 5c658165121	function allowed(address contractAddress, address user)122		external123		view124		returns (bool);125126	/// Selector: allowlistEnabled(address) c772ef6c127	function allowlistEnabled(address contractAddress)128		external129		view130		returns (bool);131132	/// Selector: toggleAllowlist(address,bool) 36de20f5133	function toggleAllowlist(address contractAddress, bool enabled) external;134135	/// Selector: toggleAllowed(address,address,bool) 4706cc1c136	function toggleAllowed(137		address contractAddress,138		address user,139		bool isAllowed140	) external;141}