ethereumSym

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthBlockByNumber = func(clientId uint32, size uint32, bufPtr *byte, blockIdPtr *uint64) (error errno.Error) {
	return 0
}
View Source
var EthBlockNumberFromId = func(clientId uint32, blockIdPtr *uint64, bufPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthBlockNumberFromIdSize = func(clientId uint32, blockIdPtr *uint64, sizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthCallContract = func(clientId uint32, contractId uint32, method string, outputPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthCallContractSize = func(clientId uint32, contractId uint32, method string, inputsPtr *byte, inputsSize uint32, outputSizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthCloseClient = func(clientId uint32) (error errno.Error) {
	return 0
}
View Source
var EthCurrentBlockNumber = func(clientId uint32, blockNumberPtr *uint64) (error errno.Error) {
	return 0
}
View Source
var EthCurrentChainId = func(clientId uint32, bufPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthCurrentChainIdSize = func(clientId uint32, sizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthDeployContractSize = func(clientId uint32, chainIdPtr *byte, chainIdSize uint32, bin string, abiPtr *byte, abiSize uint32, privKey string, addressPtr *byte, methodsSizePtr *uint32, contractIdPtr *uint32, transactionIdPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthGetContractMethod = func(clientId uint32, contractId uint32, method string, inputPtr *byte, outputPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthGetContractMethodSize = func(clientId uint32, contractId uint32, method string, inputSizePtr *uint32, outputSizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionFromBlockByHash = func(clientId uint32, blockIdPtr *uint64, idPtr *uint32, hashPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionMethodBytes = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32, method string, bufPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionMethodSize = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32, method string, sizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionMethodUint64 = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32, method string, numPtr *uint64) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionsFromBlock = func(clientId uint32, blockIdPtr *uint64, bufPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthGetTransactionsFromBlockSize = func(clientId uint32, blockIdPtr *uint64, sizePtr *uint32, arraySize *uint32) (error errno.Error) {
	return 0
}
View Source
var EthNew = func(clientIdPtr *uint32, url string) (error errno.Error) {
	return 0
}
View Source
var EthNewContract = func(clientId uint32, contractId uint32, methodsPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthNewContractSize = func(clientId uint32, abiPtr *byte, abiSize uint32, address string, methodsSizePtr *uint32, contractPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthNonceFromPrivateKey = func(clientId uint32, hexKey string, blockNumberLen uint32, blockNumberPtr *byte, noncePtr *uint64) (error errno.Error) {
	return 0
}
View Source
var EthSendTransaction = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32) (error errno.Error) {
	return 0
}
View Source
var EthSignMessage = func(message string, privKey string, signaturePtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthTransactContract = func(clientId uint32, contractId uint32, chainIdPtr *byte, chainIdSize uint32, method string, privKey string, inputPtr *byte, inputSize uint32, transactionIdPtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthTransactionRawSignatures = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32, vSigBufPtr *byte, rSigBufPtr *byte, sSigBufPtr *byte) (error errno.Error) {
	return 0
}
View Source
var EthTransactionRawSignaturesSize = func(clientId uint32, blockIdPtr *uint64, contractId uint32, transactionId uint32, vSigSizePtr *uint32, rSigSizePtr *uint32, sSigSizePtr *uint32) (error errno.Error) {
	return 0
}
View Source
var EthVerifySignature = func(message string, signaturePtr *byte, privKey string, verifiedPtr *uint32) (error errno.Error) {
	return 0
}

Functions

func MockBlockByNumber

func MockBlockByNumber(testClientId uint32, testBlockId uint64)

func MockBlockNonce

func MockBlockNonce(testClientId uint32, testNonce uint64)

func MockBlockNumber

func MockBlockNumber(testSizeClientId, testDataClientId uint32, blockNumber *big.Int) error

func MockBlockTransaction

func MockBlockTransaction(testClientId, testTransactionId uint32)

func MockBlockTransactions

func MockBlockTransactions(testSizeClientId, testDataClientId uint32, testTransactionIds []uint32, writeError bool) error

func MockBytesMethod

func MockBytesMethod(testSizeClientId, testBytesClientId uint32, testBytes []byte)

func MockCall

func MockCall(contract MockContract, outputTypeFailure, outputLengthFailure bool)

func MockClientClose

func MockClientClose(testClientId uint32)

func MockClientNew

func MockClientNew(testClientId int32)

func MockClientUint64IdBuf

func MockClientUint64IdBuf(testClientId uint32, data []byte) func(clientId uint32, idPtr *uint64, bufPtr *byte) (error errno.Error)

func MockCurrentBlockNumber

func MockCurrentBlockNumber(testClientId uint32, testBlockNumber uint64)

func MockCurrentChainId

func MockCurrentChainId(testSizeClientId, testDataClientId uint32, testChainId *big.Int) error

func MockDeployContract

func MockDeployContract(testContract MockContract, address string, transactionId, contractId uint32, inputWriteFailure, outputWriteFailure bool) error

func MockNewBoundContract

func MockNewBoundContract(testContract MockContract, contractId uint32, inputWriteFailure, outputWriteFailure bool) error

func MockRawSignatures

func MockRawSignatures(testSizeClientId, testBytesClientId uint32, v, r, s *big.Int) error

func MockSendTransaction

func MockSendTransaction(testClientId uint32)

func MockSign added in v0.0.15

func MockSign(testMessage string)

func MockTransactContract

func MockTransactContract(testClientId uint32, transactionId uint32)

func MockU64method

func MockU64method(testClientId uint32, testValue uint64)

func MockVerify added in v0.0.15

func MockVerify(testMessage string, verified bool)

Types

type MockContract

type MockContract struct {
	Methods              map[string]MockContractMethod
	ContractSizeClientId uint32
	ContractDataClientId uint32
	MethodSizeClientId   uint32
	MethodDataClientId   uint32
	CallSizeClientId     uint32
	CallDataClientId     uint32
}

type MockContractMethod

type MockContractMethod struct {
	Inputs  []interface{}
	Outputs []interface{}
}

type MockData

type MockData struct {
	Client                uint32
	BlockByNumber         uint64
	CurrentBlockNumber    uint64
	CurrentChainId        *big.Int
	BlockTransaction      uint32
	BlockTransactions     []uint32
	BlockNumber           *big.Int
	BlockNonce            uint64
	Contract              map[string]MockContractMethod
	ContractId            uint32
	ContractTransactionId uint32
	ContractAddress       string
	MethodTransactionId   uint32
	TransactionU64        uint64
	TransactionBytes      []byte
	VSig                  *big.Int
	RSig                  *big.Int
	SSig                  *big.Int
}

func (*MockData) Mock

func (m *MockData) Mock()

Jump to

Keyboard shortcuts

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