generate_authorization_fixes

package
v0.37.17-patch.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: AGPL-3.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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