From 79aa1d87a2c7c5bc9cd710b1ac8f897097d289f0 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Thu, 19 Mar 2026 09:21:38 +0000 Subject: [PATCH] [#344] Update StoryFactory address and deployment block after redeploy Replace old broken address 0x66087c... with new 0xc278F4... and update deployment block from 43559145 to 43561137 after creation-fee fix redeploy (plotlink-contracts#25). Fixes #344 Co-Authored-By: Claude Opus 4.6 (1M context) --- .env.example | 2 +- lib/contracts/constants.ts | 2 +- packages/sdk/src/constants.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index d68f470c..512a2d55 100644 --- a/.env.example +++ b/.env.example @@ -32,7 +32,7 @@ NEXT_PUBLIC_CHAIN_ID=84532 # ----------------------------------------------------------------------------- # StoryFactory address # Testnet: 0xfa5489b6710Ba2f8406b37fA8f8c3018e51FA229 -# Mainnet: 0x66087c0032c304Eb724544ef8Fc7C7f3E6C8CdF5 +# Mainnet: 0xc278F4099298118efA8dF30DF0F4876632571948 NEXT_PUBLIC_CONTRACT_ADDRESS= # ----------------------------------------------------------------------------- diff --git a/lib/contracts/constants.ts b/lib/contracts/constants.ts index 3c47b2ea..eacdfb19 100644 --- a/lib/contracts/constants.ts +++ b/lib/contracts/constants.ts @@ -28,7 +28,7 @@ export const EXPLORER_URL = IS_TESTNET export const STORY_FACTORY = (process.env.NEXT_PUBLIC_CONTRACT_ADDRESS ?? (IS_TESTNET ? "0xfa5489b6710Ba2f8406b37fA8f8c3018e51FA229" - : "0x66087c0032c304Eb724544ef8Fc7C7f3E6C8CdF5")) as `0x${string}`; + : "0xc278F4099298118efA8dF30DF0F4876632571948")) as `0x${string}`; /** ZapPlotLinkMCV2 — one-click buy (ETH/USDC/HUNT -> storyline token) */ export const ZAP_PLOTLINK = "0x0000000000000000000000000000000000000000" as const; diff --git a/packages/sdk/src/constants.ts b/packages/sdk/src/constants.ts index b40ab2ba..0724406b 100644 --- a/packages/sdk/src/constants.ts +++ b/packages/sdk/src/constants.ts @@ -26,7 +26,7 @@ export const DEPLOYMENT_BLOCK = BigInt(20_000_000); * Deployment block for PlotLink contracts on Base mainnet. * Used as the default fromBlock for mainnet event log queries. */ -export const DEPLOYMENT_BLOCK_MAINNET = BigInt(43_559_145); +export const DEPLOYMENT_BLOCK_MAINNET = BigInt(43_561_137); /** Supported chain IDs for the PlotLink SDK. */ export const SUPPORTED_CHAIN_IDS = new Set([BASE_SEPOLIA_CHAIN_ID, BASE_MAINNET_CHAIN_ID]); @@ -41,7 +41,7 @@ export const STORY_FACTORY_ADDRESS = /** StoryFactory — storyline + plot management (Base mainnet). */ export const STORY_FACTORY_MAINNET_ADDRESS = - "0x66087c0032c304Eb724544ef8Fc7C7f3E6C8CdF5" as const; + "0xc278F4099298118efA8dF30DF0F4876632571948" as const; /** MCV2_Bond — bonding curve trading (Base Sepolia). */ export const MCV2_BOND_ADDRESS =