Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkRegistry

Hierarchy

Index

Constructors

Properties

_contract: Web3Contract<Network_RegistryMethods, any>
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<any>>
  • amountOfNetworks(): Promise<number>
  • bountyTokenAddress(): Promise<string>
  • changeAmountForNetworkCreation(newAmount: string | number): Promise<TransactionReceipt<any>>
  • changeGlobalFees(closeFee: number, cancelFee: number): Promise<TransactionReceipt<any>>
  • changeNetworkCreationFee(newAmount: number): Promise<TransactionReceipt<any>>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • deployJsonAbi(_erc20: string, _lockAmountForNetworkCreation: number, treasury: string, lockFeePercentage: number, closeFee?: number, cancelFee?: number, bountyToken?: string): Promise<TransactionReceipt<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

  • 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>
  • getMAX_LOCK_PERCENTAGE_FEE(): Promise<number>
  • getNetworkClosedEvents(filter: PastEventOptions): Promise<XEvents<NetworkClosedEvent>[]>
  • getNetworkRegisteredEvents(filter: PastEventOptions): Promise<XEvents<NetworkRegisteredEvent>[]>
  • getUserLockedAmountChangedEvents(filter: PastEventOptions): XPromiseEvent<UserLockedAmountChangedEvent>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(_amount: string | number): Promise<TransactionReceipt<any>>
  • lockAmountForNetworkCreation(): Promise<string>
  • lockedTokensOfAddress(v1: string): Promise<string>
  • networkCreationFeePercentage(): Promise<number>
  • networkOfAddress(v1: string): Promise<string>
  • networksArray(v1: number): Promise<string>
  • registerNetwork(networkAddress: string): Promise<TransactionReceipt<any>>
  • removeAllowedTokens(addresses: string[], isTransactional: boolean): 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>
  • totalLockedAmount(): Promise<string>
  • treasury(): Promise<string>
  • unlock(): Promise<TransactionReceipt<any>>

Generated using TypeDoc