provider

package
v0.4.7-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 10 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,
	getBlockHeight types.GetLastBlockHeight,
	logger log.Logger,
) *ArtelaProvider

func (*ArtelaProvider) GetAccountVerifiers

func (j *ArtelaProvider) GetAccountVerifiers(ctx context.Context, address common.Address) ([]*asptypes.AspectCode, error)

func (*ArtelaProvider) GetAspectAccount

func (j *ArtelaProvider) GetAspectAccount(ctx context.Context, aspectId common.Address) (*common.Address, error)

func (*ArtelaProvider) GetBlockBondAspects

func (j *ArtelaProvider) GetBlockBondAspects(ctx context.Context) ([]*asptypes.AspectCode, error)

func (*ArtelaProvider) GetLatestBlock

func (j *ArtelaProvider) GetLatestBlock() int64

func (*ArtelaProvider) GetTxBondAspects

func (j *ArtelaProvider) GetTxBondAspects(ctx context.Context, address common.Address, point asptypes.PointCut) ([]*asptypes.AspectCode, 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