Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateAddresses ¶
DuplicateAddresses returns a map of every address referred to by more than one row
func TransformRow ¶
func TransformRow(row RawRow, logger logrus.FieldLogger, bonusTable eai.RateTable) (ad backing.AccountData, err error)
TransformRow creates an AccountData struct given a RawRow from the spreadsheet
Types ¶
type RawRow ¶
type RawRow struct { RowNumber uint64 Address string QtyPurchased float64 PurchaseDate time.Time UnlockDate *time.Time RewardTarget *string DelegationNode *string RecoursePeriod time.Duration RewardSource *string ValidationPublic []signature.PublicKey ValidationScript vm.Chaincode }
RawRow encapsulates the raw data of a single row of the ndau spreadsheet
Click to show internal directories.
Click to hide internal directories.