Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Network_Registry

Hierarchy

Implements

Index

Constructors

Properties

_DIVISOR: number
_bountyToken: BountyToken
_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 divisor(): number
  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • addAllowedTokens(addresses: string[], isTransactional: boolean): Promise<TransactionReceipt>
  • amountOfNetworks(): Promise<number>
  • bountyTokenAddress(): Promise<string>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • changeAmountForNetworkCreation(newAmount: number): Promise<TransactionReceipt>
  • changeGlobalFees(closeFee: number, cancelFee: number): Promise<TransactionReceipt>
  • changeNetworkCreationFee(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, closeFee?: number, cancelFee?: number, bountyToken?: string): Promise<TransactionReceipt>
  • Parameters

    • _erc20: string
    • _lockAmountForNetworkCreation: number
    • treasury: string
    • lockFeePercentage: number
    • closeFee: number = 10000
    • cancelFee: number = 20000
    • bountyToken: string = nativeZeroAddress

    Returns Promise<TransactionReceipt>

  • erc20(): Promise<string>
  • getAllowedTokenLen(): Promise<number[]>
  • getAllowedTokens(): Promise<{ reward: string[]; transactional: string[] }>
  • getChangeAllowedTokensEvents(filter: PastEventOptions): XPromiseEvent<ChangeAllowedTokensEvent>
  • getChangedFeeEvent(filter: PastEventOptions): XPromiseEvent<ChangedFeeEvent>
  • getDivisor(): Promise<number>
  • getGovernorTransferredEvents(filter: PastEventOptions): Promise<XEvents<GovernorTransferredEvent>[]>
  • getLockFeeChangedEvents(filter: PastEventOptions): XPromiseEvent<LockFeeChangedEvent>
  • getNetworkClosedEvents(filter: PastEventOptions): Promise<XEvents<NetworkClosedEvent>[]>
  • getNetworkRegisteredEvents(filter: PastEventOptions): Promise<XEvents<NetworkRegisteredEvent>[]>
  • getUserLockedAmountChangedEvents(filter: PastEventOptions): XPromiseEvent<UserLockedAmountChangedEvent>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(_amount: number): Promise<TransactionReceipt>
  • lockAmountForNetworkCreation(): Promise<number>
  • lockedTokensOfAddress(v1: string): Promise<number>
  • networkCreationFeePercentage(): Promise<number>
  • networkOfAddress(v1: string): Promise<string>
  • networksArray(v1: number): Promise<string>
  • registerNetwork(networkAddress: string): Promise<TransactionReceipt>
  • removeAllowedTokens(addresses: string[], isTransactional: boolean): Promise<TransactionReceipt>
  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt>
  • start(): Promise<void>
  • totalLockedAmount(): Promise<number>
  • treasury(): Promise<string>
  • unlock(): Promise<TransactionReceipt>

Generated using TypeDoc