Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "oracles" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
Variables ¶
View Source
var ModuleCdc *codec.Codec
ModuleCdc is the codec for the module
View Source
var (
OracleKey = []byte{0x00}
)
Functions ¶
func GetOraclePrefixKey ¶
func RegisterCodec ¶
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type GenesisState ¶
type GenesisState struct {
Oracles Oracles `json:"oracles" yaml:"oracles"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func NewGenesisState ¶
func NewGenesisState(oracles Oracles) GenesisState
type Oracle ¶
type Oracle struct { OracleDid did.Did `json:"oracle_did" yaml:"oracle_did"` Capabilities OracleTokenCaps `json:"capabilities" yaml:"capabilities"` }
type OracleTokenCap ¶
type OracleTokenCap struct { Denom string `json:"denom" yaml:"denom"` Capabilities TokenCaps `json:"capabilities" yaml:"capabilities"` }
func NewOracleTokenCap ¶
func NewOracleTokenCap(denom string, caps TokenCaps) OracleTokenCap
func ParseOracleTokenCap ¶
func ParseOracleTokenCap(capStr string) (OracleTokenCap, error)
type OracleTokenCaps ¶
type OracleTokenCaps []OracleTokenCap
func ParseOracleTokenCaps ¶
func ParseOracleTokenCaps(capsStr string) (OracleTokenCaps, error)
func (OracleTokenCaps) Includes ¶
func (otcs OracleTokenCaps) Includes(denom string) bool
func (OracleTokenCaps) MustGet ¶
func (otcs OracleTokenCaps) MustGet(denom string) OracleTokenCap
Click to show internal directories.
Click to hide internal directories.