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
--- a/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
+++ b/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
@@ -171,7 +171,7 @@
 	}
 
 	/// 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)
@@ -203,6 +203,12 @@
 		dummy = 0;
 	}
 
+	/// 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)
@@ -214,6 +220,10 @@
 		dummy = 0;
 	}
 
+	/// 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)
modifiedtests/src/eth/api/ContractHelpers.soldiffbeforeafterboth
111 function setSponsoringMode(address contractAddress, uint8 mode) external;111 function setSponsoringMode(address contractAddress, uint8 mode) external;
112112
113 /// Get current contract sponsoring rate limit113 /// Get current contract sponsoring rate limit
114 /// @param contractAddress Contract to get sponsoring mode of114 /// @param contractAddress Contract to get sponsoring rate limit of
115 /// @return uint32 Amount of blocks between two sponsored transactions115 /// @return uint32 Amount of blocks between two sponsored transactions
116 /// @dev EVM selector for this function is: 0x610cfabd,116 /// @dev EVM selector for this function is: 0x610cfabd,
117 /// or in textual repr: getSponsoringRateLimit(address)117 /// or in textual repr: getSponsoringRateLimit(address)
131 function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)131 function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)
132 external;132 external;
133133
134 /// Set contract sponsoring fee limit
135 /// @dev Sponsoring fee limit - is maximum fee that could be spent by
136 /// single transaction
137 /// @param contractAddress Contract to change sponsoring fee limit of
138 /// @param feeLimit Fee limit
139 /// @dev Only contract owner can change this setting
134 /// @dev EVM selector for this function is: 0x03aed665,140 /// @dev EVM selector for this function is: 0x03aed665,
135 /// or in textual repr: setSponsoringFeeLimit(address,uint256)141 /// or in textual repr: setSponsoringFeeLimit(address,uint256)
136 function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)142 function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)
137 external;143 external;
138144
145 /// Get current contract sponsoring fee limit
146 /// @param contractAddress Contract to get sponsoring fee limit of
147 /// @return uint256 Maximum amount of fee that could be spent by single
148 /// transaction
139 /// @dev EVM selector for this function is: 0xc3fdc9ee,149 /// @dev EVM selector for this function is: 0xc3fdc9ee,
140 /// or in textual repr: getSponsoringFeeLimit(address)150 /// or in textual repr: getSponsoringFeeLimit(address)
141 function getSponsoringFeeLimit(address contractAddress)151 function getSponsoringFeeLimit(address contractAddress)