package
0.12.0
Repository: https://github.com/smartcontractkit/mcms.git
Documentation: pkg.go.dev

# Functions

GetChainSelectorFamily returns the family of the chain selector.
MustParseDuration parses a duration string in the time.Duration format.
NewConfig returns a new config with the given quorum, signers and group signers and ensures it is valid.
NewDuration wraps a time.Duration with a Duration.
NewSignatureFromBytes creates a new Signature from a byte slice of concatenated R, S, and V values.
No description provided by the author
ParseDuration parses a duration string in the time.Duration format.

# Constants

KindProposal is a proposal type for the MCMS contract.
KindTimelockProposal is a proposal type for the MCMS contract with RBACTimelock.
SignatureBytesLength defines the length of the signature in bytes after summing the byte values of R, S, and V.
SignatureComponentSize defines the size of each signature component (R and S) in bytes.
SignatureVOffset defines the offset to adjust the recovery id (v) if needed.
TimelockActionBypass directly executes transactions, skipping the timelock.
TimelockActionCancel cancels previously scheduled transactions.
TimelockActionExecute sets up transactions to execute after a delay.

# Variables

ErrChainFamilyNotFound is returned when the chain family is not found for a selector.
No description provided by the author
ErrUnsupportedChainFamily is returned when the chain family is not supported by MCMS.
StringToProposalKind converts a string to a ProposalKind.

# Structs

BatchOperation represents an operation with a batch of transactions to be executed.
ChainMetadata defines the metadata for a chain.
Config is a struct that holds all the configuration for the owner contracts.
Duration wraps time.Duration with support for JSON encoding.
Operation represents an operation with a single transaction to be executed.
OperationMetadata contains metadata about an operation.
Signature represents an signature that has been signed by a private key.
Transaction contains the transaction data to be executed.
TransactionResult represents a generic blockchain transaction.

# Type aliases

ChainSelector is a unique identifier for a chain.
No description provided by the author
TimelockAction is an enum for the different types of timelock actions that can be performed on a timelock proposal.