Documentation ¶
Index ¶
- func Account(name string) (types.AccountType, error)
- func AccountID(marketID, partyID, asset string, ty types.AccountType) string
- func AuctionTrigger(name string) (types.AuctionTrigger, error)
- func Bool(rawValue string) (bool, error)
- func ClearAllEvents(broker *stubs.BrokerStub)
- func ClearTransferResponseEvents(broker *stubs.BrokerStub)
- func DebugAccounts(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugAllEvents(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugAuctionEvents(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugLPDetail(log *logging.Logger, broker *stubs.BrokerStub)
- func DebugLPSTxErrors(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugLPs(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugLastNEvents(n int, broker *stubs.BrokerStub, log *logging.Logger)
- func DebugMarketData(exec Execution, log *logging.Logger, market string) error
- func DebugOrders(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugTrades(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugTransfers(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugTxErrors(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugVolumesForMarket(log *logging.Logger, broker *stubs.BrokerStub, marketID string) error
- func DebugVolumesForMarketDetail(log *logging.Logger, broker *stubs.BrokerStub, marketID string) error
- func Decimal(rawValue string) (num.Decimal, error)
- func EventType(rawValue string) (events.Type, error)
- func ExpectingEventsInTheSecenarioSoFar(broker *stubs.BrokerStub, expected int) error
- func ExpectingEventsOverStep(broker *stubs.BrokerStub, eventsBeforeStep, expected int) error
- func ExpiryStrategy(rawValue string) (types.StopOrderExpiryStrategy, error)
- func F64(rawValue string) (float64, error)
- func F64Slice(rawValue string, sep string) ([]float64, error)
- func I64(rawValue string) (int64, error)
- func I64Slice(rawValue string, sep string) ([]int64, error)
- func LiquidityStatus(rawValue string) (types.LiquidityProvisionStatus, error)
- func MarketOpeningAuctionPeriodEnds(execEngine Execution, timeStub *stubs.TimeStub, markets []types.Market, ...) error
- func MarketState(name string) (types.MarketState, error)
- func OracleSpecConditionOperator(name string) (datav1.Condition_Operator, error)
- func OracleSpecPropertyType(name string) (datav1.PropertyKey_Type, error)
- func OracleSpecSettlementDataDecimals(config *market.Config, name string, settlementDP string) error
- func OraclesBroadcastDataSignedWithKeys(oracleEngine *oracles.Engine, rawPubKeys string, rawProperties *godog.Table) error
- func OrderStatus(rawValue string) (types.OrderStatus, error)
- func OrderType(rawValue string) (types.OrderType, error)
- func PartiesAmendTheFollowingOrders(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesCancelAllTheirOrdersForTheMarkets(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesCancelTheFollowingOrders(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesCancelTheFollowingStopOrders(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesCancelTransfers(engine *banking.Engine, table *godog.Table) error
- func PartiesDelegateTheFollowingStake(engine *delegation.Engine, table *godog.Table) error
- func PartiesDepositTheFollowingAssets(collateralEngine *collateral.Engine, broker *stubs.BrokerStub, ...) error
- func PartiesHaveTheFollowingProfitAndLoss(positionService *plugins.Positions, table *godog.Table) error
- func PartiesPlaceTheFollowingIcebergOrders(exec Execution, ts *stubs.TimeStub, table *godog.Table) error
- func PartiesPlaceTheFollowingOrders(exec Execution, ts *stubs.TimeStub, table *godog.Table) error
- func PartiesPlaceTheFollowingOrdersBlocksApart(exec Execution, time *stubs.TimeStub, block *helpers.Block, ...) error
- func PartiesPlaceTheFollowingOrdersWithTicks(exec Execution, time *stubs.TimeStub, epochService EpochService, ...) error
- func PartiesPlaceTheFollowingPeggedIcebergOrders(exec Execution, ts *stubs.TimeStub, table *godog.Table) error
- func PartiesPlaceTheFollowingPeggedOrders(exec Execution, table *godog.Table) error
- func PartiesShouldHaveTheFollowingAccountBalances(broker *stubs.BrokerStub, table *godog.Table) error
- func PartiesShouldHaveTheFollowingDelegationBalances(broker *stubs.BrokerStub, table *godog.Table, epochSeq string) error
- func PartiesShouldHaveTheFollowingPositionStatus(broker *stubs.BrokerStub, market string, table *godog.Table) error
- func PartiesShouldHaveTheFollowingPositionStatusAgg(broker *stubs.BrokerStub, market string, table *godog.Table) error
- func PartiesShouldHaveTheFollowingStakingAccountBalances(stakingAccounts *stubs.StakingAccountStub, table *godog.Table) error
- func PartiesShouldReceiveTheFollowingReward(broker *stubs.BrokerStub, table *godog.Table, epochSeq string) error
- func PartiesSubmitLiquidityProvision(exec Execution, table *godog.Table) error
- func PartiesSubmitRecurringTransfers(engine *banking.Engine, table *godog.Table) error
- func PartiesSubmitTransfers(engine *banking.Engine, table *godog.Table) error
- func PartiesTransferToStakingAccount(stakingAccountStub *stubs.StakingAccountStub, broker *stubs.BrokerStub, ...) error
- func PartiesUndelegateTheFollowingStake(engine *delegation.Engine, table *godog.Table) error
- func PartiesWithdrawFromStakingAccount(stakingAccountStub *stubs.StakingAccountStub, broker *stubs.BrokerStub, ...) error
- func PartiesWithdrawTheFollowingAssets(collateral *collateral.Engine, broker *stubs.BrokerStub, netDeposits *num.Uint, ...) error
- func PartyAddsTheFollowingIcebergOrdersToABatch(party string, exec Execution, time *stubs.TimeStub, table *godog.Table) error
- func PartyAddsTheFollowingOrdersToABatch(party string, exec Execution, time *stubs.TimeStub, table *godog.Table) error
- func PartyCancelsAllTheirStopOrders(exec Execution, partyID string) error
- func PartyCancelsAllTheirStopOrdersForTheMarket(exec Execution, partyID string, marketID string) error
- func PartyCancelsTheirLiquidityProvision(exec Execution, marketID, party string) error
- func PartyShouldHaveGeneralAccountBalanceForAsset(broker *stubs.BrokerStub, party, asset, rawBalance string) error
- func PartyShouldHaveOneAccountPerAsset(broker *stubs.BrokerStub, owner string) error
- func PartyShouldHaveOneMarginAccountPerMarket(broker *stubs.BrokerStub, owner string) error
- func PartyStartsABatchInstruction(party string, exec Execution) error
- func PartySubmitsTheirBatchInstruction(party string, exec Execution) error
- func PositionStatus(rawValue string) (proto.PositionStatus, error)
- func RegisterAsset(tbl *godog.Table, asset *stubs.AssetStub, col *collateral.Engine) error
- func RewardAccountBalanceForAssetShouldMatch(broker *stubs.BrokerStub, accountType, asset, rawBalance string) error
- func Side(rawValue string) (types.Side, error)
- func StopOrderStatus(rawValue string) (types.StopOrderStatus, error)
- func StrSlice(value string, sep string) []string
- func TIF(rawValue string) (types.OrderTimeInForce, error)
- func TheAccumulatedInfrastructureFeesShouldBeForTheMarket(broker *stubs.BrokerStub, amountStr, asset string) error
- func TheAccumulatedLiquidityFeesShouldBeForTheMarket(broker *stubs.BrokerStub, amountStr, market string) error
- func TheAuctionTradedVolumeAndPriceShouldBe(broker *stubs.BrokerStub, volume, price string, now time.Time) error
- func TheAverageBlockDurationIs(block *helpers.Block, dur string) error
- func TheAverageBlockDurationWithVariance(block *helpers.Block, dur, variance string) error
- func TheCumulatedBalanceForAllAccountsShouldBeWorth(broker *stubs.BrokerStub, rawAmount string) error
- func TheFeesConfiguration(config *market.Config, name string, table *godog.Table) error
- func TheFollowingEventsShouldBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingEventsShouldNotBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingLPEventsShouldBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingNetworkParametersAreSet(netParams *netparams.Store, table *godog.Table) error
- func TheFollowingNetworkTradesShouldBeExecuted(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingOrdersShouldBeRejected(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingOrdersShouldBeStopped(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingTradesShouldBeExecuted(broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingTransfersShouldHappen(broker *stubs.BrokerStub, table *godog.Table) error
- func TheIcebergOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func TheInsurancePoolBalanceShouldBeForTheMarket(broker *stubs.BrokerStub, rawAmount, market string) error
- func TheLastStateUpdateShouldBeForMarket(broker *stubs.BrokerStub, market, expectedMarketStateStr string) error
- func TheLiquidityFeeFactorShouldForTheMarket(broker *stubs.BrokerStub, feeStr, market string) error
- func TheLiquidityMonitoring(config *market.Config, table *godog.Table) error
- func TheLiquidityProviderFeeSharesForTheMarketShouldBe(engine Execution, marketID string, table *godog.Table) error
- func TheLiquidityProvisionsShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func TheLogNormalRiskModel(config *market.Config, name string, table *godog.Table) error
- func TheMarginCalculator(config *market.Config, name string, table *godog.Table) error
- func TheMarkPriceForTheMarketIs(exec Execution, market, markPriceStr string) error
- func TheMarketDataShouldBe(engine Execution, mID string, data *godog.Table) error
- func TheMarketStateShouldBeForMarket(engine Execution, market, expectedMarketStateStr string) error
- func TheMarkets(config *market.Config, executionEngine Execution, ...) ([]types.Market, error)
- func TheMarketsUpdated(config *market.Config, executionEngine Execution, existing []types.Market, ...) ([]types.Market, error)
- func TheNetworkMovesAheadDurationWithBlocks(exec Execution, block *helpers.Block, ts *stubs.TimeStub, delta, dur string) error
- func TheNetworkMovesAheadNBlocks(exec Execution, block *helpers.Block, time *stubs.TimeStub, n string, ...) error
- func TheNetworkTreasuryBalanceShouldBeForTheAsset(broker *stubs.BrokerStub, rawAmount, asset string) error
- func TheOpenInterestShouldBeForTheMarket(engine Execution, marketID string, wantOpenInterest string) error
- func TheOracleSpec(config *market.Config, name string, specType string, rawPubKeys string, ...) error
- func TheOrderBookOfMarketShouldHaveTheFollowingVolumes(broker *stubs.BrokerStub, marketID string, table *godog.Table) error
- func TheOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func TheOrdersShouldHaveTheFollowingStatus(broker *stubs.BrokerStub, table *godog.Table) error
- func ThePartiesShouldHaveTheFollowingMarginLevels(broker *stubs.BrokerStub, table *godog.Table) error
- func ThePeggedOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func ThePriceMonitoring(config *market.Config, name string, table *godog.Table) error
- func ThePriceMonitoringBoundsForTheMarketShouldBe(engine Execution, marketID string, table *godog.Table) error
- func TheSettlementAccountShouldHaveBalanceForMarket(broker *stubs.BrokerStub, amountStr, market string) error
- func TheSimpleRiskModel(config *market.Config, name string, table *godog.Table) error
- func TheStopOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func TheSuccesorMarketIsEnacted(sID string, markets []types.Market, exec Execution) error
- func TheSuppliedStakeShouldBeForTheMarket(engine Execution, marketID string, wantSuppliedStake string) error
- func TheTargetStakeShouldBeForMarket(engine Execution, marketID string, wantTargetStake string) error
- func TheTradingModeShouldBeForMarket(engine Execution, market, tradingModeStr string) error
- func TheValidators(topology *stubs.TopologyStub, stakingAcountStub *stubs.StakingAccountStub, ...) error
- func Time(rawTime string) (time.Time, error)
- func TimeIsUpdatedTo(exec Execution, timeService *stubs.TimeStub, newTime string)
- func TotalOfEventsShouldBeEmitted(broker *stubs.BrokerStub, eventCounter int) error
- func TradingMode(name string) (types.MarketTradingMode, error)
- func U64(value string) (uint64, error)
- func U64Slice(rawValue, sep string) ([]uint64, error)
- func Uint(value string) (*num.Uint, error)
- func ValidatorsShouldHaveTheFollowingScores(broker *stubs.BrokerStub, table *godog.Table, epoch string) error
- type CancelOrderError
- type EpochService
- type ErrStack
- type ErroneousRow
- type Execution
- type LPEventWrapper
- type LPUpdate
- type MappedMD
- type Only
- type OrderAmendmentError
- type RowWrapper
- func (r RowWrapper) Bool(name string) bool
- func (r RowWrapper) Decimal(name string) num.Decimal
- func (r RowWrapper) Duration(name string) time.Duration
- func (r RowWrapper) DurationSec(name string) time.Duration
- func (r RowWrapper) F64(name string) float64
- func (r RowWrapper) F64Slice(name, sep string) []float64
- func (r RowWrapper) HasColumn(name string) bool
- func (r RowWrapper) I64(name string) int64
- func (r RowWrapper) I64B(name string) (int64, bool)
- func (r RowWrapper) I64Slice(name, sep string) []int64
- func (r RowWrapper) MaybeUint(name string) *num.Uint
- func (r RowWrapper) MustAccount(name string) types.AccountType
- func (r RowWrapper) MustAuctionTrigger(name string) types.AuctionTrigger
- func (r RowWrapper) MustBool(name string) bool
- func (r RowWrapper) MustDecimal(name string) num.Decimal
- func (r RowWrapper) MustDuration(name string) time.Duration
- func (r RowWrapper) MustDurationSec(name string) time.Duration
- func (r RowWrapper) MustDurationSec2(name string) time.Duration
- func (r RowWrapper) MustDurationStr(name string) time.Duration
- func (r RowWrapper) MustEventType(name string) events.Type
- func (r RowWrapper) MustExpiryStrategy(name string) types.StopOrderExpiryStrategy
- func (r RowWrapper) MustF64(name string) float64
- func (r RowWrapper) MustF64Slice(name, sep string) []float64
- func (r RowWrapper) MustI64(name string) int64
- func (r RowWrapper) MustI64Slice(name, sep string) []int64
- func (r RowWrapper) MustLiquidityStatus(name string) types.LiquidityProvisionStatus
- func (r RowWrapper) MustOracleSpecConditionOperator(name string) datav1.Condition_Operator
- func (r RowWrapper) MustOracleSpecPropertyType(name string) datav1.PropertyKey_Type
- func (r RowWrapper) MustOrderStatus(name string) types.OrderStatus
- func (r RowWrapper) MustOrderType(name string) types.OrderType
- func (r RowWrapper) MustPeggedReference(name string) types.PeggedReference
- func (r RowWrapper) MustPositionStatus(name string) proto.PositionStatus
- func (r RowWrapper) MustSide(name string) types.Side
- func (r RowWrapper) MustStopOrderStatus(name string) types.StopOrderStatus
- func (r RowWrapper) MustStr(name string) string
- func (r RowWrapper) MustStrSlice(name, sep string) []string
- func (r RowWrapper) MustTIF(name string) types.OrderTimeInForce
- func (r RowWrapper) MustTime(name string) time.Time
- func (r RowWrapper) MustTradingMode(name string) types.MarketTradingMode
- func (r RowWrapper) MustU32(name string) uint32
- func (r RowWrapper) MustU64(name string) uint64
- func (r RowWrapper) MustU64Slice(name, sep string) []uint64
- func (r RowWrapper) MustUint(name string) *num.Uint
- func (r RowWrapper) Str(name string) string
- func (r RowWrapper) StrB(name string) (string, bool)
- func (r RowWrapper) StrSlice(name, sep string) []string
- func (r RowWrapper) Time(name string) time.Time
- func (r RowWrapper) U32(name string) uint32
- func (r RowWrapper) U64(name string) uint64
- func (r RowWrapper) U64B(name string) (uint64, bool)
- func (r RowWrapper) U64Slice(name, sep string) []uint64
- func (r RowWrapper) Uint(name string) *num.Uint
- type SubmitOrderError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuctionTrigger ¶
func AuctionTrigger(name string) (types.AuctionTrigger, error)
func ClearAllEvents ¶
func ClearAllEvents(broker *stubs.BrokerStub)
func ClearTransferResponseEvents ¶
func ClearTransferResponseEvents(broker *stubs.BrokerStub)
func DebugAccounts ¶
func DebugAccounts(broker *stubs.BrokerStub, log *logging.Logger)
func DebugAllEvents ¶
func DebugAllEvents(broker *stubs.BrokerStub, log *logging.Logger)
func DebugAuctionEvents ¶
func DebugAuctionEvents(broker *stubs.BrokerStub, log *logging.Logger)
func DebugLPDetail ¶
func DebugLPDetail(log *logging.Logger, broker *stubs.BrokerStub)
func DebugLPSTxErrors ¶
func DebugLPSTxErrors(broker *stubs.BrokerStub, log *logging.Logger)
func DebugLastNEvents ¶ added in v0.68.0
func DebugLastNEvents(n int, broker *stubs.BrokerStub, log *logging.Logger)
func DebugMarketData ¶
func DebugOrders ¶
func DebugOrders(broker *stubs.BrokerStub, log *logging.Logger)
func DebugTrades ¶
func DebugTrades(broker *stubs.BrokerStub, log *logging.Logger)
func DebugTransfers ¶
func DebugTransfers(broker *stubs.BrokerStub, log *logging.Logger)
func DebugTxErrors ¶
func DebugTxErrors(broker *stubs.BrokerStub, log *logging.Logger)
func DebugVolumesForMarket ¶
func ExpectingEventsInTheSecenarioSoFar ¶ added in v0.68.0
func ExpectingEventsInTheSecenarioSoFar(broker *stubs.BrokerStub, expected int) error
func ExpectingEventsOverStep ¶ added in v0.68.0
func ExpectingEventsOverStep(broker *stubs.BrokerStub, eventsBeforeStep, expected int) error
func ExpiryStrategy ¶ added in v0.72.0
func ExpiryStrategy(rawValue string) (types.StopOrderExpiryStrategy, error)
func LiquidityStatus ¶
func LiquidityStatus(rawValue string) (types.LiquidityProvisionStatus, error)
func MarketState ¶
func MarketState(name string) (types.MarketState, error)
func OracleSpecConditionOperator ¶
func OracleSpecConditionOperator(name string) (datav1.Condition_Operator, error)
func OracleSpecPropertyType ¶
func OracleSpecPropertyType(name string) (datav1.PropertyKey_Type, error)
func OracleSpecSettlementDataDecimals ¶ added in v0.56.0
func OrderStatus ¶
func OrderStatus(rawValue string) (types.OrderStatus, error)
func PartiesCancelTheFollowingStopOrders ¶ added in v0.72.0
func PartiesCancelTransfers ¶
func PartiesDelegateTheFollowingStake ¶
func PartiesDelegateTheFollowingStake( engine *delegation.Engine, table *godog.Table, ) error
func PartiesDepositTheFollowingAssets ¶
func PartiesDepositTheFollowingAssets( collateralEngine *collateral.Engine, broker *stubs.BrokerStub, netDeposits *num.Uint, table *godog.Table, ) error
func PartiesPlaceTheFollowingIcebergOrders ¶ added in v0.72.0
func PartiesPlaceTheFollowingOrdersBlocksApart ¶ added in v0.63.0
func PartiesPlaceTheFollowingOrdersWithTicks ¶ added in v0.63.0
func PartiesPlaceTheFollowingPeggedIcebergOrders ¶ added in v0.72.0
func PartiesShouldHaveTheFollowingAccountBalances ¶
func PartiesShouldHaveTheFollowingAccountBalances( broker *stubs.BrokerStub, table *godog.Table, ) error
func PartiesShouldHaveTheFollowingPositionStatus ¶ added in v0.71.0
func PartiesShouldHaveTheFollowingPositionStatusAgg ¶ added in v0.71.0
func PartiesShouldHaveTheFollowingStakingAccountBalances ¶
func PartiesShouldHaveTheFollowingStakingAccountBalances( stakingAccounts *stubs.StakingAccountStub, table *godog.Table, ) error
func PartiesSubmitTransfers ¶
func PartiesTransferToStakingAccount ¶
func PartiesTransferToStakingAccount( stakingAccountStub *stubs.StakingAccountStub, broker *stubs.BrokerStub, table *godog.Table, epoch string, ) error
func PartiesUndelegateTheFollowingStake ¶
func PartiesUndelegateTheFollowingStake( engine *delegation.Engine, table *godog.Table, ) error
func PartiesWithdrawFromStakingAccount ¶
func PartiesWithdrawFromStakingAccount( stakingAccountStub *stubs.StakingAccountStub, broker *stubs.BrokerStub, table *godog.Table, ) error
func PartiesWithdrawTheFollowingAssets ¶
func PartiesWithdrawTheFollowingAssets( collateral *collateral.Engine, broker *stubs.BrokerStub, netDeposits *num.Uint, table *godog.Table, ) error
func PartyAddsTheFollowingIcebergOrdersToABatch ¶ added in v0.72.0
func PartyAddsTheFollowingOrdersToABatch ¶ added in v0.72.0
func PartyCancelsAllTheirStopOrders ¶ added in v0.72.0
func PartyCancelsAllTheirStopOrdersForTheMarket ¶ added in v0.72.0
func PartyShouldHaveGeneralAccountBalanceForAsset ¶
func PartyShouldHaveGeneralAccountBalanceForAsset( broker *stubs.BrokerStub, party, asset, rawBalance string, ) error
func PartyShouldHaveOneAccountPerAsset ¶
func PartyShouldHaveOneAccountPerAsset( broker *stubs.BrokerStub, owner string, ) error
func PartyShouldHaveOneMarginAccountPerMarket ¶
func PartyShouldHaveOneMarginAccountPerMarket( broker *stubs.BrokerStub, owner string, ) error
func PartyStartsABatchInstruction ¶ added in v0.72.0
func PartySubmitsTheirBatchInstruction ¶ added in v0.72.0
func PositionStatus ¶ added in v0.71.0
func PositionStatus(rawValue string) (proto.PositionStatus, error)
func RegisterAsset ¶
func RewardAccountBalanceForAssetShouldMatch ¶
func RewardAccountBalanceForAssetShouldMatch( broker *stubs.BrokerStub, accountType, asset, rawBalance string, ) error
func StopOrderStatus ¶ added in v0.72.0
func StopOrderStatus(rawValue string) (types.StopOrderStatus, error)
func TheAccumulatedInfrastructureFeesShouldBeForTheMarket ¶
func TheAccumulatedInfrastructureFeesShouldBeForTheMarket( broker *stubs.BrokerStub, amountStr, asset string, ) error
func TheAccumulatedLiquidityFeesShouldBeForTheMarket ¶
func TheAccumulatedLiquidityFeesShouldBeForTheMarket( broker *stubs.BrokerStub, amountStr, market string, ) error
func TheAuctionTradedVolumeAndPriceShouldBe ¶
func TheAuctionTradedVolumeAndPriceShouldBe(broker *stubs.BrokerStub, volume, price string, now time.Time) error
TheAuctionTradedVolumeAndPriceShouldBe pass in time at which the trades should happen in case there are previous trades in the broker stub.
func TheCumulatedBalanceForAllAccountsShouldBeWorth ¶
func TheCumulatedBalanceForAllAccountsShouldBeWorth(broker *stubs.BrokerStub, rawAmount string) error
func TheFeesConfiguration ¶
func TheFollowingEventsShouldBeEmitted ¶
func TheFollowingEventsShouldBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingEventsShouldNotBeEmitted ¶ added in v0.58.0
func TheFollowingEventsShouldNotBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingLPEventsShouldBeEmitted ¶
func TheFollowingLPEventsShouldBeEmitted(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingNetworkTradesShouldBeExecuted ¶
func TheFollowingNetworkTradesShouldBeExecuted(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingOrdersShouldBeRejected ¶
func TheFollowingOrdersShouldBeRejected(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingOrdersShouldBeStopped ¶
func TheFollowingOrdersShouldBeStopped(broker *stubs.BrokerStub, table *godog.Table) error
func TheFollowingTradesShouldBeExecuted ¶
func TheFollowingTradesShouldBeExecuted( broker *stubs.BrokerStub, table *godog.Table, ) error
func TheFollowingTransfersShouldHappen ¶
func TheFollowingTransfersShouldHappen( broker *stubs.BrokerStub, table *godog.Table, ) error
func TheIcebergOrdersShouldHaveTheFollowingStates ¶ added in v0.72.0
func TheIcebergOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func TheInsurancePoolBalanceShouldBeForTheMarket ¶
func TheInsurancePoolBalanceShouldBeForTheMarket( broker *stubs.BrokerStub, rawAmount, market string, ) error
func TheLastStateUpdateShouldBeForMarket ¶ added in v0.72.0
func TheLastStateUpdateShouldBeForMarket( broker *stubs.BrokerStub, market, expectedMarketStateStr string, ) error
func TheLiquidityFeeFactorShouldForTheMarket ¶
func TheLiquidityFeeFactorShouldForTheMarket( broker *stubs.BrokerStub, feeStr, market string, ) error
func TheLiquidityMonitoring ¶ added in v0.57.0
func TheLiquidityProvisionsShouldHaveTheFollowingStates ¶
func TheLiquidityProvisionsShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func TheLogNormalRiskModel ¶
func TheMarginCalculator ¶
func TheMarketDataShouldBe ¶
func TheMarkets ¶
func TheMarketsUpdated ¶ added in v0.57.0
func TheNetworkTreasuryBalanceShouldBeForTheAsset ¶
func TheNetworkTreasuryBalanceShouldBeForTheAsset( broker *stubs.BrokerStub, rawAmount, asset string, ) error
func TheOracleSpec ¶
func TheOrdersShouldHaveTheFollowingStates ¶
func TheOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func TheOrdersShouldHaveTheFollowingStatus ¶
func TheOrdersShouldHaveTheFollowingStatus(broker *stubs.BrokerStub, table *godog.Table) error
func ThePartiesShouldHaveTheFollowingMarginLevels ¶
func ThePartiesShouldHaveTheFollowingMarginLevels( broker *stubs.BrokerStub, table *godog.Table, ) error
func ThePeggedOrdersShouldHaveTheFollowingStates ¶
func ThePeggedOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func ThePriceMonitoring ¶
func TheSettlementAccountShouldHaveBalanceForMarket ¶
func TheSettlementAccountShouldHaveBalanceForMarket( broker *stubs.BrokerStub, amountStr, market string, ) error
func TheSimpleRiskModel ¶
func TheStopOrdersShouldHaveTheFollowingStates ¶ added in v0.72.0
func TheStopOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func TheSuccesorMarketIsEnacted ¶ added in v0.72.0
func TheValidators ¶
func TheValidators( topology *stubs.TopologyStub, stakingAcountStub *stubs.StakingAccountStub, delegtionEngine *delegation.Engine, table *godog.Table, ) error
func TimeIsUpdatedTo ¶
func TotalOfEventsShouldBeEmitted ¶
func TotalOfEventsShouldBeEmitted(broker *stubs.BrokerStub, eventCounter int) error
func TradingMode ¶
func TradingMode(name string) (types.MarketTradingMode, error)
Types ¶
type CancelOrderError ¶
type CancelOrderError struct { Err error // contains filtered or unexported fields }
func (CancelOrderError) Error ¶
func (c CancelOrderError) Error() string
func (*CancelOrderError) Unwrap ¶
func (c *CancelOrderError) Unwrap() error
type EpochService ¶
type ErroneousRow ¶
type Execution ¶
type Execution interface { GetMarketData(mktID string) (types.MarketData, error) GetMarketState(mktID string) (types.MarketState, error) AmendOrder(ctx context.Context, amendment *types.OrderAmendment, party string) (*types.OrderConfirmation, error) CancelOrder(ctx context.Context, cancel *types.OrderCancellation, party string) ([]*types.OrderCancellationConfirmation, error) CancelStopOrder(ctx context.Context, cancel *types.StopOrdersCancellation, party string) error SubmitOrder(ctx context.Context, submission *types.OrderSubmission, party string) (*types.OrderConfirmation, error) SubmitStopOrder(ctx context.Context, submission *types.StopOrdersSubmission, party string) (*types.OrderConfirmation, error) SubmitLiquidityProvision(ctx context.Context, submission *types.LiquidityProvisionSubmission, party string, lpID string, deterministicID string) error AmendLiquidityProvision(ctx context.Context, amendment *types.LiquidityProvisionAmendment, party string) error CancelLiquidityProvision(ctx context.Context, cancel *types.LiquidityProvisionCancellation, party string) error SubmitMarket(ctx context.Context, marketConfig *types.Market, proposer string, oos time.Time) error StartOpeningAuction(ctx context.Context, marketID string) error UpdateMarket(ctx context.Context, marketConfig *types.Market) error BlockEnd(ctx context.Context) GetMarket(parentID string, settled bool) (types.Market, bool) SucceedMarket(ctx context.Context, successor, parent string) error // even though the batch processing is done above the execution engine, from the feature test point of view // it is part of the execution engine StartBatch(party string) error AddSubmitOrderToBatch(submission *types.OrderSubmission, party string) error ProcessBatch(ctx context.Context, party string) error }
the interface for execution engine. The execution engine itself will be wrapped so to use it in steps, we'll need to use an interface.
type LPEventWrapper ¶
type LPEventWrapper struct {
// contains filtered or unexported fields
}
func (LPEventWrapper) CommitmentAmount ¶
func (l LPEventWrapper) CommitmentAmount() *num.Uint
func (LPEventWrapper) Final ¶
func (l LPEventWrapper) Final() bool
func (LPEventWrapper) ID ¶
func (l LPEventWrapper) ID() string
func (LPEventWrapper) Party ¶
func (l LPEventWrapper) Party() string
func (LPEventWrapper) Version ¶
func (l LPEventWrapper) Version() uint64
type OrderAmendmentError ¶
type OrderAmendmentError struct { OrderAmendment types.OrderAmendment OrderReference string Err error }
func (OrderAmendmentError) Error ¶
func (o OrderAmendmentError) Error() string
type RowWrapper ¶
type RowWrapper struct {
// contains filtered or unexported fields
}
func ParseTable ¶
func ParseTable(dt *godog.Table) []RowWrapper
ParseTable parses the table without verifying its integrity. Prefer the use of StrictParseTable().
func StrictParseFirstRow ¶
func StrictParseFirstRow(table *godog.Table, required, optional []string) RowWrapper
StrictParseFirstRow parses and verifies, table integrity and returns only the first row. This is suitable of table that act more as object than actual table.
func StrictParseTable ¶
func StrictParseTable(dt *godog.Table, required, optional []string) []RowWrapper
StrictParseTable parses and verifies the table integrity.
func (RowWrapper) Bool ¶
func (r RowWrapper) Bool(name string) bool
func (RowWrapper) DurationSec ¶
func (r RowWrapper) DurationSec(name string) time.Duration
func (RowWrapper) F64 ¶
func (r RowWrapper) F64(name string) float64
func (RowWrapper) F64Slice ¶
func (r RowWrapper) F64Slice(name, sep string) []float64
func (RowWrapper) HasColumn ¶
func (r RowWrapper) HasColumn(name string) bool
func (RowWrapper) I64 ¶
func (r RowWrapper) I64(name string) int64
func (RowWrapper) I64B ¶
func (r RowWrapper) I64B(name string) (int64, bool)
I64B does the same as U64B, but returns a bool indicating whether or not the column was set.
func (RowWrapper) I64Slice ¶
func (r RowWrapper) I64Slice(name, sep string) []int64
func (RowWrapper) MustAccount ¶
func (r RowWrapper) MustAccount(name string) types.AccountType
func (RowWrapper) MustAuctionTrigger ¶
func (r RowWrapper) MustAuctionTrigger(name string) types.AuctionTrigger
func (RowWrapper) MustBool ¶
func (r RowWrapper) MustBool(name string) bool
func (RowWrapper) MustDecimal ¶
func (r RowWrapper) MustDecimal(name string) num.Decimal
func (RowWrapper) MustDuration ¶
func (r RowWrapper) MustDuration(name string) time.Duration
func (RowWrapper) MustDurationSec ¶
func (r RowWrapper) MustDurationSec(name string) time.Duration
func (RowWrapper) MustDurationSec2 ¶ added in v0.72.3
func (r RowWrapper) MustDurationSec2(name string) time.Duration
func (RowWrapper) MustDurationStr ¶
func (r RowWrapper) MustDurationStr(name string) time.Duration
func (RowWrapper) MustEventType ¶
func (r RowWrapper) MustEventType(name string) events.Type
func (RowWrapper) MustExpiryStrategy ¶ added in v0.72.0
func (r RowWrapper) MustExpiryStrategy(name string) types.StopOrderExpiryStrategy
func (RowWrapper) MustF64 ¶
func (r RowWrapper) MustF64(name string) float64
func (RowWrapper) MustF64Slice ¶
func (r RowWrapper) MustF64Slice(name, sep string) []float64
func (RowWrapper) MustI64 ¶
func (r RowWrapper) MustI64(name string) int64
func (RowWrapper) MustI64Slice ¶
func (r RowWrapper) MustI64Slice(name, sep string) []int64
func (RowWrapper) MustLiquidityStatus ¶
func (r RowWrapper) MustLiquidityStatus(name string) types.LiquidityProvisionStatus
func (RowWrapper) MustOracleSpecConditionOperator ¶
func (r RowWrapper) MustOracleSpecConditionOperator(name string) datav1.Condition_Operator
func (RowWrapper) MustOracleSpecPropertyType ¶
func (r RowWrapper) MustOracleSpecPropertyType(name string) datav1.PropertyKey_Type
func (RowWrapper) MustOrderStatus ¶
func (r RowWrapper) MustOrderStatus(name string) types.OrderStatus
func (RowWrapper) MustOrderType ¶
func (r RowWrapper) MustOrderType(name string) types.OrderType
func (RowWrapper) MustPeggedReference ¶
func (r RowWrapper) MustPeggedReference(name string) types.PeggedReference
func (RowWrapper) MustPositionStatus ¶ added in v0.71.0
func (r RowWrapper) MustPositionStatus(name string) proto.PositionStatus
func (RowWrapper) MustStopOrderStatus ¶ added in v0.72.0
func (r RowWrapper) MustStopOrderStatus(name string) types.StopOrderStatus
func (RowWrapper) MustStr ¶
func (r RowWrapper) MustStr(name string) string
func (RowWrapper) MustStrSlice ¶
func (r RowWrapper) MustStrSlice(name, sep string) []string
func (RowWrapper) MustTIF ¶
func (r RowWrapper) MustTIF(name string) types.OrderTimeInForce
func (RowWrapper) MustTradingMode ¶
func (r RowWrapper) MustTradingMode(name string) types.MarketTradingMode
func (RowWrapper) MustU32 ¶
func (r RowWrapper) MustU32(name string) uint32
func (RowWrapper) MustU64 ¶
func (r RowWrapper) MustU64(name string) uint64
func (RowWrapper) MustU64Slice ¶
func (r RowWrapper) MustU64Slice(name, sep string) []uint64
func (RowWrapper) Str ¶
func (r RowWrapper) Str(name string) string
func (RowWrapper) StrB ¶
func (r RowWrapper) StrB(name string) (string, bool)
StrB does the same as Str, but returns a bool indicating whether or not the column was set.
func (RowWrapper) StrSlice ¶
func (r RowWrapper) StrSlice(name, sep string) []string
func (RowWrapper) U32 ¶
func (r RowWrapper) U32(name string) uint32
func (RowWrapper) U64 ¶
func (r RowWrapper) U64(name string) uint64
func (RowWrapper) U64B ¶
func (r RowWrapper) U64B(name string) (uint64, bool)
U64B does the same as U64, but returns a bool indicating whether or not the column was set.
func (RowWrapper) U64Slice ¶
func (r RowWrapper) U64Slice(name, sep string) []uint64
type SubmitOrderError ¶
type SubmitOrderError struct { Err error // contains filtered or unexported fields }
func (SubmitOrderError) Error ¶
func (s SubmitOrderError) Error() string
func (*SubmitOrderError) Unwrap ¶
func (s *SubmitOrderError) Unwrap() error
Source Files ¶
- assets.go
- blocks.go
- clear_events.go
- debug_accounts.go
- debug_all_events.go
- debug_auction_events.go
- debug_lps.go
- debug_market_data.go
- debug_orders.go
- debug_trades.go
- debug_transfers.go
- debug_volumes.go
- errors.go
- event_count.go
- execution.go
- lp_events.go
- market_opening_auction_period_ends.go
- network_params.go
- oracles_broadcast_data_signed_with_keys.go
- parties_amend_the_following_orders.go
- parties_cancel_all_their_orders_for_the_markets.go
- parties_cancel_the_following_orders.go
- parties_delegate_the_following_stake.go
- parties_deposit_assets.go
- parties_place_the_following_iceberg_orders.go
- parties_place_the_following_orders.go
- parties_place_the_following_pegged_iceberg_orders.go
- parties_place_the_following_pegged_orders.go
- parties_should_have_the_following_account_balances.go
- parties_should_have_the_following_margin_levels.go
- parties_should_have_the_following_position_status.go
- parties_should_have_the_following_profit_and_loss.go
- parties_should_have_the_following_staking_account_balances.go
- parties_submit_liquidity_provision.go
- parties_transfer_to_staging_account.go
- parties_undelegate_the_following_stake.go
- parties_withdraw_from_staking_account.go
- parties_withdraw_the_following_assets.go
- party_cancels_stop_orders.go
- party_should_have_general_account_balance_for_asset.go
- party_should_have_one_account_per_asset.go
- party_should_have_one_margin_account_per_market.go
- party_should_have_the_following_delegation_balances.go
- party_should_receive_the_following_rewards.go
- reward_account_balance_for_asset_should_match.go
- table_wrapper.go
- the_accumulate_infrastructure_fee_should_be_for_the_market.go
- the_accumulate_liquidity_fee_should_be_for_the_market.go
- the_cumulated_balance_for_all_accounts_should_be_worth.go
- the_fees_configuration.go
- the_following_events_should_be_emitted.go
- the_following_network_trades_should_be_executed.go
- the_following_orders_should_be_rejected.go
- the_following_orders_should_be_stopped.go
- the_following_trades_happened.go
- the_following_transfers_should_happen.go
- the_iceberg_orders_should_have_the_following_states.go
- the_insurance_balance_should_be_for_the_market.go
- the_liquidity_factor_should_for_the_market.go
- the_liquidity_monitoring.go
- the_liquidity_provider_fee_shares_for_the_market_should_be.go
- the_liquidity_provisions_should_have_the_following_states.go
- the_log_normal_risk_model.go
- the_margin_calculator.go
- the_mark_price_should_be_for_the_market.go
- the_market_data_should_be.go
- the_market_state_should_be_for_market.go
- the_markets.go
- the_network_treasury_balance_should_be_for_the_asset.go
- the_open_interest_should_be_for_the_market.go
- the_oracle_spec.go
- the_oracle_spec_settlement_decimals.go
- the_order_book_should_have_the_following_volumes_for_the_markets.go
- the_orders_should_have_the_following_states.go
- the_orders_should_have_the_following_status.go
- the_pegged_orders_should_have_the_following_states.go
- the_price_monitoring.go
- the_price_monitoring_bounds_for_the_market_should_be.go
- the_settlement_account_should_have_balance_for_market.go
- the_simple_risk_model.go
- the_stop_order_should_have_the_following_state.go
- the_supplied_stake_should_be_for_the_market.go
- the_target_stake_should_be_for_market.go
- the_trading_mode_should_be_for_market.go
- the_validators.go
- time_is_updated.go
- total_of_events_should_be_emitted.go
- transfers.go
- validators_should_have_the_following_scores.go