Skip to content

Commit

Permalink
[untracked] Add precompiled move scripts and example depositForBurn a…
Browse files Browse the repository at this point in the history
…nd 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
  • Loading branch information
dlee-circle authored Dec 13, 2024
1 parent 4d7a438 commit 4741564
Show file tree
Hide file tree
Showing 13 changed files with 25,755 additions and 3 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ yarn install
yarn test:e2e
```

### Running Example Scripts on Testnet
1. Rename .env.example to .env and fill in the required environment variables.
2. Run the example script for Base/EVM -> Aptos
```sh
yarn receive-message-example
```
3. Run the example script for Aptos -> Base/EVM
```sh
yarn deposit-for-burn-example
```


## Deployment

1. Create a deployer keypair and fund it with APT
Expand Down
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"ignoreRegExpList": [
"error_codes"
],
"ignorePaths": ["aptos-core", "stablecoin-aptos", "evm-cctp-contracts"]
"ignorePaths": ["aptos-core", "stablecoin-aptos", "evm-cctp-contracts", "typescript/example/abi"]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"calculate-deployment-addresses": "yarn ts-node typescript/aptos/deploy/index.ts calculate-deployment-addresses",
"deploy": "yarn ts-node typescript/aptos/deploy/index.ts deploy",
"upgrade-pkg": "yarn ts-node typescript/aptos/deploy/index.ts upgrade",
"verify-pkg": "yarn ts-node typescript/aptos/deploy/index.ts verify-pkg"
"verify-pkg": "yarn ts-node typescript/aptos/deploy/index.ts verify-pkg",
"deposit-for-burn-example": "node --env-file=typescript/.env -r ts-node/register typescript/example/depositForBurn.ts",
"receive-message-example": "node --env-file=typescript/.env -r ts-node/register typescript/example/receiveMessage.ts"
},
"dependencies": {
"@aptos-labs/ts-sdk": "^1.28.0",
Expand Down Expand Up @@ -49,4 +51,4 @@
"node": "20.14.0",
"yarn": "1.22.22"
}
}
}
30 changes: 30 additions & 0 deletions typescript/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2024 Circle Internet Financial, LTD. 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.

##################################
# Key & Address Configurations #
##################################

EVM_PRIVATE_KEY=
APTOS_PRIVATE_KEY=

##################################
# EVM Contract Configurations #
##################################

EVM_RPC_URL=https://base-sepolia.gateway.tenderly.co


Loading

0 comments on commit 4741564

Please sign in to comment.