Documentation ¶
Index ¶
- type AspectNativeContract
- func (k *AspectNativeContract) ApplyMsg(ctx sdk.Context, msg *core.Message) (*evmtxs.MsgEthereumTxResponse, error)
- func (k *AspectNativeContract) CheckIsAspectOwnerByCode(ctx sdk.Context, aspectId common.Address, code []byte, sender common.Address) (bool, error)
- func (k *AspectNativeContract) Query(ctx sdk.Context, msg *core.Message) (*evmtxs.MsgEthereumTxResponse, error)
- type AspectService
- func (service *AspectService) GetAccountVerifiers(height int64, to common.Address) ([]*artela.AspectCode, error)
- func (service *AspectService) GetAspectAccount(height int64, aspectId common.Address) (*common.Address, error)
- func (service *AspectService) GetAspectCode(blockNumber int64, aspectId common.Address) ([]byte, *uint256.Int)
- func (service *AspectService) GetAspectForAddr(height int64, to common.Address) ([]*artela.AspectCode, error)
- func (service *AspectService) GetAspectForBlock(height int64) ([]*artela.AspectCode, error)
- func (service *AspectService) GetAspectOf(blockNumber int64, aspectId common.Address) (*treeset.Set, error)
- func (service *AspectService) GetAspectProof(height int64, aspectId common.Address) ([]byte, error)
- func (service *AspectService) GetBlockHeight() int64
- type AspectStore
- func (k *AspectStore) BindTxAspect(ctx sdk.Context, account common.Address, aspectId common.Address, ...) error
- func (k *AspectStore) BindVerificationAspect(ctx sdk.Context, account common.Address, aspectId common.Address, ...) error
- func (k *AspectStore) ChangeBoundAspectVersion(ctx sdk.Context, contract common.Address, aspectId common.Address, ...) error
- func (k *AspectStore) GetAspectCode(ctx sdk.Context, aspectId common.Address, version *uint256.Int) ([]byte, *uint256.Int)
- func (k *AspectStore) GetAspectLastVersion(ctx sdk.Context, aspectId common.Address) *uint256.Int
- func (k *AspectStore) GetAspectPropertyValue(ctx sdk.Context, aspectId common.Address, propertyKey string) string
- func (k *AspectStore) GetAspectRefValue(ctx sdk.Context, aspectId common.Address) (*treeset.Set, error)
- func (k *AspectStore) GetBlockLevelAspects(ctx sdk.Context) (map[string]int64, error)
- func (k *AspectStore) GetTxLevelAspects(ctx sdk.Context, contract common.Address) ([]*types.AspectMeta, error)
- func (k *AspectStore) GetVerificationAspects(ctx sdk.Context, account common.Address) ([]*types.AspectMeta, error)
- func (k *AspectStore) RemoveBlockLevelAspect(ctx sdk.Context, aspectId common.Address) error
- func (k *AspectStore) StoreAspectCode(ctx sdk.Context, aspectId common.Address, code []byte)
- func (k *AspectStore) StoreAspectProperty(ctx sdk.Context, aspectId common.Address, prop []types.Property)
- func (k *AspectStore) StoreAspectRefValue(ctx sdk.Context, account common.Address, aspectId common.Address) error
- func (k *AspectStore) StoreAspectVersion(ctx sdk.Context, aspectId common.Address, version *uint256.Int)
- func (k *AspectStore) StoreBlockLevelAspect(ctx sdk.Context, aspectId common.Address) error
- func (k *AspectStore) UnBindContractAspects(ctx sdk.Context, contract common.Address, aspectId common.Address) error
- func (k *AspectStore) UnbindAspectRefValue(ctx sdk.Context, contract common.Address, aspectId common.Address) error
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), getBlockHeight func() int64, evmState *states.StateDB, ) *AspectNativeContract
func (*AspectNativeContract) ApplyMsg ¶
func (k *AspectNativeContract) ApplyMsg(ctx sdk.Context, msg *core.Message) (*evmtxs.MsgEthereumTxResponse, error)
func (*AspectNativeContract) CheckIsAspectOwnerByCode ¶
func (*AspectNativeContract) Query ¶
func (k *AspectNativeContract) Query(ctx sdk.Context, msg *core.Message) (*evmtxs.MsgEthereumTxResponse, error)
type AspectService ¶
type AspectService struct {
// contains filtered or unexported fields
}
func NewAspectService ¶
func NewAspectService(storeKey storetypes.StoreKey, getCtxByHeight contextBuilder, getHeight heightRetriever) *AspectService
func (*AspectService) GetAccountVerifiers ¶
func (service *AspectService) GetAccountVerifiers(height int64, to common.Address) ([]*artela.AspectCode, error)
GetAccountVerifiers gets the bound Aspect verifier for the account
func (*AspectService) GetAspectAccount ¶
func (*AspectService) GetAspectCode ¶
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 (*AspectService) GetAspectProof ¶
func (*AspectService) GetBlockHeight ¶
func (service *AspectService) GetBlockHeight() int64
type AspectStore ¶
type AspectStore struct {
// contains filtered or unexported fields
}
func NewAspectStore ¶
func NewAspectStore(storeKey storetypes.StoreKey) *AspectStore
func (*AspectStore) BindTxAspect ¶
func (*AspectStore) BindVerificationAspect ¶
func (*AspectStore) ChangeBoundAspectVersion ¶
func (*AspectStore) GetAspectCode ¶
func (*AspectStore) GetAspectLastVersion ¶
func (*AspectStore) GetAspectPropertyValue ¶
func (*AspectStore) GetAspectRefValue ¶
func (*AspectStore) GetBlockLevelAspects ¶
func (*AspectStore) GetTxLevelAspects ¶
func (k *AspectStore) GetTxLevelAspects(ctx sdk.Context, contract common.Address) ([]*types.AspectMeta, error)
func (*AspectStore) GetVerificationAspects ¶
func (k *AspectStore) GetVerificationAspects(ctx sdk.Context, account common.Address) ([]*types.AspectMeta, error)
func (*AspectStore) RemoveBlockLevelAspect ¶
func (*AspectStore) StoreAspectCode ¶
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 (*AspectStore) StoreAspectVersion ¶
func (k *AspectStore) StoreAspectVersion(ctx sdk.Context, aspectId common.Address, version *uint256.Int)
StoreAspectVersion version
func (*AspectStore) StoreBlockLevelAspect ¶
StoreBlockLevelAspect key="AspectBlock" value=map[string]int64
func (*AspectStore) UnBindContractAspects ¶
func (*AspectStore) UnbindAspectRefValue ¶
Click to show internal directories.
Click to hide internal directories.