This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5239 from EOSIO/develop
Version 1.2.0
- Loading branch information
Showing
123 changed files
with
3,174 additions
and
3,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
macro(eosio_additional_plugin) | ||
set(ADDITIONAL_PLUGINS_TARGET "${ADDITIONAL_PLUGINS_TARGET};${ARGN}" PARENT_SCOPE) | ||
endmacro() | ||
|
||
foreach(ADDITIONAL_PLUGIN_SOURCE_DIR ${EOSIO_ADDITIONAL_PLUGINS}) | ||
string(UUID ADDITIONAL_PLUGIN_SOURCE_DIR_MD5 NAMESPACE "00000000-0000-0000-0000-000000000000" NAME ${ADDITIONAL_PLUGIN_SOURCE_DIR} TYPE MD5) | ||
message(STATUS "[Additional Plugin] ${ADDITIONAL_PLUGIN_SOURCE_DIR} => ${CMAKE_BINARY_DIR}/additional_plugins/${ADDITIONAL_PLUGIN_SOURCE_DIR_MD5}") | ||
add_subdirectory(${ADDITIONAL_PLUGIN_SOURCE_DIR} ${CMAKE_BINARY_DIR}/additional_plugins/${ADDITIONAL_PLUGIN_SOURCE_DIR_MD5}) | ||
endforeach() | ||
|
||
foreach(ADDITIONAL_PLUGIN_TARGET ${ADDITIONAL_PLUGINS_TARGET}) | ||
target_link_libraries( nodeos PRIVATE -Wl,${whole_archive_flag} ${ADDITIONAL_PLUGIN_TARGET} -Wl,${no_whole_archive_flag} ) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
file(GLOB ABI_FILES "*.abi") | ||
configure_file("${ABI_FILES}" "${CMAKE_CURRENT_BINARY_DIR}" COPYONLY) | ||
|
||
add_wast_executable(TARGET integration_test | ||
INCLUDE_FOLDERS "${STANDARD_INCLUDE_FOLDERS}" | ||
LIBRARIES libc libc++ eosiolib | ||
DESTINATION_FOLDER ${CMAKE_CURRENT_BINARY_DIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"version": "eosio::abi/1.0", | ||
"types": [{ | ||
"new_type_name": "account_name", | ||
"type": "name" | ||
}], | ||
"structs": [{ | ||
"name": "store", | ||
"base": "", | ||
"fields": [ | ||
{"name":"from", "type":"account_name"}, | ||
{"name":"to", "type":"account_name"}, | ||
{"name":"num", "type":"uint64"} | ||
] | ||
},{ | ||
"name": "payload", | ||
"base": "", | ||
"fields": [ | ||
{"name":"key", "type":"uint64"}, | ||
{"name":"data", "type":"uint64[]"} | ||
] | ||
} | ||
], | ||
"actions": [{ | ||
"name": "store", | ||
"type": "store", | ||
"ricardian_contract": "" | ||
} | ||
|
||
], | ||
"tables": [{ | ||
"name": "payloads", | ||
"type": "payload", | ||
"index_type": "i64", | ||
"key_names" : ["key"], | ||
"key_types" : ["uint64"] | ||
} | ||
], | ||
"ricardian_clauses": [], | ||
"abi_extensions": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include <eosiolib/eosio.hpp> | ||
using namespace eosio; | ||
|
||
struct integration_test : public eosio::contract { | ||
using contract::contract; | ||
|
||
struct payload { | ||
uint64_t key; | ||
vector<uint64_t> data; | ||
|
||
uint64_t primary_key()const { return key; } | ||
}; | ||
typedef eosio::multi_index<N(payloads), payload> payloads; | ||
|
||
/// @abi action | ||
void store( account_name from, | ||
account_name to, | ||
uint64_t num ) { | ||
require_auth( from ); | ||
eosio_assert( is_account( to ), "to account does not exist"); | ||
eosio_assert( num < std::numeric_limits<size_t>::max(), "num to large"); | ||
payloads data ( _self, from ); | ||
uint64_t key = 0; | ||
const uint64_t num_keys = 5; | ||
while (data.find( key ) != data.end()) { | ||
key += num_keys; | ||
} | ||
for (size_t i = 0; i < num_keys; ++i) { | ||
data.emplace(from, [&]( auto& g ) { | ||
g.key = key + i; | ||
g.data = vector<uint64_t>( static_cast<size_t>(num), 5); | ||
}); | ||
} | ||
} | ||
}; | ||
|
||
EOSIO_ABI( integration_test, (store) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.