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/// @title Magic contract, which allows users to reconfigure other contracts25/// @dev the ERC-165 identifier for this interface is 0xd77fab7026contract ContractHelpers is Dummy, ERC165 {27 /// Get user, which deployed specified contract28 /// @dev May return zero address in case if contract is deployed29 /// using uniquenetwork evm-migration pallet, or using other terms not30 /// intended by pallet-evm31 /// @dev Returns zero address if contract does not exists32 /// @param contractAddress Contract to get owner of33 /// @return address Owner of contract34 /// @dev EVM selector for this function is: 0x5152b14c,35 /// or in textual repr: contractOwner(address)36 function contractOwner(address contractAddress)37 public38 view39 returns (address)40 {41 require(false, stub_error);42 contractAddress;43 dummy;44 return 0x0000000000000000000000000000000000000000;45 }4647 /// Set sponsor.48 /// @param contractAddress Contract for which a sponsor is being established.49 /// @param sponsor User address who set as pending sponsor.50 /// @dev EVM selector for this function is: 0xf01fba93,51 /// or in textual repr: setSponsor(address,address)52 function setSponsor(address contractAddress, address sponsor) public {53 require(false, stub_error);54 contractAddress;55 sponsor;56 dummy = 0;57 }5859 /// Set contract as self sponsored.60 ///61 /// @param contractAddress Contract for which a self sponsoring is being enabled.62 /// @dev EVM selector for this function is: 0x89f7d9ae,63 /// or in textual repr: selfSponsoredEnable(address)64 function selfSponsoredEnable(address contractAddress) public {65 require(false, stub_error);66 contractAddress;67 dummy = 0;68 }6970 /// Remove sponsor.71 ///72 /// @param contractAddress Contract for which a sponsorship is being removed.73 /// @dev EVM selector for this function is: 0xef784250,74 /// or in textual repr: removeSponsor(address)75 function removeSponsor(address contractAddress) public {76 require(false, stub_error);77 contractAddress;78 dummy = 0;79 }8081 /// Confirm sponsorship.82 ///83 /// @dev Caller must be same that set via [`setSponsor`].84 ///85 /// @param contractAddress Сontract for which need to confirm sponsorship.86 /// @dev EVM selector for this function is: 0xabc00001,87 /// or in textual repr: confirmSponsorship(address)88 function confirmSponsorship(address contractAddress) public {89 require(false, stub_error);90 contractAddress;91 dummy = 0;92 }9394 /// Get current sponsor.95 ///96 /// @param contractAddress The contract for which a sponsor is requested.97 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.98 /// @dev EVM selector for this function is: 0x743fc745,99 /// or in textual repr: getSponsor(address)100 function getSponsor(address contractAddress)101 public102 view103 returns (Tuple0 memory)104 {105 require(false, stub_error);106 contractAddress;107 dummy;108 return Tuple0(0x0000000000000000000000000000000000000000, 0);109 }110111 /// Check tat contract has confirmed sponsor.112 ///113 /// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.114 /// @return **true** if contract has confirmed sponsor.115 /// @dev EVM selector for this function is: 0x97418603,116 /// or in textual repr: hasSponsor(address)117 function hasSponsor(address contractAddress) public view returns (bool) {118 require(false, stub_error);119 contractAddress;120 dummy;121 return false;122 }123124 /// Check tat contract has pending sponsor.125 ///126 /// @param contractAddress The contract for which the presence of a pending sponsor is checked.127 /// @return **true** if contract has pending sponsor.128 /// @dev EVM selector for this function is: 0x39b9b242,129 /// or in textual repr: hasPendingSponsor(address)130 function hasPendingSponsor(address contractAddress)131 public132 view133 returns (bool)134 {135 require(false, stub_error);136 contractAddress;137 dummy;138 return false;139 }140141 /// @dev EVM selector for this function is: 0x6027dc61,142 /// or in textual repr: sponsoringEnabled(address)143 function sponsoringEnabled(address contractAddress)144 public145 view146 returns (bool)147 {148 require(false, stub_error);149 contractAddress;150 dummy;151 return false;152 }153154 /// @dev EVM selector for this function is: 0xfde8a560,155 /// or in textual repr: setSponsoringMode(address,uint8)156 function setSponsoringMode(address contractAddress, uint8 mode) public {157 require(false, stub_error);158 contractAddress;159 mode;160 dummy = 0;161 }162163 /// Get current contract sponsoring rate limit164 /// @param contractAddress Contract to get sponsoring mode of165 /// @return uint32 Amount of blocks between two sponsored transactions166 /// @dev EVM selector for this function is: 0x610cfabd,167 /// or in textual repr: getSponsoringRateLimit(address)168 function getSponsoringRateLimit(address contractAddress)169 public170 view171 returns (uint32)172 {173 require(false, stub_error);174 contractAddress;175 dummy;176 return 0;177 }178179 /// Set contract sponsoring rate limit180 /// @dev Sponsoring rate limit - is a minimum amount of blocks that should181 /// pass between two sponsored transactions182 /// @param contractAddress Contract to change sponsoring rate limit of183 /// @param rateLimit Target rate limit184 /// @dev Only contract owner can change this setting185 /// @dev EVM selector for this function is: 0x77b6c908,186 /// or in textual repr: setSponsoringRateLimit(address,uint32)187 function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)188 public189 {190 require(false, stub_error);191 contractAddress;192 rateLimit;193 dummy = 0;194 }195196 /// Is specified user present in contract allow list197 /// @dev Contract owner always implicitly included198 /// @param contractAddress Contract to check allowlist of199 /// @param user User to check200 /// @return bool Is specified users exists in contract allowlist201 /// @dev EVM selector for this function is: 0x5c658165,202 /// or in textual repr: allowed(address,address)203 function allowed(address contractAddress, address user)204 public205 view206 returns (bool)207 {208 require(false, stub_error);209 contractAddress;210 user;211 dummy;212 return false;213 }214215 /// Toggle user presence in contract allowlist216 /// @param contractAddress Contract to change allowlist of217 /// @param user Which user presence should be toggled218 /// @param isAllowed `true` if user should be allowed to be sponsored219 /// or call this contract, `false` otherwise220 /// @dev Only contract owner can change this setting221 /// @dev EVM selector for this function is: 0x4706cc1c,222 /// or in textual repr: toggleAllowed(address,address,bool)223 function toggleAllowed(224 address contractAddress,225 address user,226 bool isAllowed227 ) public {228 require(false, stub_error);229 contractAddress;230 user;231 isAllowed;232 dummy = 0;233 }234235 /// Is this contract has allowlist access enabled236 /// @dev Allowlist always can have users, and it is used for two purposes:237 /// in case of allowlist sponsoring mode, users will be sponsored if they exist in allowlist238 /// in case of allowlist access enabled, only users from allowlist may call this contract239 /// @param contractAddress Contract to get allowlist access of240 /// @return bool Is specified contract has allowlist access enabled241 /// @dev EVM selector for this function is: 0xc772ef6c,242 /// or in textual repr: allowlistEnabled(address)243 function allowlistEnabled(address contractAddress)244 public245 view246 returns (bool)247 {248 require(false, stub_error);249 contractAddress;250 dummy;251 return false;252 }253254 /// Toggle contract allowlist access255 /// @param contractAddress Contract to change allowlist access of256 /// @param enabled Should allowlist access to be enabled?257 /// @dev EVM selector for this function is: 0x36de20f5,258 /// or in textual repr: toggleAllowlist(address,bool)259 function toggleAllowlist(address contractAddress, bool enabled) public {260 require(false, stub_error);261 contractAddress;262 enabled;263 dummy = 0;264 }265}266267/// @dev anonymous struct268struct Tuple0 {269 address field_0;270 uint256 field_1;271}