Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
101 changes: 0 additions & 101 deletions .github/workflows/update-zkevm-api-package.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Immutable.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
"Name": "ImmutableEditor",
"Type": "Editor",
"LoadingPhase": "Default"
},
{
"Name": "ImmutablezkEVMAPI",
"Type": "Runtime",
"LoadingPhase": "Default"
}
],
"Plugins": [
Expand Down
87 changes: 1 addition & 86 deletions Source/Immutable/Public/Immutable/ApplicationConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,14 @@
/**
* @class UApplicationConfig
* @brief Configuration settings for Passport and various APIs.
* @details This class stores configuration settings such as URLs, chain names, contract addresses,
* client IDs, and environment settings for the zkEVM API, Orderbook API, and Passport.
* @details This class stores configuration settings such as client IDs and environment settings for Passport.
*/
UCLASS(Abstract, Blueprintable, ClassGroup = Immutable)
class IMMUTABLE_API UApplicationConfig : public UObject
{
GENERATED_BODY()

public:
/**
* Retrieves URL for the zkEVM API.
*
* @return A constant reference to an FString containing the name of the chain.
*/
const FString& GetzkEVMAPIURL()
{
return zkEVMAPIURL;
}

/**
* Retrieves the name of the chain used to pass to the zkEVM API.
*
* @return A constant reference to an FString containing the name of the chain.
*/
const FString& GetzkEVMAPIChainName()
{
return zkEVMAPIChainName;
}

/**
* Retrieves URL for the Orderbook API.
*
* @return A constant reference to an FString containing the name of the chain.
*/
const FString& GetOrderbookAPIURL()
{
return OrederbookAPIURL;
}

/**
* Retrieves the name of the chain used to pass to the Orderbook API.
*
* @return A constant reference to an FString containing the name of the chain.
*/
const FString& GetOrderbookAPIChainName()
{
return OrderbookAPIChainName;
}

/**
* @brief Retrieves the cryptocurrency contract address associated with the user's wallet balance.
*
* @return A string representing the contract address.
*/
const FString& GetTokenBalanceContractAddress()
{
return TokenBalanceContractAddress;
}

/**
* Retrieves the list of NFT contracts used in the APIs' queries.
*
* @return A constant reference to an array of strings representing the contracts.
*/
const TArray<FString>& GetNFTContractAddresses()
{
return NFTContractAddress;
}

/**
* Retrieves the Client ID used for Passport initialization.
*
Expand Down Expand Up @@ -126,30 +65,6 @@ class IMMUTABLE_API UApplicationConfig : public UObject
}

protected:
/** The URL for the zkEVM API. */
UPROPERTY(EditDefaultsOnly, Category = "zkEVM API")
FString zkEVMAPIURL;

/** The name of the API chain used by the zkEVM API. */
UPROPERTY(EditDefaultsOnly, Category = "zkEVM API")
FString zkEVMAPIChainName;

/** The URL for the Orderbook API. */
UPROPERTY(EditDefaultsOnly, Category = "Orderbook API")
FString OrederbookAPIURL;

/** The name of the API chain used by Orderbook API. */
UPROPERTY(EditDefaultsOnly, Category = "Orderbook API")
FString OrderbookAPIChainName;

/** The address of the cryptocurrency contract in the blockchain. */
UPROPERTY(EditDefaultsOnly, Category = "Contracts")
FString TokenBalanceContractAddress;

/** An array of NFT contract addresses used for searching NFTs in the marketplace or displaying them in the player's inventory. */
UPROPERTY(EditDefaultsOnly, Category = "Contracts")
TArray<FString> NFTContractAddress;

/** Passport Client ID. */
UPROPERTY(EditDefaultsOnly, Category = "Passport")
FString ClientID;
Expand Down
23 changes: 0 additions & 23 deletions Source/ImmutablezkEVMAPI/.openapi-generator-ignore

This file was deleted.

Loading
Loading