pub struct IcpFeatures {
pub registry: Option<IcpFeaturesConfig>,
pub cycles_minting: Option<IcpFeaturesConfig>,
pub icp_token: Option<IcpFeaturesConfig>,
pub cycles_token: Option<IcpFeaturesConfig>,
pub ii: Option<IcpFeaturesConfig>,
}Expand description
Specifies ICP features enabled by deploying their corresponding system canisters
when creating a PocketIC instance and keeping them up to date
during the PocketIC instance lifetime.
The PocketIC server admits and provisions the required empty subnets.
An ICP feature is enabled if its IcpFeaturesConfig is provided, i.e.,
if the corresponding field is not None.
Fields§
§registry: Option<IcpFeaturesConfig>Deploys the NNS registry canister and keeps its content in sync with registry used internally by PocketIC. Subnets: NNS.
cycles_minting: Option<IcpFeaturesConfig>Deploys the NNS cycles minting canister, sets ICP/XDR conversion rate, and keeps its subnet lists in sync with PocketIC topology.
If the cycles_minting feature is enabled, then the default timestamp of a PocketIC instance is set to 10 May 2021 10:00:01 AM CEST (the smallest value that is strictly larger than the default timestamp hard-coded in the CMC state).
Subnets: NNS.
icp_token: Option<IcpFeaturesConfig>Deploys the ICP ledger and index canisters and initializes the ICP account of the anonymous principal with 1,000,000,000 ICP. Subnets: NNS.
cycles_token: Option<IcpFeaturesConfig>Deploys the cycles ledger and index canisters and initializes the cycles account of the anonymous principal with 2^127 cycles. Subnets: II.
ii: Option<IcpFeaturesConfig>Deploys the Internet Identity canister. Subnets: II.
Trait Implementations§
Source§impl Clone for IcpFeatures
impl Clone for IcpFeatures
Source§impl Debug for IcpFeatures
impl Debug for IcpFeatures
Source§impl Default for IcpFeatures
impl Default for IcpFeatures
Source§impl<'de> Deserialize<'de> for IcpFeatures
impl<'de> Deserialize<'de> for IcpFeatures
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>,
impl Eq for IcpFeatures
Source§impl Hash for IcpFeatures
impl Hash for IcpFeatures
Source§impl PartialEq for IcpFeatures
impl PartialEq for IcpFeatures
Source§impl Serialize for IcpFeatures
impl Serialize for IcpFeatures
impl StructuralPartialEq for IcpFeatures
Auto Trait Implementations§
impl Forget for IcpFeatures
impl Freeze for IcpFeatures
impl RefUnwindSafe for IcpFeatures
impl Send for IcpFeatures
impl Sync for IcpFeatures
impl Unpin for IcpFeatures
impl UnsafeUnpin for IcpFeatures
impl UnwindSafe for IcpFeatures
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.