package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jan 7, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
DB db.Config `json:"db"`
Dapp Dapp `json:"dapp"`
Group Group `json:"group,omitempty"`
}
type Dapp struct {
mixin.Keystore
ClientSecret string `json:"client_secret"`
Pin string `json:"pin"`
}
type Group struct {
Admins []string `json:"admins,omitempty"`
SignKey string `json:"sign_key,omitempty"`
PrivateKey string `json:"private_key,omitempty"`
Members []Member `json:"members,omitempty"`
Threshold uint8 `json:"threshold,omitempty"`
Vote Vote `json:"vote,omitempty"`
}
type Member struct {
ClientID string `json:"client_id,omitempty"`
VerifyKey string `json:"verify_key,omitempty"`
}
type Redis struct {
Addr string `json:"addr,omitempty"`
DB int `json:"db,omitempty"`
}
type Vote struct {
Asset string `json:"asset,omitempty"`
Amount decimal.Decimal `json:"amount,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.