Documentation
¶
Index ¶
- Variables
- type Assets
- type Banking
- type Broker
- type Config
- type Engine
- func (e *Engine) AddVote(ctx context.Context, cmd types.VoteSubmission, party string) error
- func (e *Engine) Checkpoint() ([]byte, error)
- func (e *Engine) FinaliseEnactment(ctx context.Context, prop *types.Proposal)
- func (e *Engine) GetState(k string) ([]byte, []types.StateProvider, error)
- func (e *Engine) Hash() []byte
- func (e *Engine) Keys() []string
- func (e *Engine) Load(ctx context.Context, data []byte) error
- func (e *Engine) LoadState(ctx context.Context, p *types.Payload) ([]types.StateProvider, error)
- func (e *Engine) Name() types.CheckpointName
- func (e *Engine) Namespace() types.SnapshotNamespace
- func (e *Engine) OnChainIDUpdate(cID uint64) error
- func (e *Engine) OnStateLoaded(ctx context.Context) error
- func (e *Engine) OnTick(ctx context.Context, t time.Time) ([]*ToEnact, []*VoteClosed)
- func (e *Engine) RejectBatchProposal(ctx context.Context, proposalID string, r types.ProposalError, ...) error
- func (e *Engine) RejectProposal(ctx context.Context, p *types.Proposal, r types.ProposalError, ...) error
- func (e *Engine) ReloadConf(cfg Config)
- func (e *Engine) Stopped() bool
- func (e *Engine) SubmitBatchProposal(ctx context.Context, bpsub types.BatchProposalSubmission, ...) ([]*ToSubmit, error)
- func (e *Engine) SubmitProposal(ctx context.Context, psub types.ProposalSubmission, id, party string) (ts *ToSubmit, err error)
- func (e *Engine) ValidatorKeyChanged(ctx context.Context, oldKey, newKey string)
- type Markets
- type NetParams
- type NewMarketVoteClosed
- type NodeValidation
- type StakingAccounts
- type TimeService
- type ToEnact
- func (t *ToEnact) CancelTransfer() *ToEnactCancelTransfer
- func (t ToEnact) IsCancelTransfer() bool
- func (t ToEnact) IsFreeform() bool
- func (t ToEnact) IsMarketStateUpdate() bool
- func (t ToEnact) IsNewAsset() bool
- func (t ToEnact) IsNewAssetDetails() bool
- func (t ToEnact) IsNewMarket() bool
- func (t ToEnact) IsNewSpotMarket() bool
- func (t ToEnact) IsNewTransfer() bool
- func (t ToEnact) IsReferralProgramUpdate() bool
- func (t *ToEnact) IsUpdateAsset() bool
- func (t ToEnact) IsUpdateMarket() bool
- func (t ToEnact) IsUpdateNetworkParameter() bool
- func (t ToEnact) IsUpdateSpotMarket() bool
- func (t ToEnact) IsVolumeDiscountProgramUpdate() bool
- func (t *ToEnact) MarketStateUpdate() *ToEnactMarketStateUpdate
- func (t *ToEnact) NewAsset() *types.Asset
- func (t *ToEnact) NewAssetDetails() *types.AssetDetails
- func (t *ToEnact) NewFreeform() *ToEnactFreeform
- func (t *ToEnact) NewMarket() *ToEnactNewMarket
- func (t *ToEnact) NewTransfer() *ToEnactTransfer
- func (t *ToEnact) Proposal() *types.Proposal
- func (t *ToEnact) ProposalData() *proposal
- func (t *ToEnact) ReferralProgramChanges() *types.ReferralProgram
- func (t *ToEnact) UpdateAsset() *types.Asset
- func (t *ToEnact) UpdateMarket() *types.Market
- func (t *ToEnact) UpdateNetworkParameter() *types.NetworkParameter
- func (t *ToEnact) UpdateSpotMarket() *types.Market
- func (t *ToEnact) VolumeDiscountProgramUpdate() *types.VolumeDiscountProgram
- type ToEnactCancelTransfer
- type ToEnactFreeform
- type ToEnactMarketStateUpdate
- type ToEnactNewMarket
- type ToEnactNewSpotMarket
- type ToEnactTransfer
- type ToSubmit
- func (t *ToSubmit) InsurancePoolFraction() *num.Decimal
- func (t ToSubmit) IsNewMarket() bool
- func (t ToSubmit) IsNewSpotMarket() bool
- func (t *ToSubmit) NewMarket() *ToSubmitNewMarket
- func (t *ToSubmit) NewSpotMarket() *ToSubmitNewSpotMarket
- func (t *ToSubmit) ParentMarketID() string
- func (t *ToSubmit) Proposal() *types.Proposal
- type ToSubmitNewMarket
- type ToSubmitNewSpotMarket
- type VoteClosed
- type Witness
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProposalDoesNotExist = errors.New("proposal does not exist") ErrMarketDoesNotExist = errors.New("market does not exist") ErrMarketStateUpdateNotAllowed = errors.New("market state does not allow for state update") ErrMarketProposalStillOpen = errors.New("original market proposal is still open") ErrProposalNotOpenForVotes = errors.New("proposal is not open for votes") ErrProposalIsDuplicate = errors.New("proposal with given ID already exists") ErrVoterInsufficientTokens = errors.New("vote requires more tokens than the party has") ErrUnsupportedProposalType = errors.New("unsupported proposal type") ErrUnsupportedAssetSourceType = errors.New("unsupported asset source type") ErrExpectedERC20Asset = errors.New("expected an ERC20 asset but was not") ErrErc20AddressAlreadyInUse = errors.New("erc20 address already in use") ErrParentMarketDoesNotExist = errors.New("market to succeed does not exist") ErrParentMarketAlreadySucceeded = errors.New("the parent market was already succeeded by a prior proposal") ErrParentMarketSucceededByCompeting = errors.New("the parent market has been succeeded by a competing propsal") )
View Source
var ( // ErrMissingProduct is returned if selected product is nil. ErrMissingProduct = errors.New("missing product") // ErrUnsupportedProduct is returned if selected product is not supported. ErrUnsupportedProduct = errors.New("product type is not supported") // ErrUnsupportedRiskParameters is returned if risk parameters supplied via governance are not yet supported. ErrUnsupportedRiskParameters = errors.New("risk model parameters are not supported") // ErrMissingRiskParameters ... ErrMissingRiskParameters = errors.New("missing risk parameters")