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