pub struct UpgradeConfig {
pub package_named_key: String,
pub force_create_upgrade_group: bool,
pub allow_key_override: bool,
}Expand description
A configuration for upgrading contract.
The configuration every contract upgrade written in Odra expects. Read more: [https://odra.dev/docs/backends/casper/#wasm-arguments]
Fields§
§package_named_key: StringReturns the package hash of the contract.
Used to set the odra_cfg_package_hash_key_name key at the contract initialization.
force_create_upgrade_group: boolCreate a new upgrade group for the contract. Set it to true if you want to upgrade a contract
Which was deployed using Odra 2.2 or earlier, or not using Odra at all.
allow_key_override: boolIf true and the key odra_cfg_package_hash_key_name already exists, it should be overwritten.
Implementations§
Auto Trait Implementations§
impl Freeze for UpgradeConfig
impl RefUnwindSafe for UpgradeConfig
impl Send for UpgradeConfig
impl Sync for UpgradeConfig
impl Unpin for UpgradeConfig
impl UnwindSafe for UpgradeConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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