contract

package
v0.4.1-beta Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AspectNativeContract

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

func NewAspectNativeContract

func NewAspectNativeContract(storeKey storetypes.StoreKey,
	getCtxByHeight func(height int64, prove bool) (sdk.Context, error),
	applyMessageFunc func(ctx sdk.Context, msg *core.Message, tracer vm.EVMLogger, commit bool) (*evmtxs.MsgEthereumTxResponse, error),
) *AspectNativeContract

func (*AspectNativeContract) ApplyTx

func (*AspectNativeContract) CheckIsAspectOwnerByCode

func (k *AspectNativeContract) CheckIsAspectOwnerByCode(ctx sdk.Context, aspectId common.Address, code []byte, sender common.Address) (bool, error)

func (*AspectNativeContract) Query

type AspectService

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

func NewAspectService

func NewAspectService(storeKey storetypes.StoreKey, getCtxByHeight func(height int64, prove bool) (sdk.Context, error)) *AspectService

func (*AspectService) GetAspectAccount

func (service *AspectService) GetAspectAccount(height int64, aspectId common.Address) (*common.Address, error)

func (*AspectService) GetAspectCode

func (service *AspectService) GetAspectCode(blockNumber int64, aspectId common.Address) ([]byte, *uint256.Int)

func (*AspectService) GetAspectForAddr

func (service *AspectService) GetAspectForAddr(height int64, to common.Address) ([]*artela.AspectCode, error)

GetAspectForAddr BoundAspects get bound Aspects on previous block

func (*AspectService) GetAspectForBlock

func (service *AspectService) GetAspectForBlock(height int64) ([]*artela.AspectCode, error)

func (*AspectService) GetAspectOf

func (service *AspectService) GetAspectOf(blockNumber int64, aspectId common.Address) (*treeset.Set, error)

func (*AspectService) GetAspectProof

func (service *AspectService) GetAspectProof(height int64, aspectId common.Address) ([]byte, error)

type AspectStore

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

func NewAspectStore

func NewAspectStore(storeKey storetypes.StoreKey) *AspectStore

func (*AspectStore) BindContractAspects

func (k *AspectStore) BindContractAspects(ctx sdk.Context, contract common.Address, aspectId common.Address, aspectVersion *uint256.Int, priority int8) error

func (*AspectStore) ChangeBoundAspectVersion

func (k *AspectStore) ChangeBoundAspectVersion(ctx sdk.Context, contract common.Address, aspectId common.Address, version uint64) error

func (*AspectStore) GetAspectCode

func (k *AspectStore) GetAspectCode(ctx sdk.Context, aspectId common.Address, version *uint256.Int) ([]byte, *uint256.Int)

func (*AspectStore) GetAspectLastVersion

func (k *AspectStore) GetAspectLastVersion(ctx sdk.Context, aspectId common.Address) *uint256.Int

func (*AspectStore) GetAspectPropertyValue

func (k *AspectStore) GetAspectPropertyValue(ctx sdk.Context, aspectId common.Address, propertyKey string) string

func (*AspectStore) GetAspectRefValue

func (k *AspectStore) GetAspectRefValue(ctx sdk.Context, aspectId common.Address) (*treeset.Set, error)

func (*AspectStore) GetBlockLevelAspects

func (k *AspectStore) GetBlockLevelAspects(ctx sdk.Context) (map[string]int64, error)

func (*AspectStore) GetContractBondAspects

func (k *AspectStore) GetContractBondAspects(ctx sdk.Context, contract common.Address) ([]*types.AspectMeta, error)

func (*AspectStore) RemoveBlockLevelAspect

func (k *AspectStore) RemoveBlockLevelAspect(ctx sdk.Context, aspectId common.Address) error

func (*AspectStore) StoreAspectCode

func (k *AspectStore) StoreAspectCode(ctx sdk.Context, aspectId common.Address, code []byte)

StoreAspectCode aspect code

func (*AspectStore) StoreAspectProperty

func (k *AspectStore) StoreAspectProperty(ctx sdk.Context, aspectId common.Address, prop []types.Property)

StoreAspectProperty Property

func (*AspectStore) StoreAspectRefValue

func (k *AspectStore) StoreAspectRefValue(ctx sdk.Context, contract common.Address, aspectId common.Address) error

func (*AspectStore) StoreAspectVersion

func (k *AspectStore) StoreAspectVersion(ctx sdk.Context, aspectId common.Address, version *uint256.Int)

StoreAspectVersion version

func (*AspectStore) StoreBlockLevelAspect

func (k *AspectStore) StoreBlockLevelAspect(ctx sdk.Context, aspectId common.Address) error

StoreBlockLevelAspect key="AspectBlock" value=map[string]int64

func (*AspectStore) UnBindContractAspects

func (k *AspectStore) UnBindContractAspects(ctx sdk.Context, contract common.Address, aspectId common.Address) error

func (*AspectStore) UnbindAspectRefValue

func (k *AspectStore) UnbindAspectRefValue(ctx sdk.Context, contract common.Address, aspectId common.Address) error

Jump to

Keyboard shortcuts

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