Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkFactory

Hierarchy

Implements

Index

Constructors

Properties

_erc20: ERC20
abi: AbiItem[]
contractAddress?: string

Accessors

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

    Returns Account

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

    Returns default

Methods

  • OPERATOR_AMOUNT(): Promise<string>
  • approveSettlerERC20Token(): Promise<TransactionReceipt<any>>
  • connect(): Promise<boolean>
  • createNetwork(erc20: string, transactionalToken: string): 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(erc20ContractAddress: string): Promise<TransactionReceipt<any>>
  • getAmountOfNetworksForked(): Promise<number>
  • getBEPROLocked(): Promise<string>
  • getLockedStakedByAddress(address: string): Promise<string>
  • getNetworkByAddress(address: string): Promise<string>
  • getNetworkById(id: number): Promise<string>
  • getSettlerTokenAddress(): Promise<string>
  • isApprovedSettlerToken(address?: string, amount: number): Promise<boolean>
  • isOperator(address: string): Promise<boolean>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(amount: string | number): Promise<TransactionReceipt<any>>
  • 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(): Promise<TransactionReceipt<any>>

Generated using TypeDoc