|
1 | | -import { |
2 | | - contractsByNetwork, |
3 | | - emergencyLiquidators, |
4 | | - MULTISIG, |
5 | | - ROUTER_MULTISIG_ADDRESS, |
6 | | - tickerTokensByNetwork, |
7 | | - tokenDataByNetwork, |
8 | | - TREASURY, |
9 | | - VETO_ADMIN, |
10 | | -} from "@gearbox-protocol/sdk-gov"; |
11 | 1 | import type { Address } from "viem"; |
12 | 2 |
|
13 | | -import type { NetworkType } from "../chain"; |
14 | 3 | import { NOT_DEPLOYED } from "../constants"; |
15 | 4 | import { AddressMap } from "../utils"; |
16 | 5 | import type { IAddressLabeller } from "./IAddressLabeller"; |
@@ -44,40 +33,3 @@ export class AddressLabeller implements IAddressLabeller { |
44 | 33 | return this.#labels.asRecord(); |
45 | 34 | } |
46 | 35 | } |
47 | | - |
48 | | -/** |
49 | | - * This method is using sdk-gov, and is not part of the interface, so it'll be easier to remove it once we get rid of sdk-gov |
50 | | - * @param labeller |
51 | | - * @param network |
52 | | - */ |
53 | | -export function initLegacyLabels( |
54 | | - labeller: IAddressLabeller, |
55 | | - network: NetworkType, |
56 | | -): void { |
57 | | - Object.entries(tokenDataByNetwork[network]).forEach(([label, address]) => { |
58 | | - labeller.set(address, label); |
59 | | - }); |
60 | | - |
61 | | - Object.entries(tickerTokensByNetwork[network]).forEach(([label, address]) => { |
62 | | - labeller.set(address, label); |
63 | | - }); |
64 | | - |
65 | | - Object.entries(contractsByNetwork[network]).forEach(([label, address]) => { |
66 | | - labeller.set(address, label); |
67 | | - }); |
68 | | - |
69 | | - const multisigs = [ |
70 | | - { safe: MULTISIG, label: "Multisig" }, |
71 | | - { safe: ROUTER_MULTISIG_ADDRESS, label: "RouterMultisig" }, |
72 | | - { safe: VETO_ADMIN, label: "VetoAdmin" }, |
73 | | - { safe: TREASURY, label: "Treasury" }, |
74 | | - ]; |
75 | | - |
76 | | - multisigs.forEach(({ safe, label }) => { |
77 | | - labeller.set(safe[network], label); |
78 | | - }); |
79 | | - |
80 | | - emergencyLiquidators.forEach(address => { |
81 | | - labeller.set(address, "EmergencyLiquidator"); |
82 | | - }); |
83 | | -} |
0 commit comments