pub trait ShieldTransitionMethodsV0 {
// Required method
async fn try_from_bundle_with_signer<S: Signer<PlatformAddress>>(
inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
actions: Vec<SerializedAction>,
amount: u64,
anchor: [u8; 32],
proof: Vec<u8>,
binding_signature: [u8; 64],
fee_strategy: AddressFundsFeeStrategy,
signer: &S,
user_fee_increase: UserFeeIncrease,
platform_version: &PlatformVersion,
) -> Result<StateTransition, ProtocolError>;
// Provided method
fn get_type() -> StateTransitionType { ... }
}Required Methods§
async fn try_from_bundle_with_signer<S: Signer<PlatformAddress>>( inputs: BTreeMap<PlatformAddress, (AddressNonce, Credits)>, actions: Vec<SerializedAction>, amount: u64, anchor: [u8; 32], proof: Vec<u8>, binding_signature: [u8; 64], fee_strategy: AddressFundsFeeStrategy, signer: &S, user_fee_increase: UserFeeIncrease, platform_version: &PlatformVersion, ) -> Result<StateTransition, ProtocolError>
Provided Methods§
Sourcefn get_type() -> StateTransitionType
fn get_type() -> StateTransitionType
Get State Transition Type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".