Documentation
¶
Index ¶
- func CreateCadenceDictionary(input map[string]string) (*cadence.Dictionary, error)
- func CreateSha3Hash(input []uint64, types []string, salt string) string
- func CreateTraitCadenceDictionary(input map[string]string) (*cadence.Dictionary, error)
- func CreateTraitListCadenceDictionary(input map[uint64][]uint64) (cadence.Dictionary, error)
- func GetNFTTraitListFromCsvInCadenceDictionary(numberOfSlices, slice int) cadence.Dictionary
- func GetTraitFromCsvInCadenceDictionary() (*cadence.Dictionary, *cadence.Dictionary, *cadence.Dictionary, ...)
- func RandomSalt() string
- func ReadCsv(fileName string) (map[uint64]map[string]map[string]string, error)
- func ReadCsvAsMapGroupOnKey(input io.Reader, keyField string) (map[uint64]map[string]string, error)
- func ReadCsvAsMapGroupOnKeyFromFile(fileName string, keyField string) (map[uint64]map[string]string, error)
- func ReadMetadataCsvFileAsCadenceDict(filename, keyField string) (*cadence.Dictionary, error)
- type Trait
- type TraitList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCadenceDictionary ¶
func CreateCadenceDictionary(input map[string]string) (*cadence.Dictionary, error)
TODO: move to overflow?
func CreateSha3Hash ¶
Create a hash from the given ids and salt using '-' as the placeholder between salt an ids and , as the separator between ids
func CreateTraitCadenceDictionary ¶
func CreateTraitCadenceDictionary(input map[string]string) (*cadence.Dictionary, error)
func CreateTraitListCadenceDictionary ¶
func CreateTraitListCadenceDictionary(input map[uint64][]uint64) (cadence.Dictionary, error)
func GetNFTTraitListFromCsvInCadenceDictionary ¶
func GetNFTTraitListFromCsvInCadenceDictionary(numberOfSlices, slice int) cadence.Dictionary
func GetTraitFromCsvInCadenceDictionary ¶
func GetTraitFromCsvInCadenceDictionary() (*cadence.Dictionary, *cadence.Dictionary, *cadence.Dictionary, *cadence.Dictionary, *cadence.Dictionary)
func RandomSalt ¶
func RandomSalt() string
func ReadCsvAsMapGroupOnKey ¶
/ Read a io.Reader as a map of id field to propertyBag
func ReadCsvAsMapGroupOnKeyFromFile ¶
func ReadCsvAsMapGroupOnKeyFromFile(fileName string, keyField string) (map[uint64]map[string]string, error)
/ Read a filename.csv as a map of id field to propertyBag
func ReadMetadataCsvFileAsCadenceDict ¶
func ReadMetadataCsvFileAsCadenceDict(filename, keyField string) (*cadence.Dictionary, error)
A Metadata csv field is a excel/csv file that has one field that should be key and the others should be values, this method will return a map of rowKey -> { columHeader : rowValue}
Types ¶
Click to show internal directories.
Click to hide internal directories.