Skip to content

Commit bcbe22e

Browse files
committed
docs: add a missing agreement to the appMetadata
1 parent e43b682 commit bcbe22e

File tree

1 file changed

+11
-0
lines changed
  • docs/src/routes/docs/[...3]modules

1 file changed

+11
-0
lines changed

docs/src/routes/docs/[...3]modules/core.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ type AppMetadata = {
113113
explore?: string
114114
// if your app only supports injected wallets and when no injected wallets detected, recommend the user to install some
115115
recommendedInjectedWallets?: RecommendedInjectedWallets[]
116+
// allows for dapps to require users to agree to TOS and privacy policy before connecting a wallet
117+
agreement?: TermsOfServiceAgreementOptions | null
118+
}
119+
120+
type TermsOfServiceAgreementOptions = {
121+
// user aggrees with exact version of terms and privacy policy
122+
version: string
123+
// url that points to the Terms & Conditions of the dapp
124+
termsUrl?: string
125+
// url that points to the Privacy policy of the dapp
126+
privacyUrl?: string
116127
}
117128

118129
type RecommendedInjectedWallets = {

0 commit comments

Comments
 (0)