Skip to content

Commit

Permalink
chore(vechain): added to mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Dec 19, 2024
1 parent 73c8a45 commit ce0907c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/factory/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,19 @@ export namespace ChainFactoryConfigs {
} satisfies Partial<TChainParams>;
}

export function MainNet() {
export async function MainNet() {
const optimism = new JsonRpcProvider(
"https://optimism-mainnet.public.blastapi.io",
);
const storage = BridgeStorage__factory.connect(
"0xc6e84955ba7C354fb7ca60011883e5673Be3F629",
optimism,
);

const net = new SimpleNet("https://mainnet.veblocks.net");
const driver = await Driver.connect(net);
const connexObj = new Framework(driver);

return {
bscParams: {
identifier: Chain.BSC,
Expand Down Expand Up @@ -325,6 +330,18 @@ export namespace ChainFactoryConfigs {
}),
storage,
},
vechainParams: {
identifier: Chain.VECHAIN,
provider: new BrowserProvider(
new thor.Provider({
connex: connexObj,
net,
}),
),
bridge: ethers.getAddress("0x4c14CF6Eb11978F0A90B369107Aa7F5A08994428"),
royaltySalePrice: 10000,
storage,
},
} satisfies Partial<TChainParams>;
}
}

0 comments on commit ce0907c

Please sign in to comment.