https://github.com/shivamycodee/c2t2
cross-chain application using wormhole
https://github.com/shivamycodee/c2t2
cross-chain-bridge defi solidity template transfer-token web3 wormhole
Last synced: about 1 month ago
JSON representation
cross-chain application using wormhole
- Host: GitHub
- URL: https://github.com/shivamycodee/c2t2
- Owner: Shivamycodee
- Created: 2025-02-01T09:25:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-01T13:14:22.000Z (over 1 year ago)
- Last Synced: 2025-02-01T14:23:05.375Z (over 1 year ago)
- Topics: cross-chain-bridge, defi, solidity, template, transfer-token, web3, wormhole
- Language: TypeScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tech Used.
- Language -> Solidity
- Framework -> [Foundry](https://book.getfoundry.sh/)
- Cross-Chain Protocol -> [Wormhole](https://wormhole.com/docs/tutorials/by-product/contract-integrations/cross-chain-token-contracts/)
## How to proceed...
## Clone the repo.
```shell
$ git clone https://github.com/Shivamycodee/c2t2
```
### Add private key.
- Create a .env file and add private key in it.
```shell
PRIVATE_KEY= CREATOR_PRIVATE_KEY
```
### Build
```shell
$ forge build
```
### Deploy CrossChainSender & CrossChainReceiver Contracts to their respective Blockchain.
```shell
$ npx ts-node scripts/deploy.ts
```
- It will ask you to choose the sender and receiver blockchain. you can add more chain options in deploy-config/config.json using [wormhole-contract-addresses](https://wormhole.com/docs/build/reference/contract-addresses/) .
- I have deployed this contracts on BSC Testnet & Avalanche Fuji. You can view them in deploy-config/contracts.json.
### Transfer Tokens
```shell
$ npx ts-node scripts/transfer.ts
```
### Contributions
- Contributions are welcome! Please feel free to submit a Pull Request.