diff --git a/Runtime/Scripts/Configs/DataProviderConfig.cs b/Runtime/Scripts/Configs/DataProviderConfig.cs index 40ad8c1..b276608 100644 --- a/Runtime/Scripts/Configs/DataProviderConfig.cs +++ b/Runtime/Scripts/Configs/DataProviderConfig.cs @@ -7,7 +7,7 @@ namespace Tezos.Configs public class DataProviderConfig: ScriptableObject { [Tooltip("Select the network to use for querying data.")] - [SerializeField] private NetworkType network = NetworkType.ghostnet; + [SerializeField] public NetworkType Network = NetworkType.ghostnet; // The URL format string for the base API endpoint. Use {network} as a placeholder for the network type. // Example format: "https://api.{network}.tzkt.io/v1/" @@ -21,20 +21,8 @@ public class DataProviderConfig: ScriptableObject [Tooltip("URL to the documentation of the data provider. (Optional)")] [SerializeField] private string documentationUrl = "https://api.tzkt.io/"; - public string BaseUrl - { - get => baseUrlFormat.Replace("{network}", network.ToString()); - } - - public string DocumentationUrl - { - get => documentationUrl; - } - - public NetworkType Network - { - get => network; - } + public string BaseUrl => baseUrlFormat.Replace("{network}", Network.ToString()); + public string DocumentationUrl => documentationUrl; public int RequestTimeoutSeconds { diff --git a/Runtime/Scripts/Configs/TezosConfig.cs b/Runtime/Scripts/Configs/TezosConfig.cs index 8271b2f..afbc26d 100644 --- a/Runtime/Scripts/Configs/TezosConfig.cs +++ b/Runtime/Scripts/Configs/TezosConfig.cs @@ -7,7 +7,7 @@ namespace Tezos.Configs public class TezosConfig: ScriptableObject { [Tooltip("Select the network to use for chain interactions.")] - [SerializeField] private NetworkType network = NetworkType.ghostnet; + [SerializeField] public NetworkType Network = NetworkType.ghostnet; [Tooltip("Web client address for Kukai Connector.")] [SerializeField] private string kukaiWebClientAddress; @@ -33,29 +33,12 @@ public DataProviderConfig DataProvider set => dataProviderConfig = value; } - public string KukaiWebClientAddress - { - get => kukaiWebClientAddress; - } + public string KukaiWebClientAddress => kukaiWebClientAddress; - public NetworkType Network - { - get => network; - } + public string PinataApiKey => pinataApiKey; - public string PinataApiKey - { - get => pinataApiKey; - } + public int RequestTimeoutSeconds => requestTimeoutSeconds; - public int RequestTimeoutSeconds - { - get => requestTimeoutSeconds; - } - - public string Rpc - { - get => rpcUrlFormat.Replace("{network}", network.ToString()); - } + public string Rpc => rpcUrlFormat.Replace("{network}", Network.ToString()); } }