generate_authorization_fixes

package
v0.37.22 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

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

type AccountCapabilityID struct {
	Address      common.Address
	CapabilityID uint64
}

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},
]

Jump to

Keyboard shortcuts

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