Class Client

Hierarchy

  • Client

Constructors

  • Parameters

    • registry: Contract
    • license: Contract
    • ipfs: IPFSCLIENT
    • ipfsGateway: string
    • subgraphUrl: string
    • Optional signer: Signer
    • metaTx: boolean = true

    Returns Client

Properties

generateID: ((parentID, name) => string) = generateID

Type declaration

    • (parentID, name): string
    • Generate account, project, and release IDs.

      Parameters

      • parentID: BigNumberish

        ID of the parent account or release. Use chainId for accounts.

      • name: string

        Name of the account, project, or rlease.

      Returns string

getAccountID: ((chainId, account) => string) = getAccountID

Type declaration

    • (chainId, account): string
    • Parameters

      • chainId: BigNumberish
      • account: string

      Returns string

getProjectID: ((chainId, account, project) => string) = getProjectID

Type declaration

    • (chainId, account, project): string
    • Parameters

      • chainId: BigNumberish
      • account: string
      • project: string

      Returns string

getReleaseID: ((chainId, account, project, release) => string) = getReleaseID

Type declaration

    • (chainId, account, project, release): string
    • Parameters

      • chainId: BigNumberish
      • account: string
      • project: string
      • release: string

      Returns string

ipfsGateway: string
license: Contract
metaTx: boolean = true
registry: Contract
signer?: Signer
subgraphUrl: string

Methods

  • Parameters

    • accountID: BigNumberish

    Returns Promise<boolean>

  • Parameters

    • accountID: BigNumberish
    • address: string

    Returns Promise<TransactionResponse>

  • Parameters

    • projectID: BigNumberish
    • address: string

    Returns Promise<TransactionResponse>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<TransactionResponse>

  • Parameters

    Returns Promise<TransactionResponse>

  • Parameters

    • accountID: BigNumberish
    • name: string
    • meta: ProjectMeta
    • members: string[]

    Returns Promise<TransactionResponse>

  • Parameters

    • projectID: BigNumberish
    • name: string
    • meta: ReleaseMeta

    Returns Promise<TransactionResponse>

  • Parameters

    • accountID: BigNumberish

    Returns Promise<string[]>

  • Parameters

    • accountID: BigNumberish

    Returns Promise<AccountMeta>

  • Parameters

    • filePath: string

    Returns string

  • Parameters

    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • address: string
    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • addresses: string[]
    • projectIDs: BigNumberish[]

    Returns Promise<BigNumberish[]>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • projectID: BigNumberish
    • price: BigNumberish

    Returns Promise<[string, BigNumberish]>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • token: string
    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<string[]>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<ProjectMeta>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<ReleaseMeta>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<BigNumberish>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<string[]>

  • Parameters

    • accountID: BigNumberish
    • address: string

    Returns Promise<boolean>

  • Parameters

    • file: File | FileObject

    Returns file is File

  • Parameters

    • projectID: BigNumberish
    • address: string

    Returns Promise<boolean>

  • Parameters

    • releaseID: BigNumberish
    • address: string

    Returns Promise<boolean>

  • Parameters

    • accountID: BigNumberish

    Returns Promise<Project[]>

  • Returns Promise<Account>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<Release[]>

  • Returns Promise<Project>

  • Returns Promise<Release>

  • Parameters

    • address: string

    Returns Promise<Account[]>

  • Parameters

    • address: string

    Returns Promise<Project[]>

  • Parameters

    • projectID: BigNumberish

    Returns Promise<boolean>

  • Parameters

    • projectID: BigNumberish
    • recipient: string

    Returns Promise<ContractTransaction>

  • Parameters

    • token: string
    • projectID: BigNumberish
    • recipient: string

    Returns Promise<ContractTransaction>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<boolean>

  • Parameters

    • accountID: BigNumberish
    • address: string

    Returns Promise<TransactionResponse>

  • Parameters

    • projectID: BigNumberish
    • address: string

    Returns Promise<TransactionResponse>

  • Parameters

    • releaseID: BigNumberish

    Returns Promise<TransactionResponse>

  • Parameters

    • unsigned: ContractTransaction

    Returns Promise<TransactionResponse>

  • Parameters

    Returns Promise<TransactionResponse>

  • Parameters

    • projectID: BigNumberish
    • limit: BigNumberish

    Returns Promise<ContractTransaction>

  • Parameters

    • projectID: BigNumberish
    • price: BigNumberish

    Returns Promise<ContractTransaction>

  • Parameters

    • projectID: BigNumberish
    • recipient: string
    • amount: BigNumberish

    Returns Promise<ContractTransaction>

  • Parameters

    • token: string
    • projectID: BigNumberish
    • price: BigNumberish

    Returns Promise<ContractTransaction>

  • Parameters

    Returns Promise<TransactionResponse>

  • Parameters

    • projectID: BigNumberish
    • recipient: string

    Returns Promise<ContractTransaction>

  • Parameters

    • token: string
    • projectID: BigNumberish
    • recipient: string

    Returns Promise<ContractTransaction>

  • Parameters

    • file: File | FileObject
    • wrapWithDirectory: boolean = false
    • Optional onProgress: ((percentCompleteOrBytesUploaded) => void)
        • (percentCompleteOrBytesUploaded): void
        • Parameters

          • percentCompleteOrBytesUploaded: string | number

          Returns void

    Returns Promise<string>

  • Parameters

    • files: ImportCandidate[]
    • wrapWithDirectory: boolean = false
    • Optional onProgress: ((percent) => void)
        • (percent): void
        • Parameters

          • percent: number

          Returns void

    Returns Promise<string>

  • Parameters

    • files: ImportCandidate[]
    • wrapWithDirectory: boolean = false
    • Optional onProgress: ((percent) => void)
        • (percent): void
        • Parameters

          • percent: number

          Returns void

    Returns Promise<string>

  • Parameters

    • data: Object

    Returns Promise<string>

Generated using TypeDoc