contract_snapshot

package
v0.0.0-...-e03aae4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContractTypeExists

func ContractTypeExists(contractType ContractType) bool

func ContractTypeExistsString

func ContractTypeExistsString(contractType string) bool

Types

type ContractType

type ContractType string
const (
	ContractTypeAssetboxStorageImpl      ContractType = "AssetboxInfoStorageImpl"
	ContractTypeBitbonImpl               ContractType = "BitbonImpl"
	ContractTypeTransferImpl             ContractType = "TransferImpl"
	ContractTypeSafeTransferStorageImpl  ContractType = "SafeTransferStorageImpl"
	ContractTypeBitbonSupportImpl        ContractType = "BitbonSupportImpl"
	ContractTypeBitbonStorageImpl        ContractType = "BitbonStorageImpl"
	ContractTypeAdminStorageImpl         ContractType = "AdminStorageImpl"
	ContractTypeReservedAliasStorageImpl ContractType = "ReservedAliasStorageImpl"
	ContractTypeNewContractStorage       ContractType = "NewContractStorage"
	ContractTypeAssetboxImpl             ContractType = "AssetboxImpl"
	ContractTypeAccessStorageImpl        ContractType = "AccessStorageImpl"
	ContractTypeDistributionStorageImpl  ContractType = "DistributionStorageImpl"
	ContractTypeMiningAgentStorageImpl   ContractType = "MiningAgentStorageImpl"
	ContractTypeFeeStorageImpl           ContractType = "FeeStorageImpl"
	ContractTypeContractStorageImpl      ContractType = "ContractStorageImpl"
)

type ContractsSnapshot

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

func New

func New(contractStorageAddress common.Address, contractAddresses map[ContractType]common.Address) *ContractsSnapshot

func (*ContractsSnapshot) GetContractAddress

func (cs *ContractsSnapshot) GetContractAddress(contractType ContractType) (common.Address, error)

func (*ContractsSnapshot) GetContractAddresses

func (cs *ContractsSnapshot) GetContractAddresses() map[ContractType]common.Address

func (*ContractsSnapshot) GetContractStorageAddress

func (cs *ContractsSnapshot) GetContractStorageAddress() (common.Address, error)

func (*ContractsSnapshot) SetContractAddress

func (cs *ContractsSnapshot) SetContractAddress(contractType ContractType, address common.Address) error

func (*ContractsSnapshot) SetContractStorageAddress

func (cs *ContractsSnapshot) SetContractStorageAddress(address common.Address) error

Jump to

Keyboard shortcuts

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