diff --git a/src/contexts/constants.ts b/src/contexts/constants.ts index ef1b75a..849d605 100644 --- a/src/contexts/constants.ts +++ b/src/contexts/constants.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 type { WalletContextState } from './types'; export const WALLET_CONTEXT_INITIAL_STATE: WalletContextState = { diff --git a/src/contexts/reducer.ts b/src/contexts/reducer.ts index 02aea61..6c79120 100644 --- a/src/contexts/reducer.ts +++ b/src/contexts/reducer.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 type { AddressMap, BalanceMap, diff --git a/src/contexts/types.ts b/src/contexts/types.ts index aa13609..60bc173 100644 --- a/src/contexts/types.ts +++ b/src/contexts/types.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 type { AddressMap, Amount, diff --git a/src/contexts/wallet-context.tsx b/src/contexts/wallet-context.tsx index 4c3dff5..1cd36cb 100644 --- a/src/contexts/wallet-context.tsx +++ b/src/contexts/wallet-context.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 AsyncStorage from '@react-native-async-storage/async-storage'; import type { ReactNode } from 'react'; import { createContext, useContext, useEffect, useReducer } from 'react'; diff --git a/src/index.tsx b/src/index.tsx index 70aab67..d98d9a5 100644 --- a/src/index.tsx +++ b/src/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 polyfills first - these must be loaded before any other code import './polyfills'; diff --git a/src/polyfills.ts b/src/polyfills.ts index 4ed276d..348e3cd 100644 --- a/src/polyfills.ts +++ b/src/polyfills.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. + /** * Polyfills for React Native environment * This file sets up necessary polyfills for cryptographic and stream operations diff --git a/src/services/wdk-service/bare-api.ts b/src/services/wdk-service/bare-api.ts index 477987a..6c1c9ba 100644 --- a/src/services/wdk-service/bare-api.ts +++ b/src/services/wdk-service/bare-api.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 { HRPC as wdkManagerHRPC } from '@tetherto/pear-wrk-wdk'; import { Worklet } from 'react-native-bare-kit'; // @ts-expect-error - spec files don't have type definitions diff --git a/src/services/wdk-service/index.ts b/src/services/wdk-service/index.ts index 5ae8528..c9d9ddf 100644 --- a/src/services/wdk-service/index.ts +++ b/src/services/wdk-service/index.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 { HRPC as WdkManager } from '@tetherto/pear-wrk-wdk'; // @ts-expect-error - bundle file doesn't have type definitions import wdkWorkletBundle from './wdk-worklet.mobile.bundle.js'; diff --git a/src/services/wdk-service/types.ts b/src/services/wdk-service/types.ts index 6663b0e..74ba237 100644 --- a/src/services/wdk-service/types.ts +++ b/src/services/wdk-service/types.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 enum AssetTicker { BTC = 'btc', USDT = 'usdt', diff --git a/src/services/wdk-service/wdk-encryption-salt.ts b/src/services/wdk-service/wdk-encryption-salt.ts index c5058ac..80b5ba6 100644 --- a/src/services/wdk-service/wdk-encryption-salt.ts +++ b/src/services/wdk-service/wdk-encryption-salt.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 MAX_BYTES = 16; function generateWdkSalt(email: any): Buffer { diff --git a/src/services/wdk-service/wdk-secret-manager-storage.ts b/src/services/wdk-service/wdk-secret-manager-storage.ts index b018f28..acd1f73 100644 --- a/src/services/wdk-service/wdk-secret-manager-storage.ts +++ b/src/services/wdk-service/wdk-secret-manager-storage.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 b4a from 'b4a'; import * as Keychain from 'react-native-keychain'; diff --git a/src/spec/hrpc/index.js b/src/spec/hrpc/index.js index b4c69e1..0a99f97 100644 --- a/src/spec/hrpc/index.js +++ b/src/spec/hrpc/index.js @@ -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. + // This file is autogenerated by the hrpc compiler const { c, RPC, RPCStream, RPCRequestStream } = require('hrpc/runtime'); diff --git a/src/spec/hrpc/messages.js b/src/spec/hrpc/messages.js index e746f8a..16b7455 100644 --- a/src/spec/hrpc/messages.js +++ b/src/spec/hrpc/messages.js @@ -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. + // This file is autogenerated by the hyperschema compiler // Schema Version: 1 diff --git a/src/spec/schema/index.js b/src/spec/schema/index.js index e746f8a..16b7455 100644 --- a/src/spec/schema/index.js +++ b/src/spec/schema/index.js @@ -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. + // This file is autogenerated by the hyperschema compiler // Schema Version: 1 diff --git a/src/utils/get-balances-from-balance-map.ts b/src/utils/get-balances-from-balance-map.ts index ae7db27..0d63206 100644 --- a/src/utils/get-balances-from-balance-map.ts +++ b/src/utils/get-balances-from-balance-map.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 type { Amount, BalanceMap, diff --git a/src/utils/get-transactions-from-transaction-map.ts b/src/utils/get-transactions-from-transaction-map.ts index 591ffbc..cda2fda 100644 --- a/src/utils/get-transactions-from-transaction-map.ts +++ b/src/utils/get-transactions-from-transaction-map.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 type { Transaction, TransactionMap, diff --git a/src/worklet/wdk-secret-manager-worklet.js b/src/worklet/wdk-secret-manager-worklet.js index c2a3231..5a002bc 100644 --- a/src/worklet/wdk-secret-manager-worklet.js +++ b/src/worklet/wdk-secret-manager-worklet.js @@ -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 HRPC = require('../spec/hrpc'); const b4a = require('b4a');