pub enum Instruction {
Show 17 variants
CreateService {
code_hash: CodeHash,
code_len: u64,
min_item_gas: UnsignedGas,
min_memo_gas: UnsignedGas,
endowment: Balance,
memo: Memo,
},
Upgrade {
code_hash: CodeHash,
min_item_gas: UnsignedGas,
min_memo_gas: UnsignedGas,
},
Transfer {
destination: ServiceId,
amount: Balance,
gas_limit: UnsignedGas,
memo: Memo,
},
Zombify {
ejector: ServiceId,
},
Eject {
target: ServiceId,
code_hash: CodeHash,
},
DeleteItems {
storage_items: Vec<Vec<u8>>,
},
Solicit {
hash: AnyHash,
len: u64,
},
Forget {
hash: AnyHash,
len: u64,
},
Lookup {
service: ServiceId,
hash: AnyHash,
},
Import {
items: Vec<(u64, u64)>,
},
Export {
data: Vec<Vec<u8>>,
},
Bless {
manager: ServiceId,
assign: ServiceId,
designate: ServiceId,
auto_acc: Vec<(ServiceId, UnsignedGas)>,
},
Assign {
core: CoreIndex,
queue: AuthQueue,
},
Designate {
keys: OpaqueValKeysets,
},
Yield {
hash: Hash,
},
Checkpoint,
Panic,
// some variants omitted
}
Expand description
Bootstrap service instruction.
Used to form the work item payload for the JAM Bootstrap service.
Variants§
CreateService
Create a new service.
Fields
min_item_gas: UnsignedGas
Minimum gas required for each work-item to be accumulated.
min_memo_gas: UnsignedGas
Minimum gas required for each incoming transfer.
Upgrade
Upgrade the code of the Bootstrap service.
Fields
code_hash: CodeHash
Hash of the code to be upgraded. This must already be in the service’s preimage store.
min_item_gas: UnsignedGas
Minimum gas required for each work-item to be accumulated.
min_memo_gas: UnsignedGas
Minimum gas required for each incoming transfer.
Transfer
Transfer funds to another service.
Fields
gas_limit: UnsignedGas
The amount of gas for the processing of the transfer by the destination service.
Zombify
Turn the current service into a zombie.
Eject
Destroy a zombie service with this as its ejector.
Fields
DeleteItems
Delete some items from the storage of the service.
Solicit
Request that preimage data be placed in the service’s preimage store.
Forget
Revoke request that preimage data be placed in the service’s preimage store or drop preimage data once they have sat without request for sufficiently long.
Fields
hash: AnyHash
The hash of the previously requested data.
Lookup
Look up preimage data.
Fields
hash: AnyHash
The hash of the data.
Import
Import segments from the JAM D3L.
Export
Export segments to the JAM D3L.
Bless
Reset the JAM privileged services.
Fields
auto_acc: Vec<(ServiceId, UnsignedGas)>
The auto-accumulator service IDs, together with the baseline gas they get.
Assign
Assign the queue of a core.
Fields
Designate
Designate the new validator key set.
Fields
keys: OpaqueValKeysets
The keys of the new validator set.
Yield
Specify a value for accumulate to return.
Checkpoint
Checkpoint the accumulation state.
Panic
Panic.