SimpleMultisig

Under Review

FINANCIALTOOLS

Contract purpose

The purpose of multisig wallets is to increase security by requiring multiple parties to agree on transactions before execution. Transactions can be executed only when confirmed by a predefined number of owners.

Exposed methods

addOwner Allows to add a new owner. Transaction has to be sent by wallet.

parameter nametypedetails
owneraddressAddress of new owner

changeRequirement Allows to change the number of required confirmations. Transaction has to be sent by wallet.

parameter nametypedetails
_requireduintNumber of required confirmations.

confirmTransaction Transaction ID

parameter nametypedetails
transactionIduintTransaction ID.

executeTransaction Allows anyone to execute a confirmed transaction.

parameter nametypedetails
transactionIduintTransaction ID.

removeOwner Allows to remove an owner. Transaction has to be sent by wallet.

parameter nametypedetails
owneraddressAddress of owner.

replaceOwner Allows to replace an owner with a new owner. Transaction has to be sent by wallet.

parameter nametypedetails
owneraddressAddress of owner.
newOwneraddressAddress of new owner.

revokeConfirmation Allows an owner to revoke a confirmation for a transaction.

parameter nametypedetails
transactionIduintTransaction ID.

submitTransaction Allows an owner to submit and confirm a transaction.

parameter nametypedetails
transactionIduintTransaction ID.

getConfirmations Returns array with owner addresses, which confirmed transaction.

parameter nametypedetails
transactionIduintTransaction ID.

getConfirmationCount Returns number of confirmations of a transaction.

parameter nametypedetails
transactionIduintTransaction ID.

getOwners Returns list of owners.

getTransactionCount Returns total number of transactions after filers are applied.

parameter nametypedetails
pendingboolInclude pending transactions.
executedboolInclude executed transactions.

getTransactionIds Returns list of transaction IDs in defined range.

parameter nametypedetails
fromuintIndex start position of transaction array.
touintIndex end position of transaction array.
pendingboolInclude pending transactions.
executedboolInclude executed transactions.

isConfirmed Returns the confirmation status of a transaction.

parameter nametypedetails
transactionIduintTransaction ID.

isOwner Check if the address is owner.

parameter nametypedetails
addressaddressAddress

owners Returns the number of owners.

owners Returns the number of owners required to sign the transaction.

transactionCount Returns transaction count.

Reviewed by Modex
Buy

Copyright © Modex Marketplace