pub struct ProfilesMsg {}Expand description
ProfilesMsg is the builder to generate Desmos x/profiles messages.
Implementations§
Source§impl ProfilesMsg
impl ProfilesMsg
Sourcepub fn save_profile(
dtag: Option<&str>,
nickname: Option<&str>,
bio: Option<&str>,
profile_picture: Option<&str>,
cover_picture: Option<&str>,
creator: Addr,
) -> MsgSaveProfile
pub fn save_profile( dtag: Option<&str>, nickname: Option<&str>, bio: Option<&str>, profile_picture: Option<&str>, cover_picture: Option<&str>, creator: Addr, ) -> MsgSaveProfile
Creates an instance of MsgSaveProfile.
dtag- Unique profile tag, set None if editing the profile without modifying this field.nickname- Human readable name of the profile. It will not change the current profile nickname if set this field toNone.bio- Biography of the profile. It will not change the current profile bio if set this field toNone.profile_picture- URL to the profile picture. It will not change the current profile profile picture if set this field toNone.cover_picture- URL to the cover cover picture. It will not change the current profile cover picture if set this field toNone.creator- Address of which is creating the profile.
Sourcepub fn delete_profile(creator: Addr) -> MsgDeleteProfile
pub fn delete_profile(creator: Addr) -> MsgDeleteProfile
Creates an instance of MsgDeleteProfile.
creator- Address of the profile to delete.
Sourcepub fn request_dtag_transfer(
sender: Addr,
receiver: Addr,
) -> MsgRequestDTagTransfer
pub fn request_dtag_transfer( sender: Addr, receiver: Addr, ) -> MsgRequestDTagTransfer
Creates an instance of MsgRequestDTagTransfer.
sender- Address of who is going to send the DTag.receiver- Address of who is going to receive the DTag
Sourcepub fn accept_dtag_transfer_request(
new_dtag: &str,
sender: Addr,
receiver: Addr,
) -> MsgAcceptDTagTransferRequest
pub fn accept_dtag_transfer_request( new_dtag: &str, sender: Addr, receiver: Addr, ) -> MsgAcceptDTagTransferRequest
Creates an instance of MsgAcceptDTagTransferRequest.
new_dtag- The DTag to accept.sender- Address of who has sent the DTag.receiver- Address of who is receiving the DTag.
Sourcepub fn refuse_dtag_transfer_request(
sender: Addr,
receiver: Addr,
) -> MsgRefuseDTagTransferRequest
pub fn refuse_dtag_transfer_request( sender: Addr, receiver: Addr, ) -> MsgRefuseDTagTransferRequest
Creates an instance of MsgRefuseDTagTransferRequest.
sender- Address of who has started the DTag transfer.receiver- Address of who was supposed to receive the DTag.
Sourcepub fn cancel_dtag_transfer_request(
receiver: Addr,
sender: Addr,
) -> MsgCancelDTagTransferRequest
pub fn cancel_dtag_transfer_request( receiver: Addr, sender: Addr, ) -> MsgCancelDTagTransferRequest
Creates an instance of MsgCancelDTagTransferRequest.
receiver- Address of who was supposed to receive the DTag.sender- Address of who has started the DTag transfer.
Sourcepub fn link_chain_account(
chain_address: AddressData,
proof: Proof,
chain_config: ChainConfig,
signer: Addr,
) -> MsgLinkChainAccount
pub fn link_chain_account( chain_address: AddressData, proof: Proof, chain_config: ChainConfig, signer: Addr, ) -> MsgLinkChainAccount
Creates an instance of MsgLinkChainAccount.
chain_address- Data of the external chain address to be connected with the Desmos profile.proof- The ownership proof of the external chain address.chain_config- The configuration of the external chain.signer- Address associated with the profile to which link the external account.
Sourcepub fn unlink_chain_account(
owner: Addr,
chain_name: &str,
target: &str,
) -> MsgUnlinkChainAccount
pub fn unlink_chain_account( owner: Addr, chain_name: &str, target: &str, ) -> MsgUnlinkChainAccount
Creates an instance of MsgUnlinkChainAccount.
owner- The profile address from which to remove the link.chain_name- The chain name associated with the link to be removed.target- The external address to be removed.
Sourcepub fn set_default_external_address(
chain_name: &str,
target: &str,
signer: Addr,
) -> MsgSetDefaultExternalAddress
pub fn set_default_external_address( chain_name: &str, target: &str, signer: Addr, ) -> MsgSetDefaultExternalAddress
Creates an instance of MsgSetDefaultExternalAddress.
chain_name- The chain name associated with the link to be set as default one.target- The external address to be set as default one.signer- The profile address which to set a default external address.
Sourcepub fn link_application(
sender: Addr,
link_data: Data,
call_data: String,
source_port: String,
source_channel: String,
timeout_height: Height,
timeout_timestamp: u64,
) -> MsgLinkApplication
pub fn link_application( sender: Addr, link_data: Data, call_data: String, source_port: String, source_channel: String, timeout_height: Height, timeout_timestamp: u64, ) -> MsgLinkApplication
Creates an instance of MsgLinkApplication.
sender- Sender of the connection request.link_data- The data related to the application to which connect.call_data- Hex encoded call data that will be sent to the data source in order to verify the link.source_port- The port on which the packet will be sent.source_channel- The channel by which the packet will be sent.timeout_height- Timeout height relative to the current block height. The timeout is disabled when set to 0.timeout_timestamp- Timeout timestamp (in nanoseconds) relative to the current block timestamp. The timeout is disabled when set to 0.
Sourcepub fn unlink_application(
application: &str,
username: &str,
signer: Addr,
) -> MsgUnlinkApplication
pub fn unlink_application( application: &str, username: &str, signer: Addr, ) -> MsgUnlinkApplication
Creates an instance of MsgUnlinkApplication.
application- The name of the application to unlink.username- The username inside the application to unlink.signer- The Desmos account from which the application should be unlinked.
Auto Trait Implementations§
impl Freeze for ProfilesMsg
impl RefUnwindSafe for ProfilesMsg
impl Send for ProfilesMsg
impl Sync for ProfilesMsg
impl Unpin for ProfilesMsg
impl UnwindSafe for ProfilesMsg
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