pub enum CyberMsg {
Show 16 variants
Cyberlink {
neuron: String,
links: Vec<Link>,
},
Investmint {
neuron: String,
amount: Coin,
resource: String,
length: u64,
},
CreateEnergyRoute {
source: String,
destination: String,
name: String,
},
EditEnergyRoute {
source: String,
destination: String,
value: Coin,
},
EditEnergyRouteName {
source: String,
destination: String,
name: String,
},
DeleteEnergyRoute {
source: String,
destination: String,
},
CreateThought {
program: String,
trigger: Trigger,
load: Load,
name: String,
particle: String,
},
ForgetThought {
program: String,
name: String,
},
ChangeThoughtInput {
program: String,
name: String,
input: String,
},
ChangeThoughtPeriod {
program: String,
name: String,
period: u64,
},
ChangeThoughtBlock {
program: String,
name: String,
block: u64,
},
CreatePool {
pool_creator_address: String,
pool_type_id: u32,
deposit_coins: Vec<Coin>,
},
DepositWithinBatch {
depositor_address: String,
pool_id: u64,
deposit_coins: Vec<Coin>,
},
WithdrawWithinBatch {
withdrawer_address: String,
pool_id: u64,
pool_coin: Coin,
},
SwapWithinBatch {
swap_requester_address: String,
pool_id: u64,
swap_type_id: u32,
offer_coin: Coin,
demand_coin_denom: String,
offer_coin_fee: Coin,
order_price: Decimal,
},
TokenFactory(TokenFactoryMsg),
}
Variants§
Cyberlink
Investmint
CreateEnergyRoute
EditEnergyRoute
EditEnergyRouteName
DeleteEnergyRoute
CreateThought
ForgetThought
ChangeThoughtInput
ChangeThoughtPeriod
ChangeThoughtBlock
CreatePool
DepositWithinBatch
WithdrawWithinBatch
SwapWithinBatch
Fields
TokenFactory(TokenFactoryMsg)
Implementations§
Source§impl CyberMsg
impl CyberMsg
pub fn create_contract_denom( subdenom: String, metadata: Option<Metadata>, ) -> Self
pub fn change_denom_admin(denom: String, new_admin_address: String) -> Self
pub fn mint_contract_tokens( denom: String, amount: Uint128, mint_to_address: String, ) -> Self
pub fn burn_contract_tokens( denom: String, amount: Uint128, burn_from_address: String, ) -> Self
pub fn force_transfer_tokens( denom: String, amount: Uint128, from_address: String, to_address: String, ) -> Self
pub fn set_metadata(denom: String, metadata: Metadata) -> Self
pub fn cyberlink(neuron: String, links: Vec<Link>) -> Self
pub fn investmint( neuron: String, amount: Coin, resource: String, length: u64, ) -> Self
pub fn create_energy_route( source: String, destination: String, name: String, ) -> Self
pub fn edit_energy_route( source: String, destination: String, value: Coin, ) -> Self
pub fn edit_energy_route_name( source: String, destination: String, name: String, ) -> Self
pub fn delete_energy_route(source: String, destination: String) -> Self
pub fn creat_thought( program: String, trigger: Trigger, load: Load, name: String, particle: String, ) -> Self
pub fn forget_thought(program: String, name: String) -> Self
pub fn change_thought_input( program: String, name: String, input: String, ) -> Self
pub fn change_thought_period(program: String, name: String, period: u64) -> Self
pub fn change_thought_block(program: String, name: String, block: u64) -> Self
pub fn create_pool( pool_creator_address: String, pool_type_id: u32, deposit_coins: Vec<Coin>, ) -> Self
pub fn deposit_within_batch( depositor_address: String, pool_id: u64, deposit_coins: Vec<Coin>, ) -> Self
pub fn withdraw_within_batch( withdrawer_address: String, pool_id: u64, pool_coin: Coin, ) -> Self
pub fn swap_within_batch( swap_requester_address: String, pool_id: u64, swap_type_id: u32, offer_coin: Coin, demand_coin_denom: String, offer_coin_fee: Coin, order_price: Decimal, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CyberMsg
impl<'de> Deserialize<'de> for CyberMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CyberMsg
impl JsonSchema for CyberMsg
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl CustomMsg for CyberMsg
impl StructuralPartialEq for CyberMsg
Auto Trait Implementations§
impl Freeze for CyberMsg
impl RefUnwindSafe for CyberMsg
impl Send for CyberMsg
impl Sync for CyberMsg
impl Unpin for CyberMsg
impl UnwindSafe for CyberMsg
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