Skip to content

Commit 75bfccd

Browse files
chore: update tac for mainnet deployments (#62)
* chore: update tac for mainnet deployments * chore(lite): add Re7 tac address * chore(lite): address comments --------- Signed-off-by: Hayden Shively <17186559+haydenshively@users.noreply.github.com>
1 parent 06e4f3b commit 75bfccd

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

apps/fallback/src/lib/wagmi-config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const chains = [
7070
scrollMainnet,
7171
soneium,
7272
sonic,
73+
customChains.tac,
7374
worldchain,
7475
] as const;
7576

@@ -149,6 +150,9 @@ const transports: Record<(typeof chains)[number]["id"], Transport> = {
149150
[customChains.katana.id]: createFallbackTransport(
150151
customChains.katana.rpcUrls.default.http.map((url) => ({ url, batch: false })),
151152
),
153+
[customChains.tac.id]: createFallbackTransport(
154+
customChains.tac.rpcUrls.default.http.map((url) => ({ url, batch: false })),
155+
),
152156
// [customChains.basecamp.id]: createFallbackTransport(
153157
// customChains.basecamp.rpcUrls.default.http.map((url) => ({ url, batch: false })),
154158
// ),

apps/lite/src/lib/curators.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as customChains from "@morpho-org/uikit/lib/chains";
12
import { Address, isAddressEqual } from "viem";
23
import { lisk, optimism, plumeMainnet } from "wagmi/chains";
34

@@ -18,6 +19,7 @@ export const CuratorFragment = graphql(`
1819
export const MANUALLY_WHITELISTED_CURATORS: FragmentOf<typeof CuratorFragment>[] = [
1920
{
2021
addresses: [
22+
{ address: "0x6D3AB84Fb7Fc04961a15663C980feC275b889402", chainId: customChains.tac.id },
2123
{ address: "0xd6316AE37dDE77204b9A94072544F1FF9f3d6d54", chainId: plumeMainnet.id },
2224
{ address: "0x4681fbeD0877815D5869Cf16e8A6C6Ceee365c02", chainId: lisk.id },
2325
],

apps/lite/src/lib/wagmi-config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const chains = [
7474
plumeMainnet,
7575
// scrollMainnet,
7676
// sonic,
77+
customChains.tac,
7778
worldchain,
7879
] as const;
7980

@@ -143,6 +144,9 @@ const transports: { [K in (typeof chains)[number]["id"]]: Transport } & { [k: nu
143144
{ url: `https://rpc-katana.t.conduit.xyz/${import.meta.env.VITE_KATANA_KEY}`, batch: false },
144145
...customChains.katana.rpcUrls.default.http.map((url) => ({ url, batch: false })),
145146
]),
147+
[customChains.tac.id]: createFallbackTransport(
148+
customChains.tac.rpcUrls.default.http.map((url) => ({ url, batch: false })),
149+
),
146150
};
147151

148152
export function createConfig(args: {

packages/uikit/src/lib/chains/tac.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineChain } from "viem";
22

33
export const tac = defineChain({
4-
id: 2390,
4+
id: 239,
55
name: "TAC",
66
network: "tac",
77
nativeCurrency: {
@@ -11,13 +11,13 @@ export const tac = defineChain({
1111
},
1212
rpcUrls: {
1313
default: {
14-
http: ["https://turin.rpc.tac.build/"],
14+
http: ["https://rpc.tac.build/", "https://rpc.ankr.com/tac"],
1515
},
1616
},
1717
blockExplorers: {
1818
default: {
1919
name: "TAC Explorer",
20-
url: "https://turin.explorer.tac.build",
20+
url: "https://explorer.tac.build",
2121
},
2222
},
2323
contracts: {

packages/uikit/src/lib/deployments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ export const DEPLOYMENTS: Deployments = {
123123
MetaMorphoV1_1Factory: { address: "0x1c8De6889acee12257899BFeAa2b7e534de32E16", fromBlock: 2741420n },
124124
},
125125
[customChains.tac.id]: {
126-
Morpho: { address: "0xF0453e7368Ea01d6d6d6a222C26B5a06F1d816e9", fromBlock: 3669141n },
127-
MetaMorphoV1_1Factory: { address: "0xAD03a229163cBc902992C10F8Ea279C11A4d6f27", fromBlock: 3669402n },
126+
Morpho: { address: "0x918B9F2E4B44E20c6423105BB6cCEB71473aD35c", fromBlock: 853025n },
127+
MetaMorphoV1_1Factory: { address: "0xcDA78f4979d17Ec93052A84A12001fe0088AD734", fromBlock: 978654n },
128128
},
129129
};
130130

0 commit comments

Comments
 (0)