1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use crateHDK;
use crateCloseChainInput;
use ;
use ActionHash;
use InitProperties;
/// Close your current source chain to indicate that you are planning to migrate to a new DNA.
///
/// This must be the last entry you try to make in your source chain. Holochain's system validation
/// will reject any actions that come after this one.
/// Indicate the DNA that you have migrated from. This should be committed to the new DNA's source
/// chain.
///
/// Holochain does not enforce an order for this action, or even that you must use it at all. It is
/// the only way that your app validation rules can know which DNA you have migrated from. So if
/// your app needs to know this to validate imported data then you will need to call this function.
/// Read the init properties supplied for this cell's role at install time.
///
/// Only callable from the `init` callback. The properties are opaque, app-defined bytes persisted
/// by the conductor and never written to the DHT. They are intended to seed a freshly migrated
/// chain, for example by carrying a signed summary and the action hash of the `CloseChain` action
/// from the chain being migrated from. Returns `None` when no init properties were supplied for
/// this cell's role.