Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 7b7991b

Browse files
authored
Merge pull request #261 from zallo-labs/OP-18-tos
Op 18 tos
2 parents 9960843 + 237c9b2 commit 7b7991b

7 files changed

+116
-26
lines changed

app/app.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const ENV = process.env;
1414
const vary = (value: string, f: (variant: string) => string = (v) => '.' + v) =>
1515
value + (ENV.APP_VARIANT ? f(ENV.APP_VARIANT) : '');
1616

17-
type ExternalUrl = `http:${string}`;
17+
type ExternalUrl = `https:${string}`;
1818

1919
export const CONFIG = {
2020
env: ENV.RELEASE_ENV === 'development' ? 'development' : 'production',
2121
sentryDsn: ENV.APP_SENTRY_DSN!,
2222
apiUrl: ENV.API_URL!,
2323
apiGqlWs: ENV.API_GQL_WS!,
24-
docsUrl: ENV.DOCS_URL!,
24+
docsUrl: ENV.DOCS_URL! as ExternalUrl,
2525
walletConnectProjectId: ENV.WALLET_CONNECT_PROJECT_ID!,
2626
aplitudeKey: ENV.AMPLITUDE_KEY!,
2727
metadata: {

app/src/app/onboard/user.tsx

+17-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { Link, useRouter } from 'expo-router';
1717
import { useMemo } from 'react';
1818
import { useForm } from 'react-hook-form';
1919
import { View } from 'react-native';
20+
import { Text } from 'react-native-paper';
2021
import { useLazyLoadQuery, useSubscription } from 'react-relay';
2122
import { graphql } from 'relay-runtime';
2223
import { z } from 'zod';
@@ -25,6 +26,7 @@ import { user_UserOnboardingMutation } from '~/api/__generated__/user_UserOnboar
2526
import { user_UserOnboardingQuery } from '~/api/__generated__/user_UserOnboardingQuery.graphql';
2627
import { user_UserOnboardingSubscription } from '~/api/__generated__/user_UserOnboardingSubscription.graphql';
2728
import { getDeviceModel } from '~/lib/device';
29+
import { TERMS_OF_SERVICE_HREF } from '../terms-of-service';
2830

2931
const Query = graphql`
3032
query user_UserOnboardingQuery {
@@ -117,6 +119,13 @@ function UserOnboarding() {
117119
<FormSubmitButton mode="outlined" control={control} onPress={next}>
118120
Continue
119121
</FormSubmitButton>
122+
123+
<Text variant="titleMedium" style={styles.tosText}>
124+
By continuing, you agree to our{' '}
125+
<Link href={TERMS_OF_SERVICE_HREF} style={styles.link}>
126+
Terms of Service
127+
</Link>
128+
</Text>
120129
</Actions>
121130
</OnboardMainPane>
122131

@@ -125,7 +134,7 @@ function UserOnboarding() {
125134
);
126135
}
127136

128-
const stylesheet = createStyles(() => ({
137+
const stylesheet = createStyles(({ colors }) => ({
129138
screen: {
130139
flex: 1,
131140
flexDirection: 'row',
@@ -142,6 +151,13 @@ const stylesheet = createStyles(() => ({
142151
marginHorizontal: 16,
143152
marginTop: 16,
144153
},
154+
tosText: {
155+
marginVertical: 8,
156+
textAlign: 'center',
157+
},
158+
link: {
159+
color: colors.tertiary,
160+
},
145161
}));
146162

147163
export default withSuspense(UserOnboarding, <ScreenSkeleton />);

app/src/app/privacy.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Redirect } from 'expo-router';
2+
import { CONFIG } from '~/util/config';
3+
4+
export const PRIVACY_POLICY_HREF = CONFIG.docsUrl + '/privacy';
5+
6+
export default function PrivacyPolicyScreen() {
7+
return <Redirect href={PRIVACY_POLICY_HREF} />;
8+
}

app/src/app/terms-of-service.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Redirect } from 'expo-router';
2+
import { CONFIG } from '~/util/config';
3+
4+
export const TERMS_OF_SERVICE_HREF = CONFIG.docsUrl + '/terms-of-service';
5+
6+
export default function TermsOfServiceScreen() {
7+
return <Redirect href={TERMS_OF_SERVICE_HREF} />;
8+
}

docs/docs/02-terms-of-service.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
categories:
3+
- Legal
4+
---
5+
6+
# Terms of Service
7+
8+
**Last Updated: July 16, 2024**
9+
10+
## 1. Introduction
11+
12+
These Terms of Service ("Terms") govern your access to and use of the Zallo Labs Pty Ltd ("us", "we", or "our") Services, including but not limited to our website (https://zallo.io), its subdomains, and our app.
13+
14+
By using our Services, you agree to be bound by the Terms and our [Privacy Policy](./03-privacy.md).
15+
16+
## 2. User responsibility and key management
17+
18+
Accounts are self-custodial, meaning that we do not collect or store your private keys, recovery phrases, and passwords (collectively, "Secret Keys").
19+
20+
**We are unable to assist in recovering your account if you lose access to your Secret Keys**.
21+
22+
You are solely responsible for:
23+
- Maintaining the confidentiality and security of your Secret Keys
24+
- All activities that occur under your account, including any loss of funds
25+
- Properly securing your account by means of security policies and procedures
26+
27+
## 3. Liability
28+
29+
To the fullest extent permitted by law, we are not liable for any losses, damages, or liabilities of any kind arising from or in connecting with:
30+
- Your use of our Services
31+
- Your violation of the Terms
32+
- Use of third-party services or products accessed through our Services
33+
- Any other circumstances beyond our reasonable control
34+
35+
## 4. Changes to the Terms
36+
37+
You will be notified of any changes to the Terms on our website or app.
38+
By continuing to use our Services after changes to the Terms, you accept the revised Terms.
39+
40+
## 5. Prohibited Uses
41+
42+
You may not use our Services for any purpose that is fraudulent, or otherwise violates any applicable law or regulation.
43+
44+
## 6. Suspension and discountinuation of Services
45+
46+
We retain sole discretion to temporarily suspend or discontinue your access to our Services, without prior notice, if we have reasonable suspicion that you engage in Prohibited Uses.
47+
48+
We retain sole discretion to limit your access to our API if your usage is excessive - as indicated by our API and user interfaces.
49+
50+
## 6. Contact information
51+
52+
If you have any questions or comments about the Terms please contact us by emailing us at: support@zallo.io

docs/docs/02-privacy.md docs/docs/03-privacy.md

+24-22
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@ categories:
55

66
# Privacy Policy
77

8-
**Last Updated: July 15, 2024**
8+
**Last Updated: July 16, 2024**
99

1010
## 1. Introduction
1111

1212
Zallo Labs Pty Ltd ("Zallo Labs", "we", "us", or "our") is commited to protecting your privacy.
13-
This Privacy Policy explains how we collect, use, and share data in relation to our services, including but not limited to our website (https://zallo.io) and its subdomains.
13+
This Privacy Policy explains how we collect, use, and share data in relation to our Services, including but not limited to our website (https://zallo.io), its subdomains, and our app.
1414

15+
## 2. What personal data we collect
1516

16-
## 2 What data we collect
17-
18-
We may collect and use different kinds of data about you as follows:
17+
### 2.1. Personal data you provide to us directly
1918

2019
- Email address
21-
- Device data: type, model, network information and unique ID
22-
- Course-grained location data
2320
- Feedback you provide
2421
- Correspondences with our support
22+
23+
### 2.2 Personal data we collect automatically
24+
25+
- Device ID, type, model and network information
26+
- Performance data
2527
- Usage data
2628
- Onchain data
2729

@@ -33,16 +35,9 @@ We may collect and use different kinds of data about you as follows:
3335

3436
## 4. Use of data
3537

36-
Your data is used to provide basic functionality for our services, provide support, and to improve our product and user experience.
37-
38-
## 5. Data security
38+
Your data is used to provide basic functionality for our Services, provide support, and to improve our product and user experience.
3939

40-
We take the security of your data seriously. All data we collect is encrypted at rest and in transit.
41-
Strict procedures and security features are used to prevent your personal data from being accidentally lost, used or accessed in an unauthorised way.
42-
43-
You will be notified of any personal data breaches which we become aware of.
44-
45-
## 6. Data Sharing and Third-Party Services
40+
## 5. Data sharing and third-party services
4641

4742
**We will never sell your personal data to third parties.**
4843

@@ -51,16 +46,23 @@ We may share your personal data with third-party services for the following purp
5146
- Error tracking and performance monitoring
5247
- Analytics to help us understand user behavior, improve our product, and enhance user experience
5348

54-
## 7. Data Retention and Deletion
49+
## 6. Data security
50+
51+
We take the security of your data seriously. All data we collect is encrypted at rest and in transit.
52+
Strict procedures and security features are used to prevent your personal data from being accidentally lost, used or accessed in an unauthorised way.
53+
54+
You will be notified of any personal data breaches which we become aware of.
55+
56+
## 7. Data retention and deletion
5557

56-
You may request deletion of your personal data at any time by contacting us [contacting us](#9-contact-information)
58+
You may request deletion of your personal data at any time by [contacting us](#9-contact-information).
5759
Your account data will be otherwise retained until the account is closed.
5860

5961
## 8. Changes to the Privacy Policy
6062

61-
You will be notified of any changes to this privacy policy on our website or app.
62-
By continuing to use Zallo after changes to the privacy policy, you accept the revised terms.
63+
You will be notified of any changes to this Privacy Policy on our website or app.
64+
By continuing to use our Services after changes to the Privacy Policy, you accept the revised terms.
6365

64-
## 9. Contact Information
66+
## 9. Contact information
6567

66-
If you have any questions or comments about this privacy policy, our privacy practices, or if you would like to exercise your rights with respect to your personal data, please contact us by emailing us at: support@zallo.io
68+
If you have any questions or comments about this Privacy Policy, our privacy practices, or if you would like to exercise your rights with respect to your personal data, please contact us by emailing us at: support@zallo.io

docs/docusaurus.config.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ const config: Config = {
8888
],
8989
},
9090
{
91-
title: 'Legal',
91+
title: 'Company',
9292
items: [
93+
{
94+
label: 'Terms of Service',
95+
to: 'terms-of-service',
96+
},
9397
{
9498
label: 'Privacy Policy',
9599
to: 'privacy',

0 commit comments

Comments
 (0)