provider

package
v0.4.2-beta Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtelaProvider

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

func NewArtelaProvider

func NewArtelaProvider(storeKey storetypes.StoreKey,
	getCtxByHeight func(height int64, prove bool) (sdk.Context, error),
	getBlockHeight func() int64,
) *ArtelaProvider

func (*ArtelaProvider) CreateBlockPointRequest

func (j *ArtelaProvider) CreateBlockPointRequest(sdkCtx sdk.Context) *asptypes.EthBlockAspect

func (*ArtelaProvider) CreateTxPointRequest

func (j *ArtelaProvider) CreateTxPointRequest(sdkCtx sdk.Context, msg sdk.Msg, txIndex int64, baseFee *big.Int, innerTx *asptypes.EthStackTransaction) (*asptypes.EthTxAspect, error)

func (*ArtelaProvider) CreateTxPointRequestInEvm

func (j *ArtelaProvider) CreateTxPointRequestInEvm(sdkCtx sdk.Context, msg *core.Message, txConfig statedb.TxConfig, innerTx *asptypes.EthStackTransaction) *asptypes.EthTxAspect

func (*ArtelaProvider) CreateTxPointRequestWithData

func (j *ArtelaProvider) CreateTxPointRequestWithData(data []byte) (*asptypes.EthTxAspect, error)

func (ArtelaProvider) FilterAspectTx

func (ArtelaProvider) FilterAspectTx(tx sdk.Msg) bool

func (*ArtelaProvider) GetAccountVerifiers

func (j *ArtelaProvider) GetAccountVerifiers(blockNum int64, address common.Address) ([]*asptypes.AspectCode, error)

func (*ArtelaProvider) GetAspectAccount

func (j *ArtelaProvider) GetAspectAccount(blockNum int64, aspectId common.Address) (*common.Address, error)

func (*ArtelaProvider) GetBlockBondAspects

func (j *ArtelaProvider) GetBlockBondAspects(blockNum int64) ([]*asptypes.AspectCode, error)

func (*ArtelaProvider) GetLatestBlock

func (j *ArtelaProvider) GetLatestBlock() int64

func (*ArtelaProvider) GetTxBondAspects

func (j *ArtelaProvider) GetTxBondAspects(blockNum int64, address common.Address) ([]*asptypes.AspectCode, error)

func (*ArtelaProvider) TxToPointRequest

func (j *ArtelaProvider) TxToPointRequest(sdkCtx sdk.Context, from common.Address, transaction *ethereum.Transaction, txIndex int64, baseFee *big.Int, innerTx *asptypes.EthStackTransaction) (*asptypes.EthTxAspect, error)

type AspectProtocolProvider

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

func NewAspectProtocolProvider

func NewAspectProtocolProvider(getEthTxContext func() *types.EthTxContext) *AspectProtocolProvider

func (AspectProtocolProvider) BalanceOf

func (a AspectProtocolProvider) BalanceOf(address common.Address) *big.Int

func (*AspectProtocolProvider) ChainId

func (a *AspectProtocolProvider) ChainId() *big.Int

func (AspectProtocolProvider) ConvertProtocolTx

func (a AspectProtocolProvider) ConvertProtocolTx(txData integration.TxData) (integration.BaseLayerTx, error)

func (AspectProtocolProvider) EstimateGas

func (a AspectProtocolProvider) EstimateGas(txData integration.TxData) (uint64, error)

func (AspectProtocolProvider) GasPrice

func (a AspectProtocolProvider) GasPrice() (*big.Int, error)

func (AspectProtocolProvider) InitSystemContract

func (a AspectProtocolProvider) InitSystemContract(addr common.Address, code []byte, storage map[common.Hash][]byte, contractType integration.SystemContractType) error

func (AspectProtocolProvider) LastBlockHeader

func (a AspectProtocolProvider) LastBlockHeader() (integration.BlockHeader, error)

func (AspectProtocolProvider) NonceOf

func (a AspectProtocolProvider) NonceOf(address common.Address) (uint64, error)

func (AspectProtocolProvider) SubmitTxToCurrentProposal

func (a AspectProtocolProvider) SubmitTxToCurrentProposal(tx integration.BaseLayerTx) error

func (AspectProtocolProvider) VMFromCanonicalState

func (a AspectProtocolProvider) VMFromCanonicalState() (integration.VM, error)

func (*AspectProtocolProvider) VMFromSnapshotState

func (a *AspectProtocolProvider) VMFromSnapshotState() (integration.VM, error)

Jump to

Keyboard shortcuts

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