diff --git a/Content/BlueprintSampleContent/ImtblEvmTransactionReceiptWidget4_26.uasset b/Content/BlueprintSampleContent/ImtblEvmTransactionReceiptWidget4_26.uasset index 7a96012..8263e63 100644 Binary files a/Content/BlueprintSampleContent/ImtblEvmTransactionReceiptWidget4_26.uasset and b/Content/BlueprintSampleContent/ImtblEvmTransactionReceiptWidget4_26.uasset differ diff --git a/Content/BlueprintSampleContent/ImtblEvmTransactionWidget4_26.uasset b/Content/BlueprintSampleContent/ImtblEvmTransactionWidget4_26.uasset index 5aa7811..c0fb5bd 100644 Binary files a/Content/BlueprintSampleContent/ImtblEvmTransactionWidget4_26.uasset and b/Content/BlueprintSampleContent/ImtblEvmTransactionWidget4_26.uasset differ diff --git a/Source/Immutable/Private/Immutable/ImmutableBlueprintLibrary.cpp b/Source/Immutable/Private/Immutable/ImmutableBlueprintLibrary.cpp deleted file mode 100644 index 7fa7ded..0000000 --- a/Source/Immutable/Private/Immutable/ImmutableBlueprintLibrary.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "Immutable/ImmutableBlueprintLibrary.h" - - -void UImmutableBlueprintLibrary::BreakFZkEvmTransactionReceiptLog(FZkEvmTransactionReceiptLog Log, FString& Address, FString& Data, - FString& BlockNumber, FString& TransactionHash, FString& TransactionIndex, FString& BlockHash, FString& LogIndex, bool& Removed, - TArray& Topics) -{ - Address = Log.address; - Data = Log.data; - BlockNumber = Log.blockNumber; - TransactionHash = Log.transactionHash; - TransactionIndex = Log.transactionIndex; - BlockHash = Log.blockHash; - LogIndex = Log.logIndex; - Removed = Log.removed; - Topics = Log.topics; -} - -void UImmutableBlueprintLibrary::BreakZkEvmTransactionReceipt(FZkEvmTransactionReceipt Receipt, FString& BlockHash, FString& BlockNumber, - FString& ContractAddress, FString& CumulativeGasUsed, FString& EffectiveGasPrice, FString& From, FString& GasUsed, FString& LogsBloom, - FString& Status, FString& To, FString& TransactionHash, FString& TransactionIndex, FString& Type, TArray& Logs) -{ - BlockHash = Receipt.blockHash; - BlockNumber = Receipt.blockNumber; - ContractAddress = Receipt.contractAddress; - CumulativeGasUsed = Receipt.cumulativeGasUsed; - EffectiveGasPrice = Receipt.effectiveGasPrice; - From = Receipt.from; - GasUsed = Receipt.gasUsed; - LogsBloom = Receipt.logsBloom; - Status = Receipt.status; - To = Receipt.to; - TransactionHash = Receipt.transactionHash; - TransactionIndex = Receipt.transactionIndex; - Type = Receipt.type; - Logs = Receipt.logs; -} diff --git a/Source/Immutable/Public/Immutable/ImmutableBlueprintLibrary.h b/Source/Immutable/Public/Immutable/ImmutableBlueprintLibrary.h deleted file mode 100644 index 05254d7..0000000 --- a/Source/Immutable/Public/Immutable/ImmutableBlueprintLibrary.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include "Kismet/BlueprintFunctionLibrary.h" -#include "Immutable/ImmutableDataTypes.h" - -#include "ImmutableBlueprintLibrary.generated.h" - - -UCLASS() -class IMMUTABLE_API UImmutableBlueprintLibrary : public UBlueprintFunctionLibrary -{ - GENERATED_BODY() - -public: - - UFUNCTION(BlueprintPure, Category = "Immutable", meta = (NativeBreakFunc)) - static void BreakFZkEvmTransactionReceiptLog(FZkEvmTransactionReceiptLog Log, FString& Address, FString& Data, FString& BlockNumber, FString& TransactionHash, FString& TransactionIndex, FString& BlockHash, FString& LogIndex, bool& Removed, TArray& Topics); - - UFUNCTION(BlueprintPure, Category = "Immutable", meta = (NativeBreakFunc)) - static void BreakZkEvmTransactionReceipt(FZkEvmTransactionReceipt Receipt, FString& BlockHash, FString& BlockNumber, FString& ContractAddress, FString& CumulativeGasUsed, FString& EffectiveGasPrice, FString& From, FString& GasUsed, FString& LogsBloom, FString& Status, FString& To, FString& TransactionHash, FString& TransactionIndex, FString& Type, TArray& Logs); - -}; \ No newline at end of file diff --git a/Source/Immutable/Public/Immutable/ImmutableDataTypes.h b/Source/Immutable/Public/Immutable/ImmutableDataTypes.h index 16735bd..b9eba39 100644 --- a/Source/Immutable/Public/Immutable/ImmutableDataTypes.h +++ b/Source/Immutable/Public/Immutable/ImmutableDataTypes.h @@ -224,86 +224,98 @@ struct FNftTransferDetails FString tokenAddress; }; -USTRUCT(BlueprintType, meta = (HasNativeBreak = "/Script/Immutable.ImmutableBlueprintLibrary.BreakFZkEvmTransactionReceiptLog")) +USTRUCT(BlueprintType) struct IMMUTABLE_API FZkEvmTransactionReceiptLog { GENERATED_BODY() - UPROPERTY() - FString address; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString _type; - UPROPERTY() - TArray topics; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString address; - UPROPERTY() - FString data; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString blockHash; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString blockNumber; - UPROPERTY() - FString transactionHash; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString data; - UPROPERTY() - FString transactionIndex; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString index; - UPROPERTY() - FString blockHash; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + TArray topics; - UPROPERTY() - FString logIndex; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString transactionHash; - UPROPERTY() - bool removed = false; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString transactionIndex; }; -USTRUCT(BlueprintType, meta = (HasNativeBreak = "/Script/Immutable.ImmutableBlueprintLibrary.BreakZkEvmTransactionReceipt")) +USTRUCT(BlueprintType) struct IMMUTABLE_API FZkEvmTransactionReceipt { GENERATED_BODY() - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString responseFor; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString requestId; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + bool success; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString blockHash; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString blockNumber; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString contractAddress; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString cumulativeGasUsed; - UPROPERTY() - FString effectiveGasPrice; - - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString from; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString gasPrice; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString blobGasUsed; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString blobGasPrice; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString gasUsed; - UPROPERTY(BlueprintReadOnly) + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString hash; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FString index; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) TArray logs; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString logsBloom; // Either 1 (success) or 0 (failure) encoded as a hexadecimal. - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString status; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) FString to; - - UPROPERTY() - FString transactionHash; - - UPROPERTY() - FString transactionIndex; - - UPROPERTY() - FString type; }; /** @@ -342,4 +354,4 @@ class IMMUTABLE_API UImmutablePKCEData : public UObject * Handle for the ticker delegate that periodically checks for incoming deep links */ FTSTicker::FDelegateHandle TickDelegateHandle; -}; \ No newline at end of file +};