ethereum

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	*types.Block

	Id uint64
	// contains filtered or unexported fields
}

type Client

type Client struct {
	*ethclient.Client
	Id uint32
	// contains filtered or unexported fields
}

type Contract

type Contract struct {
	*bind.BoundContract

	Id uint32
	// contains filtered or unexported fields
}

type Factory

type Factory struct {
	helpers.Methods
	// contains filtered or unexported fields
}

func New

func New(i vm.Instance, pubsubNode pubsubIface.Service, helper helpers.Methods) *Factory

func (*Factory) Close

func (f *Factory) Close() error

func (*Factory) Load

func (f *Factory) Load(hm vm.HostModule) (err error)

func (*Factory) Name

func (f *Factory) Name() string

func (*Factory) W_ethBlockByNumber

func (f *Factory) W_ethBlockByNumber(
	ctx context.Context,
	module common.Module,
	clientId,
	size,
	bufPtr,
	blockIdPtr uint32,
) errno.Error

func (*Factory) W_ethBlockNumberFromId

func (f *Factory) W_ethBlockNumberFromId(
	ctx context.Context,
	module common.Module,
	clientId,
	blockIdPtr,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethBlockNumberFromIdSize

func (f *Factory) W_ethBlockNumberFromIdSize(
	ctx context.Context,
	module common.Module,
	clientId,
	blockIdPtr,
	lenPtr uint32,
) errno.Error

func (*Factory) W_ethCallContract

func (f *Factory) W_ethCallContract(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	methodPtr,
	methodSize,
	outputPtr uint32,
) errno.Error

func (*Factory) W_ethCallContractSize

func (f *Factory) W_ethCallContractSize(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	methodPtr,
	methodSize,
	inputsPtr,
	inputsSize,
	isJSON,
	outPutSizePtr uint32,
) errno.Error

func (*Factory) W_ethCloseClient

func (f *Factory) W_ethCloseClient(
	ctx context.Context,
	module common.Module,
	clientId uint32,
) errno.Error

func (*Factory) W_ethCurrentBlockNumber

func (f *Factory) W_ethCurrentBlockNumber(
	ctx context.Context,
	module common.Module,
	clientId,
	blockNumberPtr uint32,
) errno.Error

func (*Factory) W_ethCurrentChainId

func (f *Factory) W_ethCurrentChainId(
	ctx context.Context,
	module common.Module,
	clientId,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethCurrentChainIdSize

func (f *Factory) W_ethCurrentChainIdSize(
	ctx context.Context,
	module common.Module,
	clientId,
	sizePtr uint32,
) errno.Error

func (*Factory) W_ethDeployContract

func (f *Factory) W_ethDeployContract(
	ctx context.Context,
	module common.Module,
	clientId,
	chainIdPtr, chainIdSize,
	binPtr, binLen,
	abiPtr, abiSize,
	privKeyPtr, privKeySize,
	addressPtr,
	methodsSizePtr,
	eventsSizePtr,
	contractIdPtr,
	transactionIdPtr uint32,
) errno.Error

func (*Factory) W_ethGetContractMethod

func (f *Factory) W_ethGetContractMethod(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	methodPtr,
	methodSize,
	inputPtr,
	outputPtr uint32,
) errno.Error

func (*Factory) W_ethGetContractMethodSize

func (f *Factory) W_ethGetContractMethodSize(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	methodPtr,
	methodSize,
	inputSizePtr,
	outputSizePtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionFromBlockByHash

func (f *Factory) W_ethGetTransactionFromBlockByHash(
	ctx context.Context,
	module common.Module,
	clientId,
	blockIdPtr,
	idPtr,
	hashPtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionMethodBytes

func (f *Factory) W_ethGetTransactionMethodBytes(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	methodPtr,
	methodLen,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionMethodSize

func (f *Factory) W_ethGetTransactionMethodSize(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	methodPtr,
	methodLen,
	sizePtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionMethodUint64

func (f *Factory) W_ethGetTransactionMethodUint64(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	methodPtr,
	methodLen,
	numPtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionsFromBlock

func (f *Factory) W_ethGetTransactionsFromBlock(
	ctx context.Context,
	module common.Module,
	clientId,
	blockIdPtr,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethGetTransactionsFromBlockSize

func (f *Factory) W_ethGetTransactionsFromBlockSize(
	ctx context.Context,
	module common.Module,
	clientId,
	blockIdPtr,
	sizePtr, arrSizePtr uint32,
) errno.Error

func (*Factory) W_ethHexToECDSA

func (f *Factory) W_ethHexToECDSA(
	ctx context.Context,
	module common.Module,
	hexStringPtr, hexStringLen,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethJson

func (f *Factory) W_ethJson(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethJsonSize

func (f *Factory) W_ethJsonSize(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	sizePtr uint32,
) errno.Error

func (*Factory) W_ethNew

func (f *Factory) W_ethNew(ctx context.Context, module common.Module,
	clientIdPtr,
	urlPtr,
	urlLen,
	optionsPtr,
	optionsSize uint32,
) errno.Error

func (*Factory) W_ethNewContract

func (f *Factory) W_ethNewContract(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	methodsPtr,
	eventsPtr uint32,
) errno.Error

func (*Factory) W_ethNewContractSize

func (f *Factory) W_ethNewContractSize(
	ctx context.Context,
	module common.Module,
	clientId,
	abiPtr,
	abiSize,
	addressPtr,
	addressLen,
	methodsSizePtr,
	eventsSizePtr,
	contractPtr uint32,
) errno.Error

func (*Factory) W_ethPubFromPriv

func (f *Factory) W_ethPubFromPriv(
	ctx context.Context,
	module common.Module,
	privKeyPtr, PrivKeySize,
	bufPtr uint32,
) errno.Error

func (*Factory) W_ethPubKeyFromSignedMessage

func (f *Factory) W_ethPubKeyFromSignedMessage(
	ctx context.Context,
	module common.Module,
	messagePtr, messageSize,
	signaturePtr, signatureSize,
	pubKeyPtr uint32,
) errno.Error

func (*Factory) W_ethSendTransaction

func (f *Factory) W_ethSendTransaction(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId uint32,
) errno.Error

func (*Factory) W_ethSignMessage

func (f *Factory) W_ethSignMessage(
	ctx context.Context,
	module common.Module,
	messagePtr, messageSize,
	privKeyPtr, privKeySize,
	signaturePtr uint32,
) errno.Error

func (*Factory) W_ethSubscribeContractEvent

func (f *Factory) W_ethSubscribeContractEvent(
	ctx context.Context,
	module vm.Module,
	clientId,
	contractId,
	eventNamePtr, eventNameLen,
	channelPtr, channelLen,
	ttl uint32,
) errno.Error

func (*Factory) W_ethTransactContract

func (f *Factory) W_ethTransactContract(
	ctx context.Context,
	module common.Module,
	clientId,
	contractId,
	chainIdPtr,
	chainIdSize,
	methodPtr,
	methodLen,
	privKeyPtr,
	privKeySize,
	inputsPtr,
	inputsSize,
	isJSON,
	transactionIdPtr uint32,
) errno.Error

func (*Factory) W_ethTransactionRawSignatures

func (f *Factory) W_ethTransactionRawSignatures(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	vSigBufPtr,
	rSigBufPtr,
	sSigBufPtr uint32,
) errno.Error

func (*Factory) W_ethTransactionRawSignaturesSize

func (f *Factory) W_ethTransactionRawSignaturesSize(
	ctx context.Context,
	module common.Module,
	clientId,
	blockId,
	contractId,
	transactionId,
	vSigSizePtr,
	rSigSizePtr,
	sSigSizePtr uint32,
) errno.Error

func (*Factory) W_ethVerifySignature

func (f *Factory) W_ethVerifySignature(
	ctx context.Context,
	module common.Module,
	messagePtr, messageSize,
	pubKeyPtr, pubKeySize,
	signaturePtr,
	verifiedPtr uint32,
) errno.Error

type Transaction

type Transaction struct {
	*types.Transaction
	Id uint32
}

Jump to

Keyboard shortcuts

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