diff --git a/src/app.ts b/src/app.ts index a6cbc49..261c7b4 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 cors from 'cors'; import { Express, Request, Response } from 'express'; import express from 'express'; diff --git a/src/controllers/index.ts b/src/controllers/index.ts index 0cf5921..a1b5564 100644 --- a/src/controllers/index.ts +++ b/src/controllers/index.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * from './users'; export * from './onboarding'; export * from './wallets'; diff --git a/src/controllers/onboarding.ts b/src/controllers/onboarding.ts index 998594d..a47abca 100644 --- a/src/controllers/onboarding.ts +++ b/src/controllers/onboarding.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { UUID, randomUUID } from 'crypto'; import { circleUserSdk, userDAO } from '../services'; import { Request, Response, NextFunction } from 'express'; diff --git a/src/controllers/tests/onboarding.test.ts b/src/controllers/tests/onboarding.test.ts index 758c0af..87cb6d3 100644 --- a/src/controllers/tests/onboarding.test.ts +++ b/src/controllers/tests/onboarding.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { signUpCallback, signInCallback } from '../onboarding'; import { getMockReq, getMockRes } from '@jest-mock/express'; import { hashSync } from 'bcrypt'; diff --git a/src/controllers/tests/tokens.test.ts b/src/controllers/tests/tokens.test.ts index 8f74bf0..edde04e 100644 --- a/src/controllers/tests/tokens.test.ts +++ b/src/controllers/tests/tokens.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { getTokenDetails } from '../tokens'; import { getMockReq, getMockRes } from '@jest-mock/express'; diff --git a/src/controllers/tests/transactions.test.ts b/src/controllers/tests/transactions.test.ts index df1b368..68f0dbc 100644 --- a/src/controllers/tests/transactions.test.ts +++ b/src/controllers/tests/transactions.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { getTransaction, listTransactions } from '../transactions'; import { getMockReq, getMockRes } from '@jest-mock/express'; diff --git a/src/controllers/tests/users.test.ts b/src/controllers/tests/users.test.ts index 606d479..6dcf2cf 100644 --- a/src/controllers/tests/users.test.ts +++ b/src/controllers/tests/users.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { createUser, createUserToken, initializeUser } from '../users'; import { getMockReq, getMockRes } from '@jest-mock/express'; diff --git a/src/controllers/tests/wallets.test.ts b/src/controllers/tests/wallets.test.ts index fa2080a..2320fa3 100644 --- a/src/controllers/tests/wallets.test.ts +++ b/src/controllers/tests/wallets.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { getWalletTokenBalance, listWallets } from '../wallets'; import { getMockReq, getMockRes } from '@jest-mock/express'; diff --git a/src/controllers/tokens.ts b/src/controllers/tokens.ts index f5c770b..65d95ce 100644 --- a/src/controllers/tokens.ts +++ b/src/controllers/tokens.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { circleUserSdk } from '../services'; import { Request, Response, NextFunction } from 'express'; diff --git a/src/controllers/transactions.ts b/src/controllers/transactions.ts index 60cc9e9..eae615d 100644 --- a/src/controllers/transactions.ts +++ b/src/controllers/transactions.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { circleUserSdk } from '../services'; import { Request, Response, NextFunction } from 'express'; import { getFeeConfiguration } from '../shared/utils'; diff --git a/src/controllers/users.ts b/src/controllers/users.ts index ea6b904..69b8e1d 100644 --- a/src/controllers/users.ts +++ b/src/controllers/users.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { UUID, randomUUID } from 'crypto'; import { circleUserSdk } from '../services'; import { Request, Response, NextFunction } from 'express'; diff --git a/src/controllers/wallets.ts b/src/controllers/wallets.ts index c553dee..f6a81f5 100644 --- a/src/controllers/wallets.ts +++ b/src/controllers/wallets.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { circleUserSdk } from '../services'; import { Request, Response, NextFunction } from 'express'; diff --git a/src/index.ts b/src/index.ts index 39b394d..e9815bd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { app } from './app'; import { initDB, cleanupDB } from './services/db/sqlite/sqliteDB'; import { diff --git a/src/middleware/auth.ts b/src/middleware/auth.ts index faa90a9..c8b132e 100644 --- a/src/middleware/auth.ts +++ b/src/middleware/auth.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { NextFunction, Request, Response } from 'express'; export const authMiddleware = ( diff --git a/src/middleware/errorHandler.ts b/src/middleware/errorHandler.ts index dccd3a7..a6c635c 100644 --- a/src/middleware/errorHandler.ts +++ b/src/middleware/errorHandler.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { NextFunction, Request, Response } from 'express'; export const errorHandler = ( diff --git a/src/middleware/index.ts b/src/middleware/index.ts index b7eea88..6abcbcf 100644 --- a/src/middleware/index.ts +++ b/src/middleware/index.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * from './validation'; export * from './types/schemas'; export * from './types/user'; diff --git a/src/middleware/types/schemas.ts b/src/middleware/types/schemas.ts index 6477840..77a6e37 100644 --- a/src/middleware/types/schemas.ts +++ b/src/middleware/types/schemas.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * as yup from 'yup'; // User diff --git a/src/middleware/types/types.ts b/src/middleware/types/types.ts index 840a303..58f59d4 100644 --- a/src/middleware/types/types.ts +++ b/src/middleware/types/types.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { FeeLevel } from '@circle-fin/user-controlled-wallets/dist/types/clients/user-controlled-wallets'; export type FeeConfiguration = diff --git a/src/middleware/types/user.ts b/src/middleware/types/user.ts index 82c6234..b81def0 100644 --- a/src/middleware/types/user.ts +++ b/src/middleware/types/user.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 type User = { userId: string; email: string; diff --git a/src/middleware/validation.ts b/src/middleware/validation.ts index e759b7f..c0676cd 100644 --- a/src/middleware/validation.ts +++ b/src/middleware/validation.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * as yup from 'yup'; import { Request, Response, NextFunction } from 'express'; diff --git a/src/routers/index.ts b/src/routers/index.ts index 1404c6a..47da20b 100644 --- a/src/routers/index.ts +++ b/src/routers/index.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * from './transactions'; export * from './wallets'; export * from './tokens'; diff --git a/src/routers/tokens.ts b/src/routers/tokens.ts index 5166273..b5622cd 100644 --- a/src/routers/tokens.ts +++ b/src/routers/tokens.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 express from 'express'; import { getTokenDetailsSchema, validate } from '../middleware'; import { getTokenDetails } from '../controllers'; diff --git a/src/routers/transactions.ts b/src/routers/transactions.ts index 2ffdc33..375558d 100644 --- a/src/routers/transactions.ts +++ b/src/routers/transactions.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 express from 'express'; import { authMiddleware, diff --git a/src/routers/users.ts b/src/routers/users.ts index d863c90..5fb8305 100644 --- a/src/routers/users.ts +++ b/src/routers/users.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 express from 'express'; import { createUser, diff --git a/src/routers/wallets.ts b/src/routers/wallets.ts index 7893cd8..aff86dc 100644 --- a/src/routers/wallets.ts +++ b/src/routers/wallets.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 express from 'express'; import { getWalletSchema, diff --git a/src/services/db/dao/index.ts b/src/services/db/dao/index.ts index db41917..0ca22c3 100644 --- a/src/services/db/dao/index.ts +++ b/src/services/db/dao/index.ts @@ -1 +1,17 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * from './userDAO'; diff --git a/src/services/db/dao/userDAO.ts b/src/services/db/dao/userDAO.ts index 960c5f1..0029189 100644 --- a/src/services/db/dao/userDAO.ts +++ b/src/services/db/dao/userDAO.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { User } from '../../../middleware'; export interface UserDAO { diff --git a/src/services/db/sqlite/sqliteDB.ts b/src/services/db/sqlite/sqliteDB.ts index 87e19bd..6b85104 100644 --- a/src/services/db/sqlite/sqliteDB.ts +++ b/src/services/db/sqlite/sqliteDB.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { Database } from 'sqlite3'; import { registerUserDAO } from '../dao'; import { SqliteUserDAO } from './sqliteUserDAO'; diff --git a/src/services/db/sqlite/sqliteUserDAO.ts b/src/services/db/sqlite/sqliteUserDAO.ts index 770d95b..d895c41 100644 --- a/src/services/db/sqlite/sqliteUserDAO.ts +++ b/src/services/db/sqlite/sqliteUserDAO.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { Database } from 'sqlite3'; import { User } from '../../../middleware/types/user'; import { UserDAO } from '../dao/userDAO'; diff --git a/src/services/db/sqlite/tests/sqliteUserDAOIT.test.ts b/src/services/db/sqlite/tests/sqliteUserDAOIT.test.ts index b8af3c2..4c94294 100644 --- a/src/services/db/sqlite/tests/sqliteUserDAOIT.test.ts +++ b/src/services/db/sqlite/tests/sqliteUserDAOIT.test.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { Database } from 'sqlite3'; import { SqliteUserDAO } from '../sqliteUserDAO'; import { UserDAO } from '../../dao'; diff --git a/src/services/index.ts b/src/services/index.ts index d48d3b6..1dea359 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -1,2 +1,18 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 * from './userControlledWalletSdk'; export * from './db/dao'; diff --git a/src/services/logging/logger.ts b/src/services/logging/logger.ts index bbff531..e8e8b34 100644 --- a/src/services/logging/logger.ts +++ b/src/services/logging/logger.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 interface Logger { info: (message: string) => void; warn: (message: string) => void; diff --git a/src/services/userControlledWalletSdk.ts b/src/services/userControlledWalletSdk.ts index eb48fc9..ed18668 100644 --- a/src/services/userControlledWalletSdk.ts +++ b/src/services/userControlledWalletSdk.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { initiateUserControlledWalletsClient } from '@circle-fin/user-controlled-wallets'; import * as dotenv from 'dotenv'; import path from 'path'; diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 62a4c0d..300d32f 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1,3 +1,19 @@ +// Copyright (c) 2024, Circle Technologies, LLC. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 +// +// 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 { Request } from 'express'; import { FeeConfiguration } from '../middleware/types/types';