Documentation ¶
Index ¶
- Variables
- func MockBlockByNumber(testClientId uint32, testBlockId uint64)
- func MockBlockNonce(testClientId uint32, testNonce uint64)
- func MockBlockNumber(testSizeClientId, testDataClientId uint32, blockNumber *big.Int) error
- func MockBlockTransaction(testClientId, testTransactionId uint32)
- func MockBlockTransactions(testSizeClientId, testDataClientId uint32, testTransactionIds []uint32, ...) error
- func MockBytesMethod(testSizeClientId, testBytesClientId uint32, testBytes []byte)
- func MockCall(contract MockContract, outputTypeFailure, outputLengthFailure bool)
- func MockClientClose(testClientId uint32)
- func MockClientNew(testClientId int32)
- func MockClientUint64IdBuf(testClientId uint32, data []byte) func(clientId uint32, idPtr *uint64, bufPtr *byte) (error errno.Error)
- func MockCurrentBlockNumber(testClientId uint32, testBlockNumber uint64)
- func MockCurrentChainId(testSizeClientId, testDataClientId uint32, testChainId *big.Int) error
- func MockDeployContract(testContract MockContract, address string, transactionId, contractId uint32, ...) error
- func MockNewBoundContract(testContract MockContract, contractId uint32, ...) error
- func MockRawSignatures(testSizeClientId, testBytesClientId uint32, v, r, s *big.Int) error
- func MockSendTransaction(testClientId uint32)
- func MockSign(testMessage string)
- func MockTransactContract(testClientId uint32, transactionId uint32)
- func MockU64method(testClientId uint32, testValue uint64)
- func MockVerify(testMessage string, verified bool)
- type MockContract
- type MockContractMethod
- type MockData
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
}
Functions ¶
func MockBlockByNumber ¶
func MockBlockNonce ¶
func MockBlockNumber ¶
func MockBlockTransaction ¶
func MockBlockTransaction(testClientId, testTransactionId uint32)
func MockBlockTransactions ¶
func MockBytesMethod ¶
func MockCall ¶
func MockCall(contract MockContract, outputTypeFailure, outputLengthFailure bool)
func MockClientClose ¶
func MockClientClose(testClientId uint32)
func MockClientNew ¶
func MockClientNew(testClientId int32)
func MockClientUint64IdBuf ¶
func MockCurrentBlockNumber ¶
func MockCurrentChainId ¶
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 MockSendTransaction ¶
func MockSendTransaction(testClientId uint32)
func MockTransactContract ¶
func MockU64method ¶
func MockVerify ¶ added in v0.0.15
Types ¶
type MockContract ¶
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 }
Click to show internal directories.
Click to hide internal directories.