@@ -151,6 +151,10 @@ static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, gl
151
151
[ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
152
152
static readonly grpc ::Marshaller < global ::Land . Gno . Gnonative . V1 . MakeTxResponse > __Marshaller_land_gno_gnonative_v1_MakeTxResponse = grpc ::Marshallers . Create ( __Helper_SerializeMessage , context => __Helper_DeserializeMessage ( context , global ::Land . Gno . Gnonative . V1 . MakeTxResponse . Parser ) ) ;
153
153
[ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
154
+ static readonly grpc ::Marshaller < global ::Land . Gno . Gnonative . V1 . EstimateGasRequest > __Marshaller_land_gno_gnonative_v1_EstimateGasRequest = grpc ::Marshallers . Create ( __Helper_SerializeMessage , context => __Helper_DeserializeMessage ( context , global ::Land . Gno . Gnonative . V1 . EstimateGasRequest . Parser ) ) ;
155
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
156
+ static readonly grpc ::Marshaller < global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > __Marshaller_land_gno_gnonative_v1_EstimateGasResponse = grpc ::Marshallers . Create ( __Helper_SerializeMessage , context => __Helper_DeserializeMessage ( context , global ::Land . Gno . Gnonative . V1 . EstimateGasResponse . Parser ) ) ;
157
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
154
158
static readonly grpc ::Marshaller < global ::Land . Gno . Gnonative . V1 . SignTxRequest > __Marshaller_land_gno_gnonative_v1_SignTxRequest = grpc ::Marshallers . Create ( __Helper_SerializeMessage , context => __Helper_DeserializeMessage ( context , global ::Land . Gno . Gnonative . V1 . SignTxRequest . Parser ) ) ;
155
159
[ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
156
160
static readonly grpc ::Marshaller < global ::Land . Gno . Gnonative . V1 . SignTxResponse > __Marshaller_land_gno_gnonative_v1_SignTxResponse = grpc ::Marshallers . Create ( __Helper_SerializeMessage , context => __Helper_DeserializeMessage ( context , global ::Land . Gno . Gnonative . V1 . SignTxResponse . Parser ) ) ;
@@ -403,6 +407,14 @@ static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, gl
403
407
__Marshaller_land_gno_gnonative_v1_RunRequest ,
404
408
__Marshaller_land_gno_gnonative_v1_MakeTxResponse ) ;
405
409
410
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
411
+ static readonly grpc ::Method < global ::Land . Gno . Gnonative . V1 . EstimateGasRequest , global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > __Method_EstimateGas = new grpc ::Method < global ::Land . Gno . Gnonative . V1 . EstimateGasRequest , global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > (
412
+ grpc ::MethodType . Unary ,
413
+ __ServiceName ,
414
+ "EstimateGas" ,
415
+ __Marshaller_land_gno_gnonative_v1_EstimateGasRequest ,
416
+ __Marshaller_land_gno_gnonative_v1_EstimateGasResponse ) ;
417
+
406
418
[ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
407
419
static readonly grpc ::Method < global ::Land . Gno . Gnonative . V1 . SignTxRequest , global ::Land . Gno . Gnonative . V1 . SignTxResponse > __Method_SignTx = new grpc ::Method < global ::Land . Gno . Gnonative . V1 . SignTxRequest , global ::Land . Gno . Gnonative . V1 . SignTxResponse > (
408
420
grpc ::MethodType . Unary ,
@@ -857,6 +869,19 @@ public abstract partial class GnoNativeServiceBase
857
869
throw new grpc ::RpcException ( new grpc ::Status ( grpc ::StatusCode . Unimplemented , "" ) ) ;
858
870
}
859
871
872
+ /// <summary>
873
+ /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
874
+ /// If UpdateTx is true, then update the transaction with the gasWanted amount.
875
+ /// </summary>
876
+ /// <param name="request">The request received from the client.</param>
877
+ /// <param name="context">The context of the server-side call handler being invoked.</param>
878
+ /// <returns>The response to send back to the client (wrapped by a task).</returns>
879
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
880
+ public virtual global ::System . Threading . Tasks . Task < global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > EstimateGas ( global ::Land . Gno . Gnonative . V1 . EstimateGasRequest request , grpc ::ServerCallContext context )
881
+ {
882
+ throw new grpc ::RpcException ( new grpc ::Status ( grpc ::StatusCode . Unimplemented , "" ) ) ;
883
+ }
884
+
860
885
/// <summary>
861
886
/// Sign the transaction using the account with the given address.
862
887
/// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
@@ -2427,6 +2452,58 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c
2427
2452
return CallInvoker . AsyncUnaryCall ( __Method_MakeRunTx , null , options , request ) ;
2428
2453
}
2429
2454
/// <summary>
2455
+ /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
2456
+ /// If UpdateTx is true, then update the transaction with the gasWanted amount.
2457
+ /// </summary>
2458
+ /// <param name="request">The request to send to the server.</param>
2459
+ /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
2460
+ /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
2461
+ /// <param name="cancellationToken">An optional token for canceling the call.</param>
2462
+ /// <returns>The response received from the server.</returns>
2463
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
2464
+ public virtual global ::Land . Gno . Gnonative . V1 . EstimateGasResponse EstimateGas ( global ::Land . Gno . Gnonative . V1 . EstimateGasRequest request , grpc ::Metadata headers = null , global ::System . DateTime ? deadline = null , global ::System . Threading . CancellationToken cancellationToken = default ( global ::System . Threading . CancellationToken ) )
2465
+ {
2466
+ return EstimateGas ( request , new grpc ::CallOptions ( headers , deadline , cancellationToken ) ) ;
2467
+ }
2468
+ /// <summary>
2469
+ /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
2470
+ /// If UpdateTx is true, then update the transaction with the gasWanted amount.
2471
+ /// </summary>
2472
+ /// <param name="request">The request to send to the server.</param>
2473
+ /// <param name="options">The options for the call.</param>
2474
+ /// <returns>The response received from the server.</returns>
2475
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
2476
+ public virtual global ::Land . Gno . Gnonative . V1 . EstimateGasResponse EstimateGas ( global ::Land . Gno . Gnonative . V1 . EstimateGasRequest request , grpc ::CallOptions options )
2477
+ {
2478
+ return CallInvoker . BlockingUnaryCall ( __Method_EstimateGas , null , options , request ) ;
2479
+ }
2480
+ /// <summary>
2481
+ /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
2482
+ /// If UpdateTx is true, then update the transaction with the gasWanted amount.
2483
+ /// </summary>
2484
+ /// <param name="request">The request to send to the server.</param>
2485
+ /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
2486
+ /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
2487
+ /// <param name="cancellationToken">An optional token for canceling the call.</param>
2488
+ /// <returns>The call object.</returns>
2489
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
2490
+ public virtual grpc ::AsyncUnaryCall < global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > EstimateGasAsync ( global ::Land . Gno . Gnonative . V1 . EstimateGasRequest request , grpc ::Metadata headers = null , global ::System . DateTime ? deadline = null , global ::System . Threading . CancellationToken cancellationToken = default ( global ::System . Threading . CancellationToken ) )
2491
+ {
2492
+ return EstimateGasAsync ( request , new grpc ::CallOptions ( headers , deadline , cancellationToken ) ) ;
2493
+ }
2494
+ /// <summary>
2495
+ /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin.
2496
+ /// If UpdateTx is true, then update the transaction with the gasWanted amount.
2497
+ /// </summary>
2498
+ /// <param name="request">The request to send to the server.</param>
2499
+ /// <param name="options">The options for the call.</param>
2500
+ /// <returns>The call object.</returns>
2501
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "grpc_csharp_plugin" , null ) ]
2502
+ public virtual grpc ::AsyncUnaryCall < global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > EstimateGasAsync ( global ::Land . Gno . Gnonative . V1 . EstimateGasRequest request , grpc ::CallOptions options )
2503
+ {
2504
+ return CallInvoker . AsyncUnaryCall ( __Method_EstimateGas , null , options , request ) ;
2505
+ }
2506
+ /// <summary>
2430
2507
/// Sign the transaction using the account with the given address.
2431
2508
/// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
2432
2509
/// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed.
@@ -2764,6 +2841,7 @@ protected override GnoNativeServiceClient NewInstance(ClientBaseConfiguration co
2764
2841
. AddMethod ( __Method_MakeCallTx , serviceImpl . MakeCallTx )
2765
2842
. AddMethod ( __Method_MakeSendTx , serviceImpl . MakeSendTx )
2766
2843
. AddMethod ( __Method_MakeRunTx , serviceImpl . MakeRunTx )
2844
+ . AddMethod ( __Method_EstimateGas , serviceImpl . EstimateGas )
2767
2845
. AddMethod ( __Method_SignTx , serviceImpl . SignTx )
2768
2846
. AddMethod ( __Method_BroadcastTxCommit , serviceImpl . BroadcastTxCommit )
2769
2847
. AddMethod ( __Method_AddressToBech32 , serviceImpl . AddressToBech32 )
@@ -2808,6 +2886,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GnoNativeS
2808
2886
serviceBinder . AddMethod ( __Method_MakeCallTx , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . CallRequest , global ::Land . Gno . Gnonative . V1 . MakeTxResponse > ( serviceImpl . MakeCallTx ) ) ;
2809
2887
serviceBinder . AddMethod ( __Method_MakeSendTx , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . SendRequest , global ::Land . Gno . Gnonative . V1 . MakeTxResponse > ( serviceImpl . MakeSendTx ) ) ;
2810
2888
serviceBinder . AddMethod ( __Method_MakeRunTx , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . RunRequest , global ::Land . Gno . Gnonative . V1 . MakeTxResponse > ( serviceImpl . MakeRunTx ) ) ;
2889
+ serviceBinder . AddMethod ( __Method_EstimateGas , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . EstimateGasRequest , global ::Land . Gno . Gnonative . V1 . EstimateGasResponse > ( serviceImpl . EstimateGas ) ) ;
2811
2890
serviceBinder . AddMethod ( __Method_SignTx , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . SignTxRequest , global ::Land . Gno . Gnonative . V1 . SignTxResponse > ( serviceImpl . SignTx ) ) ;
2812
2891
serviceBinder . AddMethod ( __Method_BroadcastTxCommit , serviceImpl == null ? null : new grpc ::ServerStreamingServerMethod < global ::Land . Gno . Gnonative . V1 . BroadcastTxCommitRequest , global ::Land . Gno . Gnonative . V1 . BroadcastTxCommitResponse > ( serviceImpl . BroadcastTxCommit ) ) ;
2813
2892
serviceBinder . AddMethod ( __Method_AddressToBech32 , serviceImpl == null ? null : new grpc ::UnaryServerMethod < global ::Land . Gno . Gnonative . V1 . AddressToBech32Request , global ::Land . Gno . Gnonative . V1 . AddressToBech32Response > ( serviceImpl . AddressToBech32 ) ) ;
0 commit comments