v1_0

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EXECUTOR_ROLE_STR = "EXECUTOR_ROLE"
	//nolint:gosec // Public role identifier constant, not a credential.
	BYPASSER_ROLE_STR  = "BYPASSER_ROLE"
	CANCELLER_ROLE_STR = "CANCELLER_ROLE"
	PROPOSER_ROLE_STR  = "PROPOSER_ROLE"
	ADMIN_ROLE_STR     = "ADMIN_ROLE"
)

Variables

View Source
var (
	ADMIN_ROLE = Role{
		ID:   utils.MustHash(ADMIN_ROLE_STR),
		Name: ADMIN_ROLE_STR,
	}
	PROPOSER_ROLE = Role{
		ID:   utils.MustHash(PROPOSER_ROLE_STR),
		Name: PROPOSER_ROLE_STR,
	}
	BYPASSER_ROLE = Role{
		ID:   utils.MustHash(BYPASSER_ROLE_STR),
		Name: BYPASSER_ROLE_STR,
	}
	CANCELLER_ROLE = Role{
		ID:   utils.MustHash(CANCELLER_ROLE_STR),
		Name: CANCELLER_ROLE_STR,
	}
	EXECUTOR_ROLE = Role{
		ID:   utils.MustHash(EXECUTOR_ROLE_STR),
		Name: EXECUTOR_ROLE_STR,
	}
)

https://github.com/smartcontractkit/ccip-owner-contracts/blob/9d81692b324ce7ea2ef8a75e683889edbc7e2dd0/src/RBACTimelock.sol#L71 Just to avoid invoking the Go binding to get these.

Functions

This section is empty.

Types

type CallProxyView

type CallProxyView struct {
	cldfutil.ContractMetaData
}

func GenerateCallProxyView

func GenerateCallProxyView(cp owner_helpers.CallProxy) (CallProxyView, error)

type MCMSView

type MCMSView struct {
	cldfutil.ContractMetaData
	// Note config is json marshallable.
	Config mcmstypes.Config `json:"config"`
}

func GenerateMCMSView

func GenerateMCMSView(mcms owner_helpers.ManyChainMultiSig) (MCMSView, error)

type MCMSWithTimelockView

type MCMSWithTimelockView struct {
	Bypasser  MCMSView      `json:"bypasser"`
	Canceller MCMSView      `json:"canceller"`
	Proposer  MCMSView      `json:"proposer"`
	Timelock  TimelockView  `json:"timelock"`
	CallProxy CallProxyView `json:"callProxy"`
}

type Role

type Role struct {
	ID   common.Hash
	Name string
}

type TimelockView

type TimelockView struct {
	cldfutil.ContractMetaData
	MembersByRole map[string][]common.Address `json:"membersByRole"`
}

func GenerateTimelockView

func GenerateTimelockView(tl owner_helpers.RBACTimelock) (TimelockView, error)

Jump to

Keyboard shortcuts

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