2022-05-12 13:42:00 +00:00
|
|
|
package build
|
|
|
|
|
2022-05-12 17:53:12 +00:00
|
|
|
import (
|
|
|
|
_ "embed"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/chain/actors"
|
|
|
|
)
|
|
|
|
|
2022-05-12 13:42:00 +00:00
|
|
|
var NetworkBundle string
|
2022-05-12 17:53:12 +00:00
|
|
|
|
2022-05-12 18:14:03 +00:00
|
|
|
//go:embed bundles.toml
|
2022-05-12 17:53:12 +00:00
|
|
|
var BuiltinActorBundles []byte
|
|
|
|
|
|
|
|
type BundleSpec struct {
|
|
|
|
Bundles []Bundle
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bundle struct {
|
2022-05-16 18:48:12 +00:00
|
|
|
// Version is the actors version in this bundle
|
2022-05-12 17:53:12 +00:00
|
|
|
Version actors.Version
|
2022-05-16 18:48:12 +00:00
|
|
|
// Release is the release id
|
2022-05-12 17:53:12 +00:00
|
|
|
Release string
|
2022-05-16 18:48:12 +00:00
|
|
|
// Path is the (optional) bundle path; uses the appropriate release bundle if unset
|
2022-05-16 18:09:09 +00:00
|
|
|
Path string
|
2022-05-16 18:48:12 +00:00
|
|
|
// Devlopment indicates whether this is a development version; when set, in conjunction with path,
|
|
|
|
// it will always load the bundle to the blockstore
|
2022-05-16 18:09:09 +00:00
|
|
|
Development bool
|
2022-05-12 17:53:12 +00:00
|
|
|
}
|