migrate

package
v1.18.0-cadence-v1.0.0... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "migrate",
	Short:            "Migrate your Cadence project to 1.0",
	TraverseChildren: true,
	GroupID:          "migrate",
}
View Source
var IsStagedCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "is-staged <CONTRACT_NAME>",
		Short:   "checks to see if the contract is staged for migration",
		Example: `flow migrate is-staged HelloWorld`,
		Args:    cobra.MinimumNArgs(1),
	},
	Flags: &isStagedflags,
	RunS:  isStaged,
}
View Source
var IsValidatedCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "is-validated <CONTRACT_NAME>",
		Short:   "checks to see if the contract has passed the last emulated migration",
		Example: `flow migrate is-validated HelloWorld`,
		Args:    cobra.MinimumNArgs(1),
	},
	Flags: &isValidatedflags,
	RunS:  isValidated,
}

Functions

func MigrationContractStagingAddress

func MigrationContractStagingAddress(network string) flow.Address

MigrationContractStagingAddress returns the address of the migration contract on the given network

Types

type GitHubRepositoriesService

type GitHubRepositoriesService interface {
	GetContents(ctx context.Context, owner string, repo string, path string, opt *github.RepositoryContentGetOptions) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
	DownloadContents(ctx context.Context, owner string, repo string, filepath string, opt *github.RepositoryContentGetOptions) (io.ReadCloser, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL