workbook

package
v0.4.10-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultisigDefinitions TabName = "MultiSig Addresses"
	DepositOffers       TabName = "depositOffers"
	Allocations         TabName = "Camino Allocation"

	TrueValue    = "TRUE"
	FalseValue   = "FALSE"
	YesValue     = "Y"
	NoValue      = "N"
	CheckedValue = "X"
)

Variables

This section is empty.

Functions

func RowToOffer

func RowToOffer(offer *DepositOfferRow) (string, *genesis.UnparsedDepositOffer)

Types

type AllocationColumn

type AllocationColumn int

type AllocationRow

type AllocationRow struct {
	RowNo               int
	Bucket              string
	Kyc                 string
	Amount              uint64
	Address             ids.ShortID
	ConsortiumMember    string
	ControlGroup        string
	NodeID              ids.NodeID
	ValidatorPeriodDays uint32
	Additional1Percent  string
	OfferID             string
	FirstName           string
	TokenDeliveryOffset uint64
	DepositDuration     uint32
	PublicKey           string
}

func ParseAllocations

func ParseAllocations(xls *excelize.File) []*AllocationRow

ParseAllocations Reads all rows from xls file "Allocations" workbook

func (*AllocationRow) FromRow

func (a *AllocationRow) FromRow(fileRowNo int, row []string) error

func (*AllocationRow) Header

func (a *AllocationRow) Header() []string

type DepositOfferColumn

type DepositOfferColumn int

type DepositOfferRow

type DepositOfferRow struct {
	OfferID                 string
	InterestRateNominator   uint64
	StartOffset             uint64
	EndOffset               uint64
	MinAmount               uint64
	MinDuration             uint32
	MaxDuration             uint32
	UnlockPeriodDuration    uint32
	NoRewardsPeriodDuration uint32
	Memo                    string
	Locked                  bool
}

func (*DepositOfferRow) FromRow

func (offer *DepositOfferRow) FromRow(_ int, row []string) error

func (*DepositOfferRow) Header

func (offer *DepositOfferRow) Header() []string

type DepositOffersWithOrder

type DepositOffersWithOrder struct {
	Offers map[string]*genesis.UnparsedDepositOffer
	Order  []string
}

DepositOffersWithOrder helps to populate offers into json in the same order as in xls

func ParseDepositOfferRows

func ParseDepositOfferRows(xls *excelize.File) DepositOffersWithOrder

type MultiSigColumn

type MultiSigColumn int

type MultiSigGroup

type MultiSigGroup struct {
	ControlGroup string
	Threshold    uint32
	Addrs        []ids.ShortID
}

func ParseMultiSigGroups

func ParseMultiSigGroups(xls *excelize.File) []*MultiSigGroup

ParseMultiSigGroups Reads all rows from xls file "Multisig" workbook

type MultiSigRow

type MultiSigRow struct {
	ControlGroup string
	Threshold    uint32
	Addr         ids.ShortID
}

func (*MultiSigRow) FromRow

func (msig *MultiSigRow) FromRow(_ int, msigRow []string) error

func (*MultiSigRow) Header

func (msig *MultiSigRow) Header() []string

type TabName

type TabName string

Jump to

Keyboard shortcuts

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