@@ -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,24 +48,25 @@ 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
*/
56
55
UFUNCTION (BlueprintPure, Category = " Immutable" )
57
56
bool GetApiKey (EImtblEnvironment Environment, FString& ApiKey) const ;
58
57
59
58
/* *
60
- * Generates a path link for the swap flow.
59
+ * Generates a 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 generated link.
62
+ * @param Environment [In] The environment for which the path is being computed for (e.g. sandbox, production).
63
+ * @param ToTokenAddress [Optional] The token address of the token being swapped from. Default value is an empty string.
64
+ * @param FromTokenAddress [Optional] The token address of the token being swapped to. Default value is an empty string.
65
+ *
66
+ * @return True if path was computed (False indicates link failed to compute).
67
67
*/
68
68
UFUNCTION (BlueprintCallable, BlueprintPure = " False" , Category = " Immutable" )
69
- bool ComputePath (EImtblEnvironment Environment, FString FromTokenAddress, FString ToTokenAddress, FString& ComputedPath ) const ;
69
+ bool ComputePath (FString& ComputedPath, EImtblEnvironment Environment, FString FromTokenAddress = TEXT ( " " ) , FString ToTokenAddress = TEXT ( " " ) ) const ;
70
70
71
71
public:
72
72
UPROPERTY (Config, EditDefaultsOnly, BlueprintReadOnly, Category = " Immutable" )
0 commit comments