Module User_command.Signed_command

type t = {
command_type : string;
fee_payer_id : int;
source_id : int;
receiver_id : int;
nonce : int64;
amount : string option;
fee : string;
valid_until : int64 option;
memo : string;
hash : string;
}
val to_hlist : t -> ( unit, string -> int -> int -> int -> int64 -> string option -> string -> int64 option -> string -> string -> unit ) H_list.t
val of_hlist : ( unit, string -> int -> int -> int -> int64 -> string option -> string -> int64 option -> string -> string -> unit ) H_list.t -> t
val hash : t -> string
val memo : t -> string
val valid_until : t -> int64 option
val fee : t -> string
val amount : t -> string option
val nonce : t -> int64
val receiver_id : t -> int
val source_id : t -> int
val fee_payer_id : t -> int
val command_type : t -> string
module Fields : sig ... end
val typ : t Caqti_type.t
val table_name : string
val find : (module Caqti_async.CONNECTION) -> transaction_hash:Mina_transaction.Transaction_hash.t -> ( int option, [> Caqti_error.call_or_retrieve ] ) Stdlib.result Async_kernel.Deferred.t
val load : (module Caqti_async.CONNECTION) -> id:int -> ( t, [> Caqti_error.call_or_retrieve ] ) Stdlib.result Async_kernel.Deferred.t
type balance_public_key_ids = {
fee_payer_id : int;
source_id : int;
receiver_id : int;
}
val add_account_ids_if_don't_exist : (module Caqti_async.CONNECTION) -> Mina_base.Signed_command.t -> ( balance_public_key_ids, [> Caqti_error.call_or_retrieve ] ) Async_kernel__Deferred_result.t
val add_if_doesn't_exist : ?via:[< `Ident | `Zkapp_command Ident ] -> (module Caqti_async.CONNECTION) -> Mina_base.Signed_command.t -> ( int, [> Caqti_error.call_or_retrieve ] ) Async_kernel__Deferred_result.t
val add_extensional_if_doesn't_exist : (module Caqti_async.CONNECTION) -> Extensional.User_command.t -> ( int, [> Caqti_error.call_or_retrieve ] ) Async_kernel__Deferred_result.t