perpsMarket

package
v0.3.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PerpsMarketABI = PerpsMarketMetaData.ABI

PerpsMarketABI is the input ABI used to generate the binding from. Deprecated: Use PerpsMarketMetaData.ABI instead.

View Source
var PerpsMarketMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"which\",\"type\":\"bytes32\"}],\"name\":\"FeatureUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"InvalidAccountId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"InvalidPermission\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"}],\"name\":\"OnlyAccountTokenProxy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"PermissionDenied\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"PermissionNotGranted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PositionOutOfBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueAlreadyInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ValueNotInSet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AccountCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"PermissionRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"createAccount\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedAccountId\",\"type\":\"uint128\"}],\"name\":\"createAccount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountLastInteraction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountPermissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"permissions\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIAccountModule.AccountPermissions[]\",\"name\":\"accountPerms\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAccountTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"grantPermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"hasPermission\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"notifyAccountTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"}],\"name\":\"renouncePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"permission\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokePermission\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"actual\",\"type\":\"bytes32\"}],\"name\":\"MismatchAssociatedSystemKind\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"MissingAssociatedSystem\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"AssociatedSystemSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getAssociatedSystem\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"kind\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeNft\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"initOrUpgradeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"endpoint\",\"type\":\"address\"}],\"name\":\"registerUnmanagedSystem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ImplementationIsSterile\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoChange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"contr\",\"type\":\"address\"}],\"name\":\"NotAContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"NotNominated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpgradeSimulationFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"self\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newNominatedOwner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceNomination\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"simulateUpgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"InvalidMarket\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"parameter\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"InvalidParameter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToUint256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToInt256\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PerpsMarketAlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PerpsMarketNotInitialized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"globalPerpsMarketId\",\"type\":\"uint128\"}],\"name\":\"FactoryInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"MarketCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"requestedMarketId\",\"type\":\"uint128\"},{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"marketSymbol\",\"type\":\"string\"}],\"name\":\"createMarket\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractISynthetixSystem\",\"name\":\"synthetix\",\"type\":\"address\"},{\"internalType\":\"contractISpotMarketSystem\",\"name\":\"spotMarket\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"name\":\"initializeFactory\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"minimumCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"reportedDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"marketName\",\"type\":\"string\"}],\"name\":\"setPerpsMarketName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountLiquidatable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"AccountNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"availableUsdDenominated\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredUsdDenominated\",\"type\":\"uint256\"}],\"name\":\"InsufficientCollateralAvailableForWithdraw\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawAmount\",\"type\":\"uint256\"}],\"name\":\"InsufficientSynthCollateral\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"InvalidAmountDelta\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeeperCostsNotSet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositAmount\",\"type\":\"uint256\"}],\"name\":\"MaxCollateralExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxCollateralsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint128ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PendingOrderExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"PriceFeedNotSet\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"SynthNotEnabledForCollateral\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"CollateralModified\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountCollateralIds\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAccountOpenPositions\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getAvailableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOpenPosition\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"totalPnl\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"internalType\":\"int128\",\"name\":\"positionSize\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getRequiredMargins\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredInitialMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredMaintenanceMargin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getWithdrawableMargin\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"withdrawableMargin\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"int256\",\"name\":\"amountDelta\",\"type\":\"int256\"}],\"name\":\"modifyCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalAccountOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"totalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingRate\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"currentFundingVelocity\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"orderSize\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"fillPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMarketSummary\",\"outputs\":[{\"components\":[{\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"indexPrice\",\"type\":\"uint256\"}],\"internalType\":\"structIPerpsMarketModule.MarketSummary\",\"name\":\"summary\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"indexPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"maxOpenInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"metadata\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"size\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"skew\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"}],\"name\":\"AcceptablePriceExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"availableMargin\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"minMargin\",\"type\":\"uint256\"}],\"name\":\"InsufficientMargin\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"settlementStrategyId\",\"type\":\"uint256\"}],\"name\":\"InvalidSettlementStrategy\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"newSideSize\",\"type\":\"int256\"}],\"name\":\"MaxOpenInterestReached\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"}],\"name\":\"MaxPositionsPerAccountReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt256ToInt128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroSizeOrder\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"orderType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"commitmentTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expectedPriceTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expirationTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"OrderCommitted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"commitmentTime\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"}],\"name\":\"PreviousOrderExpired\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"commitment\",\"type\":\"tuple\"}],\"name\":\"commitOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"commitmentTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"retOrder\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"computeOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"orderFees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"getOrder\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"commitmentTime\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"internalType\":\"uint128\",\"name\":\"settlementStrategyId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"internalType\":\"structAsyncOrder.OrderCommitmentRequest\",\"name\":\"request\",\"type\":\"tuple\"}],\"internalType\":\"structAsyncOrder.Data\",\"name\":\"order\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"}],\"name\":\"requiredMarginForOrder\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requiredMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leftover\",\"type\":\"uint256\"}],\"name\":\"InsufficientAccountMargin\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OrderNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowInt128ToUint128\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OverflowUint256ToUint64\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"}],\"name\":\"SettlementStrategyNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementExpiration\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementTime\",\"type\":\"uint256\"}],\"name\":\"SettlementWindowNotOpen\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"account\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"CollateralDeducted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"skew\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"sizeDelta\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingRate\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentFundingVelocity\",\"type\":\"int256\"}],\"name\":\"MarketUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"pnl\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"accruedFunding\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"newSize\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"referralFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"collectedFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"}],\"name\":\"OrderSettled\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"settleOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptablePrice\",\"type\":\"uint256\"}],\"name\":\"AcceptablePriceNotExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"desiredPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fillPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"sizeDelta\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"trackingCode\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"settler\",\"type\":\"address\"}],\"name\":\"OrderCancelled\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagAllowAllSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"FeatureFlagAllowlistRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"FeatureFlagDeniersReset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"FeatureFlagDenyAllSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"addToFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getDeniers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagAllowlist\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"}],\"name\":\"getFeatureFlagDenyAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isFeatureAllowed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"removeFromFeatureFlagAllowlist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"deniers\",\"type\":\"address[]\"}],\"name\":\"setDeniers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"allowAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagAllowAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"feature\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"denyAll\",\"type\":\"bool\"}],\"name\":\"setFeatureFlagDenyAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"NotEligibleForLiquidation\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"fullLiquidation\",\"type\":\"bool\"}],\"name\":\"AccountLiquidationAttempt\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLiquidated\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"currentPositionSize\",\"type\":\"int128\"}],\"name\":\"PositionLiquidated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"canLiquidate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isEligible\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"flaggedAccounts\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"accountIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"accountId\",\"type\":\"uint128\"}],\"name\":\"liquidate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxNumberOfAccounts\",\"type\":\"uint256\"}],\"name\":\"liquidateFlagged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128[]\",\"name\":\"accountIds\",\"type\":\"uint128[]\"}],\"name\":\"liquidateFlaggedAccounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidationReward\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"liquidationCapacity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"capacity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationInWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"latestLiquidationTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"InvalidSettlementWindowDuration\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"FundingParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maintenanceMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"flagRewardRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"LiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"LockedOiRatioSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"type\":\"uint256\"}],\"name\":\"MarketPriceDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"MaxLiquidationParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"MaxMarketSizeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"OrderFeesSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPriceDelay\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"SettlementStrategyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPriceDelay\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"SettlementStrategySet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPriceDelay\",\"type\":\"uint256\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"addSettlementStrategy\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getFundingParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flagRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getLockedOiRatio\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxLiquidationParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getMaxMarketSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"}],\"name\":\"getOrderFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"makerFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"}],\"name\":\"getPriceData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"}],\"name\":\"getSettlementStrategy\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPriceDelay\",\"type\":\"uint256\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"settlementStrategy\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"skewScale\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFundingVelocity\",\"type\":\"uint256\"}],\"name\":\"setFundingParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"initialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumInitialMarginRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maintenanceMarginScalarD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"flagRewardRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumPositionMargin\",\"type\":\"uint256\"}],\"name\":\"setLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"lockedOiRatioD18\",\"type\":\"uint256\"}],\"name\":\"setLockedOiRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationLimitAccumulationMultiplier\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSecondsInLiquidationWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxLiquidationPd\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"endorsedLiquidator\",\"type\":\"address\"}],\"name\":\"setMaxLiquidationParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxMarketSize\",\"type\":\"uint256\"}],\"name\":\"setMaxMarketSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"makerFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerFeeRatio\",\"type\":\"uint256\"}],\"name\":\"setOrderFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"enumSettlementStrategy.Type\",\"name\":\"strategyType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"settlementDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"settlementWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"priceVerificationContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"settlementReward\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"disabled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"commitmentPriceDelay\",\"type\":\"uint256\"}],\"internalType\":\"structSettlementStrategy.Data\",\"name\":\"strategy\",\"type\":\"tuple\"}],\"name\":\"setSettlementStrategy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"marketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"strategyId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementStrategyEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"perpsMarketId\",\"type\":\"uint128\"},{\"internalType\":\"bytes32\",\"name\":\"feedId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"strictStalenessTolerance\",\"type\":\"uint256\"}],\"name\":\"updatePriceData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"invalidFeeCollector\",\"type\":\"address\"}],\"name\":\"InvalidFeeCollectorInterface\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"InvalidReferrerShareRatio\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"name\":\"CollateralConfigurationSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"FeeCollectorSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"name\":\"KeeperCostNodeIdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"name\":\"KeeperRewardGuardsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"PerAccountCapsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"ReferrerShareUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"SynthDeductionPrioritySet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"}],\"name\":\"getCollateralConfiguration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeCollector\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getKeeperCostNodeId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getKeeperRewardGuards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarkets\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"marketIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPerAccountCaps\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"}],\"name\":\"getReferrerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSupportedCollaterals\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"supportedCollaterals\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSynthDeductionPriority\",\"outputs\":[{\"internalType\":\"uint128[]\",\"name\":\"\",\"type\":\"uint128[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"synthMarketId\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"maxCollateralAmount\",\"type\":\"uint256\"}],\"name\":\"setCollateralConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"feeCollector\",\"type\":\"address\"}],\"name\":\"setFeeCollector\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minKeeperProfitRatioD18\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperRewardUsd\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxKeeperScalingRatioD18\",\"type\":\"uint256\"}],\"name\":\"setKeeperRewardGuards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxPositionsPerAccount\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"maxCollateralsPerAccount\",\"type\":\"uint128\"}],\"name\":\"setPerAccountCaps\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128[]\",\"name\":\"newSynthDeductionPriority\",\"type\":\"uint128[]\"}],\"name\":\"setSynthDeductionPriority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalGlobalCollateralValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralValue\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keeperCostNodeId\",\"type\":\"bytes32\"}],\"name\":\"updateKeeperCostNodeId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"referrer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"shareRatioD18\",\"type\":\"uint256\"}],\"name\":\"updateReferrerShare\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PerpsMarketMetaData contains all meta data concerning the PerpsMarket contract.

Functions

This section is empty.

Types

type AsyncOrderData

type AsyncOrderData struct {
	CommitmentTime *big.Int
	Request        AsyncOrderOrderCommitmentRequest
}

AsyncOrderData is an auto generated low-level Go binding around an user-defined struct.

type AsyncOrderOrderCommitmentRequest

type AsyncOrderOrderCommitmentRequest struct {
	MarketId             *big.Int
	AccountId            *big.Int
	SizeDelta            *big.Int
	SettlementStrategyId *big.Int
	AcceptablePrice      *big.Int
	TrackingCode         [32]byte
	Referrer             common.Address
}

AsyncOrderOrderCommitmentRequest is an auto generated low-level Go binding around an user-defined struct.

type IAccountModuleAccountPermissions

type IAccountModuleAccountPermissions struct {
	User        common.Address
	Permissions [][32]byte
}

IAccountModuleAccountPermissions is an auto generated low-level Go binding around an user-defined struct.

type IPerpsMarketModuleMarketSummary

type IPerpsMarketModuleMarketSummary struct {
	Skew                   *big.Int
	Size                   *big.Int
	MaxOpenInterest        *big.Int
	CurrentFundingRate     *big.Int
	CurrentFundingVelocity *big.Int
	IndexPrice             *big.Int
}

IPerpsMarketModuleMarketSummary is an auto generated low-level Go binding around an user-defined struct.

type PerpsMarket

type PerpsMarket struct {
	PerpsMarketCaller     // Read-only binding to the contract
	PerpsMarketTransactor // Write-only binding to the contract
	PerpsMarketFilterer   // Log filterer for contract events
}

PerpsMarket is an auto generated Go binding around an Ethereum contract.

func NewPerpsMarket

func NewPerpsMarket(address common.Address, backend bind.ContractBackend) (*PerpsMarket, error)

NewPerpsMarket creates a new instance of PerpsMarket, bound to a specific deployed contract.

type PerpsMarketAccountCreated

type PerpsMarketAccountCreated struct {
	AccountId *big.Int
	Owner     common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

PerpsMarketAccountCreated represents a AccountCreated event raised by the PerpsMarket contract.

type PerpsMarketAccountCreatedIterator

type PerpsMarketAccountCreatedIterator struct {
	Event *PerpsMarketAccountCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketAccountCreatedIterator is returned from FilterAccountCreated and is used to iterate over the raw logs and unpacked data for AccountCreated events raised by the PerpsMarket contract.

func (*PerpsMarketAccountCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketAccountCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketAccountCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketAccountLiquidationAttempt

type PerpsMarketAccountLiquidationAttempt struct {
	AccountId       *big.Int
	Reward          *big.Int
	FullLiquidation bool
	Raw             types.Log // Blockchain specific contextual infos
}

PerpsMarketAccountLiquidationAttempt represents a AccountLiquidationAttempt event raised by the PerpsMarket contract.

type PerpsMarketAccountLiquidationAttemptIterator

type PerpsMarketAccountLiquidationAttemptIterator struct {
	Event *PerpsMarketAccountLiquidationAttempt // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketAccountLiquidationAttemptIterator is returned from FilterAccountLiquidationAttempt and is used to iterate over the raw logs and unpacked data for AccountLiquidationAttempt events raised by the PerpsMarket contract.

func (*PerpsMarketAccountLiquidationAttemptIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketAccountLiquidationAttemptIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketAccountLiquidationAttemptIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketAssociatedSystemSet

type PerpsMarketAssociatedSystemSet struct {
	Kind  [32]byte
	Id    [32]byte
	Proxy common.Address
	Impl  common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

PerpsMarketAssociatedSystemSet represents a AssociatedSystemSet event raised by the PerpsMarket contract.

type PerpsMarketAssociatedSystemSetIterator

type PerpsMarketAssociatedSystemSetIterator struct {
	Event *PerpsMarketAssociatedSystemSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketAssociatedSystemSetIterator is returned from FilterAssociatedSystemSet and is used to iterate over the raw logs and unpacked data for AssociatedSystemSet events raised by the PerpsMarket contract.

func (*PerpsMarketAssociatedSystemSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketAssociatedSystemSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketAssociatedSystemSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketCaller

type PerpsMarketCaller struct {
	// contains filtered or unexported fields
}

PerpsMarketCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewPerpsMarketCaller

func NewPerpsMarketCaller(address common.Address, caller bind.ContractCaller) (*PerpsMarketCaller, error)

NewPerpsMarketCaller creates a new read-only instance of PerpsMarket, bound to a specific deployed contract.

func (*PerpsMarketCaller) CanLiquidate

func (_PerpsMarket *PerpsMarketCaller) CanLiquidate(opts *bind.CallOpts, accountId *big.Int) (bool, error)

CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba.

Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible)

func (*PerpsMarketCaller) ComputeOrderFees

func (_PerpsMarket *PerpsMarketCaller) ComputeOrderFees(opts *bind.CallOpts, marketId *big.Int, sizeDelta *big.Int) (struct {
	OrderFees *big.Int
	FillPrice *big.Int
}, error)

ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2.

Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice)

func (*PerpsMarketCaller) CurrentFundingRate

func (_PerpsMarket *PerpsMarketCaller) CurrentFundingRate(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2.

Solidity: function currentFundingRate(uint128 marketId) view returns(int256)

func (*PerpsMarketCaller) CurrentFundingVelocity

func (_PerpsMarket *PerpsMarketCaller) CurrentFundingVelocity(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02.

Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256)

func (*PerpsMarketCaller) FillPrice

func (_PerpsMarket *PerpsMarketCaller) FillPrice(opts *bind.CallOpts, marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error)

FillPrice is a free data retrieval call binding the contract method 0xdeff90ef.

Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256)

func (*PerpsMarketCaller) FlaggedAccounts

func (_PerpsMarket *PerpsMarketCaller) FlaggedAccounts(opts *bind.CallOpts) ([]*big.Int, error)

FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.

Solidity: function flaggedAccounts() view returns(uint256[] accountIds)

func (*PerpsMarketCaller) GetAccountCollateralIds

func (_PerpsMarket *PerpsMarketCaller) GetAccountCollateralIds(opts *bind.CallOpts, accountId *big.Int) ([]*big.Int, error)

GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.

Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])

func (*PerpsMarketCaller) GetAccountLastInteraction

func (_PerpsMarket *PerpsMarketCaller) GetAccountLastInteraction(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error)

GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb.

Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256)

func (*PerpsMarketCaller) GetAccountOpenPositions

func (_PerpsMarket *PerpsMarketCaller) GetAccountOpenPositions(opts *bind.CallOpts, accountId *big.Int) ([]*big.Int, error)

GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.

Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])

func (*PerpsMarketCaller) GetAccountOwner

func (_PerpsMarket *PerpsMarketCaller) GetAccountOwner(opts *bind.CallOpts, accountId *big.Int) (common.Address, error)

GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d.

Solidity: function getAccountOwner(uint128 accountId) view returns(address)

func (*PerpsMarketCaller) GetAccountPermissions

func (_PerpsMarket *PerpsMarketCaller) GetAccountPermissions(opts *bind.CallOpts, accountId *big.Int) ([]IAccountModuleAccountPermissions, error)

GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd.

Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms)

func (*PerpsMarketCaller) GetAccountTokenAddress

func (_PerpsMarket *PerpsMarketCaller) GetAccountTokenAddress(opts *bind.CallOpts) (common.Address, error)

GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10.

Solidity: function getAccountTokenAddress() view returns(address)

func (*PerpsMarketCaller) GetAssociatedSystem

func (_PerpsMarket *PerpsMarketCaller) GetAssociatedSystem(opts *bind.CallOpts, id [32]byte) (struct {
	Addr common.Address
	Kind [32]byte
}, error)

GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09.

Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind)

func (*PerpsMarketCaller) GetAvailableMargin

func (_PerpsMarket *PerpsMarketCaller) GetAvailableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error)

GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d.

Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin)

func (*PerpsMarketCaller) GetCollateralAmount

func (_PerpsMarket *PerpsMarketCaller) GetCollateralAmount(opts *bind.CallOpts, accountId *big.Int, synthMarketId *big.Int) (*big.Int, error)

GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b.

Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256)

func (*PerpsMarketCaller) GetCollateralConfiguration

func (_PerpsMarket *PerpsMarketCaller) GetCollateralConfiguration(opts *bind.CallOpts, synthMarketId *big.Int) (*big.Int, error)

GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.

Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)

func (*PerpsMarketCaller) GetDeniers

func (_PerpsMarket *PerpsMarketCaller) GetDeniers(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error)

GetDeniers is a free data retrieval call binding the contract method 0xed429cf7.

Solidity: function getDeniers(bytes32 feature) view returns(address[])

func (*PerpsMarketCaller) GetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowAll(opts *bind.CallOpts, feature [32]byte) (bool, error)

GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef.

Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool)

func (*PerpsMarketCaller) GetFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagAllowlist(opts *bind.CallOpts, feature [32]byte) ([]common.Address, error)

GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160.

Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[])

func (*PerpsMarketCaller) GetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketCaller) GetFeatureFlagDenyAll(opts *bind.CallOpts, feature [32]byte) (bool, error)

GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0.

Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool)

func (*PerpsMarketCaller) GetFeeCollector

func (_PerpsMarket *PerpsMarketCaller) GetFeeCollector(opts *bind.CallOpts) (common.Address, error)

GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7.

Solidity: function getFeeCollector() view returns(address feeCollector)

func (*PerpsMarketCaller) GetFundingParameters

func (_PerpsMarket *PerpsMarketCaller) GetFundingParameters(opts *bind.CallOpts, marketId *big.Int) (struct {
	SkewScale          *big.Int
	MaxFundingVelocity *big.Int
}, error)

GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa.

Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketCaller) GetImplementation

func (_PerpsMarket *PerpsMarketCaller) GetImplementation(opts *bind.CallOpts) (common.Address, error)

GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42.

Solidity: function getImplementation() view returns(address)

func (*PerpsMarketCaller) GetKeeperCostNodeId

func (_PerpsMarket *PerpsMarketCaller) GetKeeperCostNodeId(opts *bind.CallOpts) ([32]byte, error)

GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.

Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)

func (*PerpsMarketCaller) GetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketCaller) GetKeeperRewardGuards(opts *bind.CallOpts) (struct {
	MinKeeperRewardUsd       *big.Int
	MinKeeperProfitRatioD18  *big.Int
	MaxKeeperRewardUsd       *big.Int
	MaxKeeperScalingRatioD18 *big.Int
}, error)

GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.

Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketCaller) GetLiquidationParameters

func (_PerpsMarket *PerpsMarketCaller) GetLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct {
	InitialMarginRatioD18        *big.Int
	MinimumInitialMarginRatioD18 *big.Int
	MaintenanceMarginScalarD18   *big.Int
	FlagRewardRatioD18           *big.Int
	MinimumPositionMargin        *big.Int
}, error)

GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6.

Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketCaller) GetLockedOiRatio

func (_PerpsMarket *PerpsMarketCaller) GetLockedOiRatio(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046.

Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256)

func (*PerpsMarketCaller) GetMarketSummary

func (_PerpsMarket *PerpsMarketCaller) GetMarketSummary(opts *bind.CallOpts, marketId *big.Int) (IPerpsMarketModuleMarketSummary, error)

GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd.

Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary)

func (*PerpsMarketCaller) GetMarkets

func (_PerpsMarket *PerpsMarketCaller) GetMarkets(opts *bind.CallOpts) ([]*big.Int, error)

GetMarkets is a free data retrieval call binding the contract method 0xec2c9016.

Solidity: function getMarkets() view returns(uint256[] marketIds)

func (*PerpsMarketCaller) GetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketCaller) GetMaxLiquidationParameters(opts *bind.CallOpts, marketId *big.Int) (struct {
	MaxLiquidationLimitAccumulationMultiplier *big.Int
	MaxSecondsInLiquidationWindow             *big.Int
	MaxLiquidationPd                          *big.Int
	EndorsedLiquidator                        common.Address
}, error)

GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e.

Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketCaller) GetMaxMarketSize

func (_PerpsMarket *PerpsMarketCaller) GetMaxMarketSize(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5.

Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize)

func (*PerpsMarketCaller) GetOpenPosition

func (_PerpsMarket *PerpsMarketCaller) GetOpenPosition(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int) (struct {
	TotalPnl       *big.Int
	AccruedFunding *big.Int
	PositionSize   *big.Int
}, error)

GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967.

Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize)

func (*PerpsMarketCaller) GetOrder

func (_PerpsMarket *PerpsMarketCaller) GetOrder(opts *bind.CallOpts, accountId *big.Int) (AsyncOrderData, error)

GetOrder is a free data retrieval call binding the contract method 0x117d4128.

Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order)

func (*PerpsMarketCaller) GetOrderFees

func (_PerpsMarket *PerpsMarketCaller) GetOrderFees(opts *bind.CallOpts, marketId *big.Int) (struct {
	MakerFee *big.Int
	TakerFee *big.Int
}, error)

GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c.

Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee)

func (*PerpsMarketCaller) GetPerAccountCaps

func (_PerpsMarket *PerpsMarketCaller) GetPerAccountCaps(opts *bind.CallOpts) (struct {
	MaxPositionsPerAccount   *big.Int
	MaxCollateralsPerAccount *big.Int
}, error)

GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07.

Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketCaller) GetPriceData

func (_PerpsMarket *PerpsMarketCaller) GetPriceData(opts *bind.CallOpts, perpsMarketId *big.Int) (struct {
	FeedId                   [32]byte
	StrictStalenessTolerance *big.Int
}, error)

GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.

Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketCaller) GetReferrerShare

func (_PerpsMarket *PerpsMarketCaller) GetReferrerShare(opts *bind.CallOpts, referrer common.Address) (*big.Int, error)

GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70.

Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18)

func (*PerpsMarketCaller) GetRequiredMargins

func (_PerpsMarket *PerpsMarketCaller) GetRequiredMargins(opts *bind.CallOpts, accountId *big.Int) (struct {
	RequiredInitialMargin     *big.Int
	RequiredMaintenanceMargin *big.Int
	MaxLiquidationReward      *big.Int
}, error)

GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753.

Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 maxLiquidationReward)

func (*PerpsMarketCaller) GetSettlementStrategy

func (_PerpsMarket *PerpsMarketCaller) GetSettlementStrategy(opts *bind.CallOpts, marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error)

GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f.

Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) settlementStrategy)

func (*PerpsMarketCaller) GetSupportedCollaterals

func (_PerpsMarket *PerpsMarketCaller) GetSupportedCollaterals(opts *bind.CallOpts) ([]*big.Int, error)

GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.

Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)

func (*PerpsMarketCaller) GetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketCaller) GetSynthDeductionPriority(opts *bind.CallOpts) ([]*big.Int, error)

GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f.

Solidity: function getSynthDeductionPriority() view returns(uint128[])

func (*PerpsMarketCaller) GetWithdrawableMargin

func (_PerpsMarket *PerpsMarketCaller) GetWithdrawableMargin(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error)

GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e.

Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin)

func (*PerpsMarketCaller) HasPermission

func (_PerpsMarket *PerpsMarketCaller) HasPermission(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0x8d34166b.

Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketCaller) IndexPrice

func (_PerpsMarket *PerpsMarketCaller) IndexPrice(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4.

Solidity: function indexPrice(uint128 marketId) view returns(uint256)

func (*PerpsMarketCaller) IsAuthorized

func (_PerpsMarket *PerpsMarketCaller) IsAuthorized(opts *bind.CallOpts, accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

IsAuthorized is a free data retrieval call binding the contract method 0x1213d453.

Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketCaller) IsFeatureAllowed

func (_PerpsMarket *PerpsMarketCaller) IsFeatureAllowed(opts *bind.CallOpts, feature [32]byte, account common.Address) (bool, error)

IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949.

Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool)

func (*PerpsMarketCaller) LiquidationCapacity

func (_PerpsMarket *PerpsMarketCaller) LiquidationCapacity(opts *bind.CallOpts, marketId *big.Int) (struct {
	Capacity                   *big.Int
	MaxLiquidationInWindow     *big.Int
	LatestLiquidationTimestamp *big.Int
}, error)

LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896.

Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp)

func (*PerpsMarketCaller) MaxOpenInterest

func (_PerpsMarket *PerpsMarketCaller) MaxOpenInterest(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9.

Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256)

func (*PerpsMarketCaller) Metadata

func (_PerpsMarket *PerpsMarketCaller) Metadata(opts *bind.CallOpts, marketId *big.Int) (struct {
	Name   string
	Symbol string
}, error)

Metadata is a free data retrieval call binding the contract method 0xe3bc36bf.

Solidity: function metadata(uint128 marketId) view returns(string name, string symbol)

func (*PerpsMarketCaller) MinimumCredit

func (_PerpsMarket *PerpsMarketCaller) MinimumCredit(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error)

MinimumCredit is a free data retrieval call binding the contract method 0xafe79200.

Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketCaller) Name

func (_PerpsMarket *PerpsMarketCaller) Name(opts *bind.CallOpts, perpsMarketId *big.Int) (string, error)

Name is a free data retrieval call binding the contract method 0xc624440a.

Solidity: function name(uint128 perpsMarketId) view returns(string)

func (*PerpsMarketCaller) NominatedOwner

func (_PerpsMarket *PerpsMarketCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*PerpsMarketCaller) Owner

func (_PerpsMarket *PerpsMarketCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PerpsMarketCaller) ReportedDebt

func (_PerpsMarket *PerpsMarketCaller) ReportedDebt(opts *bind.CallOpts, perpsMarketId *big.Int) (*big.Int, error)

ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f.

Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketCaller) RequiredMarginForOrder

func (_PerpsMarket *PerpsMarketCaller) RequiredMarginForOrder(opts *bind.CallOpts, accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error)

RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25.

Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin)

func (*PerpsMarketCaller) Size

func (_PerpsMarket *PerpsMarketCaller) Size(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x2b267635.

Solidity: function size(uint128 marketId) view returns(uint256)

func (*PerpsMarketCaller) Skew

func (_PerpsMarket *PerpsMarketCaller) Skew(opts *bind.CallOpts, marketId *big.Int) (*big.Int, error)

Skew is a free data retrieval call binding the contract method 0x83a7db27.

Solidity: function skew(uint128 marketId) view returns(int256)

func (*PerpsMarketCaller) SupportsInterface

func (_PerpsMarket *PerpsMarketCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PerpsMarketCaller) TotalAccountOpenInterest

func (_PerpsMarket *PerpsMarketCaller) TotalAccountOpenInterest(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error)

TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc.

Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256)

func (*PerpsMarketCaller) TotalCollateralValue

func (_PerpsMarket *PerpsMarketCaller) TotalCollateralValue(opts *bind.CallOpts, accountId *big.Int) (*big.Int, error)

TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42.

Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256)

func (*PerpsMarketCaller) TotalGlobalCollateralValue

func (_PerpsMarket *PerpsMarketCaller) TotalGlobalCollateralValue(opts *bind.CallOpts) (*big.Int, error)

TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe.

Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue)

type PerpsMarketCallerRaw

type PerpsMarketCallerRaw struct {
	Contract *PerpsMarketCaller // Generic read-only contract binding to access the raw methods on
}

PerpsMarketCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*PerpsMarketCallerRaw) Call

func (_PerpsMarket *PerpsMarketCallerRaw) 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 PerpsMarketCallerSession

type PerpsMarketCallerSession struct {
	Contract *PerpsMarketCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts      // Call options to use throughout this session
}

PerpsMarketCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*PerpsMarketCallerSession) CanLiquidate

func (_PerpsMarket *PerpsMarketCallerSession) CanLiquidate(accountId *big.Int) (bool, error)

CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba.

Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible)

func (*PerpsMarketCallerSession) ComputeOrderFees

func (_PerpsMarket *PerpsMarketCallerSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct {
	OrderFees *big.Int
	FillPrice *big.Int
}, error)

ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2.

Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice)

func (*PerpsMarketCallerSession) CurrentFundingRate

func (_PerpsMarket *PerpsMarketCallerSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error)

CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2.

Solidity: function currentFundingRate(uint128 marketId) view returns(int256)

func (*PerpsMarketCallerSession) CurrentFundingVelocity

func (_PerpsMarket *PerpsMarketCallerSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error)

CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02.

Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256)

func (*PerpsMarketCallerSession) FillPrice

func (_PerpsMarket *PerpsMarketCallerSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error)

FillPrice is a free data retrieval call binding the contract method 0xdeff90ef.

Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256)

func (*PerpsMarketCallerSession) FlaggedAccounts

func (_PerpsMarket *PerpsMarketCallerSession) FlaggedAccounts() ([]*big.Int, error)

FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.

Solidity: function flaggedAccounts() view returns(uint256[] accountIds)

func (*PerpsMarketCallerSession) GetAccountCollateralIds

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountCollateralIds(accountId *big.Int) ([]*big.Int, error)

GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.

Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])

func (*PerpsMarketCallerSession) GetAccountLastInteraction

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error)

GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb.

Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256)

func (*PerpsMarketCallerSession) GetAccountOpenPositions

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountOpenPositions(accountId *big.Int) ([]*big.Int, error)

GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.

Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])

func (*PerpsMarketCallerSession) GetAccountOwner

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountOwner(accountId *big.Int) (common.Address, error)

GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d.

Solidity: function getAccountOwner(uint128 accountId) view returns(address)

func (*PerpsMarketCallerSession) GetAccountPermissions

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error)

GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd.

Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms)

func (*PerpsMarketCallerSession) GetAccountTokenAddress

func (_PerpsMarket *PerpsMarketCallerSession) GetAccountTokenAddress() (common.Address, error)

GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10.

Solidity: function getAccountTokenAddress() view returns(address)

func (*PerpsMarketCallerSession) GetAssociatedSystem

func (_PerpsMarket *PerpsMarketCallerSession) GetAssociatedSystem(id [32]byte) (struct {
	Addr common.Address
	Kind [32]byte
}, error)

GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09.

Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind)

func (*PerpsMarketCallerSession) GetAvailableMargin

func (_PerpsMarket *PerpsMarketCallerSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error)

GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d.

Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin)

func (*PerpsMarketCallerSession) GetCollateralAmount

func (_PerpsMarket *PerpsMarketCallerSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error)

GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b.

Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256)

func (*PerpsMarketCallerSession) GetCollateralConfiguration

func (_PerpsMarket *PerpsMarketCallerSession) GetCollateralConfiguration(synthMarketId *big.Int) (*big.Int, error)

GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.

Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)

func (*PerpsMarketCallerSession) GetDeniers

func (_PerpsMarket *PerpsMarketCallerSession) GetDeniers(feature [32]byte) ([]common.Address, error)

GetDeniers is a free data retrieval call binding the contract method 0xed429cf7.

Solidity: function getDeniers(bytes32 feature) view returns(address[])

func (*PerpsMarketCallerSession) GetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error)

GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef.

Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool)

func (*PerpsMarketCallerSession) GetFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error)

GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160.

Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[])

func (*PerpsMarketCallerSession) GetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketCallerSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error)

GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0.

Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool)

func (*PerpsMarketCallerSession) GetFeeCollector

func (_PerpsMarket *PerpsMarketCallerSession) GetFeeCollector() (common.Address, error)

GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7.

Solidity: function getFeeCollector() view returns(address feeCollector)

func (*PerpsMarketCallerSession) GetFundingParameters

func (_PerpsMarket *PerpsMarketCallerSession) GetFundingParameters(marketId *big.Int) (struct {
	SkewScale          *big.Int
	MaxFundingVelocity *big.Int
}, error)

GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa.

Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketCallerSession) GetImplementation

func (_PerpsMarket *PerpsMarketCallerSession) GetImplementation() (common.Address, error)

GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42.

Solidity: function getImplementation() view returns(address)

func (*PerpsMarketCallerSession) GetKeeperCostNodeId

func (_PerpsMarket *PerpsMarketCallerSession) GetKeeperCostNodeId() ([32]byte, error)

GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.

Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)

func (*PerpsMarketCallerSession) GetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketCallerSession) GetKeeperRewardGuards() (struct {
	MinKeeperRewardUsd       *big.Int
	MinKeeperProfitRatioD18  *big.Int
	MaxKeeperRewardUsd       *big.Int
	MaxKeeperScalingRatioD18 *big.Int
}, error)

GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.

Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketCallerSession) GetLiquidationParameters

func (_PerpsMarket *PerpsMarketCallerSession) GetLiquidationParameters(marketId *big.Int) (struct {
	InitialMarginRatioD18        *big.Int
	MinimumInitialMarginRatioD18 *big.Int
	MaintenanceMarginScalarD18   *big.Int
	FlagRewardRatioD18           *big.Int
	MinimumPositionMargin        *big.Int
}, error)

GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6.

Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketCallerSession) GetLockedOiRatio

func (_PerpsMarket *PerpsMarketCallerSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error)

GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046.

Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256)

func (*PerpsMarketCallerSession) GetMarketSummary

func (_PerpsMarket *PerpsMarketCallerSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error)

GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd.

Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary)

func (*PerpsMarketCallerSession) GetMarkets

func (_PerpsMarket *PerpsMarketCallerSession) GetMarkets() ([]*big.Int, error)

GetMarkets is a free data retrieval call binding the contract method 0xec2c9016.

Solidity: function getMarkets() view returns(uint256[] marketIds)

func (*PerpsMarketCallerSession) GetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketCallerSession) GetMaxLiquidationParameters(marketId *big.Int) (struct {
	MaxLiquidationLimitAccumulationMultiplier *big.Int
	MaxSecondsInLiquidationWindow             *big.Int
	MaxLiquidationPd                          *big.Int
	EndorsedLiquidator                        common.Address
}, error)

GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e.

Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketCallerSession) GetMaxMarketSize

func (_PerpsMarket *PerpsMarketCallerSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error)

GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5.

Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize)

func (*PerpsMarketCallerSession) GetOpenPosition

func (_PerpsMarket *PerpsMarketCallerSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct {
	TotalPnl       *big.Int
	AccruedFunding *big.Int
	PositionSize   *big.Int
}, error)

GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967.

Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize)

func (*PerpsMarketCallerSession) GetOrder

func (_PerpsMarket *PerpsMarketCallerSession) GetOrder(accountId *big.Int) (AsyncOrderData, error)

GetOrder is a free data retrieval call binding the contract method 0x117d4128.

Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order)

func (*PerpsMarketCallerSession) GetOrderFees

func (_PerpsMarket *PerpsMarketCallerSession) GetOrderFees(marketId *big.Int) (struct {
	MakerFee *big.Int
	TakerFee *big.Int
}, error)

GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c.

Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee)

func (*PerpsMarketCallerSession) GetPerAccountCaps

func (_PerpsMarket *PerpsMarketCallerSession) GetPerAccountCaps() (struct {
	MaxPositionsPerAccount   *big.Int
	MaxCollateralsPerAccount *big.Int
}, error)

GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07.

Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketCallerSession) GetPriceData

func (_PerpsMarket *PerpsMarketCallerSession) GetPriceData(perpsMarketId *big.Int) (struct {
	FeedId                   [32]byte
	StrictStalenessTolerance *big.Int
}, error)

GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.

Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketCallerSession) GetReferrerShare

func (_PerpsMarket *PerpsMarketCallerSession) GetReferrerShare(referrer common.Address) (*big.Int, error)

GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70.

Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18)

func (*PerpsMarketCallerSession) GetRequiredMargins

func (_PerpsMarket *PerpsMarketCallerSession) GetRequiredMargins(accountId *big.Int) (struct {
	RequiredInitialMargin     *big.Int
	RequiredMaintenanceMargin *big.Int
	MaxLiquidationReward      *big.Int
}, error)

GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753.

Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 maxLiquidationReward)

func (*PerpsMarketCallerSession) GetSettlementStrategy

func (_PerpsMarket *PerpsMarketCallerSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error)

GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f.

Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) settlementStrategy)

func (*PerpsMarketCallerSession) GetSupportedCollaterals

func (_PerpsMarket *PerpsMarketCallerSession) GetSupportedCollaterals() ([]*big.Int, error)

GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.

Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)

func (*PerpsMarketCallerSession) GetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketCallerSession) GetSynthDeductionPriority() ([]*big.Int, error)

GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f.

Solidity: function getSynthDeductionPriority() view returns(uint128[])

func (*PerpsMarketCallerSession) GetWithdrawableMargin

func (_PerpsMarket *PerpsMarketCallerSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error)

GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e.

Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin)

func (*PerpsMarketCallerSession) HasPermission

func (_PerpsMarket *PerpsMarketCallerSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0x8d34166b.

Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketCallerSession) IndexPrice

func (_PerpsMarket *PerpsMarketCallerSession) IndexPrice(marketId *big.Int) (*big.Int, error)

IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4.

Solidity: function indexPrice(uint128 marketId) view returns(uint256)

func (*PerpsMarketCallerSession) IsAuthorized

func (_PerpsMarket *PerpsMarketCallerSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

IsAuthorized is a free data retrieval call binding the contract method 0x1213d453.

Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketCallerSession) IsFeatureAllowed

func (_PerpsMarket *PerpsMarketCallerSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error)

IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949.

Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool)

func (*PerpsMarketCallerSession) LiquidationCapacity

func (_PerpsMarket *PerpsMarketCallerSession) LiquidationCapacity(marketId *big.Int) (struct {
	Capacity                   *big.Int
	MaxLiquidationInWindow     *big.Int
	LatestLiquidationTimestamp *big.Int
}, error)

LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896.

Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp)

func (*PerpsMarketCallerSession) MaxOpenInterest

func (_PerpsMarket *PerpsMarketCallerSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error)

MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9.

Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256)

func (*PerpsMarketCallerSession) Metadata

func (_PerpsMarket *PerpsMarketCallerSession) Metadata(marketId *big.Int) (struct {
	Name   string
	Symbol string
}, error)

Metadata is a free data retrieval call binding the contract method 0xe3bc36bf.

Solidity: function metadata(uint128 marketId) view returns(string name, string symbol)

func (*PerpsMarketCallerSession) MinimumCredit

func (_PerpsMarket *PerpsMarketCallerSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error)

MinimumCredit is a free data retrieval call binding the contract method 0xafe79200.

Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketCallerSession) Name

func (_PerpsMarket *PerpsMarketCallerSession) Name(perpsMarketId *big.Int) (string, error)

Name is a free data retrieval call binding the contract method 0xc624440a.

Solidity: function name(uint128 perpsMarketId) view returns(string)

func (*PerpsMarketCallerSession) NominatedOwner

func (_PerpsMarket *PerpsMarketCallerSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*PerpsMarketCallerSession) Owner

func (_PerpsMarket *PerpsMarketCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PerpsMarketCallerSession) ReportedDebt

func (_PerpsMarket *PerpsMarketCallerSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error)

ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f.

Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketCallerSession) RequiredMarginForOrder

func (_PerpsMarket *PerpsMarketCallerSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error)

RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25.

Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin)

func (*PerpsMarketCallerSession) Size

func (_PerpsMarket *PerpsMarketCallerSession) Size(marketId *big.Int) (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x2b267635.

Solidity: function size(uint128 marketId) view returns(uint256)

func (*PerpsMarketCallerSession) Skew

func (_PerpsMarket *PerpsMarketCallerSession) Skew(marketId *big.Int) (*big.Int, error)

Skew is a free data retrieval call binding the contract method 0x83a7db27.

Solidity: function skew(uint128 marketId) view returns(int256)

func (*PerpsMarketCallerSession) SupportsInterface

func (_PerpsMarket *PerpsMarketCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PerpsMarketCallerSession) TotalAccountOpenInterest

func (_PerpsMarket *PerpsMarketCallerSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error)

TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc.

Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256)

func (*PerpsMarketCallerSession) TotalCollateralValue

func (_PerpsMarket *PerpsMarketCallerSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error)

TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42.

Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256)

func (*PerpsMarketCallerSession) TotalGlobalCollateralValue

func (_PerpsMarket *PerpsMarketCallerSession) TotalGlobalCollateralValue() (*big.Int, error)

TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe.

Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue)

type PerpsMarketCollateralConfigurationSet

type PerpsMarketCollateralConfigurationSet struct {
	SynthMarketId       *big.Int
	MaxCollateralAmount *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

PerpsMarketCollateralConfigurationSet represents a CollateralConfigurationSet event raised by the PerpsMarket contract.

type PerpsMarketCollateralConfigurationSetIterator

type PerpsMarketCollateralConfigurationSetIterator struct {
	Event *PerpsMarketCollateralConfigurationSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketCollateralConfigurationSetIterator is returned from FilterCollateralConfigurationSet and is used to iterate over the raw logs and unpacked data for CollateralConfigurationSet events raised by the PerpsMarket contract.

func (*PerpsMarketCollateralConfigurationSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketCollateralConfigurationSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketCollateralConfigurationSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketCollateralDeducted

type PerpsMarketCollateralDeducted struct {
	Account       *big.Int
	SynthMarketId *big.Int
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketCollateralDeducted represents a CollateralDeducted event raised by the PerpsMarket contract.

type PerpsMarketCollateralDeductedIterator

type PerpsMarketCollateralDeductedIterator struct {
	Event *PerpsMarketCollateralDeducted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketCollateralDeductedIterator is returned from FilterCollateralDeducted and is used to iterate over the raw logs and unpacked data for CollateralDeducted events raised by the PerpsMarket contract.

func (*PerpsMarketCollateralDeductedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketCollateralDeductedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketCollateralDeductedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketCollateralModified

type PerpsMarketCollateralModified struct {
	AccountId     *big.Int
	SynthMarketId *big.Int
	AmountDelta   *big.Int
	Sender        common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketCollateralModified represents a CollateralModified event raised by the PerpsMarket contract.

type PerpsMarketCollateralModifiedIterator

type PerpsMarketCollateralModifiedIterator struct {
	Event *PerpsMarketCollateralModified // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketCollateralModifiedIterator is returned from FilterCollateralModified and is used to iterate over the raw logs and unpacked data for CollateralModified events raised by the PerpsMarket contract.

func (*PerpsMarketCollateralModifiedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketCollateralModifiedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketCollateralModifiedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFactoryInitialized

type PerpsMarketFactoryInitialized struct {
	GlobalPerpsMarketId *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

PerpsMarketFactoryInitialized represents a FactoryInitialized event raised by the PerpsMarket contract.

type PerpsMarketFactoryInitializedIterator

type PerpsMarketFactoryInitializedIterator struct {
	Event *PerpsMarketFactoryInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFactoryInitializedIterator is returned from FilterFactoryInitialized and is used to iterate over the raw logs and unpacked data for FactoryInitialized events raised by the PerpsMarket contract.

func (*PerpsMarketFactoryInitializedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFactoryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFactoryInitializedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeatureFlagAllowAllSet

type PerpsMarketFeatureFlagAllowAllSet struct {
	Feature  [32]byte
	AllowAll bool
	Raw      types.Log // Blockchain specific contextual infos
}

PerpsMarketFeatureFlagAllowAllSet represents a FeatureFlagAllowAllSet event raised by the PerpsMarket contract.

type PerpsMarketFeatureFlagAllowAllSetIterator

type PerpsMarketFeatureFlagAllowAllSetIterator struct {
	Event *PerpsMarketFeatureFlagAllowAllSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeatureFlagAllowAllSetIterator is returned from FilterFeatureFlagAllowAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowAllSet events raised by the PerpsMarket contract.

func (*PerpsMarketFeatureFlagAllowAllSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeatureFlagAllowAllSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeatureFlagAllowAllSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeatureFlagAllowlistAdded

type PerpsMarketFeatureFlagAllowlistAdded struct {
	Feature [32]byte
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

PerpsMarketFeatureFlagAllowlistAdded represents a FeatureFlagAllowlistAdded event raised by the PerpsMarket contract.

type PerpsMarketFeatureFlagAllowlistAddedIterator

type PerpsMarketFeatureFlagAllowlistAddedIterator struct {
	Event *PerpsMarketFeatureFlagAllowlistAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeatureFlagAllowlistAddedIterator is returned from FilterFeatureFlagAllowlistAdded and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistAdded events raised by the PerpsMarket contract.

func (*PerpsMarketFeatureFlagAllowlistAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeatureFlagAllowlistAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeatureFlagAllowlistAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeatureFlagAllowlistRemoved

type PerpsMarketFeatureFlagAllowlistRemoved struct {
	Feature [32]byte
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

PerpsMarketFeatureFlagAllowlistRemoved represents a FeatureFlagAllowlistRemoved event raised by the PerpsMarket contract.

type PerpsMarketFeatureFlagAllowlistRemovedIterator

type PerpsMarketFeatureFlagAllowlistRemovedIterator struct {
	Event *PerpsMarketFeatureFlagAllowlistRemoved // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeatureFlagAllowlistRemovedIterator is returned from FilterFeatureFlagAllowlistRemoved and is used to iterate over the raw logs and unpacked data for FeatureFlagAllowlistRemoved events raised by the PerpsMarket contract.

func (*PerpsMarketFeatureFlagAllowlistRemovedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeatureFlagAllowlistRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeatureFlagAllowlistRemovedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeatureFlagDeniersReset

type PerpsMarketFeatureFlagDeniersReset struct {
	Feature [32]byte
	Deniers []common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

PerpsMarketFeatureFlagDeniersReset represents a FeatureFlagDeniersReset event raised by the PerpsMarket contract.

type PerpsMarketFeatureFlagDeniersResetIterator

type PerpsMarketFeatureFlagDeniersResetIterator struct {
	Event *PerpsMarketFeatureFlagDeniersReset // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeatureFlagDeniersResetIterator is returned from FilterFeatureFlagDeniersReset and is used to iterate over the raw logs and unpacked data for FeatureFlagDeniersReset events raised by the PerpsMarket contract.

func (*PerpsMarketFeatureFlagDeniersResetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeatureFlagDeniersResetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeatureFlagDeniersResetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeatureFlagDenyAllSet

type PerpsMarketFeatureFlagDenyAllSet struct {
	Feature [32]byte
	DenyAll bool
	Raw     types.Log // Blockchain specific contextual infos
}

PerpsMarketFeatureFlagDenyAllSet represents a FeatureFlagDenyAllSet event raised by the PerpsMarket contract.

type PerpsMarketFeatureFlagDenyAllSetIterator

type PerpsMarketFeatureFlagDenyAllSetIterator struct {
	Event *PerpsMarketFeatureFlagDenyAllSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeatureFlagDenyAllSetIterator is returned from FilterFeatureFlagDenyAllSet and is used to iterate over the raw logs and unpacked data for FeatureFlagDenyAllSet events raised by the PerpsMarket contract.

func (*PerpsMarketFeatureFlagDenyAllSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeatureFlagDenyAllSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeatureFlagDenyAllSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFeeCollectorSet

type PerpsMarketFeeCollectorSet struct {
	FeeCollector common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

PerpsMarketFeeCollectorSet represents a FeeCollectorSet event raised by the PerpsMarket contract.

type PerpsMarketFeeCollectorSetIterator

type PerpsMarketFeeCollectorSetIterator struct {
	Event *PerpsMarketFeeCollectorSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFeeCollectorSetIterator is returned from FilterFeeCollectorSet and is used to iterate over the raw logs and unpacked data for FeeCollectorSet events raised by the PerpsMarket contract.

func (*PerpsMarketFeeCollectorSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFeeCollectorSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFeeCollectorSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketFilterer

type PerpsMarketFilterer struct {
	// contains filtered or unexported fields
}

PerpsMarketFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewPerpsMarketFilterer

func NewPerpsMarketFilterer(address common.Address, filterer bind.ContractFilterer) (*PerpsMarketFilterer, error)

NewPerpsMarketFilterer creates a new log filterer instance of PerpsMarket, bound to a specific deployed contract.

func (*PerpsMarketFilterer) FilterAccountCreated

func (_PerpsMarket *PerpsMarketFilterer) FilterAccountCreated(opts *bind.FilterOpts, accountId []*big.Int, owner []common.Address) (*PerpsMarketAccountCreatedIterator, error)

FilterAccountCreated is a free log retrieval operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019.

Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner)

func (*PerpsMarketFilterer) FilterAccountLiquidationAttempt

func (_PerpsMarket *PerpsMarketFilterer) FilterAccountLiquidationAttempt(opts *bind.FilterOpts, accountId []*big.Int) (*PerpsMarketAccountLiquidationAttemptIterator, error)

FilterAccountLiquidationAttempt is a free log retrieval operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.

Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)

func (*PerpsMarketFilterer) FilterAssociatedSystemSet

func (_PerpsMarket *PerpsMarketFilterer) FilterAssociatedSystemSet(opts *bind.FilterOpts, kind [][32]byte, id [][32]byte) (*PerpsMarketAssociatedSystemSetIterator, error)

FilterAssociatedSystemSet is a free log retrieval operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2.

Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl)

func (*PerpsMarketFilterer) FilterCollateralConfigurationSet

func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralConfigurationSet(opts *bind.FilterOpts, synthMarketId []*big.Int) (*PerpsMarketCollateralConfigurationSetIterator, error)

FilterCollateralConfigurationSet is a free log retrieval operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.

Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)

func (*PerpsMarketFilterer) FilterCollateralDeducted

func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralDeducted(opts *bind.FilterOpts) (*PerpsMarketCollateralDeductedIterator, error)

FilterCollateralDeducted is a free log retrieval operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.

Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)

func (*PerpsMarketFilterer) FilterCollateralModified

func (_PerpsMarket *PerpsMarketFilterer) FilterCollateralModified(opts *bind.FilterOpts, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (*PerpsMarketCollateralModifiedIterator, error)

FilterCollateralModified is a free log retrieval operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064.

Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender)

func (*PerpsMarketFilterer) FilterFactoryInitialized

func (_PerpsMarket *PerpsMarketFilterer) FilterFactoryInitialized(opts *bind.FilterOpts) (*PerpsMarketFactoryInitializedIterator, error)

FilterFactoryInitialized is a free log retrieval operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339.

Solidity: event FactoryInitialized(uint128 globalPerpsMarketId)

func (*PerpsMarketFilterer) FilterFeatureFlagAllowAllSet

func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowAllSetIterator, error)

FilterFeatureFlagAllowAllSet is a free log retrieval operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d.

Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll)

func (*PerpsMarketFilterer) FilterFeatureFlagAllowlistAdded

func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowlistAdded(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowlistAddedIterator, error)

FilterFeatureFlagAllowlistAdded is a free log retrieval operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383.

Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) FilterFeatureFlagAllowlistRemoved

func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagAllowlistRemoved(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagAllowlistRemovedIterator, error)

FilterFeatureFlagAllowlistRemoved is a free log retrieval operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890.

Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) FilterFeatureFlagDeniersReset

func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagDeniersReset(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagDeniersResetIterator, error)

FilterFeatureFlagDeniersReset is a free log retrieval operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13.

Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers)

func (*PerpsMarketFilterer) FilterFeatureFlagDenyAllSet

func (_PerpsMarket *PerpsMarketFilterer) FilterFeatureFlagDenyAllSet(opts *bind.FilterOpts, feature [][32]byte) (*PerpsMarketFeatureFlagDenyAllSetIterator, error)

FilterFeatureFlagDenyAllSet is a free log retrieval operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018.

Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll)

func (*PerpsMarketFilterer) FilterFeeCollectorSet

func (_PerpsMarket *PerpsMarketFilterer) FilterFeeCollectorSet(opts *bind.FilterOpts) (*PerpsMarketFeeCollectorSetIterator, error)

FilterFeeCollectorSet is a free log retrieval operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4.

Solidity: event FeeCollectorSet(address feeCollector)

func (*PerpsMarketFilterer) FilterFundingParametersSet

func (_PerpsMarket *PerpsMarketFilterer) FilterFundingParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketFundingParametersSetIterator, error)

FilterFundingParametersSet is a free log retrieval operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65.

Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketFilterer) FilterKeeperCostNodeIdUpdated

func (_PerpsMarket *PerpsMarketFilterer) FilterKeeperCostNodeIdUpdated(opts *bind.FilterOpts) (*PerpsMarketKeeperCostNodeIdUpdatedIterator, error)

FilterKeeperCostNodeIdUpdated is a free log retrieval operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.

Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)

func (*PerpsMarketFilterer) FilterKeeperRewardGuardsSet

func (_PerpsMarket *PerpsMarketFilterer) FilterKeeperRewardGuardsSet(opts *bind.FilterOpts) (*PerpsMarketKeeperRewardGuardsSetIterator, error)

FilterKeeperRewardGuardsSet is a free log retrieval operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.

Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketFilterer) FilterLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) FilterLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketLiquidationParametersSetIterator, error)

FilterLiquidationParametersSet is a free log retrieval operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8.

Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketFilterer) FilterLockedOiRatioSet

func (_PerpsMarket *PerpsMarketFilterer) FilterLockedOiRatioSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketLockedOiRatioSetIterator, error)

FilterLockedOiRatioSet is a free log retrieval operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d.

Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18)

func (*PerpsMarketFilterer) FilterMarketCreated

func (_PerpsMarket *PerpsMarketFilterer) FilterMarketCreated(opts *bind.FilterOpts, perpsMarketId []*big.Int) (*PerpsMarketMarketCreatedIterator, error)

FilterMarketCreated is a free log retrieval operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49.

Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol)

func (*PerpsMarketFilterer) FilterMarketPriceDataUpdated

func (_PerpsMarket *PerpsMarketFilterer) FilterMarketPriceDataUpdated(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMarketPriceDataUpdatedIterator, error)

FilterMarketPriceDataUpdated is a free log retrieval operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.

Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketFilterer) FilterMarketUpdated

func (_PerpsMarket *PerpsMarketFilterer) FilterMarketUpdated(opts *bind.FilterOpts) (*PerpsMarketMarketUpdatedIterator, error)

FilterMarketUpdated is a free log retrieval operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5.

Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity)

func (*PerpsMarketFilterer) FilterMaxLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) FilterMaxLiquidationParametersSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMaxLiquidationParametersSetIterator, error)

FilterMaxLiquidationParametersSet is a free log retrieval operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed.

Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketFilterer) FilterMaxMarketSizeSet

func (_PerpsMarket *PerpsMarketFilterer) FilterMaxMarketSizeSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketMaxMarketSizeSetIterator, error)

FilterMaxMarketSizeSet is a free log retrieval operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf.

Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize)

func (*PerpsMarketFilterer) FilterOrderCancelled

func (_PerpsMarket *PerpsMarketFilterer) FilterOrderCancelled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderCancelledIterator, error)

FilterOrderCancelled is a free log retrieval operation binding the contract event 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.

Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) FilterOrderCommitted

func (_PerpsMarket *PerpsMarketFilterer) FilterOrderCommitted(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderCommittedIterator, error)

FilterOrderCommitted is a free log retrieval operation binding the contract event 0xeb7f3a2236186f1b0e183dad9959f6ece678f3d80447b125224e23942f50d44f.

Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 expectedPriceTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)

func (*PerpsMarketFilterer) FilterOrderFeesSet

func (_PerpsMarket *PerpsMarketFilterer) FilterOrderFeesSet(opts *bind.FilterOpts, marketId []*big.Int) (*PerpsMarketOrderFeesSetIterator, error)

FilterOrderFeesSet is a free log retrieval operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee.

Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio)

func (*PerpsMarketFilterer) FilterOrderSettled

func (_PerpsMarket *PerpsMarketFilterer) FilterOrderSettled(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketOrderSettledIterator, error)

FilterOrderSettled is a free log retrieval operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5.

Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) FilterOwnerChanged

func (_PerpsMarket *PerpsMarketFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*PerpsMarketOwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*PerpsMarketFilterer) FilterOwnerNominated

func (_PerpsMarket *PerpsMarketFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*PerpsMarketOwnerNominatedIterator, error)

FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*PerpsMarketFilterer) FilterPerAccountCapsSet

func (_PerpsMarket *PerpsMarketFilterer) FilterPerAccountCapsSet(opts *bind.FilterOpts) (*PerpsMarketPerAccountCapsSetIterator, error)

FilterPerAccountCapsSet is a free log retrieval operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e.

Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketFilterer) FilterPermissionGranted

func (_PerpsMarket *PerpsMarketFilterer) FilterPermissionGranted(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionGrantedIterator, error)

FilterPermissionGranted is a free log retrieval operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50.

Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) FilterPermissionRevoked

func (_PerpsMarket *PerpsMarketFilterer) FilterPermissionRevoked(opts *bind.FilterOpts, accountId []*big.Int, permission [][32]byte, user []common.Address) (*PerpsMarketPermissionRevokedIterator, error)

FilterPermissionRevoked is a free log retrieval operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a.

Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) FilterPositionLiquidated

func (_PerpsMarket *PerpsMarketFilterer) FilterPositionLiquidated(opts *bind.FilterOpts, accountId []*big.Int, marketId []*big.Int) (*PerpsMarketPositionLiquidatedIterator, error)

FilterPositionLiquidated is a free log retrieval operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2.

Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize)

func (*PerpsMarketFilterer) FilterPreviousOrderExpired

func (_PerpsMarket *PerpsMarketFilterer) FilterPreviousOrderExpired(opts *bind.FilterOpts, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (*PerpsMarketPreviousOrderExpiredIterator, error)

FilterPreviousOrderExpired is a free log retrieval operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde.

Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, bytes32 indexed trackingCode)

func (*PerpsMarketFilterer) FilterReferrerShareUpdated

func (_PerpsMarket *PerpsMarketFilterer) FilterReferrerShareUpdated(opts *bind.FilterOpts) (*PerpsMarketReferrerShareUpdatedIterator, error)

FilterReferrerShareUpdated is a free log retrieval operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c.

Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18)

func (*PerpsMarketFilterer) FilterSettlementStrategyAdded

func (_PerpsMarket *PerpsMarketFilterer) FilterSettlementStrategyAdded(opts *bind.FilterOpts, marketId []*big.Int, strategyId []*big.Int) (*PerpsMarketSettlementStrategyAddedIterator, error)

FilterSettlementStrategyAdded is a free log retrieval operation binding the contract event 0x254a9d9f59b5ec6894fda88373cbd55c8cce1734b744f3d3edfec275d84ada56.

Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy, uint256 indexed strategyId)

func (*PerpsMarketFilterer) FilterSettlementStrategySet

func (_PerpsMarket *PerpsMarketFilterer) FilterSettlementStrategySet(opts *bind.FilterOpts, marketId []*big.Int, strategyId []*big.Int) (*PerpsMarketSettlementStrategySetIterator, error)

FilterSettlementStrategySet is a free log retrieval operation binding the contract event 0xdc5a4c4a722e4423d35b4fdcc236de75a4766a2625ae2f19411bfeeb3c160bf1.

Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy)

func (*PerpsMarketFilterer) FilterSynthDeductionPrioritySet

func (_PerpsMarket *PerpsMarketFilterer) FilterSynthDeductionPrioritySet(opts *bind.FilterOpts) (*PerpsMarketSynthDeductionPrioritySetIterator, error)

FilterSynthDeductionPrioritySet is a free log retrieval operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f.

Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority)

func (*PerpsMarketFilterer) FilterUpgraded

func (_PerpsMarket *PerpsMarketFilterer) FilterUpgraded(opts *bind.FilterOpts, self []common.Address) (*PerpsMarketUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7.

Solidity: event Upgraded(address indexed self, address implementation)

func (*PerpsMarketFilterer) ParseAccountCreated

func (_PerpsMarket *PerpsMarketFilterer) ParseAccountCreated(log types.Log) (*PerpsMarketAccountCreated, error)

ParseAccountCreated is a log parse operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019.

Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner)

func (*PerpsMarketFilterer) ParseAccountLiquidationAttempt

func (_PerpsMarket *PerpsMarketFilterer) ParseAccountLiquidationAttempt(log types.Log) (*PerpsMarketAccountLiquidationAttempt, error)

ParseAccountLiquidationAttempt is a log parse operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.

Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)

func (*PerpsMarketFilterer) ParseAssociatedSystemSet

func (_PerpsMarket *PerpsMarketFilterer) ParseAssociatedSystemSet(log types.Log) (*PerpsMarketAssociatedSystemSet, error)

ParseAssociatedSystemSet is a log parse operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2.

Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl)

func (*PerpsMarketFilterer) ParseCollateralConfigurationSet

func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralConfigurationSet(log types.Log) (*PerpsMarketCollateralConfigurationSet, error)

ParseCollateralConfigurationSet is a log parse operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.

Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)

func (*PerpsMarketFilterer) ParseCollateralDeducted

func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralDeducted(log types.Log) (*PerpsMarketCollateralDeducted, error)

ParseCollateralDeducted is a log parse operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.

Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)

func (*PerpsMarketFilterer) ParseCollateralModified

func (_PerpsMarket *PerpsMarketFilterer) ParseCollateralModified(log types.Log) (*PerpsMarketCollateralModified, error)

ParseCollateralModified is a log parse operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064.

Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender)

func (*PerpsMarketFilterer) ParseFactoryInitialized

func (_PerpsMarket *PerpsMarketFilterer) ParseFactoryInitialized(log types.Log) (*PerpsMarketFactoryInitialized, error)

ParseFactoryInitialized is a log parse operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339.

Solidity: event FactoryInitialized(uint128 globalPerpsMarketId)

func (*PerpsMarketFilterer) ParseFeatureFlagAllowAllSet

func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowAllSet(log types.Log) (*PerpsMarketFeatureFlagAllowAllSet, error)

ParseFeatureFlagAllowAllSet is a log parse operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d.

Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll)

func (*PerpsMarketFilterer) ParseFeatureFlagAllowlistAdded

func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowlistAdded(log types.Log) (*PerpsMarketFeatureFlagAllowlistAdded, error)

ParseFeatureFlagAllowlistAdded is a log parse operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383.

Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) ParseFeatureFlagAllowlistRemoved

func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagAllowlistRemoved(log types.Log) (*PerpsMarketFeatureFlagAllowlistRemoved, error)

ParseFeatureFlagAllowlistRemoved is a log parse operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890.

Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) ParseFeatureFlagDeniersReset

func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagDeniersReset(log types.Log) (*PerpsMarketFeatureFlagDeniersReset, error)

ParseFeatureFlagDeniersReset is a log parse operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13.

Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers)

func (*PerpsMarketFilterer) ParseFeatureFlagDenyAllSet

func (_PerpsMarket *PerpsMarketFilterer) ParseFeatureFlagDenyAllSet(log types.Log) (*PerpsMarketFeatureFlagDenyAllSet, error)

ParseFeatureFlagDenyAllSet is a log parse operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018.

Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll)

func (*PerpsMarketFilterer) ParseFeeCollectorSet

func (_PerpsMarket *PerpsMarketFilterer) ParseFeeCollectorSet(log types.Log) (*PerpsMarketFeeCollectorSet, error)

ParseFeeCollectorSet is a log parse operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4.

Solidity: event FeeCollectorSet(address feeCollector)

func (*PerpsMarketFilterer) ParseFundingParametersSet

func (_PerpsMarket *PerpsMarketFilterer) ParseFundingParametersSet(log types.Log) (*PerpsMarketFundingParametersSet, error)

ParseFundingParametersSet is a log parse operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65.

Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketFilterer) ParseKeeperCostNodeIdUpdated

func (_PerpsMarket *PerpsMarketFilterer) ParseKeeperCostNodeIdUpdated(log types.Log) (*PerpsMarketKeeperCostNodeIdUpdated, error)

ParseKeeperCostNodeIdUpdated is a log parse operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.

Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)

func (*PerpsMarketFilterer) ParseKeeperRewardGuardsSet

func (_PerpsMarket *PerpsMarketFilterer) ParseKeeperRewardGuardsSet(log types.Log) (*PerpsMarketKeeperRewardGuardsSet, error)

ParseKeeperRewardGuardsSet is a log parse operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.

Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketFilterer) ParseLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) ParseLiquidationParametersSet(log types.Log) (*PerpsMarketLiquidationParametersSet, error)

ParseLiquidationParametersSet is a log parse operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8.

Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketFilterer) ParseLockedOiRatioSet

func (_PerpsMarket *PerpsMarketFilterer) ParseLockedOiRatioSet(log types.Log) (*PerpsMarketLockedOiRatioSet, error)

ParseLockedOiRatioSet is a log parse operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d.

Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18)

func (*PerpsMarketFilterer) ParseMarketCreated

func (_PerpsMarket *PerpsMarketFilterer) ParseMarketCreated(log types.Log) (*PerpsMarketMarketCreated, error)

ParseMarketCreated is a log parse operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49.

Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol)

func (*PerpsMarketFilterer) ParseMarketPriceDataUpdated

func (_PerpsMarket *PerpsMarketFilterer) ParseMarketPriceDataUpdated(log types.Log) (*PerpsMarketMarketPriceDataUpdated, error)

ParseMarketPriceDataUpdated is a log parse operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.

Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketFilterer) ParseMarketUpdated

func (_PerpsMarket *PerpsMarketFilterer) ParseMarketUpdated(log types.Log) (*PerpsMarketMarketUpdated, error)

ParseMarketUpdated is a log parse operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5.

Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity)

func (*PerpsMarketFilterer) ParseMaxLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) ParseMaxLiquidationParametersSet(log types.Log) (*PerpsMarketMaxLiquidationParametersSet, error)

ParseMaxLiquidationParametersSet is a log parse operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed.

Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketFilterer) ParseMaxMarketSizeSet

func (_PerpsMarket *PerpsMarketFilterer) ParseMaxMarketSizeSet(log types.Log) (*PerpsMarketMaxMarketSizeSet, error)

ParseMaxMarketSizeSet is a log parse operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf.

Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize)

func (*PerpsMarketFilterer) ParseOrderCancelled

func (_PerpsMarket *PerpsMarketFilterer) ParseOrderCancelled(log types.Log) (*PerpsMarketOrderCancelled, error)

ParseOrderCancelled is a log parse operation binding the contract event 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.

Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) ParseOrderCommitted

func (_PerpsMarket *PerpsMarketFilterer) ParseOrderCommitted(log types.Log) (*PerpsMarketOrderCommitted, error)

ParseOrderCommitted is a log parse operation binding the contract event 0xeb7f3a2236186f1b0e183dad9959f6ece678f3d80447b125224e23942f50d44f.

Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 expectedPriceTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)

func (*PerpsMarketFilterer) ParseOrderFeesSet

func (_PerpsMarket *PerpsMarketFilterer) ParseOrderFeesSet(log types.Log) (*PerpsMarketOrderFeesSet, error)

ParseOrderFeesSet is a log parse operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee.

Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio)

func (*PerpsMarketFilterer) ParseOrderSettled

func (_PerpsMarket *PerpsMarketFilterer) ParseOrderSettled(log types.Log) (*PerpsMarketOrderSettled, error)

ParseOrderSettled is a log parse operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5.

Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) ParseOwnerChanged

func (_PerpsMarket *PerpsMarketFilterer) ParseOwnerChanged(log types.Log) (*PerpsMarketOwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*PerpsMarketFilterer) ParseOwnerNominated

func (_PerpsMarket *PerpsMarketFilterer) ParseOwnerNominated(log types.Log) (*PerpsMarketOwnerNominated, error)

ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*PerpsMarketFilterer) ParsePerAccountCapsSet

func (_PerpsMarket *PerpsMarketFilterer) ParsePerAccountCapsSet(log types.Log) (*PerpsMarketPerAccountCapsSet, error)

ParsePerAccountCapsSet is a log parse operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e.

Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketFilterer) ParsePermissionGranted

func (_PerpsMarket *PerpsMarketFilterer) ParsePermissionGranted(log types.Log) (*PerpsMarketPermissionGranted, error)

ParsePermissionGranted is a log parse operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50.

Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) ParsePermissionRevoked

func (_PerpsMarket *PerpsMarketFilterer) ParsePermissionRevoked(log types.Log) (*PerpsMarketPermissionRevoked, error)

ParsePermissionRevoked is a log parse operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a.

Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) ParsePositionLiquidated

func (_PerpsMarket *PerpsMarketFilterer) ParsePositionLiquidated(log types.Log) (*PerpsMarketPositionLiquidated, error)

ParsePositionLiquidated is a log parse operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2.

Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize)

func (*PerpsMarketFilterer) ParsePreviousOrderExpired

func (_PerpsMarket *PerpsMarketFilterer) ParsePreviousOrderExpired(log types.Log) (*PerpsMarketPreviousOrderExpired, error)

ParsePreviousOrderExpired is a log parse operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde.

Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, bytes32 indexed trackingCode)

func (*PerpsMarketFilterer) ParseReferrerShareUpdated

func (_PerpsMarket *PerpsMarketFilterer) ParseReferrerShareUpdated(log types.Log) (*PerpsMarketReferrerShareUpdated, error)

ParseReferrerShareUpdated is a log parse operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c.

Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18)

func (*PerpsMarketFilterer) ParseSettlementStrategyAdded

func (_PerpsMarket *PerpsMarketFilterer) ParseSettlementStrategyAdded(log types.Log) (*PerpsMarketSettlementStrategyAdded, error)

ParseSettlementStrategyAdded is a log parse operation binding the contract event 0x254a9d9f59b5ec6894fda88373cbd55c8cce1734b744f3d3edfec275d84ada56.

Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy, uint256 indexed strategyId)

func (*PerpsMarketFilterer) ParseSettlementStrategySet

func (_PerpsMarket *PerpsMarketFilterer) ParseSettlementStrategySet(log types.Log) (*PerpsMarketSettlementStrategySet, error)

ParseSettlementStrategySet is a log parse operation binding the contract event 0xdc5a4c4a722e4423d35b4fdcc236de75a4766a2625ae2f19411bfeeb3c160bf1.

Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy)

func (*PerpsMarketFilterer) ParseSynthDeductionPrioritySet

func (_PerpsMarket *PerpsMarketFilterer) ParseSynthDeductionPrioritySet(log types.Log) (*PerpsMarketSynthDeductionPrioritySet, error)

ParseSynthDeductionPrioritySet is a log parse operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f.

Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority)

func (*PerpsMarketFilterer) ParseUpgraded

func (_PerpsMarket *PerpsMarketFilterer) ParseUpgraded(log types.Log) (*PerpsMarketUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7.

Solidity: event Upgraded(address indexed self, address implementation)

func (*PerpsMarketFilterer) WatchAccountCreated

func (_PerpsMarket *PerpsMarketFilterer) WatchAccountCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketAccountCreated, accountId []*big.Int, owner []common.Address) (event.Subscription, error)

WatchAccountCreated is a free log subscription operation binding the contract event 0xa9e04d307e860938fa63307df8b8090e365276e59fcca12ed55656c25e538019.

Solidity: event AccountCreated(uint128 indexed accountId, address indexed owner)

func (*PerpsMarketFilterer) WatchAccountLiquidationAttempt

func (_PerpsMarket *PerpsMarketFilterer) WatchAccountLiquidationAttempt(opts *bind.WatchOpts, sink chan<- *PerpsMarketAccountLiquidationAttempt, accountId []*big.Int) (event.Subscription, error)

WatchAccountLiquidationAttempt is a free log subscription operation binding the contract event 0x26ef135389b1c68384b54bcb8b8c6b329a4cc302ab22474b8991fa4e957def35.

Solidity: event AccountLiquidationAttempt(uint128 indexed accountId, uint256 reward, bool fullLiquidation)

func (*PerpsMarketFilterer) WatchAssociatedSystemSet

func (_PerpsMarket *PerpsMarketFilterer) WatchAssociatedSystemSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketAssociatedSystemSet, kind [][32]byte, id [][32]byte) (event.Subscription, error)

WatchAssociatedSystemSet is a free log subscription operation binding the contract event 0xc8551a5a03a7b06d5d20159b3b8839429a7aefab4bf3d020f1b65fa903ccb3d2.

Solidity: event AssociatedSystemSet(bytes32 indexed kind, bytes32 indexed id, address proxy, address impl)

func (*PerpsMarketFilterer) WatchCollateralConfigurationSet

func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralConfigurationSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralConfigurationSet, synthMarketId []*big.Int) (event.Subscription, error)

WatchCollateralConfigurationSet is a free log subscription operation binding the contract event 0x09c99258910b178f427c0a0700e2f50e13ca60cb99967efd0282dbd204c22104.

Solidity: event CollateralConfigurationSet(uint128 indexed synthMarketId, uint256 maxCollateralAmount)

func (*PerpsMarketFilterer) WatchCollateralDeducted

func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralDeducted(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralDeducted) (event.Subscription, error)

WatchCollateralDeducted is a free log subscription operation binding the contract event 0x4598943fbcec152538b18c5a7c3625f352c9e2b8844d3bfbe55d65452afdf665.

Solidity: event CollateralDeducted(uint256 account, uint128 synthMarketId, uint256 amount)

func (*PerpsMarketFilterer) WatchCollateralModified

func (_PerpsMarket *PerpsMarketFilterer) WatchCollateralModified(opts *bind.WatchOpts, sink chan<- *PerpsMarketCollateralModified, accountId []*big.Int, synthMarketId []*big.Int, sender []common.Address) (event.Subscription, error)

WatchCollateralModified is a free log subscription operation binding the contract event 0x2e8360c2f3a6fc1a15aefdd0a0922bea3c898cb90d38c3a97354e7c013116064.

Solidity: event CollateralModified(uint128 indexed accountId, uint128 indexed synthMarketId, int256 amountDelta, address indexed sender)

func (*PerpsMarketFilterer) WatchFactoryInitialized

func (_PerpsMarket *PerpsMarketFilterer) WatchFactoryInitialized(opts *bind.WatchOpts, sink chan<- *PerpsMarketFactoryInitialized) (event.Subscription, error)

WatchFactoryInitialized is a free log subscription operation binding the contract event 0xb3240229b07e26f2f02e69dda85ede86e162ccbc6d10e6aade28931e7f533339.

Solidity: event FactoryInitialized(uint128 globalPerpsMarketId)

func (*PerpsMarketFilterer) WatchFeatureFlagAllowAllSet

func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowAllSet, feature [][32]byte) (event.Subscription, error)

WatchFeatureFlagAllowAllSet is a free log subscription operation binding the contract event 0xa806035d8c8de7cd43725250d3fbf9ee7abe3b99ffb892897913d8a21721121d.

Solidity: event FeatureFlagAllowAllSet(bytes32 indexed feature, bool allowAll)

func (*PerpsMarketFilterer) WatchFeatureFlagAllowlistAdded

func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowlistAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowlistAdded, feature [][32]byte) (event.Subscription, error)

WatchFeatureFlagAllowlistAdded is a free log subscription operation binding the contract event 0x30b9b4104e2fb00b4f980e414dcd828e691c8fcb286f0c73d7267c3a2de49383.

Solidity: event FeatureFlagAllowlistAdded(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) WatchFeatureFlagAllowlistRemoved

func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagAllowlistRemoved(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagAllowlistRemoved, feature [][32]byte) (event.Subscription, error)

WatchFeatureFlagAllowlistRemoved is a free log subscription operation binding the contract event 0xb44a47e11880cc865e8ea382561e406dea8c895366c58e3908f05708b2880890.

Solidity: event FeatureFlagAllowlistRemoved(bytes32 indexed feature, address account)

func (*PerpsMarketFilterer) WatchFeatureFlagDeniersReset

func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagDeniersReset(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagDeniersReset, feature [][32]byte) (event.Subscription, error)

WatchFeatureFlagDeniersReset is a free log subscription operation binding the contract event 0x74d48d0b51a70680130c00decd06b4d536fbb3cee16a3b0bdd2309c264dcbd13.

Solidity: event FeatureFlagDeniersReset(bytes32 indexed feature, address[] deniers)

func (*PerpsMarketFilterer) WatchFeatureFlagDenyAllSet

func (_PerpsMarket *PerpsMarketFilterer) WatchFeatureFlagDenyAllSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeatureFlagDenyAllSet, feature [][32]byte) (event.Subscription, error)

WatchFeatureFlagDenyAllSet is a free log subscription operation binding the contract event 0x97f76d2e384948e28ddd4280a4e76e8600acc328a0c0910c93682a0fccc02018.

Solidity: event FeatureFlagDenyAllSet(bytes32 indexed feature, bool denyAll)

func (*PerpsMarketFilterer) WatchFeeCollectorSet

func (_PerpsMarket *PerpsMarketFilterer) WatchFeeCollectorSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFeeCollectorSet) (event.Subscription, error)

WatchFeeCollectorSet is a free log subscription operation binding the contract event 0x12e1d17016b94668449f97876f4a8d5cc2c19f314db337418894734037cc19d4.

Solidity: event FeeCollectorSet(address feeCollector)

func (*PerpsMarketFilterer) WatchFundingParametersSet

func (_PerpsMarket *PerpsMarketFilterer) WatchFundingParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketFundingParametersSet, marketId []*big.Int) (event.Subscription, error)

WatchFundingParametersSet is a free log subscription operation binding the contract event 0xa74afd926bbafbb9252d224a1fcd6a209f851324bd485f556786820a76e31b65.

Solidity: event FundingParametersSet(uint128 indexed marketId, uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketFilterer) WatchKeeperCostNodeIdUpdated

func (_PerpsMarket *PerpsMarketFilterer) WatchKeeperCostNodeIdUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketKeeperCostNodeIdUpdated) (event.Subscription, error)

WatchKeeperCostNodeIdUpdated is a free log subscription operation binding the contract event 0x60cb06323d52fe6ab34750c42db77ba8dd1e013bb393edb9e1c88a88dee500a7.

Solidity: event KeeperCostNodeIdUpdated(bytes32 keeperCostNodeId)

func (*PerpsMarketFilterer) WatchKeeperRewardGuardsSet

func (_PerpsMarket *PerpsMarketFilterer) WatchKeeperRewardGuardsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketKeeperRewardGuardsSet) (event.Subscription, error)

WatchKeeperRewardGuardsSet is a free log subscription operation binding the contract event 0xdc784d5448d4b3c13f36956adb978d1e276f2e0c8d37e78c262b5be7641d8b54.

Solidity: event KeeperRewardGuardsSet(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketFilterer) WatchLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) WatchLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error)

WatchLiquidationParametersSet is a free log subscription operation binding the contract event 0xa0c87f048ec4f5924e50d554aa4a6e65a935f133a2114e5222590c1690e1a7b8.

Solidity: event LiquidationParametersSet(uint128 indexed marketId, uint256 initialMarginRatioD18, uint256 maintenanceMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketFilterer) WatchLockedOiRatioSet

func (_PerpsMarket *PerpsMarketFilterer) WatchLockedOiRatioSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketLockedOiRatioSet, marketId []*big.Int) (event.Subscription, error)

WatchLockedOiRatioSet is a free log subscription operation binding the contract event 0x1d841fd5b4c806bc5a073d637a8506e1e74d16cb18251b711cb47e133ceafc2d.

Solidity: event LockedOiRatioSet(uint128 indexed marketId, uint256 lockedOiRatioD18)

func (*PerpsMarketFilterer) WatchMarketCreated

func (_PerpsMarket *PerpsMarketFilterer) WatchMarketCreated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketCreated, perpsMarketId []*big.Int) (event.Subscription, error)

WatchMarketCreated is a free log subscription operation binding the contract event 0x032553f94ac1323933f22650ec5b8e232babf1c47efca69383b749463116cc49.

Solidity: event MarketCreated(uint128 indexed perpsMarketId, string marketName, string marketSymbol)

func (*PerpsMarketFilterer) WatchMarketPriceDataUpdated

func (_PerpsMarket *PerpsMarketFilterer) WatchMarketPriceDataUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketPriceDataUpdated, marketId []*big.Int) (event.Subscription, error)

WatchMarketPriceDataUpdated is a free log subscription operation binding the contract event 0x6cf30df68198cadbabcf0342baee973e970617ec00e3cd564a8dc130b0d82dac.

Solidity: event MarketPriceDataUpdated(uint128 indexed marketId, bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketFilterer) WatchMarketUpdated

func (_PerpsMarket *PerpsMarketFilterer) WatchMarketUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketMarketUpdated) (event.Subscription, error)

WatchMarketUpdated is a free log subscription operation binding the contract event 0xb317f068f30db823aeb6ac6ddbffcbb6c805f558972e6b16625ec58b83f1f3d5.

Solidity: event MarketUpdated(uint128 marketId, uint256 price, int256 skew, uint256 size, int256 sizeDelta, int256 currentFundingRate, int256 currentFundingVelocity)

func (*PerpsMarketFilterer) WatchMaxLiquidationParametersSet

func (_PerpsMarket *PerpsMarketFilterer) WatchMaxLiquidationParametersSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketMaxLiquidationParametersSet, marketId []*big.Int) (event.Subscription, error)

WatchMaxLiquidationParametersSet is a free log subscription operation binding the contract event 0x9012ce377b7043d153d2cba3376efe7e1742af5acb7e38897362f392a7dc89ed.

Solidity: event MaxLiquidationParametersSet(uint128 indexed marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketFilterer) WatchMaxMarketSizeSet

func (_PerpsMarket *PerpsMarketFilterer) WatchMaxMarketSizeSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketMaxMarketSizeSet, marketId []*big.Int) (event.Subscription, error)

WatchMaxMarketSizeSet is a free log subscription operation binding the contract event 0xbd063bd3072a194b255163ab8dfd3400c4ab1cc641b920e7aaf1c11f92cd26cf.

Solidity: event MaxMarketSizeSet(uint128 indexed marketId, uint256 maxMarketSize)

func (*PerpsMarketFilterer) WatchOrderCancelled

func (_PerpsMarket *PerpsMarketFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderCancelled, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error)

WatchOrderCancelled is a free log subscription operation binding the contract event 0x7415070016cafa6a064ae5b74d75f9968c033ce38621b3dc6d8e7a3b1e64e3ed.

Solidity: event OrderCancelled(uint128 indexed marketId, uint128 indexed accountId, uint256 desiredPrice, uint256 fillPrice, int128 sizeDelta, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) WatchOrderCommitted

func (_PerpsMarket *PerpsMarketFilterer) WatchOrderCommitted(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderCommitted, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error)

WatchOrderCommitted is a free log subscription operation binding the contract event 0xeb7f3a2236186f1b0e183dad9959f6ece678f3d80447b125224e23942f50d44f.

Solidity: event OrderCommitted(uint128 indexed marketId, uint128 indexed accountId, uint8 orderType, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, uint256 expectedPriceTime, uint256 settlementTime, uint256 expirationTime, bytes32 indexed trackingCode, address sender)

func (*PerpsMarketFilterer) WatchOrderFeesSet

func (_PerpsMarket *PerpsMarketFilterer) WatchOrderFeesSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderFeesSet, marketId []*big.Int) (event.Subscription, error)

WatchOrderFeesSet is a free log subscription operation binding the contract event 0x28969f156340ba9eb31589904eb174d3a4b6a37781fa6f7ad289d349d75dd1ee.

Solidity: event OrderFeesSet(uint128 indexed marketId, uint256 makerFeeRatio, uint256 takerFeeRatio)

func (*PerpsMarketFilterer) WatchOrderSettled

func (_PerpsMarket *PerpsMarketFilterer) WatchOrderSettled(opts *bind.WatchOpts, sink chan<- *PerpsMarketOrderSettled, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error)

WatchOrderSettled is a free log subscription operation binding the contract event 0x460080a757ec90719fe90ab2384c0196cdeed071a9fd7ce1ada43481d96b7db5.

Solidity: event OrderSettled(uint128 indexed marketId, uint128 indexed accountId, uint256 fillPrice, int256 pnl, int256 accruedFunding, int128 sizeDelta, int128 newSize, uint256 totalFees, uint256 referralFees, uint256 collectedFees, uint256 settlementReward, bytes32 indexed trackingCode, address settler)

func (*PerpsMarketFilterer) WatchOwnerChanged

func (_PerpsMarket *PerpsMarketFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerChanged) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*PerpsMarketFilterer) WatchOwnerNominated

func (_PerpsMarket *PerpsMarketFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *PerpsMarketOwnerNominated) (event.Subscription, error)

WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*PerpsMarketFilterer) WatchPerAccountCapsSet

func (_PerpsMarket *PerpsMarketFilterer) WatchPerAccountCapsSet(opts *bind.WatchOpts, sink chan<- *PerpsMarketPerAccountCapsSet) (event.Subscription, error)

WatchPerAccountCapsSet is a free log subscription operation binding the contract event 0x3448c6d1990f2d48253b91394193cd11ce49f1653f2d03934af6d17195ffe34e.

Solidity: event PerAccountCapsSet(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketFilterer) WatchPermissionGranted

func (_PerpsMarket *PerpsMarketFilterer) WatchPermissionGranted(opts *bind.WatchOpts, sink chan<- *PerpsMarketPermissionGranted, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error)

WatchPermissionGranted is a free log subscription operation binding the contract event 0x32ff7c3f84299a3543c1e89057e98ba962f4fbe7786c52289e184c57b9a36a50.

Solidity: event PermissionGranted(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) WatchPermissionRevoked

func (_PerpsMarket *PerpsMarketFilterer) WatchPermissionRevoked(opts *bind.WatchOpts, sink chan<- *PerpsMarketPermissionRevoked, accountId []*big.Int, permission [][32]byte, user []common.Address) (event.Subscription, error)

WatchPermissionRevoked is a free log subscription operation binding the contract event 0x116c7e9cd2db316974fb473babcbcd625be1350842d0319e761d30aefb09a58a.

Solidity: event PermissionRevoked(uint128 indexed accountId, bytes32 indexed permission, address indexed user, address sender)

func (*PerpsMarketFilterer) WatchPositionLiquidated

func (_PerpsMarket *PerpsMarketFilterer) WatchPositionLiquidated(opts *bind.WatchOpts, sink chan<- *PerpsMarketPositionLiquidated, accountId []*big.Int, marketId []*big.Int) (event.Subscription, error)

WatchPositionLiquidated is a free log subscription operation binding the contract event 0xd583c0e2965aae317f4a9a6603c0c75602b9bc97dc7c5fc6446b0ba8d3ff1bb2.

Solidity: event PositionLiquidated(uint128 indexed accountId, uint128 indexed marketId, uint256 amountLiquidated, int128 currentPositionSize)

func (*PerpsMarketFilterer) WatchPreviousOrderExpired

func (_PerpsMarket *PerpsMarketFilterer) WatchPreviousOrderExpired(opts *bind.WatchOpts, sink chan<- *PerpsMarketPreviousOrderExpired, marketId []*big.Int, accountId []*big.Int, trackingCode [][32]byte) (event.Subscription, error)

WatchPreviousOrderExpired is a free log subscription operation binding the contract event 0x6d83c6751813f50325d75bc054621f83299659c5814d1e5fe6ac117860710dde.

Solidity: event PreviousOrderExpired(uint128 indexed marketId, uint128 indexed accountId, int128 sizeDelta, uint256 acceptablePrice, uint256 commitmentTime, bytes32 indexed trackingCode)

func (*PerpsMarketFilterer) WatchReferrerShareUpdated

func (_PerpsMarket *PerpsMarketFilterer) WatchReferrerShareUpdated(opts *bind.WatchOpts, sink chan<- *PerpsMarketReferrerShareUpdated) (event.Subscription, error)

WatchReferrerShareUpdated is a free log subscription operation binding the contract event 0xa225c555f4cd21a533ad4e01eaf30153c84ca28265d954a651410d3c1e56242c.

Solidity: event ReferrerShareUpdated(address referrer, uint256 shareRatioD18)

func (*PerpsMarketFilterer) WatchSettlementStrategyAdded

func (_PerpsMarket *PerpsMarketFilterer) WatchSettlementStrategyAdded(opts *bind.WatchOpts, sink chan<- *PerpsMarketSettlementStrategyAdded, marketId []*big.Int, strategyId []*big.Int) (event.Subscription, error)

WatchSettlementStrategyAdded is a free log subscription operation binding the contract event 0x254a9d9f59b5ec6894fda88373cbd55c8cce1734b744f3d3edfec275d84ada56.

Solidity: event SettlementStrategyAdded(uint128 indexed marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy, uint256 indexed strategyId)

func (*PerpsMarketFilterer) WatchSettlementStrategySet

func (_PerpsMarket *PerpsMarketFilterer) WatchSettlementStrategySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketSettlementStrategySet, marketId []*big.Int, strategyId []*big.Int) (event.Subscription, error)

WatchSettlementStrategySet is a free log subscription operation binding the contract event 0xdc5a4c4a722e4423d35b4fdcc236de75a4766a2625ae2f19411bfeeb3c160bf1.

Solidity: event SettlementStrategySet(uint128 indexed marketId, uint256 indexed strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy)

func (*PerpsMarketFilterer) WatchSynthDeductionPrioritySet

func (_PerpsMarket *PerpsMarketFilterer) WatchSynthDeductionPrioritySet(opts *bind.WatchOpts, sink chan<- *PerpsMarketSynthDeductionPrioritySet) (event.Subscription, error)

WatchSynthDeductionPrioritySet is a free log subscription operation binding the contract event 0xa6beea856d32db9e9614e4af02fc7d6a3fa8337a13e4a48486c142a9a9a8ed8f.

Solidity: event SynthDeductionPrioritySet(uint128[] newSynthDeductionPriority)

func (*PerpsMarketFilterer) WatchUpgraded

func (_PerpsMarket *PerpsMarketFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *PerpsMarketUpgraded, self []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0x5d611f318680d00598bb735d61bacf0c514c6b50e1e5ad30040a4df2b12791c7.

Solidity: event Upgraded(address indexed self, address implementation)

type PerpsMarketFundingParametersSet

type PerpsMarketFundingParametersSet struct {
	MarketId           *big.Int
	SkewScale          *big.Int
	MaxFundingVelocity *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

PerpsMarketFundingParametersSet represents a FundingParametersSet event raised by the PerpsMarket contract.

type PerpsMarketFundingParametersSetIterator

type PerpsMarketFundingParametersSetIterator struct {
	Event *PerpsMarketFundingParametersSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketFundingParametersSetIterator is returned from FilterFundingParametersSet and is used to iterate over the raw logs and unpacked data for FundingParametersSet events raised by the PerpsMarket contract.

func (*PerpsMarketFundingParametersSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketFundingParametersSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketFundingParametersSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketKeeperCostNodeIdUpdated

type PerpsMarketKeeperCostNodeIdUpdated struct {
	KeeperCostNodeId [32]byte
	Raw              types.Log // Blockchain specific contextual infos
}

PerpsMarketKeeperCostNodeIdUpdated represents a KeeperCostNodeIdUpdated event raised by the PerpsMarket contract.

type PerpsMarketKeeperCostNodeIdUpdatedIterator

type PerpsMarketKeeperCostNodeIdUpdatedIterator struct {
	Event *PerpsMarketKeeperCostNodeIdUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketKeeperCostNodeIdUpdatedIterator is returned from FilterKeeperCostNodeIdUpdated and is used to iterate over the raw logs and unpacked data for KeeperCostNodeIdUpdated events raised by the PerpsMarket contract.

func (*PerpsMarketKeeperCostNodeIdUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketKeeperCostNodeIdUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketKeeperCostNodeIdUpdatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketKeeperRewardGuardsSet

type PerpsMarketKeeperRewardGuardsSet struct {
	MinKeeperRewardUsd       *big.Int
	MinKeeperProfitRatioD18  *big.Int
	MaxKeeperRewardUsd       *big.Int
	MaxKeeperScalingRatioD18 *big.Int
	Raw                      types.Log // Blockchain specific contextual infos
}

PerpsMarketKeeperRewardGuardsSet represents a KeeperRewardGuardsSet event raised by the PerpsMarket contract.

type PerpsMarketKeeperRewardGuardsSetIterator

type PerpsMarketKeeperRewardGuardsSetIterator struct {
	Event *PerpsMarketKeeperRewardGuardsSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketKeeperRewardGuardsSetIterator is returned from FilterKeeperRewardGuardsSet and is used to iterate over the raw logs and unpacked data for KeeperRewardGuardsSet events raised by the PerpsMarket contract.

func (*PerpsMarketKeeperRewardGuardsSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketKeeperRewardGuardsSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketKeeperRewardGuardsSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketLiquidationParametersSet

type PerpsMarketLiquidationParametersSet struct {
	MarketId                     *big.Int
	InitialMarginRatioD18        *big.Int
	MaintenanceMarginRatioD18    *big.Int
	MinimumInitialMarginRatioD18 *big.Int
	FlagRewardRatioD18           *big.Int
	MinimumPositionMargin        *big.Int
	Raw                          types.Log // Blockchain specific contextual infos
}

PerpsMarketLiquidationParametersSet represents a LiquidationParametersSet event raised by the PerpsMarket contract.

type PerpsMarketLiquidationParametersSetIterator

type PerpsMarketLiquidationParametersSetIterator struct {
	Event *PerpsMarketLiquidationParametersSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketLiquidationParametersSetIterator is returned from FilterLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for LiquidationParametersSet events raised by the PerpsMarket contract.

func (*PerpsMarketLiquidationParametersSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketLiquidationParametersSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketLiquidationParametersSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketLockedOiRatioSet

type PerpsMarketLockedOiRatioSet struct {
	MarketId         *big.Int
	LockedOiRatioD18 *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

PerpsMarketLockedOiRatioSet represents a LockedOiRatioSet event raised by the PerpsMarket contract.

type PerpsMarketLockedOiRatioSetIterator

type PerpsMarketLockedOiRatioSetIterator struct {
	Event *PerpsMarketLockedOiRatioSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketLockedOiRatioSetIterator is returned from FilterLockedOiRatioSet and is used to iterate over the raw logs and unpacked data for LockedOiRatioSet events raised by the PerpsMarket contract.

func (*PerpsMarketLockedOiRatioSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketLockedOiRatioSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketLockedOiRatioSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketMarketCreated

type PerpsMarketMarketCreated struct {
	PerpsMarketId *big.Int
	MarketName    string
	MarketSymbol  string
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketMarketCreated represents a MarketCreated event raised by the PerpsMarket contract.

type PerpsMarketMarketCreatedIterator

type PerpsMarketMarketCreatedIterator struct {
	Event *PerpsMarketMarketCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketMarketCreatedIterator is returned from FilterMarketCreated and is used to iterate over the raw logs and unpacked data for MarketCreated events raised by the PerpsMarket contract.

func (*PerpsMarketMarketCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketMarketCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketMarketCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketMarketPriceDataUpdated

type PerpsMarketMarketPriceDataUpdated struct {
	MarketId                 *big.Int
	FeedId                   [32]byte
	StrictStalenessTolerance *big.Int
	Raw                      types.Log // Blockchain specific contextual infos
}

PerpsMarketMarketPriceDataUpdated represents a MarketPriceDataUpdated event raised by the PerpsMarket contract.

type PerpsMarketMarketPriceDataUpdatedIterator

type PerpsMarketMarketPriceDataUpdatedIterator struct {
	Event *PerpsMarketMarketPriceDataUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketMarketPriceDataUpdatedIterator is returned from FilterMarketPriceDataUpdated and is used to iterate over the raw logs and unpacked data for MarketPriceDataUpdated events raised by the PerpsMarket contract.

func (*PerpsMarketMarketPriceDataUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketMarketPriceDataUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketMarketPriceDataUpdatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketMarketUpdated

type PerpsMarketMarketUpdated struct {
	MarketId               *big.Int
	Price                  *big.Int
	Skew                   *big.Int
	Size                   *big.Int
	SizeDelta              *big.Int
	CurrentFundingRate     *big.Int
	CurrentFundingVelocity *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

PerpsMarketMarketUpdated represents a MarketUpdated event raised by the PerpsMarket contract.

type PerpsMarketMarketUpdatedIterator

type PerpsMarketMarketUpdatedIterator struct {
	Event *PerpsMarketMarketUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketMarketUpdatedIterator is returned from FilterMarketUpdated and is used to iterate over the raw logs and unpacked data for MarketUpdated events raised by the PerpsMarket contract.

func (*PerpsMarketMarketUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketMarketUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketMarketUpdatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketMaxLiquidationParametersSet

type PerpsMarketMaxLiquidationParametersSet struct {
	MarketId                                  *big.Int
	MaxLiquidationLimitAccumulationMultiplier *big.Int
	MaxSecondsInLiquidationWindow             *big.Int
	MaxLiquidationPd                          *big.Int
	EndorsedLiquidator                        common.Address
	Raw                                       types.Log // Blockchain specific contextual infos
}

PerpsMarketMaxLiquidationParametersSet represents a MaxLiquidationParametersSet event raised by the PerpsMarket contract.

type PerpsMarketMaxLiquidationParametersSetIterator

type PerpsMarketMaxLiquidationParametersSetIterator struct {
	Event *PerpsMarketMaxLiquidationParametersSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketMaxLiquidationParametersSetIterator is returned from FilterMaxLiquidationParametersSet and is used to iterate over the raw logs and unpacked data for MaxLiquidationParametersSet events raised by the PerpsMarket contract.

func (*PerpsMarketMaxLiquidationParametersSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketMaxLiquidationParametersSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketMaxLiquidationParametersSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketMaxMarketSizeSet

type PerpsMarketMaxMarketSizeSet struct {
	MarketId      *big.Int
	MaxMarketSize *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketMaxMarketSizeSet represents a MaxMarketSizeSet event raised by the PerpsMarket contract.

type PerpsMarketMaxMarketSizeSetIterator

type PerpsMarketMaxMarketSizeSetIterator struct {
	Event *PerpsMarketMaxMarketSizeSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketMaxMarketSizeSetIterator is returned from FilterMaxMarketSizeSet and is used to iterate over the raw logs and unpacked data for MaxMarketSizeSet events raised by the PerpsMarket contract.

func (*PerpsMarketMaxMarketSizeSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketMaxMarketSizeSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketMaxMarketSizeSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOrderCancelled

type PerpsMarketOrderCancelled struct {
	MarketId         *big.Int
	AccountId        *big.Int
	DesiredPrice     *big.Int
	FillPrice        *big.Int
	SizeDelta        *big.Int
	SettlementReward *big.Int
	TrackingCode     [32]byte
	Settler          common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

PerpsMarketOrderCancelled represents a OrderCancelled event raised by the PerpsMarket contract.

type PerpsMarketOrderCancelledIterator

type PerpsMarketOrderCancelledIterator struct {
	Event *PerpsMarketOrderCancelled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the PerpsMarket contract.

func (*PerpsMarketOrderCancelledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOrderCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOrderCancelledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOrderCommitted

type PerpsMarketOrderCommitted struct {
	MarketId          *big.Int
	AccountId         *big.Int
	OrderType         uint8
	SizeDelta         *big.Int
	AcceptablePrice   *big.Int
	CommitmentTime    *big.Int
	ExpectedPriceTime *big.Int
	SettlementTime    *big.Int
	ExpirationTime    *big.Int
	TrackingCode      [32]byte
	Sender            common.Address
	Raw               types.Log // Blockchain specific contextual infos
}

PerpsMarketOrderCommitted represents a OrderCommitted event raised by the PerpsMarket contract.

type PerpsMarketOrderCommittedIterator

type PerpsMarketOrderCommittedIterator struct {
	Event *PerpsMarketOrderCommitted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOrderCommittedIterator is returned from FilterOrderCommitted and is used to iterate over the raw logs and unpacked data for OrderCommitted events raised by the PerpsMarket contract.

func (*PerpsMarketOrderCommittedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOrderCommittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOrderCommittedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOrderFeesSet

type PerpsMarketOrderFeesSet struct {
	MarketId      *big.Int
	MakerFeeRatio *big.Int
	TakerFeeRatio *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketOrderFeesSet represents a OrderFeesSet event raised by the PerpsMarket contract.

type PerpsMarketOrderFeesSetIterator

type PerpsMarketOrderFeesSetIterator struct {
	Event *PerpsMarketOrderFeesSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOrderFeesSetIterator is returned from FilterOrderFeesSet and is used to iterate over the raw logs and unpacked data for OrderFeesSet events raised by the PerpsMarket contract.

func (*PerpsMarketOrderFeesSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOrderFeesSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOrderFeesSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOrderSettled

type PerpsMarketOrderSettled struct {
	MarketId         *big.Int
	AccountId        *big.Int
	FillPrice        *big.Int
	Pnl              *big.Int
	AccruedFunding   *big.Int
	SizeDelta        *big.Int
	NewSize          *big.Int
	TotalFees        *big.Int
	ReferralFees     *big.Int
	CollectedFees    *big.Int
	SettlementReward *big.Int
	TrackingCode     [32]byte
	Settler          common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

PerpsMarketOrderSettled represents a OrderSettled event raised by the PerpsMarket contract.

type PerpsMarketOrderSettledIterator

type PerpsMarketOrderSettledIterator struct {
	Event *PerpsMarketOrderSettled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOrderSettledIterator is returned from FilterOrderSettled and is used to iterate over the raw logs and unpacked data for OrderSettled events raised by the PerpsMarket contract.

func (*PerpsMarketOrderSettledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOrderSettledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOrderSettledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOwnerChanged

type PerpsMarketOwnerChanged struct {
	OldOwner common.Address
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

PerpsMarketOwnerChanged represents a OwnerChanged event raised by the PerpsMarket contract.

type PerpsMarketOwnerChangedIterator

type PerpsMarketOwnerChangedIterator struct {
	Event *PerpsMarketOwnerChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the PerpsMarket contract.

func (*PerpsMarketOwnerChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOwnerChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOwnerChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketOwnerNominated

type PerpsMarketOwnerNominated struct {
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

PerpsMarketOwnerNominated represents a OwnerNominated event raised by the PerpsMarket contract.

type PerpsMarketOwnerNominatedIterator

type PerpsMarketOwnerNominatedIterator struct {
	Event *PerpsMarketOwnerNominated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the PerpsMarket contract.

func (*PerpsMarketOwnerNominatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketOwnerNominatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketOwnerNominatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketPerAccountCapsSet

type PerpsMarketPerAccountCapsSet struct {
	MaxPositionsPerAccount   *big.Int
	MaxCollateralsPerAccount *big.Int
	Raw                      types.Log // Blockchain specific contextual infos
}

PerpsMarketPerAccountCapsSet represents a PerAccountCapsSet event raised by the PerpsMarket contract.

type PerpsMarketPerAccountCapsSetIterator

type PerpsMarketPerAccountCapsSetIterator struct {
	Event *PerpsMarketPerAccountCapsSet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketPerAccountCapsSetIterator is returned from FilterPerAccountCapsSet and is used to iterate over the raw logs and unpacked data for PerAccountCapsSet events raised by the PerpsMarket contract.

func (*PerpsMarketPerAccountCapsSetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketPerAccountCapsSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketPerAccountCapsSetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketPermissionGranted

type PerpsMarketPermissionGranted struct {
	AccountId  *big.Int
	Permission [32]byte
	User       common.Address
	Sender     common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

PerpsMarketPermissionGranted represents a PermissionGranted event raised by the PerpsMarket contract.

type PerpsMarketPermissionGrantedIterator

type PerpsMarketPermissionGrantedIterator struct {
	Event *PerpsMarketPermissionGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketPermissionGrantedIterator is returned from FilterPermissionGranted and is used to iterate over the raw logs and unpacked data for PermissionGranted events raised by the PerpsMarket contract.

func (*PerpsMarketPermissionGrantedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketPermissionGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketPermissionGrantedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketPermissionRevoked

type PerpsMarketPermissionRevoked struct {
	AccountId  *big.Int
	Permission [32]byte
	User       common.Address
	Sender     common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

PerpsMarketPermissionRevoked represents a PermissionRevoked event raised by the PerpsMarket contract.

type PerpsMarketPermissionRevokedIterator

type PerpsMarketPermissionRevokedIterator struct {
	Event *PerpsMarketPermissionRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketPermissionRevokedIterator is returned from FilterPermissionRevoked and is used to iterate over the raw logs and unpacked data for PermissionRevoked events raised by the PerpsMarket contract.

func (*PerpsMarketPermissionRevokedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketPermissionRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketPermissionRevokedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketPositionLiquidated

type PerpsMarketPositionLiquidated struct {
	AccountId           *big.Int
	MarketId            *big.Int
	AmountLiquidated    *big.Int
	CurrentPositionSize *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

PerpsMarketPositionLiquidated represents a PositionLiquidated event raised by the PerpsMarket contract.

type PerpsMarketPositionLiquidatedIterator

type PerpsMarketPositionLiquidatedIterator struct {
	Event *PerpsMarketPositionLiquidated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketPositionLiquidatedIterator is returned from FilterPositionLiquidated and is used to iterate over the raw logs and unpacked data for PositionLiquidated events raised by the PerpsMarket contract.

func (*PerpsMarketPositionLiquidatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketPositionLiquidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketPositionLiquidatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketPreviousOrderExpired

type PerpsMarketPreviousOrderExpired struct {
	MarketId        *big.Int
	AccountId       *big.Int
	SizeDelta       *big.Int
	AcceptablePrice *big.Int
	CommitmentTime  *big.Int
	TrackingCode    [32]byte
	Raw             types.Log // Blockchain specific contextual infos
}

PerpsMarketPreviousOrderExpired represents a PreviousOrderExpired event raised by the PerpsMarket contract.

type PerpsMarketPreviousOrderExpiredIterator

type PerpsMarketPreviousOrderExpiredIterator struct {
	Event *PerpsMarketPreviousOrderExpired // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketPreviousOrderExpiredIterator is returned from FilterPreviousOrderExpired and is used to iterate over the raw logs and unpacked data for PreviousOrderExpired events raised by the PerpsMarket contract.

func (*PerpsMarketPreviousOrderExpiredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketPreviousOrderExpiredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketPreviousOrderExpiredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketRaw

type PerpsMarketRaw struct {
	Contract *PerpsMarket // Generic contract binding to access the raw methods on
}

PerpsMarketRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*PerpsMarketRaw) Call

func (_PerpsMarket *PerpsMarketRaw) 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 (*PerpsMarketRaw) Transact

func (_PerpsMarket *PerpsMarketRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*PerpsMarketRaw) Transfer

func (_PerpsMarket *PerpsMarketRaw) 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 PerpsMarketReferrerShareUpdated

type PerpsMarketReferrerShareUpdated struct {
	Referrer      common.Address
	ShareRatioD18 *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

PerpsMarketReferrerShareUpdated represents a ReferrerShareUpdated event raised by the PerpsMarket contract.

type PerpsMarketReferrerShareUpdatedIterator

type PerpsMarketReferrerShareUpdatedIterator struct {
	Event *PerpsMarketReferrerShareUpdated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketReferrerShareUpdatedIterator is returned from FilterReferrerShareUpdated and is used to iterate over the raw logs and unpacked data for ReferrerShareUpdated events raised by the PerpsMarket contract.

func (*PerpsMarketReferrerShareUpdatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketReferrerShareUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketReferrerShareUpdatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketSession

type PerpsMarketSession struct {
	Contract     *PerpsMarket      // 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
}

PerpsMarketSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*PerpsMarketSession) AcceptOwnership

func (_PerpsMarket *PerpsMarketSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PerpsMarketSession) AddSettlementStrategy

func (_PerpsMarket *PerpsMarketSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

AddSettlementStrategy is a paid mutator transaction binding the contract method 0x74d745fc.

Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns(uint256 strategyId)

func (*PerpsMarketSession) AddToFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error)

AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144.

Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketSession) CanLiquidate

func (_PerpsMarket *PerpsMarketSession) CanLiquidate(accountId *big.Int) (bool, error)

CanLiquidate is a free data retrieval call binding the contract method 0x9b922bba.

Solidity: function canLiquidate(uint128 accountId) view returns(bool isEligible)

func (*PerpsMarketSession) CancelOrder

func (_PerpsMarket *PerpsMarketSession) CancelOrder(accountId *big.Int) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.

Solidity: function cancelOrder(uint128 accountId) returns()

func (*PerpsMarketSession) CommitOrder

func (_PerpsMarket *PerpsMarketSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error)

CommitOrder is a paid mutator transaction binding the contract method 0x9f978860.

Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees)

func (*PerpsMarketSession) ComputeOrderFees

func (_PerpsMarket *PerpsMarketSession) ComputeOrderFees(marketId *big.Int, sizeDelta *big.Int) (struct {
	OrderFees *big.Int
	FillPrice *big.Int
}, error)

ComputeOrderFees is a free data retrieval call binding the contract method 0x98ef15a2.

Solidity: function computeOrderFees(uint128 marketId, int128 sizeDelta) view returns(uint256 orderFees, uint256 fillPrice)

func (*PerpsMarketSession) CreateAccount

func (_PerpsMarket *PerpsMarketSession) CreateAccount() (*types.Transaction, error)

CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f.

Solidity: function createAccount() returns(uint128 accountId)

func (*PerpsMarketSession) CreateAccount0

func (_PerpsMarket *PerpsMarketSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error)

CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5.

Solidity: function createAccount(uint128 requestedAccountId) returns()

func (*PerpsMarketSession) CreateMarket

func (_PerpsMarket *PerpsMarketSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error)

CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4.

Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128)

func (*PerpsMarketSession) CurrentFundingRate

func (_PerpsMarket *PerpsMarketSession) CurrentFundingRate(marketId *big.Int) (*big.Int, error)

CurrentFundingRate is a free data retrieval call binding the contract method 0xd435b2a2.

Solidity: function currentFundingRate(uint128 marketId) view returns(int256)

func (*PerpsMarketSession) CurrentFundingVelocity

func (_PerpsMarket *PerpsMarketSession) CurrentFundingVelocity(marketId *big.Int) (*big.Int, error)

CurrentFundingVelocity is a free data retrieval call binding the contract method 0xf265db02.

Solidity: function currentFundingVelocity(uint128 marketId) view returns(int256)

func (*PerpsMarketSession) FillPrice

func (_PerpsMarket *PerpsMarketSession) FillPrice(marketId *big.Int, orderSize *big.Int, price *big.Int) (*big.Int, error)

FillPrice is a free data retrieval call binding the contract method 0xdeff90ef.

Solidity: function fillPrice(uint128 marketId, int128 orderSize, uint256 price) view returns(uint256)

func (*PerpsMarketSession) FlaggedAccounts

func (_PerpsMarket *PerpsMarketSession) FlaggedAccounts() ([]*big.Int, error)

FlaggedAccounts is a free data retrieval call binding the contract method 0xa788d01f.

Solidity: function flaggedAccounts() view returns(uint256[] accountIds)

func (*PerpsMarketSession) GetAccountCollateralIds

func (_PerpsMarket *PerpsMarketSession) GetAccountCollateralIds(accountId *big.Int) ([]*big.Int, error)

GetAccountCollateralIds is a free data retrieval call binding the contract method 0x9734ba0f.

Solidity: function getAccountCollateralIds(uint128 accountId) view returns(uint256[])

func (*PerpsMarketSession) GetAccountLastInteraction

func (_PerpsMarket *PerpsMarketSession) GetAccountLastInteraction(accountId *big.Int) (*big.Int, error)

GetAccountLastInteraction is a free data retrieval call binding the contract method 0x1b5dccdb.

Solidity: function getAccountLastInteraction(uint128 accountId) view returns(uint256)

func (*PerpsMarketSession) GetAccountOpenPositions

func (_PerpsMarket *PerpsMarketSession) GetAccountOpenPositions(accountId *big.Int) ([]*big.Int, error)

GetAccountOpenPositions is a free data retrieval call binding the contract method 0x35254238.

Solidity: function getAccountOpenPositions(uint128 accountId) view returns(uint256[])

func (*PerpsMarketSession) GetAccountOwner

func (_PerpsMarket *PerpsMarketSession) GetAccountOwner(accountId *big.Int) (common.Address, error)

GetAccountOwner is a free data retrieval call binding the contract method 0xbf60c31d.

Solidity: function getAccountOwner(uint128 accountId) view returns(address)

func (*PerpsMarketSession) GetAccountPermissions

func (_PerpsMarket *PerpsMarketSession) GetAccountPermissions(accountId *big.Int) ([]IAccountModuleAccountPermissions, error)

GetAccountPermissions is a free data retrieval call binding the contract method 0xa796fecd.

Solidity: function getAccountPermissions(uint128 accountId) view returns((address,bytes32[])[] accountPerms)

func (*PerpsMarketSession) GetAccountTokenAddress

func (_PerpsMarket *PerpsMarketSession) GetAccountTokenAddress() (common.Address, error)

GetAccountTokenAddress is a free data retrieval call binding the contract method 0xa148bf10.

Solidity: function getAccountTokenAddress() view returns(address)

func (*PerpsMarketSession) GetAssociatedSystem

func (_PerpsMarket *PerpsMarketSession) GetAssociatedSystem(id [32]byte) (struct {
	Addr common.Address
	Kind [32]byte
}, error)

GetAssociatedSystem is a free data retrieval call binding the contract method 0x60988e09.

Solidity: function getAssociatedSystem(bytes32 id) view returns(address addr, bytes32 kind)

func (*PerpsMarketSession) GetAvailableMargin

func (_PerpsMarket *PerpsMarketSession) GetAvailableMargin(accountId *big.Int) (*big.Int, error)

GetAvailableMargin is a free data retrieval call binding the contract method 0x0a7dad2d.

Solidity: function getAvailableMargin(uint128 accountId) view returns(int256 availableMargin)

func (*PerpsMarketSession) GetCollateralAmount

func (_PerpsMarket *PerpsMarketSession) GetCollateralAmount(accountId *big.Int, synthMarketId *big.Int) (*big.Int, error)

GetCollateralAmount is a free data retrieval call binding the contract method 0x5dbd5c9b.

Solidity: function getCollateralAmount(uint128 accountId, uint128 synthMarketId) view returns(uint256)

func (*PerpsMarketSession) GetCollateralConfiguration

func (_PerpsMarket *PerpsMarketSession) GetCollateralConfiguration(synthMarketId *big.Int) (*big.Int, error)

GetCollateralConfiguration is a free data retrieval call binding the contract method 0xfd51558e.

Solidity: function getCollateralConfiguration(uint128 synthMarketId) view returns(uint256 maxCollateralAmount)

func (*PerpsMarketSession) GetDeniers

func (_PerpsMarket *PerpsMarketSession) GetDeniers(feature [32]byte) ([]common.Address, error)

GetDeniers is a free data retrieval call binding the contract method 0xed429cf7.

Solidity: function getDeniers(bytes32 feature) view returns(address[])

func (*PerpsMarketSession) GetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagAllowAll(feature [32]byte) (bool, error)

GetFeatureFlagAllowAll is a free data retrieval call binding the contract method 0x40a399ef.

Solidity: function getFeatureFlagAllowAll(bytes32 feature) view returns(bool)

func (*PerpsMarketSession) GetFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagAllowlist(feature [32]byte) ([]common.Address, error)

GetFeatureFlagAllowlist is a free data retrieval call binding the contract method 0xe12c8160.

Solidity: function getFeatureFlagAllowlist(bytes32 feature) view returns(address[])

func (*PerpsMarketSession) GetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketSession) GetFeatureFlagDenyAll(feature [32]byte) (bool, error)

GetFeatureFlagDenyAll is a free data retrieval call binding the contract method 0xbcae3ea0.

Solidity: function getFeatureFlagDenyAll(bytes32 feature) view returns(bool)

func (*PerpsMarketSession) GetFeeCollector

func (_PerpsMarket *PerpsMarketSession) GetFeeCollector() (common.Address, error)

GetFeeCollector is a free data retrieval call binding the contract method 0x12fde4b7.

Solidity: function getFeeCollector() view returns(address feeCollector)

func (*PerpsMarketSession) GetFundingParameters

func (_PerpsMarket *PerpsMarketSession) GetFundingParameters(marketId *big.Int) (struct {
	SkewScale          *big.Int
	MaxFundingVelocity *big.Int
}, error)

GetFundingParameters is a free data retrieval call binding the contract method 0x1b68d8fa.

Solidity: function getFundingParameters(uint128 marketId) view returns(uint256 skewScale, uint256 maxFundingVelocity)

func (*PerpsMarketSession) GetImplementation

func (_PerpsMarket *PerpsMarketSession) GetImplementation() (common.Address, error)

GetImplementation is a free data retrieval call binding the contract method 0xaaf10f42.

Solidity: function getImplementation() view returns(address)

func (*PerpsMarketSession) GetKeeperCostNodeId

func (_PerpsMarket *PerpsMarketSession) GetKeeperCostNodeId() ([32]byte, error)

GetKeeperCostNodeId is a free data retrieval call binding the contract method 0x1f4653bb.

Solidity: function getKeeperCostNodeId() view returns(bytes32 keeperCostNodeId)

func (*PerpsMarketSession) GetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketSession) GetKeeperRewardGuards() (struct {
	MinKeeperRewardUsd       *big.Int
	MinKeeperProfitRatioD18  *big.Int
	MaxKeeperRewardUsd       *big.Int
	MaxKeeperScalingRatioD18 *big.Int
}, error)

GetKeeperRewardGuards is a free data retrieval call binding the contract method 0x26e77e84.

Solidity: function getKeeperRewardGuards() view returns(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18)

func (*PerpsMarketSession) GetLiquidationParameters

func (_PerpsMarket *PerpsMarketSession) GetLiquidationParameters(marketId *big.Int) (struct {
	InitialMarginRatioD18        *big.Int
	MinimumInitialMarginRatioD18 *big.Int
	MaintenanceMarginScalarD18   *big.Int
	FlagRewardRatioD18           *big.Int
	MinimumPositionMargin        *big.Int
}, error)

GetLiquidationParameters is a free data retrieval call binding the contract method 0xf94363a6.

Solidity: function getLiquidationParameters(uint128 marketId) view returns(uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin)

func (*PerpsMarketSession) GetLockedOiRatio

func (_PerpsMarket *PerpsMarketSession) GetLockedOiRatio(marketId *big.Int) (*big.Int, error)

GetLockedOiRatio is a free data retrieval call binding the contract method 0x31edc046.

Solidity: function getLockedOiRatio(uint128 marketId) view returns(uint256)

func (*PerpsMarketSession) GetMarketSummary

func (_PerpsMarket *PerpsMarketSession) GetMarketSummary(marketId *big.Int) (IPerpsMarketModuleMarketSummary, error)

GetMarketSummary is a free data retrieval call binding the contract method 0x41c2e8bd.

Solidity: function getMarketSummary(uint128 marketId) view returns((int256,uint256,uint256,int256,int256,uint256) summary)

func (*PerpsMarketSession) GetMarkets

func (_PerpsMarket *PerpsMarketSession) GetMarkets() ([]*big.Int, error)

GetMarkets is a free data retrieval call binding the contract method 0xec2c9016.

Solidity: function getMarkets() view returns(uint256[] marketIds)

func (*PerpsMarketSession) GetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketSession) GetMaxLiquidationParameters(marketId *big.Int) (struct {
	MaxLiquidationLimitAccumulationMultiplier *big.Int
	MaxSecondsInLiquidationWindow             *big.Int
	MaxLiquidationPd                          *big.Int
	EndorsedLiquidator                        common.Address
}, error)

GetMaxLiquidationParameters is a free data retrieval call binding the contract method 0x5443e33e.

Solidity: function getMaxLiquidationParameters(uint128 marketId) view returns(uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator)

func (*PerpsMarketSession) GetMaxMarketSize

func (_PerpsMarket *PerpsMarketSession) GetMaxMarketSize(marketId *big.Int) (*big.Int, error)

GetMaxMarketSize is a free data retrieval call binding the contract method 0x19a99bf5.

Solidity: function getMaxMarketSize(uint128 marketId) view returns(uint256 maxMarketSize)

func (*PerpsMarketSession) GetOpenPosition

func (_PerpsMarket *PerpsMarketSession) GetOpenPosition(accountId *big.Int, marketId *big.Int) (struct {
	TotalPnl       *big.Int
	AccruedFunding *big.Int
	PositionSize   *big.Int
}, error)

GetOpenPosition is a free data retrieval call binding the contract method 0x22a73967.

Solidity: function getOpenPosition(uint128 accountId, uint128 marketId) view returns(int256 totalPnl, int256 accruedFunding, int128 positionSize)

func (*PerpsMarketSession) GetOrder

func (_PerpsMarket *PerpsMarketSession) GetOrder(accountId *big.Int) (AsyncOrderData, error)

GetOrder is a free data retrieval call binding the contract method 0x117d4128.

Solidity: function getOrder(uint128 accountId) view returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) order)

func (*PerpsMarketSession) GetOrderFees

func (_PerpsMarket *PerpsMarketSession) GetOrderFees(marketId *big.Int) (struct {
	MakerFee *big.Int
	TakerFee *big.Int
}, error)

GetOrderFees is a free data retrieval call binding the contract method 0xaac23e8c.

Solidity: function getOrderFees(uint128 marketId) view returns(uint256 makerFee, uint256 takerFee)

func (*PerpsMarketSession) GetPerAccountCaps

func (_PerpsMarket *PerpsMarketSession) GetPerAccountCaps() (struct {
	MaxPositionsPerAccount   *big.Int
	MaxCollateralsPerAccount *big.Int
}, error)

GetPerAccountCaps is a free data retrieval call binding the contract method 0x774f7b07.

Solidity: function getPerAccountCaps() view returns(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount)

func (*PerpsMarketSession) GetPriceData

func (_PerpsMarket *PerpsMarketSession) GetPriceData(perpsMarketId *big.Int) (struct {
	FeedId                   [32]byte
	StrictStalenessTolerance *big.Int
}, error)

GetPriceData is a free data retrieval call binding the contract method 0x462b9a2d.

Solidity: function getPriceData(uint128 perpsMarketId) view returns(bytes32 feedId, uint256 strictStalenessTolerance)

func (*PerpsMarketSession) GetReferrerShare

func (_PerpsMarket *PerpsMarketSession) GetReferrerShare(referrer common.Address) (*big.Int, error)

GetReferrerShare is a free data retrieval call binding the contract method 0xcae77b70.

Solidity: function getReferrerShare(address referrer) view returns(uint256 shareRatioD18)

func (*PerpsMarketSession) GetRequiredMargins

func (_PerpsMarket *PerpsMarketSession) GetRequiredMargins(accountId *big.Int) (struct {
	RequiredInitialMargin     *big.Int
	RequiredMaintenanceMargin *big.Int
	MaxLiquidationReward      *big.Int
}, error)

GetRequiredMargins is a free data retrieval call binding the contract method 0x3c0f0753.

Solidity: function getRequiredMargins(uint128 accountId) view returns(uint256 requiredInitialMargin, uint256 requiredMaintenanceMargin, uint256 maxLiquidationReward)

func (*PerpsMarketSession) GetSettlementStrategy

func (_PerpsMarket *PerpsMarketSession) GetSettlementStrategy(marketId *big.Int, strategyId *big.Int) (SettlementStrategyData, error)

GetSettlementStrategy is a free data retrieval call binding the contract method 0xf74c377f.

Solidity: function getSettlementStrategy(uint128 marketId, uint256 strategyId) view returns((uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) settlementStrategy)

func (*PerpsMarketSession) GetSupportedCollaterals

func (_PerpsMarket *PerpsMarketSession) GetSupportedCollaterals() ([]*big.Int, error)

GetSupportedCollaterals is a free data retrieval call binding the contract method 0x05db8a69.

Solidity: function getSupportedCollaterals() view returns(uint256[] supportedCollaterals)

func (*PerpsMarketSession) GetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketSession) GetSynthDeductionPriority() ([]*big.Int, error)

GetSynthDeductionPriority is a free data retrieval call binding the contract method 0xfea84a3f.

Solidity: function getSynthDeductionPriority() view returns(uint128[])

func (*PerpsMarketSession) GetWithdrawableMargin

func (_PerpsMarket *PerpsMarketSession) GetWithdrawableMargin(accountId *big.Int) (*big.Int, error)

GetWithdrawableMargin is a free data retrieval call binding the contract method 0x04aa363e.

Solidity: function getWithdrawableMargin(uint128 accountId) view returns(int256 withdrawableMargin)

func (*PerpsMarketSession) GrantPermission

func (_PerpsMarket *PerpsMarketSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3.

Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketSession) HasPermission

func (_PerpsMarket *PerpsMarketSession) HasPermission(accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

HasPermission is a free data retrieval call binding the contract method 0x8d34166b.

Solidity: function hasPermission(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketSession) IndexPrice

func (_PerpsMarket *PerpsMarketSession) IndexPrice(marketId *big.Int) (*big.Int, error)

IndexPrice is a free data retrieval call binding the contract method 0x4f778fb4.

Solidity: function indexPrice(uint128 marketId) view returns(uint256)

func (*PerpsMarketSession) InitOrUpgradeNft

func (_PerpsMarket *PerpsMarketSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error)

InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9.

Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns()

func (*PerpsMarketSession) InitOrUpgradeToken

func (_PerpsMarket *PerpsMarketSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error)

InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537.

Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns()

func (*PerpsMarketSession) InitializeFactory

func (_PerpsMarket *PerpsMarketSession) InitializeFactory(synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error)

InitializeFactory is a paid mutator transaction binding the contract method 0x09feb470.

Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)

func (*PerpsMarketSession) IsAuthorized

func (_PerpsMarket *PerpsMarketSession) IsAuthorized(accountId *big.Int, permission [32]byte, user common.Address) (bool, error)

IsAuthorized is a free data retrieval call binding the contract method 0x1213d453.

Solidity: function isAuthorized(uint128 accountId, bytes32 permission, address user) view returns(bool)

func (*PerpsMarketSession) IsFeatureAllowed

func (_PerpsMarket *PerpsMarketSession) IsFeatureAllowed(feature [32]byte, account common.Address) (bool, error)

IsFeatureAllowed is a free data retrieval call binding the contract method 0xcf635949.

Solidity: function isFeatureAllowed(bytes32 feature, address account) view returns(bool)

func (*PerpsMarketSession) Liquidate

func (_PerpsMarket *PerpsMarketSession) Liquidate(accountId *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0x048577de.

Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward)

func (*PerpsMarketSession) LiquidateFlagged

func (_PerpsMarket *PerpsMarketSession) LiquidateFlagged(maxNumberOfAccounts *big.Int) (*types.Transaction, error)

LiquidateFlagged is a paid mutator transaction binding the contract method 0xac53c5ae.

Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)

func (*PerpsMarketSession) LiquidateFlaggedAccounts

func (_PerpsMarket *PerpsMarketSession) LiquidateFlaggedAccounts(accountIds []*big.Int) (*types.Transaction, error)

LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.

Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)

func (*PerpsMarketSession) LiquidationCapacity

func (_PerpsMarket *PerpsMarketSession) LiquidationCapacity(marketId *big.Int) (struct {
	Capacity                   *big.Int
	MaxLiquidationInWindow     *big.Int
	LatestLiquidationTimestamp *big.Int
}, error)

LiquidationCapacity is a free data retrieval call binding the contract method 0xbb36f896.

Solidity: function liquidationCapacity(uint128 marketId) view returns(uint256 capacity, uint256 maxLiquidationInWindow, uint256 latestLiquidationTimestamp)

func (*PerpsMarketSession) MaxOpenInterest

func (_PerpsMarket *PerpsMarketSession) MaxOpenInterest(marketId *big.Int) (*big.Int, error)

MaxOpenInterest is a free data retrieval call binding the contract method 0x0e7cace9.

Solidity: function maxOpenInterest(uint128 marketId) view returns(uint256)

func (*PerpsMarketSession) Metadata

func (_PerpsMarket *PerpsMarketSession) Metadata(marketId *big.Int) (struct {
	Name   string
	Symbol string
}, error)

Metadata is a free data retrieval call binding the contract method 0xe3bc36bf.

Solidity: function metadata(uint128 marketId) view returns(string name, string symbol)

func (*PerpsMarketSession) MinimumCredit

func (_PerpsMarket *PerpsMarketSession) MinimumCredit(perpsMarketId *big.Int) (*big.Int, error)

MinimumCredit is a free data retrieval call binding the contract method 0xafe79200.

Solidity: function minimumCredit(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketSession) ModifyCollateral

func (_PerpsMarket *PerpsMarketSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error)

ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c.

Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns()

func (*PerpsMarketSession) Name

func (_PerpsMarket *PerpsMarketSession) Name(perpsMarketId *big.Int) (string, error)

Name is a free data retrieval call binding the contract method 0xc624440a.

Solidity: function name(uint128 perpsMarketId) view returns(string)

func (*PerpsMarketSession) NominateNewOwner

func (_PerpsMarket *PerpsMarketSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address newNominatedOwner) returns()

func (*PerpsMarketSession) NominatedOwner

func (_PerpsMarket *PerpsMarketSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*PerpsMarketSession) NotifyAccountTransfer

func (_PerpsMarket *PerpsMarketSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error)

NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55.

Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns()

func (*PerpsMarketSession) Owner

func (_PerpsMarket *PerpsMarketSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*PerpsMarketSession) RegisterUnmanagedSystem

func (_PerpsMarket *PerpsMarketSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error)

RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983.

Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns()

func (*PerpsMarketSession) RemoveFromFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error)

RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59.

Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketSession) RenounceNomination

func (_PerpsMarket *PerpsMarketSession) RenounceNomination() (*types.Transaction, error)

RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928.

Solidity: function renounceNomination() returns()

func (*PerpsMarketSession) RenouncePermission

func (_PerpsMarket *PerpsMarketSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error)

RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561.

Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns()

func (*PerpsMarketSession) ReportedDebt

func (_PerpsMarket *PerpsMarketSession) ReportedDebt(perpsMarketId *big.Int) (*big.Int, error)

ReportedDebt is a free data retrieval call binding the contract method 0xbcec0d0f.

Solidity: function reportedDebt(uint128 perpsMarketId) view returns(uint256)

func (*PerpsMarketSession) RequiredMarginForOrder

func (_PerpsMarket *PerpsMarketSession) RequiredMarginForOrder(accountId *big.Int, marketId *big.Int, sizeDelta *big.Int) (*big.Int, error)

RequiredMarginForOrder is a free data retrieval call binding the contract method 0xb8830a25.

Solidity: function requiredMarginForOrder(uint128 accountId, uint128 marketId, int128 sizeDelta) view returns(uint256 requiredMargin)

func (*PerpsMarketSession) RevokePermission

func (_PerpsMarket *PerpsMarketSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

RevokePermission is a paid mutator transaction binding the contract method 0xa7627288.

Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketSession) SetCollateralConfiguration

func (_PerpsMarket *PerpsMarketSession) SetCollateralConfiguration(synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error)

SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.

Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()

func (*PerpsMarketSession) SetDeniers

func (_PerpsMarket *PerpsMarketSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error)

SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2.

Solidity: function setDeniers(bytes32 feature, address[] deniers) returns()

func (*PerpsMarketSession) SetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error)

SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2.

Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns()

func (*PerpsMarketSession) SetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error)

SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e.

Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns()

func (*PerpsMarketSession) SetFeeCollector

func (_PerpsMarket *PerpsMarketSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error)

SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.

Solidity: function setFeeCollector(address feeCollector) returns()

func (*PerpsMarketSession) SetFundingParameters

func (_PerpsMarket *PerpsMarketSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error)

SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277.

Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns()

func (*PerpsMarketSession) SetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketSession) SetKeeperRewardGuards(minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error)

SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.

Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()

func (*PerpsMarketSession) SetLiquidationParameters

func (_PerpsMarket *PerpsMarketSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error)

SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.

Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()

func (*PerpsMarketSession) SetLockedOiRatio

func (_PerpsMarket *PerpsMarketSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error)

SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9.

Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns()

func (*PerpsMarketSession) SetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error)

SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f.

Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns()

func (*PerpsMarketSession) SetMaxMarketSize

func (_PerpsMarket *PerpsMarketSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error)

SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa.

Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns()

func (*PerpsMarketSession) SetOrderFees

func (_PerpsMarket *PerpsMarketSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error)

SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86.

Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns()

func (*PerpsMarketSession) SetPerAccountCaps

func (_PerpsMarket *PerpsMarketSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error)

SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7.

Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns()

func (*PerpsMarketSession) SetPerpsMarketName

func (_PerpsMarket *PerpsMarketSession) SetPerpsMarketName(marketName string) (*types.Transaction, error)

SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.

Solidity: function setPerpsMarketName(string marketName) returns()

func (*PerpsMarketSession) SetSettlementStrategy

func (_PerpsMarket *PerpsMarketSession) SetSettlementStrategy(marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

SetSettlementStrategy is a paid mutator transaction binding the contract method 0x26641806.

Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns()

func (*PerpsMarketSession) SetSettlementStrategyEnabled

func (_PerpsMarket *PerpsMarketSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error)

SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891.

Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns()

func (*PerpsMarketSession) SetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error)

SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7.

Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns()

func (*PerpsMarketSession) SettleOrder

func (_PerpsMarket *PerpsMarketSession) SettleOrder(accountId *big.Int) (*types.Transaction, error)

SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.

Solidity: function settleOrder(uint128 accountId) returns()

func (*PerpsMarketSession) SimulateUpgradeTo

func (_PerpsMarket *PerpsMarketSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error)

SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda.

Solidity: function simulateUpgradeTo(address newImplementation) returns()

func (*PerpsMarketSession) Size

func (_PerpsMarket *PerpsMarketSession) Size(marketId *big.Int) (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x2b267635.

Solidity: function size(uint128 marketId) view returns(uint256)

func (*PerpsMarketSession) Skew

func (_PerpsMarket *PerpsMarketSession) Skew(marketId *big.Int) (*big.Int, error)

Skew is a free data retrieval call binding the contract method 0x83a7db27.

Solidity: function skew(uint128 marketId) view returns(int256)

func (*PerpsMarketSession) SupportsInterface

func (_PerpsMarket *PerpsMarketSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PerpsMarketSession) TotalAccountOpenInterest

func (_PerpsMarket *PerpsMarketSession) TotalAccountOpenInterest(accountId *big.Int) (*big.Int, error)

TotalAccountOpenInterest is a free data retrieval call binding the contract method 0x2daf43bc.

Solidity: function totalAccountOpenInterest(uint128 accountId) view returns(uint256)

func (*PerpsMarketSession) TotalCollateralValue

func (_PerpsMarket *PerpsMarketSession) TotalCollateralValue(accountId *big.Int) (*big.Int, error)

TotalCollateralValue is a free data retrieval call binding the contract method 0xb568ae42.

Solidity: function totalCollateralValue(uint128 accountId) view returns(uint256)

func (*PerpsMarketSession) TotalGlobalCollateralValue

func (_PerpsMarket *PerpsMarketSession) TotalGlobalCollateralValue() (*big.Int, error)

TotalGlobalCollateralValue is a free data retrieval call binding the contract method 0x65c5a0fe.

Solidity: function totalGlobalCollateralValue() view returns(uint256 totalCollateralValue)

func (*PerpsMarketSession) UpdateKeeperCostNodeId

func (_PerpsMarket *PerpsMarketSession) UpdateKeeperCostNodeId(keeperCostNodeId [32]byte) (*types.Transaction, error)

UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.

Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()

func (*PerpsMarketSession) UpdatePriceData

func (_PerpsMarket *PerpsMarketSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error)

UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.

Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()

func (*PerpsMarketSession) UpdateReferrerShare

func (_PerpsMarket *PerpsMarketSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error)

UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d.

Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns()

func (*PerpsMarketSession) UpgradeTo

func (_PerpsMarket *PerpsMarketSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

type PerpsMarketSettlementStrategyAdded

type PerpsMarketSettlementStrategyAdded struct {
	MarketId   *big.Int
	Strategy   SettlementStrategyData
	StrategyId *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

PerpsMarketSettlementStrategyAdded represents a SettlementStrategyAdded event raised by the PerpsMarket contract.

type PerpsMarketSettlementStrategyAddedIterator

type PerpsMarketSettlementStrategyAddedIterator struct {
	Event *PerpsMarketSettlementStrategyAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketSettlementStrategyAddedIterator is returned from FilterSettlementStrategyAdded and is used to iterate over the raw logs and unpacked data for SettlementStrategyAdded events raised by the PerpsMarket contract.

func (*PerpsMarketSettlementStrategyAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketSettlementStrategyAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketSettlementStrategyAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketSettlementStrategySet

type PerpsMarketSettlementStrategySet struct {
	MarketId   *big.Int
	StrategyId *big.Int
	Strategy   SettlementStrategyData
	Raw        types.Log // Blockchain specific contextual infos
}

PerpsMarketSettlementStrategySet represents a SettlementStrategySet event raised by the PerpsMarket contract.

type PerpsMarketSettlementStrategySetIterator

type PerpsMarketSettlementStrategySetIterator struct {
	Event *PerpsMarketSettlementStrategySet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketSettlementStrategySetIterator is returned from FilterSettlementStrategySet and is used to iterate over the raw logs and unpacked data for SettlementStrategySet events raised by the PerpsMarket contract.

func (*PerpsMarketSettlementStrategySetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketSettlementStrategySetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketSettlementStrategySetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketSynthDeductionPrioritySet

type PerpsMarketSynthDeductionPrioritySet struct {
	NewSynthDeductionPriority []*big.Int
	Raw                       types.Log // Blockchain specific contextual infos
}

PerpsMarketSynthDeductionPrioritySet represents a SynthDeductionPrioritySet event raised by the PerpsMarket contract.

type PerpsMarketSynthDeductionPrioritySetIterator

type PerpsMarketSynthDeductionPrioritySetIterator struct {
	Event *PerpsMarketSynthDeductionPrioritySet // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketSynthDeductionPrioritySetIterator is returned from FilterSynthDeductionPrioritySet and is used to iterate over the raw logs and unpacked data for SynthDeductionPrioritySet events raised by the PerpsMarket contract.

func (*PerpsMarketSynthDeductionPrioritySetIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketSynthDeductionPrioritySetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketSynthDeductionPrioritySetIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type PerpsMarketTransactor

type PerpsMarketTransactor struct {
	// contains filtered or unexported fields
}

PerpsMarketTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewPerpsMarketTransactor

func NewPerpsMarketTransactor(address common.Address, transactor bind.ContractTransactor) (*PerpsMarketTransactor, error)

NewPerpsMarketTransactor creates a new write-only instance of PerpsMarket, bound to a specific deployed contract.

func (*PerpsMarketTransactor) AcceptOwnership

func (_PerpsMarket *PerpsMarketTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PerpsMarketTransactor) AddSettlementStrategy

func (_PerpsMarket *PerpsMarketTransactor) AddSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

AddSettlementStrategy is a paid mutator transaction binding the contract method 0x74d745fc.

Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns(uint256 strategyId)

func (*PerpsMarketTransactor) AddToFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketTransactor) AddToFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error)

AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144.

Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketTransactor) CancelOrder

func (_PerpsMarket *PerpsMarketTransactor) CancelOrder(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.

Solidity: function cancelOrder(uint128 accountId) returns()

func (*PerpsMarketTransactor) CommitOrder

func (_PerpsMarket *PerpsMarketTransactor) CommitOrder(opts *bind.TransactOpts, commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error)

CommitOrder is a paid mutator transaction binding the contract method 0x9f978860.

Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees)

func (*PerpsMarketTransactor) CreateAccount

func (_PerpsMarket *PerpsMarketTransactor) CreateAccount(opts *bind.TransactOpts) (*types.Transaction, error)

CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f.

Solidity: function createAccount() returns(uint128 accountId)

func (*PerpsMarketTransactor) CreateAccount0

func (_PerpsMarket *PerpsMarketTransactor) CreateAccount0(opts *bind.TransactOpts, requestedAccountId *big.Int) (*types.Transaction, error)

CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5.

Solidity: function createAccount(uint128 requestedAccountId) returns()

func (*PerpsMarketTransactor) CreateMarket

func (_PerpsMarket *PerpsMarketTransactor) CreateMarket(opts *bind.TransactOpts, requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error)

CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4.

Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128)

func (*PerpsMarketTransactor) GrantPermission

func (_PerpsMarket *PerpsMarketTransactor) GrantPermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3.

Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketTransactor) InitOrUpgradeNft

func (_PerpsMarket *PerpsMarketTransactor) InitOrUpgradeNft(opts *bind.TransactOpts, id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error)

InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9.

Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns()

func (*PerpsMarketTransactor) InitOrUpgradeToken

func (_PerpsMarket *PerpsMarketTransactor) InitOrUpgradeToken(opts *bind.TransactOpts, id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error)

InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537.

Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns()

func (*PerpsMarketTransactor) InitializeFactory

func (_PerpsMarket *PerpsMarketTransactor) InitializeFactory(opts *bind.TransactOpts, synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error)

InitializeFactory is a paid mutator transaction binding the contract method 0x09feb470.

Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)

func (*PerpsMarketTransactor) Liquidate

func (_PerpsMarket *PerpsMarketTransactor) Liquidate(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0x048577de.

Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward)

func (*PerpsMarketTransactor) LiquidateFlagged

func (_PerpsMarket *PerpsMarketTransactor) LiquidateFlagged(opts *bind.TransactOpts, maxNumberOfAccounts *big.Int) (*types.Transaction, error)

LiquidateFlagged is a paid mutator transaction binding the contract method 0xac53c5ae.

Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)

func (*PerpsMarketTransactor) LiquidateFlaggedAccounts

func (_PerpsMarket *PerpsMarketTransactor) LiquidateFlaggedAccounts(opts *bind.TransactOpts, accountIds []*big.Int) (*types.Transaction, error)

LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.

Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)

func (*PerpsMarketTransactor) ModifyCollateral

func (_PerpsMarket *PerpsMarketTransactor) ModifyCollateral(opts *bind.TransactOpts, accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error)

ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c.

Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns()

func (*PerpsMarketTransactor) NominateNewOwner

func (_PerpsMarket *PerpsMarketTransactor) NominateNewOwner(opts *bind.TransactOpts, newNominatedOwner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address newNominatedOwner) returns()

func (*PerpsMarketTransactor) NotifyAccountTransfer

func (_PerpsMarket *PerpsMarketTransactor) NotifyAccountTransfer(opts *bind.TransactOpts, to common.Address, accountId *big.Int) (*types.Transaction, error)

NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55.

Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns()

func (*PerpsMarketTransactor) RegisterUnmanagedSystem

func (_PerpsMarket *PerpsMarketTransactor) RegisterUnmanagedSystem(opts *bind.TransactOpts, id [32]byte, endpoint common.Address) (*types.Transaction, error)

RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983.

Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns()

func (*PerpsMarketTransactor) RemoveFromFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketTransactor) RemoveFromFeatureFlagAllowlist(opts *bind.TransactOpts, feature [32]byte, account common.Address) (*types.Transaction, error)

RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59.

Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketTransactor) RenounceNomination

func (_PerpsMarket *PerpsMarketTransactor) RenounceNomination(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928.

Solidity: function renounceNomination() returns()

func (*PerpsMarketTransactor) RenouncePermission

func (_PerpsMarket *PerpsMarketTransactor) RenouncePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte) (*types.Transaction, error)

RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561.

Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns()

func (*PerpsMarketTransactor) RevokePermission

func (_PerpsMarket *PerpsMarketTransactor) RevokePermission(opts *bind.TransactOpts, accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

RevokePermission is a paid mutator transaction binding the contract method 0xa7627288.

Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketTransactor) SetCollateralConfiguration

func (_PerpsMarket *PerpsMarketTransactor) SetCollateralConfiguration(opts *bind.TransactOpts, synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error)

SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.

Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()

func (*PerpsMarketTransactor) SetDeniers

func (_PerpsMarket *PerpsMarketTransactor) SetDeniers(opts *bind.TransactOpts, feature [32]byte, deniers []common.Address) (*types.Transaction, error)

SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2.

Solidity: function setDeniers(bytes32 feature, address[] deniers) returns()

func (*PerpsMarketTransactor) SetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketTransactor) SetFeatureFlagAllowAll(opts *bind.TransactOpts, feature [32]byte, allowAll bool) (*types.Transaction, error)

SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2.

Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns()

func (*PerpsMarketTransactor) SetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketTransactor) SetFeatureFlagDenyAll(opts *bind.TransactOpts, feature [32]byte, denyAll bool) (*types.Transaction, error)

SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e.

Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns()

func (*PerpsMarketTransactor) SetFeeCollector

func (_PerpsMarket *PerpsMarketTransactor) SetFeeCollector(opts *bind.TransactOpts, feeCollector common.Address) (*types.Transaction, error)

SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.

Solidity: function setFeeCollector(address feeCollector) returns()

func (*PerpsMarketTransactor) SetFundingParameters

func (_PerpsMarket *PerpsMarketTransactor) SetFundingParameters(opts *bind.TransactOpts, marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error)

SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277.

Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns()

func (*PerpsMarketTransactor) SetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketTransactor) SetKeeperRewardGuards(opts *bind.TransactOpts, minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error)

SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.

Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()

func (*PerpsMarketTransactor) SetLiquidationParameters

func (_PerpsMarket *PerpsMarketTransactor) SetLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error)

SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.

Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()

func (*PerpsMarketTransactor) SetLockedOiRatio

func (_PerpsMarket *PerpsMarketTransactor) SetLockedOiRatio(opts *bind.TransactOpts, marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error)

SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9.

Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns()

func (*PerpsMarketTransactor) SetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketTransactor) SetMaxLiquidationParameters(opts *bind.TransactOpts, marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error)

SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f.

Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns()

func (*PerpsMarketTransactor) SetMaxMarketSize

func (_PerpsMarket *PerpsMarketTransactor) SetMaxMarketSize(opts *bind.TransactOpts, marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error)

SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa.

Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns()

func (*PerpsMarketTransactor) SetOrderFees

func (_PerpsMarket *PerpsMarketTransactor) SetOrderFees(opts *bind.TransactOpts, marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error)

SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86.

Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns()

func (*PerpsMarketTransactor) SetPerAccountCaps

func (_PerpsMarket *PerpsMarketTransactor) SetPerAccountCaps(opts *bind.TransactOpts, maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error)

SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7.

Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns()

func (*PerpsMarketTransactor) SetPerpsMarketName

func (_PerpsMarket *PerpsMarketTransactor) SetPerpsMarketName(opts *bind.TransactOpts, marketName string) (*types.Transaction, error)

SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.

Solidity: function setPerpsMarketName(string marketName) returns()

func (*PerpsMarketTransactor) SetSettlementStrategy

func (_PerpsMarket *PerpsMarketTransactor) SetSettlementStrategy(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

SetSettlementStrategy is a paid mutator transaction binding the contract method 0x26641806.

Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns()

func (*PerpsMarketTransactor) SetSettlementStrategyEnabled

func (_PerpsMarket *PerpsMarketTransactor) SetSettlementStrategyEnabled(opts *bind.TransactOpts, marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error)

SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891.

Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns()

func (*PerpsMarketTransactor) SetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketTransactor) SetSynthDeductionPriority(opts *bind.TransactOpts, newSynthDeductionPriority []*big.Int) (*types.Transaction, error)

SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7.

Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns()

func (*PerpsMarketTransactor) SettleOrder

func (_PerpsMarket *PerpsMarketTransactor) SettleOrder(opts *bind.TransactOpts, accountId *big.Int) (*types.Transaction, error)

SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.

Solidity: function settleOrder(uint128 accountId) returns()

func (*PerpsMarketTransactor) SimulateUpgradeTo

func (_PerpsMarket *PerpsMarketTransactor) SimulateUpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda.

Solidity: function simulateUpgradeTo(address newImplementation) returns()

func (*PerpsMarketTransactor) UpdateKeeperCostNodeId

func (_PerpsMarket *PerpsMarketTransactor) UpdateKeeperCostNodeId(opts *bind.TransactOpts, keeperCostNodeId [32]byte) (*types.Transaction, error)

UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.

Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()

func (*PerpsMarketTransactor) UpdatePriceData

func (_PerpsMarket *PerpsMarketTransactor) UpdatePriceData(opts *bind.TransactOpts, perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error)

UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.

Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()

func (*PerpsMarketTransactor) UpdateReferrerShare

func (_PerpsMarket *PerpsMarketTransactor) UpdateReferrerShare(opts *bind.TransactOpts, referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error)

UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d.

Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns()

func (*PerpsMarketTransactor) UpgradeTo

func (_PerpsMarket *PerpsMarketTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

type PerpsMarketTransactorRaw

type PerpsMarketTransactorRaw struct {
	Contract *PerpsMarketTransactor // Generic write-only contract binding to access the raw methods on
}

PerpsMarketTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*PerpsMarketTransactorRaw) Transact

func (_PerpsMarket *PerpsMarketTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*PerpsMarketTransactorRaw) Transfer

func (_PerpsMarket *PerpsMarketTransactorRaw) 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 PerpsMarketTransactorSession

type PerpsMarketTransactorSession struct {
	Contract     *PerpsMarketTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
}

PerpsMarketTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*PerpsMarketTransactorSession) AcceptOwnership

func (_PerpsMarket *PerpsMarketTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*PerpsMarketTransactorSession) AddSettlementStrategy

func (_PerpsMarket *PerpsMarketTransactorSession) AddSettlementStrategy(marketId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

AddSettlementStrategy is a paid mutator transaction binding the contract method 0x74d745fc.

Solidity: function addSettlementStrategy(uint128 marketId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns(uint256 strategyId)

func (*PerpsMarketTransactorSession) AddToFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketTransactorSession) AddToFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error)

AddToFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xa0778144.

Solidity: function addToFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketTransactorSession) CancelOrder

func (_PerpsMarket *PerpsMarketTransactorSession) CancelOrder(accountId *big.Int) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xdbc91396.

Solidity: function cancelOrder(uint128 accountId) returns()

func (*PerpsMarketTransactorSession) CommitOrder

func (_PerpsMarket *PerpsMarketTransactorSession) CommitOrder(commitment AsyncOrderOrderCommitmentRequest) (*types.Transaction, error)

CommitOrder is a paid mutator transaction binding the contract method 0x9f978860.

Solidity: function commitOrder((uint128,uint128,int128,uint128,uint256,bytes32,address) commitment) returns((uint256,(uint128,uint128,int128,uint128,uint256,bytes32,address)) retOrder, uint256 fees)

func (*PerpsMarketTransactorSession) CreateAccount

func (_PerpsMarket *PerpsMarketTransactorSession) CreateAccount() (*types.Transaction, error)

CreateAccount is a paid mutator transaction binding the contract method 0x9dca362f.

Solidity: function createAccount() returns(uint128 accountId)

func (*PerpsMarketTransactorSession) CreateAccount0

func (_PerpsMarket *PerpsMarketTransactorSession) CreateAccount0(requestedAccountId *big.Int) (*types.Transaction, error)

CreateAccount0 is a paid mutator transaction binding the contract method 0xcadb09a5.

Solidity: function createAccount(uint128 requestedAccountId) returns()

func (*PerpsMarketTransactorSession) CreateMarket

func (_PerpsMarket *PerpsMarketTransactorSession) CreateMarket(requestedMarketId *big.Int, marketName string, marketSymbol string) (*types.Transaction, error)

CreateMarket is a paid mutator transaction binding the contract method 0x7e947ea4.

Solidity: function createMarket(uint128 requestedMarketId, string marketName, string marketSymbol) returns(uint128)

func (*PerpsMarketTransactorSession) GrantPermission

func (_PerpsMarket *PerpsMarketTransactorSession) GrantPermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

GrantPermission is a paid mutator transaction binding the contract method 0x00cd9ef3.

Solidity: function grantPermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketTransactorSession) InitOrUpgradeNft

func (_PerpsMarket *PerpsMarketTransactorSession) InitOrUpgradeNft(id [32]byte, name string, symbol string, uri string, impl common.Address) (*types.Transaction, error)

InitOrUpgradeNft is a paid mutator transaction binding the contract method 0x2d22bef9.

Solidity: function initOrUpgradeNft(bytes32 id, string name, string symbol, string uri, address impl) returns()

func (*PerpsMarketTransactorSession) InitOrUpgradeToken

func (_PerpsMarket *PerpsMarketTransactorSession) InitOrUpgradeToken(id [32]byte, name string, symbol string, decimals uint8, impl common.Address) (*types.Transaction, error)

InitOrUpgradeToken is a paid mutator transaction binding the contract method 0xc6f79537.

Solidity: function initOrUpgradeToken(bytes32 id, string name, string symbol, uint8 decimals, address impl) returns()

func (*PerpsMarketTransactorSession) InitializeFactory

func (_PerpsMarket *PerpsMarketTransactorSession) InitializeFactory(synthetix common.Address, spotMarket common.Address, marketName string) (*types.Transaction, error)

InitializeFactory is a paid mutator transaction binding the contract method 0x09feb470.

Solidity: function initializeFactory(address synthetix, address spotMarket, string marketName) returns(uint128)

func (*PerpsMarketTransactorSession) Liquidate

func (_PerpsMarket *PerpsMarketTransactorSession) Liquidate(accountId *big.Int) (*types.Transaction, error)

Liquidate is a paid mutator transaction binding the contract method 0x048577de.

Solidity: function liquidate(uint128 accountId) returns(uint256 liquidationReward)

func (*PerpsMarketTransactorSession) LiquidateFlagged

func (_PerpsMarket *PerpsMarketTransactorSession) LiquidateFlagged(maxNumberOfAccounts *big.Int) (*types.Transaction, error)

LiquidateFlagged is a paid mutator transaction binding the contract method 0xac53c5ae.

Solidity: function liquidateFlagged(uint256 maxNumberOfAccounts) returns(uint256 liquidationReward)

func (*PerpsMarketTransactorSession) LiquidateFlaggedAccounts

func (_PerpsMarket *PerpsMarketTransactorSession) LiquidateFlaggedAccounts(accountIds []*big.Int) (*types.Transaction, error)

LiquidateFlaggedAccounts is a paid mutator transaction binding the contract method 0x3ce80659.

Solidity: function liquidateFlaggedAccounts(uint128[] accountIds) returns(uint256 liquidationReward)

func (*PerpsMarketTransactorSession) ModifyCollateral

func (_PerpsMarket *PerpsMarketTransactorSession) ModifyCollateral(accountId *big.Int, synthMarketId *big.Int, amountDelta *big.Int) (*types.Transaction, error)

ModifyCollateral is a paid mutator transaction binding the contract method 0xbb58672c.

Solidity: function modifyCollateral(uint128 accountId, uint128 synthMarketId, int256 amountDelta) returns()

func (*PerpsMarketTransactorSession) NominateNewOwner

func (_PerpsMarket *PerpsMarketTransactorSession) NominateNewOwner(newNominatedOwner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address newNominatedOwner) returns()

func (*PerpsMarketTransactorSession) NotifyAccountTransfer

func (_PerpsMarket *PerpsMarketTransactorSession) NotifyAccountTransfer(to common.Address, accountId *big.Int) (*types.Transaction, error)

NotifyAccountTransfer is a paid mutator transaction binding the contract method 0x7dec8b55.

Solidity: function notifyAccountTransfer(address to, uint128 accountId) returns()

func (*PerpsMarketTransactorSession) RegisterUnmanagedSystem

func (_PerpsMarket *PerpsMarketTransactorSession) RegisterUnmanagedSystem(id [32]byte, endpoint common.Address) (*types.Transaction, error)

RegisterUnmanagedSystem is a paid mutator transaction binding the contract method 0xd245d983.

Solidity: function registerUnmanagedSystem(bytes32 id, address endpoint) returns()

func (*PerpsMarketTransactorSession) RemoveFromFeatureFlagAllowlist

func (_PerpsMarket *PerpsMarketTransactorSession) RemoveFromFeatureFlagAllowlist(feature [32]byte, account common.Address) (*types.Transaction, error)

RemoveFromFeatureFlagAllowlist is a paid mutator transaction binding the contract method 0xb7746b59.

Solidity: function removeFromFeatureFlagAllowlist(bytes32 feature, address account) returns()

func (*PerpsMarketTransactorSession) RenounceNomination

func (_PerpsMarket *PerpsMarketTransactorSession) RenounceNomination() (*types.Transaction, error)

RenounceNomination is a paid mutator transaction binding the contract method 0x718fe928.

Solidity: function renounceNomination() returns()

func (*PerpsMarketTransactorSession) RenouncePermission

func (_PerpsMarket *PerpsMarketTransactorSession) RenouncePermission(accountId *big.Int, permission [32]byte) (*types.Transaction, error)

RenouncePermission is a paid mutator transaction binding the contract method 0x47c1c561.

Solidity: function renouncePermission(uint128 accountId, bytes32 permission) returns()

func (*PerpsMarketTransactorSession) RevokePermission

func (_PerpsMarket *PerpsMarketTransactorSession) RevokePermission(accountId *big.Int, permission [32]byte, user common.Address) (*types.Transaction, error)

RevokePermission is a paid mutator transaction binding the contract method 0xa7627288.

Solidity: function revokePermission(uint128 accountId, bytes32 permission, address user) returns()

func (*PerpsMarketTransactorSession) SetCollateralConfiguration

func (_PerpsMarket *PerpsMarketTransactorSession) SetCollateralConfiguration(synthMarketId *big.Int, maxCollateralAmount *big.Int) (*types.Transaction, error)

SetCollateralConfiguration is a paid mutator transaction binding the contract method 0xddf5a974.

Solidity: function setCollateralConfiguration(uint128 synthMarketId, uint256 maxCollateralAmount) returns()

func (*PerpsMarketTransactorSession) SetDeniers

func (_PerpsMarket *PerpsMarketTransactorSession) SetDeniers(feature [32]byte, deniers []common.Address) (*types.Transaction, error)

SetDeniers is a paid mutator transaction binding the contract method 0x715cb7d2.

Solidity: function setDeniers(bytes32 feature, address[] deniers) returns()

func (*PerpsMarketTransactorSession) SetFeatureFlagAllowAll

func (_PerpsMarket *PerpsMarketTransactorSession) SetFeatureFlagAllowAll(feature [32]byte, allowAll bool) (*types.Transaction, error)

SetFeatureFlagAllowAll is a paid mutator transaction binding the contract method 0x7d632bd2.

Solidity: function setFeatureFlagAllowAll(bytes32 feature, bool allowAll) returns()

func (*PerpsMarketTransactorSession) SetFeatureFlagDenyAll

func (_PerpsMarket *PerpsMarketTransactorSession) SetFeatureFlagDenyAll(feature [32]byte, denyAll bool) (*types.Transaction, error)

SetFeatureFlagDenyAll is a paid mutator transaction binding the contract method 0x5e52ad6e.

Solidity: function setFeatureFlagDenyAll(bytes32 feature, bool denyAll) returns()

func (*PerpsMarketTransactorSession) SetFeeCollector

func (_PerpsMarket *PerpsMarketTransactorSession) SetFeeCollector(feeCollector common.Address) (*types.Transaction, error)

SetFeeCollector is a paid mutator transaction binding the contract method 0xa42dce80.

Solidity: function setFeeCollector(address feeCollector) returns()

func (*PerpsMarketTransactorSession) SetFundingParameters

func (_PerpsMarket *PerpsMarketTransactorSession) SetFundingParameters(marketId *big.Int, skewScale *big.Int, maxFundingVelocity *big.Int) (*types.Transaction, error)

SetFundingParameters is a paid mutator transaction binding the contract method 0xc2382277.

Solidity: function setFundingParameters(uint128 marketId, uint256 skewScale, uint256 maxFundingVelocity) returns()

func (*PerpsMarketTransactorSession) SetKeeperRewardGuards

func (_PerpsMarket *PerpsMarketTransactorSession) SetKeeperRewardGuards(minKeeperRewardUsd *big.Int, minKeeperProfitRatioD18 *big.Int, maxKeeperRewardUsd *big.Int, maxKeeperScalingRatioD18 *big.Int) (*types.Transaction, error)

SetKeeperRewardGuards is a paid mutator transaction binding the contract method 0x96e9f7a0.

Solidity: function setKeeperRewardGuards(uint256 minKeeperRewardUsd, uint256 minKeeperProfitRatioD18, uint256 maxKeeperRewardUsd, uint256 maxKeeperScalingRatioD18) returns()

func (*PerpsMarketTransactorSession) SetLiquidationParameters

func (_PerpsMarket *PerpsMarketTransactorSession) SetLiquidationParameters(marketId *big.Int, initialMarginRatioD18 *big.Int, minimumInitialMarginRatioD18 *big.Int, maintenanceMarginScalarD18 *big.Int, flagRewardRatioD18 *big.Int, minimumPositionMargin *big.Int) (*types.Transaction, error)

SetLiquidationParameters is a paid mutator transaction binding the contract method 0x25e5409e.

Solidity: function setLiquidationParameters(uint128 marketId, uint256 initialMarginRatioD18, uint256 minimumInitialMarginRatioD18, uint256 maintenanceMarginScalarD18, uint256 flagRewardRatioD18, uint256 minimumPositionMargin) returns()

func (*PerpsMarketTransactorSession) SetLockedOiRatio

func (_PerpsMarket *PerpsMarketTransactorSession) SetLockedOiRatio(marketId *big.Int, lockedOiRatioD18 *big.Int) (*types.Transaction, error)

SetLockedOiRatio is a paid mutator transaction binding the contract method 0x033723d9.

Solidity: function setLockedOiRatio(uint128 marketId, uint256 lockedOiRatioD18) returns()

func (*PerpsMarketTransactorSession) SetMaxLiquidationParameters

func (_PerpsMarket *PerpsMarketTransactorSession) SetMaxLiquidationParameters(marketId *big.Int, maxLiquidationLimitAccumulationMultiplier *big.Int, maxSecondsInLiquidationWindow *big.Int, maxLiquidationPd *big.Int, endorsedLiquidator common.Address) (*types.Transaction, error)

SetMaxLiquidationParameters is a paid mutator transaction binding the contract method 0xc7f8a94f.

Solidity: function setMaxLiquidationParameters(uint128 marketId, uint256 maxLiquidationLimitAccumulationMultiplier, uint256 maxSecondsInLiquidationWindow, uint256 maxLiquidationPd, address endorsedLiquidator) returns()

func (*PerpsMarketTransactorSession) SetMaxMarketSize

func (_PerpsMarket *PerpsMarketTransactorSession) SetMaxMarketSize(marketId *big.Int, maxMarketSize *big.Int) (*types.Transaction, error)

SetMaxMarketSize is a paid mutator transaction binding the contract method 0x404a68aa.

Solidity: function setMaxMarketSize(uint128 marketId, uint256 maxMarketSize) returns()

func (*PerpsMarketTransactorSession) SetOrderFees

func (_PerpsMarket *PerpsMarketTransactorSession) SetOrderFees(marketId *big.Int, makerFeeRatio *big.Int, takerFeeRatio *big.Int) (*types.Transaction, error)

SetOrderFees is a paid mutator transaction binding the contract method 0xf842fa86.

Solidity: function setOrderFees(uint128 marketId, uint256 makerFeeRatio, uint256 takerFeeRatio) returns()

func (*PerpsMarketTransactorSession) SetPerAccountCaps

func (_PerpsMarket *PerpsMarketTransactorSession) SetPerAccountCaps(maxPositionsPerAccount *big.Int, maxCollateralsPerAccount *big.Int) (*types.Transaction, error)

SetPerAccountCaps is a paid mutator transaction binding the contract method 0xfa0e70a7.

Solidity: function setPerAccountCaps(uint128 maxPositionsPerAccount, uint128 maxCollateralsPerAccount) returns()

func (*PerpsMarketTransactorSession) SetPerpsMarketName

func (_PerpsMarket *PerpsMarketTransactorSession) SetPerpsMarketName(marketName string) (*types.Transaction, error)

SetPerpsMarketName is a paid mutator transaction binding the contract method 0x55576c59.

Solidity: function setPerpsMarketName(string marketName) returns()

func (*PerpsMarketTransactorSession) SetSettlementStrategy

func (_PerpsMarket *PerpsMarketTransactorSession) SetSettlementStrategy(marketId *big.Int, strategyId *big.Int, strategy SettlementStrategyData) (*types.Transaction, error)

SetSettlementStrategy is a paid mutator transaction binding the contract method 0x26641806.

Solidity: function setSettlementStrategy(uint128 marketId, uint256 strategyId, (uint8,uint256,uint256,address,bytes32,uint256,bool,uint256) strategy) returns()

func (*PerpsMarketTransactorSession) SetSettlementStrategyEnabled

func (_PerpsMarket *PerpsMarketTransactorSession) SetSettlementStrategyEnabled(marketId *big.Int, strategyId *big.Int, enabled bool) (*types.Transaction, error)

SetSettlementStrategyEnabled is a paid mutator transaction binding the contract method 0x7f73a891.

Solidity: function setSettlementStrategyEnabled(uint128 marketId, uint256 strategyId, bool enabled) returns()

func (*PerpsMarketTransactorSession) SetSynthDeductionPriority

func (_PerpsMarket *PerpsMarketTransactorSession) SetSynthDeductionPriority(newSynthDeductionPriority []*big.Int) (*types.Transaction, error)

SetSynthDeductionPriority is a paid mutator transaction binding the contract method 0x6aba84a7.

Solidity: function setSynthDeductionPriority(uint128[] newSynthDeductionPriority) returns()

func (*PerpsMarketTransactorSession) SettleOrder

func (_PerpsMarket *PerpsMarketTransactorSession) SettleOrder(accountId *big.Int) (*types.Transaction, error)

SettleOrder is a paid mutator transaction binding the contract method 0xf89648fb.

Solidity: function settleOrder(uint128 accountId) returns()

func (*PerpsMarketTransactorSession) SimulateUpgradeTo

func (_PerpsMarket *PerpsMarketTransactorSession) SimulateUpgradeTo(newImplementation common.Address) (*types.Transaction, error)

SimulateUpgradeTo is a paid mutator transaction binding the contract method 0xc7f62cda.

Solidity: function simulateUpgradeTo(address newImplementation) returns()

func (*PerpsMarketTransactorSession) UpdateKeeperCostNodeId

func (_PerpsMarket *PerpsMarketTransactorSession) UpdateKeeperCostNodeId(keeperCostNodeId [32]byte) (*types.Transaction, error)

UpdateKeeperCostNodeId is a paid mutator transaction binding the contract method 0xf5322087.

Solidity: function updateKeeperCostNodeId(bytes32 keeperCostNodeId) returns()

func (*PerpsMarketTransactorSession) UpdatePriceData

func (_PerpsMarket *PerpsMarketTransactorSession) UpdatePriceData(perpsMarketId *big.Int, feedId [32]byte, strictStalenessTolerance *big.Int) (*types.Transaction, error)

UpdatePriceData is a paid mutator transaction binding the contract method 0xb5848488.

Solidity: function updatePriceData(uint128 perpsMarketId, bytes32 feedId, uint256 strictStalenessTolerance) returns()

func (*PerpsMarketTransactorSession) UpdateReferrerShare

func (_PerpsMarket *PerpsMarketTransactorSession) UpdateReferrerShare(referrer common.Address, shareRatioD18 *big.Int) (*types.Transaction, error)

UpdateReferrerShare is a paid mutator transaction binding the contract method 0x6809fb4d.

Solidity: function updateReferrerShare(address referrer, uint256 shareRatioD18) returns()

func (*PerpsMarketTransactorSession) UpgradeTo

func (_PerpsMarket *PerpsMarketTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

type PerpsMarketUpgraded

type PerpsMarketUpgraded struct {
	Self           common.Address
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

PerpsMarketUpgraded represents a Upgraded event raised by the PerpsMarket contract.

type PerpsMarketUpgradedIterator

type PerpsMarketUpgradedIterator struct {
	Event *PerpsMarketUpgraded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

PerpsMarketUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the PerpsMarket contract.

func (*PerpsMarketUpgradedIterator) Close

func (it *PerpsMarketUpgradedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*PerpsMarketUpgradedIterator) Error

func (it *PerpsMarketUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PerpsMarketUpgradedIterator) Next

func (it *PerpsMarketUpgradedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SettlementStrategyData

type SettlementStrategyData struct {
	StrategyType              uint8
	SettlementDelay           *big.Int
	SettlementWindowDuration  *big.Int
	PriceVerificationContract common.Address
	FeedId                    [32]byte
	SettlementReward          *big.Int
	Disabled                  bool
	CommitmentPriceDelay      *big.Int
}

SettlementStrategyData is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL