Skip to content

Commit

Permalink
Add mainnet addresses and verification steps (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
chasemcdermott authored Mar 26, 2024
1 parent 5382d62 commit cf69e85
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ token_messenger_minter = "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3"
message_transmitter = "CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd"
token_messenger_minter = "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3"

[programs.mainnet]
message_transmitter = "CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd"
token_messenger_minter = "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3"

[registry]
url = "https://api.apr.dev"

Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,23 @@ To learn more about how to integrate with CCTP, please see our developer documen

| Mainnet | |
| -------------------- | ----- |
| MessageTransmitter | [TBD] |
| TokenMessengerMinter | [TBD] |
| MessageTransmitter | CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd |
| TokenMessengerMinter | CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3 |

### Program Verification

Mainnet on-chain progams can be verified with the following steps:

```sh
# Checkout deployed commit
git checkout 7bec2828bb442e7e22753cedc41b295b681980f2
# Build a verifiable build
anchor build --verifiable
# Verify MessageTransmitter
anchor verify --program-name message_transmitter --provider.cluster mainnet --skip-build CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd
# Verify TokenMessengerMinter
anchor verify --program-name token_messenger_minter --provider.cluster mainnet --skip-build CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3
```

## Contract Design

Expand Down

0 comments on commit cf69e85

Please sign in to comment.