Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Humanode Mainnet #86

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions script/checks/opcodes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Hex, type PublicClient, toHex } from 'viem';
import { type Hex, type PublicClient, toHex, zeroAddress } from 'viem';

type Opcode = number;
type CallError = { details: string };
Expand Down Expand Up @@ -27,7 +27,7 @@ export async function checkOpcodes(

async function checkOpcode(opcode: Opcode, client: PublicClient): Promise<boolean | 'unknown'> {
try {
await client.call({ data: toHex(opcode, { size: 1 }) });
await client.call({ data: toHex(opcode, { size: 1 }), to: zeroAddress });
return true; // Call succeeded so opcode is supported.
} catch (e: unknown) {
const err = e as CallError;
Expand Down
590 changes: 590 additions & 0 deletions script/data/chain/5234.json

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions script/data/feature/deployedContracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,50 @@
"hasCode": true
}
],
"5234": [
{
"name": "CreateX",
"address": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
},
{
"name": "Arachnid's Deterministic Deployment Proxy",
"address": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
},
{
"name": "Create2Deployer",
"address": "0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
},
{
"name": "ERC-4337 Entry Point v0.6",
"address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
},
{
"name": "ERC-4337 Simple Account Factory v0.6",
"address": "0x9406Cc6185a346906296840746125a0E44976454",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
},
{
"name": "Multicall3",
"address": "0xcA11bde05977b3631167028862bE2a173976CA11",
"codeHash": "0xd5c15df687b16f2ff992fc8d767b4216323184a2bbc6ee2f9c398c318e770891",
"hasCode": true
},
{
"name": "Permit2",
"address": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"hasCode": false
}
],
"8453": [
{
"name": "CreateX",
Expand Down
209 changes: 209 additions & 0 deletions script/data/feature/evmStackAddresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,215 @@
}
]
},
"5234": {
"OP": [
{
"name": "LegacyMessagePasser",
"address": "0x4200000000000000000000000000000000000000",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "DeployerWhitelist",
"address": "0x4200000000000000000000000000000000000002",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "LegacyERC20ETH",
"address": "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "WETH9",
"address": "0x4200000000000000000000000000000000000006",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L2CrossDomainMessenger",
"address": "0x4200000000000000000000000000000000000007",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L2StandardBridge",
"address": "0x4200000000000000000000000000000000000010",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "SequencerFeeVault",
"address": "0x4200000000000000000000000000000000000011",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "OptimismMintableERC20Factory",
"address": "0x4200000000000000000000000000000000000012",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L1BlockNumber",
"address": "0x4200000000000000000000000000000000000013",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "GasPriceOracle",
"address": "0x420000000000000000000000000000000000000F",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "GovernanceToken",
"address": "0x4200000000000000000000000000000000000042",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L1Block",
"address": "0x4200000000000000000000000000000000000015",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L2ToL1MessagePasser",
"address": "0x4200000000000000000000000000000000000016",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L2ERC721Bridge",
"address": "0x4200000000000000000000000000000000000014",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "OptimismMintableERC721Factory",
"address": "0x4200000000000000000000000000000000000017",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ProxyAdmin",
"address": "0x4200000000000000000000000000000000000018",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "BaseFeeVault",
"address": "0x4200000000000000000000000000000000000019",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "L1FeeVault",
"address": "0x420000000000000000000000000000000000001a",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
}
],
"Orbit": [
{
"name": "ArbAddressTable",
"address": "0x0000000000000000000000000000000000000066",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbAggregator",
"address": "0x000000000000000000000000000000000000006D",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbFunctionTable",
"address": "0x0000000000000000000000000000000000000068",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbGasInfo",
"address": "0x000000000000000000000000000000000000006C",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbInfo",
"address": "0x0000000000000000000000000000000000000065",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbOwner",
"address": "0x0000000000000000000000000000000000000070",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbOwnerPublic",
"address": "0x000000000000000000000000000000000000006b",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbRetryableTx",
"address": "0x000000000000000000000000000000000000006E",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbStatistics",
"address": "0x000000000000000000000000000000000000006F",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "ArbSys",
"address": "0x0000000000000000000000000000000000000064",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
},
{
"name": "NodeInterface",
"address": "0x00000000000000000000000000000000000000C8",
"kind": "Predeploy",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"exists": false
}
]
},
"8453": {
"OP": [
{
Expand Down
20 changes: 20 additions & 0 deletions script/data/feature/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,26 @@
],
"slip44": 966
},
"5234": {
"name": "Humanode Mainnet",
"shortName": "hmnd",
"chainId": 5234,
"networkId": 5234,
"infoURL": "https://humanode.io",
"nativeCurrency": { "name": "eHMND", "symbol": "eHMND", "decimals": 18 },
"chain": "HMND",
"explorers": [
{
"name": "Subscan",
"url": "https://humanode.subscan.io",
"standard": "EIP3091",
"icon": "subscan"
}
],
"faucets": [],
"icon": "humanode",
"rpc": ["https://explorer-rpc-http.mainnet.stages.humanode.io"]
},
"8453": {
"name": "Base",
"shortName": "base",
Expand Down
Loading