@ -433,6 +433,24 @@ func local_request_SwapClient_GetLsatTokens_0(ctx context.Context, marshaler run
}
}
func request_SwapClient_GetInfo_0 ( ctx context . Context , marshaler runtime . Marshaler , client SwapClientClient , req * http . Request , pathParams map [ string ] string ) ( proto . Message , runtime . ServerMetadata , error ) {
var protoReq GetInfoRequest
var metadata runtime . ServerMetadata
msg , err := client . GetInfo ( ctx , & protoReq , grpc . Header ( & metadata . HeaderMD ) , grpc . Trailer ( & metadata . TrailerMD ) )
return msg , metadata , err
}
func local_request_SwapClient_GetInfo_0 ( ctx context . Context , marshaler runtime . Marshaler , server SwapClientServer , req * http . Request , pathParams map [ string ] string ) ( proto . Message , runtime . ServerMetadata , error ) {
var protoReq GetInfoRequest
var metadata runtime . ServerMetadata
msg , err := server . GetInfo ( ctx , & protoReq )
return msg , metadata , err
}
func request_SwapClient_GetLiquidityParams_0 ( ctx context . Context , marshaler runtime . Marshaler , client SwapClientClient , req * http . Request , pathParams map [ string ] string ) ( proto . Message , runtime . ServerMetadata , error ) {
func request_SwapClient_GetLiquidityParams_0 ( ctx context . Context , marshaler runtime . Marshaler , client SwapClientClient , req * http . Request , pathParams map [ string ] string ) ( proto . Message , runtime . ServerMetadata , error ) {
var protoReq GetLiquidityParamsRequest
var protoReq GetLiquidityParamsRequest
var metadata runtime . ServerMetadata
var metadata runtime . ServerMetadata
@ -739,6 +757,29 @@ func RegisterSwapClientHandlerServer(ctx context.Context, mux *runtime.ServeMux,
} )
} )
mux . Handle ( "GET" , pattern_SwapClient_GetInfo_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
ctx , cancel := context . WithCancel ( req . Context ( ) )
defer cancel ( )
var stream runtime . ServerTransportStream
ctx = grpc . NewContextWithServerTransportStream ( ctx , & stream )
inboundMarshaler , outboundMarshaler := runtime . MarshalerForRequest ( mux , req )
rctx , err := runtime . AnnotateIncomingContext ( ctx , mux , req , "/looprpc.SwapClient/GetInfo" , runtime . WithHTTPPathPattern ( "/v1/loop/info" ) )
if err != nil {
runtime . HTTPError ( ctx , mux , outboundMarshaler , w , req , err )
return
}
resp , md , err := local_request_SwapClient_GetInfo_0 ( rctx , inboundMarshaler , server , req , pathParams )
md . HeaderMD , md . TrailerMD = metadata . Join ( md . HeaderMD , stream . Header ( ) ) , metadata . Join ( md . TrailerMD , stream . Trailer ( ) )
ctx = runtime . NewServerMetadataContext ( ctx , md )
if err != nil {
runtime . HTTPError ( ctx , mux , outboundMarshaler , w , req , err )
return
}
forward_SwapClient_GetInfo_0 ( ctx , mux , outboundMarshaler , w , req , resp , mux . GetForwardResponseOptions ( ) ... )
} )
mux . Handle ( "GET" , pattern_SwapClient_GetLiquidityParams_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
mux . Handle ( "GET" , pattern_SwapClient_GetLiquidityParams_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
ctx , cancel := context . WithCancel ( req . Context ( ) )
ctx , cancel := context . WithCancel ( req . Context ( ) )
defer cancel ( )
defer cancel ( )
@ -1049,6 +1090,26 @@ func RegisterSwapClientHandlerClient(ctx context.Context, mux *runtime.ServeMux,
} )
} )
mux . Handle ( "GET" , pattern_SwapClient_GetInfo_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
ctx , cancel := context . WithCancel ( req . Context ( ) )
defer cancel ( )
inboundMarshaler , outboundMarshaler := runtime . MarshalerForRequest ( mux , req )
rctx , err := runtime . AnnotateContext ( ctx , mux , req , "/looprpc.SwapClient/GetInfo" , runtime . WithHTTPPathPattern ( "/v1/loop/info" ) )
if err != nil {
runtime . HTTPError ( ctx , mux , outboundMarshaler , w , req , err )
return
}
resp , md , err := request_SwapClient_GetInfo_0 ( rctx , inboundMarshaler , client , req , pathParams )
ctx = runtime . NewServerMetadataContext ( ctx , md )
if err != nil {
runtime . HTTPError ( ctx , mux , outboundMarshaler , w , req , err )
return
}
forward_SwapClient_GetInfo_0 ( ctx , mux , outboundMarshaler , w , req , resp , mux . GetForwardResponseOptions ( ) ... )
} )
mux . Handle ( "GET" , pattern_SwapClient_GetLiquidityParams_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
mux . Handle ( "GET" , pattern_SwapClient_GetLiquidityParams_0 , func ( w http . ResponseWriter , req * http . Request , pathParams map [ string ] string ) {
ctx , cancel := context . WithCancel ( req . Context ( ) )
ctx , cancel := context . WithCancel ( req . Context ( ) )
defer cancel ( )
defer cancel ( )
@ -1133,6 +1194,8 @@ var (
pattern_SwapClient_GetLsatTokens_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "lsat" , "tokens" } , "" ) )
pattern_SwapClient_GetLsatTokens_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "lsat" , "tokens" } , "" ) )
pattern_SwapClient_GetInfo_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "loop" , "info" } , "" ) )
pattern_SwapClient_GetLiquidityParams_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "liquidity" , "params" } , "" ) )
pattern_SwapClient_GetLiquidityParams_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "liquidity" , "params" } , "" ) )
pattern_SwapClient_SetLiquidityParams_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "liquidity" , "params" } , "" ) )
pattern_SwapClient_SetLiquidityParams_0 = runtime . MustPattern ( runtime . NewPattern ( 1 , [ ] int { 2 , 0 , 2 , 1 , 2 , 2 } , [ ] string { "v1" , "liquidity" , "params" } , "" ) )
@ -1161,6 +1224,8 @@ var (
forward_SwapClient_GetLsatTokens_0 = runtime . ForwardResponseMessage
forward_SwapClient_GetLsatTokens_0 = runtime . ForwardResponseMessage
forward_SwapClient_GetInfo_0 = runtime . ForwardResponseMessage
forward_SwapClient_GetLiquidityParams_0 = runtime . ForwardResponseMessage
forward_SwapClient_GetLiquidityParams_0 = runtime . ForwardResponseMessage
forward_SwapClient_SetLiquidityParams_0 = runtime . ForwardResponseMessage
forward_SwapClient_SetLiquidityParams_0 = runtime . ForwardResponseMessage