Documentation ¶
Index ¶
- Variables
- type DepositAddresses
- type DepositFlags
- type DepositNumbers
- type DepositProps
- type Main
- type MainCaller
- func (_Main *MainCaller) GetAccountOrders(opts *bind.CallOpts, dataStore common.Address, account common.Address, ...) ([]OrderProps, error)
- func (_Main *MainCaller) GetAccountPositionInfoList(opts *bind.CallOpts, dataStore common.Address, referralStorage common.Address, ...) ([]ReaderUtilsPositionInfo, error)
- func (_Main *MainCaller) GetAccountPositions(opts *bind.CallOpts, dataStore common.Address, account common.Address, ...) ([]PositionProps, error)
- func (_Main *MainCaller) GetAdlState(opts *bind.CallOpts, dataStore common.Address, market common.Address, ...) (*big.Int, bool, *big.Int, *big.Int, error)
- func (_Main *MainCaller) GetDeposit(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (DepositProps, error)
- func (_Main *MainCaller) GetDepositAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, error)
- func (_Main *MainCaller) GetExecutionPrice(opts *bind.CallOpts, dataStore common.Address, marketKey common.Address, ...) (ReaderPricingUtilsExecutionPriceResult, error)
- func (_Main *MainCaller) GetMarket(opts *bind.CallOpts, dataStore common.Address, key common.Address) (MarketProps, error)
- func (_Main *MainCaller) GetMarketBySalt(opts *bind.CallOpts, dataStore common.Address, salt [32]byte) (MarketProps, error)
- func (_Main *MainCaller) GetMarketInfo(opts *bind.CallOpts, dataStore common.Address, prices MarketUtilsMarketPrices, ...) (ReaderUtilsMarketInfo, error)
- func (_Main *MainCaller) GetMarketInfoList(opts *bind.CallOpts, dataStore common.Address, ...) ([]ReaderUtilsMarketInfo, error)
- func (_Main *MainCaller) GetMarketTokenPrice(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, MarketPoolValueInfoProps, error)
- func (_Main *MainCaller) GetMarkets(opts *bind.CallOpts, dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
- func (_Main *MainCaller) GetNetPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, error)
- func (_Main *MainCaller) GetOpenInterestWithPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, error)
- func (_Main *MainCaller) GetOrder(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (OrderProps, error)
- func (_Main *MainCaller) GetPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, error)
- func (_Main *MainCaller) GetPnlToPoolFactor(opts *bind.CallOpts, dataStore common.Address, marketAddress common.Address, ...) (*big.Int, error)
- func (_Main *MainCaller) GetPosition(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (PositionProps, error)
- func (_Main *MainCaller) GetPositionInfo(opts *bind.CallOpts, dataStore common.Address, referralStorage common.Address, ...) (ReaderUtilsPositionInfo, error)
- func (_Main *MainCaller) GetPositionPnlUsd(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Main *MainCaller) GetSwapAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
- func (_Main *MainCaller) GetSwapPriceImpact(opts *bind.CallOpts, dataStore common.Address, marketKey common.Address, ...) (*big.Int, *big.Int, error)
- func (_Main *MainCaller) GetWithdrawal(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (WithdrawalProps, error)
- func (_Main *MainCaller) GetWithdrawalAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, ...) (*big.Int, *big.Int, error)
- type MainCallerRaw
- type MainCallerSession
- func (_Main *MainCallerSession) GetAccountOrders(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]OrderProps, error)
- func (_Main *MainCallerSession) GetAccountPositionInfoList(dataStore common.Address, referralStorage common.Address, ...) ([]ReaderUtilsPositionInfo, error)
- func (_Main *MainCallerSession) GetAccountPositions(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]PositionProps, error)
- func (_Main *MainCallerSession) GetAdlState(dataStore common.Address, market common.Address, isLong bool, ...) (*big.Int, bool, *big.Int, *big.Int, error)
- func (_Main *MainCallerSession) GetDeposit(dataStore common.Address, key [32]byte) (DepositProps, error)
- func (_Main *MainCallerSession) GetDepositAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, error)
- func (_Main *MainCallerSession) GetExecutionPrice(dataStore common.Address, marketKey common.Address, indexTokenPrice PriceProps, ...) (ReaderPricingUtilsExecutionPriceResult, error)
- func (_Main *MainCallerSession) GetMarket(dataStore common.Address, key common.Address) (MarketProps, error)
- func (_Main *MainCallerSession) GetMarketBySalt(dataStore common.Address, salt [32]byte) (MarketProps, error)
- func (_Main *MainCallerSession) GetMarketInfo(dataStore common.Address, prices MarketUtilsMarketPrices, ...) (ReaderUtilsMarketInfo, error)
- func (_Main *MainCallerSession) GetMarketInfoList(dataStore common.Address, marketPricesList []MarketUtilsMarketPrices, ...) ([]ReaderUtilsMarketInfo, error)
- func (_Main *MainCallerSession) GetMarketTokenPrice(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, MarketPoolValueInfoProps, error)
- func (_Main *MainCallerSession) GetMarkets(dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
- func (_Main *MainCallerSession) GetNetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainCallerSession) GetOpenInterestWithPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainCallerSession) GetOrder(dataStore common.Address, key [32]byte) (OrderProps, error)
- func (_Main *MainCallerSession) GetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainCallerSession) GetPnlToPoolFactor(dataStore common.Address, marketAddress common.Address, ...) (*big.Int, error)
- func (_Main *MainCallerSession) GetPosition(dataStore common.Address, key [32]byte) (PositionProps, error)
- func (_Main *MainCallerSession) GetPositionInfo(dataStore common.Address, referralStorage common.Address, positionKey [32]byte, ...) (ReaderUtilsPositionInfo, error)
- func (_Main *MainCallerSession) GetPositionPnlUsd(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Main *MainCallerSession) GetSwapAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
- func (_Main *MainCallerSession) GetSwapPriceImpact(dataStore common.Address, marketKey common.Address, tokenIn common.Address, ...) (*big.Int, *big.Int, error)
- func (_Main *MainCallerSession) GetWithdrawal(dataStore common.Address, key [32]byte) (WithdrawalProps, error)
- func (_Main *MainCallerSession) GetWithdrawalAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, error)
- type MainFilterer
- type MainRaw
- func (_Main *MainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Main *MainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Main *MainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MainSession
- func (_Main *MainSession) GetAccountOrders(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]OrderProps, error)
- func (_Main *MainSession) GetAccountPositionInfoList(dataStore common.Address, referralStorage common.Address, ...) ([]ReaderUtilsPositionInfo, error)
- func (_Main *MainSession) GetAccountPositions(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]PositionProps, error)
- func (_Main *MainSession) GetAdlState(dataStore common.Address, market common.Address, isLong bool, ...) (*big.Int, bool, *big.Int, *big.Int, error)
- func (_Main *MainSession) GetDeposit(dataStore common.Address, key [32]byte) (DepositProps, error)
- func (_Main *MainSession) GetDepositAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, error)
- func (_Main *MainSession) GetExecutionPrice(dataStore common.Address, marketKey common.Address, indexTokenPrice PriceProps, ...) (ReaderPricingUtilsExecutionPriceResult, error)
- func (_Main *MainSession) GetMarket(dataStore common.Address, key common.Address) (MarketProps, error)
- func (_Main *MainSession) GetMarketBySalt(dataStore common.Address, salt [32]byte) (MarketProps, error)
- func (_Main *MainSession) GetMarketInfo(dataStore common.Address, prices MarketUtilsMarketPrices, ...) (ReaderUtilsMarketInfo, error)
- func (_Main *MainSession) GetMarketInfoList(dataStore common.Address, marketPricesList []MarketUtilsMarketPrices, ...) ([]ReaderUtilsMarketInfo, error)
- func (_Main *MainSession) GetMarketTokenPrice(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, MarketPoolValueInfoProps, error)
- func (_Main *MainSession) GetMarkets(dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
- func (_Main *MainSession) GetNetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainSession) GetOpenInterestWithPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainSession) GetOrder(dataStore common.Address, key [32]byte) (OrderProps, error)
- func (_Main *MainSession) GetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, ...) (*big.Int, error)
- func (_Main *MainSession) GetPnlToPoolFactor(dataStore common.Address, marketAddress common.Address, ...) (*big.Int, error)
- func (_Main *MainSession) GetPosition(dataStore common.Address, key [32]byte) (PositionProps, error)
- func (_Main *MainSession) GetPositionInfo(dataStore common.Address, referralStorage common.Address, positionKey [32]byte, ...) (ReaderUtilsPositionInfo, error)
- func (_Main *MainSession) GetPositionPnlUsd(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Main *MainSession) GetSwapAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
- func (_Main *MainSession) GetSwapPriceImpact(dataStore common.Address, marketKey common.Address, tokenIn common.Address, ...) (*big.Int, *big.Int, error)
- func (_Main *MainSession) GetWithdrawal(dataStore common.Address, key [32]byte) (WithdrawalProps, error)
- func (_Main *MainSession) GetWithdrawalAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, ...) (*big.Int, *big.Int, error)
- type MainTransactor
- type MainTransactorRaw
- type MainTransactorSession
- type MarketPoolValueInfoProps
- type MarketProps
- type MarketUtilsCollateralType
- type MarketUtilsGetNextFundingAmountPerSizeResult
- type MarketUtilsMarketPrices
- type MarketUtilsPositionType
- type OrderAddresses
- type OrderFlags
- type OrderNumbers
- type OrderProps
- type PositionAddresses
- type PositionFlags
- type PositionNumbers
- type PositionPricingUtilsPositionBorrowingFees
- type PositionPricingUtilsPositionFees
- type PositionPricingUtilsPositionFundingFees
- type PositionPricingUtilsPositionReferralFees
- type PositionPricingUtilsPositionUiFees
- type PositionProps
- type PriceProps
- type ReaderPricingUtilsExecutionPriceResult
- type ReaderUtilsBaseFundingValues
- type ReaderUtilsMarketInfo
- type ReaderUtilsPositionInfo
- type ReaderUtilsVirtualInventory
- type SwapPricingUtilsSwapFees
- type WithdrawalAddresses
- type WithdrawalFlags
- type WithdrawalNumbers
- type WithdrawalProps
Constants ¶
This section is empty.
Variables ¶
var MainABI = MainMetaData.ABI
MainABI is the input ABI used to generate the binding from. Deprecated: Use MainMetaData.ABI instead.
var MainMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"DisabledMarket\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyMarket\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getAccountOrders\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callbackContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"initialCollateralToken\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"swapPath\",\"type\":\"address[]\"}],\"internalType\":\"structOrder.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumOrder.OrderType\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"enumOrder.DecreasePositionSwapType\",\"name\":\"decreasePositionSwapType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"sizeDeltaUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"initialCollateralDeltaAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"triggerPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callbackGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minOutputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structOrder.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldUnwrapNativeToken\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isFrozen\",\"type\":\"bool\"}],\"internalType\":\"structOrder.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structOrder.Props[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"contractIReferralStorage\",\"name\":\"referralStorage\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"positionKeys\",\"type\":\"bytes32[]\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices[]\",\"name\":\"prices\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"}],\"name\":\"getAccountPositionInfoList\",\"outputs\":[{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"}],\"internalType\":\"structPosition.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sizeInUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sizeInTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"increasedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"decreasedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structPosition.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"}],\"internalType\":\"structPosition.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structPosition.Props\",\"name\":\"position\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"referralCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"affiliate\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"totalRebateFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"traderDiscountFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalRebateAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"traderDiscountAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"affiliateRewardAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionReferralFees\",\"name\":\"referral\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimableLongTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimableShortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestFundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestLongTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestShortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionFundingFees\",\"name\":\"funding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"borrowingFeeUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeAmountForFeeReceiver\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionBorrowingFees\",\"name\":\"borrowing\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionUiFees\",\"name\":\"ui\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"collateralTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeReceiverAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeAmountForPool\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeAmountForPool\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCostAmountExcludingFunding\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCostAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionFees\",\"name\":\"fees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"priceImpactUsd\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"priceImpactDiffUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionPrice\",\"type\":\"uint256\"}],\"internalType\":\"structReaderPricingUtils.ExecutionPriceResult\",\"name\":\"executionPriceResult\",\"type\":\"tuple\"},{\"internalType\":\"int256\",\"name\":\"basePnlUsd\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"uncappedBasePnlUsd\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"pnlAfterPriceImpactUsd\",\"type\":\"int256\"}],\"internalType\":\"structReaderUtils.PositionInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getAccountPositions\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"}],\"internalType\":\"structPosition.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sizeInUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sizeInTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"increasedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"decreasedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structPosition.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"}],\"internalType\":\"structPosition.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structPosition.Props[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"}],\"name\":\"getAdlState\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"getDeposit\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callbackContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"initialLongToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"initialShortToken\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"longTokenSwapPath\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"shortTokenSwapPath\",\"type\":\"address[]\"}],\"internalType\":\"structDeposit.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"initialLongTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"initialShortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minMarketTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callbackGasLimit\",\"type\":\"uint256\"}],\"internalType\":\"structDeposit.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"shouldUnwrapNativeToken\",\"type\":\"bool\"}],\"internalType\":\"structDeposit.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structDeposit.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"longTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"}],\"name\":\"getDepositAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"marketKey\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"positionSizeInUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionSizeInTokens\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"sizeDeltaUsd\",\"type\":\"int256\"},{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"}],\"name\":\"getExecutionPrice\",\"outputs\":[{\"components\":[{\"internalType\":\"int256\",\"name\":\"priceImpactUsd\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"priceImpactDiffUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionPrice\",\"type\":\"uint256\"}],\"internalType\":\"structReaderPricingUtils.ExecutionPriceResult\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"key\",\"type\":\"address\"}],\"name\":\"getMarket\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"getMarketBySalt\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"marketKey\",\"type\":\"address\"}],\"name\":\"getMarketInfo\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactorPerSecondForLongs\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactorPerSecondForShorts\",\"type\":\"uint256\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"claimableFundingAmountPerSize\",\"type\":\"tuple\"}],\"internalType\":\"structReaderUtils.BaseFundingValues\",\"name\":\"baseFunding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"longsPayShorts\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"fundingFactorPerSecond\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"nextSavedFundingFactorPerSecond\",\"type\":\"int256\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"fundingFeeAmountPerSizeDelta\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"claimableFundingAmountPerSizeDelta\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.GetNextFundingAmountPerSizeResult\",\"name\":\"nextFunding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"virtualPoolAmountForLongToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"virtualPoolAmountForShortToken\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"virtualInventoryForPositions\",\"type\":\"int256\"}],\"internalType\":\"structReaderUtils.VirtualInventory\",\"name\":\"virtualInventory\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isDisabled\",\"type\":\"bool\"}],\"internalType\":\"structReaderUtils.MarketInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices[]\",\"name\":\"marketPricesList\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getMarketInfoList\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactorPerSecondForLongs\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactorPerSecondForShorts\",\"type\":\"uint256\"},{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"claimableFundingAmountPerSize\",\"type\":\"tuple\"}],\"internalType\":\"structReaderUtils.BaseFundingValues\",\"name\":\"baseFunding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"longsPayShorts\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"fundingFactorPerSecond\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"nextSavedFundingFactorPerSecond\",\"type\":\"int256\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"fundingFeeAmountPerSizeDelta\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"long\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"longToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortToken\",\"type\":\"uint256\"}],\"internalType\":\"structMarketUtils.CollateralType\",\"name\":\"short\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.PositionType\",\"name\":\"claimableFundingAmountPerSizeDelta\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.GetNextFundingAmountPerSizeResult\",\"name\":\"nextFunding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"virtualPoolAmountForLongToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"virtualPoolAmountForShortToken\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"virtualInventoryForPositions\",\"type\":\"int256\"}],\"internalType\":\"structReaderUtils.VirtualInventory\",\"name\":\"virtualInventory\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isDisabled\",\"type\":\"bool\"}],\"internalType\":\"structReaderUtils.MarketInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"pnlFactorType\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"maximize\",\"type\":\"bool\"}],\"name\":\"getMarketTokenPrice\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"poolValue\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"longPnl\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"shortPnl\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netPnl\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBorrowingFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeePoolFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"impactPoolAmount\",\"type\":\"uint256\"}],\"internalType\":\"structMarketPoolValueInfo.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"name\":\"getMarkets\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"maximize\",\"type\":\"bool\"}],\"name\":\"getNetPnl\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"maximize\",\"type\":\"bool\"}],\"name\":\"getOpenInterestWithPnl\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"getOrder\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callbackContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"initialCollateralToken\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"swapPath\",\"type\":\"address[]\"}],\"internalType\":\"structOrder.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumOrder.OrderType\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"internalType\":\"enumOrder.DecreasePositionSwapType\",\"name\":\"decreasePositionSwapType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"sizeDeltaUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"initialCollateralDeltaAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"triggerPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callbackGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minOutputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structOrder.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"shouldUnwrapNativeToken\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isFrozen\",\"type\":\"bool\"}],\"internalType\":\"structOrder.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structOrder.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"maximize\",\"type\":\"bool\"}],\"name\":\"getPnl\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"marketAddress\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"maximize\",\"type\":\"bool\"}],\"name\":\"getPnlToPoolFactor\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"getPosition\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"}],\"internalType\":\"structPosition.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sizeInUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sizeInTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"increasedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"decreasedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structPosition.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"}],\"internalType\":\"structPosition.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structPosition.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"contractIReferralStorage\",\"name\":\"referralStorage\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"positionKey\",\"type\":\"bytes32\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"sizeDeltaUsd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"usePositionSizeAsSizeDeltaUsd\",\"type\":\"bool\"}],\"name\":\"getPositionInfo\",\"outputs\":[{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"collateralToken\",\"type\":\"address\"}],\"internalType\":\"structPosition.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"sizeInUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sizeInTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"increasedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"decreasedAtBlock\",\"type\":\"uint256\"}],\"internalType\":\"structPosition.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isLong\",\"type\":\"bool\"}],\"internalType\":\"structPosition.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structPosition.Props\",\"name\":\"position\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"referralCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"affiliate\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"totalRebateFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"traderDiscountFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalRebateAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"traderDiscountAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"affiliateRewardAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionReferralFees\",\"name\":\"referral\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"fundingFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimableLongTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimableShortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestFundingFeeAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestLongTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestShortTokenClaimableFundingAmountPerSize\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionFundingFees\",\"name\":\"funding\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"borrowingFeeUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrowingFeeAmountForFeeReceiver\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionBorrowingFees\",\"name\":\"borrowing\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionUiFees\",\"name\":\"ui\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"collateralTokenPrice\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeReceiverAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeAmountForPool\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeAmountForPool\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCostAmountExcludingFunding\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCostAmount\",\"type\":\"uint256\"}],\"internalType\":\"structPositionPricingUtils.PositionFees\",\"name\":\"fees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"priceImpactUsd\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"priceImpactDiffUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionPrice\",\"type\":\"uint256\"}],\"internalType\":\"structReaderPricingUtils.ExecutionPriceResult\",\"name\":\"executionPriceResult\",\"type\":\"tuple\"},{\"internalType\":\"int256\",\"name\":\"basePnlUsd\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"uncappedBasePnlUsd\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"pnlAfterPriceImpactUsd\",\"type\":\"int256\"}],\"internalType\":\"structReaderUtils.PositionInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"positionKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"sizeDeltaUsd\",\"type\":\"uint256\"}],\"name\":\"getPositionPnlUsd\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"}],\"name\":\"getSwapAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"feeReceiverAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeAmountForPool\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAfterFees\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeReceiverFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"uiFeeAmount\",\"type\":\"uint256\"}],\"internalType\":\"structSwapPricingUtils.SwapFees\",\"name\":\"fees\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"marketKey\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"tokenInPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"tokenOutPrice\",\"type\":\"tuple\"}],\"name\":\"getSwapPriceImpact\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"getWithdrawal\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callbackContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"longTokenSwapPath\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"shortTokenSwapPath\",\"type\":\"address[]\"}],\"internalType\":\"structWithdrawal.Addresses\",\"name\":\"addresses\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"marketTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minLongTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minShortTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAtBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"executionFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callbackGasLimit\",\"type\":\"uint256\"}],\"internalType\":\"structWithdrawal.Numbers\",\"name\":\"numbers\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"shouldUnwrapNativeToken\",\"type\":\"bool\"}],\"internalType\":\"structWithdrawal.Flags\",\"name\":\"flags\",\"type\":\"tuple\"}],\"internalType\":\"structWithdrawal.Props\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractDataStore\",\"name\":\"dataStore\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"marketToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"indexToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"longToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"shortToken\",\"type\":\"address\"}],\"internalType\":\"structMarket.Props\",\"name\":\"market\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"indexTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"longTokenPrice\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"}],\"internalType\":\"structPrice.Props\",\"name\":\"shortTokenPrice\",\"type\":\"tuple\"}],\"internalType\":\"structMarketUtils.MarketPrices\",\"name\":\"prices\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"marketTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"uiFeeReceiver\",\"type\":\"address\"}],\"name\":\"getWithdrawalAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],",
}
MainMetaData contains all meta data concerning the Main contract.
Functions ¶
This section is empty.
Types ¶
type DepositAddresses ¶
type DepositAddresses struct { Account common.Address Receiver common.Address CallbackContract common.Address UiFeeReceiver common.Address Market common.Address InitialLongToken common.Address InitialShortToken common.Address LongTokenSwapPath []common.Address ShortTokenSwapPath []common.Address }
DepositAddresses is an auto generated low-level Go binding around an user-defined struct.
type DepositFlags ¶
type DepositFlags struct {
ShouldUnwrapNativeToken bool
}
DepositFlags is an auto generated low-level Go binding around an user-defined struct.
type DepositNumbers ¶
type DepositNumbers struct { InitialLongTokenAmount *big.Int InitialShortTokenAmount *big.Int MinMarketTokens *big.Int UpdatedAtBlock *big.Int ExecutionFee *big.Int CallbackGasLimit *big.Int }
DepositNumbers is an auto generated low-level Go binding around an user-defined struct.
type DepositProps ¶
type DepositProps struct { Addresses DepositAddresses Numbers DepositNumbers Flags DepositFlags }
DepositProps is an auto generated low-level Go binding around an user-defined struct.
type Main ¶
type Main struct { MainCaller // Read-only binding to the contract MainTransactor // Write-only binding to the contract MainFilterer // Log filterer for contract events }
Main is an auto generated Go binding around an Ethereum contract.
type MainCaller ¶
type MainCaller struct {
// contains filtered or unexported fields
}
MainCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMainCaller ¶
func NewMainCaller(address common.Address, caller bind.ContractCaller) (*MainCaller, error)
NewMainCaller creates a new read-only instance of Main, bound to a specific deployed contract.
func (*MainCaller) GetAccountOrders ¶
func (_Main *MainCaller) GetAccountOrders(opts *bind.CallOpts, dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]OrderProps, error)
GetAccountOrders is a free data retrieval call binding the contract method 0x42a6f8d3.
Solidity: function getAccountOrders(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool))[])
func (*MainCaller) GetAccountPositionInfoList ¶
func (_Main *MainCaller) GetAccountPositionInfoList(opts *bind.CallOpts, dataStore common.Address, referralStorage common.Address, positionKeys [][32]byte, prices []MarketUtilsMarketPrices, uiFeeReceiver common.Address) ([]ReaderUtilsPositionInfo, error)
GetAccountPositionInfoList is a free data retrieval call binding the contract method 0xece9e0c8.
Solidity: function getAccountPositionInfoList(address dataStore, address referralStorage, bytes32[] positionKeys, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] prices, address uiFeeReceiver) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256)[])
func (*MainCaller) GetAccountPositions ¶
func (_Main *MainCaller) GetAccountPositions(opts *bind.CallOpts, dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]PositionProps, error)
GetAccountPositions is a free data retrieval call binding the contract method 0x77cfb162.
Solidity: function getAccountPositions(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool))[])
func (*MainCaller) GetAdlState ¶
func (_Main *MainCaller) GetAdlState(opts *bind.CallOpts, dataStore common.Address, market common.Address, isLong bool, prices MarketUtilsMarketPrices) (*big.Int, bool, *big.Int, *big.Int, error)
GetAdlState is a free data retrieval call binding the contract method 0x2b17b4fd.
Solidity: function getAdlState(address dataStore, address market, bool isLong, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices) view returns(uint256, bool, int256, uint256)
func (*MainCaller) GetDeposit ¶
func (_Main *MainCaller) GetDeposit(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (DepositProps, error)
GetDeposit is a free data retrieval call binding the contract method 0x1485d297.
Solidity: function getDeposit(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCaller) GetDepositAmountOut ¶
func (_Main *MainCaller) GetDepositAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, longTokenAmount *big.Int, shortTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, error)
GetDepositAmountOut is a free data retrieval call binding the contract method 0x85874c7f.
Solidity: function getDepositAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 longTokenAmount, uint256 shortTokenAmount, address uiFeeReceiver) view returns(uint256)
func (*MainCaller) GetExecutionPrice ¶
func (_Main *MainCaller) GetExecutionPrice(opts *bind.CallOpts, dataStore common.Address, marketKey common.Address, indexTokenPrice PriceProps, positionSizeInUsd *big.Int, positionSizeInTokens *big.Int, sizeDeltaUsd *big.Int, isLong bool) (ReaderPricingUtilsExecutionPriceResult, error)
GetExecutionPrice is a free data retrieval call binding the contract method 0x5d2b44f9.
Solidity: function getExecutionPrice(address dataStore, address marketKey, (uint256,uint256) indexTokenPrice, uint256 positionSizeInUsd, uint256 positionSizeInTokens, int256 sizeDeltaUsd, bool isLong) view returns((int256,uint256,uint256))
func (*MainCaller) GetMarket ¶
func (_Main *MainCaller) GetMarket(opts *bind.CallOpts, dataStore common.Address, key common.Address) (MarketProps, error)
GetMarket is a free data retrieval call binding the contract method 0x714af34b.
Solidity: function getMarket(address dataStore, address key) view returns((address,address,address,address))
func (*MainCaller) GetMarketBySalt ¶
func (_Main *MainCaller) GetMarketBySalt(opts *bind.CallOpts, dataStore common.Address, salt [32]byte) (MarketProps, error)
GetMarketBySalt is a free data retrieval call binding the contract method 0xa4f0d550.
Solidity: function getMarketBySalt(address dataStore, bytes32 salt) view returns((address,address,address,address))
func (*MainCaller) GetMarketInfo ¶
func (_Main *MainCaller) GetMarketInfo(opts *bind.CallOpts, dataStore common.Address, prices MarketUtilsMarketPrices, marketKey common.Address) (ReaderUtilsMarketInfo, error)
GetMarketInfo is a free data retrieval call binding the contract method 0x847bb469.
Solidity: function getMarketInfo(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address marketKey) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool))
func (*MainCaller) GetMarketInfoList ¶
func (_Main *MainCaller) GetMarketInfoList(opts *bind.CallOpts, dataStore common.Address, marketPricesList []MarketUtilsMarketPrices, start *big.Int, end *big.Int) ([]ReaderUtilsMarketInfo, error)
GetMarketInfoList is a free data retrieval call binding the contract method 0xbc7b5bba.
Solidity: function getMarketInfoList(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] marketPricesList, uint256 start, uint256 end) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool)[])
func (*MainCaller) GetMarketTokenPrice ¶
func (_Main *MainCaller) GetMarketTokenPrice(opts *bind.CallOpts, dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, longTokenPrice PriceProps, shortTokenPrice PriceProps, pnlFactorType [32]byte, maximize bool) (*big.Int, MarketPoolValueInfoProps, error)
GetMarketTokenPrice is a free data retrieval call binding the contract method 0x095ce6c5.
Solidity: function getMarketTokenPrice(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, (uint256,uint256) longTokenPrice, (uint256,uint256) shortTokenPrice, bytes32 pnlFactorType, bool maximize) view returns(int256, (int256,int256,int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*MainCaller) GetMarkets ¶
func (_Main *MainCaller) GetMarkets(opts *bind.CallOpts, dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
GetMarkets is a free data retrieval call binding the contract method 0xce3264bf.
Solidity: function getMarkets(address dataStore, uint256 start, uint256 end) view returns((address,address,address,address)[])
func (*MainCaller) GetNetPnl ¶
func (_Main *MainCaller) GetNetPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, maximize bool) (*big.Int, error)
GetNetPnl is a free data retrieval call binding the contract method 0xfd50649d.
Solidity: function getNetPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool maximize) view returns(int256)
func (*MainCaller) GetOpenInterestWithPnl ¶
func (_Main *MainCaller) GetOpenInterestWithPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetOpenInterestWithPnl is a free data retrieval call binding the contract method 0xa0140938.
Solidity: function getOpenInterestWithPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainCaller) GetOrder ¶
func (_Main *MainCaller) GetOrder(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (OrderProps, error)
GetOrder is a free data retrieval call binding the contract method 0x49651b6a.
Solidity: function getOrder(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool)))
func (*MainCaller) GetPnl ¶
func (_Main *MainCaller) GetPnl(opts *bind.CallOpts, dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetPnl is a free data retrieval call binding the contract method 0x24c029e0.
Solidity: function getPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainCaller) GetPnlToPoolFactor ¶
func (_Main *MainCaller) GetPnlToPoolFactor(opts *bind.CallOpts, dataStore common.Address, marketAddress common.Address, prices MarketUtilsMarketPrices, isLong bool, maximize bool) (*big.Int, error)
GetPnlToPoolFactor is a free data retrieval call binding the contract method 0x971de27d.
Solidity: function getPnlToPoolFactor(address dataStore, address marketAddress, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bool isLong, bool maximize) view returns(int256)
func (*MainCaller) GetPosition ¶
func (_Main *MainCaller) GetPosition(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (PositionProps, error)
GetPosition is a free data retrieval call binding the contract method 0x0fa8f516.
Solidity: function getPosition(address dataStore, bytes32 key) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCaller) GetPositionInfo ¶
func (_Main *MainCaller) GetPositionInfo(opts *bind.CallOpts, dataStore common.Address, referralStorage common.Address, positionKey [32]byte, prices MarketUtilsMarketPrices, sizeDeltaUsd *big.Int, uiFeeReceiver common.Address, usePositionSizeAsSizeDeltaUsd bool) (ReaderUtilsPositionInfo, error)
GetPositionInfo is a free data retrieval call binding the contract method 0x0815bce1.
Solidity: function getPositionInfo(address dataStore, address referralStorage, bytes32 positionKey, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 sizeDeltaUsd, address uiFeeReceiver, bool usePositionSizeAsSizeDeltaUsd) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256))
func (*MainCaller) GetPositionPnlUsd ¶
func (_Main *MainCaller) GetPositionPnlUsd(opts *bind.CallOpts, dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, positionKey [32]byte, sizeDeltaUsd *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetPositionPnlUsd is a free data retrieval call binding the contract method 0xb4976dae.
Solidity: function getPositionPnlUsd(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bytes32 positionKey, uint256 sizeDeltaUsd) view returns(int256, int256, uint256)
func (*MainCaller) GetSwapAmountOut ¶
func (_Main *MainCaller) GetSwapAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, tokenIn common.Address, amountIn *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
GetSwapAmountOut is a free data retrieval call binding the contract method 0x409f37c7.
Solidity: function getSwapAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address tokenIn, uint256 amountIn, address uiFeeReceiver) view returns(uint256, int256, (uint256,uint256,uint256,address,uint256,uint256) fees)
func (*MainCaller) GetSwapPriceImpact ¶
func (_Main *MainCaller) GetSwapPriceImpact(opts *bind.CallOpts, dataStore common.Address, marketKey common.Address, tokenIn common.Address, tokenOut common.Address, amountIn *big.Int, tokenInPrice PriceProps, tokenOutPrice PriceProps) (*big.Int, *big.Int, error)
GetSwapPriceImpact is a free data retrieval call binding the contract method 0x5d5c6efe.
Solidity: function getSwapPriceImpact(address dataStore, address marketKey, address tokenIn, address tokenOut, uint256 amountIn, (uint256,uint256) tokenInPrice, (uint256,uint256) tokenOutPrice) view returns(int256, int256)
func (*MainCaller) GetWithdrawal ¶
func (_Main *MainCaller) GetWithdrawal(opts *bind.CallOpts, dataStore common.Address, key [32]byte) (WithdrawalProps, error)
GetWithdrawal is a free data retrieval call binding the contract method 0xceeea3bf.
Solidity: function getWithdrawal(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCaller) GetWithdrawalAmountOut ¶
func (_Main *MainCaller) GetWithdrawalAmountOut(opts *bind.CallOpts, dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, marketTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, error)
GetWithdrawalAmountOut is a free data retrieval call binding the contract method 0x71e138d5.
Solidity: function getWithdrawalAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 marketTokenAmount, address uiFeeReceiver) view returns(uint256, uint256)
type MainCallerRaw ¶
type MainCallerRaw struct {
Contract *MainCaller // Generic read-only contract binding to access the raw methods on
}
MainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MainCallerRaw) Call ¶
func (_Main *MainCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type MainCallerSession ¶
type MainCallerSession struct { Contract *MainCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MainCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MainCallerSession) GetAccountOrders ¶
func (_Main *MainCallerSession) GetAccountOrders(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]OrderProps, error)
GetAccountOrders is a free data retrieval call binding the contract method 0x42a6f8d3.
Solidity: function getAccountOrders(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool))[])
func (*MainCallerSession) GetAccountPositionInfoList ¶
func (_Main *MainCallerSession) GetAccountPositionInfoList(dataStore common.Address, referralStorage common.Address, positionKeys [][32]byte, prices []MarketUtilsMarketPrices, uiFeeReceiver common.Address) ([]ReaderUtilsPositionInfo, error)
GetAccountPositionInfoList is a free data retrieval call binding the contract method 0xece9e0c8.
Solidity: function getAccountPositionInfoList(address dataStore, address referralStorage, bytes32[] positionKeys, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] prices, address uiFeeReceiver) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256)[])
func (*MainCallerSession) GetAccountPositions ¶
func (_Main *MainCallerSession) GetAccountPositions(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]PositionProps, error)
GetAccountPositions is a free data retrieval call binding the contract method 0x77cfb162.
Solidity: function getAccountPositions(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool))[])
func (*MainCallerSession) GetAdlState ¶
func (_Main *MainCallerSession) GetAdlState(dataStore common.Address, market common.Address, isLong bool, prices MarketUtilsMarketPrices) (*big.Int, bool, *big.Int, *big.Int, error)
GetAdlState is a free data retrieval call binding the contract method 0x2b17b4fd.
Solidity: function getAdlState(address dataStore, address market, bool isLong, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices) view returns(uint256, bool, int256, uint256)
func (*MainCallerSession) GetDeposit ¶
func (_Main *MainCallerSession) GetDeposit(dataStore common.Address, key [32]byte) (DepositProps, error)
GetDeposit is a free data retrieval call binding the contract method 0x1485d297.
Solidity: function getDeposit(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCallerSession) GetDepositAmountOut ¶
func (_Main *MainCallerSession) GetDepositAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, longTokenAmount *big.Int, shortTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, error)
GetDepositAmountOut is a free data retrieval call binding the contract method 0x85874c7f.
Solidity: function getDepositAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 longTokenAmount, uint256 shortTokenAmount, address uiFeeReceiver) view returns(uint256)
func (*MainCallerSession) GetExecutionPrice ¶
func (_Main *MainCallerSession) GetExecutionPrice(dataStore common.Address, marketKey common.Address, indexTokenPrice PriceProps, positionSizeInUsd *big.Int, positionSizeInTokens *big.Int, sizeDeltaUsd *big.Int, isLong bool) (ReaderPricingUtilsExecutionPriceResult, error)
GetExecutionPrice is a free data retrieval call binding the contract method 0x5d2b44f9.
Solidity: function getExecutionPrice(address dataStore, address marketKey, (uint256,uint256) indexTokenPrice, uint256 positionSizeInUsd, uint256 positionSizeInTokens, int256 sizeDeltaUsd, bool isLong) view returns((int256,uint256,uint256))
func (*MainCallerSession) GetMarket ¶
func (_Main *MainCallerSession) GetMarket(dataStore common.Address, key common.Address) (MarketProps, error)
GetMarket is a free data retrieval call binding the contract method 0x714af34b.
Solidity: function getMarket(address dataStore, address key) view returns((address,address,address,address))
func (*MainCallerSession) GetMarketBySalt ¶
func (_Main *MainCallerSession) GetMarketBySalt(dataStore common.Address, salt [32]byte) (MarketProps, error)
GetMarketBySalt is a free data retrieval call binding the contract method 0xa4f0d550.
Solidity: function getMarketBySalt(address dataStore, bytes32 salt) view returns((address,address,address,address))
func (*MainCallerSession) GetMarketInfo ¶
func (_Main *MainCallerSession) GetMarketInfo(dataStore common.Address, prices MarketUtilsMarketPrices, marketKey common.Address) (ReaderUtilsMarketInfo, error)
GetMarketInfo is a free data retrieval call binding the contract method 0x847bb469.
Solidity: function getMarketInfo(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address marketKey) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool))
func (*MainCallerSession) GetMarketInfoList ¶
func (_Main *MainCallerSession) GetMarketInfoList(dataStore common.Address, marketPricesList []MarketUtilsMarketPrices, start *big.Int, end *big.Int) ([]ReaderUtilsMarketInfo, error)
GetMarketInfoList is a free data retrieval call binding the contract method 0xbc7b5bba.
Solidity: function getMarketInfoList(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] marketPricesList, uint256 start, uint256 end) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool)[])
func (*MainCallerSession) GetMarketTokenPrice ¶
func (_Main *MainCallerSession) GetMarketTokenPrice(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, longTokenPrice PriceProps, shortTokenPrice PriceProps, pnlFactorType [32]byte, maximize bool) (*big.Int, MarketPoolValueInfoProps, error)
GetMarketTokenPrice is a free data retrieval call binding the contract method 0x095ce6c5.
Solidity: function getMarketTokenPrice(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, (uint256,uint256) longTokenPrice, (uint256,uint256) shortTokenPrice, bytes32 pnlFactorType, bool maximize) view returns(int256, (int256,int256,int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*MainCallerSession) GetMarkets ¶
func (_Main *MainCallerSession) GetMarkets(dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
GetMarkets is a free data retrieval call binding the contract method 0xce3264bf.
Solidity: function getMarkets(address dataStore, uint256 start, uint256 end) view returns((address,address,address,address)[])
func (*MainCallerSession) GetNetPnl ¶
func (_Main *MainCallerSession) GetNetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, maximize bool) (*big.Int, error)
GetNetPnl is a free data retrieval call binding the contract method 0xfd50649d.
Solidity: function getNetPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool maximize) view returns(int256)
func (*MainCallerSession) GetOpenInterestWithPnl ¶
func (_Main *MainCallerSession) GetOpenInterestWithPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetOpenInterestWithPnl is a free data retrieval call binding the contract method 0xa0140938.
Solidity: function getOpenInterestWithPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainCallerSession) GetOrder ¶
func (_Main *MainCallerSession) GetOrder(dataStore common.Address, key [32]byte) (OrderProps, error)
GetOrder is a free data retrieval call binding the contract method 0x49651b6a.
Solidity: function getOrder(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool)))
func (*MainCallerSession) GetPnl ¶
func (_Main *MainCallerSession) GetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetPnl is a free data retrieval call binding the contract method 0x24c029e0.
Solidity: function getPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainCallerSession) GetPnlToPoolFactor ¶
func (_Main *MainCallerSession) GetPnlToPoolFactor(dataStore common.Address, marketAddress common.Address, prices MarketUtilsMarketPrices, isLong bool, maximize bool) (*big.Int, error)
GetPnlToPoolFactor is a free data retrieval call binding the contract method 0x971de27d.
Solidity: function getPnlToPoolFactor(address dataStore, address marketAddress, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bool isLong, bool maximize) view returns(int256)
func (*MainCallerSession) GetPosition ¶
func (_Main *MainCallerSession) GetPosition(dataStore common.Address, key [32]byte) (PositionProps, error)
GetPosition is a free data retrieval call binding the contract method 0x0fa8f516.
Solidity: function getPosition(address dataStore, bytes32 key) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCallerSession) GetPositionInfo ¶
func (_Main *MainCallerSession) GetPositionInfo(dataStore common.Address, referralStorage common.Address, positionKey [32]byte, prices MarketUtilsMarketPrices, sizeDeltaUsd *big.Int, uiFeeReceiver common.Address, usePositionSizeAsSizeDeltaUsd bool) (ReaderUtilsPositionInfo, error)
GetPositionInfo is a free data retrieval call binding the contract method 0x0815bce1.
Solidity: function getPositionInfo(address dataStore, address referralStorage, bytes32 positionKey, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 sizeDeltaUsd, address uiFeeReceiver, bool usePositionSizeAsSizeDeltaUsd) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256))
func (*MainCallerSession) GetPositionPnlUsd ¶
func (_Main *MainCallerSession) GetPositionPnlUsd(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, positionKey [32]byte, sizeDeltaUsd *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetPositionPnlUsd is a free data retrieval call binding the contract method 0xb4976dae.
Solidity: function getPositionPnlUsd(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bytes32 positionKey, uint256 sizeDeltaUsd) view returns(int256, int256, uint256)
func (*MainCallerSession) GetSwapAmountOut ¶
func (_Main *MainCallerSession) GetSwapAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, tokenIn common.Address, amountIn *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
GetSwapAmountOut is a free data retrieval call binding the contract method 0x409f37c7.
Solidity: function getSwapAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address tokenIn, uint256 amountIn, address uiFeeReceiver) view returns(uint256, int256, (uint256,uint256,uint256,address,uint256,uint256) fees)
func (*MainCallerSession) GetSwapPriceImpact ¶
func (_Main *MainCallerSession) GetSwapPriceImpact(dataStore common.Address, marketKey common.Address, tokenIn common.Address, tokenOut common.Address, amountIn *big.Int, tokenInPrice PriceProps, tokenOutPrice PriceProps) (*big.Int, *big.Int, error)
GetSwapPriceImpact is a free data retrieval call binding the contract method 0x5d5c6efe.
Solidity: function getSwapPriceImpact(address dataStore, address marketKey, address tokenIn, address tokenOut, uint256 amountIn, (uint256,uint256) tokenInPrice, (uint256,uint256) tokenOutPrice) view returns(int256, int256)
func (*MainCallerSession) GetWithdrawal ¶
func (_Main *MainCallerSession) GetWithdrawal(dataStore common.Address, key [32]byte) (WithdrawalProps, error)
GetWithdrawal is a free data retrieval call binding the contract method 0xceeea3bf.
Solidity: function getWithdrawal(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainCallerSession) GetWithdrawalAmountOut ¶
func (_Main *MainCallerSession) GetWithdrawalAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, marketTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, error)
GetWithdrawalAmountOut is a free data retrieval call binding the contract method 0x71e138d5.
Solidity: function getWithdrawalAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 marketTokenAmount, address uiFeeReceiver) view returns(uint256, uint256)
type MainFilterer ¶
type MainFilterer struct {
// contains filtered or unexported fields
}
MainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMainFilterer ¶
func NewMainFilterer(address common.Address, filterer bind.ContractFilterer) (*MainFilterer, error)
NewMainFilterer creates a new log filterer instance of Main, bound to a specific deployed contract.
type MainRaw ¶
type MainRaw struct {
Contract *Main // Generic contract binding to access the raw methods on
}
MainRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MainRaw) Call ¶
func (_Main *MainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*MainRaw) Transact ¶
func (_Main *MainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MainRaw) Transfer ¶
func (_Main *MainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MainSession ¶
type MainSession struct { Contract *Main // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MainSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MainSession) GetAccountOrders ¶
func (_Main *MainSession) GetAccountOrders(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]OrderProps, error)
GetAccountOrders is a free data retrieval call binding the contract method 0x42a6f8d3.
Solidity: function getAccountOrders(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool))[])
func (*MainSession) GetAccountPositionInfoList ¶
func (_Main *MainSession) GetAccountPositionInfoList(dataStore common.Address, referralStorage common.Address, positionKeys [][32]byte, prices []MarketUtilsMarketPrices, uiFeeReceiver common.Address) ([]ReaderUtilsPositionInfo, error)
GetAccountPositionInfoList is a free data retrieval call binding the contract method 0xece9e0c8.
Solidity: function getAccountPositionInfoList(address dataStore, address referralStorage, bytes32[] positionKeys, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] prices, address uiFeeReceiver) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256)[])
func (*MainSession) GetAccountPositions ¶
func (_Main *MainSession) GetAccountPositions(dataStore common.Address, account common.Address, start *big.Int, end *big.Int) ([]PositionProps, error)
GetAccountPositions is a free data retrieval call binding the contract method 0x77cfb162.
Solidity: function getAccountPositions(address dataStore, address account, uint256 start, uint256 end) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool))[])
func (*MainSession) GetAdlState ¶
func (_Main *MainSession) GetAdlState(dataStore common.Address, market common.Address, isLong bool, prices MarketUtilsMarketPrices) (*big.Int, bool, *big.Int, *big.Int, error)
GetAdlState is a free data retrieval call binding the contract method 0x2b17b4fd.
Solidity: function getAdlState(address dataStore, address market, bool isLong, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices) view returns(uint256, bool, int256, uint256)
func (*MainSession) GetDeposit ¶
func (_Main *MainSession) GetDeposit(dataStore common.Address, key [32]byte) (DepositProps, error)
GetDeposit is a free data retrieval call binding the contract method 0x1485d297.
Solidity: function getDeposit(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainSession) GetDepositAmountOut ¶
func (_Main *MainSession) GetDepositAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, longTokenAmount *big.Int, shortTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, error)
GetDepositAmountOut is a free data retrieval call binding the contract method 0x85874c7f.
Solidity: function getDepositAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 longTokenAmount, uint256 shortTokenAmount, address uiFeeReceiver) view returns(uint256)
func (*MainSession) GetExecutionPrice ¶
func (_Main *MainSession) GetExecutionPrice(dataStore common.Address, marketKey common.Address, indexTokenPrice PriceProps, positionSizeInUsd *big.Int, positionSizeInTokens *big.Int, sizeDeltaUsd *big.Int, isLong bool) (ReaderPricingUtilsExecutionPriceResult, error)
GetExecutionPrice is a free data retrieval call binding the contract method 0x5d2b44f9.
Solidity: function getExecutionPrice(address dataStore, address marketKey, (uint256,uint256) indexTokenPrice, uint256 positionSizeInUsd, uint256 positionSizeInTokens, int256 sizeDeltaUsd, bool isLong) view returns((int256,uint256,uint256))
func (*MainSession) GetMarket ¶
func (_Main *MainSession) GetMarket(dataStore common.Address, key common.Address) (MarketProps, error)
GetMarket is a free data retrieval call binding the contract method 0x714af34b.
Solidity: function getMarket(address dataStore, address key) view returns((address,address,address,address))
func (*MainSession) GetMarketBySalt ¶
func (_Main *MainSession) GetMarketBySalt(dataStore common.Address, salt [32]byte) (MarketProps, error)
GetMarketBySalt is a free data retrieval call binding the contract method 0xa4f0d550.
Solidity: function getMarketBySalt(address dataStore, bytes32 salt) view returns((address,address,address,address))
func (*MainSession) GetMarketInfo ¶
func (_Main *MainSession) GetMarketInfo(dataStore common.Address, prices MarketUtilsMarketPrices, marketKey common.Address) (ReaderUtilsMarketInfo, error)
GetMarketInfo is a free data retrieval call binding the contract method 0x847bb469.
Solidity: function getMarketInfo(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address marketKey) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool))
func (*MainSession) GetMarketInfoList ¶
func (_Main *MainSession) GetMarketInfoList(dataStore common.Address, marketPricesList []MarketUtilsMarketPrices, start *big.Int, end *big.Int) ([]ReaderUtilsMarketInfo, error)
GetMarketInfoList is a free data retrieval call binding the contract method 0xbc7b5bba.
Solidity: function getMarketInfoList(address dataStore, ((uint256,uint256),(uint256,uint256),(uint256,uint256))[] marketPricesList, uint256 start, uint256 end) view returns(((address,address,address,address),uint256,uint256,(((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(bool,uint256,int256,((uint256,uint256),(uint256,uint256)),((uint256,uint256),(uint256,uint256))),(uint256,uint256,int256),bool)[])
func (*MainSession) GetMarketTokenPrice ¶
func (_Main *MainSession) GetMarketTokenPrice(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, longTokenPrice PriceProps, shortTokenPrice PriceProps, pnlFactorType [32]byte, maximize bool) (*big.Int, MarketPoolValueInfoProps, error)
GetMarketTokenPrice is a free data retrieval call binding the contract method 0x095ce6c5.
Solidity: function getMarketTokenPrice(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, (uint256,uint256) longTokenPrice, (uint256,uint256) shortTokenPrice, bytes32 pnlFactorType, bool maximize) view returns(int256, (int256,int256,int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))
func (*MainSession) GetMarkets ¶
func (_Main *MainSession) GetMarkets(dataStore common.Address, start *big.Int, end *big.Int) ([]MarketProps, error)
GetMarkets is a free data retrieval call binding the contract method 0xce3264bf.
Solidity: function getMarkets(address dataStore, uint256 start, uint256 end) view returns((address,address,address,address)[])
func (*MainSession) GetNetPnl ¶
func (_Main *MainSession) GetNetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, maximize bool) (*big.Int, error)
GetNetPnl is a free data retrieval call binding the contract method 0xfd50649d.
Solidity: function getNetPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool maximize) view returns(int256)
func (*MainSession) GetOpenInterestWithPnl ¶
func (_Main *MainSession) GetOpenInterestWithPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetOpenInterestWithPnl is a free data retrieval call binding the contract method 0xa0140938.
Solidity: function getOpenInterestWithPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainSession) GetOrder ¶
func (_Main *MainSession) GetOrder(dataStore common.Address, key [32]byte) (OrderProps, error)
GetOrder is a free data retrieval call binding the contract method 0x49651b6a.
Solidity: function getOrder(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address,address[]),(uint8,uint8,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool,bool,bool)))
func (*MainSession) GetPnl ¶
func (_Main *MainSession) GetPnl(dataStore common.Address, market MarketProps, indexTokenPrice PriceProps, isLong bool, maximize bool) (*big.Int, error)
GetPnl is a free data retrieval call binding the contract method 0x24c029e0.
Solidity: function getPnl(address dataStore, (address,address,address,address) market, (uint256,uint256) indexTokenPrice, bool isLong, bool maximize) view returns(int256)
func (*MainSession) GetPnlToPoolFactor ¶
func (_Main *MainSession) GetPnlToPoolFactor(dataStore common.Address, marketAddress common.Address, prices MarketUtilsMarketPrices, isLong bool, maximize bool) (*big.Int, error)
GetPnlToPoolFactor is a free data retrieval call binding the contract method 0x971de27d.
Solidity: function getPnlToPoolFactor(address dataStore, address marketAddress, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bool isLong, bool maximize) view returns(int256)
func (*MainSession) GetPosition ¶
func (_Main *MainSession) GetPosition(dataStore common.Address, key [32]byte) (PositionProps, error)
GetPosition is a free data retrieval call binding the contract method 0x0fa8f516.
Solidity: function getPosition(address dataStore, bytes32 key) view returns(((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainSession) GetPositionInfo ¶
func (_Main *MainSession) GetPositionInfo(dataStore common.Address, referralStorage common.Address, positionKey [32]byte, prices MarketUtilsMarketPrices, sizeDeltaUsd *big.Int, uiFeeReceiver common.Address, usePositionSizeAsSizeDeltaUsd bool) (ReaderUtilsPositionInfo, error)
GetPositionInfo is a free data retrieval call binding the contract method 0x0815bce1.
Solidity: function getPositionInfo(address dataStore, address referralStorage, bytes32 positionKey, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 sizeDeltaUsd, address uiFeeReceiver, bool usePositionSizeAsSizeDeltaUsd) view returns((((address,address,address),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(bool)),((bytes32,address,address,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(address,uint256,uint256),(uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,uint256,uint256),int256,int256,int256))
func (*MainSession) GetPositionPnlUsd ¶
func (_Main *MainSession) GetPositionPnlUsd(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, positionKey [32]byte, sizeDeltaUsd *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetPositionPnlUsd is a free data retrieval call binding the contract method 0xb4976dae.
Solidity: function getPositionPnlUsd(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, bytes32 positionKey, uint256 sizeDeltaUsd) view returns(int256, int256, uint256)
func (*MainSession) GetSwapAmountOut ¶
func (_Main *MainSession) GetSwapAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, tokenIn common.Address, amountIn *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, SwapPricingUtilsSwapFees, error)
GetSwapAmountOut is a free data retrieval call binding the contract method 0x409f37c7.
Solidity: function getSwapAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, address tokenIn, uint256 amountIn, address uiFeeReceiver) view returns(uint256, int256, (uint256,uint256,uint256,address,uint256,uint256) fees)
func (*MainSession) GetSwapPriceImpact ¶
func (_Main *MainSession) GetSwapPriceImpact(dataStore common.Address, marketKey common.Address, tokenIn common.Address, tokenOut common.Address, amountIn *big.Int, tokenInPrice PriceProps, tokenOutPrice PriceProps) (*big.Int, *big.Int, error)
GetSwapPriceImpact is a free data retrieval call binding the contract method 0x5d5c6efe.
Solidity: function getSwapPriceImpact(address dataStore, address marketKey, address tokenIn, address tokenOut, uint256 amountIn, (uint256,uint256) tokenInPrice, (uint256,uint256) tokenOutPrice) view returns(int256, int256)
func (*MainSession) GetWithdrawal ¶
func (_Main *MainSession) GetWithdrawal(dataStore common.Address, key [32]byte) (WithdrawalProps, error)
GetWithdrawal is a free data retrieval call binding the contract method 0xceeea3bf.
Solidity: function getWithdrawal(address dataStore, bytes32 key) view returns(((address,address,address,address,address,address[],address[]),(uint256,uint256,uint256,uint256,uint256,uint256),(bool)))
func (*MainSession) GetWithdrawalAmountOut ¶
func (_Main *MainSession) GetWithdrawalAmountOut(dataStore common.Address, market MarketProps, prices MarketUtilsMarketPrices, marketTokenAmount *big.Int, uiFeeReceiver common.Address) (*big.Int, *big.Int, error)
GetWithdrawalAmountOut is a free data retrieval call binding the contract method 0x71e138d5.
Solidity: function getWithdrawalAmountOut(address dataStore, (address,address,address,address) market, ((uint256,uint256),(uint256,uint256),(uint256,uint256)) prices, uint256 marketTokenAmount, address uiFeeReceiver) view returns(uint256, uint256)
type MainTransactor ¶
type MainTransactor struct {
// contains filtered or unexported fields
}
MainTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMainTransactor ¶
func NewMainTransactor(address common.Address, transactor bind.ContractTransactor) (*MainTransactor, error)
NewMainTransactor creates a new write-only instance of Main, bound to a specific deployed contract.
type MainTransactorRaw ¶
type MainTransactorRaw struct {
Contract *MainTransactor // Generic write-only contract binding to access the raw methods on
}
MainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MainTransactorRaw) Transact ¶
func (_Main *MainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MainTransactorRaw) Transfer ¶
func (_Main *MainTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type MainTransactorSession ¶
type MainTransactorSession struct { Contract *MainTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MainTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type MarketPoolValueInfoProps ¶
type MarketPoolValueInfoProps struct { PoolValue *big.Int LongPnl *big.Int ShortPnl *big.Int NetPnl *big.Int LongTokenAmount *big.Int ShortTokenAmount *big.Int LongTokenUsd *big.Int ShortTokenUsd *big.Int TotalBorrowingFees *big.Int BorrowingFeePoolFactor *big.Int ImpactPoolAmount *big.Int }
MarketPoolValueInfoProps is an auto generated low-level Go binding around an user-defined struct.
type MarketProps ¶
type MarketProps struct { MarketToken common.Address IndexToken common.Address LongToken common.Address ShortToken common.Address }
MarketProps is an auto generated low-level Go binding around an user-defined struct.
type MarketUtilsCollateralType ¶
MarketUtilsCollateralType is an auto generated low-level Go binding around an user-defined struct.
type MarketUtilsGetNextFundingAmountPerSizeResult ¶
type MarketUtilsGetNextFundingAmountPerSizeResult struct { LongsPayShorts bool FundingFactorPerSecond *big.Int NextSavedFundingFactorPerSecond *big.Int FundingFeeAmountPerSizeDelta MarketUtilsPositionType ClaimableFundingAmountPerSizeDelta MarketUtilsPositionType }
MarketUtilsGetNextFundingAmountPerSizeResult is an auto generated low-level Go binding around an user-defined struct.
type MarketUtilsMarketPrices ¶
type MarketUtilsMarketPrices struct { IndexTokenPrice PriceProps LongTokenPrice PriceProps ShortTokenPrice PriceProps }
MarketUtilsMarketPrices is an auto generated low-level Go binding around an user-defined struct.
type MarketUtilsPositionType ¶
type MarketUtilsPositionType struct { Long MarketUtilsCollateralType Short MarketUtilsCollateralType }
MarketUtilsPositionType is an auto generated low-level Go binding around an user-defined struct.
type OrderAddresses ¶
type OrderAddresses struct { Account common.Address Receiver common.Address CallbackContract common.Address UiFeeReceiver common.Address Market common.Address InitialCollateralToken common.Address SwapPath []common.Address }
OrderAddresses is an auto generated low-level Go binding around an user-defined struct.
type OrderFlags ¶
OrderFlags is an auto generated low-level Go binding around an user-defined struct.
type OrderNumbers ¶
type OrderNumbers struct { OrderType uint8 DecreasePositionSwapType uint8 SizeDeltaUsd *big.Int InitialCollateralDeltaAmount *big.Int TriggerPrice *big.Int AcceptablePrice *big.Int ExecutionFee *big.Int CallbackGasLimit *big.Int MinOutputAmount *big.Int UpdatedAtBlock *big.Int }
OrderNumbers is an auto generated low-level Go binding around an user-defined struct.
type OrderProps ¶
type OrderProps struct { Addresses OrderAddresses Numbers OrderNumbers Flags OrderFlags }
OrderProps is an auto generated low-level Go binding around an user-defined struct.
type PositionAddresses ¶
type PositionAddresses struct { Account common.Address Market common.Address CollateralToken common.Address }
PositionAddresses is an auto generated low-level Go binding around an user-defined struct.
type PositionFlags ¶
type PositionFlags struct {
IsLong bool
}
PositionFlags is an auto generated low-level Go binding around an user-defined struct.
type PositionNumbers ¶
type PositionNumbers struct { SizeInUsd *big.Int SizeInTokens *big.Int CollateralAmount *big.Int BorrowingFactor *big.Int FundingFeeAmountPerSize *big.Int LongTokenClaimableFundingAmountPerSize *big.Int ShortTokenClaimableFundingAmountPerSize *big.Int IncreasedAtBlock *big.Int DecreasedAtBlock *big.Int }
PositionNumbers is an auto generated low-level Go binding around an user-defined struct.
type PositionPricingUtilsPositionBorrowingFees ¶
type PositionPricingUtilsPositionBorrowingFees struct { BorrowingFeeUsd *big.Int BorrowingFeeAmount *big.Int BorrowingFeeReceiverFactor *big.Int BorrowingFeeAmountForFeeReceiver *big.Int }
PositionPricingUtilsPositionBorrowingFees is an auto generated low-level Go binding around an user-defined struct.
type PositionPricingUtilsPositionFees ¶
type PositionPricingUtilsPositionFees struct { Referral PositionPricingUtilsPositionReferralFees Funding PositionPricingUtilsPositionFundingFees Borrowing PositionPricingUtilsPositionBorrowingFees Ui PositionPricingUtilsPositionUiFees CollateralTokenPrice PriceProps PositionFeeFactor *big.Int ProtocolFeeAmount *big.Int PositionFeeReceiverFactor *big.Int FeeReceiverAmount *big.Int FeeAmountForPool *big.Int PositionFeeAmountForPool *big.Int PositionFeeAmount *big.Int TotalCostAmountExcludingFunding *big.Int TotalCostAmount *big.Int }
PositionPricingUtilsPositionFees is an auto generated low-level Go binding around an user-defined struct.
type PositionPricingUtilsPositionFundingFees ¶
type PositionPricingUtilsPositionFundingFees struct { FundingFeeAmount *big.Int ClaimableLongTokenAmount *big.Int ClaimableShortTokenAmount *big.Int LatestFundingFeeAmountPerSize *big.Int LatestLongTokenClaimableFundingAmountPerSize *big.Int LatestShortTokenClaimableFundingAmountPerSize *big.Int }
PositionPricingUtilsPositionFundingFees is an auto generated low-level Go binding around an user-defined struct.
type PositionPricingUtilsPositionReferralFees ¶
type PositionPricingUtilsPositionReferralFees struct { ReferralCode [32]byte Affiliate common.Address Trader common.Address TotalRebateFactor *big.Int TraderDiscountFactor *big.Int TotalRebateAmount *big.Int TraderDiscountAmount *big.Int AffiliateRewardAmount *big.Int }
PositionPricingUtilsPositionReferralFees is an auto generated low-level Go binding around an user-defined struct.
type PositionPricingUtilsPositionUiFees ¶
type PositionPricingUtilsPositionUiFees struct { UiFeeReceiver common.Address UiFeeReceiverFactor *big.Int UiFeeAmount *big.Int }
PositionPricingUtilsPositionUiFees is an auto generated low-level Go binding around an user-defined struct.
type PositionProps ¶
type PositionProps struct { Addresses PositionAddresses Numbers PositionNumbers Flags PositionFlags }
PositionProps is an auto generated low-level Go binding around an user-defined struct.
type PriceProps ¶
PriceProps is an auto generated low-level Go binding around an user-defined struct.
type ReaderPricingUtilsExecutionPriceResult ¶
type ReaderPricingUtilsExecutionPriceResult struct { PriceImpactUsd *big.Int PriceImpactDiffUsd *big.Int ExecutionPrice *big.Int }
ReaderPricingUtilsExecutionPriceResult is an auto generated low-level Go binding around an user-defined struct.
type ReaderUtilsBaseFundingValues ¶
type ReaderUtilsBaseFundingValues struct { FundingFeeAmountPerSize MarketUtilsPositionType ClaimableFundingAmountPerSize MarketUtilsPositionType }
ReaderUtilsBaseFundingValues is an auto generated low-level Go binding around an user-defined struct.
type ReaderUtilsMarketInfo ¶
type ReaderUtilsMarketInfo struct { Market MarketProps BorrowingFactorPerSecondForLongs *big.Int BorrowingFactorPerSecondForShorts *big.Int BaseFunding ReaderUtilsBaseFundingValues NextFunding MarketUtilsGetNextFundingAmountPerSizeResult VirtualInventory ReaderUtilsVirtualInventory IsDisabled bool }
ReaderUtilsMarketInfo is an auto generated low-level Go binding around an user-defined struct.
type ReaderUtilsPositionInfo ¶
type ReaderUtilsPositionInfo struct { Position PositionProps Fees PositionPricingUtilsPositionFees ExecutionPriceResult ReaderPricingUtilsExecutionPriceResult BasePnlUsd *big.Int UncappedBasePnlUsd *big.Int PnlAfterPriceImpactUsd *big.Int }
ReaderUtilsPositionInfo is an auto generated low-level Go binding around an user-defined struct.
type ReaderUtilsVirtualInventory ¶
type ReaderUtilsVirtualInventory struct { VirtualPoolAmountForLongToken *big.Int VirtualPoolAmountForShortToken *big.Int VirtualInventoryForPositions *big.Int }
ReaderUtilsVirtualInventory is an auto generated low-level Go binding around an user-defined struct.
type SwapPricingUtilsSwapFees ¶
type SwapPricingUtilsSwapFees struct { FeeReceiverAmount *big.Int FeeAmountForPool *big.Int AmountAfterFees *big.Int UiFeeReceiver common.Address UiFeeReceiverFactor *big.Int UiFeeAmount *big.Int }
SwapPricingUtilsSwapFees is an auto generated low-level Go binding around an user-defined struct.
type WithdrawalAddresses ¶
type WithdrawalAddresses struct { Account common.Address Receiver common.Address CallbackContract common.Address UiFeeReceiver common.Address Market common.Address LongTokenSwapPath []common.Address ShortTokenSwapPath []common.Address }
WithdrawalAddresses is an auto generated low-level Go binding around an user-defined struct.
type WithdrawalFlags ¶
type WithdrawalFlags struct {
ShouldUnwrapNativeToken bool
}
WithdrawalFlags is an auto generated low-level Go binding around an user-defined struct.
type WithdrawalNumbers ¶
type WithdrawalNumbers struct { MarketTokenAmount *big.Int MinLongTokenAmount *big.Int MinShortTokenAmount *big.Int UpdatedAtBlock *big.Int ExecutionFee *big.Int CallbackGasLimit *big.Int }
WithdrawalNumbers is an auto generated low-level Go binding around an user-defined struct.
type WithdrawalProps ¶
type WithdrawalProps struct { Addresses WithdrawalAddresses Numbers WithdrawalNumbers Flags WithdrawalFlags }
WithdrawalProps is an auto generated low-level Go binding around an user-defined struct.