sui_rpc_api/
read_mask_defaults.rs

1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4/// Default read mask for a transaction (`get_transaction`, `list_transactions`).
5pub const TRANSACTION: &str = "digest";
6
7/// Default read mask for a checkpoint (`get_checkpoint`, `list_checkpoints`).
8pub const CHECKPOINT: &str = "sequence_number,digest";
9
10/// Default read mask for an event (`list_events`; there is no `get_events`).
11pub const EVENT: &str = "event_type";
12
13/// Default read mask for an epoch (`get_epoch`; there is no `list_epochs`).
14pub const EPOCH: &str = "epoch,first_checkpoint,last_checkpoint,start,end,reference_gas_price,protocol_config.protocol_version";
15
16/// Default read mask for an object (`get_object`).
17pub const OBJECT: &str = "object_id,version,digest";
18
19/// Default read mask for an owned-object listing (`list_owned_objects`).
20pub const OWNED_OBJECT: &str = "object_id,version,object_type";
21
22/// Default read mask for a dynamic-field listing (`list_dynamic_fields`).
23pub const DYNAMIC_FIELD: &str = "parent,field_id";
24
25/// Default read mask for transaction execution (`ExecuteTransaction`).
26pub const EXECUTE_TRANSACTION: &str = "effects";