|
|
|
@ -7,8 +7,7 @@ import ( |
|
|
|
|
|
|
|
|
|
type Space struct { |
|
|
|
|
Name string `json:"name"` |
|
|
|
|
Key string `json:"key"` |
|
|
|
|
Network string `json:"network"` |
|
|
|
|
Key string `json:"key,omitempty"` |
|
|
|
|
Symbol string `json:"symbol"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -20,6 +19,10 @@ func listSpaces() (spaces map[string]*Space, err error) { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for k, space := range result { |
|
|
|
|
space.Key = k |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -68,7 +71,7 @@ type ProposalIPFSMsg struct { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ProposalVoteMsgPayload struct { |
|
|
|
|
Choice int `json:"choice"` |
|
|
|
|
Choice int `json:"choice,string"` |
|
|
|
|
Proposal string `json:"proposal"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -143,6 +146,7 @@ type NewProposalJson struct { |
|
|
|
|
} `json:"params"` |
|
|
|
|
} `json:"strategies"` |
|
|
|
|
} `json:"metadata"` |
|
|
|
|
MaxCanSelect int `json:"maxCanSelect"` |
|
|
|
|
} `json:"payload"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|