From df911f2373587a58b80321ba9c7236854edd287f Mon Sep 17 00:00:00 2001 From: constwz Date: Tue, 7 Nov 2023 11:36:32 +0800 Subject: [PATCH] feat:modify term --- next.config.mjs | 1 + package.json | 3 - src/components/common/Footer/index.tsx | 3 - src/components/terms/index.tsx | 767 +++++------------- .../tx/SignOrExecuteForm/SignForm.tsx | 2 +- 5 files changed, 202 insertions(+), 574 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 5e568cd377..edfb5e4ca2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -30,6 +30,7 @@ const nextConfig = { productionBrowserSourceMaps: true, eslint: { dirs: ['src'], + ignoreDuringBuilds: true, }, modularizeImports: { '@mui/material': { diff --git a/package.json b/package.json index df405b87db..3fb7f0949b 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,6 @@ "engines": { "node": ">=16" }, - "pre-commit": [ - "lint" - ], "resolutions": { "@web3-onboard/trezor/**/protobufjs": "^7.2.4" }, diff --git a/src/components/common/Footer/index.tsx b/src/components/common/Footer/index.tsx index 0ec7782dd8..da95026fd9 100644 --- a/src/components/common/Footer/index.tsx +++ b/src/components/common/Footer/index.tsx @@ -51,9 +51,6 @@ const Footer = (): ReactElement | null => {
  • Terms
  • -
  • - Privacy -
  • Licenses
  • diff --git a/src/components/terms/index.tsx b/src/components/terms/index.tsx index 319898697b..b4f86eddb7 100644 --- a/src/components/terms/index.tsx +++ b/src/components/terms/index.tsx @@ -1,575 +1,208 @@ -import { Typography } from '@mui/material' -import Link from 'next/link' -import MUILink from '@mui/material/Link' -import { AppRoutes } from '@/config/routes' -import { DISCORD_URL, HELP_CENTER_URL, TWITTER_URL } from '@/config/constants' +var Wallet = "Wallet" const SafeTerms = () => { return ( -
    - - Terms and Conditions - -

    Last updated: May, 2023

    -

    1. What is the scope of the Terms?

    -
      -
    1. - These Terms and Conditions (“Terms”) become part of any contract (“Agreement”) between - you (“you”, “yours” or “User”) and Core Contributors GmbH - (“CC”, “we”, “our” or “us”) provided we made these Terms - accessible to you prior to entering into the Agreement and you consent to these Terms. We are a limited - liability company registered with the commercial register of Berlin Charlottenburg under company number HRB - 240421 B, with its registered office at the ℅ Full Node, Skalitzer Str. 85-86, 10997 Berlin, Germany. You - can contact us by writing to info@cc0x.dev. -
    2. -
    3. - The Agreement is concluded by using the Mobile App, Web App and/or Browser Extension subject to these - Terms. The use of our Services is only permitted to legal entities, partnerships and natural persons with - unlimited legal capacity. In particular, minors are prohibited from using our Services. -
    4. -
    5. - The application of your general terms and conditions is excluded. Your deviating, conflicting or supplementary - general terms and conditions shall only become part of the Agreement if and to the extent that CC has - expressly agreed to their application in writing. This consent requirement shall apply in any case, even if - for example CC, being aware of your general terms and conditions, accepts payments by the contractual partner - without reservations. -
    6. -
    7. - We reserve the right to change these Terms at any time and without giving reasons, while considering and - weighing your interests. The new Terms will be communicated to you in advance. They are considered as agreed - upon if you do not object to their validity within 14 days after receipt of the notification. We will - separately inform you about the essential changes, the possibility to object, the deadline and the - consequences of inactivity. If you object, the current version of the Terms remains applicable. Our right to - terminate the contract according to Clause 8 remains unaffected. -
    8. -
    -

    2. What do some of the capitalized terms mean in the Agreement?

    -
      -
    1. - “Blockchain” means a mathematically secured consensus ledger such as the Ethereum Virtual Machine, - an Ethereum Virtual Machine compatible validation mechanism, or other decentralized validation mechanisms. -
    2. -
    3. - “Transaction” means a change to the data set through a new entry in the continuous Blockchain. -
    4. -
    5. - “Smart Contract” means a piece of source code deployed as an application on the Blockchain which - can be executed, including self-execution of Transactions as well as execution triggered by 3rd parties. -
    6. -
    7. - “Token” means a digital asset transferred in a Transaction, including ETH, ERC20, ERC721 and - ERC1155 tokens. -
    8. -
    9. - “Wallet” means a cryptographic storage solution permitting you to store cryptographic assets by - correlation of a (i) Public Key and (ii) a Private Key, or a Smart Contract to receive, manage and send - Tokens. -
    10. -
    11. - “Recovery Phrase” means a series of secret words used to generate one or more Private Keys and - derived Public Keys. -
    12. -
    13. - “Public Key” means a unique sequence of numbers and letters within the Blockchain to distinguish - the network participants from each other. -
    14. -
    15. - “Private Key” means a unique sequence of numbers and/or letters required to initiate a Blockchain - Transaction and should only be known by the legal owner of the Wallet. -
    16. -
    -

    3. What are the Services offered?

    -

    - Our services (“Services”) primarily consist of enabling users to create their Safe Accounts and - ongoing interaction with it on the Blockchain. -

    -
      -
    1. “Safe Account”
    2. -
    -

    - A Safe Account is a modular, self-custodial (i.e. not supervised by us) smart contract-based wallet not provided - by CC. Safe Accounts are{' '} - - - open-source - - -  released under LGPL-3.0. -

    -

    - Smart contract wallet means, unlike a standard private key Wallet, that access control for authorizing any - Transaction is defined in code. An example are multi-signature wallets which require that any Transaction must - be signed by a minimum number of signing wallets whereby the specifics of the requirements to authorize a - Transaction can be configured in code.{' '} -

    -

    - Owners need to connect a signing wallet with a Safe Account. Safe Accounts are compatible inter alia with - standard private key Wallets such as hardware wallets, browser extension wallets and mobile wallets that support - WalletConnect. -

    -
      -
    1. “Safe App”
    2. -
    -

    - You may access Safe Accounts using the {'BNB Safe{Wallet}'} web app, mobile app for iOS and android, or the - browser extension (each a “Safe App”). The Safe App may be used to manage your personal digital - assets on Ethereum and other common EVM chains when you connect a Safe Account with third-party services - (as defined below). The Safe App provides certain features that may be amended from time to time.{' '} -

    -
      -
    1. “Third-Party Safe Apps”
    2. -
    -

    - The Safe App allows you to connect Safe Accounts to third-party decentralized applications - (“Third-Party Safe Apps”) and use third-party services such as from the decentralized - finance sector, DAO Tools or services related to NFTs (“Third-Party Services"). The - Third-Party Safe Apps are integrated in the user interface of the Safe App via inline framing. The provider - of the Third-Party Safe App and related Third-Party Service is responsible for the operation of the service - and the correctness, completeness and actuality of any information provided therein. We make a pre-selection of - Third-Party Safe Apps that we show in the Safe App. However, we only perform a rough triage in advance for - obvious problems and functionality in terms of loading time and resolution capability of the transactions. - Accordingly, in the event of any (technical) issues concerning the Third-Party Services, the user must only - contact the respective service provider directly. The terms of service, if any, shall be governed by the - applicable contractual provisions between the User and the respective provider of the Third-Party Service. - Accordingly, we are not liable in the event of a breach of contract, damage or loss related to the use of such - Third-Party Service. -

    -

    4. What do the Services not consist of?

    -

    Our Services do not consist of:

    -
      -
    1. - activity regulated by the Federal Financial Supervisory Authority (BaFin) or any other regulatory agency in - any jurisdiction; -
    2. -
    3. coverage underwritten by any regulatory agency’s compensation scheme;
    4. -
    5. - custody of your Recovery Phrase, Private Keys, Tokens or the ability to remove or freeze your Tokens, i.e. a - Safe Account is a self-custodial wallet; -
    6. -
    7. the storage or transmission of fiat currencies;
    8. -
    9. - back-up services to recover your Recovery Phrase or Private Keys, for whose safekeeping you are solely - responsible; CC has no means to recover your access to your Tokens, when you lose access to your Safe Account; -
    10. -
    11. - any form of legal, financial, investment, accounting, tax or other professional advice regarding Transactions - and their suitability to you;{' '} -
    12. -
    13. - the responsibility to monitor authorized Transactions or to check the correctness or completeness of - Transactions before you are authorizing them. -
    14. -
    -

    5. What do you need to know about Third-Party Services?

    -
      -
    1. - We provide you the possibility to interact with your Safe Account through Third-Party Services. Any - activities you engage in with, or services you receive from a third party is between you and that third party - directly. The conditions of service provisions, if any, shall be governed by the applicable contractual - provisions between you and the respective provider of the Third-Party Service.{' '} -
    2. -
    3. - The Services rely in part on third-party and open-source software, including the Blockchain, and the continued - development and support by third parties. There is no assurance or guarantee that those third parties will - maintain their support of their software or that open-source software will continue to be maintained. This may - have a material adverse effect on the Services. -
    4. -
    5. This means specifically:
    6. -
    -
    +
      +
    1. We shall not be liable or responsible to you, or be deemed to have defaulted under or breached this Agreement, for any failure or delay in the provision of the Services or the performance of this Agreement, if and to the extent such failure or delay is caused by or results from or is connected to acts beyond our reasonable control, including the occurrence of a Force Majeure Event.
    2. +
    +

    16. Who is responsible for your tax liabilities?

    +

    You are solely responsible to determine if your use of the Services have tax implications, in particular income tax and capital gains tax relating to the purchase or sale of Tokens, for you. By using the Services you agree not to hold us liable for any tax liability associated with or arising from the operation of the Services or any other action or transaction related thereto.

    +

    17. What if a court disagrees with part of this Agreement?

    +

    Should individual provisions of these Terms be or become invalid or unenforceable in whole or in part, this shall not affect the validity of the remaining provisions. The invalid or unenforceable provision shall be replaced by the statutory provision. If there is no statutory provision or if the statutory provision would lead to an unacceptable result, the parties shall enter negotiations to replace the invalid or unenforceable provision with a valid provision that comes as close as possible to the economic purpose of the invalid or unenforceable provision.

    +

    18. What if we do not enforce certain rights under this Agreement?

    +

    Our failure to exercise or enforce any right or remedy provided under this Agreement or by law shall not constitute a waiver of that or any other right or remedy, nor shall it prevent or restrict any further exercise of that or any other right or remedy.

    +

    19. Do third parties have rights?

    +

    Unless it expressly states otherwise, this Agreement does not give rise to any third-party rights, which may be enforced against us.

    +

    20. Can this Agreement be assigned?

    +
      +
    1. We are entitled to transfer our rights and obligations under the Agreement in whole or in part to third parties with a notice period of two weeks. In this case, you have the right to terminate the Agreement without notice.
    2. +
    3. You shall not be entitled to assign this Agreement to any third party without our express prior written consent.
    4. +
    +

    21. Which Clauses of this Agreement survive termination?

    +

    All covenants, agreements, representations and warranties made in this Agreement shall survive your acceptance of this Agreement and its termination.

    +

    22. Data Protection

    +

    We inform you about our processing of personal data, including the disclosure to third parties and your rights as an affected party, in the Privacy Notice.

    +

    23. Which laws apply to the Agreement?

    +

    The Agreement including these Terms shall be governed by the laws of Hong Kong. The application of the UN Convention on Contracts for the International Sale of Goods is excluded.

    +

    24. How can you get support for Safe Accounts and tell us about any problems?

    +

    If you want to learn more about Safe Accounts or the Service or have any problems using them or have any complaints please get in touch via any of the following channels:

    +
      +
    1. Forum: Build N Build
    2. +
    3. Twitter: https://twitter.com/BNBCHAIN
    4. +
    5. Telegram: https://t.me/BNBchaincommunity
    6. +
    7. Engineering Discord: https://discord.com/invite/bnbchain 
    8. +
    +

    25. Where is the place of legal proceedings?

    +

    PLEASE READ THIS SECTION CAREFULLY AS IT MAY SIGNIFICANTLY AFFECT YOUR LEGAL RIGHTS, INCLUDING YOUR RIGHT TO FILE A LAWSUIT IN COURT. THIS SECTION 25 REQUIRES YOU TO SUBMIT TO BINDING ARBITRATION OF ANY AND ALL DISPUTES THAT YOU HAVE AGAINST US ARISING OUT OF OR RELATED TO THESE TERMS OR ANY USE OF THE WEBSiTE OR RELATED SERVICES AND LIMITS THE MANNER IN WHICH YOU CAN SEEK RELIEF FROM US.

    +

    +

    +

    25.1 All matters relating to the Website and any dispute, controversy, difference or claim arising out of or relating to these Terms, including the existence, validity, interpretation or breach thereof or any dispute regarding non-contractual obligations arising out of or relating to it shall be referred to and finally resolved by arbitration administered by the Hong Kong International Arbitration Centre (HKIAC) under the HKIAC Administered Arbitration Rules in force when the Notice of Arbitration is submitted.

    +

    +

    25.2 The law of this arbitration clause shall be Hong Kong law. The seat of arbitration shall be in Hong Kong. Any arbitration will be conducted in the English language.

    +

    +

    25.3 The parties agree that the arbitration shall be kept confidential. The existence of the arbitration, any nonpublic information provided in the arbitration, and any submissions, orders or awards made in the arbitration shall not be disclosed to third party except the tribunal, the HKIAC, the parties, their counsels, experts, witnesses, accountants and auditors, insurers and reinsurers, and any other persons necessary to the conduct of the arbitration. Notwithstanding the foregoing, a party may disclose such confidential information to the extent that disclosure is required to fulfill a legal duty, protect or pursue a legal right, or enforce or challenge an award in bona fide legal proceedings. This confidentiality provision shall survive termination of these Terms and conclusion or stay of any arbitration brought pursuant to these Terms.

    +

    +

    +

    26. Is this all?

    +

    These Terms constitute the entire agreement between you and us in relation to the Agreement’s subject matter. It replaces and extinguishes any and all prior agreements, draft agreements, arrangements, warranties, statements, assurances, representations and undertakings of any nature made by, or on behalf of either of us, whether oral or written, public or private, in relation to that subject matter.

    + ) } diff --git a/src/components/tx/SignOrExecuteForm/SignForm.tsx b/src/components/tx/SignOrExecuteForm/SignForm.tsx index a8e270202e..7f9b48675f 100644 --- a/src/components/tx/SignOrExecuteForm/SignForm.tsx +++ b/src/components/tx/SignOrExecuteForm/SignForm.tsx @@ -75,7 +75,7 @@ const SignForm = ({ } const cannotPropose = !isOwner - const submitDisabled = !isSubmittable || disableSubmit || cannotPropose + const submitDisabled = !safeTx || !isSubmittable || disableSubmit || cannotPropose return (