diff --git a/marketplace/marketplace.gen.go b/marketplace/marketplace.gen.go index 35c2ee4..103eb6a 100644 --- a/marketplace/marketplace.gen.go +++ b/marketplace/marketplace.gen.go @@ -1,4 +1,4 @@ -// marketplace-api 5b59673bf61745ad246a6c812b8ed8c213c87b6f +// marketplace-api 0073819e18c1a427fd52036be4dbcea36f2656e9 // -- // Code generated by webrpc-gen@v0.22.0 with golang generator. DO NOT EDIT. // @@ -20,7 +20,7 @@ import ( const WebrpcHeader = "Webrpc" -const WebrpcHeaderValue = "webrpc@v0.22.0;gen-golang@v0.17.0;marketplace-api@v0.0.0-5b59673bf61745ad246a6c812b8ed8c213c87b6f" +const WebrpcHeaderValue = "webrpc@v0.22.0;gen-golang@v0.17.0;marketplace-api@v0.0.0-0073819e18c1a427fd52036be4dbcea36f2656e9" // WebRPC description and code-gen version func WebRPCVersion() string { @@ -34,7 +34,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "5b59673bf61745ad246a6c812b8ed8c213c87b6f" + return "0073819e18c1a427fd52036be4dbcea36f2656e9" } type WebrpcGenVersions struct { @@ -582,6 +582,51 @@ func (x *ContractType) Is(values ...ContractType) bool { return false } +type CollectionPriority uint8 + +const ( + CollectionPriority_low CollectionPriority = 0 + CollectionPriority_normal CollectionPriority = 1 + CollectionPriority_high CollectionPriority = 2 +) + +var CollectionPriority_name = map[uint8]string{ + 0: "low", + 1: "normal", + 2: "high", +} + +var CollectionPriority_value = map[string]uint8{ + "low": 0, + "normal": 1, + "high": 2, +} + +func (x CollectionPriority) String() string { + return CollectionPriority_name[uint8(x)] +} + +func (x CollectionPriority) MarshalText() ([]byte, error) { + return []byte(CollectionPriority_name[uint8(x)]), nil +} + +func (x *CollectionPriority) UnmarshalText(b []byte) error { + *x = CollectionPriority(CollectionPriority_value[string(b)]) + return nil +} + +func (x *CollectionPriority) Is(values ...CollectionPriority) bool { + if x == nil { + return false + } + for _, v := range values { + if *x == v { + return true + } + } + return false +} + type CollectionStatus uint8 const ( @@ -1189,18 +1234,19 @@ type Activity struct { } type Collection struct { - ID uint64 `json:"-" db:"id,omitempty"` - Status CollectionStatus `json:"status" db:"status"` - ChainID uint64 `json:"chainId" db:"chain_id"` - ContractAddress prototyp.Hash `json:"contractAddress" db:"contract_address"` - ContractType ContractType `json:"contractType" db:"contract_type"` - TokenQuantityDecimals uint64 `json:"tokenQuantityDecimals" db:"token_qty_decimals"` - Config *CollectionConfig `json:"config" db:"config"` - RefreshMetadataJob uint64 `json:"-" db:"refresh_metadata_job"` - RefreshMetadataTimestamp time.Time `json:"-" db:"refresh_metadata_timestamp"` - CreatedAt time.Time `json:"createdAt" db:"created_at"` - UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` - DeletedAt *time.Time `json:"deletedAt,omitempty" db:"deleted_at"` + ID uint64 `json:"-" db:"id,omitempty"` + Status CollectionStatus `json:"status" db:"status"` + ChainID uint64 `json:"chainId" db:"chain_id"` + ContractAddress prototyp.Hash `json:"contractAddress" db:"contract_address"` + ContractType ContractType `json:"contractType" db:"contract_type"` + Priority CollectionPriority `json:"priority" db:"priority"` + TokenQuantityDecimals uint64 `json:"tokenQuantityDecimals" db:"token_qty_decimals"` + Config *CollectionConfig `json:"config" db:"config"` + RefreshMetadataJob uint64 `json:"-" db:"refresh_metadata_job"` + RefreshMetadataTimestamp time.Time `json:"-" db:"refresh_metadata_timestamp"` + CreatedAt time.Time `json:"createdAt" db:"created_at"` + UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` + DeletedAt *time.Time `json:"deletedAt,omitempty" db:"deleted_at"` } type CollectionConfig struct {