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<string>
  • approveSettlerERC20Token(amount?: string | number, address?: string): Promise<TransactionReceipt<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

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

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

    Returns Promise<TransactionReceipt<any>>

  • changeCouncilAmount(value: string): Promise<TransactionReceipt<any>>
  • changeDisputableTime(amount: number): Promise<TransactionReceipt<any>>
  • changeRedeemTime(amount: number): Promise<TransactionReceipt<any>>
  • closeIssue(id: number, mergeId: number): Promise<TransactionReceipt<any>>
  • connect(): Promise<boolean>
  • delegateOracles(amount: string | number, delegateTo: string): Promise<TransactionReceipt<any>>
  • Parameters

    • amount: string | number
    • delegateTo: string

    Returns Promise<TransactionReceipt<any>>

  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(settlerAddress: string, transactionalAddress: string, governanceAddress: string): Promise<TransactionReceipt<any>>
  • disputableTime(): Promise<number>
  • disputeMerge(id: number, mergeId: number): Promise<TransactionReceipt<any>>
  • disputesForMergeByAddress(issueId: number, proposalId: number, address: string): Promise<number>
  • getAmountOfIssuesClosed(): Promise<number>
  • getAmountOfIssuesOpened(): Promise<number>
  • getBEPROStaked(): Promise<string>
  • getIssuesByAddress(address: string): Promise<number[]>
  • getMergeById(issueId: number, mergeId: number): Promise<any>
  • getOraclesByAddress(address: string): Promise<string>
  • getSettlerTokenAddress(): Promise<string>
  • getTokensStaked(): Promise<string>
  • 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: string | number): Promise<TransactionReceipt<any>>
  • mergeCreatorFeeShare(): Promise<number>
  • openIssue(cid: string, amount: string | number): Promise<TransactionReceipt<any>>
  • percentageNeededForDispute(): Promise<number>
  • proposeIssueMerge(id: number, prAddresses: string[], prAmounts: number[]): Promise<TransactionReceipt<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

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

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • start(): Promise<void>
  • unlock(amount: string | number, from: string): Promise<TransactionReceipt<any>>
  • updateIssue(id: number, amount: string | number): Promise<TransactionReceipt<any>>

Generated using TypeDoc