evergreen

package
v0.0.0-...-6a90148 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleArtist    = "Artist"
	RolePlatform  = "Platform"
	RoleCollector = "Collector"
	RoleOwner     = "Owner"
)

Variables

This section is empty.

Functions

func ProfileToCadence

func ProfileToCadence(profile *Profile, evergreenAddr flow.Address) (cadence.Value, error)

func RoleToCadence

func RoleToCadence(role *Role, evergreenAddr flow.Address) (cadence.Value, error)

Types

type Profile

type Profile struct {
	ID          string  `json:"id"`
	Description string  `json:"description"`
	Roles       []*Role `json:"roles"`
}

func ProfileFromCadence

func ProfileFromCadence(val cadence.Value) (*Profile, error)

type Role

type Role struct {
	ID                        string       `json:"id"`
	Description               string       `json:"description"`
	InitialSaleCommission     float64      `json:"initialSaleCommission"`
	SecondaryMarketCommission float64      `json:"secondaryMarketCommission"`
	Address                   flow.Address `json:"addr,omitempty"`
	ReceiverPath              string       `json:"receiverPath,omitempty"`
}

func RoleFromCadence

func RoleFromCadence(val cadence.Value) (*Role, error)

Jump to

Keyboard shortcuts

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