Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • export=

Index

Constructors

constructor

  • new export=(__namedParameters: { contractAddress?: string; gatewayHost?: string; ipfsHost?: string; metaTx?: boolean; registryAddress?: string; web3Provider: provider }): export=
  • Parameters

    • __namedParameters: { contractAddress?: string; gatewayHost?: string; ipfsHost?: string; metaTx?: boolean; registryAddress?: string; web3Provider: provider }
      • Optional contractAddress?: string
      • Optional gatewayHost?: string
      • Optional ipfsHost?: string
      • Optional metaTx?: boolean
      • Optional registryAddress?: string
      • web3Provider: provider

    Returns export=

Properties

cache

Optional chainID

chainID: number

contract

contract: any

Optional contractAddress

contractAddress: string

defaultAccount

defaultAccount: string

Optional gatewayHost

gatewayHost: string

ipfs

ipfs: any

metaTxEnabled

metaTxEnabled: boolean = false

registry

registry: any

Optional registryAddress

registryAddress: string

Optional signer

signer: string

web3

web3: default

Methods

addFileToIPFS

  • addFileToIPFS(data: any, onlyHash?: boolean): Promise<string>
  • Parameters

    • data: any
    • Optional onlyHash: boolean

    Returns Promise<string>

addFolderToIPFS

  • addFolderToIPFS(files: any[], parent?: string): Promise<string>
  • Parameters

    • files: any[]
    • parent: string = ''

    Returns Promise<string>

addJSONtoIPFS

  • addJSONtoIPFS(data: any, onlyHash?: boolean): Promise<string>
  • Parameters

    • data: any
    • Optional onlyHash: boolean

    Returns Promise<string>

clearPendingOrgKey

  • clearPendingOrgKey(orgName: string, operation: string, key: string, index: number): Promise<any>
  • Parameters

    • orgName: string
    • operation: string
    • key: string
    • index: number

    Returns Promise<any>

clearPendingOrgThreshold

  • clearPendingOrgThreshold(orgName: string, threshold: number, index: number): Promise<any>
  • Parameters

    • orgName: string
    • threshold: number
    • index: number

    Returns Promise<any>

clearPendingRelease

  • clearPendingRelease(orgName: string, repoName: string, release: Release, index: number): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • release: Release
    • index: number

    Returns Promise<any>

clearPendingRepoKey

  • clearPendingRepoKey(orgName: string, repoName: string, operation: string, key: string, index: number): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • operation: string
    • key: string
    • index: number

    Returns Promise<any>

clearPendingRepoThreshold

  • clearPendingRepoThreshold(orgName: string, repoName: string, threshold: number, index: number): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • threshold: number
    • index: number

    Returns Promise<any>

connect

  • connect(): Promise<void>

createOrganization

  • createOrganization(orgName: string, orgMeta: OrgMeta): Promise<any>

createRepository

  • createRepository(orgName: string, repoName: string, repoMeta: RepoMeta, account?: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • repoMeta: RepoMeta
    • account: string = ...

    Returns Promise<any>

fetchJSONfromIPFS

  • fetchJSONfromIPFS(ipfsHash: string): Promise<any>

Private getEvents

  • getEvents(topics?: any[]): Promise<EventLog[]>
  • Parameters

    • Optional topics: any[]

    Returns Promise<EventLog[]>

getLatestRelease

  • getLatestRelease(orgName: string, repoName: string): Promise<Release>

getOrgAdmins

  • getOrgAdmins(orgName: string): Promise<string[]>
  • Parameters

    • orgName: string

    Returns Promise<string[]>

getOrgEvents

  • getOrgEvents(orgName: string): Promise<EventLog[]>
  • Parameters

    • orgName: string

    Returns Promise<EventLog[]>

getOrgIDFromName

  • getOrgIDFromName(orgName: string): Promise<string>
  • Parameters

    • orgName: string

    Returns Promise<string>

getOrganization

  • getOrganization(orgName: string, page?: number, resultsPerPage?: number): Promise<Organization>

getOrganizationNames

  • getOrganizationNames(page?: number, resultsPerPage?: number): Promise<string[]>
  • Parameters

    • page: number = 1
    • resultsPerPage: number = 10

    Returns Promise<string[]>

getPendingOrgAdminVotes

  • getPendingOrgAdminVotes(orgName: string, operation: string, address: string): Promise<PendingVote>

getPendingOrgAdmins

  • getPendingOrgAdmins(orgName: string): Promise<string[]>
  • Parameters

    • orgName: string

    Returns Promise<string[]>

getPendingOrgThresholdVotes

  • getPendingOrgThresholdVotes(orgName: string, threshold: number): Promise<PendingVote>

getPendingOrgThresholds

  • getPendingOrgThresholds(orgName: string): Promise<string[]>
  • Parameters

    • orgName: string

    Returns Promise<string[]>

getPendingReleaseVotes

  • getPendingReleaseVotes(orgName: string, repoName: string, release: Release): Promise<PendingVote>

getPendingReleases

  • getPendingReleases(orgName: string, repoName: string): Promise<PendingRelease[]>

getPendingRepoDevVotes

  • getPendingRepoDevVotes(orgName: string, repoName: string, operation: string, address: string): Promise<PendingVote>
  • Parameters

    • orgName: string
    • repoName: string
    • operation: string
    • address: string

    Returns Promise<PendingVote>

getPendingRepoDevs

  • getPendingRepoDevs(orgName: string, repoName: string): Promise<string[]>
  • Parameters

    • orgName: string
    • repoName: string

    Returns Promise<string[]>

getPendingRepoThresholdVotes

  • getPendingRepoThresholdVotes(orgName: string, repoName: string, threshold: number): Promise<PendingVote>

getPendingRepoThresholds

  • getPendingRepoThresholds(orgName: string, repoName: string): Promise<string[]>
  • Parameters

    • orgName: string
    • repoName: string

    Returns Promise<string[]>

Private getPendingVotes

  • getPendingVotes(voteSelector: string): Promise<PendingVote>

getReleaseByTag

  • getReleaseByTag(orgName: string, repoName: string, tag: string): Promise<Release>

getReleaseTags

  • getReleaseTags(orgName: string, repoName: string, page?: number, resultsPerPage?: number): Promise<string[]>
  • Parameters

    • orgName: string
    • repoName: string
    • page: number = 1
    • resultsPerPage: number = 10

    Returns Promise<string[]>

getReleases

  • getReleases(orgName: string, repoName: string, page?: number, resultsPerPage?: number): Promise<Release[]>
  • Parameters

    • orgName: string
    • repoName: string
    • page: number = 1
    • resultsPerPage: number = 10

    Returns Promise<Release[]>

getRepoDevs

  • getRepoDevs(orgName: string, repoName: string): Promise<string[]>
  • Parameters

    • orgName: string
    • repoName: string

    Returns Promise<string[]>

getRepoEvents

  • getRepoEvents(orgName: string, repoName: string): Promise<EventLog[]>
  • Parameters

    • orgName: string
    • repoName: string

    Returns Promise<EventLog[]>

getRepoNames

  • getRepoNames(orgName: string, page?: number, resultsPerPage?: number): Promise<string[]>
  • Parameters

    • orgName: string
    • page: number = 1
    • resultsPerPage: number = 10

    Returns Promise<string[]>

getRepository

  • getRepository(orgName: string, repoName: string): Promise<Repository>

isOrgAdmin

  • isOrgAdmin(orgName: string, account?: string): Promise<boolean>
  • Parameters

    • orgName: string
    • account: string = ...

    Returns Promise<boolean>

isRepoDev

  • isRepoDev(orgName: string, repoName: string, account?: string): Promise<boolean>
  • Parameters

    • orgName: string
    • repoName: string
    • account: string = ...

    Returns Promise<boolean>

linkNameToID

  • linkNameToID(name: string, orgID: string): Promise<any>
  • Parameters

    • name: string
    • orgID: string

    Returns Promise<any>

prepareRelease

  • prepareRelease(config: ValistConfig, releaseFiles: any, metaFile: any, parentFolder?: string): Promise<Release>

publishRelease

  • publishRelease(orgName: string, repoName: string, release: Release, account?: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • release: Release
    • account: string = ...

    Returns Promise<any>

repoHasReleased

  • repoHasReleased(orgName: string, repoName: string): Promise<boolean>
  • Parameters

    • orgName: string
    • repoName: string

    Returns Promise<boolean>

revokeOrgAdmin

  • revokeOrgAdmin(orgName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • key: string

    Returns Promise<any>

revokeRepoDev

  • revokeRepoDev(orgName: string, repoName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • key: string

    Returns Promise<any>

rotateOrgAdmin

  • rotateOrgAdmin(orgName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • key: string

    Returns Promise<any>

rotateRepoDev

  • rotateRepoDev(orgName: string, repoName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • key: string

    Returns Promise<any>

sendTransaction

  • sendTransaction(functionCall: any, account?: string): Promise<any>
  • Parameters

    • functionCall: any
    • account: string = ...

    Returns Promise<any>

setOrgMeta

  • setOrgMeta(orgName: string, orgMeta: OrgMeta, account?: string): Promise<any>
  • Parameters

    • orgName: string
    • orgMeta: OrgMeta
    • account: string = ...

    Returns Promise<any>

setRepoMeta

  • setRepoMeta(orgName: string, repoName: string, repoMeta: RepoMeta, account?: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • repoMeta: RepoMeta
    • account: string = ...

    Returns Promise<any>

voteOrgAdmin

  • voteOrgAdmin(orgName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • key: string

    Returns Promise<any>

voteOrgThreshold

  • voteOrgThreshold(orgName: string, threshold: number): Promise<any>
  • Parameters

    • orgName: string
    • threshold: number

    Returns Promise<any>

voteRepoDev

  • voteRepoDev(orgName: string, repoName: string, key: string): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • key: string

    Returns Promise<any>

voteRepoThreshold

  • voteRepoThreshold(orgName: string, repoName: string, threshold: number): Promise<any>
  • Parameters

    • orgName: string
    • repoName: string
    • threshold: number

    Returns Promise<any>

Legend

  • Class
  • Constructor
  • Property
  • Method
  • Variable
  • Function
  • Type alias
  • Private method

Generated using TypeDoc