Company Directory
/contracts/CompanyDirectoryInterface.sol

Maksym Petkus, Adrian Haensler

event

CertificateUpdated df0a06c8

inputs0bytes32identity_type_urn
inputs1bytes32identity_id
inputs2bytescertificate
event

CompanyRegistered 9e960a06

inputs0bytes32[]identity_type_urns
inputs1bytes32[]identity_ids
inputs2stringname
inputs3bytes32permissions
inputs4addressowner_address
event

EndpointCreated 82ca85c9

inputs0bytes32identity_type_urn
inputs1bytes32identity_id
inputs2bytes32endpoint_id
inputs3stringurl
event

EndpointUpdated 2bd6096a

inputs0bytes32identity_type_urn
inputs1bytes32identity_id
inputs2bytes32endpoint_id
inputs3stringurl
function

addEndpoint 534ea6c2

Add new endpoint to the company

inputs0bytes32_id

Unique identifier of an endpoint, e.g. name

inputs1string_url

The url of the endpoint

function, constant

companyExists e4ed7d19

Verify if company is registered

inputs0bytes32_type_urn

Company identity type URN

inputs1bytes32_id

Company identity value

outputs0bool_exists

true if company with the identity is registered

function, constant

getCompaniesCount ccb0a334

Get total number of registered companies

outputs0uint256_count

Companies count

function, constant

getCompanyByIdentity 29d0e8e4

Get all company information by its identity

inputs0bytes32_type_urn

Company identity type URN

inputs1bytes32_id

Company identity value

outputs0bytes32_company_oid

Company object id, an internal universal identity

outputs1bytes32[]_identity_type_urns

All company's URN identity types

outputs2bytes32[]_identity_ids

All company's identity values corresponding to URN types

outputs3string_name

Name of the company

outputs4bytes32_permissions

A 256 bit permissions flags vector

outputs5bytes_root_certificate

Company's root certificate data

function, constant

getCompanyByIndex c5d76a52

Get all company information by its identity

inputs0uint256_index

Index of the company in the directory

outputs0bytes32_company_oid

Company object id, an internal universal identity

outputs1bytes32[]_identity_type_urns

All company's URN identity types

outputs2bytes32[]_identity_ids

All company's identity values corresponding to URN types

outputs3string_name

Name of the company

outputs4bytes32_permissions

A 256 bit permissions flags vector

outputs5bytes_root_certificate

Company's root certificate data

function, constant

getEndpointUrl 3620a7a4

Retrieve company's endpoint URL

inputs0bytes32_identity_type_urn

Company identity type URN

inputs1bytes32_identity_id

Company identity value

inputs2bytes32_endpoint_id

Endpoint identity

function

register 6acb2d66

Registering a company. All identities must be unique.

inputs0bytes32[]_type_urns

Company identity type URN array, (e.g. gs1:company-prefix)

inputs1bytes32[]_ids

Company identity value corresponding 1-to-1 to _type_urns

inputs2string_name

Company name

inputs3bytes32_permissions

256 bits vector of company permission flags

inputs4address_owner_address

blockchain address of initial company administrator

function

setCertificate b3e36d0a

Setting new certificate by the company owner.

inputs0bytes_certificate_data

Certificate data in binary format

function

transferOwner 4fb2e45d

Change blockchain address of an owner to a new one

inputs0address_new_owner_address

New address of the owner

function

updateEndpoint 0b55b348

Update existing endpoint of the company

inputs0bytes32_id

Unique identifier of an endpoint, e.g. name

inputs1string_url

New url of the endpoint