Skip to content

Commit

Permalink
Merge pull request #169 from immutable/fix/dx-3552
Browse files Browse the repository at this point in the history
fix: ensure queryparams are set to their correct default values #3552
  • Loading branch information
ImmutableJeffrey authored Jan 29, 2025
2 parents bc8fff2 + ed9e3dc commit dd5aeae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ struct IMMUTABLEMARKETPLACE_API FImmutableBridgeQueryParams
GENERATED_BODY()

public:
/** The ID of the source blockchain (default is null). */
/** The ID of the source blockchain (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString FromChainID;

/** The address of the token being moved from (default is null). */
/** The address of the token being moved from (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString FromTokenAddress;

/** The ID of the destination blockchain (default is null). */
/** The ID of the destination blockchain (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString ToChainID;

/** The address of the token being moved to (default is null). */
/** The address of the token being moved to (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString ToTokenAddress;
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ struct IMMUTABLEMARKETPLACE_API FImmutableOnRampQueryParams
{
GENERATED_BODY()

public:
/** The cryptocurrency to purchase (default: "IMX"). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString DefaultCryptoCurrency;
FString DefaultCryptoCurrency = TEXT("IMX");

/** The amount of fiat currency to spend when purchasing cryptocurrency (default: "50"). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString DefaultFiatAmount;
FString DefaultFiatAmount = TEXT("50");

/** The fiat currency to use (default: "USD"). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString DefaultFiatCurrency;
FString DefaultFiatCurrency = TEXT("USD");

/** A comma-separated list of available cryptocurrencies for purchase (default: "imx,eth,usdc"). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString CryptoCurrencyList;
FString CryptoCurrencyList = TEXT("imx,eth,usdc");
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ struct IMMUTABLEMARKETPLACE_API FImmutableSwapQueryParams
GENERATED_BODY()

public:
/** The address of the token being swapped from (default is null). */
/** The address of the token being swapped from (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString FromTokenAddress;

/** The address of the token being swapped to (default is null). */
/** The address of the token being swapped to (default: ""). */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Immutable|Marketplace")
FString ToTokenAddress;
};

0 comments on commit dd5aeae

Please sign in to comment.