package validate_service

type Chain struct {
	Platform   string  `json:"platform" validate:"required"`
	Address    string  `json:"address" validate:"omitempty"`
	PrivateKey string  `json:"private_key" validate:"omitempty"`
	Exer       string  `json:"exer" validate:"omitempty"`
	Token      string  `json:"token" validate:"omitempty"`
	Fee        float32 `json:"fee" validate:"omitempty"`
	BrowerUrl  string  `json:"brower_url" validate:"omitempty,url"`
	Icon       string  `json:"icon" validate:"omitempty,url"`
	Lock       int     `json:"lock" validate:"min=1,max=2"`
}

type EditChain struct {
	Chain
	Id int `json:"id" validate:"required"`
}
