@@ -109,7 +109,7 @@ function modifyParametersForPlayground(_parameters: BlueprintParameter[]) {
109109 const parameters = [ ..._parameters ] ;
110110
111111 // make chain query param required - its not required in open api spec - because it either has to be set in subdomain or as a query param
112- const chainIdParameter = parameters . find ( ( p ) => p . name === "chain " ) ;
112+ const chainIdParameter = parameters . find ( ( p ) => p . name === "chain_id " ) ;
113113 if ( chainIdParameter ) {
114114 chainIdParameter . required = true ;
115115 }
@@ -122,6 +122,12 @@ function modifyParametersForPlayground(_parameters: BlueprintParameter[]) {
122122 parameters . splice ( clientIdParameterIndex , 1 ) ;
123123 }
124124
125+ // remove the chain parameter if it is present
126+ const chainParameterIndex = parameters . findIndex ( ( p ) => p . name === "chain" ) ;
127+ if ( chainParameterIndex !== - 1 ) {
128+ parameters . splice ( chainParameterIndex , 1 ) ;
129+ }
130+
125131 return parameters ;
126132}
127133
@@ -163,7 +169,7 @@ function BlueprintPlaygroundUI(props: {
163169 values [ param . name ] = Math . floor (
164170 ( Date . now ( ) - 3 * 30 * 24 * 60 * 60 * 1000 ) / 1000 ,
165171 ) ;
166- } else if ( param . name === "chain " ) {
172+ } else if ( param . name === "chain_id " ) {
167173 values [ param . name ] = [ ] ;
168174 } else {
169175 values [ param . name ] = "" ;
@@ -466,7 +472,7 @@ function ParameterSection(props: {
466472 key = { param . name }
467473 className = { cn (
468474 "grid items-center" ,
469- param . name === "chain "
475+ param . name === "chain_id "
470476 ? "grid-cols-1 lg:grid-cols-2"
471477 : "grid-cols-2" ,
472478 ) }
@@ -485,14 +491,14 @@ function ParameterSection(props: {
485491 ) }
486492 </ div >
487493 < div className = "relative" >
488- { param . name === "chain " ? (
494+ { param . name === "chain_id " ? (
489495 < MultiNetworkSelector
490496 selectedBadgeClassName = "bg-background"
491497 selectedChainIds = {
492- props . form . watch ( "chain " ) as number [ ]
498+ props . form . watch ( "chain_id " ) as number [ ]
493499 }
494500 onChange = { ( chainIds ) => {
495- props . form . setValue ( "chain " , chainIds , {
501+ props . form . setValue ( "chain_id " , chainIds , {
496502 shouldValidate : true ,
497503 shouldDirty : true ,
498504 } ) ;
@@ -821,6 +827,9 @@ function openAPIV3ParamToZodFormSchema(
821827function createParametersFormSchema ( parameters : BlueprintParameter [ ] ) {
822828 const shape : z . ZodRawShape = { } ;
823829 for ( const param of parameters ) {
830+ if ( param . deprecated ) {
831+ continue ;
832+ }
824833 const paramSchema = openAPIV3ParamToZodFormSchema (
825834 param . schema ,
826835 ! ! param . required ,
0 commit comments