mirror of
https://github.com/luxfi/sdk.git
synced 2026-10-30 15:19:23 +00:00
Lux Partners Limited is not the entity behind this work. Every place the old name stood — copyright lines, site footers, brand config, legal and compliance text — now names the company that actually holds it. lux.fund is the exception and is not renamed to match: that site belongs to Lux Assets Management LLC, a different company, and it says so. Two kinds of line were left for a person rather than rewritten. A dated news item recording that Lux Partners Limited was established in the Isle of Man is a historical fact, and renaming it would falsify the record. And a sentence asserting that the company is domiciled in the Isle of Man is a claim about a jurisdiction, not a name — an Inc or an LLC is not an Isle of Man company, so swapping the name there would assert something untrue. Co-authored-by: Hanzo Dev <[email protected]>
59 lines
1.1 KiB
Go
59 lines
1.1 KiB
Go
// Copyright (C) 2022, Lux Industries Inc All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package models
|
|
|
|
import "github.com/luxfi/constants"
|
|
|
|
type VMType string
|
|
|
|
const (
|
|
EVM = "Lux EVM"
|
|
BlobVM = "Blob VM"
|
|
TimestampVM = "Timestamp VM"
|
|
SessionVM = "Session VM"
|
|
ParsVM = "Pars VM" // Pars network (EVM + SessionVM)
|
|
CustomVM = "Custom"
|
|
)
|
|
|
|
func VMTypeFromString(s string) VMType {
|
|
switch s {
|
|
case EVM:
|
|
return EVM
|
|
case BlobVM:
|
|
return BlobVM
|
|
case TimestampVM:
|
|
return TimestampVM
|
|
case SessionVM:
|
|
return SessionVM
|
|
case ParsVM:
|
|
return ParsVM
|
|
default:
|
|
return CustomVM
|
|
}
|
|
}
|
|
|
|
func (v VMType) RepoName() string {
|
|
switch v {
|
|
case EVM:
|
|
return constants.EVMRepoName
|
|
case SessionVM:
|
|
return "session" // github.com/luxfi/session
|
|
case ParsVM:
|
|
return "node" // github.com/parsdao/node
|
|
default:
|
|
return "unknown"
|
|
}
|
|
}
|
|
|
|
// Org returns the GitHub organization for the VM type.
|
|
func (v VMType) Org() string {
|
|
switch v {
|
|
case ParsVM:
|
|
return "parsdao"
|
|
case SessionVM:
|
|
return constants.LuxOrg // luxfi/session
|
|
default:
|
|
return constants.LuxOrg
|
|
}
|
|
}
|