pub struct Publisher<Chain: CwEnv> { /* private fields */ }
Expand description
A Publisher represents an account that owns a namespace with the goal of publishing modules to the on-chain module-store.
Implementations§
Source§impl<Chain: CwEnv> Publisher<Chain>
impl<Chain: CwEnv> Publisher<Chain>
Sourcepub fn new(account: &Account<Chain>) -> Result<Self, AbstractClientError>
pub fn new(account: &Account<Chain>) -> Result<Self, AbstractClientError>
New publisher from account. We check that the account has an associated namespace.
If you create a publisher from an account without a namespace, use Self::new_with_namespace
to claim it
Sourcepub fn new_with_namespace(
account: Account<Chain>,
namespace: &str,
) -> Result<Self, AbstractClientError>
pub fn new_with_namespace( account: Account<Chain>, namespace: &str, ) -> Result<Self, AbstractClientError>
New publisher from account and namespace Claim the namespace from the account
Sourcepub fn publish_app<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + AppDeployer<Chain>>(
&self,
) -> Result<(), AbstractClientError>
pub fn publish_app<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + AppDeployer<Chain>>( &self, ) -> Result<(), AbstractClientError>
Publish an Abstract App
Sourcepub fn publish_standalone<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + StandaloneDeployer<Chain>>(
&self,
) -> Result<(), AbstractClientError>
pub fn publish_standalone<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + StandaloneDeployer<Chain>>( &self, ) -> Result<(), AbstractClientError>
Publish an Abstract Standalone
Sourcepub fn publish_adapter<CustomInitMsg: Serialize, M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + AdapterDeployer<Chain, CustomInitMsg>>(
&self,
init_msg: CustomInitMsg,
) -> Result<M, AbstractClientError>
pub fn publish_adapter<CustomInitMsg: Serialize, M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + AdapterDeployer<Chain, CustomInitMsg>>( &self, init_msg: CustomInitMsg, ) -> Result<M, AbstractClientError>
Publish an Abstract Adapter
Sourcepub fn publish_service<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + ServiceDeployer<Chain>>(
&self,
init_msg: &<M as InstantiableContract>::InstantiateMsg,
) -> Result<(), AbstractClientError>
pub fn publish_service<M: ContractInstance<Chain> + RegisteredModule + From<Contract<Chain>> + ServiceDeployer<Chain>>( &self, init_msg: &<M as InstantiableContract>::InstantiateMsg, ) -> Result<(), AbstractClientError>
Publish an Abstract Service
Auto Trait Implementations§
impl<Chain> Freeze for Publisher<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for Publisher<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for Publisher<Chain>where
Chain: Send,
impl<Chain> Sync for Publisher<Chain>where
Chain: Sync,
impl<Chain> Unpin for Publisher<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for Publisher<Chain>where
Chain: UnwindSafe,
Blanket Implementations§
Source§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more