Skip to content

Commit

Permalink
[untracked]: update copyright headers in TS files
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinghgrewal committed Dec 5, 2024
1 parent 6c165f7 commit 9be6678
Show file tree
Hide file tree
Showing 14 changed files with 216 additions and 139 deletions.
23 changes: 14 additions & 9 deletions e2e/test/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
23 changes: 14 additions & 9 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -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} */
Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/client/aptosContractClient.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/client/aptosExtensionsClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
38 changes: 26 additions & 12 deletions typescript/aptos/client/messageTransmitterClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -130,7 +135,10 @@ export class MessageTransmitterClient extends AptosContractClient {
};

getNumEnabledAttesters = async (): Promise<MoveUint64Type> => {
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;
};

Expand All @@ -150,7 +158,10 @@ export class MessageTransmitterClient extends AptosContractClient {
};

getSignatureThreshold = async (): Promise<MoveUint64Type> => {
const signatureThreshold = await this.executeMoveViewFunction(MoveModule.Attester, MoveFunction.GetSignatureThreshold);
const signatureThreshold = await this.executeMoveViewFunction(
MoveModule.Attester,
MoveFunction.GetSignatureThreshold
);
return signatureThreshold[0] as MoveUint64Type;
};

Expand All @@ -169,7 +180,10 @@ export class MessageTransmitterClient extends AptosContractClient {
};

getMaxMessageBodySize = async (): Promise<MoveUint64Type> => {
const maxMessageBodySize = await this.executeMoveViewFunction(MoveModule.MessageTransmitter, MoveFunction.MaxMessageBodySize);
const maxMessageBodySize = await this.executeMoveViewFunction(
MoveModule.MessageTransmitter,
MoveFunction.MaxMessageBodySize
);
return maxMessageBodySize[0] as MoveUint64Type;
};

Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/client/stablecoinClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
41 changes: 22 additions & 19 deletions typescript/aptos/client/tokenMessengerMinterClient.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -141,16 +145,16 @@ export class TokenMessengerMinterClient extends AptosContractClient {

getMessageBodyVersion = async (): Promise<MoveUint32Type> => {
const messageBodyVersion = await this.executeMoveViewFunction(
MoveModule.TokenMessenger,
MoveFunction.MessageBodyVersion
MoveModule.TokenMessenger,
MoveFunction.MessageBodyVersion
);
return messageBodyVersion[0] as MoveUint32Type;
};

getNumRemoteTokenMessenger = async (): Promise<MoveUint64Type> => {
const numRemoteTokenMessengers = await this.executeMoveViewFunction(
MoveModule.TokenMessenger,
MoveFunction.NumRemoteTokenMessengers
MoveModule.TokenMessenger,
MoveFunction.NumRemoteTokenMessengers
);
return numRemoteTokenMessengers[0] as MoveUint64Type;
};
Expand All @@ -164,11 +168,10 @@ export class TokenMessengerMinterClient extends AptosContractClient {
};

getLinkedToken = async (remoteDomain: U32, remoteToken: AccountAddress): Promise<AccountAddress> => {
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);
};

Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/utils/cctpFunction.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/utils/cctpFunctionScript.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/utils/cctpModule.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
23 changes: 14 additions & 9 deletions typescript/aptos/utils/cctpPackage.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Loading

0 comments on commit 9be6678

Please sign in to comment.