-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from coinbase/eric/chain-support
Features: Networks
- Loading branch information
Showing
4 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Networks | ||
|
||
## Mainnet Networks | ||
- Base | ||
- Arbitrum | ||
- Optimism | ||
- Zora | ||
- Polygon | ||
- BNB | ||
- Avalanche | ||
- Ethereum mainnet ([not recommended due to costs](/faq/why-does-it-cost-more-on-ethereum-l1)) | ||
|
||
## Testnet Networks | ||
- Sepolia | ||
- Base Sepolia | ||
- Optimism Sepolia | ||
|
||
## Details | ||
|
||
### Addresses across Networks | ||
Users have the same Smart Wallet address across supported networks. | ||
|
||
### Deployment | ||
- Smart Wallets are deployed using the "counterfactual deployment" pattern | ||
- The wallet contract is deployed on first transaction | ||
- Same address is reserved across all chains through CREATE2 | ||
- Deployment costs are included in the first transaction | ||
|
||
### `initCode` | ||
- `initCode` determines the wallet's address | ||
- Contains factory address and initialization parameters | ||
- Ensures consistent address across all chains | ||
- Used by bundlers to deploy the wallet if needed | ||
|
||
### tx.origin Behavior | ||
- `tx.origin` will be the bundler EOA address, not the Smart Wallet address | ||
- Consider this when integrating with existing contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters