UNPKG

@0xfacet/sdk

Version:

A toolkit for Facet blockchain integration.

81 lines (80 loc) 2.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.facetMainnet = exports.facetSepolia = void 0; const viem_1 = require("viem"); const chains_1 = require("viem/chains"); const op_stack_1 = require("viem/op-stack"); // Facet Sepolia Testnet Configuration exports.facetSepolia = (0, viem_1.defineChain)({ id: 0xface7a, name: "Facet Sepolia", nativeCurrency: { name: "Facet Compute Token", symbol: "FCT", decimals: 18 }, rpcUrls: { default: { http: ["https://sepolia.facet.org"], }, }, blockExplorers: { default: { name: "Blockscout", url: "https://sepolia.explorer.facet.org", }, }, contracts: { ...op_stack_1.chainConfig.contracts, l2OutputOracle: { [chains_1.sepolia.id]: { address: "0x0ABE7852CfbF73963F6ae419a500CC04785d6a30", }, }, portal: { [chains_1.sepolia.id]: { address: "0xF409695e35a73012760aBb8eD3c2a0b3F4e9354A", }, }, l1StandardBridge: { [chains_1.sepolia.id]: { address: "0xEe49E40B2ef8C98011DB5B4999D93E8B766a7241", }, }, multicall3: { address: "0xcA11bde05977b3631167028862bE2a173976CA11" }, }, sourceId: chains_1.sepolia.id, }); // Facet Mainnet Configuration exports.facetMainnet = (0, viem_1.defineChain)({ id: 0xface7, name: "Facet Mainnet", nativeCurrency: { name: "Facet Compute Token", symbol: "FCT", decimals: 18 }, rpcUrls: { default: { http: ["https://mainnet.facet.org"], }, }, blockExplorers: { default: { name: "Blockscout", url: "https://explorer.facet.org", }, }, contracts: { ...op_stack_1.chainConfig.contracts, l2OutputOracle: { [chains_1.mainnet.id]: { address: "0xD1e4cf142fDf7688A9f7734A5eE74d079696C5A6", }, }, portal: { [chains_1.mainnet.id]: { address: "0x8649Db4A287413567E8dc0EBe1dd62ee02B71eDD", }, }, l1StandardBridge: { [chains_1.mainnet.id]: { address: "0x8F75466D69a52EF53C7363F38834bEfC027A2909", }, }, multicall3: { address: "0xcA11bde05977b3631167028862bE2a173976CA11" }, }, sourceId: chains_1.mainnet.id, });