File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
apps/portal/src/app/typescript/v5
packages/thirdweb/scripts Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,35 @@ export const sidebar: SideBar = {
284284 } ;
285285 } ) || [ ] ,
286286 } ,
287+ {
288+ name : "Onramp" ,
289+ links :
290+ docs . functions
291+ ?. filter ( ( f ) => {
292+ const [ tag ] = getCustomTag ( f ) || [ ] ;
293+ if ( tag !== "@bridge" ) return false ;
294+ const blockTag = f . signatures ?. [ 0 ] ?. blockTags ?. find (
295+ ( b ) => b . tag === "@bridge" ,
296+ ) ;
297+ const extensionName = blockTag
298+ ? getExtensionName ( blockTag ) || "Common"
299+ : "Common" ;
300+ if ( extensionName !== "Onramp" ) return false ;
301+ return true ;
302+ } )
303+ . map ( ( f ) => {
304+ const blockTag = f . signatures ?. [ 0 ] ?. blockTags ?. find (
305+ ( b ) => b . tag === "@bridge" ,
306+ ) ;
307+ const extensionName = blockTag
308+ ? getExtensionName ( blockTag ) || "Common"
309+ : "Common" ;
310+ return {
311+ name : f . name ,
312+ href : `${ slug } /${ extensionName . toLowerCase ( ) } /${ f . name } ` ,
313+ } ;
314+ } ) || [ ] ,
315+ } ,
287316 ...( docs . functions
288317 ?. filter ( ( f ) => {
289318 const [ tag ] = getCustomTag ( f ) || [ ] ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const app = await Application.bootstrapWithPlugins({
1313 "src/bridge/index.ts" ,
1414 "src/bridge/Buy.ts" ,
1515 "src/bridge/Sell.ts" ,
16+ "src/bridge/Onramp.ts" ,
1617 "src/insight/index.ts" ,
1718 "src/engine/index.ts" ,
1819 ] ,
You can’t perform that action at this time.
0 commit comments