repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/mod.rs
wasmer-deploy-cli/src/cmd/mod.rs
mod balance; mod cancel_deposit; mod coin_carve; mod coin_collect; mod coin_combine; mod coin_rotate; mod contract; mod contract_action; mod contract_cancel; mod contract_create; mod contract_details; mod contract_elevate; mod contract_list; mod core; mod deposit; mod history; mod login; mod logout; mod service; mod se...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_details.rs
wasmer-deploy-cli/src/cmd/contract_details.rs
#[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::api::*; use crate::error::*; use crate::opt::*; pub async fn main_opts_contract_details( opts: OptsContractDetails, api: &mut DeployApi, ) -> Result<(), ContractError> { let contract = match api.contract_get(opts.reference...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/wallet.rs
wasmer-deploy-cli/src/cmd/wallet.rs
use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info}; use ate::prelude::*; use crate::error::*; use crate::api::*; use crate::cmd::*; use crate::model::*; use crate::opt::*; use crate::model::WALLET_COLLECTION_ID; use super::core::*; pub(super) async fn get_or_create_wallet( purpose:...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/logout.rs
wasmer-deploy-cli/src/cmd/logout.rs
use ate::error::AteError; #[cfg(target_os = "wasi")] use wasmer_bus_process::prelude::*; use crate::opt::*; pub async fn main_opts_logout( _opts_logout: OptsLogout, token_path: String, ) -> Result<(), AteError> { // Convert the token path to a real path let token_network_path = format!("{}.network", t...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_cancel.rs
wasmer-deploy-cli/src/cmd/contract_cancel.rs
#[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::api::*; use crate::error::*; use crate::opt::*; pub async fn main_opts_contract_cancel( opts: OptsContractCancel, api: &mut DeployApi, identity: &str, ) -> Result<(), ContractError> { match api .contract_cancel...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/deposit.rs
wasmer-deploy-cli/src/cmd/deposit.rs
use error_chain::*; use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use url::Url; use ate::prelude::*; use crate::api::*; use crate::error::*; use crate::model::*; use crate::opt::*; use crate::request::*; #[allow(dead_code)] pub async fn deposit_command( registry: &A...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/balance.rs
wasmer-deploy-cli/src/cmd/balance.rs
use ate::prelude::*; #[allow(unused_imports)] use tracing::{debug, error, info}; use crate::api::*; use crate::error::*; use crate::opt::*; pub async fn main_opts_balance(opts: OptsBalance, api: &mut DeployApi) -> Result<(), WalletError> { if opts.no_reconcile == false { api.reconcile().await?; } ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/coin_combine.rs
wasmer-deploy-cli/src/cmd/coin_combine.rs
use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use url::Url; use ate::prelude::*; use crate::error::*; use crate::model::*; use crate::request::*; pub async fn coin_combine_command( registry: &Arc<Registry>, coins: Vec<CarvedCoin>, new_ownership: Ownership, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_elevate.rs
wasmer-deploy-cli/src/cmd/contract_elevate.rs
use error_chain::*; use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use url::Url; use ate::prelude::*; use crate::error::*; use crate::helper::*; use crate::request::*; pub async fn contract_elevate_command( registry: &Arc<Registry>, session: &dyn AteSession, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/instance.rs
wasmer-deploy-cli/src/cmd/instance.rs
use std::ops::Deref; use std::io::Read; use ate::prelude::*; use chrono::NaiveDateTime; use error_chain::bail; use async_stream::stream; use futures_util::pin_mut; use futures_util::stream::StreamExt; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use ate_comms::StreamSecurity; use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/core_error.rs
wasmer-deploy-cli/src/error/core_error.rs
use error_chain::error_chain; use crate::request::*; error_chain! { types { CoreError, CoreErrorKind, ResultExt, Result; } links { AteError(::ate::error::AteError, ::ate::error::AteErrorKind); ChainCreationError(::ate::error::ChainCreationError, ::ate::error::ChainCreationErrorKind...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/contract_error.rs
wasmer-deploy-cli/src/error/contract_error.rs
use error_chain::error_chain; use crate::model::*; use crate::request::*; use ate::prelude::*; use super::*; error_chain! { types { ContractError, ContractErrorKind, ResultExt, Result; } links { CoreError(super::CoreError, super::CoreErrorKind); QueryError(super::QueryError, super...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/coin_error.rs
wasmer-deploy-cli/src/error/coin_error.rs
use error_chain::error_chain; use crate::request::*; use super::*; error_chain! { types { CoinError, CoinErrorKind, ResultExt, Result; } links { CoreError(super::CoreError, super::CoreErrorKind); } foreign_links { IO(tokio::io::Error); } errors { InvalidRef...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/mod.rs
wasmer-deploy-cli/src/error/mod.rs
pub mod bus_error; pub mod coin_error; pub mod contract_error; pub mod core_error; pub mod wallet_error; pub mod instance_error; pub use wasmer_auth::error::*; pub use bus_error::BusError; pub use bus_error::BusErrorKind; pub use coin_error::CoinError; pub use coin_error::CoinErrorKind; pub use contract_error::Contra...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/wallet_error.rs
wasmer-deploy-cli/src/error/wallet_error.rs
use super::*; use crate::request::*; use error_chain::error_chain; error_chain! { types { WalletError, WalletErrorKind, ResultExt, Result; } links { CoreError(super::CoreError, super::CoreErrorKind); CoinError(super::CoinError, super::CoinErrorKind); GatherError(super::Gathe...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/instance_error.rs
wasmer-deploy-cli/src/error/instance_error.rs
use error_chain::error_chain; use super::*; error_chain! { types { InstanceError, InstanceErrorKind, ResultExt, Result; } links { CoreError(super::CoreError, super::CoreErrorKind); QueryError(super::QueryError, super::QueryErrorKind); ContractError(super::ContractError, sup...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/error/bus_error.rs
wasmer-deploy-cli/src/error/bus_error.rs
use error_chain::error_chain; error_chain! { types { BusError, BusErrorKind, ResultExt, Result; } foreign_links { IO(tokio::io::Error); } errors { LoginFailed { description("failed to login with the supplied token"), display("failed to login with the ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/service_instance.rs
wasmer-deploy-cli/src/model/service_instance.rs
use ate::{prelude::DaoVec}; use serde::*; use super::{InstanceExport, InstanceSubnet, MeshNode}; /// Running instance of a particular web assembly application /// within the hosting environment #[derive(Serialize, Deserialize, Debug, Clone)] pub struct ServiceInstance { /// Unique ID of this instance pub id: ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/bag_of_coins.rs
wasmer-deploy-cli/src/model/bag_of_coins.rs
use serde::{Deserialize, Serialize}; #[allow(unused_imports)] use tracing::{debug, error, info, warn}; use crate::model::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct BagOfCoins { pub coins: Vec<CarvedCoin>, } impl Default for BagOfCoins { fn default() -> BagOfCoins { BagOfCoins { coi...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/national_currency.rs
wasmer-deploy-cli/src/model/national_currency.rs
use clap::Parser; use serde::*; use std::str::FromStr; use strum::IntoEnumIterator; use strum_macros::Display; use strum_macros::EnumIter; /// Lists all the different national currencies that are available in the /// world plus a set of attributes. #[derive( Serialize, Deserialize, Display, Debug, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/instance_subnet.rs
wasmer-deploy-cli/src/model/instance_subnet.rs
use serde::*; use ate::prelude::*; use super::IpCidr; /// Subnets make up all the networks for a specific network #[derive(Debug, Serialize, Deserialize, Clone)] pub struct InstanceSubnet { /// List of all the IP addresses for this subnet pub cidrs: Vec<IpCidr>, /// Access token used to grant access to th...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/historic_day.rs
wasmer-deploy-cli/src/model/historic_day.rs
use serde::*; use super::*; /// Represents a day of activity that has happened /// in ones account #[derive(Serialize, Deserialize, Debug, Clone)] pub struct HistoricDay { // Which day does this data relate to pub day: u32, // Represents an activity that has occured on this day pub activities: Vec<His...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/master_authority.rs
wasmer-deploy-cli/src/model/master_authority.rs
use ate::{prelude::*}; use serde::*; /// Master authority is a row that holds the access rights /// to one or more elements in a chain-of-trust. The keys /// can be rotated periodically. #[derive(Serialize, Deserialize, Debug, Clone)] pub struct MasterAuthorityInner { /// Read key used access the service instance ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/contract.rs
wasmer-deploy-cli/src/model/contract.rs
use ate::prelude::*; use chrono::DateTime; use chrono::Utc; use serde::*; use super::*; /// Contracts are agreement between a consumer and provider for /// particular services. Only brokers may perform actions on /// active contracts #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Contract { /// Refere...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/wallet_instance.rs
wasmer-deploy-cli/src/model/wallet_instance.rs
use serde::*; use ate::prelude::ChainKey; /// Running instance of a particular web assembly application /// within the hosting environment #[derive(Serialize, Deserialize, Debug, Clone)] pub struct WalletInstance { /// Name of the instance attached to the identity pub name: String, /// ID of this instance ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/country.rs
wasmer-deploy-cli/src/model/country.rs
use clap::Parser; use serde::*; use std::str::FromStr; use strum::IntoEnumIterator; use strum_macros::Display; use strum_macros::EnumIter; use crate::model::*; /// Lists all the different national currencies that are available in the /// world plus a set of attributes. #[derive( Serialize, Deserialize, Di...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
true
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/instance_command.rs
wasmer-deploy-cli/src/model/instance_command.rs
use ate_crypto::SerializationFormat; use serde::*; pub use wasmer_bus::prelude::CallHandle; pub use wasmer_bus::prelude::BusError; use std::fmt; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct InstanceCall { #[serde(default)] pub parent: Option<u64>, pub handle: u64, pub format: Serializatio...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/commodity_category.rs
wasmer-deploy-cli/src/model/commodity_category.rs
use serde::*; use super::*; /// The commodity category allows the buyers to easily /// find, search and filter what they specifically want to buy. #[derive(Serialize, Deserialize, Debug, Clone)] pub enum CommodityCategory { /// National currency backed by a national government NationalCurrency(NationalCurrenc...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/historic_activity.rs
wasmer-deploy-cli/src/model/historic_activity.rs
pub mod activities { use crate::model::*; use chrono::prelude::*; use serde::*; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct WalletCreated { pub when: DateTime<Utc>, pub by: String, } #[derive(Serialize, Deserialize, Debug, Clone)] pub struct DepositCreate...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/decimal.rs
wasmer-deploy-cli/src/model/decimal.rs
use rust_decimal::Decimal as InnerDecimal; use serde::de::{Unexpected, Visitor}; use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; use std::fmt; use std::str::FromStr; use std::cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd}; use std::iter::Sum; use std::ops::{ Add, AddAssign, Div, DivAssign, Mul,...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/instance_hello.rs
wasmer-deploy-cli/src/model/instance_hello.rs
use ate::chain::ChainKey; use serde::*; use std::fmt; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct InstanceHello { pub chain: ChainKey, pub access_token: String, } impl fmt::Display for InstanceHello { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "instance...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/mesh_node.rs
wasmer-deploy-cli/src/model/mesh_node.rs
use serde::*; use std::net::IpAddr; use std::net::Ipv4Addr; use std::net::Ipv6Addr; use std::collections::HashSet; use std::collections::HashMap; use std::fmt; use crate::model::HardwareAddress; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct DhcpReservation { pub mac: HardwareAddress, pub addr4: I...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/automation_time.rs
wasmer-deploy-cli/src/model/automation_time.rs
use serde::*; /// Automation time is a safe and secure way to automate grinding activities /// in a commercial way to drive revenue for digital creators. #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum AutomationTime { ExclusiveBot, } impl AutomationTime { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/digital_asset.rs
wasmer-deploy-cli/src/model/digital_asset.rs
use serde::*; /// Digital assets are virtual things that have an intrinsic value to the humans /// that interact with that particular digital environment/ecosystem. #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum DigitalAsset { GameAccount, GameAsset, Ga...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/charge.rs
wasmer-deploy-cli/src/model/charge.rs
use serde::*; use std::fmt; use super::*; use crate::model::Decimal; #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum ChargeMetric { DownloadBandwidth, UploadBandwidth, DataStorage, Compute, } impl fmt::Display for ChargeMetric { fn fmt(&self, f...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/invoice.rs
wasmer-deploy-cli/src/model/invoice.rs
use ate::prelude::*; use serde::*; use strum_macros::Display; use strum_macros::EnumIter; use crate::model::*; /// Represent a line item in an invoice that breaks down the /// charges and what they are for. #[derive(Serialize, Deserialize, Debug, Clone)] pub struct InvoiceItem { /// The name of the line item ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/carved_coin.rs
wasmer-deploy-cli/src/model/carved_coin.rs
use ate::prelude::*; use serde::*; use super::*; #[derive(Debug, Serialize, Deserialize, Clone)] pub struct CarvedCoin { pub value: Decimal, pub currency: NationalCurrency, pub coin: PrimaryKey, pub owner: Ownership, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/contract_status.rs
wasmer-deploy-cli/src/model/contract_status.rs
use chrono::DateTime; use chrono::Utc; use serde::*; #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct ThrottleTriggers { pub download_per_second: Option<u64>, pub upload_per_second: Option<u64>, pub delete_only_threshold: Option<u64>, } /// The contract status determines if aggrements a...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/mod.rs
wasmer-deploy-cli/src/model/mod.rs
mod advertised_service; mod automation_time; mod bag_of_coins; mod carved_coin; mod charge; mod charge_frequency; mod commodity_category; mod commodity_kind; mod contract; mod contract_metrics; mod contract_status; mod country; mod decimal; mod denomination; mod digital_asset; mod digital_service; mod historic_activity...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/denomination.rs
wasmer-deploy-cli/src/model/denomination.rs
use serde::*; use super::*; #[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Denomination { pub value: Decimal, pub currency: NationalCurrency, } impl Denomination { pub fn to_string(&self) -> String { format!("{} {}", self.value, self.currenc...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/ownership.rs
wasmer-deploy-cli/src/model/ownership.rs
use ate::prelude::*; use serde::*; use super::*; /// Represents ownership of a particular commodity. This is normally /// used in a person of groups wallet so that they can access a /// particular asset or redeem it #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Owner...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/wallet.rs
wasmer-deploy-cli/src/model/wallet.rs
use ate::prelude::*; use serde::*; use super::*; /// Wallets are attached to users (persons) or to groups /// which allows ownership of commodities. Proof of ownership /// can be used to access or consume commodities which can be /// achieved by proving ownership of the wallet itself. Attaching /// the wallet is done...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/digital_service.rs
wasmer-deploy-cli/src/model/digital_service.rs
use serde::*; use super::*; #[derive(Serialize, Deserialize, Debug, Clone)] pub enum DigitalService { // Service provider will offer their services iteratively as a subscription Subscription, /// Time executing some automation for a particular digital task AutomationTime(AutomationTime), } impl Digit...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/contract_metrics.rs
wasmer-deploy-cli/src/model/contract_metrics.rs
use chrono::DateTime; use chrono::Utc; use serde::*; /// Metrics are used to track provider services so that charges can /// be made to the consumer at appropriate moments #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct ContractMetrics { /// What are these metrics related to pub related_to:...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/advertised_service.rs
wasmer-deploy-cli/src/model/advertised_service.rs
use serde::*; use std::time::Duration; use super::*; /// The commodity kind determines how this commodity will be listed /// on the market interaction interface. This metadata helps users /// identify what they are subscribing for. #[derive(Serialize, Deserialize, Debug, Clone)] pub struct AdvertisedService { ///...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/rate_card.rs
wasmer-deploy-cli/src/model/rate_card.rs
use serde::*; use super::*; /// Rate cards represent a series of charges incurred for consumption /// of various services and or commodities. #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct RateCard { /// The currency that the rate card make charges at pub currency: NationalCurrency, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/charge_frequency.rs
wasmer-deploy-cli/src/model/charge_frequency.rs
use chrono::Duration; use serde::*; use std::fmt; /// Determines the frequency that you will be charged #[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum ChargeFrequency { Once, PerMinute, PerHour, PerDay, PerWeek, PerMonth, PerYear, } imp...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/instance_export.rs
wasmer-deploy-cli/src/model/instance_export.rs
use ate::comms::NodeId; use serde::*; /// Exports are web assembly binaries that are exposed to the world /// as consumable targets for anyone who possesses the access token #[derive(Debug, Serialize, Deserialize, Clone)] pub struct InstanceExport { /// Access token that allows access to this exported binary p...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/commodity_kind.rs
wasmer-deploy-cli/src/model/commodity_kind.rs
use serde::*; use super::*; /// The commodity kind determines how this commodity will be listed /// on the market interaction interface. This metadata helps users /// identify what they are trading. #[derive(Serialize, Deserialize, Debug, Clone)] pub struct CommodityKindType { pub name: String, pub category: ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/model/historic_month.rs
wasmer-deploy-cli/src/model/historic_month.rs
use serde::*; use super::*; use ate::prelude::*; /// Represents a month of activity that has happened /// in ones account #[derive(Serialize, Deserialize, Debug, Clone)] pub struct HistoricMonth { // Which month does this data relate to pub month: u32, // The year that this history occured pub year: i...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/source.rs
wasmer-deploy-cli/src/opt/source.rs
use clap::Parser; use super::purpose::*; use super::wallet_action::*; #[derive(Parser, Clone)] pub enum OptsWalletSource { /// One of your personal wallets #[clap()] Personal(OptWalletPersonal), /// Particular wallet attached to a domain group #[clap()] Domain(OptWalletDomain), } impl OptsWal...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/contract.rs
wasmer-deploy-cli/src/opt/contract.rs
use clap::Parser; use super::purpose::*; #[allow(dead_code)] #[derive(Parser, Clone)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsContract { /// Category of contracts to perform an action upon #[clap(subcommand)] pub purpose: OptsContractFor, } #[derive(Parser, Clone)]...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/wallet_action.rs
wasmer-deploy-cli/src/opt/wallet_action.rs
use clap::Parser; use super::OptsBalance; use super::OptsCreateWallet; use super::OptsDeposit; use super::OptsRemoveWallet; use super::OptsTransactionHistory; use super::OptsTransfer; use super::OptsWithdraw; #[derive(Parser, Clone)] pub enum OptWalletAction { /// Creates this wallet with the supplied name #[...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/withdraw.rs
wasmer-deploy-cli/src/opt/withdraw.rs
use clap::Parser; use crate::model::Decimal; use crate::model::NationalCurrency; #[derive(Parser, Clone)] #[clap()] pub struct OptsWithdraw { /// Amount to be deposited into this account #[clap(index = 1)] pub amount: Decimal, /// National currency to be deposited into this account (e.g. aud,eur,gbp,u...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/transfer.rs
wasmer-deploy-cli/src/opt/transfer.rs
use clap::Parser; use super::destination::*; use crate::model::Decimal; use crate::model::NationalCurrency; #[derive(Parser, Clone)] #[clap()] pub struct OptsTransfer { /// Amount to be deposited into this account #[clap(index = 1)] pub amount: Decimal, /// National currency to be deposited into this...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/network.rs
wasmer-deploy-cli/src/opt/network.rs
use clap::Parser; use url::Url; use ate_comms::StreamSecurity; use super::purpose::*; use super::OptsCidrAction; use super::OptsPeeringAction; #[allow(dead_code)] #[derive(Parser)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsNetwork { #[clap(subcommand)] pub cmd: OptsNetwor...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/login.rs
wasmer-deploy-cli/src/opt/login.rs
use clap::Parser; #[allow(dead_code)] #[derive(Parser)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsLogin { /// Email address that you wish to login using #[clap(index = 1)] pub email: Option<String>, /// Password associated with this account #[clap(index = 2)] ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/destination.rs
wasmer-deploy-cli/src/opt/destination.rs
use clap::Parser; use super::purpose::*; #[derive(Parser, Clone)] #[clap()] pub struct OptWalletDestinationPersonal { /// Name of the personal wallet #[clap(index = 1, default_value = "default")] pub name: String, } #[derive(Parser, Clone)] #[clap()] pub struct OptWalletDestinationDomain { /// Name o...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/remove_wallet.rs
wasmer-deploy-cli/src/opt/remove_wallet.rs
use clap::Parser; #[derive(Parser, Clone)] #[clap()] pub struct OptsRemoveWallet { /// Forces the wallet to be destroyed even if it has commodities in it #[clap(short, long)] pub force: bool, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/service.rs
wasmer-deploy-cli/src/opt/service.rs
use clap::Parser; use super::purpose::*; #[allow(dead_code)] #[derive(Parser, Clone)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsService { /// Type of services to perform an action upon #[clap(subcommand)] pub purpose: OptsServiceFor, } #[derive(Parser, Clone)] pub en...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/history.rs
wasmer-deploy-cli/src/opt/history.rs
use clap::Parser; #[derive(Parser, Clone)] #[clap()] pub struct OptsTransactionHistory { /// Returns the history only for a particular year #[clap(long)] pub year: Option<i32>, /// Returns the history only for a particular month #[clap(long)] pub month: Option<u32>, /// Returns the history ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/purpose.rs
wasmer-deploy-cli/src/opt/purpose.rs
pub enum Purpose<A> where A: Clone, { Personal { wallet_name: String, action: A, }, Domain { domain_name: String, wallet_name: String, action: A, }, } impl<A> Purpose<A> where A: Clone, { pub fn is_personal(&self) -> bool { if let Purpose::Per...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/mod.rs
wasmer-deploy-cli/src/opt/mod.rs
mod balance; mod bus; mod contract; mod create_wallet; mod deposit; mod destination; mod history; mod login; mod logout; mod purpose; mod remove_wallet; mod service; mod source; mod transfer; mod wallet; mod wallet_action; mod withdraw; mod instance; mod network; pub use wasmer_auth::opt::*; pub use balance::*; pub u...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/wallet.rs
wasmer-deploy-cli/src/opt/wallet.rs
use clap::Parser; use super::source::*; #[allow(dead_code)] #[derive(Parser, Clone)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsWallet { /// Wallet to perform the action on #[clap(subcommand)] pub source: OptsWalletSource, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/create_wallet.rs
wasmer-deploy-cli/src/opt/create_wallet.rs
use clap::Parser; use crate::model::*; #[derive(Parser, Clone)] #[clap()] pub struct OptsCreateWallet { /// Country of residence for tax purposes (ISO 3166) - this is the alpha-3 letter code (e.g. USA) #[clap(index = 1)] pub country: Country, }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/logout.rs
wasmer-deploy-cli/src/opt/logout.rs
use clap::Parser; #[allow(dead_code)] #[derive(Parser)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsLogout {}
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/bus.rs
wasmer-deploy-cli/src/opt/bus.rs
use clap::Parser; #[allow(dead_code)] #[derive(Parser)] pub struct OptsBus { /// URL where the data is remotely stored on a distributed commit log (e.g. wss://wasmer.sh/db). #[clap(short, long)] pub remote: Option<url::Url>, /// Determines how the file-system will react while it is nominal and when it ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/deposit.rs
wasmer-deploy-cli/src/opt/deposit.rs
use clap::Parser; use crate::model::Decimal; use crate::model::NationalCurrency; #[derive(Parser, Clone)] #[clap()] pub struct OptsDepositPending {} #[derive(Parser, Clone)] #[clap()] pub struct OptsDepositNew { /// Amount to be deposited into this account #[clap(index = 1)] pub amount: Decimal, /// ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/balance.rs
wasmer-deploy-cli/src/opt/balance.rs
use clap::Parser; #[derive(Parser, Clone)] #[clap()] pub struct OptsBalance { /// Show the individual coins that make up the balance #[clap(short, long)] pub coins: bool, /// When reading the balance the wallet is first reconciled - to prevent this happening then set this flag #[clap(long)] pub...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/opt/instance.rs
wasmer-deploy-cli/src/opt/instance.rs
use std::net::IpAddr; use ate_crypto::SerializationFormat; use clap::Parser; use url::Url; use super::purpose::*; use ate_comms::StreamSecurity; #[allow(dead_code)] #[derive(Parser, Clone)] #[clap(version = "1.5", author = "Wasmer Inc <info@wasmer.io>")] pub struct OptsInstance { /// Category of instances to per...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/instance_action.rs
wasmer-deploy-cli/src/api/instance_action.rs
use ate::header::PrimaryKey; use ate::prelude::*; use error_chain::bail; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use std::ops::Deref; use crate::error::*; use crate::model::{INSTANCE_ROOT_ID, ServiceInstance, WalletInstance, MasterAuthority, MASTER_AUTHORITY_ID}; use super::*; impl D...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/carve.rs
wasmer-deploy-cli/src/api/carve.rs
use error_chain::bail; use num_traits::*; use std::collections::BTreeMap; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::helper::*; use crate::model::*; use super::*; impl DeployApi { pub async fn carve_bag( &mut self, c...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/withdraw.rs
wasmer-deploy-cli/src/api/withdraw.rs
use error_chain::*; use std::ops::Deref; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use crate::request::*; use super::*; impl DeployApi { pub async fn withdraw( &mut self, currency: NationalCurrency, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/collect.rs
wasmer-deploy-cli/src/api/collect.rs
use ate::prelude::*; use fxhash::FxHashSet; use std::ops::Deref; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use crate::request::*; use super::*; impl DeployApi { pub(crate) async fn __coin_collect_internal( &mut se...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/transfer.rs
wasmer-deploy-cli/src/api/transfer.rs
use error_chain::*; use std::ops::Deref; use std::sync::Arc; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use crate::opt::*; use crate::request::*; use ate::prelude::*; use super::*; impl DeployApi { pub async fn deposit_coi...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/instance_create.rs
wasmer-deploy-cli/src/api/instance_create.rs
use wasmer_auth::cmd::query_command; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use error_chain::bail; use ate_files::accessor::FileAccessor; use ate::crypto::AteHash; use ate::chain::ChainKey; use std::sync::Arc; use ate::prelude::*; use std::net::IpAddr; use std::net::Ipv4Addr; use std::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/accessor.rs
wasmer-deploy-cli/src/api/accessor.rs
use std::sync::Arc; use std::time::Duration; use crate::model::*; use ate::prelude::*; #[derive(Clone)] pub struct DeployApi { pub dio: Arc<DioMut>, pub wallet: DaoMut<Wallet>, pub auth: url::Url, pub auth_cmd: Option<ChainGuard>, pub db_url: Option<url::Url>, pub registry: Arc<Registry>, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/contract_get.rs
wasmer-deploy-cli/src/api/contract_get.rs
use error_chain::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use super::*; impl DeployApi { pub async fn contract_get( &mut self, reference_number: &str, ) -> Result<ContractSummary, ContractError> { let contracts = self.contract_su...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/contract_action.rs
wasmer-deploy-cli/src/api/contract_action.rs
use std::ops::Deref; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::request::*; use ate::prelude::*; use super::*; impl DeployApi { pub async fn contract_elevate( &mut self, service_code: &str, requester_identity...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/contract_summary.rs
wasmer-deploy-cli/src/api/contract_summary.rs
use chrono::DateTime; use chrono::Utc; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use crate::model::*; use ate::prelude::*; use super::*; #[derive(Debug, Clone)] pub struct ContractSummary { /// Primary key of this contract pub key: PrimaryKey, /// Refer...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/instance_summary.rs
wasmer-deploy-cli/src/api/instance_summary.rs
use error_chain::bail; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use std::sync::Arc; use crate::error::*; use crate::model::*; use ate::prelude::*; use super::*; #[derive(Debug, Clone)] pub struct InstanceSummary { /// Primary key of this instance pub key: PrimaryKey, /// N...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/contract_create.rs
wasmer-deploy-cli/src/api/contract_create.rs
use error_chain::*; use std::ops::Deref; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use crate::request::*; use ate::prelude::*; use super::*; impl DeployApi { pub async fn contract_create( &mut self, servic...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/history.rs
wasmer-deploy-cli/src/api/history.rs
use chrono::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use crate::model::*; use ate::prelude::*; use super::*; impl DeployApi { pub async fn get_or_create_this_month(&mut self) -> Result<DaoMut<HistoricMonth>, WalletError> { let now = chrono::offset::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/reconcile.rs
wasmer-deploy-cli/src/api/reconcile.rs
use error_chain::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use super::*; impl DeployApi { pub async fn reconcile(&mut self) -> Result<(), WalletError> { // If anything has been left on the DIO then we need to fail // as this loop will invoke ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/mod.rs
wasmer-deploy-cli/src/api/mod.rs
mod accessor; mod bag; mod carve; mod collect; mod combine; mod contract_action; mod contract_cancel; mod contract_create; mod contract_get; mod contract_summary; mod delete_wallet; mod deposit; mod history; mod reconcile; mod transfer; mod wallet_summary; mod withdraw; mod instance_create; mod instance_summary; mod in...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/combine.rs
wasmer-deploy-cli/src/api/combine.rs
use ate::prelude::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use super::*; impl DeployApi { pub(super) async fn __combine_coins(&mut self) -> Result<(), CoinError> { // Loop through all the chests let mu...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/instance_client.rs
wasmer-deploy-cli/src/api/instance_client.rs
use wasmer_bus_tty::prelude::*; use ate::comms::{StreamTx, StreamRx, StreamSecurity}; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use crate::model::{InstanceCommand, InstanceHello, InstanceReply}; pub struct InstanceClient { rx: StreamRx, tx: StreamTx, } impl InstanceC...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/bag.rs
wasmer-deploy-cli/src/api/bag.rs
#![allow(unused_imports)] use ate::prelude::*; use error_chain::bail; use fxhash::FxHashSet; use std::ops::Deref; use std::sync::Arc; use tracing::{debug, error, info, trace, warn}; use crate::api::DeployApi; use crate::error::*; use crate::model::*; impl DeployApi { pub(super) async fn __get_bag( &mut se...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/contract_cancel.rs
wasmer-deploy-cli/src/api/contract_cancel.rs
use error_chain::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use crate::request::*; use super::*; impl DeployApi { pub async fn contract_cancel( &mut self, reference_number: &str, consumer_identity: &str, ) -> Result<ContractActionR...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/wallet_summary.rs
wasmer-deploy-cli/src/api/wallet_summary.rs
use num_traits::*; use std::collections::BTreeMap; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use crate::model::*; use super::*; #[derive(Debug, Clone)] pub struct DenominationSummary { pub denomination: Decimal, pub total: Decimal, pub cnt: usize, } #[...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/deposit.rs
wasmer-deploy-cli/src/api/deposit.rs
use error_chain::*; use std::ops::Deref; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::cmd::*; use crate::error::*; use crate::model::*; use crate::request::*; use super::*; impl DeployApi { pub async fn deposit_create( &mut self, currency: NationalCurrency, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/api/delete_wallet.rs
wasmer-deploy-cli/src/api/delete_wallet.rs
use error_chain::*; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use crate::error::*; use super::*; impl DeployApi { pub async fn is_wallet_empty(&self) -> Result<bool, WalletError> { if self.wallet.inbox.iter().await?.next().is_some() == true { return Ok(false); ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bin/wasmer-deploy.rs
wasmer-deploy-cli/src/bin/wasmer-deploy.rs
#![allow(unused_imports)] use ate::prelude::*; use clap::Parser; use std::ffi::OsString; use std::path::{Path, PathBuf}; use std::sync::Arc; #[cfg(feature = "bus")] use wasmer_deploy_cli::bus::*; use wasmer_deploy_cli::cmd::*; use wasmer_deploy_cli::error::*; use wasmer_deploy_cli::opt::*; use wasmer_deploy_cli::prelud...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/helper/session.rs
wasmer-deploy-cli/src/helper/session.rs
use error_chain::bail; #[allow(unused_imports)] use tracing::{debug, error, info, trace, warn}; use ate::prelude::*; use crate::error::*; pub fn session_sign_key<'a>( session: &'a dyn AteSession, force_user_keys: bool, ) -> Result<&'a PrivateSignKey, CoreError> { Ok(if force_user_keys { match ses...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/helper/coins.rs
wasmer-deploy-cli/src/helper/coins.rs
use num_traits::*; use std::collections::BTreeMap; use crate::model::*; pub fn shrink_denomination(mut denomination: Decimal) -> Decimal { let scalar = Decimal::new(1000, 0); match denomination.checked_mul(scalar).unwrap().to_string() { a if a.starts_with("1") => { denomination = denominat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/helper/mod.rs
wasmer-deploy-cli/src/helper/mod.rs
mod coins; mod session; pub use coins::*; pub use session::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/file_system.rs
wasmer-deploy-cli/src/bus/file_system.rs
use async_trait::async_trait; use ate_files::codes::*; use ate_files::prelude::*; use derivative::*; use std::sync::Arc; use std::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use wasmer_bus_fuse::api; use wasmer_bus_fuse::prelude::*; use super::conv_err; use super::o...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/file_io.rs
wasmer-deploy-cli/src/bus/file_io.rs
use async_trait::async_trait; use ate_files::prelude::*; use derivative::*; use std::sync::Arc; use std::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use wasmer_bus_fuse::api; use wasmer_bus_fuse::prelude::*; #[derive(Derivative, Clone)] #[derivative(Debug)] pub stru...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/mod.rs
wasmer-deploy-cli/src/bus/mod.rs
pub mod file_io; pub mod file_system; mod fuse; mod main; mod server; pub mod opened_file; pub use main::*; use wasmer_bus_fuse::api; fn conv_file_type(kind: ate_files::api::FileKind) -> api::FileType { let mut ret = api::FileType::default(); match kind { ate_files::api::FileKind::Directory => { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/bus/fuse.rs
wasmer-deploy-cli/src/bus/fuse.rs
#![allow(unused_imports, dead_code)] use async_trait::async_trait; use ate::loader::DummyLoader; use ate::prelude::*; use ate::utils::LoadProgress; use wasmer_auth::prelude::*; use ate_files::codes::*; use ate_files::prelude::*; use derivative::*; use std::io::Write; use std::sync::Arc; use std::time::Duration; #[allow...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false