Documentation ¶
Index ¶
- func AMMCancelMethod(rawValue string) (types.AMMCancellationMethod, error)
- func AMMHasTheFollowingDiscountInfraFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
- func AMMHasTheFollowingDiscountLiquidityFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
- func AMMHasTheFollowingDiscountMakerFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
- func AMMHasTheFollowingMakerVolumeFraction(exec Execution, vde *volumerebate.Engine, alias, value string) error
- func AMMHasTheFollowingNotionalValue(exec Execution, vde *volumediscount.Engine, alias, value string) error
- func AMMHasTheFollowingRebate(exec Execution, vde *volumerebate.Engine, alias, factor string) error
- func AMMPoolStatus(rawValue string) (types.AMMPoolStatus, error)
- func AMMPoolStatusReason(rawValue string) (types.AMMStatusReason, error)
- func AMMPoolStatusShouldBe(broker *stubs.BrokerStub, table *godog.Table) error
- 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 ClearTradeEvents(broker *stubs.BrokerStub) error
- func ClearTransferResponseEvents(broker *stubs.BrokerStub)
- func CreateNetworkTreasuryAccount(col *collateral.Engine, asset string) error
- func DebugAMMPoolEvents(broker *stubs.BrokerStub, log *logging.Logger) error
- func DebugAMMPoolEventsForPartyMarket(broker *stubs.BrokerStub, log *logging.Logger, party, market *string) error
- func DebugAccounts(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugAllEvents(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugAllEventsJSONFile(broker *stubs.BrokerStub, log *logging.Logger, fname string) error
- func DebugAuctionEvents(broker *stubs.BrokerStub, log *logging.Logger)
- func DebugFundingPeriodEventss(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 DebugLossSocialisationEvents(broker *stubs.BrokerStub, log *logging.Logger) error
- func DebugMarketData(exec Execution, log *logging.Logger, market string) error
- func DebugNetworkParameter(log *logging.Logger, netParams *netparams.Store, key 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 ExpectToSeeAMMEvents(broker *stubs.BrokerStub, table *godog.Table) 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 LiquidityFeeMethodType(rawValue string) (types.LiquidityFeeSettings_Method, error)
- func LiquidityStatus(rawValue string) (types.LiquidityProvisionStatus, error)
- func MarketAuctionEndTime(execEngine Execution, marketID, endTime string) error
- func MarketAuctionStartTime(execEngine Execution, marketID, startTime string) error
- func MarketOpeningAuctionPeriodEnds(execEngine Execution, timeStub *stubs.TimeStub, markets []types.Market, ...) error
- func MarketState(name string) (types.MarketState, error)
- func MarketStateUpdate(name string) (types.MarketStateUpdateType, 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 *spec.Engine, timesvc *stubs.TimeStub, rawPubKeys string, ...) error
- func OraclesBroadcastDataWithBlockTimeSignedWithKeys(oracleEngine *spec.Engine, timesvc *stubs.TimeStub, rawPubKeys string, ...) error
- func OrderStatus(rawValue string) (types.OrderStatus, error)
- func OrderType(rawValue string) (types.OrderType, error)
- func PartiesAmendTheFollowingAMMs(exec Execution, table *godog.Table) error
- func PartiesAmendTheFollowingOrders(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesAmendTheFollowingPeggedIcebergOrders(broker *stubs.BrokerStub, exec Execution, ts *stubs.TimeStub, ...) error
- func PartiesApplyTheFollowingReferralCode(referralEngine *referral.Engine, teamsEngine *teams.Engine, table *godog.Table) error
- func PartiesAvailableFeeDiscounts(engine *banking.Engine, table *godog.Table) error
- func PartiesCancelAllTheirOrdersForTheMarkets(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesCancelTheFollowingAMMs(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 PartiesCreateTheFollowingReferralCode(referralEngine *referral.Engine, teamsEngine *teams.Engine, table *godog.Table) error
- func PartiesDelegateTheFollowingStake(engine *delegation.Engine, table *godog.Table) error
- func PartiesDepositTheFollowingAssets(collateralEngine *collateral.Engine, broker *stubs.BrokerStub, ...) error
- func PartiesHaveTheFollowingAMMBalances(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func PartiesHaveTheFollowingDiscountFactors(vde *volumediscount.Engine, table *godog.Table) error
- func PartiesHaveTheFollowingProfitAndLoss(exec Execution, positionService *plugins.Positions, table *godog.Table) error
- func PartiesPlaceTheFollowingHackedOrders(exec Execution, ts *stubs.TimeStub, 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(exec Execution, 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 PartiesShouldHaveVestedAccountBalances(broker *stubs.BrokerStub, table *godog.Table) error
- func PartiesShouldHaveVestingAccountBalances(broker *stubs.BrokerStub, 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 PartiesSubmitTheFollowingAMMs(exec Execution, 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 PartyAddsTheFollowingAmendsToABatch(party string, exec Execution, time *stubs.TimeStub, table *godog.Table) error
- func PartyAddsTheFollowingCancelsToABatch(party string, exec Execution, time *stubs.TimeStub, table *godog.Table) 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 PartyHasTheFollowingDiscountInfraFactor(party, discountFactor string, vde *volumediscount.Engine) error
- func PartyHasTheFollowingDiscountLiquidityFactor(party, discountFactor string, vde *volumediscount.Engine) error
- func PartyHasTheFollowingDiscountMakerFactor(party, discountFactor string, vde *volumediscount.Engine) error
- func PartyHasTheFollowingMakerVolumeFraction(party, fraction string, vde *volumerebate.Engine) error
- func PartyHasTheFollowingRebate(party, RebateFactor string, vde *volumerebate.Engine) error
- func PartyHasTheFollowingTakerNotional(party, notional string, vde *volumediscount.Engine) error
- func PartyShouldHaveGeneralAccountBalanceForAsset(broker *stubs.BrokerStub, party, asset, rawBalance string) error
- func PartyShouldHaveHoldingAccountBalanceForAsset(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 PartyShouldHaveOnlyTheFollowingAccounts(broker *stubs.BrokerStub, owner string, table *godog.Table) error
- func PartyShouldHaveVestedAccountBalanceForAsset(broker *stubs.BrokerStub, party, asset, rawBalance string) error
- func PartyShouldHaveVestingAccountBalanceForAsset(broker *stubs.BrokerStub, party, asset, rawBalance string) error
- func PartyStartsABatchInstruction(party string, exec Execution) error
- func PartySubmitsTheirBatchInstruction(party string, exec Execution) error
- func PartySubmitsTheirBatchInstructionWithError(party, err 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 SetAMMPartyAlias(broker *stubs.BrokerStub, exec Execution, table *godog.Table) 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 TheActivityStreaksShouldBe(broker *stubs.BrokerStub, epochStr string, table *godog.Table) 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 TheAverageFillPriceIs(exec Execution, table *godog.Table) error
- func TheCancelledOrdersEventContains(broker *stubs.BrokerStub, market string, table *godog.Table) error
- func TheCompositePriceOracleSpec(config *market.Config, keys string, table *godog.Table) error
- func TheCumulatedBalanceForAllAccountsShouldBeWorth(broker *stubs.BrokerStub, rawAmount string) error
- func TheCurrentEpochIs(broker *stubs.BrokerStub, epoch 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 TheFollowingFundingPeriodEventsShouldBeEmitted(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 TheFollowingTeamsWithRefereesAreCreated(col *collateral.Engine, broker *stubs.BrokerStub, netDeposits *num.Uint, ...) error
- func TheFollowingTradesShouldBeExecuted(exec Execution, broker *stubs.BrokerStub, table *godog.Table) error
- func TheFollowingTransfersShouldHappen(broker *stubs.BrokerStub, exec Execution, table *godog.Table) error
- func TheGlobalInsuranceBalanceShouldBeForTheAsset(broker *stubs.BrokerStub, rawAmount, asset string) error
- func TheIcebergOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func TheInsurancePoolBalanceShouldBeForTheMarket(broker *stubs.BrokerStub, rawAmount, market string) error
- func TheLPLiquidityBondBalanceShouldBeForTheMarket(broker *stubs.BrokerStub, party, rawAmount, market string) error
- func TheLPLiquidityFeeBalanceShouldBeForTheMarket(broker *stubs.BrokerStub, party, rawAmount, market string) error
- func TheLastStateUpdateShouldBeForMarket(broker *stubs.BrokerStub, market, expectedMarketStateStr string) error
- func TheLiquidationStrategies(config *market.Config, table *godog.Table) 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 TheLiquiditySLAPArams(config *market.Config, name string, table *godog.Table) error
- func TheLogNormalRiskModel(config *market.Config, name string, table *godog.Table) error
- func TheLongBlockDurationTableIsUploaded(ctx context.Context, exec Execution, data *godog.Table) error
- func TheLossSocialisationAmountsAre(broker *stubs.BrokerStub, table *godog.Table) error
- func TheMarginCalculator(config *market.Config, name string, table *godog.Table) error
- func TheMarkPriceAlgoShouldBeForMarket(broker *stubs.BrokerStub, market, expectedMarkPriceAlgo string) error
- func TheMarkPriceForTheMarketIs(exec Execution, market, markPriceStr string) error
- func TheMarketDataShouldBe(engine Execution, mID string, data *godog.Table) error
- func TheMarketStateIsUpdatedTo(exec Execution, 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 TheNetworkMovesAheadNEpochs(broker *stubs.BrokerStub, block *helpers.Block, exec Execution, ...) error
- func TheNetworkMovesAheadToTheNextEpoch(broker *stubs.BrokerStub, block *helpers.Block, exec Execution, ...) 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 ThePartiesUpdateMarginMode(execution Execution, table *godog.Table) error
- func ThePeggedOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
- func ThePerpsOracleSpec(config *market.Config, keys string, table *godog.Table) error
- func ThePreviousBlockDurationWas(ctx context.Context, exec Execution, duration string) error
- func ThePriceMonitoring(config *market.Config, name string, table *godog.Table) error
- func ThePriceMonitoringBoundsForTheMarketShouldBe(engine Execution, marketID string, table *godog.Table) error
- func TheProductDataShouldBe(engine Execution, mID string, data *godog.Table) error
- func TheReferralBenefitTiersConfiguration(config *referralcfg.Config, name string, table *godog.Table) error
- func TheReferralProgram(referralProgramConfig *referralcfg.Config, ...) error
- func TheReferralSetStatsShouldBe(broker *stubs.BrokerStub, code, epochStr, volumeStr string, table *godog.Table) error
- func TheReferralStakingTiersConfiguration(config *referralcfg.Config, name 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 TheSpotMarkets(config *market.Config, executionEngine Execution, ...) ([]types.Market, error)
- func TheSpotMarketsUpdated(config *market.Config, executionEngine Execution, existing []types.Market, ...) ([]types.Market, 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 TheTeamHasTheFollowingMembers(teamsEngine *teams.Engine, team string, table *godog.Table) error
- func TheTradingModeShouldBeForMarket(engine Execution, market, tradingModeStr string) error
- func TheTransfersOfFollowingTypesShouldHappen(broker *stubs.BrokerStub, table *godog.Table) error
- func TheTransfersOfFollowingTypesShouldNotHappen(broker *stubs.BrokerStub, table *godog.Table) error
- func TheValidators(topology *stubs.TopologyStub, stakingAcountStub *stubs.StakingAccountStub, ...) error
- func TheVestingStatsShouldBe(broker *stubs.BrokerStub, epochStr string, table *godog.Table) error
- func TheVolumeDiscountStatsShouldBe(broker *stubs.BrokerStub, epochStr string, table *godog.Table) 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 UpdateAsset(tbl *godog.Table, asset *stubs.AssetStub, col *collateral.Engine) error
- func ValidatorsShouldHaveTheFollowingScores(broker *stubs.BrokerStub, table *godog.Table, epoch string) error
- func VerifyTime(now time.Time, expected int64) error
- func VolumeDiscountProgram(vde *volumediscount.Engine, tiers map[string][]*types.VolumeBenefitTier, ...) error
- func VolumeDiscountProgramTiers(tiers map[string][]*types.VolumeBenefitTier, volumeDiscountTierName string, ...) error
- func VolumeRebateProgram(vde *volumerebate.Engine, tiers map[string][]*types.VolumeRebateBenefitTier, ...) error
- func VolumeRebateProgramTiers(tiers map[string][]*types.VolumeRebateBenefitTier, volumeRebateTierName string, ...) error
- type CancelOrderError
- type EpochService
- type ErrStack
- type ErroneousRow
- type Execution
- type FundingPeriodEventWrapper
- func (f FundingPeriodEventWrapper) End() (int64, bool)
- func (f FundingPeriodEventWrapper) ExternalTWAP() string
- func (f FundingPeriodEventWrapper) FundingPayment() (string, bool)
- func (f FundingPeriodEventWrapper) FundingRate() (string, bool)
- func (f FundingPeriodEventWrapper) InternalTWAP() string
- func (f FundingPeriodEventWrapper) Start() (int64, bool)
- type LPEventWrapper
- type LPUpdate
- type MappedMD
- type Only
- type OrderAmendmentError
- type ProductDataWrapper
- func (f ProductDataWrapper) ExternalTWAP() string
- func (f ProductDataWrapper) FundingPayment() (string, bool)
- func (f ProductDataWrapper) FundingRate() (string, bool)
- func (f ProductDataWrapper) InternalCompositePrice() (string, bool)
- func (f ProductDataWrapper) InternalTWAP() string
- func (f ProductDataWrapper) PriceType() (vega.CompositePriceType, bool)
- type RowWrapper
- func (r RowWrapper) Bool(name string) bool
- func (r RowWrapper) Decimal(name string) num.Decimal
- func (r RowWrapper) DecimalB(name string) (num.Decimal, bool)
- 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) I32(name string) int32
- 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) MarkPriceType() types.CompositePriceType
- func (r RowWrapper) MaybeU64(name string) *uint64
- func (r RowWrapper) MaybeUint(name string) *num.Uint
- func (r RowWrapper) MustAMMCancelationMethod(name string) types.AMMCancellationMethod
- func (r RowWrapper) MustAMMPoolStatus(name string) types.AMMPoolStatus
- 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) MustInt(name string) *num.Int
- func (r RowWrapper) MustLiquidityStatus(name string) types.LiquidityProvisionStatus
- func (r RowWrapper) MustMarketUpdateState(name string) types.MarketStateUpdateType
- 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) MustPoolStatusReason(name string) types.AMMStatusReason
- func (r RowWrapper) MustPositionStatus(name string) proto.PositionStatus
- func (r RowWrapper) MustSide(name string) types.Side
- func (r RowWrapper) MustSizeOverrideSetting(name string) types.StopOrderSizeOverrideSetting
- 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 AMMCancelMethod ¶ added in v0.77.0
func AMMCancelMethod(rawValue string) (types.AMMCancellationMethod, error)
func AMMHasTheFollowingDiscountInfraFactor ¶ added in v0.77.8
func AMMHasTheFollowingDiscountInfraFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
func AMMHasTheFollowingDiscountLiquidityFactor ¶ added in v0.77.8
func AMMHasTheFollowingDiscountLiquidityFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
func AMMHasTheFollowingDiscountMakerFactor ¶ added in v0.77.8
func AMMHasTheFollowingDiscountMakerFactor(exec Execution, vde *volumediscount.Engine, alias, factor string) error
func AMMHasTheFollowingMakerVolumeFraction ¶ added in v0.77.8
func AMMHasTheFollowingMakerVolumeFraction(exec Execution, vde *volumerebate.Engine, alias, value string) error
func AMMHasTheFollowingNotionalValue ¶ added in v0.77.0
func AMMHasTheFollowingNotionalValue(exec Execution, vde *volumediscount.Engine, alias, value string) error
func AMMHasTheFollowingRebate ¶ added in v0.77.8
func AMMHasTheFollowingRebate(exec Execution, vde *volumerebate.Engine, alias, factor string) error
func AMMPoolStatus ¶ added in v0.77.0
func AMMPoolStatus(rawValue string) (types.AMMPoolStatus, error)
func AMMPoolStatusReason ¶ added in v0.77.0
func AMMPoolStatusReason(rawValue string) (types.AMMStatusReason, error)
func AMMPoolStatusShouldBe ¶ added in v0.77.0
func AMMPoolStatusShouldBe(broker *stubs.BrokerStub, table *godog.Table) error
func AuctionTrigger ¶
func AuctionTrigger(name string) (types.AuctionTrigger, error)
func ClearAllEvents ¶
func ClearAllEvents(broker *stubs.BrokerStub)
func ClearTradeEvents ¶ added in v0.74.0
func ClearTradeEvents(broker *stubs.BrokerStub) error
func ClearTransferResponseEvents ¶
func ClearTransferResponseEvents(broker *stubs.BrokerStub)
func CreateNetworkTreasuryAccount ¶ added in v0.73.0
func CreateNetworkTreasuryAccount(col *collateral.Engine, asset string) error
func DebugAMMPoolEvents ¶ added in v0.77.0
func DebugAMMPoolEvents(broker *stubs.BrokerStub, log *logging.Logger) error
func DebugAMMPoolEventsForPartyMarket ¶ added in v0.77.0
func DebugAccounts ¶
func DebugAccounts(broker *stubs.BrokerStub, log *logging.Logger)
func DebugAllEvents ¶
func DebugAllEvents(broker *stubs.BrokerStub, log *logging.Logger)
func DebugAllEventsJSONFile ¶ added in v0.74.0
func DebugAuctionEvents ¶
func DebugAuctionEvents(broker *stubs.BrokerStub, log *logging.Logger)
func DebugFundingPeriodEventss ¶ added in v0.75.0
func DebugFundingPeriodEventss(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 DebugLossSocialisationEvents ¶ added in v0.73.14
func DebugLossSocialisationEvents(broker *stubs.BrokerStub, log *logging.Logger) error
func DebugMarketData ¶
func DebugNetworkParameter ¶ added in v0.73.0
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 ExpectToSeeAMMEvents ¶ added in v0.77.0
func ExpectToSeeAMMEvents(broker *stubs.BrokerStub, table *godog.Table) error
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 LiquidityFeeMethodType ¶ added in v0.74.0
func LiquidityFeeMethodType(rawValue string) (types.LiquidityFeeSettings_Method, error)
func LiquidityStatus ¶
func LiquidityStatus(rawValue string) (types.LiquidityProvisionStatus, error)
func MarketAuctionEndTime ¶ added in v0.77.0
func MarketAuctionStartTime ¶ added in v0.77.0
func MarketState ¶
func MarketState(name string) (types.MarketState, error)
func MarketStateUpdate ¶ added in v0.73.0
func MarketStateUpdate(name string) (types.MarketStateUpdateType, 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 OraclesBroadcastDataWithBlockTimeSignedWithKeys ¶ added in v0.73.0
func OrderStatus ¶
func OrderStatus(rawValue string) (types.OrderStatus, error)
func PartiesAmendTheFollowingAMMs ¶ added in v0.77.0
func PartiesAmendTheFollowingPeggedIcebergOrders ¶ added in v0.73.0
func PartiesApplyTheFollowingReferralCode ¶ added in v0.73.0
func PartiesAvailableFeeDiscounts ¶ added in v0.74.0
func PartiesCancelTheFollowingAMMs ¶ added in v0.77.0
func PartiesCancelTheFollowingStopOrders ¶ added in v0.72.0
func PartiesCancelTransfers ¶
func PartiesCreateTheFollowingReferralCode ¶ added in v0.73.0
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 PartiesHaveTheFollowingAMMBalances ¶ added in v0.77.0
func PartiesHaveTheFollowingDiscountFactors ¶ added in v0.78.0
func PartiesHaveTheFollowingDiscountFactors(vde *volumediscount.Engine, table *godog.Table) error
func PartiesPlaceTheFollowingHackedOrders ¶ added in v0.77.8
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 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 PartiesShouldHaveVestedAccountBalances ¶ added in v0.73.0
func PartiesShouldHaveVestedAccountBalances(broker *stubs.BrokerStub, table *godog.Table) error
func PartiesShouldHaveVestingAccountBalances ¶ added in v0.73.0
func PartiesShouldHaveVestingAccountBalances(broker *stubs.BrokerStub, table *godog.Table) error
func PartiesSubmitTheFollowingAMMs ¶ added in v0.77.0
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 PartyAddsTheFollowingAmendsToABatch ¶ added in v0.76.0
func PartyAddsTheFollowingCancelsToABatch ¶ added in v0.76.0
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 PartyHasTheFollowingDiscountInfraFactor ¶ added in v0.77.8
func PartyHasTheFollowingDiscountInfraFactor(party, discountFactor string, vde *volumediscount.Engine) error
func PartyHasTheFollowingDiscountLiquidityFactor ¶ added in v0.77.8
func PartyHasTheFollowingDiscountLiquidityFactor(party, discountFactor string, vde *volumediscount.Engine) error
func PartyHasTheFollowingDiscountMakerFactor ¶ added in v0.77.8
func PartyHasTheFollowingDiscountMakerFactor(party, discountFactor string, vde *volumediscount.Engine) error
func PartyHasTheFollowingMakerVolumeFraction ¶ added in v0.77.8
func PartyHasTheFollowingMakerVolumeFraction(party, fraction string, vde *volumerebate.Engine) error
func PartyHasTheFollowingRebate ¶ added in v0.77.8
func PartyHasTheFollowingRebate(party, RebateFactor string, vde *volumerebate.Engine) error
func PartyHasTheFollowingTakerNotional ¶ added in v0.73.0
func PartyHasTheFollowingTakerNotional(party, notional string, vde *volumediscount.Engine) error
func PartyShouldHaveGeneralAccountBalanceForAsset ¶
func PartyShouldHaveGeneralAccountBalanceForAsset( broker *stubs.BrokerStub, party, asset, rawBalance string, ) error
func PartyShouldHaveHoldingAccountBalanceForAsset ¶ added in v0.73.0
func PartyShouldHaveHoldingAccountBalanceForAsset( 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 PartyShouldHaveOnlyTheFollowingAccounts ¶ added in v0.74.5
func PartyShouldHaveVestedAccountBalanceForAsset ¶ added in v0.73.0
func PartyShouldHaveVestedAccountBalanceForAsset( broker *stubs.BrokerStub, party, asset, rawBalance string, ) error
func PartyShouldHaveVestingAccountBalanceForAsset ¶ added in v0.73.0
func PartyShouldHaveVestingAccountBalanceForAsset( broker *stubs.BrokerStub, party, asset, rawBalance string, ) error
func PartyStartsABatchInstruction ¶ added in v0.72.0
func PartySubmitsTheirBatchInstruction ¶ added in v0.72.0
func PartySubmitsTheirBatchInstructionWithError ¶ added in v0.76.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 SetAMMPartyAlias ¶ added in v0.77.0
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 TheActivityStreaksShouldBe ¶ added in v0.73.0
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 TheAverageFillPriceIs ¶ added in v0.75.0
func TheCancelledOrdersEventContains ¶ added in v0.76.0
func TheCompositePriceOracleSpec ¶ added in v0.74.0
func TheCumulatedBalanceForAllAccountsShouldBeWorth ¶
func TheCumulatedBalanceForAllAccountsShouldBeWorth(broker *stubs.BrokerStub, rawAmount string) error
func TheCurrentEpochIs ¶ added in v0.73.0
func TheCurrentEpochIs(broker *stubs.BrokerStub, epoch 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 TheFollowingFundingPeriodEventsShouldBeEmitted ¶ added in v0.75.0
func TheFollowingFundingPeriodEventsShouldBeEmitted(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 TheFollowingTeamsWithRefereesAreCreated ¶ added in v0.73.0
func TheGlobalInsuranceBalanceShouldBeForTheAsset ¶ added in v0.73.0
func TheGlobalInsuranceBalanceShouldBeForTheAsset( broker *stubs.BrokerStub, rawAmount, asset string, ) 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 TheLPLiquidityBondBalanceShouldBeForTheMarket ¶ added in v0.73.0
func TheLPLiquidityBondBalanceShouldBeForTheMarket( broker *stubs.BrokerStub, party, rawAmount, market string, ) error
func TheLPLiquidityFeeBalanceShouldBeForTheMarket ¶ added in v0.73.0
func TheLPLiquidityFeeBalanceShouldBeForTheMarket( broker *stubs.BrokerStub, party, rawAmount, market string, ) error
func TheLastStateUpdateShouldBeForMarket ¶ added in v0.72.0
func TheLastStateUpdateShouldBeForMarket( broker *stubs.BrokerStub, market, expectedMarketStateStr string, ) error
func TheLiquidationStrategies ¶ added in v0.74.0
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 TheLiquiditySLAPArams ¶ added in v0.73.0
func TheLogNormalRiskModel ¶
func TheLongBlockDurationTableIsUploaded ¶ added in v0.77.0
func TheLossSocialisationAmountsAre ¶ added in v0.73.14
func TheLossSocialisationAmountsAre(broker *stubs.BrokerStub, table *godog.Table) error
func TheMarginCalculator ¶
func TheMarkPriceAlgoShouldBeForMarket ¶ added in v0.74.0
func TheMarkPriceAlgoShouldBeForMarket( broker *stubs.BrokerStub, market, expectedMarkPriceAlgo string, ) error
func TheMarketDataShouldBe ¶
func TheMarketStateIsUpdatedTo ¶ added in v0.73.0
func TheMarkets ¶
func TheMarketsUpdated ¶ added in v0.57.0
func TheNetworkMovesAheadNEpochs ¶ added in v0.73.0
func TheNetworkMovesAheadNEpochs(broker *stubs.BrokerStub, block *helpers.Block, exec Execution, epochService EpochService, ts *stubs.TimeStub, epochs string) error
func TheNetworkMovesAheadToTheNextEpoch ¶ added in v0.73.0
func TheNetworkMovesAheadToTheNextEpoch(broker *stubs.BrokerStub, block *helpers.Block, exec Execution, epochService EpochService, ts *stubs.TimeStub) error
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 ThePartiesUpdateMarginMode ¶ added in v0.74.0
func ThePeggedOrdersShouldHaveTheFollowingStates ¶
func ThePeggedOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func ThePerpsOracleSpec ¶ added in v0.73.0
func ThePreviousBlockDurationWas ¶ added in v0.77.0
func ThePriceMonitoring ¶
func TheProductDataShouldBe ¶ added in v0.74.0
func TheReferralBenefitTiersConfiguration ¶ added in v0.73.0
func TheReferralProgram ¶ added in v0.73.0
func TheReferralSetStatsShouldBe ¶ added in v0.73.0
func TheReferralStakingTiersConfiguration ¶ added in v0.73.0
func TheSettlementAccountShouldHaveBalanceForMarket ¶
func TheSettlementAccountShouldHaveBalanceForMarket( broker *stubs.BrokerStub, amountStr, market string, ) error
func TheSimpleRiskModel ¶
func TheSpotMarkets ¶ added in v0.73.0
func TheSpotMarketsUpdated ¶ added in v0.73.0
func TheStopOrdersShouldHaveTheFollowingStates ¶ added in v0.72.0
func TheStopOrdersShouldHaveTheFollowingStates(broker *stubs.BrokerStub, table *godog.Table) error
func TheSuccesorMarketIsEnacted ¶ added in v0.72.0
func TheTeamHasTheFollowingMembers ¶ added in v0.73.0
func TheTransfersOfFollowingTypesShouldHappen ¶ added in v0.75.0
func TheTransfersOfFollowingTypesShouldHappen( broker *stubs.BrokerStub, table *godog.Table, ) error
func TheTransfersOfFollowingTypesShouldNotHappen ¶ added in v0.75.0
func TheTransfersOfFollowingTypesShouldNotHappen( broker *stubs.BrokerStub, table *godog.Table, ) error
func TheValidators ¶
func TheValidators( topology *stubs.TopologyStub, stakingAcountStub *stubs.StakingAccountStub, delegtionEngine *delegation.Engine, table *godog.Table, ) error
func TheVestingStatsShouldBe ¶ added in v0.73.0
func TheVolumeDiscountStatsShouldBe ¶ added in v0.73.0
func TimeIsUpdatedTo ¶
func TotalOfEventsShouldBeEmitted ¶
func TotalOfEventsShouldBeEmitted(broker *stubs.BrokerStub, eventCounter int) error
func TradingMode ¶
func TradingMode(name string) (types.MarketTradingMode, error)
func UpdateAsset ¶ added in v0.74.0
func VolumeDiscountProgram ¶ added in v0.73.0
func VolumeDiscountProgram( vde *volumediscount.Engine, tiers map[string][]*types.VolumeBenefitTier, table *godog.Table, ) error
func VolumeDiscountProgramTiers ¶ added in v0.73.0
func VolumeRebateProgram ¶ added in v0.77.8
func VolumeRebateProgram( vde *volumerebate.Engine, tiers map[string][]*types.VolumeRebateBenefitTier, table *godog.Table, ) error
func VolumeRebateProgramTiers ¶ added in v0.77.8
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) GetFillPriceForMarket(marketID string, volume uint64, side types.Side) (*num.Uint, 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 SubmitSpotMarket(ctx context.Context, marketConfig *types.Market, proposer string, oos time.Time) 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 UpdateSpotMarket(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 AddCancelOrderToBatch(cancellation *types.OrderCancellation, party string) error AddAmendOrderToBatch(amend *types.OrderAmendment, party string) error ProcessBatch(ctx context.Context, party string) error OnEpochEvent(ctx context.Context, epoch types.Epoch) UpdateMarketState(ctx context.Context, changes *types.MarketStateUpdateConfiguration) error UpdateMarginMode(ctx context.Context, party, marketID string, marginMode types.MarginMode, marginFactor num.Decimal) error // AMM stuff SubmitAMM(ctx context.Context, submit *types.SubmitAMM) error AmendAMM(ctx context.Context, submit *types.AmendAMM) error CancelAMM(ctx context.Context, cancel *types.CancelAMM) error GetAMMSubAccountID(alias string) (string, bool) SetAMMSubAccountIDAlias(alias, id string) // Long block auction callback OnNetworkWideAuctionDurationUpdated(ctx context.Context, v interface{}) error BeginBlock(ctx context.Context, prevBlockDuration time.Duration) }
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 FundingPeriodEventWrapper ¶ added in v0.75.0
type FundingPeriodEventWrapper struct {
// contains filtered or unexported fields
}
func (FundingPeriodEventWrapper) End ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) End() (int64, bool)
func (FundingPeriodEventWrapper) ExternalTWAP ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) ExternalTWAP() string
func (FundingPeriodEventWrapper) FundingPayment ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) FundingPayment() (string, bool)
func (FundingPeriodEventWrapper) FundingRate ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) FundingRate() (string, bool)
func (FundingPeriodEventWrapper) InternalTWAP ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) InternalTWAP() string
func (FundingPeriodEventWrapper) Start ¶ added in v0.75.0
func (f FundingPeriodEventWrapper) Start() (int64, bool)
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 ProductDataWrapper ¶ added in v0.74.0
type ProductDataWrapper struct {
// contains filtered or unexported fields
}
func (ProductDataWrapper) ExternalTWAP ¶ added in v0.74.0
func (f ProductDataWrapper) ExternalTWAP() string
func (ProductDataWrapper) FundingPayment ¶ added in v0.74.0
func (f ProductDataWrapper) FundingPayment() (string, bool)
func (ProductDataWrapper) FundingRate ¶ added in v0.74.0
func (f ProductDataWrapper) FundingRate() (string, bool)
func (ProductDataWrapper) InternalCompositePrice ¶ added in v0.74.0
func (f ProductDataWrapper) InternalCompositePrice() (string, bool)
func (ProductDataWrapper) InternalTWAP ¶ added in v0.74.0
func (f ProductDataWrapper) InternalTWAP() string
func (ProductDataWrapper) PriceType ¶ added in v0.74.0
func (f ProductDataWrapper) PriceType() (vega.CompositePriceType, bool)
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) DecimalB ¶ added in v0.73.0
func (r RowWrapper) DecimalB(name string) (num.Decimal, 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) I32 ¶ added in v0.76.0
func (r RowWrapper) I32(name string) int32
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) MarkPriceType ¶ added in v0.74.0
func (r RowWrapper) MarkPriceType() types.CompositePriceType
func (RowWrapper) MaybeU64 ¶ added in v0.74.0
func (r RowWrapper) MaybeU64(name string) *uint64
func (RowWrapper) MustAMMCancelationMethod ¶ added in v0.77.0
func (r RowWrapper) MustAMMCancelationMethod(name string) types.AMMCancellationMethod
func (RowWrapper) MustAMMPoolStatus ¶ added in v0.77.0
func (r RowWrapper) MustAMMPoolStatus(name string) types.AMMPoolStatus
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) MustMarketUpdateState ¶ added in v0.73.0
func (r RowWrapper) MustMarketUpdateState(name string) types.MarketStateUpdateType
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) MustPoolStatusReason ¶ added in v0.77.0
func (r RowWrapper) MustPoolStatusReason(name string) types.AMMStatusReason
func (RowWrapper) MustPositionStatus ¶ added in v0.71.0
func (r RowWrapper) MustPositionStatus(name string) proto.PositionStatus
func (RowWrapper) MustSizeOverrideSetting ¶ added in v0.74.0
func (r RowWrapper) MustSizeOverrideSetting(name string) types.StopOrderSizeOverrideSetting
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 ¶
- amm_accounts.go
- amm_events.go
- amm_submission.go
- assets.go
- blocks.go
- cancelled_orders.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
- epoch.go
- errors.go
- event_count.go
- execution.go
- funding_payment_events.go
- long_block_auction.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_amend_the_following_pegged_iceberg_orders.go
- parties_apply_the_following_referral_codes.go
- parties_cancel_all_their_orders_for_the_markets.go
- parties_cancel_the_following_orders.go
- parties_create_the_following_referral_codes.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_only_the_following_accounts.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
- team_has_the_following_members.go
- the_accumulate_infrastructure_fee_should_be_for_the_market.go
- the_accumulate_liquidity_fee_should_be_for_the_market.go
- the_activity_streaks_should_be.go
- the_average_fill_price_is.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_transfer_types_should_not_happen.go
- the_following_transfers_should_happen.go
- the_global_insurance_balance_should_be_for_the_asset.go
- the_iceberg_orders_should_have_the_following_states.go
- the_insurance_balance_should_be_for_the_market.go
- the_liquidation_strategy.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_liquidity_sla_params.go
- the_log_normal_risk_model.go
- the_loss_socialisation_amount_is.go
- the_lp_liquidity_bond_balance_should_be_for_the_party_in_market.go
- the_lp_liquidity_fee_balance_should_be_for_the_party_in_market.go
- the_margin_calculator.go
- the_mark_price_algo_for_a_market.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_for_composite_price.go
- the_oracle_spec_for_perps.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_parties_update_margin_mode.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_product_data_should_be.go
- the_referral_benefit_tiers_configuration.go
- the_referral_program.go
- the_referral_set_stats_should_be.go
- the_referral_staking_tiers_configuration.go
- the_settlement_account_should_have_balance_for_market.go
- the_simple_risk_model.go
- the_spot_markets.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
- the_vesting_stats_should_be.go
- the_volume_discount_stats_should_be.go
- time_is_updated.go
- total_of_events_should_be_emitted.go
- transfers.go
- validators_should_have_the_following_scores.go
- volume_discount_program.go
- volume_rebate_program.go