diff --git a/.changeset/selfish-experts-lay.md b/.changeset/selfish-experts-lay.md new file mode 100644 index 00000000..ded92419 --- /dev/null +++ b/.changeset/selfish-experts-lay.md @@ -0,0 +1,6 @@ +--- +"@wagmi/chains": patch +--- + +Updated syscoin. +Added rollux, rolluxTestnet & syscoinTestnet. diff --git a/packages/chains/src/rollux.ts b/packages/chains/src/rollux.ts new file mode 100644 index 00000000..149f6c4f --- /dev/null +++ b/packages/chains/src/rollux.ts @@ -0,0 +1,28 @@ +import { Chain } from './types' + +export const rollux = { + id: 570, + name: 'Rollux Mainnet', + network: 'rollux', + nativeCurrency: { + decimals: 18, + name: 'Syscoin', + symbol: 'SYS', + }, + rpcUrls: { + default: { + http: ['https://rpc.rollux.com'], + websocket: ['wss://rpc.rollux.com/wss'] + }, + public: { http: ['https://rollux.public-rpc.com'] }, + }, + blockExplorers: { + default: { name: 'RolluxExplorer', url: 'https://explorer.rollux.com' }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 119222, + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/rolluxTestnet.ts b/packages/chains/src/rolluxTestnet.ts new file mode 100644 index 00000000..536527da --- /dev/null +++ b/packages/chains/src/rolluxTestnet.ts @@ -0,0 +1,28 @@ +import { Chain } from './types' + +export const rolluxTestnet = { + id: 57000, + name: 'Rollux Testnet', + network: 'rollux-testnet', + nativeCurrency: { + decimals: 18, + name: 'Syscoin', + symbol: 'SYS', + }, + rpcUrls: { + default: { + http: ['https://rpc-tanenbaum.rollux.com/'], + websocket: ['wss://rpc-tanenbaum.rollux.com/wss'] + }, + public: { http: ['https://rpc-tanenbaum.rollux.com/'] }, + }, + blockExplorers: { + default: { name: 'RolluxTestnetExplorer', url: 'https://rollux.tanenbaum.io' }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 1813675, + }, + }, +} as const satisfies Chain diff --git a/packages/chains/src/syscoin.ts b/packages/chains/src/syscoin.ts index 7aaba68b..27e08585 100644 --- a/packages/chains/src/syscoin.ts +++ b/packages/chains/src/syscoin.ts @@ -5,21 +5,27 @@ export const syscoin = { name: 'Syscoin Mainnet', network: 'syscoin', nativeCurrency: { - decimals: 8, + decimals: 18, name: 'Syscoin', symbol: 'SYS', }, rpcUrls: { - default: { http: ['https://rpc.syscoin.org'] }, - public: { http: ['https://rpc.syscoin.org'] }, + default: { + http: ['https://rpc.syscoin.org'], + websocket: ['wss://rpc.syscoin.org/wss'] + }, + public: { + http: ['https://rpc.syscoin.org'], + websocket: ['wss://rpc.syscoin.org/wss'] + }, }, blockExplorers: { default: { name: 'SyscoinExplorer', url: 'https://explorer.syscoin.org' }, }, contracts: { multicall3: { - address: '0x000562033783B1136159E10d976B519C929cdE8e', - blockCreated: 80637, + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 287139, }, }, } as const satisfies Chain diff --git a/packages/chains/src/syscoinTestnet.ts b/packages/chains/src/syscoinTestnet.ts new file mode 100644 index 00000000..106f75cb --- /dev/null +++ b/packages/chains/src/syscoinTestnet.ts @@ -0,0 +1,28 @@ +import { Chain } from './types' + +export const syscoinTestnet = { + id: 5700, + name: 'Syscoin Tanenbaum Testnet', + network: 'syscoin-testnet', + nativeCurrency: { + decimals: 18, + name: 'Syscoin', + symbol: 'SYS', + }, + rpcUrls: { + default: { + http: ['https://rpc.tanenbaum.io'], + websocket: ['wss://rpc.tanenbaum.io/wss'] + }, + public: { http: ['https://rpc.tanenbaum.io'] }, + }, + blockExplorers: { + default: { name: 'SyscoinTestnetExplorer', url: 'https://tanenbaum.io' }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 271288, + }, + }, +} as const satisfies Chain