From 9be66782a54cb54abeffbd811f9978d4aaaff0d4 Mon Sep 17 00:00:00 2001 From: Harman Singh Date: Thu, 5 Dec 2024 16:52:37 -0700 Subject: [PATCH] [untracked]: update copyright headers in TS files --- e2e/test/e2e.test.ts | 23 +++++++---- jest.config.ts | 23 +++++++---- .../aptos/client/aptosContractClient.ts | 23 +++++++---- .../aptos/client/aptosExtensionsClient.ts | 23 +++++++---- .../aptos/client/messageTransmitterClient.ts | 38 +++++++++++------ typescript/aptos/client/stablecoinClient.ts | 23 +++++++---- .../client/tokenMessengerMinterClient.ts | 41 ++++++++++--------- typescript/aptos/utils/cctpFunction.ts | 23 +++++++---- typescript/aptos/utils/cctpFunctionScript.ts | 23 +++++++---- typescript/aptos/utils/cctpModule.ts | 23 +++++++---- typescript/aptos/utils/cctpPackage.ts | 23 +++++++---- typescript/aptos/utils/moveFunction.ts | 23 +++++++---- typescript/aptos/utils/moveModule.ts | 23 +++++++---- typescript/aptos/utils/package.ts | 23 +++++++---- 14 files changed, 216 insertions(+), 139 deletions(-) diff --git a/e2e/test/e2e.test.ts b/e2e/test/e2e.test.ts index 736a3dd..e703f18 100644 --- a/e2e/test/e2e.test.ts +++ b/e2e/test/e2e.test.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { MessageTransmitterClient } from "../../typescript/aptos/client/messageTransmitterClient"; diff --git a/jest.config.ts b/jest.config.ts index a94e41b..f454fee 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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. */ /** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */ diff --git a/typescript/aptos/client/aptosContractClient.ts b/typescript/aptos/client/aptosContractClient.ts index fbeaa0d..d80a491 100644 --- a/typescript/aptos/client/aptosContractClient.ts +++ b/typescript/aptos/client/aptosContractClient.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { diff --git a/typescript/aptos/client/aptosExtensionsClient.ts b/typescript/aptos/client/aptosExtensionsClient.ts index 855de47..18ac692 100644 --- a/typescript/aptos/client/aptosExtensionsClient.ts +++ b/typescript/aptos/client/aptosExtensionsClient.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { AptosContractClient } from "./aptosContractClient"; diff --git a/typescript/aptos/client/messageTransmitterClient.ts b/typescript/aptos/client/messageTransmitterClient.ts index 15c5883..cb89419 100644 --- a/typescript/aptos/client/messageTransmitterClient.ts +++ b/typescript/aptos/client/messageTransmitterClient.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { AptosContractClient } from "./aptosContractClient"; @@ -130,7 +135,10 @@ export class MessageTransmitterClient extends AptosContractClient { }; getNumEnabledAttesters = async (): Promise => { - const numEnabledAttesters: MoveValue[] = await this.executeMoveViewFunction(MoveModule.Attester, MoveFunction.GetNumEnabledAttesters); + const numEnabledAttesters: MoveValue[] = await this.executeMoveViewFunction( + MoveModule.Attester, + MoveFunction.GetNumEnabledAttesters + ); return numEnabledAttesters[0] as MoveUint64Type; }; @@ -150,7 +158,10 @@ export class MessageTransmitterClient extends AptosContractClient { }; getSignatureThreshold = async (): Promise => { - const signatureThreshold = await this.executeMoveViewFunction(MoveModule.Attester, MoveFunction.GetSignatureThreshold); + const signatureThreshold = await this.executeMoveViewFunction( + MoveModule.Attester, + MoveFunction.GetSignatureThreshold + ); return signatureThreshold[0] as MoveUint64Type; }; @@ -169,7 +180,10 @@ export class MessageTransmitterClient extends AptosContractClient { }; getMaxMessageBodySize = async (): Promise => { - const maxMessageBodySize = await this.executeMoveViewFunction(MoveModule.MessageTransmitter, MoveFunction.MaxMessageBodySize); + const maxMessageBodySize = await this.executeMoveViewFunction( + MoveModule.MessageTransmitter, + MoveFunction.MaxMessageBodySize + ); return maxMessageBodySize[0] as MoveUint64Type; }; diff --git a/typescript/aptos/client/stablecoinClient.ts b/typescript/aptos/client/stablecoinClient.ts index de58181..dc3e198 100644 --- a/typescript/aptos/client/stablecoinClient.ts +++ b/typescript/aptos/client/stablecoinClient.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { AptosContractClient } from "./aptosContractClient"; diff --git a/typescript/aptos/client/tokenMessengerMinterClient.ts b/typescript/aptos/client/tokenMessengerMinterClient.ts index 6f96907..23a1bba 100644 --- a/typescript/aptos/client/tokenMessengerMinterClient.ts +++ b/typescript/aptos/client/tokenMessengerMinterClient.ts @@ -1,16 +1,20 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 { AptosContractClient } from "./aptosContractClient"; import { Account, @@ -141,16 +145,16 @@ export class TokenMessengerMinterClient extends AptosContractClient { getMessageBodyVersion = async (): Promise => { const messageBodyVersion = await this.executeMoveViewFunction( - MoveModule.TokenMessenger, - MoveFunction.MessageBodyVersion + MoveModule.TokenMessenger, + MoveFunction.MessageBodyVersion ); return messageBodyVersion[0] as MoveUint32Type; }; getNumRemoteTokenMessenger = async (): Promise => { const numRemoteTokenMessengers = await this.executeMoveViewFunction( - MoveModule.TokenMessenger, - MoveFunction.NumRemoteTokenMessengers + MoveModule.TokenMessenger, + MoveFunction.NumRemoteTokenMessengers ); return numRemoteTokenMessengers[0] as MoveUint64Type; }; @@ -164,11 +168,10 @@ export class TokenMessengerMinterClient extends AptosContractClient { }; getLinkedToken = async (remoteDomain: U32, remoteToken: AccountAddress): Promise => { - const localToken = await this.executeMoveViewFunction( - MoveModule.TokenController, - MoveFunction.GetLinkedToken, - [remoteDomain, remoteToken] - ); + const localToken = await this.executeMoveViewFunction(MoveModule.TokenController, MoveFunction.GetLinkedToken, [ + remoteDomain, + remoteToken, + ]); return AccountAddress.fromString(localToken[0] as string); }; diff --git a/typescript/aptos/utils/cctpFunction.ts b/typescript/aptos/utils/cctpFunction.ts index fbd73cc..896e812 100644 --- a/typescript/aptos/utils/cctpFunction.ts +++ b/typescript/aptos/utils/cctpFunction.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 MoveFunction { diff --git a/typescript/aptos/utils/cctpFunctionScript.ts b/typescript/aptos/utils/cctpFunctionScript.ts index 6968bea..6d67068 100644 --- a/typescript/aptos/utils/cctpFunctionScript.ts +++ b/typescript/aptos/utils/cctpFunctionScript.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 CctpFunctionScript { diff --git a/typescript/aptos/utils/cctpModule.ts b/typescript/aptos/utils/cctpModule.ts index 26f75cf..96aa7a3 100644 --- a/typescript/aptos/utils/cctpModule.ts +++ b/typescript/aptos/utils/cctpModule.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 MoveModule { diff --git a/typescript/aptos/utils/cctpPackage.ts b/typescript/aptos/utils/cctpPackage.ts index c3a7993..1fc252e 100644 --- a/typescript/aptos/utils/cctpPackage.ts +++ b/typescript/aptos/utils/cctpPackage.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 PackageName { diff --git a/typescript/aptos/utils/moveFunction.ts b/typescript/aptos/utils/moveFunction.ts index 4d5fe92..a881a79 100644 --- a/typescript/aptos/utils/moveFunction.ts +++ b/typescript/aptos/utils/moveFunction.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 MoveFunction { diff --git a/typescript/aptos/utils/moveModule.ts b/typescript/aptos/utils/moveModule.ts index 7a89905..4201970 100644 --- a/typescript/aptos/utils/moveModule.ts +++ b/typescript/aptos/utils/moveModule.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 MoveModule { diff --git a/typescript/aptos/utils/package.ts b/typescript/aptos/utils/package.ts index c3a7993..1fc252e 100644 --- a/typescript/aptos/utils/package.ts +++ b/typescript/aptos/utils/package.ts @@ -1,14 +1,19 @@ -/* - * Copyright (c) 2024, Circle Internet Group, Inc. - * All rights reserved. +/** + * Copyright (c) 2024, Circle Internet Group, Inc. All rights reserved. * - * Circle Internet Group, Inc. CONFIDENTIAL + * SPDX-License-Identifier: Apache-2.0 * - * This file includes unpublished proprietary source code of Circle Internet - * Group, Inc. The copyright notice above does not evidence any actual or - * intended publication of such source code. Disclosure of this source code - * or any related proprietary information is strictly prohibited without - * the express written permission of Circle Internet Group, Inc. + * 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 PackageName {