mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 20:18:24 +00:00
16 lines
505 B
C#
16 lines
505 B
C#
using NftFaucet.Models.Enums;
|
|
|
|
namespace NftFaucet.Options;
|
|
|
|
public class Settings
|
|
{
|
|
public EthereumNetworkOptions[] EthereumNetworks { get; set; }
|
|
public IpfsGatewayOptions[] IpfsGateways { get; set; }
|
|
|
|
public EthereumNetworkOptions GetEthereumNetworkOptions(EthereumNetwork network)
|
|
=> EthereumNetworks.FirstOrDefault(x => x.Id == network);
|
|
|
|
public IpfsGatewayOptions GetIpfsGatewayOptions(IpfsGatewayType gateway)
|
|
=> IpfsGateways.FirstOrDefault(x => x.Id == gateway);
|
|
}
|