Trait dash_sdk::platform::transition::put_contract::PutContract
source · pub trait PutContract<S: Signer> {
// Required methods
fn put_to_platform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
settings: Option<PutSettings>,
) -> Pin<Box<dyn Future<Output = Result<StateTransition, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn wait_for_response<'life0, 'life1, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
state_transition: StateTransition,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
A trait for putting a contract to platform
Required Methods§
sourcefn put_to_platform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
settings: Option<PutSettings>,
) -> Pin<Box<dyn Future<Output = Result<StateTransition, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_to_platform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
settings: Option<PutSettings>,
) -> Pin<Box<dyn Future<Output = Result<StateTransition, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Puts a document on platform
setting settings to None
sets default connection behavior
sourcefn wait_for_response<'life0, 'life1, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
state_transition: StateTransition,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_response<'life0, 'life1, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
state_transition: StateTransition,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Waits for the response of a state transition after it has been broadcast
sourcefn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
identity_public_key: IdentityPublicKey,
signer: &'life2 S,
) -> Pin<Box<dyn Future<Output = Result<DataContract, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Puts a contract on platform and waits for the confirmation proof