pub struct Blueprint<C: HasTypeInfo>(PhantomData<C>);
Tuple Fields§
§0: PhantomData<C>
Implementations§
source§impl<C: HasTypeInfo> Blueprint<C>
impl<C: HasTypeInfo> Blueprint<C>
pub fn call_function<A: ScryptoEncode, T: ScryptoDecode>( function_name: &str, args: A ) -> T
pub fn call_function_raw<T: ScryptoDecode>( function_name: &str, args: Vec<u8> ) -> T
Trait Implementations§
source§impl AccountFunctions for Blueprint<Account>
impl AccountFunctions for Blueprint<Account>
source§impl ConsensusManagerFunctions for Blueprint<ConsensusManager>
impl ConsensusManagerFunctions for Blueprint<ConsensusManager>
fn create( validator_owner_token_address: GlobalAddressReservation, component_address: GlobalAddressReservation, initial_epoch: Epoch, initial_config: ConsensusManagerConfig, initial_time_ms: i64, initial_current_leader: Option<u8> )
source§impl FaucetFunctions for Blueprint<Faucet>
impl FaucetFunctions for Blueprint<Faucet>
source§impl IdentityFunctions for Blueprint<Identity>
impl IdentityFunctions for Blueprint<Identity>
source§impl MultiResourcePoolFunctions for Blueprint<MultiResourcePool>
impl MultiResourcePoolFunctions for Blueprint<MultiResourcePool>
fn instantiate( owner_role: OwnerRole, pool_manager_rule: AccessRule, resource_addresses: Vec<ResourceAddress>, address_reservation: Option<GlobalAddressReservation> ) -> Global<MultiResourcePool>
source§impl OneResourcePoolFunctions for Blueprint<OneResourcePool>
impl OneResourcePoolFunctions for Blueprint<OneResourcePool>
fn instantiate( owner_role: OwnerRole, pool_manager_rule: AccessRule, resource_address: ResourceAddress, address_reservation: Option<GlobalAddressReservation> ) -> Global<OneResourcePool>
source§impl TwoResourcePoolFunctions for Blueprint<TwoResourcePool>
impl TwoResourcePoolFunctions for Blueprint<TwoResourcePool>
fn instantiate( owner_role: OwnerRole, pool_manager_rule: AccessRule, resource_addresses: (ResourceAddress, ResourceAddress), address_reservation: Option<GlobalAddressReservation> ) -> Global<TwoResourcePool>
impl ValidatorFunctions for Blueprint<Validator>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Blueprint<C>where
C: RefUnwindSafe,
impl<C> Send for Blueprint<C>where
C: Send,
impl<C> Sync for Blueprint<C>where
C: Sync,
impl<C> Unpin for Blueprint<C>where
C: Unpin,
impl<C> UnwindSafe for Blueprint<C>where
C: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
Mutably borrows from an owned value. Read more