@@ -29,8 +29,7 @@ struct FImtblSwapRequestQueryParams
29
29
/* *
30
30
* Functionality to generate swap requests
31
31
*/
32
- // UCLASS(BlueprintType, Config = "Immutable", DefaultConfig)
33
- UCLASS (BlueprintType, Config = " Immutable" )
32
+ UCLASS (BlueprintType, Config = " Immutable" , DefaultConfig)
34
33
class IMMUTABLE_API UImtblSwapRequest : public UObject
35
34
{
36
35
GENERATED_BODY ()
@@ -39,7 +38,7 @@ class IMMUTABLE_API UImtblSwapRequest : public UObject
39
38
/* *
40
39
* Finds the base url associated with the environment.
41
40
*
42
- * @param Environment The environment that will be used to look the value up.
41
+ * @param Environment The environment that will be used to look the value up. Only sandbox and production environment are supported.
43
42
* @param BaseUrl The base url associated with the key.
44
43
* @return True if an item was found (False indicates nothing in the map uses the provided environment).
45
44
*/
@@ -49,7 +48,7 @@ class IMMUTABLE_API UImtblSwapRequest : public UObject
49
48
/* *
50
49
* Finds the api key associated with the provided key.
51
50
*
52
- * @param Environment The environment that will be used to look the value up.
51
+ * @param Environment The environment that will be used to look the value up. Only sandbox and production environment are supported.
53
52
* @param ApiKey The api key associated with the key.
54
53
* @return True if an item was found (False indicates nothing in the map uses the provided environment).
55
54
*/
@@ -59,14 +58,14 @@ class IMMUTABLE_API UImtblSwapRequest : public UObject
59
58
/* *
60
59
* Generates a path link for the swap flow.
61
60
*
62
- * @param Environment The environment that will be used to compute the path .
63
- * @param ToTokenAddress The address of the token being swapped from. Also known as the token contract address .
64
- * @param FromTokenAddress The address of the token being swapped to . Also known as the token contract address.
65
- * @param ComputedPath [OUT ] The address of the token being swapped to. Also known as the token contract address.
66
- * @return True if path was computed (False indicates path failed to compute).
61
+ * @param ComputedPath [Out] The address of the token being swapped to. Also known as the token contract address .
62
+ * @param Environment The environment that will be used to compute the path. Only sandbox and production environment are supported .
63
+ * @param ToTokenAddress [Optional] The address of the token being swapped from (default value is empty) . Also known as the token contract address.
64
+ * @param FromTokenAddress [Optional ] The address of the token being swapped to (default value is empty) . Also known as the token contract address.
65
+ * @return True if path was computed (False indicates path failed to compute).
67
66
*/
68
67
UFUNCTION (BlueprintCallable, BlueprintPure = " False" , Category = " Immutable" )
69
- bool ComputePath (EImtblEnvironment Environment, FString FromTokenAddress, FString ToTokenAddress, FString& ComputedPath ) const ;
68
+ bool ComputePath (FString& ComputedPath, EImtblEnvironment Environment, FString FromTokenAddress = TEXT ( " " ) , FString ToTokenAddress = TEXT ( " " ) ) const ;
70
69
71
70
public:
72
71
UPROPERTY (Config, EditDefaultsOnly, BlueprintReadOnly, Category = " Immutable" )
0 commit comments