def deploy_token(
    deploy_client: JSONRPCClient,
    contract_manager: ContractManager,
    initial_amount: typing.TokenAmount,
    decimals: int,
    token_name: str,
    token_symbol: str,
) -> ContractProxy:
    token_address = deploy_contract_web3(
        contract_name=CONTRACT_HUMAN_STANDARD_TOKEN,
        deploy_client=deploy_client,
        contract_manager=contract_manager,
        constructor_arguments=(initial_amount, decimals, token_name, token_symbol),
    )

    contract_abi = contract_manager.get_contract_abi(CONTRACT_HUMAN_STANDARD_TOKEN)
    return deploy_client.new_contract_proxy(
        contract_interface=contract_abi, contract_address=token_address
    )
def _wait_for_license_pool_state_to_activate(self, pool):
        error_values = ['EXPIRED', 'FAILED']
        # Wait no more than 5 minutes
        for x in range(1, 30):
            pool.refresh()
            if pool.state == 'LICENSED':
                return True
            elif pool.state == 'WAITING_FOR_EULA_ACCEPTANCE':
                pool.modify(
                    eulaText=pool.eulaText,
                    state='ACCEPTED_EULA'
                )
            elif pool.state in error_values:
                raise F5ModuleError(pool.errorText)
            time.sleep(10)