diff --git a/src/app/_layout.tsx b/src/app/_layout.tsx index 4df44bd..b4a6e7f 100644 --- a/src/app/_layout.tsx +++ b/src/app/_layout.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { DarkTheme, ThemeProvider as NavigationThemeProvider } from '@react-navigation/native'; import { WalletProvider, WDKService } from '@tetherto/wdk-react-native-provider'; import { ThemeProvider } from '@tetherto/wdk-uikit-react-native'; diff --git a/src/app/activity.tsx b/src/app/activity.tsx index 8025f1b..1521b35 100644 --- a/src/app/activity.tsx +++ b/src/app/activity.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { AssetTicker, useWallet } from '@tetherto/wdk-react-native-provider'; import { Transaction, TransactionList } from '@tetherto/wdk-uikit-react-native'; import React, { useEffect, useState } from 'react'; diff --git a/src/app/assets.tsx b/src/app/assets.tsx index 012d202..5d5db7e 100644 --- a/src/app/assets.tsx +++ b/src/app/assets.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { FiatCurrency, pricingService } from '@/services/pricing-service'; import { AssetTicker, useWallet } from '@tetherto/wdk-react-native-provider'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/authorize.tsx b/src/app/authorize.tsx index 1cde1e7..0e2f1d7 100644 --- a/src/app/authorize.tsx +++ b/src/app/authorize.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useWallet } from '@tetherto/wdk-react-native-provider'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; import { Fingerprint, Shield } from 'lucide-react-native'; diff --git a/src/app/index.tsx b/src/app/index.tsx index 62e444c..9fc6d71 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useWallet } from '@tetherto/wdk-react-native-provider'; import { Redirect } from 'expo-router'; import { useEffect, useState } from 'react'; diff --git a/src/app/onboarding/_layout.tsx b/src/app/onboarding/_layout.tsx index 3f17083..b63ec52 100644 --- a/src/app/onboarding/_layout.tsx +++ b/src/app/onboarding/_layout.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { Stack } from 'expo-router'; export default function OnboardingLayout() { diff --git a/src/app/onboarding/index.tsx b/src/app/onboarding/index.tsx index e95e46c..8df2ecf 100644 --- a/src/app/onboarding/index.tsx +++ b/src/app/onboarding/index.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { View, StyleSheet } from 'react-native'; import { useEffect } from 'react'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/receive/details.tsx b/src/app/receive/details.tsx index 0ac6e1c..2010af2 100644 --- a/src/app/receive/details.tsx +++ b/src/app/receive/details.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { QRCode } from '@tetherto/wdk-uikit-react-native'; import { useLocalSearchParams } from 'expo-router'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/receive/select-network.tsx b/src/app/receive/select-network.tsx index ac8d02c..6fbdab7 100644 --- a/src/app/receive/select-network.tsx +++ b/src/app/receive/select-network.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Header from '@/components/header'; import { assetConfig } from '@/config/assets'; import { Network, networkConfigs } from '@/config/networks'; diff --git a/src/app/receive/select-token.tsx b/src/app/receive/select-token.tsx index df0c6f7..f85f937 100644 --- a/src/app/receive/select-token.tsx +++ b/src/app/receive/select-token.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { assetConfig } from '@/config/assets'; import getDisplaySymbol from '@/utils/get-display-symbol'; import { getRecentTokens, addToRecentTokens } from '@/utils/recent-tokens'; diff --git a/src/app/scan-qr.tsx b/src/app/scan-qr.tsx index 55cc435..a2af8d9 100644 --- a/src/app/scan-qr.tsx +++ b/src/app/scan-qr.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { CameraView, useCameraPermissions } from 'expo-camera'; import { useLocalSearchParams } from 'expo-router'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/send/details.tsx b/src/app/send/details.tsx index fb7b837..796823b 100644 --- a/src/app/send/details.tsx +++ b/src/app/send/details.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { AssetTicker, useWallet, WDKService } from '@tetherto/wdk-react-native-provider'; import { CryptoAddressInput } from '@tetherto/wdk-uikit-react-native'; import { useLocalSearchParams } from 'expo-router'; diff --git a/src/app/send/select-network.tsx b/src/app/send/select-network.tsx index ae693d1..d4b52f0 100644 --- a/src/app/send/select-network.tsx +++ b/src/app/send/select-network.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { Network, NetworkSelector } from '@/components/NetworkSelector'; import { assetConfig } from '@/config/assets'; import { networkConfigs } from '@/config/networks'; diff --git a/src/app/send/select-token.tsx b/src/app/send/select-token.tsx index b3a0e0a..fbd1e18 100644 --- a/src/app/send/select-token.tsx +++ b/src/app/send/select-token.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { assetConfig } from '@/config/assets'; import { useLocalSearchParams } from 'expo-router'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/settings.tsx b/src/app/settings.tsx index 0888b40..fae182d 100644 --- a/src/app/settings.tsx +++ b/src/app/settings.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Header from '@/components/header'; import { clearAvatar } from '@/config/avatar-options'; import { networkConfigs } from '@/config/networks'; diff --git a/src/app/token-details.tsx b/src/app/token-details.tsx index 43f4274..1a04180 100644 --- a/src/app/token-details.tsx +++ b/src/app/token-details.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { assetConfig } from '@/config/assets'; import formatAmount from '@/utils/format-amount'; import { AssetTicker, NetworkType, useWallet } from '@tetherto/wdk-react-native-provider'; diff --git a/src/app/wallet-setup/_layout.tsx b/src/app/wallet-setup/_layout.tsx index b5d0216..a7b6202 100644 --- a/src/app/wallet-setup/_layout.tsx +++ b/src/app/wallet-setup/_layout.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { Stack } from 'expo-router'; import { colors } from '@/constants/colors'; diff --git a/src/app/wallet-setup/complete.tsx b/src/app/wallet-setup/complete.tsx index 3444d65..3bbfec7 100644 --- a/src/app/wallet-setup/complete.tsx +++ b/src/app/wallet-setup/complete.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { CommonActions, useNavigation } from '@react-navigation/native'; import { useWallet } from '@tetherto/wdk-react-native-provider'; import { useLocalSearchParams } from 'expo-router'; diff --git a/src/app/wallet-setup/confirm-phrase.tsx b/src/app/wallet-setup/confirm-phrase.tsx index 0fcb47c..f2f6c63 100644 --- a/src/app/wallet-setup/confirm-phrase.tsx +++ b/src/app/wallet-setup/confirm-phrase.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React, { useState, useEffect } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Alert } from 'react-native'; import { useLocalSearchParams } from 'expo-router'; diff --git a/src/app/wallet-setup/import-name-wallet.tsx b/src/app/wallet-setup/import-name-wallet.tsx index 167e5fa..0122632 100644 --- a/src/app/wallet-setup/import-name-wallet.tsx +++ b/src/app/wallet-setup/import-name-wallet.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import avatarOptions, { setAvatar } from '@/config/avatar-options'; import { CommonActions, useNavigation } from '@react-navigation/native'; import { useWallet } from '@tetherto/wdk-react-native-provider'; diff --git a/src/app/wallet-setup/import-wallet.tsx b/src/app/wallet-setup/import-wallet.tsx index c699cd4..127eb37 100644 --- a/src/app/wallet-setup/import-wallet.tsx +++ b/src/app/wallet-setup/import-wallet.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { SeedPhrase } from '@/components/SeedPhrase'; import * as Clipboard from 'expo-clipboard'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; diff --git a/src/app/wallet-setup/name-wallet.tsx b/src/app/wallet-setup/name-wallet.tsx index 921e6ef..3f8c0e1 100644 --- a/src/app/wallet-setup/name-wallet.tsx +++ b/src/app/wallet-setup/name-wallet.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import avatarOptions from '@/config/avatar-options'; import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; import { ChevronLeft } from 'lucide-react-native'; diff --git a/src/app/wallet-setup/secure-wallet.tsx b/src/app/wallet-setup/secure-wallet.tsx index 90f73f3..2539e61 100644 --- a/src/app/wallet-setup/secure-wallet.tsx +++ b/src/app/wallet-setup/secure-wallet.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { SeedPhrase } from '@/components/SeedPhrase'; import { WDKService } from '@tetherto/wdk-react-native-provider'; import * as Clipboard from 'expo-clipboard'; diff --git a/src/app/wallet.tsx b/src/app/wallet.tsx index 1a8cf06..0d04f13 100644 --- a/src/app/wallet.tsx +++ b/src/app/wallet.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { BalanceLoader } from '@/components/BalanceLoader'; import { AssetTicker, useWallet } from '@tetherto/wdk-react-native-provider'; import { Balance } from '@tetherto/wdk-uikit-react-native'; diff --git a/src/components/BalanceLoader.tsx b/src/components/BalanceLoader.tsx index 996f0dd..ea98e4c 100644 --- a/src/components/BalanceLoader.tsx +++ b/src/components/BalanceLoader.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import React from 'react'; import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'; import { colors } from '@/constants/colors'; diff --git a/src/components/NetworkSelector.tsx b/src/components/NetworkSelector.tsx index cf877aa..bd5618e 100644 --- a/src/components/NetworkSelector.tsx +++ b/src/components/NetworkSelector.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useTheme } from '@tetherto/wdk-uikit-react-native'; import { Search, X } from 'lucide-react-native'; import { useCallback, useMemo, useState } from 'react'; diff --git a/src/components/SeedPhrase.tsx b/src/components/SeedPhrase.tsx index 745530b..cf507fd 100644 --- a/src/components/SeedPhrase.tsx +++ b/src/components/SeedPhrase.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useTheme } from '@tetherto/wdk-uikit-react-native'; import React, { useMemo, useRef } from 'react'; import { StyleSheet, Text, TextInput, View } from 'react-native'; diff --git a/src/components/TokenDetails.tsx b/src/components/TokenDetails.tsx index 7f6cab8..684fbbc 100644 --- a/src/components/TokenDetails.tsx +++ b/src/components/TokenDetails.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { networkConfigs } from '@/config/networks'; import formatAmount from '@/utils/format-amount'; import formatTokenAmount from '@/utils/format-token-amount'; diff --git a/src/components/header.tsx b/src/components/header.tsx index b3c2d4b..c4e347a 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useDebouncedNavigation } from '@/hooks/use-debounced-navigation'; import { ChevronLeft } from 'lucide-react-native'; import { diff --git a/src/components/onboarding/onboarding-welcome.tsx b/src/components/onboarding/onboarding-welcome.tsx index aed1dfe..8b37a9c 100644 --- a/src/components/onboarding/onboarding-welcome.tsx +++ b/src/components/onboarding/onboarding-welcome.tsx @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { Download, Wallet } from 'lucide-react-native'; import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; diff --git a/src/config/assets.ts b/src/config/assets.ts index 7a86eaf..6d226d0 100644 --- a/src/config/assets.ts +++ b/src/config/assets.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { FiatCurrency } from '@/services/pricing-service'; import { NetworkType } from '@tetherto/wdk-react-native-provider'; diff --git a/src/config/avatar-options.ts b/src/config/avatar-options.ts index f7d60e9..a02dd65 100644 --- a/src/config/avatar-options.ts +++ b/src/config/avatar-options.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import AsyncStorage from '@react-native-async-storage/async-storage'; const avatarOptions = [ diff --git a/src/config/get-chains-config.ts b/src/config/get-chains-config.ts index 0a8e71a..36d5d6b 100644 --- a/src/config/get-chains-config.ts +++ b/src/config/get-chains-config.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + const getChainsConfig = () => { return { ethereum: { diff --git a/src/config/networks.ts b/src/config/networks.ts index 1ae6c16..a8b8446 100644 --- a/src/config/networks.ts +++ b/src/config/networks.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { NetworkType } from '@tetherto/wdk-react-native-provider'; export interface Network { diff --git a/src/constants/colors.ts b/src/constants/colors.ts index b7eb522..3b5612c 100644 --- a/src/constants/colors.ts +++ b/src/constants/colors.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + export const colors = { // Primary colors background: '#121212', diff --git a/src/hooks/use-debounced-navigation.ts b/src/hooks/use-debounced-navigation.ts index 83e681a..d5cb96c 100644 --- a/src/hooks/use-debounced-navigation.ts +++ b/src/hooks/use-debounced-navigation.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useRouter } from 'expo-router'; import { useCallback, useEffect, useRef } from 'react'; diff --git a/src/hooks/use-keyboard.ts b/src/hooks/use-keyboard.ts index eecdd56..67f9e9b 100644 --- a/src/hooks/use-keyboard.ts +++ b/src/hooks/use-keyboard.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { useEffect, useState } from 'react'; import { Keyboard, KeyboardEvent, Platform } from 'react-native'; diff --git a/src/hooks/use-wallet-avatar.ts b/src/hooks/use-wallet-avatar.ts index b1e1b17..7897a38 100644 --- a/src/hooks/use-wallet-avatar.ts +++ b/src/hooks/use-wallet-avatar.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import avatarOptions, { getAvatar } from '@/config/avatar-options'; import { useEffect, useState } from 'react'; diff --git a/src/services/pricing-service.ts b/src/services/pricing-service.ts index 6d30728..62c7427 100644 --- a/src/services/pricing-service.ts +++ b/src/services/pricing-service.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { BitfinexPricingClient } from '@tetherto/wdk-pricing-bitfinex-http'; import { PricingProvider } from '@tetherto/wdk-pricing-provider'; import { AssetTicker } from '@tetherto/wdk-react-native-provider'; diff --git a/src/utils/format-amount.ts b/src/utils/format-amount.ts index f83b125..2b162f2 100644 --- a/src/utils/format-amount.ts +++ b/src/utils/format-amount.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + const formatAmount = ( amount: number, { diff --git a/src/utils/format-token-amount.ts b/src/utils/format-token-amount.ts index 34120d4..2b655d9 100644 --- a/src/utils/format-token-amount.ts +++ b/src/utils/format-token-amount.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { AssetTicker } from '@tetherto/wdk-react-native-provider'; import formatAmount from './format-amount'; import getDisplaySymbol from './get-display-symbol'; diff --git a/src/utils/format-usd-value.ts b/src/utils/format-usd-value.ts index 66e9db2..2977e8d 100644 --- a/src/utils/format-usd-value.ts +++ b/src/utils/format-usd-value.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import formatAmount from './format-amount'; const formatUSDValue = (usdValue: number, includeSymbol: boolean = true): string => { diff --git a/src/utils/gas-fee-calculator.ts b/src/utils/gas-fee-calculator.ts index 3a08372..9cde582 100644 --- a/src/utils/gas-fee-calculator.ts +++ b/src/utils/gas-fee-calculator.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { AssetTicker, NetworkType, WDKService } from '@tetherto/wdk-react-native-provider'; export interface GasFeeEstimate { diff --git a/src/utils/get-display-symbol.ts b/src/utils/get-display-symbol.ts index f9bfee8..0fd1ae5 100644 --- a/src/utils/get-display-symbol.ts +++ b/src/utils/get-display-symbol.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import { assetConfig } from '@/config/assets'; const getDisplaySymbol = (denomination: string) => { diff --git a/src/utils/get-error-message.ts b/src/utils/get-error-message.ts index 88aad2e..f1dffe4 100644 --- a/src/utils/get-error-message.ts +++ b/src/utils/get-error-message.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import parseWorkletError from './parse-worklet-error'; const getErrorMessage = (error: unknown, fallbackMessage: string) => { diff --git a/src/utils/parse-worklet-error.ts b/src/utils/parse-worklet-error.ts index 28d8f5f..bc3a702 100644 --- a/src/utils/parse-worklet-error.ts +++ b/src/utils/parse-worklet-error.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + const ERROR_MESSAGES = { '13': 'The biometric authentication was cancelled', }; diff --git a/src/utils/recent-tokens.ts b/src/utils/recent-tokens.ts index dfdb15a..b742d13 100644 --- a/src/utils/recent-tokens.ts +++ b/src/utils/recent-tokens.ts @@ -1,3 +1,17 @@ +// Copyright 2024 Tether Operations Limited +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import AsyncStorage from '@react-native-async-storage/async-storage'; type Operation = 'send' | 'receive';