From e0eeeb02efb860f96a9f3a622059e1584fa7fd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=80a?= <76558220+rkdud007@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:37:17 +0900 Subject: [PATCH] CREATE2 deployment (#6) --- README.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 58f73ff..1b3bcb1 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,59 @@ forge install rkdud007/solchip8 ``` ### Deployment -| Chain | Contract Address | -|-------|-----------------| -| Ethereum Sepolia | [0x6Cf84915E775d47e685D84359526878b38170809](https://sepolia.etherscan.io/address/0x6cf84915e775d47e685d84359526878b38170809) | -| Base testnet | [0xEe22f06282174E7cbf7e7b864F5bF8E0b8eDDD62](https://sepolia.basescan.org/address/0xEe22f06282174E7cbf7e7b864F5bF8E0b8eDDD62) | -| Base mainnet | [0xEe22f06282174E7cbf7e7b864F5bF8E0b8eDDD62](https://basescan.org/address/0xEe22f06282174E7cbf7e7b864F5bF8E0b8eDDD62) | -| Arbitrum testnet | [0x161b2DdC9C3F0621b4B9Df1Af3F5E7602a058982](https://sepolia.arbiscan.io/address/0x161b2ddc9c3f0621b4b9df1af3f5e7602a058982) | -| Obtimism testnet | [0xEe22f06282174E7cbf7e7b864F5bF8E0b8eDDD62](https://sepolia-optimism.etherscan.io/address/0xee22f06282174e7cbf7e7b864f5bf8e0b8eddd62) | -| Odyssey testnet | [0x7459455BDDC9f5F53af76eFe857B2064b230E4fe](https://odyssey-explorer.ithaca.xyz/address/0x7459455bddc9f5f53af76efe857b2064b230e4fe) | + +- unified contract address start with `0xc8c8c8c8` to represent chip8 by using CREATE2 contract using [`create2deploy` cli tool](https://github.com/rkdud007/create2deploy) + +```console +❯ cast create2 \ + --deployer 0x0000000000FFe8B47B3e2130213B802212439497 \ + --caller 0x0000000000000000000000000000000000000000 \ + --init-code-hash 614b9ac9323beeaffd9de369597fc476014aee6e350489c0601b5f47b1146334 \ + --starts-with c8c8c8c8 +``` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ChainChain IDContractv0.0.1
Base mainnet8453Solchip80xc8c8c8c8421e85597881ae753d040449e81e528a
Base sepolia84532Solchip80xc8c8c8c8421e85597881ae753d040449e81e528a
Arbitrum sepolia421614Solchip80xc8c8c8c8421e85597881ae753d040449e81e528a
Optimism sepolia11155420Solchip80xc8c8c8c8421e85597881ae753d040449e81e528a
Odyssey testnet911867Solchip80x7459455bddc9f5f53af76efe857b2064b230e4fe
### Features @@ -30,10 +75,9 @@ forge install rkdud007/solchip8 - Run demo with [desktop](./desktop/) - ### **Supported CHIP-8 Opcodes** -Tested [here](./test/Emu.t.sol) +Tested [here](./test/Solchip8.t.sol) | Opcode | Mnemonic | Description | | ------ | ----------------- | ------------------------------------------------------------------- |