lotus/build/bundle.go

34 lines
845 B
Go
Raw Normal View History

package build
import (
_ "embed"
"github.com/filecoin-project/lotus/chain/actors"
)
var NetworkBundle string
2022-05-12 18:14:03 +00:00
//go:embed bundles.toml
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
Version actors.Version
2022-05-16 18:48:12 +00:00
// Release is the release id
Release string
2022-05-17 17:38:32 +00:00
// Path is the (optional) bundle path; takes precedence over url
Path string
2022-05-17 17:38:32 +00:00
// URL is the (optional) bundle URL; takes precdence over github release
URL string
// CHecksum is the bundle sha256 checksume in hex, when specifying a URL.
Checksum string
2022-05-16 18:48:12 +00:00
// Devlopment indicates whether this is a development version; when set, in conjunction with path,
2022-05-16 19:47:19 +00:00
// it will always load the bundle to the blockstore, without recording the manifest CID in the
// datastore.
Development bool
}