Created
June 25, 2022 13:21
-
-
Save cc32d9/6a1d01541409ebebc2e7cb9d28277e40 to your computer and use it in GitHub Desktop.
atomicdata.hpp adaptation to use in your own contract
This file contains hidden or 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
--- /home/cc32d9/tmp/atomicassets-contract/include/atomicdata.hpp 2021-03-20 12:34:39.833672293 +0100 | |
+++ atomicdata.hpp 2022-05-04 12:06:12.048674881 +0200 | |
@@ -6,7 +6,7 @@ | |
using namespace eosio; | |
using namespace std; | |
-namespace atomicdata { | |
+namespace atomicassets { | |
//Custom vector types need to be defined because otherwise a bug in the ABI serialization | |
//would cause the ABI to be invalid | |
@@ -26,17 +26,12 @@ | |
int8_t, int16_t, int32_t, int64_t, \ | |
uint8_t, uint16_t, uint32_t, uint64_t, \ | |
float, double, std::string, \ | |
- atomicdata::INT8_VEC, atomicdata::INT16_VEC, atomicdata::INT32_VEC, atomicdata::INT64_VEC, \ | |
- atomicdata::UINT8_VEC, atomicdata::UINT16_VEC, atomicdata::UINT32_VEC, atomicdata::UINT64_VEC, \ | |
- atomicdata::FLOAT_VEC, atomicdata::DOUBLE_VEC, atomicdata::STRING_VEC> ATOMIC_ATTRIBUTE; | |
+ atomicassets::INT8_VEC, atomicassets::INT16_VEC, atomicassets::INT32_VEC, atomicassets::INT64_VEC, \ | |
+ atomicassets::UINT8_VEC, atomicassets::UINT16_VEC, atomicassets::UINT32_VEC, atomicassets::UINT64_VEC, \ | |
+ atomicassets::FLOAT_VEC, atomicassets::DOUBLE_VEC, atomicassets::STRING_VEC> ATOMIC_ATTRIBUTE; | |
typedef std::map <std::string, ATOMIC_ATTRIBUTE> ATTRIBUTE_MAP; | |
- struct FORMAT { | |
- std::string name; | |
- std::string type; | |
- }; | |
- | |
static constexpr uint64_t RESERVED = 4; | |
@@ -516,4 +511,4 @@ | |
return attr_map; | |
} | |
-} | |
\ No newline at end of file | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment