pub trait IdentityMoveCalls {
type Error;
type NativeTxBuilder;
Show 20 methods
// Required methods
fn propose_borrow(
identity: OwnedObjectRef,
capability: ObjectRef,
objects: Vec<ObjectID>,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_borrow<F: BorrowIntentFnInternalT<Self::NativeTxBuilder>>(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
objects: Vec<IotaObjectData>,
intent_fn: F,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn create_and_execute_borrow<F>(
identity: OwnedObjectRef,
capability: ObjectRef,
objects: Vec<IotaObjectData>,
intent_fn: F,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>
where F: BorrowIntentFnInternalT<Self::NativeTxBuilder>;
fn propose_config_change<I1, I2>(
identity: OwnedObjectRef,
controller_cap: ObjectRef,
expiration: Option<u64>,
threshold: Option<u64>,
controllers_to_add: I1,
controllers_to_remove: HashSet<ObjectID>,
controllers_to_update: I2,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>
where I1: IntoIterator<Item = (IotaAddress, u64)>,
I2: IntoIterator<Item = (ObjectID, u64)>;
fn execute_config_change(
identity: OwnedObjectRef,
controller_cap: ObjectRef,
proposal_id: ObjectID,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn propose_controller_execution(
identity: OwnedObjectRef,
capability: ObjectRef,
controller_cap_id: ObjectID,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_controller_execution<F: ControllerIntentFnInternalT<Self::NativeTxBuilder>>(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
borrowing_controller_cap_ref: ObjectRef,
intent_fn: F,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn create_and_execute_controller_execution<F>(
identity: OwnedObjectRef,
capability: ObjectRef,
expiration: Option<u64>,
borrowing_controller_cap_ref: ObjectRef,
intent_fn: F,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>
where F: ControllerIntentFnInternalT<Self::NativeTxBuilder>;
fn new_identity(
did_doc: &[u8],
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn new_with_controllers<C: IntoIterator<Item = (IotaAddress, u64)>>(
did_doc: &[u8],
controllers: C,
threshold: u64,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn propose_deactivation(
identity: OwnedObjectRef,
capability: ObjectRef,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_deactivation(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn approve_proposal<T: MoveType>(
identity: OwnedObjectRef,
controller_cap: ObjectRef,
proposal_id: ObjectID,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn propose_send(
identity: OwnedObjectRef,
capability: ObjectRef,
transfer_map: Vec<(ObjectID, IotaAddress)>,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_send(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
objects: Vec<(ObjectRef, TypeTag)>,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn propose_update(
identity: OwnedObjectRef,
capability: ObjectRef,
did_doc: impl AsRef<[u8]>,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_update(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn create_and_execute_send(
identity: OwnedObjectRef,
capability: ObjectRef,
transfer_map: Vec<(ObjectID, IotaAddress)>,
expiration: Option<u64>,
objects: Vec<(ObjectRef, TypeTag)>,
package: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn propose_upgrade(
identity: OwnedObjectRef,
capability: ObjectRef,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
fn execute_upgrade(
identity: OwnedObjectRef,
capability: ObjectRef,
proposal_id: ObjectID,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>;
}
Required Associated Types§
type Error
type NativeTxBuilder
Required Methods§
fn propose_borrow( identity: OwnedObjectRef, capability: ObjectRef, objects: Vec<ObjectID>, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_borrow<F: BorrowIntentFnInternalT<Self::NativeTxBuilder>>( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, objects: Vec<IotaObjectData>, intent_fn: F, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn create_and_execute_borrow<F>(
identity: OwnedObjectRef,
capability: ObjectRef,
objects: Vec<IotaObjectData>,
intent_fn: F,
expiration: Option<u64>,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>where
F: BorrowIntentFnInternalT<Self::NativeTxBuilder>,
fn propose_config_change<I1, I2>( identity: OwnedObjectRef, controller_cap: ObjectRef, expiration: Option<u64>, threshold: Option<u64>, controllers_to_add: I1, controllers_to_remove: HashSet<ObjectID>, controllers_to_update: I2, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_config_change( identity: OwnedObjectRef, controller_cap: ObjectRef, proposal_id: ObjectID, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn propose_controller_execution( identity: OwnedObjectRef, capability: ObjectRef, controller_cap_id: ObjectID, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_controller_execution<F: ControllerIntentFnInternalT<Self::NativeTxBuilder>>( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, borrowing_controller_cap_ref: ObjectRef, intent_fn: F, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn create_and_execute_controller_execution<F>(
identity: OwnedObjectRef,
capability: ObjectRef,
expiration: Option<u64>,
borrowing_controller_cap_ref: ObjectRef,
intent_fn: F,
package_id: ObjectID,
) -> Result<ProgrammableTransactionBcs, Self::Error>where
F: ControllerIntentFnInternalT<Self::NativeTxBuilder>,
fn new_identity( did_doc: &[u8], package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn new_with_controllers<C: IntoIterator<Item = (IotaAddress, u64)>>( did_doc: &[u8], controllers: C, threshold: u64, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn propose_deactivation( identity: OwnedObjectRef, capability: ObjectRef, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_deactivation( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn approve_proposal<T: MoveType>( identity: OwnedObjectRef, controller_cap: ObjectRef, proposal_id: ObjectID, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn propose_send( identity: OwnedObjectRef, capability: ObjectRef, transfer_map: Vec<(ObjectID, IotaAddress)>, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_send( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, objects: Vec<(ObjectRef, TypeTag)>, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn propose_update( identity: OwnedObjectRef, capability: ObjectRef, did_doc: impl AsRef<[u8]>, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_update( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn create_and_execute_send( identity: OwnedObjectRef, capability: ObjectRef, transfer_map: Vec<(ObjectID, IotaAddress)>, expiration: Option<u64>, objects: Vec<(ObjectRef, TypeTag)>, package: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn propose_upgrade( identity: OwnedObjectRef, capability: ObjectRef, expiration: Option<u64>, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
fn execute_upgrade( identity: OwnedObjectRef, capability: ObjectRef, proposal_id: ObjectID, package_id: ObjectID, ) -> Result<ProgrammableTransactionBcs, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.