mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Pulls in upstream latest changes from [dendrite-fork ](https://github.com/HereNotThere/dendrite)to subtree at servers/dendrite here. Co-authored-by: Tak Wai Wong <64229756+tak-hntlabs@users.noreply.github.com> Co-authored-by: Tak Wai Wong <tak@hntlabs.com> Co-authored-by: John Terzis <john@hntlabs.com>
23 lines
466 B
Go
23 lines
466 B
Go
package zion
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type SpaceManagerContractAddresses struct {
|
|
Spacemanager string `json:"spaceManager"`
|
|
Usergranted string `json:"usergranted"`
|
|
Tokengranted string `json:"tokengranted"`
|
|
}
|
|
|
|
func loadSpaceManagerAddresses(byteValue []byte) (*SpaceManagerContractAddresses, error) {
|
|
var addresses SpaceManagerContractAddresses
|
|
|
|
err := json.Unmarshal(byteValue, &addresses)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &addresses, nil
|
|
}
|