diff --git a/silverback/_cli.py b/silverback/_cli.py index 02f59173..337b2300 100644 --- a/silverback/_cli.py +++ b/silverback/_cli.py @@ -309,15 +309,16 @@ def pay(): @click.option( "-t", "--tier", - default=ClusterTier.PERSONAL.name.capitalize(), + default=ClusterTier.STANDARD.name.capitalize(), metavar="NAME", type=click.Choice( [ - ClusterTier.PERSONAL.name.capitalize(), - ClusterTier.PROFESSIONAL.name.capitalize(), - ] + ClusterTier.STANDARD.name.capitalize(), + ClusterTier.PREMIUM.name.capitalize(), + ], + case_sensitive=False, ), - help="Named set of options to use for cluster as a base (Defaults to Personal)", + help="Named set of options to use for cluster as a base (Defaults to Standard)", ) @click.option( "-c", @@ -420,7 +421,8 @@ def create_payment_stream( assert token_amount # mypy happy click.echo(yaml.safe_dump(dict(configuration=configuration.settings_display_dict()))) - click.echo(f"duration: {stream_time}\n") + click.echo(f"duration: {stream_time}") + click.echo(f"payment: {token_amount / (10 ** token.decimals())} {token.symbol()}\n") if not click.confirm( f"Do you want to use this configuration to fund Cluster '{cluster_path}'?" diff --git a/silverback/cluster/types.py b/silverback/cluster/types.py index 4f054d52..3f5b6452 100644 --- a/silverback/cluster/types.py +++ b/silverback/cluster/types.py @@ -207,7 +207,7 @@ def validate_product_code( class ClusterTier(enum.IntEnum): """Suggestions for different tier configurations""" - PERSONAL = ClusterConfiguration( + STANDARD = ClusterConfiguration( cpu="0.25 vCPU", memory="512 MiB", networks=3, @@ -215,7 +215,7 @@ class ClusterTier(enum.IntEnum): bandwidth="512 B/sec", # 1.236 GB/mo duration=3, # months ).encode() - PROFESSIONAL = ClusterConfiguration( + PREMIUM = ClusterConfiguration( cpu="1 vCPU", memory="2 GB", networks=10,