Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{
Use: "generate-authorization-fixes",
Short: "generate authorization fixes for capability controllers",
Run: run,
}
Functions ¶
This section is empty.
Types ¶
type AccountCapabilityID ¶
AccountCapabilityID is a capability ID in an account.
type AuthorizationFixGenerator ¶
type AuthorizationFixGenerator struct {
// contains filtered or unexported fields
}
type MigratedPublicLinkSet ¶
type MigratedPublicLinkSet map[AccountCapabilityID]struct{}
MigratedPublicLinkSet is a set of capability controller IDs which were migrated from public links.
func ReadMigratedPublicLinkSet ¶
func ReadMigratedPublicLinkSet( reader io.Reader, filter map[common.Address]struct{}, ) (MigratedPublicLinkSet, error)
ReadMigratedPublicLinkSet reads a link migration report from the given reader, and returns a set of all capability controller IDs which were migrated from public links.
The report is expected to be a JSON array of objects with the following structure:
[ {"kind":"link-migration-success","account_address":"0x1","path":"/public/foo","capability_id":1}, ]
Click to show internal directories.
Click to hide internal directories.