You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/Attestation.sol
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ contract Attestation {
19
19
struct Connection {
20
20
bool active;
21
21
bytes32 data;
22
+
uint256 start;
23
+
uint256 end;
22
24
Direction direction;
23
25
}
24
26
@@ -60,28 +62,28 @@ contract Attestation {
60
62
CompanyUsers[_company_address][msg.sender] =1;
61
63
}
62
64
63
-
function attestByUser(address_company_address, bytes32_connection_type, Direction _direction) companyExist(_company_address){
65
+
function attestByUser(address_company_address, bytes32_connection_type, Direction _direction, uint256_start, uint256_end) companyExist(_company_address){
function attestByCompany(address_user_address,address_company_address, bytes32_connection_type, Direction _direction) companyExist(_company_address) onlyCompanyUser(_company_address) {
73
+
function attestByCompany(address_user_address,address_company_address, bytes32_connection_type, Direction _direction, uint256_start, uint256_end) companyExist(_company_address) onlyCompanyUser(_company_address) {
function createConnection(address_user_address,address_company_address,bytes32_connection_type, Direction _direction)
80
-
{
81
+
function upsertConnection(address_user_address,address_company_address,bytes32_connection_type, Direction _direction, uint256_start, uint256_end) internal {
0 commit comments