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

difftreelog

chore update evm stubs

Grigoriy Simonov2022-09-13parent: #781ae2a.patch.diff
in: master

3 files changed

modifiedpallets/evm-contract-helpers/src/stubs/ContractHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/evm-contract-helpers/src/stubs/ContractHelpers.soldiffbeforeafterboth
171 }171 }
172172
173 /// Get current contract sponsoring rate limit173 /// Get current contract sponsoring rate limit
174 /// @param contractAddress Contract to get sponsoring mode of174 /// @param contractAddress Contract to get sponsoring rate limit of
175 /// @return uint32 Amount of blocks between two sponsored transactions175 /// @return uint32 Amount of blocks between two sponsored transactions
176 /// @dev EVM selector for this function is: 0x610cfabd,176 /// @dev EVM selector for this function is: 0x610cfabd,
177 /// or in textual repr: getSponsoringRateLimit(address)177 /// or in textual repr: getSponsoringRateLimit(address)
203 dummy = 0;203 dummy = 0;
204 }204 }
205205
206 /// Set contract sponsoring fee limit
207 /// @dev Sponsoring fee limit - is maximum fee that could be spent by
208 /// single transaction
209 /// @param contractAddress Contract to change sponsoring fee limit of
210 /// @param feeLimit Fee limit
211 /// @dev Only contract owner can change this setting
206 /// @dev EVM selector for this function is: 0x03aed665,212 /// @dev EVM selector for this function is: 0x03aed665,
207 /// or in textual repr: setSponsoringFeeLimit(address,uint256)213 /// or in textual repr: setSponsoringFeeLimit(address,uint256)
208 function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)214 function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)
214 dummy = 0;220 dummy = 0;
215 }221 }
216222
223 /// Get current contract sponsoring fee limit
224 /// @param contractAddress Contract to get sponsoring fee limit of
225 /// @return uint256 Maximum amount of fee that could be spent by single
226 /// transaction
217 /// @dev EVM selector for this function is: 0xc3fdc9ee,227 /// @dev EVM selector for this function is: 0xc3fdc9ee,
218 /// or in textual repr: getSponsoringFeeLimit(address)228 /// or in textual repr: getSponsoringFeeLimit(address)
219 function getSponsoringFeeLimit(address contractAddress)229 function getSponsoringFeeLimit(address contractAddress)
modifiedtests/src/eth/api/ContractHelpers.soldiffbeforeafterboth
--- a/tests/src/eth/api/ContractHelpers.sol
+++ b/tests/src/eth/api/ContractHelpers.sol
@@ -111,7 +111,7 @@
 	function setSponsoringMode(address contractAddress, uint8 mode) external;
 
 	/// Get current contract sponsoring rate limit
-	/// @param contractAddress Contract to get sponsoring mode of
+	/// @param contractAddress Contract to get sponsoring rate limit of
 	/// @return uint32 Amount of blocks between two sponsored transactions
 	/// @dev EVM selector for this function is: 0x610cfabd,
 	///  or in textual repr: getSponsoringRateLimit(address)
@@ -131,11 +131,21 @@
 	function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)
 		external;
 
+	/// Set contract sponsoring fee limit
+	/// @dev Sponsoring fee limit - is maximum fee that could be spent by
+	///  single transaction
+	/// @param contractAddress Contract to change sponsoring fee limit of
+	/// @param feeLimit Fee limit
+	/// @dev Only contract owner can change this setting
 	/// @dev EVM selector for this function is: 0x03aed665,
 	///  or in textual repr: setSponsoringFeeLimit(address,uint256)
 	function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)
 		external;
 
+	/// Get current contract sponsoring fee limit
+	/// @param contractAddress Contract to get sponsoring fee limit of
+	/// @return uint256 Maximum amount of fee that could be spent by single
+	///  transaction
 	/// @dev EVM selector for this function is: 0xc3fdc9ee,
 	///  or in textual repr: getSponsoringFeeLimit(address)
 	function getSponsoringFeeLimit(address contractAddress)