@@ -5,6 +5,7 @@ import { useAtomValue } from 'jotai'
5
5
import { Address , decodeFunctionData , getAbiItem } from 'viem'
6
6
7
7
import dtfIndexAbi from '@/abis/dtf-index-abi'
8
+ import dtfAdminAbi from '@/abis/dtf-admin-abi'
8
9
import dtfIndexGovernance from '@/abis/dtf-index-governance'
9
10
import dtfIndexStakingVault from '@/abis/dtf-index-staking-vault'
10
11
import { Button } from '@/components/ui/button'
@@ -26,6 +27,10 @@ import { Abi, Hex } from 'viem'
26
27
import BasketProposalPreview from '../views/propose/basket/components/proposal-basket-preview'
27
28
import RawCallPreview from './proposal-preview/raw-call-preview'
28
29
import TokenRewardPreview from './proposal-preview/token-reward-preview'
30
+ import {
31
+ spellAbi as governanceSpell_31_03_2025Abi ,
32
+ spellAddress as governanceSpell_31_03_2025Address ,
33
+ } from '../views/propose/components/propose-governance-spell-31-03-2025'
29
34
30
35
const dtfAbiMapppingAtom = atom ( ( get ) => {
31
36
const dtf = get ( indexDTFAtom )
@@ -34,6 +39,7 @@ const dtfAbiMapppingAtom = atom((get) => {
34
39
35
40
const abiMapping : Record < string , Abi > = {
36
41
[ dtf . id . toLowerCase ( ) ] : dtfIndexAbi ,
42
+ [ dtf . proxyAdmin . toLowerCase ( ) ] : dtfAdminAbi ,
37
43
}
38
44
39
45
if ( dtf . ownerGovernance ) {
@@ -52,6 +58,11 @@ const dtfAbiMapppingAtom = atom((get) => {
52
58
}
53
59
}
54
60
61
+ if ( governanceSpell_31_03_2025Address [ dtf . chainId ] ) {
62
+ abiMapping [ governanceSpell_31_03_2025Address [ dtf . chainId ] . toLowerCase ( ) ] =
63
+ governanceSpell_31_03_2025Abi
64
+ }
65
+
55
66
return abiMapping
56
67
} )
57
68
@@ -62,6 +73,7 @@ const dtfContractAliasAtom = atom((get) => {
62
73
63
74
const aliasMapping : Record < string , string > = {
64
75
[ dtf . id . toLowerCase ( ) ] : 'Folio' ,
76
+ [ dtf . proxyAdmin . toLowerCase ( ) ] : 'ProxyAdmin' ,
65
77
}
66
78
67
79
if ( dtf . ownerGovernance ) {
@@ -80,6 +92,11 @@ const dtfContractAliasAtom = atom((get) => {
80
92
}
81
93
}
82
94
95
+ if ( governanceSpell_31_03_2025Address [ dtf . chainId ] ) {
96
+ aliasMapping [ governanceSpell_31_03_2025Address [ dtf . chainId ] . toLowerCase ( ) ] =
97
+ 'GovernanceSpell_31_03_2025'
98
+ }
99
+
83
100
return aliasMapping
84
101
} )
85
102
0 commit comments