Documentation ¶
Index ¶
- type AspectNativeContract
- func (k *AspectNativeContract) ApplyTx(ctx sdk.Context, tx *ethtypes.Transaction, 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, tx *ethtypes.Transaction) (*evmtxs.MsgEthereumTxResponse, error)
- type AspectService
- 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)
- type AspectStore
- func (k *AspectStore) BindContractAspects(ctx sdk.Context, contract 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) GetContractBondAspects(ctx sdk.Context, contract 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, contract 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 (*AspectNativeContract) ApplyTx ¶
func (k *AspectNativeContract) ApplyTx(ctx sdk.Context, tx *ethtypes.Transaction, msg *core.Message) (*evmtxs.MsgEthereumTxResponse, error)
func (*AspectNativeContract) CheckIsAspectOwnerByCode ¶
func (*AspectNativeContract) Query ¶
func (k *AspectNativeContract) Query(ctx sdk.Context, tx *ethtypes.Transaction) (*evmtxs.MsgEthereumTxResponse, error)
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 (*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 ¶
type AspectStore ¶
type AspectStore struct {
// contains filtered or unexported fields
}
func NewAspectStore ¶
func NewAspectStore(storeKey storetypes.StoreKey) *AspectStore
func (*AspectStore) BindContractAspects ¶
func (*AspectStore) ChangeBoundAspectVersion ¶
func (*AspectStore) GetAspectCode ¶
func (*AspectStore) GetAspectLastVersion ¶
func (*AspectStore) GetAspectPropertyValue ¶
func (*AspectStore) GetAspectRefValue ¶
func (*AspectStore) GetBlockLevelAspects ¶
func (*AspectStore) GetContractBondAspects ¶
func (k *AspectStore) GetContractBondAspects(ctx sdk.Context, contract 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.