sui_rpc_api/proto/rpc/v2beta/
execute_transaction.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use super::{ExecuteTransactionRequest, ExecuteTransactionResponse, ExecutedTransaction};
use crate::message::{MessageField, MessageFields};

impl ExecuteTransactionResponse {
    pub const FINALITY_FIELD: &'static MessageField = &MessageField::new("finality");
    pub const TRANSACTION_FIELD: &'static MessageField =
        &MessageField::new("transaction").with_message_fields(ExecutedTransaction::FIELDS);
}

impl MessageFields for ExecuteTransactionResponse {
    const FIELDS: &'static [&'static MessageField] =
        &[Self::FINALITY_FIELD, Self::TRANSACTION_FIELD];
}

impl ExecuteTransactionRequest {
    pub const READ_MASK_DEFAULT: &str = "finality";
}