2018-07-05 01:10:33 +02:00
|
|
|
/* EVMC: Ethereum Client-VM Connector API.
|
2018-08-21 09:44:18 +02:00
|
|
|
* Copyright 2018 The EVMC Authors.
|
2018-07-05 01:10:33 +02:00
|
|
|
* Licensed under the MIT License. See the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2018-07-13 15:31:49 +02:00
|
|
|
#include <evmc/evmc.h>
|
2018-07-05 13:01:20 +02:00
|
|
|
#include <evmc/utils.h>
|
|
|
|
|
|
|
|
EVMC_EXPORT void* evmc_create_aaa()
|
2018-07-05 01:10:33 +02:00
|
|
|
{
|
|
|
|
return (void*)0xaaa;
|
|
|
|
}
|
|
|
|
|
2018-07-05 13:01:20 +02:00
|
|
|
EVMC_EXPORT void* evmc_create_eee_bbb()
|
2018-07-05 01:10:33 +02:00
|
|
|
{
|
|
|
|
return (void*)0xeeebbb;
|
|
|
|
}
|
2018-07-13 15:31:49 +02:00
|
|
|
|
|
|
|
EVMC_EXPORT void* evmc_create_failure()
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
EVMC_EXPORT struct evmc_instance* evmc_create_abi42()
|
|
|
|
{
|
|
|
|
static struct evmc_instance instance = {
|
|
|
|
.abi_version = 42,
|
|
|
|
};
|
|
|
|
return &instance;
|
|
|
|
}
|