@@ -6,6 +6,7 @@ import { useCopyToClipboard } from "../utils/useCopyToClipboard";
66// SponsoredFeed interface has the same structure as defined in deployment yaml/json files
77interface SponsoredFeed {
88 alias : string ; // name of the feed
9+ account_address ?: string ; // optional, needed only for solana.
910 id : string ; // price feed id
1011 time_difference : number ; // in seconds
1112 price_deviation : number ;
@@ -117,6 +118,8 @@ export const SponsoredFeedsTable = ({
117118 ) ;
118119 const defaultParams = paramEntries . length > 0 ? paramEntries [ 0 ] [ 0 ] : "" ;
119120
121+ const hasAccountAddress = feeds . some ( ( feed ) => ! ! feed . account_address ) ;
122+
120123 return (
121124 < div className = "my-6" >
122125 < p className = "mb-3" >
@@ -158,6 +161,11 @@ export const SponsoredFeedsTable = ({
158161 < th className = "text-left px-3 py-2 font-semibold text-gray-900 dark:text-gray-100 border-b border-gray-200 dark:border-gray-600 min-w-[100px]" >
159162 Name
160163 </ th >
164+ { hasAccountAddress && (
165+ < th className = "text-left px-3 py-2 font-semibold text-gray-900 dark:text-gray-100 border-b border-gray-200 dark:border-gray-600 min-w-[400px]" >
166+ Account Address
167+ </ th >
168+ ) }
161169 < th className = "text-left px-3 py-2 font-semibold text-gray-900 dark:text-gray-100 border-b border-gray-200 dark:border-gray-600 min-w-[400px]" >
162170 Price Feed Id
163171 </ th >
@@ -181,6 +189,32 @@ export const SponsoredFeedsTable = ({
181189 { feed . alias }
182190 </ span >
183191 </ td >
192+ { hasAccountAddress && (
193+ < td className = "px-3 py-2 align-top" >
194+ { feed . account_address ? (
195+ < div className = "flex items-start gap-2" >
196+ < code className = "text-xs font-mono text-gray-600 dark:text-gray-400 flex-1 break-all leading-relaxed" >
197+ { feed . account_address }
198+ </ code >
199+ < button
200+ onClick = { ( ) =>
201+ copyToClipboard ( feed . account_address )
202+ }
203+ className = "p-1 hover:bg-gray-200 dark:hover:bg-gray-600 rounded flex-shrink-0 mt-0.5"
204+ title = "Copy Account Address"
205+ >
206+ { copiedText === feed . account_address ? (
207+ < span className = "text-green-500 text-xs font-bold" >
208+ ✓
209+ </ span >
210+ ) : (
211+ < CopyIcon className = "w-3 h-3 text-gray-400" />
212+ ) }
213+ </ button >
214+ </ div >
215+ ) : null }
216+ </ td >
217+ ) }
184218 < td className = "px-3 py-2 align-top" >
185219 < div className = "flex items-start gap-2" >
186220 < code className = "text-xs font-mono text-gray-600 dark:text-gray-400 flex-1 break-all leading-relaxed" >
0 commit comments