decoder

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 9 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.84.0

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 added in v0.84.0

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 DecodedParameter interface {
	Name() string
	Type() string
	Value() any
	RawValue() any
}

type DecodedParameters

type DecodedParameters []DecodedParameter

type DecodedTimelockProposal

type DecodedTimelockProposal interface {
	BatchOperations() DecodedBatchOperations
}

type ExperimentalDecoder added in v0.84.0

type ExperimentalDecoder struct {
	// contains filtered or unexported fields
}

func NewExperimentalDecoder added in v0.84.0

func NewExperimentalDecoder(cfg Config) *ExperimentalDecoder

NewExperimentalDecoder creates a ProposalDecoder backed by the experimental analyzer.

func (*ExperimentalDecoder) Decode added in v0.84.0

type ProposalDecoder

type ProposalDecoder interface {
	Decode(ctx context.Context, env deployment.Environment, proposal *mcms.TimelockProposal) (DecodedTimelockProposal, error)
}

ProposalDecoder decodes MCMS proposals into structured DecodedTimelockProposal

Jump to

Keyboard shortcuts

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