def common_options(func):
    """A decorator that combines commonly appearing @click.option decorators."""
    @click.option(
        '--private-key',
        required=True,
        help='Path to a private key store.',
    )
    @click.option(
        '--rpc-provider',
        default='http://127.0.0.1:8545',
        help='Address of the Ethereum RPC provider',
    )
    @click.option(
        '--wait',
        default=300,
        help='Max tx wait time in s.',
    )
    @click.option(
        '--gas-price',
        default=5,
        type=int,
        help='Gas price to use in gwei',
    )
    @click.option(
        '--gas-limit',
        default=5_500_000,
    )
    @click.option(
        '--contracts-version',
        default=None,
        help='Contracts version to verify. Current version will be used by default.',
    )
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        return func(*args, **kwargs)
    return wrapper
def common_options ( func ) : @ click . option ( '--private-key' , required = True , help = 'Path to a private key store.' , ) @ click . option ( '--rpc-provider' , default = 'http://127.0.0.1:8545' , help = 'Address of the Ethereum RPC provider' , ) @ click . option ( '--wait' , default = 300 , help = 'Max tx wait time in s.' , ) @ click . option ( '--gas-price' , default = 5 , type = int , help = 'Gas price to use in gwei' , ) @ click . option ( '--gas-limit' , default = 5_500_000 , ) @ click . option ( '--contracts-version' , default = None , help = 'Contracts version to verify. Current version will be used by default.' , ) @ functools . wraps ( func ) def wrapper ( * args , ** kwargs ) : return func ( * args , ** kwargs ) return wrapper
A decorator that combines commonly appearing @click.option decorators.