utils

package
v0.0.0-...-d08e4ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimelockExpirationInHours = 72

Functions

func ExtractTransactionCall

func ExtractTransactionCall(output interface{}, operationID string) (sui_ops.TransactionCall, error)

func GenerateProposal

func GenerateProposal(ctx context.Context, input GenerateProposalInput) (*mcms.TimelockProposal, error)

Types

type GenerateProposalInput

type GenerateProposalInput struct {
	ChainSelector      uint64
	Client             sui.ISuiAPI
	MCMSPackageID      string
	MCMSStateObjID     string
	AccountObjID       string
	RegistryObjID      string
	TimelockObjID      string
	DeployerStateObjID string
	Description        string
	BatchOp            types.BatchOperation
	TimelockConfig     TimelockConfig
}

type TimelockConfig

type TimelockConfig struct {
	MCMSAction   types.TimelockAction `json:"mcmsAction"`
	MinDelay     time.Duration        `json:"minDelay"`     // delay for timelock worker to execute the transfers.
	OverrideRoot bool                 `json:"overrideRoot"` // if true, override the previous root with the new one.
}

TimelockConfig is based on chainlink/deployment proposal utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL