kaiachain / kaia-dapp-mono

MIT License
7 stars 19 forks source link

Multichain Deployer Tool #136

Open CoderOfPHCity opened 3 days ago

CoderOfPHCity commented 3 days ago

Description This tool provides a scaffold multichain Solidity Deployment script pattern.

It uses CREATE2 to deploy a target contract to multiple chains using a single Solidity script.

CREATE2 is used to preserve proxy addresses across multiple chains.

Likewise, it uses a single Solidity script to upgrade contracts on multiple chains.

Scripts are located at the script directory:

BaseDeployer.s.sol: Provides a base to the deploymeny . It includes all chains with their respective RPC urls (from foundry.toml)

Bounty track

zxstim commented 3 days ago

hmm... wrong bounty track aside. I want the solidity scripts and docs to qualify for bounty. Approved to proceed.

CoderOfPHCity commented 2 days ago

Sorry made the change on wrong track...

https://dorahacks.io/buidl/16676

Here's a snippet of a working demo , i succesfully deployed the same contracts on both arbitrum and base-sepolia all in a single transaction call using the multichain tool.

https://sepolia.basescan.org/address/0x897d083af8d10039d48d292b1fc4baf52ee5264d https://sepolia.arbiscan.io/address/0x897d083af8d10039d48d292b1fc4baf52ee5264d

zxstim commented 1 day ago

I want to see the same contract deployed on kaia mainnet and kaia kairos testnet, not base and arbitrum.

All the config should have Kaia included.

CoderOfPHCity commented 1 day ago

I got it working on kaia testnet but dont got tokens for gas to deploy on mainnet atm

zxstim commented 5 hours ago

Give me address. Will send you some mainnet KLAY.