Contract

Marionette

Hierarchy

  • AccessControlEnumerable
    • Marionette

Constructors

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

    Parameters

    • params: IInitParams

      The core parameters passed into the constructor

    Returns Marionette

Properties

DEFAULT_ADMIN_ROLE: string
IMA_ROLE: string = ...
PUPPETEER_ROLE: string = ...
contract: Contract
hasSigner: boolean
signer: Wallet

Methods

  • Returns void

  • Wrapper for Solidity Function execute. Must have {PUPPETEER_ROLE} to successfully call

    Function

    execute

    Returns

    Transaction Information

    Parameters

    • params: IExecute

      IExecute contains the target destination, value (sFUEL), and data to be executed by marionette

    Returns Promise<BytesLike>

  • Wrapper for Solidity Function execute. Allows Marionette to call other contracts. Highly Valuable on MULTISIG Chain Creation as Originator can control marionette which controls the chain. Must have {PUPPETEER_ROLE} to successfully call

    Function

    execute

    Returns

    Transaction Information

    Parameters

    • params: IExecute

      IExecute contains the target destination, value (sFUEL), and data to be executed by marionette

    Returns Promise<ContractReceipt>

  • 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>

  • Function

    renounceRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Function

    revokeRole

    Returns

    string

    Parameters

    • params: IRoleAccount

    Returns Promise<any>

  • Wrapper for Solidity Function sendSFuel. Sends sFUEL to Target. Must have {PUPPETEER_ROLE} to successfully call

    Function

    sendSFuel

    Returns

    Transaction Information

    Parameters

    • params: ISendSFuel

      ISendSFuel contains the target and amount to send

    Returns Promise<ContractReceipt>

  • Parameters

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

    Returns void