@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.
Files changed (99) hide show
  1. package/README.md +4 -1
  2. package/dist/abieos.node +0 -0
  3. package/lib/abieos.d.ts +19 -0
  4. package/lib/abieos.d.ts.map +1 -0
  5. package/lib/abieos.js +100 -0
  6. package/lib/abieos.ts +107 -0
  7. package/package.json +13 -8
  8. package/.idea/modules.xml +0 -8
  9. package/.idea/node-abieos.iml +0 -12
  10. package/.idea/vcs.xml +0 -9
  11. package/.idea/workspace.xml +0 -66
  12. package/CMakeLists.txt +0 -35
  13. package/abieos.d.ts +0 -21
  14. package/abieos.js +0 -59
  15. package/eosio.json +0 -1596
  16. package/include/.clang-format +0 -76
  17. package/include/eosio/abi.hpp +0 -393
  18. package/include/eosio/asset.hpp +0 -458
  19. package/include/eosio/bytes.hpp +0 -27
  20. package/include/eosio/chain_conversions.hpp +0 -450
  21. package/include/eosio/chain_types.hpp +0 -14
  22. package/include/eosio/check.hpp +0 -178
  23. package/include/eosio/convert.hpp +0 -95
  24. package/include/eosio/crypto.hpp +0 -148
  25. package/include/eosio/eosio_outcome.hpp +0 -41
  26. package/include/eosio/fixed_bytes.hpp +0 -250
  27. package/include/eosio/float.hpp +0 -35
  28. package/include/eosio/for_each_field.hpp +0 -48
  29. package/include/eosio/fpconv.c +0 -336
  30. package/include/eosio/fpconv.h +0 -41
  31. package/include/eosio/fpconv.license +0 -23
  32. package/include/eosio/from_bin.hpp +0 -272
  33. package/include/eosio/from_json.hpp +0 -749
  34. package/include/eosio/from_string.hpp +0 -28
  35. package/include/eosio/map_macro.h +0 -64
  36. package/include/eosio/murmur.hpp +0 -55
  37. package/include/eosio/name.hpp +0 -178
  38. package/include/eosio/opaque.hpp +0 -184
  39. package/include/eosio/operators.hpp +0 -71
  40. package/include/eosio/powers.h +0 -76
  41. package/include/eosio/reflection.hpp +0 -61
  42. package/include/eosio/ship_protocol.hpp +0 -971
  43. package/include/eosio/stream.hpp +0 -235
  44. package/include/eosio/symbol.hpp +0 -300
  45. package/include/eosio/time.hpp +0 -264
  46. package/include/eosio/to_bin.hpp +0 -189
  47. package/include/eosio/to_json.hpp +0 -334
  48. package/include/eosio/to_key.hpp +0 -305
  49. package/include/eosio/types.hpp +0 -103
  50. package/include/eosio/varint.hpp +0 -452
  51. package/include/outcome-basic.hpp +0 -6836
  52. package/include/rapidjson/allocators.h +0 -284
  53. package/include/rapidjson/cursorstreamwrapper.h +0 -78
  54. package/include/rapidjson/document.h +0 -2646
  55. package/include/rapidjson/encodedstream.h +0 -299
  56. package/include/rapidjson/encodings.h +0 -716
  57. package/include/rapidjson/error/en.h +0 -74
  58. package/include/rapidjson/error/error.h +0 -161
  59. package/include/rapidjson/filereadstream.h +0 -99
  60. package/include/rapidjson/filewritestream.h +0 -104
  61. package/include/rapidjson/fwd.h +0 -151
  62. package/include/rapidjson/internal/biginteger.h +0 -290
  63. package/include/rapidjson/internal/diyfp.h +0 -271
  64. package/include/rapidjson/internal/dtoa.h +0 -245
  65. package/include/rapidjson/internal/ieee754.h +0 -78
  66. package/include/rapidjson/internal/itoa.h +0 -308
  67. package/include/rapidjson/internal/meta.h +0 -186
  68. package/include/rapidjson/internal/pow10.h +0 -55
  69. package/include/rapidjson/internal/regex.h +0 -732
  70. package/include/rapidjson/internal/stack.h +0 -231
  71. package/include/rapidjson/internal/strfunc.h +0 -69
  72. package/include/rapidjson/internal/strtod.h +0 -290
  73. package/include/rapidjson/internal/swap.h +0 -46
  74. package/include/rapidjson/istreamwrapper.h +0 -113
  75. package/include/rapidjson/memorybuffer.h +0 -70
  76. package/include/rapidjson/memorystream.h +0 -71
  77. package/include/rapidjson/msinttypes/inttypes.h +0 -316
  78. package/include/rapidjson/msinttypes/stdint.h +0 -300
  79. package/include/rapidjson/ostreamwrapper.h +0 -81
  80. package/include/rapidjson/pointer.h +0 -1357
  81. package/include/rapidjson/prettywriter.h +0 -277
  82. package/include/rapidjson/rapidjson.h +0 -654
  83. package/include/rapidjson/reader.h +0 -2230
  84. package/include/rapidjson/schema.h +0 -2494
  85. package/include/rapidjson/stream.h +0 -223
  86. package/include/rapidjson/stringbuffer.h +0 -121
  87. package/include/rapidjson/writer.h +0 -710
  88. package/src/abi.cpp +0 -274
  89. package/src/abieos.cpp +0 -334
  90. package/src/abieos.h +0 -91
  91. package/src/abieos.hpp +0 -1011
  92. package/src/abieos_exception.hpp +0 -89
  93. package/src/abieos_numeric.hpp +0 -94
  94. package/src/abieos_ripemd160.hpp +0 -417
  95. package/src/crypto.cpp +0 -215
  96. package/src/main.cpp +0 -242
  97. package/src/ship.abi.cpp +0 -695
  98. package/tools/CMakeLists.txt +0 -9
  99. package/tools/name.cpp +0 -86
@@ -1,186 +0,0 @@
1
- // Tencent is pleased to support the open source community by making RapidJSON available.
2
- //
3
- // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
4
- //
5
- // Licensed under the MIT License (the "License"); you may not use this file except
6
- // in compliance with the License. You may obtain a copy of the License at
7
- //
8
- // http://opensource.org/licenses/MIT
9
- //
10
- // Unless required by applicable law or agreed to in writing, software distributed
11
- // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12
- // CONDITIONS OF ANY KIND, either express or implied. See the License for the
13
- // specific language governing permissions and limitations under the License.
14
-
15
- #ifndef RAPIDJSON_INTERNAL_META_H_
16
- #define RAPIDJSON_INTERNAL_META_H_
17
-
18
- #include "../rapidjson.h"
19
-
20
- #ifdef __GNUC__
21
- RAPIDJSON_DIAG_PUSH
22
- RAPIDJSON_DIAG_OFF(effc++)
23
- #endif
24
-
25
- #if defined(_MSC_VER) && !defined(__clang__)
26
- RAPIDJSON_DIAG_PUSH
27
- RAPIDJSON_DIAG_OFF(6334)
28
- #endif
29
-
30
- #if RAPIDJSON_HAS_CXX11_TYPETRAITS
31
- #include <type_traits>
32
- #endif
33
-
34
- //@cond RAPIDJSON_INTERNAL
35
- RAPIDJSON_NAMESPACE_BEGIN
36
- namespace internal {
37
-
38
- // Helper to wrap/convert arbitrary types to void, useful for arbitrary type matching
39
- template <typename T> struct Void { typedef void Type; };
40
-
41
- ///////////////////////////////////////////////////////////////////////////////
42
- // BoolType, TrueType, FalseType
43
- //
44
- template <bool Cond> struct BoolType {
45
- static const bool Value = Cond;
46
- typedef BoolType Type;
47
- };
48
- typedef BoolType<true> TrueType;
49
- typedef BoolType<false> FalseType;
50
-
51
-
52
- ///////////////////////////////////////////////////////////////////////////////
53
- // SelectIf, BoolExpr, NotExpr, AndExpr, OrExpr
54
- //
55
-
56
- template <bool C> struct SelectIfImpl { template <typename T1, typename T2> struct Apply { typedef T1 Type; }; };
57
- template <> struct SelectIfImpl<false> { template <typename T1, typename T2> struct Apply { typedef T2 Type; }; };
58
- template <bool C, typename T1, typename T2> struct SelectIfCond : SelectIfImpl<C>::template Apply<T1,T2> {};
59
- template <typename C, typename T1, typename T2> struct SelectIf : SelectIfCond<C::Value, T1, T2> {};
60
-
61
- template <bool Cond1, bool Cond2> struct AndExprCond : FalseType {};
62
- template <> struct AndExprCond<true, true> : TrueType {};
63
- template <bool Cond1, bool Cond2> struct OrExprCond : TrueType {};
64
- template <> struct OrExprCond<false, false> : FalseType {};
65
-
66
- template <typename C> struct BoolExpr : SelectIf<C,TrueType,FalseType>::Type {};
67
- template <typename C> struct NotExpr : SelectIf<C,FalseType,TrueType>::Type {};
68
- template <typename C1, typename C2> struct AndExpr : AndExprCond<C1::Value, C2::Value>::Type {};
69
- template <typename C1, typename C2> struct OrExpr : OrExprCond<C1::Value, C2::Value>::Type {};
70
-
71
-
72
- ///////////////////////////////////////////////////////////////////////////////
73
- // AddConst, MaybeAddConst, RemoveConst
74
- template <typename T> struct AddConst { typedef const T Type; };
75
- template <bool Constify, typename T> struct MaybeAddConst : SelectIfCond<Constify, const T, T> {};
76
- template <typename T> struct RemoveConst { typedef T Type; };
77
- template <typename T> struct RemoveConst<const T> { typedef T Type; };
78
-
79
-
80
- ///////////////////////////////////////////////////////////////////////////////
81
- // IsSame, IsConst, IsMoreConst, IsPointer
82
- //
83
- template <typename T, typename U> struct IsSame : FalseType {};
84
- template <typename T> struct IsSame<T, T> : TrueType {};
85
-
86
- template <typename T> struct IsConst : FalseType {};
87
- template <typename T> struct IsConst<const T> : TrueType {};
88
-
89
- template <typename CT, typename T>
90
- struct IsMoreConst
91
- : AndExpr<IsSame<typename RemoveConst<CT>::Type, typename RemoveConst<T>::Type>,
92
- BoolType<IsConst<CT>::Value >= IsConst<T>::Value> >::Type {};
93
-
94
- template <typename T> struct IsPointer : FalseType {};
95
- template <typename T> struct IsPointer<T*> : TrueType {};
96
-
97
- ///////////////////////////////////////////////////////////////////////////////
98
- // IsBaseOf
99
- //
100
- #if RAPIDJSON_HAS_CXX11_TYPETRAITS
101
-
102
- template <typename B, typename D> struct IsBaseOf
103
- : BoolType< ::std::is_base_of<B,D>::value> {};
104
-
105
- #else // simplified version adopted from Boost
106
-
107
- template<typename B, typename D> struct IsBaseOfImpl {
108
- RAPIDJSON_STATIC_ASSERT(sizeof(B) != 0);
109
- RAPIDJSON_STATIC_ASSERT(sizeof(D) != 0);
110
-
111
- typedef char (&Yes)[1];
112
- typedef char (&No) [2];
113
-
114
- template <typename T>
115
- static Yes Check(const D*, T);
116
- static No Check(const B*, int);
117
-
118
- struct Host {
119
- operator const B*() const;
120
- operator const D*();
121
- };
122
-
123
- enum { Value = (sizeof(Check(Host(), 0)) == sizeof(Yes)) };
124
- };
125
-
126
- template <typename B, typename D> struct IsBaseOf
127
- : OrExpr<IsSame<B, D>, BoolExpr<IsBaseOfImpl<B, D> > >::Type {};
128
-
129
- #endif // RAPIDJSON_HAS_CXX11_TYPETRAITS
130
-
131
-
132
- //////////////////////////////////////////////////////////////////////////
133
- // EnableIf / DisableIf
134
- //
135
- template <bool Condition, typename T = void> struct EnableIfCond { typedef T Type; };
136
- template <typename T> struct EnableIfCond<false, T> { /* empty */ };
137
-
138
- template <bool Condition, typename T = void> struct DisableIfCond { typedef T Type; };
139
- template <typename T> struct DisableIfCond<true, T> { /* empty */ };
140
-
141
- template <typename Condition, typename T = void>
142
- struct EnableIf : EnableIfCond<Condition::Value, T> {};
143
-
144
- template <typename Condition, typename T = void>
145
- struct DisableIf : DisableIfCond<Condition::Value, T> {};
146
-
147
- // SFINAE helpers
148
- struct SfinaeTag {};
149
- template <typename T> struct RemoveSfinaeTag;
150
- template <typename T> struct RemoveSfinaeTag<SfinaeTag&(*)(T)> { typedef T Type; };
151
-
152
- #define RAPIDJSON_REMOVEFPTR_(type) \
153
- typename ::RAPIDJSON_NAMESPACE::internal::RemoveSfinaeTag \
154
- < ::RAPIDJSON_NAMESPACE::internal::SfinaeTag&(*) type>::Type
155
-
156
- #define RAPIDJSON_ENABLEIF(cond) \
157
- typename ::RAPIDJSON_NAMESPACE::internal::EnableIf \
158
- <RAPIDJSON_REMOVEFPTR_(cond)>::Type * = NULL
159
-
160
- #define RAPIDJSON_DISABLEIF(cond) \
161
- typename ::RAPIDJSON_NAMESPACE::internal::DisableIf \
162
- <RAPIDJSON_REMOVEFPTR_(cond)>::Type * = NULL
163
-
164
- #define RAPIDJSON_ENABLEIF_RETURN(cond,returntype) \
165
- typename ::RAPIDJSON_NAMESPACE::internal::EnableIf \
166
- <RAPIDJSON_REMOVEFPTR_(cond), \
167
- RAPIDJSON_REMOVEFPTR_(returntype)>::Type
168
-
169
- #define RAPIDJSON_DISABLEIF_RETURN(cond,returntype) \
170
- typename ::RAPIDJSON_NAMESPACE::internal::DisableIf \
171
- <RAPIDJSON_REMOVEFPTR_(cond), \
172
- RAPIDJSON_REMOVEFPTR_(returntype)>::Type
173
-
174
- } // namespace internal
175
- RAPIDJSON_NAMESPACE_END
176
- //@endcond
177
-
178
- #if defined(_MSC_VER) && !defined(__clang__)
179
- RAPIDJSON_DIAG_POP
180
- #endif
181
-
182
- #ifdef __GNUC__
183
- RAPIDJSON_DIAG_POP
184
- #endif
185
-
186
- #endif // RAPIDJSON_INTERNAL_META_H_
@@ -1,55 +0,0 @@
1
- // Tencent is pleased to support the open source community by making RapidJSON available.
2
- //
3
- // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
4
- //
5
- // Licensed under the MIT License (the "License"); you may not use this file except
6
- // in compliance with the License. You may obtain a copy of the License at
7
- //
8
- // http://opensource.org/licenses/MIT
9
- //
10
- // Unless required by applicable law or agreed to in writing, software distributed
11
- // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12
- // CONDITIONS OF ANY KIND, either express or implied. See the License for the
13
- // specific language governing permissions and limitations under the License.
14
-
15
- #ifndef RAPIDJSON_POW10_
16
- #define RAPIDJSON_POW10_
17
-
18
- #include "../rapidjson.h"
19
-
20
- RAPIDJSON_NAMESPACE_BEGIN
21
- namespace internal {
22
-
23
- //! Computes integer powers of 10 in double (10.0^n).
24
- /*! This function uses lookup table for fast and accurate results.
25
- \param n non-negative exponent. Must <= 308.
26
- \return 10.0^n
27
- */
28
- inline double Pow10(int n) {
29
- static const double e[] = { // 1e-0...1e308: 309 * 8 bytes = 2472 bytes
30
- 1e+0,
31
- 1e+1, 1e+2, 1e+3, 1e+4, 1e+5, 1e+6, 1e+7, 1e+8, 1e+9, 1e+10, 1e+11, 1e+12, 1e+13, 1e+14, 1e+15, 1e+16, 1e+17, 1e+18, 1e+19, 1e+20,
32
- 1e+21, 1e+22, 1e+23, 1e+24, 1e+25, 1e+26, 1e+27, 1e+28, 1e+29, 1e+30, 1e+31, 1e+32, 1e+33, 1e+34, 1e+35, 1e+36, 1e+37, 1e+38, 1e+39, 1e+40,
33
- 1e+41, 1e+42, 1e+43, 1e+44, 1e+45, 1e+46, 1e+47, 1e+48, 1e+49, 1e+50, 1e+51, 1e+52, 1e+53, 1e+54, 1e+55, 1e+56, 1e+57, 1e+58, 1e+59, 1e+60,
34
- 1e+61, 1e+62, 1e+63, 1e+64, 1e+65, 1e+66, 1e+67, 1e+68, 1e+69, 1e+70, 1e+71, 1e+72, 1e+73, 1e+74, 1e+75, 1e+76, 1e+77, 1e+78, 1e+79, 1e+80,
35
- 1e+81, 1e+82, 1e+83, 1e+84, 1e+85, 1e+86, 1e+87, 1e+88, 1e+89, 1e+90, 1e+91, 1e+92, 1e+93, 1e+94, 1e+95, 1e+96, 1e+97, 1e+98, 1e+99, 1e+100,
36
- 1e+101,1e+102,1e+103,1e+104,1e+105,1e+106,1e+107,1e+108,1e+109,1e+110,1e+111,1e+112,1e+113,1e+114,1e+115,1e+116,1e+117,1e+118,1e+119,1e+120,
37
- 1e+121,1e+122,1e+123,1e+124,1e+125,1e+126,1e+127,1e+128,1e+129,1e+130,1e+131,1e+132,1e+133,1e+134,1e+135,1e+136,1e+137,1e+138,1e+139,1e+140,
38
- 1e+141,1e+142,1e+143,1e+144,1e+145,1e+146,1e+147,1e+148,1e+149,1e+150,1e+151,1e+152,1e+153,1e+154,1e+155,1e+156,1e+157,1e+158,1e+159,1e+160,
39
- 1e+161,1e+162,1e+163,1e+164,1e+165,1e+166,1e+167,1e+168,1e+169,1e+170,1e+171,1e+172,1e+173,1e+174,1e+175,1e+176,1e+177,1e+178,1e+179,1e+180,
40
- 1e+181,1e+182,1e+183,1e+184,1e+185,1e+186,1e+187,1e+188,1e+189,1e+190,1e+191,1e+192,1e+193,1e+194,1e+195,1e+196,1e+197,1e+198,1e+199,1e+200,
41
- 1e+201,1e+202,1e+203,1e+204,1e+205,1e+206,1e+207,1e+208,1e+209,1e+210,1e+211,1e+212,1e+213,1e+214,1e+215,1e+216,1e+217,1e+218,1e+219,1e+220,
42
- 1e+221,1e+222,1e+223,1e+224,1e+225,1e+226,1e+227,1e+228,1e+229,1e+230,1e+231,1e+232,1e+233,1e+234,1e+235,1e+236,1e+237,1e+238,1e+239,1e+240,
43
- 1e+241,1e+242,1e+243,1e+244,1e+245,1e+246,1e+247,1e+248,1e+249,1e+250,1e+251,1e+252,1e+253,1e+254,1e+255,1e+256,1e+257,1e+258,1e+259,1e+260,
44
- 1e+261,1e+262,1e+263,1e+264,1e+265,1e+266,1e+267,1e+268,1e+269,1e+270,1e+271,1e+272,1e+273,1e+274,1e+275,1e+276,1e+277,1e+278,1e+279,1e+280,
45
- 1e+281,1e+282,1e+283,1e+284,1e+285,1e+286,1e+287,1e+288,1e+289,1e+290,1e+291,1e+292,1e+293,1e+294,1e+295,1e+296,1e+297,1e+298,1e+299,1e+300,
46
- 1e+301,1e+302,1e+303,1e+304,1e+305,1e+306,1e+307,1e+308
47
- };
48
- RAPIDJSON_ASSERT(n >= 0 && n <= 308);
49
- return e[n];
50
- }
51
-
52
- } // namespace internal
53
- RAPIDJSON_NAMESPACE_END
54
-
55
- #endif // RAPIDJSON_POW10_