Repo

contract Repo

is AragonApp

Source: contracts/apm/Repo.sol

Index

Reference

Events

NewVersion

event`` NewVersion(uint256 versionId, uint16[] semanticVersion)

Parameters:

  • versionId - uint256

  • semanticVersion - uint16[]

Functions

getBySemanticVersion

function`` getBySemanticVersion(uint16[] _semanticVersion) public view returns (uint16[], address, bytes)ù

Parameters:

  • _semanticVersion - uint16[]

Returns:

  • uint16[]

  • address

  • bytes

getByVersionId

function`` getByVersionId(uint _versionId) public view returns (uint16[], address, bytes)


Parameters:

  • _versionId - uint

Returns:

  • uint16[]

  • address

  • bytes

getLatest

function`` getLatest() public view returns (uint16[], address, bytes)


Returns:

  • uint16[]

  • address

  • bytes

getLatestForContractAddress

function`` getLatestForContractAddress(address _contractAddress) public view returns (uint16[], address, bytes)


Parameters:

  • _contractAddress - address

Returns:

  • uint16[]

  • address

  • bytes

getVersionsCount

function`` getVersionsCount() public view returns (uint256)


Returns:

  • uint256

initialize

function`` initialize() public


Initialize can only be called once. It saves the block number in which it was initialized., Initialize this Repo.

Modifiers:

isValidBump

function`` isValidBump(uint16[] _oldVersion, uint16[] _newVersion) public pure returns (bool)


Parameters:

  • _oldVersion - uint16[]

  • _newVersion - uint16[]

Returns:

  • bool

newVersion

function`` newVersion(uint16[] _newSemanticVersion, address _contractAddress, bytes _contentURI) public


Create new version with contract `_contractAddress` and content `@fromHex(_contentURI)`.

Modifiers:

Parameters:

  • _newSemanticVersion - Semantic version for new repo version

  • _contractAddress - address for smart contract logic for version (if set to 0, it uses last versions' contractAddress)

  • _contentURI - External URI for fetching new version's content

semanticVersionHash

function`` semanticVersionHash(uint16[] version) internal pure returns (bytes32)


Parameters:

  • version - uint16[]

Returns:

  • bytes32

Last updated