migrations

package
v0.0.0-...-c0db43c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixManagerContractStorage

type FixManagerContractStorage struct {
	// contains filtered or unexported fields
}

FixManagerContractStorage backfills `deffated_storage` for pre-Babylon "manager.tz" originations (no explicit `script`, only `managerPubkey`) that were indexed before Alpha.ParseOrigination started handling that case (see internal/parsers/storage/alpha.go) and were left with NULL storage.

func (*FixManagerContractStorage) Description

func (m *FixManagerContractStorage) Description() string

Description -

func (*FixManagerContractStorage) Do

Do - migrate function

func (*FixManagerContractStorage) Key

Key -

type Migration

type Migration interface {
	Do(ctx *config.Context) error
	Key() string
	Description() string
}

Migration - intreface need to realize for migrate

type UnnamedEntrypoints

type UnnamedEntrypoints struct {
	// contains filtered or unexported fields
}

UnnamedEntrypoints renames unnamed entrypoints of stored operations from `@entrypoint_K` to `entrypoint_N` (leaf ordinal), the name used by `contract.entrypoints`, `GetEntrypointsDocs` and `FindByName`. Old names are ambiguous (different leaves of an unbalanced `or` were stored under the same K), so every operation's parameters are re-parsed against the parameter type of the contract script for the operation's protocol.

func (*UnnamedEntrypoints) Description

func (m *UnnamedEntrypoints) Description() string

Description -

func (*UnnamedEntrypoints) Do

func (m *UnnamedEntrypoints) Do(ctx *config.Context) error

Do - migrate function

func (*UnnamedEntrypoints) Key

func (m *UnnamedEntrypoints) Key() string

Key -

Jump to

Keyboard shortcuts

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