Skip to content

Commit 4741564

Browse files
authored
[untracked] Add precompiled move scripts and example depositForBurn and receiveMessage scripts (#16)
## Summary Add precompiled move scripts with testnet contract addresses Add example depositForBurn and receiveMessage scripts Add readme ## Detail ## Testing Ran with testnet contracts to verify ## Documentation --- **Requested Reviewers:** @mention
1 parent 4d7a438 commit 4741564

13 files changed

+25755
-3
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ yarn install
4141
yarn test:e2e
4242
```
4343

44+
### Running Example Scripts on Testnet
45+
1. Rename .env.example to .env and fill in the required environment variables.
46+
2. Run the example script for Base/EVM -> Aptos
47+
```sh
48+
yarn receive-message-example
49+
```
50+
3. Run the example script for Aptos -> Base/EVM
51+
```sh
52+
yarn deposit-for-burn-example
53+
```
54+
55+
4456
## Deployment
4557

4658
1. Create a deployer keypair and fund it with APT

cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
"ignoreRegExpList": [
2929
"error_codes"
3030
],
31-
"ignorePaths": ["aptos-core", "stablecoin-aptos", "evm-cctp-contracts"]
31+
"ignorePaths": ["aptos-core", "stablecoin-aptos", "evm-cctp-contracts", "typescript/example/abi"]
3232
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"calculate-deployment-addresses": "yarn ts-node typescript/aptos/deploy/index.ts calculate-deployment-addresses",
1717
"deploy": "yarn ts-node typescript/aptos/deploy/index.ts deploy",
1818
"upgrade-pkg": "yarn ts-node typescript/aptos/deploy/index.ts upgrade",
19-
"verify-pkg": "yarn ts-node typescript/aptos/deploy/index.ts verify-pkg"
19+
"verify-pkg": "yarn ts-node typescript/aptos/deploy/index.ts verify-pkg",
20+
"deposit-for-burn-example": "node --env-file=typescript/.env -r ts-node/register typescript/example/depositForBurn.ts",
21+
"receive-message-example": "node --env-file=typescript/.env -r ts-node/register typescript/example/receiveMessage.ts"
2022
},
2123
"dependencies": {
2224
"@aptos-labs/ts-sdk": "^1.28.0",
@@ -49,4 +51,4 @@
4951
"node": "20.14.0",
5052
"yarn": "1.22.22"
5153
}
52-
}
54+
}

typescript/.env.example

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 Circle Internet Financial, LTD. All rights reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
##################################
18+
# Key & Address Configurations #
19+
##################################
20+
21+
EVM_PRIVATE_KEY=
22+
APTOS_PRIVATE_KEY=
23+
24+
##################################
25+
# EVM Contract Configurations #
26+
##################################
27+
28+
EVM_RPC_URL=https://base-sepolia.gateway.tenderly.co
29+
30+

0 commit comments

Comments
 (0)