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"`
}
func GenerateMCMSWithTimelockView ¶
func GenerateMCMSWithTimelockView( bypasser owner_helpers.ManyChainMultiSig, canceller owner_helpers.ManyChainMultiSig, proposer owner_helpers.ManyChainMultiSig, timelock owner_helpers.RBACTimelock, callProxy owner_helpers.CallProxy, ) (MCMSWithTimelockView, error)
type TimelockView ¶
type TimelockView struct {
cldfutil.ContractMetaData
MembersByRole map[string][]common.Address `json:"membersByRole"`
}
func GenerateTimelockView ¶
func GenerateTimelockView(tl owner_helpers.RBACTimelock) (TimelockView, error)
Click to show internal directories.
Click to hide internal directories.