Contract

MultisigWallet

Hierarchy

  • BaseContract
    • MultisigWallet

Constructors

Properties

contract: Contract
hasSigner: boolean
signer: Wallet
MAX_OWNER_COUNT: number = 50

Methods

  • Wrapper for addOwner Functionality on the Multisig Wallet Add Owner is a function that can only be called by itself This function allows an EOA to submit a transaction via the Multisig Wallet to edit itself

    Function

    addOwner

    Returns

    Contract Receipt

    Parameters

    • params: IAddress

    Returns Promise<ContractReceipt>

  • Wrapper for changeRequirement Functionality on the Multisig Wallet changeRequirement is a function that can only be called by itself This function allows an EOA to submit a transaction via the Multisig Wallet to edit itself

    Function

    changeRequirement

    Returns

    Contract Receipt

    Parameters

    • params: IRequirement

    Returns Promise<ContractReceipt>

  • Returns void

  • Wrapper for confirmTransaction Functionality on the Multisig Wallet confirmTransaction is the primary function that all "changes" are finalized through This function allows an EOA to confirm a transaction via the Multisig Wallet This would be used when someone else proposes a transaction

    Function

    submitTransaction

    Returns

    Contract Receipt

    Parameters

    • params: ITransactionId

    Returns Promise<ContractReceipt>

  • Custom Function Utilizes the MultisigWallet Bytecode and Abi to deploy a new Multisig Wallet on a SKALE Chain Valid Requirements are checked on the client in order to help guide deployment

    Function

    createNewWallet

    Returns

    Smart Contract Instance. The address can be derived from it.

    Parameters

    • params: ICreateNewWallet

    Returns Promise<Contract>

  • Wrapper for executeTransaction Functionality on the Multisig Wallet executeTransaction is the function called to execute a transaction that has a valid number of confirmations This function allows an EOA to execute and submit a transaction to be picked up by the network This would be used after "enough" signers have confirmed

    Function

    executeTransaction

    Returns

    Contract Receipt

    Parameters

    • params: ITransactionId

    Returns Promise<ContractReceipt>

  • Gets confirmation count for a transaction by id

    Function

    getConfirmationCount

    Returns

    Number of Confirmations

    Parameters

    • params: ITransactionId

    Returns Promise<BigNumber>

  • Gets List of Owners Who Confirmed a Transaction

    Function

    getConfirmations

    Returns

    List of Owners

    Parameters

    • params: ITransactionId

    Returns Promise<string[]>

  • Parameters

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

    Returns string[]

  • Gets Data from a Transaction

    Function

    getTransaction

    Returns

    Transaction Data

    Parameters

    • params: ITransactionId

    Returns Promise<ITransaction>

  • Get Transaction Count

    Function

    getTransactionCount

    Returns

    Number of Txs

    Parameters

    • params: ITransactionCount

    Returns Promise<BigNumber>

  • Gets Transaction Ids within the given range and of type

    Function

    getTransactionIds

    Returns

    List of Tx Ids

    Parameters

    • params: ITransactionIds

    Returns Promise<BigNumber[]>

  • Checks if transaction is confirmed

    Function

    isConfirmed

    Returns

    Is Tx Confirmed

    Parameters

    • params: ITransactionId

    Returns Promise<boolean>

  • Private function that is used to generate encoded data that can be used for multisig execution This is a custom function with custom types that is built specifically for the predeployed multisig This increases type safety on the client side where as calling this manualy could result in a higher chance of mispelling funciton names or encoded data with negative results

    Function

    onlyWalletFunction

    Returns

    Contract Receipt

    Parameters

    • params: IOnlyWalletFunction

    Returns BytesLike

  • Wrapper for removeOwner Functionality on the Multisig Wallet Remove Owner is a function that can only be called by itself This function allows an EOA to submit a transaction via the Multisig Wallet to edit itself

    Function

    removeOwner

    Returns

    Contract Receipt

    Parameters

    • params: IAddress

    Returns Promise<ContractReceipt>

  • Wrapper for replaceOwner Functionality on the Multisig Wallet Replace Owner is a function that can only be called by itself This function allows an EOA to submit a transaction via the Multisig Wallet to edit itself

    Function

    replaceOwner

    Returns

    Contract Receipt

    Parameters

    • params: IReplaceOwner

    Returns Promise<ContractReceipt>

  • Parameters

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

    Returns void

  • Wrapper for submitTransaction Functionality on the Multisig Wallet submitTransaction is the primary function that all "changes" are made through This function allows an EOA to submit a transaction via the Multisig Wallet to edit itself

    Function

    submitTransaction

    Returns

    Contract Receipt

    Parameters

    • params: IBaseTransaction

    Returns Promise<ContractReceipt>

  • Private

    Internal Function to check if the request is a valid requirement This is used for the custom create new multisigwallet function

    Function

    validRequirement

    Returns

    Parameters

    • params: ICreateNewWallet

    Returns void