encode_object_ref

Function encode_object_ref 

Source
pub fn encode_object_ref(
    unmasked_object_id: ObjectID,
    version: SequenceNumber,
    epoch: EpochId,
    balance: u64,
    chain_identifier: ChainIdentifier,
) -> ObjectRef
Expand description

Creates a fake ObjectRef representing an address balance, suitable for returning from JSON-RPC APIs to backward-compatible clients. The object_id is masked with the chain identifier to prevent cross-chain replay.