Struct move_core_types::effects::ChangeSet
source · pub struct ChangeSet { /* private fields */ }
Expand description
A collection of changes to a Move state. Each AccountChangeSet in the domain of accounts
is guaranteed to be nonempty
Implementations§
source§impl ChangeSet
impl ChangeSet
pub fn new() -> Self
pub fn accounts(&self) -> &BTreeMap<AccountAddress, AccountChangeSet>
pub fn into_inner(self) -> BTreeMap<AccountAddress, AccountChangeSet>
pub fn publish_or_overwrite_account_change_set( &mut self, addr: AccountAddress, account_change_set: AccountChangeSet )
pub fn publish_or_overwrite_module(&mut self, module_id: ModuleId, blob: Vec<u8>)
pub fn publish_module(&mut self, module_id: ModuleId, blob: Vec<u8>) -> Result<()>
pub fn unpublish_module(&mut self, module_id: ModuleId) -> Result<()>
pub fn publish_or_overwrite_resource( &mut self, addr: AccountAddress, struct_tag: StructTag, blob: Vec<u8> )
pub fn publish_resource( &mut self, addr: AccountAddress, struct_tag: StructTag, blob: Vec<u8> ) -> Result<()>
pub fn unpublish_resource( &mut self, addr: AccountAddress, struct_tag: StructTag ) -> Result<()>
pub fn squash(&mut self, other: Self) -> Result<()>
pub fn into_modules(self) -> impl Iterator<Item = (ModuleId, Option<Vec<u8>>)>
pub fn modules( &self ) -> impl Iterator<Item = (AccountAddress, &Identifier, Option<&[u8]>)>
pub fn resources( &self ) -> impl Iterator<Item = (AccountAddress, &StructTag, Option<&[u8]>)>
Trait Implementations§
source§impl Ord for ChangeSet
impl Ord for ChangeSet
source§impl PartialEq<ChangeSet> for ChangeSet
impl PartialEq<ChangeSet> for ChangeSet
source§impl PartialOrd<ChangeSet> for ChangeSet
impl PartialOrd<ChangeSet> for ChangeSet
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more