Hierarchy

  • AccessControlEnumerable
    • ConfigController

Constructors

Properties

DEFAULT_ADMIN_ROLE: string
DEPLOYER_ADMIN_ROLE: string = ...
DEPLOYER_ROLE: string = ...
MTM_ADMIN_ROLE: string = ...
contract: Contract
hasSigner: boolean
signer: Wallet

Methods

  • Parameters

    • params: IWhitelist

      IWhitelist contains the address to whitelist and the checkParams flag

      Wrapper for Solidity Function addToWhitelist. Utilizes grantRole under the hood Must have DEPLOYER_ADMIN_ROLE to successfully call Optional: Can optionally call runChecks to run contract requirements on the client

    Returns Promise<ContractReceipt>

  • Returns void

  • Wrapper for Solidity Function enableFreeContractDeployment

    Function

    disableFreeContractDeployment

    Returns

    Transaction Information

    Parameters

    • Optional params: IDefault

      Optional Params. If Params are set with runChecks it will run client checks to confirm proper roles are owned by the user and that fcd is currently enabled

    Returns Promise<ContractReceipt>

  • Wrapper for Solidity Function disableMTM

    Function

    disableMTM

    Returns

    Transaction Information

    Parameters

    • Optional params: IDefault

      Optional Params. If Params are set with runChecks it will run client checks to confirm proper roles are owned by the user and that mtm is currently enabled

    Returns Promise<ContractReceipt>

  • Wrapper for Solidity Function enableFreeContractDeployment

    Function

    enableFreeContractDeployment

    Returns

    Transaction Information

    Parameters

    • Optional params: IDefault

      Optional Params. If Params are set with runChecks it will run client checks to confirm proper roles are owned by the user and that fcd is currently disabled

    Returns Promise<ContractReceipt>

  • Wrapper for Solidity Function enableMTM

    Function

    enableMTM

    Returns

    Transaction Information

    Parameters

    • Optional params: IDefault

      Optional Params. If Params are set with runChecks it will run client checks to confirm proper roles are owned by the user and that mtm is currently disabled

    Returns Promise<ContractReceipt>

  • Private

    Internal Function Utilized to Run Pre FCD Flip Checks

    Function

    fcdChecks

    Returns

    This function does not return anything

    Parameters

    • isEnable: {
          isEnable: boolean;
      }

      Whether Callers Plans to Enable (True) or Disable(False) Free Contract Deployment

      • isEnable: boolean

    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>

  • Wrapper for Solidity Function isAddressWhitelisted If Address is Contract -> True If Whitelisted -> True Else -> False

    Function

    isAddressWhitelisted

    Returns

    If Address is whitelisted

    Parameters

    • address: {
          address: string;
      }

      The Address to Check

      • address: string

    Returns Promise<boolean>

  • Private

    Internal Function Utilized to Run Pre MTM Flip Checks

    Function

    mtmChecks

    Returns

    This function does not return anything

    Parameters

    • isEnable: {
          isEnable: boolean;
      }

      Whether Callers Plans to Enable (True) or Disable(False) MTM Mode

      • isEnable: boolean

    Returns Promise<void>

  • Wrapper for Solidity Function removeFromWhitelist. Utilizes grantRole under the hood Must have {DEPLOYER_ADMIN_ROLE} to successfully call Optional: Can optionally call runChecks to run contract requirements on the client

    Function

    removeFromWhitelist

    Returns

    Transaction Information

    Parameters

    • params: IWhitelist

      IWhitelist contains the address to whitelist and the checkParams flag

    Returns Promise<ContractReceipt>

  • Function

    renounceRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Function

    revokeRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Parameters

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

    Returns void

  • Wrapper for Solidity Function setVersion

    Function

    setVersion

    Returns

    Transaction Information

    Parameters

    • params: IVersion

      Core Params

    Returns Promise<ContractReceipt>