#[repr(C)]pub struct TransferWithFeeInstructionData {
pub new_source_decryptable_available_balance: DecryptableBalance,
pub equality_proof_instruction_offset: i8,
pub transfer_amount_ciphertext_validity_proof_instruction_offset: i8,
pub fee_sigma_proof_instruction_offset: i8,
pub fee_ciphertext_validity_proof_instruction_offset: i8,
pub range_proof_instruction_offset: i8,
}
Expand description
Data expected by ConfidentialTransferInstruction::TransferWithFee
Fields§
§new_source_decryptable_available_balance: DecryptableBalance
The new source decryptable balance if the transfer succeeds
equality_proof_instruction_offset: i8
Relative location of the
ProofInstruction::VerifyCiphertextCommitmentEquality
instruction
to the TransferWithFee
instruction in the transaction. If the offset
is 0
, then use a context state account for the proof.
transfer_amount_ciphertext_validity_proof_instruction_offset: i8
Relative location of the
ProofInstruction::VerifyBatchedGroupedCiphertext3HandlesValidity
instruction to the TransferWithFee
instruction in the transaction.
If the offset is 0
, then use a context state account for the
proof.
fee_sigma_proof_instruction_offset: i8
Relative location of the ProofInstruction::VerifyPercentageWithFee
instruction to the TransferWithFee
instruction in the transaction.
If the offset is 0
, then use a context state account for the
proof.
fee_ciphertext_validity_proof_instruction_offset: i8
Relative location of the
ProofInstruction::VerifyBatchedGroupedCiphertext2HandlesValidity
instruction to the TransferWithFee
instruction in the transaction.
If the offset is 0
, then use a context state account for the
proof.
range_proof_instruction_offset: i8
Relative location of the ProofInstruction::BatchedRangeProofU256Data
instruction to the TransferWithFee
instruction in the transaction.
If the offset is 0
, then use a context state account for the
proof.
Trait Implementations§
Source§impl Clone for TransferWithFeeInstructionData
impl Clone for TransferWithFeeInstructionData
Source§fn clone(&self) -> TransferWithFeeInstructionData
fn clone(&self) -> TransferWithFeeInstructionData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl PartialEq for TransferWithFeeInstructionData
impl PartialEq for TransferWithFeeInstructionData
Source§fn eq(&self, other: &TransferWithFeeInstructionData) -> bool
fn eq(&self, other: &TransferWithFeeInstructionData) -> bool
self
and other
values to be equal, and is used by ==
.impl Copy for TransferWithFeeInstructionData
impl Pod for TransferWithFeeInstructionData
impl StructuralPartialEq for TransferWithFeeInstructionData
Auto Trait Implementations§
impl Freeze for TransferWithFeeInstructionData
impl RefUnwindSafe for TransferWithFeeInstructionData
impl Send for TransferWithFeeInstructionData
impl Sync for TransferWithFeeInstructionData
impl Unpin for TransferWithFeeInstructionData
impl UnwindSafe for TransferWithFeeInstructionData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more