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

difftreelog

path: add stubs

Trubnikov Sergey2022-08-05parent: #0285730.patch.diff
in: master

3 files changed

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
@@ -21,8 +21,16 @@
 	}
 }
 
+<<<<<<< HEAD
 /// @title Magic contract, which allows users to reconfigure other contracts
 /// @dev the ERC-165 identifier for this interface is 0xd77fab70
+=======
+<<<<<<< HEAD
+// Selector: 6073d917
+=======
+// Selector: 06fc42e9
+>>>>>>> path: add stubs
+>>>>>>> path: add stubs
 contract ContractHelpers is Dummy, ERC165 {
 	/// Get user, which deployed specified contract
 	/// @dev May return zero address in case if contract is deployed
@@ -44,11 +52,23 @@
 		return 0x0000000000000000000000000000000000000000;
 	}
 
+<<<<<<< HEAD
 	/// Set sponsor.
 	/// @param contractAddress Contract for which a sponsor is being established.
 	/// @param sponsor User address who set as pending sponsor.
 	/// @dev EVM selector for this function is: 0xf01fba93,
 	///  or in textual repr: setSponsor(address,address)
+=======
+<<<<<<< HEAD
+	// Set sponsor.
+	//
+	// @param contract_address Contract for which a sponsor is being established.
+	// @param sponsor User address who set as pending sponsor.
+	//
+=======
+>>>>>>> path: add stubs
+	// Selector: setSponsor(address,address) f01fba93
+>>>>>>> path: add stubs
 	function setSponsor(address contractAddress, address sponsor) public {
 		require(false, stub_error);
 		contractAddress;
@@ -56,22 +76,44 @@
 		dummy = 0;
 	}
 
+<<<<<<< HEAD
 	/// Set contract as self sponsored.
 	///
 	/// @param contractAddress Contract for which a self sponsoring is being enabled.
 	/// @dev EVM selector for this function is: 0x89f7d9ae,
 	///  or in textual repr: selfSponsoredEnable(address)
+=======
+<<<<<<< HEAD
+	// Set contract as self sponsored.
+	//
+	// @param contract_address Contract for which a self sponsoring is being enabled.
+	//
+	// Selector: selfSponsoredEnable(address) 89f7d9ae
+>>>>>>> path: add stubs
 	function selfSponsoredEnable(address contractAddress) public {
+=======
+	// Selector: confirmSponsorship(address) abc00001
+	function confirmSponsorship(address contractAddress) public {
+>>>>>>> path: add stubs
 		require(false, stub_error);
 		contractAddress;
 		dummy = 0;
 	}
 
+<<<<<<< HEAD
 	/// Remove sponsor.
 	///
 	/// @param contractAddress Contract for which a sponsorship is being removed.
 	/// @dev EVM selector for this function is: 0xef784250,
 	///  or in textual repr: removeSponsor(address)
+=======
+<<<<<<< HEAD
+	// Remove sponsor.
+	//
+	// @param contract_address Contract for which a sponsorship is being removed.
+	//
+	// Selector: removeSponsor(address) ef784250
+>>>>>>> path: add stubs
 	function removeSponsor(address contractAddress) public {
 		require(false, stub_error);
 		contractAddress;
@@ -98,6 +140,9 @@
 	/// @dev EVM selector for this function is: 0x743fc745,
 	///  or in textual repr: getSponsor(address)
 	function getSponsor(address contractAddress)
+=======
+	// Selector: getSponsor(address) 743fc745
+	function getSponsor(address contractAddress)
 		public
 		view
 		returns (Tuple0 memory)
@@ -108,6 +153,27 @@
 		return Tuple0(0x0000000000000000000000000000000000000000, 0);
 	}
 
+	// Selector: hasSponsor(address) 97418603
+	function hasSponsor(address contractAddress) public view returns (bool) {
+		require(false, stub_error);
+		contractAddress;
+		dummy;
+		return false;
+	}
+
+	// Selector: hasPendingSponsor(address) 39b9b242
+	function hasPendingSponsor(address contractAddress)
+>>>>>>> path: add stubs
+		public
+		view
+		returns (Tuple0 memory)
+	{
+		require(false, stub_error);
+		contractAddress;
+		dummy;
+		return Tuple0(0x0000000000000000000000000000000000000000, 0);
+	}
+
 	/// Check tat contract has confirmed sponsor.
 	///
 	/// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.
@@ -121,13 +187,27 @@
 		return false;
 	}
 
+<<<<<<< HEAD
 	/// Check tat contract has pending sponsor.
 	///
 	/// @param contractAddress The contract for which the presence of a pending sponsor is checked.
 	/// @return **true** if contract has pending sponsor.
 	/// @dev EVM selector for this function is: 0x39b9b242,
 	///  or in textual repr: hasPendingSponsor(address)
+=======
+<<<<<<< HEAD
+	// Check tat contract has pending sponsor.
+	//
+	// @param contract_address The contract for which the presence of a pending sponsor is checked.
+	// @return **true** if contract has pending sponsor.
+	//
+	// Selector: hasPendingSponsor(address) 39b9b242
+>>>>>>> path: add stubs
 	function hasPendingSponsor(address contractAddress)
+=======
+	// Selector: sponsoringEnabled(address) 6027dc61
+	function sponsoringEnabled(address contractAddress)
+>>>>>>> path: add stubs
 		public
 		view
 		returns (bool)
@@ -136,6 +216,7 @@
 		contractAddress;
 		dummy;
 		return false;
+<<<<<<< HEAD
 	}
 
 	/// @dev EVM selector for this function is: 0x6027dc61,
@@ -149,6 +230,8 @@
 		contractAddress;
 		dummy;
 		return false;
+=======
+>>>>>>> path: add stubs
 	}
 
 	/// @dev EVM selector for this function is: 0xfde8a560,
modifiedtests/src/eth/api/ContractHelpers.soldiffbeforeafterboth
12 function supportsInterface(bytes4 interfaceID) external view returns (bool);12 function supportsInterface(bytes4 interfaceID) external view returns (bool);
13}13}
1414
15<<<<<<< HEAD
15/// @title Magic contract, which allows users to reconfigure other contracts16/// @title Magic contract, which allows users to reconfigure other contracts
16/// @dev the ERC-165 identifier for this interface is 0xd77fab7017/// @dev the ERC-165 identifier for this interface is 0xd77fab70
18=======
19<<<<<<< HEAD
20// Selector: 6073d917
21=======
22// Selector: 06fc42e9
23>>>>>>> path: add stubs
24>>>>>>> path: add stubs
17interface ContractHelpers is Dummy, ERC165 {25interface ContractHelpers is Dummy, ERC165 {
18 /// Get user, which deployed specified contract26 /// Get user, which deployed specified contract
19 /// @dev May return zero address in case if contract is deployed27 /// @dev May return zero address in case if contract is deployed
29 view37 view
30 returns (address);38 returns (address);
3139
40<<<<<<< HEAD
32 /// Set sponsor.41 /// Set sponsor.
33 /// @param contractAddress Contract for which a sponsor is being established.42 /// @param contractAddress Contract for which a sponsor is being established.
34 /// @param sponsor User address who set as pending sponsor.43 /// @param sponsor User address who set as pending sponsor.
35 /// @dev EVM selector for this function is: 0xf01fba93,44 /// @dev EVM selector for this function is: 0xf01fba93,
36 /// or in textual repr: setSponsor(address,address)45 /// or in textual repr: setSponsor(address,address)
46=======
47<<<<<<< HEAD
48 // Set sponsor.
49 //
50 // @param contract_address Contract for which a sponsor is being established.
51 // @param sponsor User address who set as pending sponsor.
52 //
53 // Selector: setSponsor(address,address) f01fba93
54>>>>>>> path: add stubs
37 function setSponsor(address contractAddress, address sponsor) external;55 function setSponsor(address contractAddress, address sponsor) external;
3856
39 /// Set contract as self sponsored.57 /// Set contract as self sponsored.
59 /// or in textual repr: confirmSponsorship(address)77 /// or in textual repr: confirmSponsorship(address)
60 function confirmSponsorship(address contractAddress) external;78 function confirmSponsorship(address contractAddress) external;
6179
80<<<<<<< HEAD
62 /// Get current sponsor.81 /// Get current sponsor.
63 ///82 ///
64 /// @param contractAddress The contract for which a sponsor is requested.83 /// @param contractAddress The contract for which a sponsor is requested.
65 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.84 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
66 /// @dev EVM selector for this function is: 0x743fc745,85 /// @dev EVM selector for this function is: 0x743fc745,
67 /// or in textual repr: getSponsor(address)86 /// or in textual repr: getSponsor(address)
87=======
88 // Get current sponsor.
89 //
90 // @param contract_address The contract for which a sponsor is requested.
91 // @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
92 //
93=======
94 // Selector: setSponsor(address,address) f01fba93
95 function setSponsor(address contractAddress, address sponsor) external;
96
97 // Selector: confirmSponsorship(address) abc00001
98 function confirmSponsorship(address contractAddress) external;
99
100>>>>>>> path: add stubs
101 // Selector: getSponsor(address) 743fc745
102>>>>>>> path: add stubs
68 function getSponsor(address contractAddress)103 function getSponsor(address contractAddress)
69 external104 external
70 view105 view
71 returns (Tuple0 memory);106 returns (Tuple0 memory);
72107
108<<<<<<< HEAD
73 /// Check tat contract has confirmed sponsor.109 /// Check tat contract has confirmed sponsor.
74 ///110 ///
75 /// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.111 /// @param contractAddress The contract for which the presence of a confirmed sponsor is checked.
84 /// @return **true** if contract has pending sponsor.120 /// @return **true** if contract has pending sponsor.
85 /// @dev EVM selector for this function is: 0x39b9b242,121 /// @dev EVM selector for this function is: 0x39b9b242,
86 /// or in textual repr: hasPendingSponsor(address)122 /// or in textual repr: hasPendingSponsor(address)
123=======
124<<<<<<< HEAD
125 // Check tat contract has confirmed sponsor.
126 //
127 // @param contract_address The contract for which the presence of a confirmed sponsor is checked.
128 // @return **true** if contract has confirmed sponsor.
129 //
130 // Selector: hasSponsor(address) 97418603
131 function hasSponsor(address contractAddress) external view returns (bool);
132
133 // Check tat contract has pending sponsor.
134 //
135 // @param contract_address The contract for which the presence of a pending sponsor is checked.
136 // @return **true** if contract has pending sponsor.
137 //
138=======
139 // Selector: hasSponsor(address) 97418603
140 function hasSponsor(address contractAddress) external view returns (bool);
141
142>>>>>>> path: add stubs
143 // Selector: hasPendingSponsor(address) 39b9b242
144>>>>>>> path: add stubs
87 function hasPendingSponsor(address contractAddress)145 function hasPendingSponsor(address contractAddress)
88 external146 external
89 view147 view
modifiedtests/src/eth/util/contractHelpersAbi.jsondiffbeforeafterboth
--- a/tests/src/eth/util/contractHelpersAbi.json
+++ b/tests/src/eth/util/contractHelpersAbi.json
@@ -120,6 +120,7 @@
         "internalType": "address",
         "name": "contractAddress",
         "type": "address"
+<<<<<<< HEAD
       }
     ],
     "name": "removeSponsor",
@@ -146,6 +147,8 @@
         "internalType": "address",
         "name": "contractAddress",
         "type": "address"
+=======
+>>>>>>> path: add stubs
       },
       { "internalType": "address", "name": "sponsor", "type": "address" }
     ],