Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
EVMABIMappings map[string]string
SolanaDecoders map[string]DecodeInstructionFn
}
Config configures the proposal decoder used by the analyzer engine. The decoder is expected to support multi-chain proposal decoding using the provided chain-specific mappings.
type DecodeInstructionFn ¶
type DecodeInstructionFn = experimentalanalyzer.DecodeInstructionFn
type DecodedBatchOperation ¶
type DecodedBatchOperation interface {
ChainSelector() uint64
Calls() DecodedCalls
}
type DecodedBatchOperations ¶
type DecodedBatchOperations []DecodedBatchOperation
type DecodedCall ¶
type DecodedCall interface {
To() string // legacy analyzer uses "Address"
Name() string // legacy analyzer uses "Method"
Inputs() DecodedParameters
Outputs() DecodedParameters
Data() []byte
AdditionalFields() json.RawMessage
ContractType() string
ContractVersion() string
}
type DecodedCalls ¶
type DecodedCalls []DecodedCall
type DecodedParameter ¶
type DecodedParameters ¶
type DecodedParameters []DecodedParameter
type DecodedTimelockProposal ¶
type DecodedTimelockProposal interface {
BatchOperations() DecodedBatchOperations
}
type ProposalDecoder ¶
type ProposalDecoder interface {
Decode(ctx context.Context, env deployment.Environment, proposal *mcms.TimelockProposal) (DecodedTimelockProposal, error)
}
ProposalDecoder decodes MCMS proposals into structured DecodedTimelockProposal
Click to show internal directories.
Click to hide internal directories.