Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_contract: Web3Contract<NetworkMethods, any>
_settlerToken: ERC20
_transactionToken: ERC20
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get settlerToken(): ERC20
  • get transactionToken(): ERC20
  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • COUNCIL_AMOUNT(): Promise<number>
  • approveSettlerERC20Token(amount?: number, address?: string): Promise<TransactionReceipt>
  • Parameters

    • Optional amount: number
    • address: string = ...

    Returns Promise<TransactionReceipt>

  • approveTransactionalERC20Token(amount?: number, address?: string): Promise<TransactionReceipt>
  • Parameters

    • Optional amount: number
    • address: string = ...

    Returns Promise<TransactionReceipt>

  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • changeCouncilAmount(value: string): Promise<TransactionReceipt>
  • changeDisputableTime(amount: number): Promise<TransactionReceipt>
  • changeRedeemTime(amount: number): Promise<TransactionReceipt>
  • closeIssue(id: number, mergeId: number): Promise<TransactionReceipt>
  • connect(): Promise<boolean>
  • delegateOracles(amount: number, delegateTo: string): Promise<TransactionReceipt>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(settlerAddress: string, transactionalAddress: string, governanceAddress: string): Promise<TransactionReceipt>
  • disputableTime(): Promise<number>
  • disputeMerge(id: number, mergeId: number): Promise<TransactionReceipt>
  • disputesForMergeByAddress(issueId: number, proposalId: number, address: string): Promise<number>
  • getAmountOfIssuesClosed(): Promise<number>
  • getAmountOfIssuesOpened(): Promise<number>
  • getBEPROStaked(): Promise<number>
  • getIssuesByAddress(address: string): Promise<number[]>
  • getMergeById(issueId: number, mergeId: number): Promise<any>
  • getOraclesByAddress(address: string): Promise<number>
  • getSettlerTokenAddress(): Promise<string>
  • getTokensStaked(): Promise<number>
  • getTransactionTokenAddress(): Promise<string>
  • isApprovedSettlerToken(amount: number, address?: string): Promise<boolean>
  • isApprovedTransactionalToken(amount: number, address?: string): Promise<boolean>
  • isCouncil(address: string): Promise<boolean>
  • isIssueInDraft(issueId: number): Promise<boolean>
  • isMergeDisputed(issueId: number, mergeId: number): Promise<boolean>
  • isMergeInDraft(id: number, mergeId: number): Promise<boolean>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(amount: number): Promise<TransactionReceipt>
  • mergeCreatorFeeShare(): Promise<number>
  • openIssue(cid: string, amount: number): Promise<TransactionReceipt>
  • percentageNeededForDispute(): Promise<number>
  • proposeIssueMerge(id: number, prAddresses: string[], prAmounts: number[]): Promise<TransactionReceipt>
  • Parameters

    • id: number
    • prAddresses: string[]
    • prAmounts: number[]

    Returns Promise<TransactionReceipt>

  • recognizeAsFinished(id: number): Promise<TransactionReceipt>
  • redeemIssue(id: number): Promise<TransactionReceipt>
  • redeemTime(): Promise<number>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • start(): Promise<void>
  • unlock(amount: number, from: string): Promise<TransactionReceipt>
  • updateIssue(id: number, amount: number): Promise<TransactionReceipt>

Generated using TypeDoc