Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Network_v2Methods

Hierarchy

  • Network_v2Methods

Index

Methods

  • cancelBounty(id: number): ContractSendMethod
  • cancelFundRequest(id: number): ContractSendMethod
  • cancelPullRequest(ofBounty: number, prId: number): ContractSendMethod
  • changeNetworkParameter(_parameter: number, _value: string | number): ContractSendMethod
  • claimGovernor(): ContractSendMethod
  • closeBounty(id: number, proposalId: number, ipfsUri: string): ContractSendMethod
  • createBountyProposal(id: number, prId: number, recipients: string[], percentages: number[]): ContractSendMethod
  • createPullRequest(forBountyId: number, originRepo: string, originBranch: string, originCID: string, userRepo: string, userBranch: string, cid: number): ContractSendMethod
  • Parameters

    • forBountyId: number
    • originRepo: string
    • originBranch: string
    • originCID: string
    • userRepo: string
    • userBranch: string
    • cid: number

    Returns ContractSendMethod

  • delegateOracles(amount: string | number, toAddress: string): ContractSendMethod
  • disputeBountyProposal(bountyId: number, proposalId: number): ContractSendMethod
  • disputes(address: string, bountyAndProposalIds: string): ContractCallMethod<number>
  • disputes(address: string, bountyId: string | number, proposalId: string | number): ContractCallMethod<number>
  • fundBounty(id: number, fundingAmount: string | number): ContractSendMethod
  • getBounty(id: number): ContractCallMethod<{ branch: string; canceled: boolean; cid: string; closed: boolean; closedDate: number; creationDate: number; creator: string; funded: boolean; funding: { amount: number; benefactor: string; creationDate: number }[]; fundingAmount: number; githubUser: string; id: number; proposals: { creationDate: number; creator: string; details: { percentage: number; recipient: string }[]; disputeWeight: number; id: number; oracles: number; prId: number; refusedByBountyOwner: boolean }[]; pullRequests: { canceled: boolean; cid: number; creator: string; id: number; originBranch: string; originCID: string; originRepo: string; ready: boolean; userBranch: string; userRepo: string }[]; repoPath: string; rewardAmount: number; rewardToken: string; title: string; tokenAmount: number; transactional: string }>
  • Parameters

    • id: number

    Returns ContractCallMethod<{ branch: string; canceled: boolean; cid: string; closed: boolean; closedDate: number; creationDate: number; creator: string; funded: boolean; funding: { amount: number; benefactor: string; creationDate: number }[]; fundingAmount: number; githubUser: string; id: number; proposals: { creationDate: number; creator: string; details: { percentage: number; recipient: string }[]; disputeWeight: number; id: number; oracles: number; prId: number; refusedByBountyOwner: boolean }[]; pullRequests: { canceled: boolean; cid: number; creator: string; id: number; originBranch: string; originCID: string; originRepo: string; ready: boolean; userBranch: string; userRepo: string }[]; repoPath: string; rewardAmount: number; rewardToken: string; title: string; tokenAmount: number; transactional: string }>

  • getDelegationsFor(_address: string): ContractCallMethod<{ amount: number; from: string; id: number; to: string }[]>
  • hardCancel(id: number): ContractSendMethod
  • manageOracles(lock: boolean, amount: string | number): ContractSendMethod
  • markPullRequestReadyForReview(bountyId: number, pullRequestId: number): ContractSendMethod
  • openBounty(tokenAmount: string | number, transactional: string, rewardToken: string, rewardAmount: string | number, fundingAmount: string | number, cid: string, title: string, repoPath: string, branch: string, githubUser: string): ContractSendMethod
  • Parameters

    • tokenAmount: string | number
    • transactional: string
    • rewardToken: string
    • rewardAmount: string | number
    • fundingAmount: string | number
    • cid: string
    • title: string
    • repoPath: string
    • branch: string
    • githubUser: string

    Returns ContractSendMethod

  • oracles(v1: string): ContractCallMethod<{ byOthers: number; locked: number; toOthers: number }>
  • proposeGovernor(proposedGovernor: string): ContractSendMethod
  • refuseBountyProposal(bountyId: number, proposalId: number): ContractSendMethod
  • retractFunds(id: number, fundingId: number): ContractSendMethod
  • takeBackOracles(entryId: number): ContractSendMethod
  • updateBountyAmount(id: number, newTokenAmount: string | number): ContractSendMethod
  • updateTresuryAddress(_address: string): ContractSendMethod
  • withdrawFundingReward(id: number, fundingId: number): ContractSendMethod

Generated using TypeDoc