Hierarchy

  • AccessControlEnumerable
    • Etherbase

Constructors

  • Initialization of the Etherbase Contract This is a wrapper of the solidity smart contract

    Parameters

    • params: IInitParams

      The core parameters passed into the constructor

    Returns Etherbase

Properties

DEFAULT_ADMIN_ROLE: string
ETHER_MANAGER_ROLE: string = ...
contract: Contract
hasSigner: boolean
signer: Wallet

Methods

  • Returns void

  • Private

    Internal Async Function Check to see if input values are acceptable

    Function

    onlyEtherManagerCheck

    Parameters

    • params: IFullCheck

      Full Check Params Contains address check and amount chec

    Returns Promise<void>

  • Parameters

    • __namedParameters: {
          nameOnly?: boolean;
      }
      • Optional nameOnly?: boolean

    Returns string[]

  • Function

    getRoleAdmin

    Returns

    string

    Parameters

    • role: IRole

    Returns Promise<any>

  • Function

    getRoleMember

    Returns

    address

    Parameters

    • params: IGetRoleMember

    Returns Promise<any>

  • Function

    getRoleMemberCount

    Returns

    BigNumber

    Parameters

    • role: IRole

    Returns Promise<any>

  • Function

    grantRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Function

    hasRole

    Returns

    string

    Async

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Internal Function to check if address has ETHER_MANAGER_ROLE

    Function

    isEtherManager

    Returns

    Has Ether Manager Role

    Parameters

    • address: string

      Address to Check

    Returns Promise<boolean>

  • Private

    Internal Async Function check to see whether the signer has ETHER_MANAGER_ROLE

    Function

    onlyEtherManagerCheck

    Returns Promise<void>

  • Wrapper for Solidity Function partiallyRetreive. Allows requester to withdraw a specific amount of sFUEL to a specific address. Must have {ETHER_MANAGER_ROLE} to successfully call Optional: Can optionally callRunChecks to run contract requirements on the client

    Function

    partiallyRetreive

    Returns

    Transaction Information

    Parameters

    • params: IPartiallyRetrieve

      The retriever params

    Returns Promise<ContractReceipt>

  • Function

    renounceRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Wrapper for Solidity Function retrieve. Allows requester to withdraw all funds from Etherbase to a specific address Must have {ETHER_MANAGER_ROLE} to successfully call Optional: Can optionally callRunChecks to run contract requirements on the client

    Function

    retrieve

    Returns

    Transaction Information

    Parameters

    • params: IRetrieve

      The retriever params

    Returns Promise<ContractReceipt>

  • Function

    revokeRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Parameters

    • __namedParameters: {
          signer: Wallet;
      }
      • signer: Wallet

    Returns void