decoder

package
v0.81.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 5 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

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 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
}

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

Jump to

Keyboard shortcuts

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