Documentation ¶
Index ¶
- Variables
- type Broker
- type Config
- type Engine
- func (e *Engine) CanProposeAsset() bool
- func (e *Engine) CanProposeMarket() bool
- func (e *Engine) CanTrade() bool
- func (e *Engine) GetState(k string) ([]byte, []types.StateProvider, error)
- func (e *Engine) Keys() []string
- func (e *Engine) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
- func (e *Engine) Namespace() types.SnapshotNamespace
- func (e *Engine) OnLimitsProposeAssetEnabledFromUpdate(ctx context.Context, date string) error
- func (e *Engine) OnLimitsProposeMarketEnabledFromUpdate(ctx context.Context, date string) error
- func (e *Engine) OnTick(ctx context.Context, t time.Time)
- func (e *Engine) Stopped() bool
- func (e *Engine) UponGenesis(ctx context.Context, rawState []byte) (err error)
- type GenesisState
- type TimeService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoLimitsGenesisState = errors.New("no limits genesis state")
Functions ¶
This section is empty.
Types ¶
type Config ¶
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig creates an instance of the package specific configuration.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CanProposeAsset ¶
func (*Engine) CanProposeMarket ¶
func (*Engine) Namespace ¶
func (e *Engine) Namespace() types.SnapshotNamespace
func (*Engine) OnLimitsProposeAssetEnabledFromUpdate ¶
func (*Engine) OnLimitsProposeMarketEnabledFromUpdate ¶
type GenesisState ¶
type GenesisState struct { ProposeMarketEnabled bool `json:"propose_market_enabled"` ProposeAssetEnabled bool `json:"propose_asset_enabled"` }
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func LoadGenesisState ¶
func LoadGenesisState(bytes []byte) (*GenesisState, error)
type TimeService ¶
TimeService provide the time of the zeta node using the tm time.
Click to show internal directories.
Click to hide internal directories.