Context.Contractval pp :
Stdlib.Format.formatter ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
unitval balance :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tReturns the balance of a contract, by default the main balance. If the contract is implicit the frozen balances are available too: deposit, fees or rewards.
val balance_and_frozen_bonds :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval staked_balance :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t option
Tezos_base.TzPervasives.tzresult
Lwt.tval unstaked_frozen_balance :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t option
Tezos_base.TzPervasives.tzresult
Lwt.tval unstaked_finalizable_balance :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t option
Tezos_base.TzPervasives.tzresult
Lwt.tval full_balance :
?__LOC__:string ->
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tCalls /chains/<chain_id>/blocks/<block_id>/contracts/<contract_id>/full_balance.
If the contract is a delegate, also calls /chains/<chain_id>/blocks/<block_id>/delegates/<contract_pkh>/own_full_balance and checks that both RPCs return the same value.
val staking_numerator :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Z.t Tezos_base.TzPervasives.tzresult Lwt.tval manager :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Account.t Tezos_base.TzPervasives.tzresult Lwt.tval is_manager_key_revealed :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
bool Tezos_base.TzPervasives.tzresult Lwt.tval delegate_opt :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash option
Tezos_base.TzPervasives.tzresult
Lwt.t