From c84872d6d62a19e1ddcba06ffd67550490e78aa5 Mon Sep 17 00:00:00 2001 From: Nikita Zasimuk Date: Mon, 16 Jan 2023 17:35:50 +0300 Subject: [PATCH] docs: add a missing agreement to the appMetadata --- docs/src/routes/docs/[...3]modules/core.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/src/routes/docs/[...3]modules/core.md b/docs/src/routes/docs/[...3]modules/core.md index 87c80b338..9ca88dac5 100644 --- a/docs/src/routes/docs/[...3]modules/core.md +++ b/docs/src/routes/docs/[...3]modules/core.md @@ -113,6 +113,17 @@ type AppMetadata = { explore?: string // if your app only supports injected wallets and when no injected wallets detected, recommend the user to install some recommendedInjectedWallets?: RecommendedInjectedWallets[] + // allows for dapps to require users to agree to TOS and privacy policy before connecting a wallet + agreement?: TermsOfServiceAgreementOptions | null +} + +type TermsOfServiceAgreementOptions = { + // user aggrees with exact version of terms and privacy policy + version: string + // url that points to the Terms & Conditions of the dapp + termsUrl?: string + // url that points to the Privacy policy of the dapp + privacyUrl?: string } type RecommendedInjectedWallets = {