@eosrio/node-abieos 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/abieos.node +0 -0
- package/lib/abieos.d.ts +19 -0
- package/lib/abieos.d.ts.map +1 -0
- package/lib/abieos.js +100 -0
- package/lib/abieos.ts +107 -0
- package/package.json +13 -8
- package/.idea/modules.xml +0 -8
- package/.idea/node-abieos.iml +0 -12
- package/.idea/vcs.xml +0 -9
- package/.idea/workspace.xml +0 -66
- package/CMakeLists.txt +0 -35
- package/abieos.d.ts +0 -21
- package/abieos.js +0 -59
- package/eosio.json +0 -1596
- package/include/.clang-format +0 -76
- package/include/eosio/abi.hpp +0 -393
- package/include/eosio/asset.hpp +0 -458
- package/include/eosio/bytes.hpp +0 -27
- package/include/eosio/chain_conversions.hpp +0 -450
- package/include/eosio/chain_types.hpp +0 -14
- package/include/eosio/check.hpp +0 -178
- package/include/eosio/convert.hpp +0 -95
- package/include/eosio/crypto.hpp +0 -148
- package/include/eosio/eosio_outcome.hpp +0 -41
- package/include/eosio/fixed_bytes.hpp +0 -250
- package/include/eosio/float.hpp +0 -35
- package/include/eosio/for_each_field.hpp +0 -48
- package/include/eosio/fpconv.c +0 -336
- package/include/eosio/fpconv.h +0 -41
- package/include/eosio/fpconv.license +0 -23
- package/include/eosio/from_bin.hpp +0 -272
- package/include/eosio/from_json.hpp +0 -749
- package/include/eosio/from_string.hpp +0 -28
- package/include/eosio/map_macro.h +0 -64
- package/include/eosio/murmur.hpp +0 -55
- package/include/eosio/name.hpp +0 -178
- package/include/eosio/opaque.hpp +0 -184
- package/include/eosio/operators.hpp +0 -71
- package/include/eosio/powers.h +0 -76
- package/include/eosio/reflection.hpp +0 -61
- package/include/eosio/ship_protocol.hpp +0 -971
- package/include/eosio/stream.hpp +0 -235
- package/include/eosio/symbol.hpp +0 -300
- package/include/eosio/time.hpp +0 -264
- package/include/eosio/to_bin.hpp +0 -189
- package/include/eosio/to_json.hpp +0 -334
- package/include/eosio/to_key.hpp +0 -305
- package/include/eosio/types.hpp +0 -103
- package/include/eosio/varint.hpp +0 -452
- package/include/outcome-basic.hpp +0 -6836
- package/include/rapidjson/allocators.h +0 -284
- package/include/rapidjson/cursorstreamwrapper.h +0 -78
- package/include/rapidjson/document.h +0 -2646
- package/include/rapidjson/encodedstream.h +0 -299
- package/include/rapidjson/encodings.h +0 -716
- package/include/rapidjson/error/en.h +0 -74
- package/include/rapidjson/error/error.h +0 -161
- package/include/rapidjson/filereadstream.h +0 -99
- package/include/rapidjson/filewritestream.h +0 -104
- package/include/rapidjson/fwd.h +0 -151
- package/include/rapidjson/internal/biginteger.h +0 -290
- package/include/rapidjson/internal/diyfp.h +0 -271
- package/include/rapidjson/internal/dtoa.h +0 -245
- package/include/rapidjson/internal/ieee754.h +0 -78
- package/include/rapidjson/internal/itoa.h +0 -308
- package/include/rapidjson/internal/meta.h +0 -186
- package/include/rapidjson/internal/pow10.h +0 -55
- package/include/rapidjson/internal/regex.h +0 -732
- package/include/rapidjson/internal/stack.h +0 -231
- package/include/rapidjson/internal/strfunc.h +0 -69
- package/include/rapidjson/internal/strtod.h +0 -290
- package/include/rapidjson/internal/swap.h +0 -46
- package/include/rapidjson/istreamwrapper.h +0 -113
- package/include/rapidjson/memorybuffer.h +0 -70
- package/include/rapidjson/memorystream.h +0 -71
- package/include/rapidjson/msinttypes/inttypes.h +0 -316
- package/include/rapidjson/msinttypes/stdint.h +0 -300
- package/include/rapidjson/ostreamwrapper.h +0 -81
- package/include/rapidjson/pointer.h +0 -1357
- package/include/rapidjson/prettywriter.h +0 -277
- package/include/rapidjson/rapidjson.h +0 -654
- package/include/rapidjson/reader.h +0 -2230
- package/include/rapidjson/schema.h +0 -2494
- package/include/rapidjson/stream.h +0 -223
- package/include/rapidjson/stringbuffer.h +0 -121
- package/include/rapidjson/writer.h +0 -710
- package/src/abi.cpp +0 -274
- package/src/abieos.cpp +0 -334
- package/src/abieos.h +0 -91
- package/src/abieos.hpp +0 -1011
- package/src/abieos_exception.hpp +0 -89
- package/src/abieos_numeric.hpp +0 -94
- package/src/abieos_ripemd160.hpp +0 -417
- package/src/crypto.cpp +0 -215
- package/src/main.cpp +0 -242
- package/src/ship.abi.cpp +0 -695
- package/tools/CMakeLists.txt +0 -9
- package/tools/name.cpp +0 -86
package/src/abieos.h
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
// copyright defined in abieos/LICENSE.txt
|
|
2
|
-
|
|
3
|
-
#pragma once
|
|
4
|
-
|
|
5
|
-
#include <stddef.h>
|
|
6
|
-
#include <stdint.h>
|
|
7
|
-
|
|
8
|
-
#ifdef __cplusplus
|
|
9
|
-
extern "C" {
|
|
10
|
-
#endif
|
|
11
|
-
|
|
12
|
-
typedef struct abieos_context_s abieos_context;
|
|
13
|
-
typedef int abieos_bool;
|
|
14
|
-
|
|
15
|
-
// Create a context. The context holds all memory allocated by functions in this header. Returns null on failure.
|
|
16
|
-
abieos_context* abieos_create();
|
|
17
|
-
|
|
18
|
-
// Destroy a context.
|
|
19
|
-
void abieos_destroy(abieos_context* context);
|
|
20
|
-
|
|
21
|
-
// Delete a contract from context
|
|
22
|
-
abieos_bool abieos_delete_contract(abieos_context* context, uint64_t contract);
|
|
23
|
-
|
|
24
|
-
// Get last error. Never returns null. The context owns the returned string.
|
|
25
|
-
const char* abieos_get_error(abieos_context* context);
|
|
26
|
-
|
|
27
|
-
// Get generated binary. The context owns the returned memory. Functions return null on error; use abieos_get_error to
|
|
28
|
-
// retrieve error.
|
|
29
|
-
int abieos_get_bin_size(abieos_context* context);
|
|
30
|
-
const char* abieos_get_bin_data(abieos_context* context);
|
|
31
|
-
|
|
32
|
-
// Convert generated binary to hex. The context owns the returned string. Returns null on error; use abieos_get_error to
|
|
33
|
-
// retrieve error.
|
|
34
|
-
const char* abieos_get_bin_hex(abieos_context* context);
|
|
35
|
-
|
|
36
|
-
// Name conversion. The context owns the returned memory. Functions return null on error; use abieos_get_error to
|
|
37
|
-
// retrieve error.
|
|
38
|
-
uint64_t abieos_string_to_name(abieos_context* context, const char* str);
|
|
39
|
-
const char* abieos_name_to_string(abieos_context* context, uint64_t name);
|
|
40
|
-
|
|
41
|
-
// Set abi (JSON format). Returns false on error.
|
|
42
|
-
abieos_bool abieos_set_abi(abieos_context* context, uint64_t contract, const char* abi);
|
|
43
|
-
|
|
44
|
-
// Set abi (binary format). Returns false on error.
|
|
45
|
-
abieos_bool abieos_set_abi_bin(abieos_context* context, uint64_t contract, const char* data, size_t size);
|
|
46
|
-
|
|
47
|
-
// Set abi (hex format). Returns false on error.
|
|
48
|
-
abieos_bool abieos_set_abi_hex(abieos_context* context, uint64_t contract, const char* hex);
|
|
49
|
-
|
|
50
|
-
// Get the type name for an action. The context owns the returned memory. Returns null on error; use abieos_get_error
|
|
51
|
-
// to retrieve error.
|
|
52
|
-
const char* abieos_get_type_for_action(abieos_context* context, uint64_t contract, uint64_t action);
|
|
53
|
-
|
|
54
|
-
// Get the type name for a table. The context owns the returned memory. Returns null on error; use abieos_get_error
|
|
55
|
-
// to retrieve error.
|
|
56
|
-
const char* abieos_get_type_for_table(abieos_context* context, uint64_t contract, uint64_t table);
|
|
57
|
-
|
|
58
|
-
// Get the definition for a kv table in json. The context owns the returned memory. Returns null on error; use
|
|
59
|
-
// abieos_get_error to retrieve error.
|
|
60
|
-
const char* abieos_get_kv_table_def(abieos_context* context, uint64_t contract, uint64_t table);
|
|
61
|
-
|
|
62
|
-
// Get the type name for an action_result. The context owns the returned memory. Returns null on error; use
|
|
63
|
-
// abieos_get_error to retrieve error.
|
|
64
|
-
const char* abieos_get_type_for_action_result(abieos_context* context, uint64_t contract, uint64_t action_result);
|
|
65
|
-
|
|
66
|
-
// Convert json to binary. Use abieos_get_bin_* to retrieve result. Returns false on error.
|
|
67
|
-
abieos_bool abieos_json_to_bin(abieos_context* context, uint64_t contract, const char* type, const char* json);
|
|
68
|
-
|
|
69
|
-
// Convert json to binary. Allow json field reordering. Use abieos_get_bin_* to retrieve result. Returns false on error.
|
|
70
|
-
abieos_bool abieos_json_to_bin_reorderable(abieos_context* context, uint64_t contract, const char* type,
|
|
71
|
-
const char* json);
|
|
72
|
-
|
|
73
|
-
// Convert binary to json. The context owns the returned string. Returns null on error; use abieos_get_error to retrieve
|
|
74
|
-
// error.
|
|
75
|
-
const char* abieos_bin_to_json(abieos_context* context, uint64_t contract, const char* type, const char* data,
|
|
76
|
-
size_t size);
|
|
77
|
-
|
|
78
|
-
// Convert hex to json. The context owns the returned memory. Returns null on error; use abieos_get_error to retrieve
|
|
79
|
-
// error.
|
|
80
|
-
const char* abieos_hex_to_json(abieos_context* context, uint64_t contract, const char* type, const char* hex);
|
|
81
|
-
|
|
82
|
-
// Convert abi json to bin, Use abieos_get_bin_* to retrieve result. Returns false on error.
|
|
83
|
-
abieos_bool abieos_abi_json_to_bin(abieos_context* context, const char* json);
|
|
84
|
-
|
|
85
|
-
// Convert abi bin to json, The context.result_str has the result, Returns null on error; use abieos_get_error to
|
|
86
|
-
// retrieve
|
|
87
|
-
const char* abieos_abi_bin_to_json(abieos_context* context, const char* abi_bin_data, const size_t abi_bin_data_size);
|
|
88
|
-
|
|
89
|
-
#ifdef __cplusplus
|
|
90
|
-
}
|
|
91
|
-
#endif
|