metadata

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WalletRegistryAddress = "walletRegistryAddress"
)

Variables

View Source
var (
	ErrMalformedResponse = errors.New("malformed response received")
)

Functions

func GetSafeNonce

func GetSafeNonce(ctx context.Context, client bind.ContractCaller, safeAddress common.Address) (*big.Int, error)

func GetThreshold

func GetThreshold(
	ctx context.Context,
	client bind.ContractCaller,
	safeAddress common.Address,
) (*big.Int, error)

func GetTransactionHash

func GetTransactionHash(
	ctx context.Context,
	client bind.ContractCaller,
	safeAddress common.Address, txn *types.SafeTx,
) (
	common.Hash, error,
)

func IsValidOwner

func IsValidOwner(
	ctx context.Context,
	client bind.ContractCaller,
	safeAddress common.Address,
	owner common.Address,
) (bool, error)

Types

type SafeMetadataService

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

func NewSafeMetadataService

func NewSafeMetadataService(
	addrRegistry addressRegistry,
	mc multiCaller,
) (*SafeMetadataService, error)

func (*SafeMetadataService) GetSafeMetadata

func (s *SafeMetadataService) GetSafeMetadata(
	ctx context.Context,
	safes []common.Address,
	chainID int64,
) ([]types.Metadata, error)

Jump to

Keyboard shortcuts

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