Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Network_Registry

Hierarchy

  • Model<Network_RegistryMethods>
    • Network_Registry

Implements

Index

Constructors

Properties

_contract: Web3Contract<Network_RegistryMethods, any>
_governed: Governed
_token: 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

  • amountOfNetworks(): Promise<number>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • changeAmountForNetworkCreation(newAmount: number): Promise<TransactionReceipt>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(_erc20: string, _lockAmountForNetworkCreation: number, treasury: string, lockFeePercentage: number): Promise<TransactionReceipt>
  • erc20(): Promise<string>
  • getGovernorTransferredEvents(filter: PastEventOptions): Promise<XEvents<GovernorTransferredEvent>[]>
  • getNetworkClosedEvents(filter: PastEventOptions): Promise<XEvents<NetworkClosedEvent>[]>
  • getNetworkCreatedEvents(filter: PastEventOptions): Promise<XEvents<NetworkCreatedEvent>[]>
  • getUserLockedAmountChangedEvents(filter: PastEventOptions): XPromiseEvent<UserLockedAmountChangedEvent>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(_amount: number): Promise<TransactionReceipt>
  • lockAmountForNetworkCreation(): Promise<number>
  • lockFeePercentage(): Promise<number>
  • lockedTokensOfAddress(v1: string): Promise<number>
  • networkOfAddress(v1: string): Promise<string>
  • networksArray(v1: number): Promise<string>
  • registerNetwork(networkAddress: string): Promise<TransactionReceipt>
  • 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>
  • totalLockedAmount(): Promise<number>
  • treasury(): Promise<string>
  • unlock(): Promise<TransactionReceipt>

Generated using TypeDoc