-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
674 additions
and
26 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
47 changes: 47 additions & 0 deletions
47
Source/Experimental/ImmutablezkEVMAPI/Private/APIFilter.cpp
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,47 @@ | ||
/** | ||
* Immutable zkEVM API | ||
* Immutable Multi Rollup API | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator | ||
* https://github.com/OpenAPITools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
#include "APIFilter.h" | ||
|
||
#include "ImmutablezkEVMAPIModule.h" | ||
#include "APIHelpers.h" | ||
|
||
#include "Templates/SharedPointer.h" | ||
|
||
namespace ImmutablezkEVMAPI | ||
{ | ||
|
||
void APIFilter::WriteJson(JsonWriter& Writer) const | ||
{ | ||
Writer->WriteObjectStart(); | ||
Writer->WriteIdentifierPrefix(TEXT("name")); WriteJsonValue(Writer, Name); | ||
Writer->WriteIdentifierPrefix(TEXT("values")); WriteJsonValue(Writer, Values); | ||
Writer->WriteIdentifierPrefix(TEXT("omitted_values_count")); WriteJsonValue(Writer, OmittedValuesCount); | ||
Writer->WriteObjectEnd(); | ||
} | ||
|
||
bool APIFilter::FromJson(const TSharedPtr<FJsonValue>& JsonValue) | ||
{ | ||
const TSharedPtr<FJsonObject>* Object; | ||
if (!JsonValue->TryGetObject(Object)) | ||
return false; | ||
|
||
bool ParseSuccess = true; | ||
|
||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("name"), Name); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("values"), Values); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("omitted_values_count"), OmittedValuesCount); | ||
|
||
return ParseSuccess; | ||
} | ||
|
||
} |
47 changes: 47 additions & 0 deletions
47
Source/Experimental/ImmutablezkEVMAPI/Private/APIFilterResult.cpp
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,47 @@ | ||
/** | ||
* Immutable zkEVM API | ||
* Immutable Multi Rollup API | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator | ||
* https://github.com/OpenAPITools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
#include "APIFilterResult.h" | ||
|
||
#include "ImmutablezkEVMAPIModule.h" | ||
#include "APIHelpers.h" | ||
|
||
#include "Templates/SharedPointer.h" | ||
|
||
namespace ImmutablezkEVMAPI | ||
{ | ||
|
||
void APIFilterResult::WriteJson(JsonWriter& Writer) const | ||
{ | ||
Writer->WriteObjectStart(); | ||
Writer->WriteIdentifierPrefix(TEXT("chain")); WriteJsonValue(Writer, Chain); | ||
Writer->WriteIdentifierPrefix(TEXT("contract_address")); WriteJsonValue(Writer, ContractAddress); | ||
Writer->WriteIdentifierPrefix(TEXT("filters")); WriteJsonValue(Writer, Filters); | ||
Writer->WriteObjectEnd(); | ||
} | ||
|
||
bool APIFilterResult::FromJson(const TSharedPtr<FJsonValue>& JsonValue) | ||
{ | ||
const TSharedPtr<FJsonObject>* Object; | ||
if (!JsonValue->TryGetObject(Object)) | ||
return false; | ||
|
||
bool ParseSuccess = true; | ||
|
||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("chain"), Chain); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("contract_address"), ContractAddress); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("filters"), Filters); | ||
|
||
return ParseSuccess; | ||
} | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
Source/Experimental/ImmutablezkEVMAPI/Private/APIFilterValue.cpp
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,45 @@ | ||
/** | ||
* Immutable zkEVM API | ||
* Immutable Multi Rollup API | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator | ||
* https://github.com/OpenAPITools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
#include "APIFilterValue.h" | ||
|
||
#include "ImmutablezkEVMAPIModule.h" | ||
#include "APIHelpers.h" | ||
|
||
#include "Templates/SharedPointer.h" | ||
|
||
namespace ImmutablezkEVMAPI | ||
{ | ||
|
||
void APIFilterValue::WriteJson(JsonWriter& Writer) const | ||
{ | ||
Writer->WriteObjectStart(); | ||
Writer->WriteIdentifierPrefix(TEXT("value")); WriteJsonValue(Writer, Value); | ||
Writer->WriteIdentifierPrefix(TEXT("nft_count")); WriteJsonValue(Writer, NftCount); | ||
Writer->WriteObjectEnd(); | ||
} | ||
|
||
bool APIFilterValue::FromJson(const TSharedPtr<FJsonValue>& JsonValue) | ||
{ | ||
const TSharedPtr<FJsonObject>* Object; | ||
if (!JsonValue->TryGetObject(Object)) | ||
return false; | ||
|
||
bool ParseSuccess = true; | ||
|
||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("value"), Value); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("nft_count"), NftCount); | ||
|
||
return ParseSuccess; | ||
} | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
Source/Experimental/ImmutablezkEVMAPI/Private/APIListFiltersResult.cpp
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,45 @@ | ||
/** | ||
* Immutable zkEVM API | ||
* Immutable Multi Rollup API | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator | ||
* https://github.com/OpenAPITools/openapi-generator | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
#include "APIListFiltersResult.h" | ||
|
||
#include "ImmutablezkEVMAPIModule.h" | ||
#include "APIHelpers.h" | ||
|
||
#include "Templates/SharedPointer.h" | ||
|
||
namespace ImmutablezkEVMAPI | ||
{ | ||
|
||
void APIListFiltersResult::WriteJson(JsonWriter& Writer) const | ||
{ | ||
Writer->WriteObjectStart(); | ||
Writer->WriteIdentifierPrefix(TEXT("result")); WriteJsonValue(Writer, Result); | ||
Writer->WriteIdentifierPrefix(TEXT("page")); WriteJsonValue(Writer, Page); | ||
Writer->WriteObjectEnd(); | ||
} | ||
|
||
bool APIListFiltersResult::FromJson(const TSharedPtr<FJsonValue>& JsonValue) | ||
{ | ||
const TSharedPtr<FJsonObject>* Object; | ||
if (!JsonValue->TryGetObject(Object)) | ||
return false; | ||
|
||
bool ParseSuccess = true; | ||
|
||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("result"), Result); | ||
ParseSuccess &= TryGetJsonValue(*Object, TEXT("page"), Page); | ||
|
||
return ParseSuccess; | ||
} | ||
|
||
} |
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
Oops, something went wrong.