v4

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 15 Imported by: 0

README

V4 Acacia

For a full rundown of what v4 is and is not, head to v4 - Acacia on GitHub.

Activity Diagrams

Post File Workflow

Post File Workflow

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateFileTree

func UpdateFileTree(ctx sdk.Context, fk *filetreemodulekeeper.Keeper, merkleMap map[string][]byte)

func UpdateFiles

func UpdateFiles(ctx sdk.Context, sk *storagekeeper.Keeper) map[string][]byte

func UpdatePaymentInfo

func UpdatePaymentInfo(ctx sdk.Context, sk *storagekeeper.Keeper)

Types

type FidContents

type FidContents struct {
	Fid []string `json:"fids"`
}

type LegacyMarker

type LegacyMarker struct {
	Fid string `json:"fid"`
	Cid string `json:"cid"`
}

type MerkleContents

type MerkleContents struct {
	Merkles [][]byte `json:"legacyMerkles"`
}

type Upgrade

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

Upgrade represents the v4 upgrade

func NewUpgrade

NewUpgrade returns a new Upgrade instance

func (*Upgrade) Handler

func (u *Upgrade) Handler() upgradetypes.UpgradeHandler

Handler implements upgrades.Upgrade

func (*Upgrade) Name

func (u *Upgrade) Name() string

Name implements upgrades.Upgrade

func (*Upgrade) ProvisionGauges

func (u *Upgrade) ProvisionGauges(ctx sdk.Context) error

ProvisionGauges creates new gauges from the already existing tokens. All tokens in the deposit wallet will be drip fed out to the storage providers for storage they are already providing.

func (*Upgrade) StoreUpgrades

func (u *Upgrade) StoreUpgrades() *storetypes.StoreUpgrades

StoreUpgrades implements upgrades.Upgrade

Jump to

Keyboard shortcuts

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