thales

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	UP   uint8 = 0
	DOWN uint8 = 1
)

Variables

View Source
var ThalesABI = ThalesMetaData.ABI

ThalesABI is the input ABI used to generate the binding from. Deprecated: Use ThalesMetaData.ABI instead.

View Source
var ThalesMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sUSDPaid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"susd\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"BoughtFromAmm\",\"type\":\"event\"},{\"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\":false,\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"}],\"name\":\"PauseChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"refferer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"volume\",\"type\":\"uint256\"}],\"name\":\"ReferrerPaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"asset\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_cap\",\"type\":\"uint256\"}],\"name\":\"SetCapPerAsset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_capPerMarket\",\"type\":\"uint256\"}],\"name\":\"SetCapPerMarket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"asset\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_impliedVolatility\",\"type\":\"uint256\"}],\"name\":\"SetImpliedVolatilityPerAsset\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_spread\",\"type\":\"uint256\"}],\"name\":\"SetMaxSpread\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_spread\",\"type\":\"uint256\"}],\"name\":\"SetMaxSupportedPrice\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_spread\",\"type\":\"uint256\"}],\"name\":\"SetMinSpread\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_spread\",\"type\":\"uint256\"}],\"name\":\"SetMinSupportedPrice\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_minimalTimeLeftToMaturity\",\"type\":\"uint256\"}],\"name\":\"SetMinimalTimeLeftToMaturity\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"SetPositionalMarketManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_priceFeed\",\"type\":\"address\"}],\"name\":\"SetPriceFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sUSD\",\"type\":\"address\"}],\"name\":\"SetSUSD\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_safeBox\",\"type\":\"address\"}],\"name\":\"SetSafeBox\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_safeBoxImpact\",\"type\":\"uint256\"}],\"name\":\"SetSafeBoxImpact\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sUSDPaid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"susd\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"SoldToAMM\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"MAX_APPROVAL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"}],\"name\":\"availableToBuyFromAMM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_available\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"}],\"name\":\"availableToSellToAMM\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedPayout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"additionalSlippage\",\"type\":\"uint256\"}],\"name\":\"buyFromAMM\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedPayout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"additionalSlippage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"collateral\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_referrer\",\"type\":\"address\"}],\"name\":\"buyFromAMMWithDifferentCollateralAndReferrer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedPayout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"additionalSlippage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_referrer\",\"type\":\"address\"}],\"name\":\"buyFromAMMWithReferrer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"buyFromAmmQuote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"collateral\",\"type\":\"address\"}],\"name\":\"buyFromAmmQuoteWithDifferentCollateral\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"collateralQuote\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sUSDToPay\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"buyPriceImpact\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strike\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timeLeftInDays\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"volatility\",\"type\":\"uint256\"}],\"name\":\"calculateOdds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"canExerciseMaturedMarket\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_canExercise\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"capPerMarket\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"curveOnrampEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"curveSUSD\",\"outputs\":[{\"internalType\":\"contractICurveSUSD\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"dai\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"deciMath\",\"outputs\":[{\"internalType\":\"contractDeciMath\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"exerciseMaturedMarket\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"asset\",\"type\":\"bytes32\"}],\"name\":\"getCapPerAsset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_cap\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"impliedVolatilityPerAsset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"initNonReentrant\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"contractIPriceFeed\",\"name\":\"_priceFeed\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"_sUSD\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_capPerMarket\",\"type\":\"uint256\"},{\"internalType\":\"contractDeciMath\",\"name\":\"_deciMath\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_min_spread\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_max_spread\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minimalTimeLeftToMaturity\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"isMarketInAMMTrading\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isTrading\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"lastPauseTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxSupportedPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"max_spread\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minSupportedPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"min_spread\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minimalTimeLeftToMaturity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"previousManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"}],\"name\":\"price\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"priceFeed\",\"outputs\":[{\"internalType\":\"contractIPriceFeed\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"referrals\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"referrerFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"retrieveSUSDAmount\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"sUSD\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"safeBox\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"safeBoxImpact\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sellPriceImpact\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_impact\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedPayout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"additionalSlippage\",\"type\":\"uint256\"}],\"name\":\"sellToAMM\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"enumThalesAMM.Position\",\"name\":\"position\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sellToAmmQuote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_available\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"asset\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_cap\",\"type\":\"uint256\"}],\"name\":\"setCapPerAsset\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_curveSUSD\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_dai\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_usdc\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_usdt\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_curveOnrampEnabled\",\"type\":\"bool\"}],\"name\":\"setCurveSUSD\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"asset\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_impliedVolatility\",\"type\":\"uint256\"}],\"name\":\"setImpliedVolatilityPerAsset\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minspread\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxspread\",\"type\":\"uint256\"}],\"name\":\"setMinMaxSpread\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minSupportedPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxSupportedPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_capPerMarket\",\"type\":\"uint256\"}],\"name\":\"setMinMaxSupportedPriceAndCap\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minimalTimeLeftToMaturity\",\"type\":\"uint256\"}],\"name\":\"setMinimalTimeLeftToMaturity\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_paused\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"setPositionalMarketManager\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIPriceFeed\",\"name\":\"_priceFeed\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"_sUSD\",\"type\":\"address\"}],\"name\":\"setPriceFeedAndSUSD\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_safeBox\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_safeBoxImpact\",\"type\":\"uint256\"}],\"name\":\"setSafeBoxData\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIStakingThales\",\"name\":\"_stakingThales\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_referrals\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_referrerFee\",\"type\":\"uint256\"}],\"name\":\"setStakingThalesAndReferrals\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_address\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setWhitelistedAddress\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"spentOnMarket\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"stakingThales\",\"outputs\":[{\"internalType\":\"contractIStakingThales\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"name\":\"transferOwnershipAtInit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"usdc\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"usdt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"whitelistedAddresses\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ThalesMetaData contains all meta data concerning the Thales contract.

Functions

func LayerAMM added in v0.5.7

func LayerAMM(layer string) string

func LayerDecimals added in v0.5.7

func LayerDecimals(layer string) int64

func LayerRPC added in v0.5.7

func LayerRPC(layer string) string

func LayerURL added in v0.5.5

func LayerURL(layer string) string

func QueryAllLiveMarkets added in v0.5.4

func QueryAllLiveMarkets(url string) ([]thales.AllLiveMarketsMarket, error)

func QueryAllRangedMarkets added in v0.5.4

func QueryAllRangedMarkets(url string) []thales.AllRangedMarketsRangedMarketsRangedMarket

func QueryMarket

func QueryMarket(id, url string) (*thales.MarketMarket, error)

func QueryMarkets

func QueryMarkets(url string) ([]thales.MarketsMarketsMarket, error)

func QueryRangedMarket

func QueryRangedMarket(id, url string) *thales.RangedMarketRangedMarket

func Underlying added in v0.5.4

func Underlying(s string) string

Types

type Provider

type Provider struct{}

func (Provider) Name

func (Provider) Name() string

func (Provider) Options added in v0.5.4

func (Provider) Options() ([]rainbow.Option, error)

type Thales added in v0.5.4

type Thales struct {
	ThalesCaller     // Read-only binding to the contract
	ThalesTransactor // Write-only binding to the contract
	ThalesFilterer   // Log filterer for contract events
}

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

func NewThales added in v0.5.4

func NewThales(address common.Address, backend bind.ContractBackend) (*Thales, error)

NewThales creates a new instance of Thales, bound to a specific deployed contract.

type ThalesBoughtFromAmm added in v0.5.4

type ThalesBoughtFromAmm struct {
	Buyer    common.Address
	Market   common.Address
	Position uint8
	Amount   *big.Int
	SUSDPaid *big.Int
	Susd     common.Address
	Asset    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesBoughtFromAmm represents a BoughtFromAmm event raised by the Thales contract.

type ThalesBoughtFromAmmIterator added in v0.5.4

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

ThalesBoughtFromAmmIterator is returned from FilterBoughtFromAmm and is used to iterate over the raw logs and unpacked data for BoughtFromAmm events raised by the Thales contract.

func (*ThalesBoughtFromAmmIterator) Close added in v0.5.4

func (it *ThalesBoughtFromAmmIterator) Close() error

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

func (*ThalesBoughtFromAmmIterator) Error added in v0.5.4

func (it *ThalesBoughtFromAmmIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesBoughtFromAmmIterator) Next added in v0.5.4

func (it *ThalesBoughtFromAmmIterator) 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 ThalesCaller added in v0.5.4

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

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

func NewThalesCaller added in v0.5.4

func NewThalesCaller(address common.Address, caller bind.ContractCaller) (*ThalesCaller, error)

NewThalesCaller creates a new read-only instance of Thales, bound to a specific deployed contract.

func (*ThalesCaller) AvailableToBuyFromAMM added in v0.5.4

func (_Thales *ThalesCaller) AvailableToBuyFromAMM(opts *bind.CallOpts, market common.Address, position uint8) (*big.Int, error)

AvailableToBuyFromAMM is a free data retrieval call binding the contract method 0xefc15251.

Solidity: function availableToBuyFromAMM(address market, uint8 position) view returns(uint256 _available)

func (*ThalesCaller) AvailableToSellToAMM added in v0.5.4

func (_Thales *ThalesCaller) AvailableToSellToAMM(opts *bind.CallOpts, market common.Address, position uint8) (*big.Int, error)

AvailableToSellToAMM is a free data retrieval call binding the contract method 0xc2783f92.

Solidity: function availableToSellToAMM(address market, uint8 position) view returns(uint256)

func (*ThalesCaller) BuyFromAmmQuote added in v0.5.4

func (_Thales *ThalesCaller) BuyFromAmmQuote(opts *bind.CallOpts, market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyFromAmmQuote is a free data retrieval call binding the contract method 0x270e13ef.

Solidity: function buyFromAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesCaller) BuyFromAmmQuoteWithDifferentCollateral added in v0.5.4

func (_Thales *ThalesCaller) BuyFromAmmQuoteWithDifferentCollateral(opts *bind.CallOpts, market common.Address, position uint8, amount *big.Int, collateral common.Address) (struct {
	CollateralQuote *big.Int
	SUSDToPay       *big.Int
}, error)

BuyFromAmmQuoteWithDifferentCollateral is a free data retrieval call binding the contract method 0xd4a2641b.

Solidity: function buyFromAmmQuoteWithDifferentCollateral(address market, uint8 position, uint256 amount, address collateral) view returns(uint256 collateralQuote, uint256 sUSDToPay)

func (*ThalesCaller) BuyPriceImpact added in v0.5.4

func (_Thales *ThalesCaller) BuyPriceImpact(opts *bind.CallOpts, market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyPriceImpact is a free data retrieval call binding the contract method 0xbf46c0b4.

Solidity: function buyPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesCaller) CalculateOdds added in v0.5.4

func (_Thales *ThalesCaller) CalculateOdds(opts *bind.CallOpts, _price *big.Int, strike *big.Int, timeLeftInDays *big.Int, volatility *big.Int) (*big.Int, error)

CalculateOdds is a free data retrieval call binding the contract method 0xa8cd06e8.

Solidity: function calculateOdds(uint256 _price, uint256 strike, uint256 timeLeftInDays, uint256 volatility) view returns(uint256)

func (*ThalesCaller) CanExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesCaller) CanExerciseMaturedMarket(opts *bind.CallOpts, market common.Address) (bool, error)

CanExerciseMaturedMarket is a free data retrieval call binding the contract method 0xca1d578e.

Solidity: function canExerciseMaturedMarket(address market) view returns(bool _canExercise)

func (*ThalesCaller) CapPerMarket added in v0.5.4

func (_Thales *ThalesCaller) CapPerMarket(opts *bind.CallOpts) (*big.Int, error)

CapPerMarket is a free data retrieval call binding the contract method 0xfb91d41c.

Solidity: function capPerMarket() view returns(uint256)

func (*ThalesCaller) CurveOnrampEnabled added in v0.5.4

func (_Thales *ThalesCaller) CurveOnrampEnabled(opts *bind.CallOpts) (bool, error)

CurveOnrampEnabled is a free data retrieval call binding the contract method 0x1fbb38e8.

Solidity: function curveOnrampEnabled() view returns(bool)

func (*ThalesCaller) CurveSUSD added in v0.5.4

func (_Thales *ThalesCaller) CurveSUSD(opts *bind.CallOpts) (common.Address, error)

CurveSUSD is a free data retrieval call binding the contract method 0xa5bf660d.

Solidity: function curveSUSD() view returns(address)

func (*ThalesCaller) Dai added in v0.5.4

func (_Thales *ThalesCaller) Dai(opts *bind.CallOpts) (common.Address, error)

Dai is a free data retrieval call binding the contract method 0xf4b9fa75.

Solidity: function dai() view returns(address)

func (*ThalesCaller) DeciMath added in v0.5.4

func (_Thales *ThalesCaller) DeciMath(opts *bind.CallOpts) (common.Address, error)

DeciMath is a free data retrieval call binding the contract method 0x6cfa636e.

Solidity: function deciMath() view returns(address)

func (*ThalesCaller) GetCapPerAsset added in v0.5.4

func (_Thales *ThalesCaller) GetCapPerAsset(opts *bind.CallOpts, asset [32]byte) (*big.Int, error)

GetCapPerAsset is a free data retrieval call binding the contract method 0xf8debeb7.

Solidity: function getCapPerAsset(bytes32 asset) view returns(uint256 _cap)

func (*ThalesCaller) ImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesCaller) ImpliedVolatilityPerAsset(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

ImpliedVolatilityPerAsset is a free data retrieval call binding the contract method 0xf502b003.

Solidity: function impliedVolatilityPerAsset(bytes32 ) view returns(uint256)

func (*ThalesCaller) IsMarketInAMMTrading added in v0.5.4

func (_Thales *ThalesCaller) IsMarketInAMMTrading(opts *bind.CallOpts, market common.Address) (bool, error)

IsMarketInAMMTrading is a free data retrieval call binding the contract method 0x5727a0f3.

Solidity: function isMarketInAMMTrading(address market) view returns(bool isTrading)

func (*ThalesCaller) LastPauseTime added in v0.5.4

func (_Thales *ThalesCaller) LastPauseTime(opts *bind.CallOpts) (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ThalesCaller) MAXAPPROVAL added in v0.5.4

func (_Thales *ThalesCaller) MAXAPPROVAL(opts *bind.CallOpts) (*big.Int, error)

MAXAPPROVAL is a free data retrieval call binding the contract method 0x7f4ed8ee.

Solidity: function MAX_APPROVAL() view returns(uint256)

func (*ThalesCaller) Manager added in v0.5.4

func (_Thales *ThalesCaller) Manager(opts *bind.CallOpts) (common.Address, error)

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() view returns(address)

func (*ThalesCaller) MaxSpread added in v0.5.4

func (_Thales *ThalesCaller) MaxSpread(opts *bind.CallOpts) (*big.Int, error)

MaxSpread is a free data retrieval call binding the contract method 0x316425c3.

Solidity: function max_spread() view returns(uint256)

func (*ThalesCaller) MaxSupportedPrice added in v0.5.4

func (_Thales *ThalesCaller) MaxSupportedPrice(opts *bind.CallOpts) (*big.Int, error)

MaxSupportedPrice is a free data retrieval call binding the contract method 0x19b844a6.

Solidity: function maxSupportedPrice() view returns(uint256)

func (*ThalesCaller) MinSpread added in v0.5.4

func (_Thales *ThalesCaller) MinSpread(opts *bind.CallOpts) (*big.Int, error)

MinSpread is a free data retrieval call binding the contract method 0x6aaa81b6.

Solidity: function min_spread() view returns(uint256)

func (*ThalesCaller) MinSupportedPrice added in v0.5.4

func (_Thales *ThalesCaller) MinSupportedPrice(opts *bind.CallOpts) (*big.Int, error)

MinSupportedPrice is a free data retrieval call binding the contract method 0x931b2040.

Solidity: function minSupportedPrice() view returns(uint256)

func (*ThalesCaller) MinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesCaller) MinimalTimeLeftToMaturity(opts *bind.CallOpts) (*big.Int, error)

MinimalTimeLeftToMaturity is a free data retrieval call binding the contract method 0xdf8974d0.

Solidity: function minimalTimeLeftToMaturity() view returns(uint256)

func (*ThalesCaller) NominatedOwner added in v0.5.4

func (_Thales *ThalesCaller) 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 (*ThalesCaller) Owner added in v0.5.4

func (_Thales *ThalesCaller) 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 (*ThalesCaller) Paused added in v0.5.4

func (_Thales *ThalesCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ThalesCaller) PreviousManager added in v0.5.4

func (_Thales *ThalesCaller) PreviousManager(opts *bind.CallOpts) (common.Address, error)

PreviousManager is a free data retrieval call binding the contract method 0x06f58fe4.

Solidity: function previousManager() view returns(address)

func (*ThalesCaller) Price added in v0.5.4

func (_Thales *ThalesCaller) Price(opts *bind.CallOpts, market common.Address, position uint8) (*big.Int, error)

Price is a free data retrieval call binding the contract method 0x6ed033f8.

Solidity: function price(address market, uint8 position) view returns(uint256 price)

func (*ThalesCaller) PriceFeed added in v0.5.4

func (_Thales *ThalesCaller) PriceFeed(opts *bind.CallOpts) (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*ThalesCaller) Referrals added in v0.5.4

func (_Thales *ThalesCaller) Referrals(opts *bind.CallOpts) (common.Address, error)

Referrals is a free data retrieval call binding the contract method 0xd3dc7539.

Solidity: function referrals() view returns(address)

func (*ThalesCaller) ReferrerFee added in v0.5.4

func (_Thales *ThalesCaller) ReferrerFee(opts *bind.CallOpts) (*big.Int, error)

ReferrerFee is a free data retrieval call binding the contract method 0x6e88a7bd.

Solidity: function referrerFee() view returns(uint256)

func (*ThalesCaller) SUSD added in v0.5.4

func (_Thales *ThalesCaller) SUSD(opts *bind.CallOpts) (common.Address, error)

SUSD is a free data retrieval call binding the contract method 0x9324cac7.

Solidity: function sUSD() view returns(address)

func (*ThalesCaller) SafeBox added in v0.5.4

func (_Thales *ThalesCaller) SafeBox(opts *bind.CallOpts) (common.Address, error)

SafeBox is a free data retrieval call binding the contract method 0x48663e95.

Solidity: function safeBox() view returns(address)

func (*ThalesCaller) SafeBoxImpact added in v0.5.4

func (_Thales *ThalesCaller) SafeBoxImpact(opts *bind.CallOpts) (*big.Int, error)

SafeBoxImpact is a free data retrieval call binding the contract method 0xd69fb668.

Solidity: function safeBoxImpact() view returns(uint256)

func (*ThalesCaller) SellPriceImpact added in v0.5.4

func (_Thales *ThalesCaller) SellPriceImpact(opts *bind.CallOpts, market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellPriceImpact is a free data retrieval call binding the contract method 0x1c37d04b.

Solidity: function sellPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256 _impact)

func (*ThalesCaller) SellToAmmQuote added in v0.5.4

func (_Thales *ThalesCaller) SellToAmmQuote(opts *bind.CallOpts, market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellToAmmQuote is a free data retrieval call binding the contract method 0x0f13aae8.

Solidity: function sellToAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256 _available)

func (*ThalesCaller) SpentOnMarket added in v0.5.4

func (_Thales *ThalesCaller) SpentOnMarket(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

SpentOnMarket is a free data retrieval call binding the contract method 0xc4dc27d7.

Solidity: function spentOnMarket(address ) view returns(uint256)

func (*ThalesCaller) StakingThales added in v0.5.4

func (_Thales *ThalesCaller) StakingThales(opts *bind.CallOpts) (common.Address, error)

StakingThales is a free data retrieval call binding the contract method 0xfd8a8cc6.

Solidity: function stakingThales() view returns(address)

func (*ThalesCaller) Usdc added in v0.5.4

func (_Thales *ThalesCaller) Usdc(opts *bind.CallOpts) (common.Address, error)

Usdc is a free data retrieval call binding the contract method 0x3e413bee.

Solidity: function usdc() view returns(address)

func (*ThalesCaller) Usdt added in v0.5.4

func (_Thales *ThalesCaller) Usdt(opts *bind.CallOpts) (common.Address, error)

Usdt is a free data retrieval call binding the contract method 0x2f48ab7d.

Solidity: function usdt() view returns(address)

func (*ThalesCaller) WhitelistedAddresses added in v0.5.4

func (_Thales *ThalesCaller) WhitelistedAddresses(opts *bind.CallOpts, arg0 common.Address) (bool, error)

WhitelistedAddresses is a free data retrieval call binding the contract method 0x06c933d8.

Solidity: function whitelistedAddresses(address ) view returns(bool)

type ThalesCallerRaw added in v0.5.4

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

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

func (*ThalesCallerRaw) Call added in v0.5.4

func (_Thales *ThalesCallerRaw) 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 ThalesCallerSession added in v0.5.4

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

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

func (*ThalesCallerSession) AvailableToBuyFromAMM added in v0.5.4

func (_Thales *ThalesCallerSession) AvailableToBuyFromAMM(market common.Address, position uint8) (*big.Int, error)

AvailableToBuyFromAMM is a free data retrieval call binding the contract method 0xefc15251.

Solidity: function availableToBuyFromAMM(address market, uint8 position) view returns(uint256 _available)

func (*ThalesCallerSession) AvailableToSellToAMM added in v0.5.4

func (_Thales *ThalesCallerSession) AvailableToSellToAMM(market common.Address, position uint8) (*big.Int, error)

AvailableToSellToAMM is a free data retrieval call binding the contract method 0xc2783f92.

Solidity: function availableToSellToAMM(address market, uint8 position) view returns(uint256)

func (*ThalesCallerSession) BuyFromAmmQuote added in v0.5.4

func (_Thales *ThalesCallerSession) BuyFromAmmQuote(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyFromAmmQuote is a free data retrieval call binding the contract method 0x270e13ef.

Solidity: function buyFromAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesCallerSession) BuyFromAmmQuoteWithDifferentCollateral added in v0.5.4

func (_Thales *ThalesCallerSession) BuyFromAmmQuoteWithDifferentCollateral(market common.Address, position uint8, amount *big.Int, collateral common.Address) (struct {
	CollateralQuote *big.Int
	SUSDToPay       *big.Int
}, error)

BuyFromAmmQuoteWithDifferentCollateral is a free data retrieval call binding the contract method 0xd4a2641b.

Solidity: function buyFromAmmQuoteWithDifferentCollateral(address market, uint8 position, uint256 amount, address collateral) view returns(uint256 collateralQuote, uint256 sUSDToPay)

func (*ThalesCallerSession) BuyPriceImpact added in v0.5.4

func (_Thales *ThalesCallerSession) BuyPriceImpact(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyPriceImpact is a free data retrieval call binding the contract method 0xbf46c0b4.

Solidity: function buyPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesCallerSession) CalculateOdds added in v0.5.4

func (_Thales *ThalesCallerSession) CalculateOdds(_price *big.Int, strike *big.Int, timeLeftInDays *big.Int, volatility *big.Int) (*big.Int, error)

CalculateOdds is a free data retrieval call binding the contract method 0xa8cd06e8.

Solidity: function calculateOdds(uint256 _price, uint256 strike, uint256 timeLeftInDays, uint256 volatility) view returns(uint256)

func (*ThalesCallerSession) CanExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesCallerSession) CanExerciseMaturedMarket(market common.Address) (bool, error)

CanExerciseMaturedMarket is a free data retrieval call binding the contract method 0xca1d578e.

Solidity: function canExerciseMaturedMarket(address market) view returns(bool _canExercise)

func (*ThalesCallerSession) CapPerMarket added in v0.5.4

func (_Thales *ThalesCallerSession) CapPerMarket() (*big.Int, error)

CapPerMarket is a free data retrieval call binding the contract method 0xfb91d41c.

Solidity: function capPerMarket() view returns(uint256)

func (*ThalesCallerSession) CurveOnrampEnabled added in v0.5.4

func (_Thales *ThalesCallerSession) CurveOnrampEnabled() (bool, error)

CurveOnrampEnabled is a free data retrieval call binding the contract method 0x1fbb38e8.

Solidity: function curveOnrampEnabled() view returns(bool)

func (*ThalesCallerSession) CurveSUSD added in v0.5.4

func (_Thales *ThalesCallerSession) CurveSUSD() (common.Address, error)

CurveSUSD is a free data retrieval call binding the contract method 0xa5bf660d.

Solidity: function curveSUSD() view returns(address)

func (*ThalesCallerSession) Dai added in v0.5.4

func (_Thales *ThalesCallerSession) Dai() (common.Address, error)

Dai is a free data retrieval call binding the contract method 0xf4b9fa75.

Solidity: function dai() view returns(address)

func (*ThalesCallerSession) DeciMath added in v0.5.4

func (_Thales *ThalesCallerSession) DeciMath() (common.Address, error)

DeciMath is a free data retrieval call binding the contract method 0x6cfa636e.

Solidity: function deciMath() view returns(address)

func (*ThalesCallerSession) GetCapPerAsset added in v0.5.4

func (_Thales *ThalesCallerSession) GetCapPerAsset(asset [32]byte) (*big.Int, error)

GetCapPerAsset is a free data retrieval call binding the contract method 0xf8debeb7.

Solidity: function getCapPerAsset(bytes32 asset) view returns(uint256 _cap)

func (*ThalesCallerSession) ImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesCallerSession) ImpliedVolatilityPerAsset(arg0 [32]byte) (*big.Int, error)

ImpliedVolatilityPerAsset is a free data retrieval call binding the contract method 0xf502b003.

Solidity: function impliedVolatilityPerAsset(bytes32 ) view returns(uint256)

func (*ThalesCallerSession) IsMarketInAMMTrading added in v0.5.4

func (_Thales *ThalesCallerSession) IsMarketInAMMTrading(market common.Address) (bool, error)

IsMarketInAMMTrading is a free data retrieval call binding the contract method 0x5727a0f3.

Solidity: function isMarketInAMMTrading(address market) view returns(bool isTrading)

func (*ThalesCallerSession) LastPauseTime added in v0.5.4

func (_Thales *ThalesCallerSession) LastPauseTime() (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ThalesCallerSession) MAXAPPROVAL added in v0.5.4

func (_Thales *ThalesCallerSession) MAXAPPROVAL() (*big.Int, error)

MAXAPPROVAL is a free data retrieval call binding the contract method 0x7f4ed8ee.

Solidity: function MAX_APPROVAL() view returns(uint256)

func (*ThalesCallerSession) Manager added in v0.5.4

func (_Thales *ThalesCallerSession) Manager() (common.Address, error)

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() view returns(address)

func (*ThalesCallerSession) MaxSpread added in v0.5.4

func (_Thales *ThalesCallerSession) MaxSpread() (*big.Int, error)

MaxSpread is a free data retrieval call binding the contract method 0x316425c3.

Solidity: function max_spread() view returns(uint256)

func (*ThalesCallerSession) MaxSupportedPrice added in v0.5.4

func (_Thales *ThalesCallerSession) MaxSupportedPrice() (*big.Int, error)

MaxSupportedPrice is a free data retrieval call binding the contract method 0x19b844a6.

Solidity: function maxSupportedPrice() view returns(uint256)

func (*ThalesCallerSession) MinSpread added in v0.5.4

func (_Thales *ThalesCallerSession) MinSpread() (*big.Int, error)

MinSpread is a free data retrieval call binding the contract method 0x6aaa81b6.

Solidity: function min_spread() view returns(uint256)

func (*ThalesCallerSession) MinSupportedPrice added in v0.5.4

func (_Thales *ThalesCallerSession) MinSupportedPrice() (*big.Int, error)

MinSupportedPrice is a free data retrieval call binding the contract method 0x931b2040.

Solidity: function minSupportedPrice() view returns(uint256)

func (*ThalesCallerSession) MinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesCallerSession) MinimalTimeLeftToMaturity() (*big.Int, error)

MinimalTimeLeftToMaturity is a free data retrieval call binding the contract method 0xdf8974d0.

Solidity: function minimalTimeLeftToMaturity() view returns(uint256)

func (*ThalesCallerSession) NominatedOwner added in v0.5.4

func (_Thales *ThalesCallerSession) NominatedOwner() (common.Address, error)

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

Solidity: function nominatedOwner() view returns(address)

func (*ThalesCallerSession) Owner added in v0.5.4

func (_Thales *ThalesCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ThalesCallerSession) Paused added in v0.5.4

func (_Thales *ThalesCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ThalesCallerSession) PreviousManager added in v0.5.4

func (_Thales *ThalesCallerSession) PreviousManager() (common.Address, error)

PreviousManager is a free data retrieval call binding the contract method 0x06f58fe4.

Solidity: function previousManager() view returns(address)

func (*ThalesCallerSession) Price added in v0.5.4

func (_Thales *ThalesCallerSession) Price(market common.Address, position uint8) (*big.Int, error)

Price is a free data retrieval call binding the contract method 0x6ed033f8.

Solidity: function price(address market, uint8 position) view returns(uint256 price)

func (*ThalesCallerSession) PriceFeed added in v0.5.4

func (_Thales *ThalesCallerSession) PriceFeed() (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*ThalesCallerSession) Referrals added in v0.5.4

func (_Thales *ThalesCallerSession) Referrals() (common.Address, error)

Referrals is a free data retrieval call binding the contract method 0xd3dc7539.

Solidity: function referrals() view returns(address)

func (*ThalesCallerSession) ReferrerFee added in v0.5.4

func (_Thales *ThalesCallerSession) ReferrerFee() (*big.Int, error)

ReferrerFee is a free data retrieval call binding the contract method 0x6e88a7bd.

Solidity: function referrerFee() view returns(uint256)

func (*ThalesCallerSession) SUSD added in v0.5.4

func (_Thales *ThalesCallerSession) SUSD() (common.Address, error)

SUSD is a free data retrieval call binding the contract method 0x9324cac7.

Solidity: function sUSD() view returns(address)

func (*ThalesCallerSession) SafeBox added in v0.5.4

func (_Thales *ThalesCallerSession) SafeBox() (common.Address, error)

SafeBox is a free data retrieval call binding the contract method 0x48663e95.

Solidity: function safeBox() view returns(address)

func (*ThalesCallerSession) SafeBoxImpact added in v0.5.4

func (_Thales *ThalesCallerSession) SafeBoxImpact() (*big.Int, error)

SafeBoxImpact is a free data retrieval call binding the contract method 0xd69fb668.

Solidity: function safeBoxImpact() view returns(uint256)

func (*ThalesCallerSession) SellPriceImpact added in v0.5.4

func (_Thales *ThalesCallerSession) SellPriceImpact(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellPriceImpact is a free data retrieval call binding the contract method 0x1c37d04b.

Solidity: function sellPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256 _impact)

func (*ThalesCallerSession) SellToAmmQuote added in v0.5.4

func (_Thales *ThalesCallerSession) SellToAmmQuote(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellToAmmQuote is a free data retrieval call binding the contract method 0x0f13aae8.

Solidity: function sellToAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256 _available)

func (*ThalesCallerSession) SpentOnMarket added in v0.5.4

func (_Thales *ThalesCallerSession) SpentOnMarket(arg0 common.Address) (*big.Int, error)

SpentOnMarket is a free data retrieval call binding the contract method 0xc4dc27d7.

Solidity: function spentOnMarket(address ) view returns(uint256)

func (*ThalesCallerSession) StakingThales added in v0.5.4

func (_Thales *ThalesCallerSession) StakingThales() (common.Address, error)

StakingThales is a free data retrieval call binding the contract method 0xfd8a8cc6.

Solidity: function stakingThales() view returns(address)

func (*ThalesCallerSession) Usdc added in v0.5.4

func (_Thales *ThalesCallerSession) Usdc() (common.Address, error)

Usdc is a free data retrieval call binding the contract method 0x3e413bee.

Solidity: function usdc() view returns(address)

func (*ThalesCallerSession) Usdt added in v0.5.4

func (_Thales *ThalesCallerSession) Usdt() (common.Address, error)

Usdt is a free data retrieval call binding the contract method 0x2f48ab7d.

Solidity: function usdt() view returns(address)

func (*ThalesCallerSession) WhitelistedAddresses added in v0.5.4

func (_Thales *ThalesCallerSession) WhitelistedAddresses(arg0 common.Address) (bool, error)

WhitelistedAddresses is a free data retrieval call binding the contract method 0x06c933d8.

Solidity: function whitelistedAddresses(address ) view returns(bool)

type ThalesFilterer added in v0.5.4

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

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

func NewThalesFilterer added in v0.5.4

func NewThalesFilterer(address common.Address, filterer bind.ContractFilterer) (*ThalesFilterer, error)

NewThalesFilterer creates a new log filterer instance of Thales, bound to a specific deployed contract.

func (*ThalesFilterer) FilterBoughtFromAmm added in v0.5.4

func (_Thales *ThalesFilterer) FilterBoughtFromAmm(opts *bind.FilterOpts) (*ThalesBoughtFromAmmIterator, error)

FilterBoughtFromAmm is a free log retrieval operation binding the contract event 0xf3bfbc0822d1ed667a2b298e71e0304f2c1f4685398189d7c39e412f733150f4.

Solidity: event BoughtFromAmm(address buyer, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

func (*ThalesFilterer) FilterOwnerChanged added in v0.5.4

func (_Thales *ThalesFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*ThalesOwnerChangedIterator, error)

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

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*ThalesFilterer) FilterOwnerNominated added in v0.5.4

func (_Thales *ThalesFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*ThalesOwnerNominatedIterator, error)

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

Solidity: event OwnerNominated(address newOwner)

func (*ThalesFilterer) FilterPauseChanged added in v0.5.4

func (_Thales *ThalesFilterer) FilterPauseChanged(opts *bind.FilterOpts) (*ThalesPauseChangedIterator, error)

FilterPauseChanged is a free log retrieval operation binding the contract event 0x8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5.

Solidity: event PauseChanged(bool isPaused)

func (*ThalesFilterer) FilterReferrerPaid added in v0.5.4

func (_Thales *ThalesFilterer) FilterReferrerPaid(opts *bind.FilterOpts) (*ThalesReferrerPaidIterator, error)

FilterReferrerPaid is a free log retrieval operation binding the contract event 0x8fa68a6a8e2fc9ff758a6e64afba8bc2f66fb082999a2c5225c8c49633faded4.

Solidity: event ReferrerPaid(address refferer, address trader, uint256 amount, uint256 volume)

func (*ThalesFilterer) FilterSetCapPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetCapPerAsset(opts *bind.FilterOpts) (*ThalesSetCapPerAssetIterator, error)

FilterSetCapPerAsset is a free log retrieval operation binding the contract event 0x5af395595015797b4d0f26b77c38dd4831298dabc7906ee3d62b80fa75d35c1e.

Solidity: event SetCapPerAsset(bytes32 asset, uint256 _cap)

func (*ThalesFilterer) FilterSetCapPerMarket added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetCapPerMarket(opts *bind.FilterOpts) (*ThalesSetCapPerMarketIterator, error)

FilterSetCapPerMarket is a free log retrieval operation binding the contract event 0xcc72495e91bfc45ec11465a752fc2866b8a5ef8960b0925774ede927ee7cbdbe.

Solidity: event SetCapPerMarket(uint256 _capPerMarket)

func (*ThalesFilterer) FilterSetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetImpliedVolatilityPerAsset(opts *bind.FilterOpts) (*ThalesSetImpliedVolatilityPerAssetIterator, error)

FilterSetImpliedVolatilityPerAsset is a free log retrieval operation binding the contract event 0x715e0a52c0b74c77d2d2012a363ac95b494302ad2abb78ac7406ec93451f1adb.

Solidity: event SetImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility)

func (*ThalesFilterer) FilterSetMaxSpread added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetMaxSpread(opts *bind.FilterOpts) (*ThalesSetMaxSpreadIterator, error)

FilterSetMaxSpread is a free log retrieval operation binding the contract event 0x4af6d03c4624e0a6b868b8f6453e047f23f3ea15e9d08c938bd4c445d7ef19b3.

Solidity: event SetMaxSpread(uint256 _spread)

func (*ThalesFilterer) FilterSetMaxSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetMaxSupportedPrice(opts *bind.FilterOpts) (*ThalesSetMaxSupportedPriceIterator, error)

FilterSetMaxSupportedPrice is a free log retrieval operation binding the contract event 0xafb2511d843afc28083da6c608f400d0262aef83b3cd885abd205b3e64f544bb.

Solidity: event SetMaxSupportedPrice(uint256 _spread)

func (*ThalesFilterer) FilterSetMinSpread added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetMinSpread(opts *bind.FilterOpts) (*ThalesSetMinSpreadIterator, error)

FilterSetMinSpread is a free log retrieval operation binding the contract event 0x1e6a338a58debcc786781a079c4459466b102ad0156cc84f51d25ef7dd8cb9b0.

Solidity: event SetMinSpread(uint256 _spread)

func (*ThalesFilterer) FilterSetMinSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetMinSupportedPrice(opts *bind.FilterOpts) (*ThalesSetMinSupportedPriceIterator, error)

FilterSetMinSupportedPrice is a free log retrieval operation binding the contract event 0xa36b45ea010fcb2e70d33048b7d3f27c265915709bf40fc7e239459424933d9f.

Solidity: event SetMinSupportedPrice(uint256 _spread)

func (*ThalesFilterer) FilterSetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetMinimalTimeLeftToMaturity(opts *bind.FilterOpts) (*ThalesSetMinimalTimeLeftToMaturityIterator, error)

FilterSetMinimalTimeLeftToMaturity is a free log retrieval operation binding the contract event 0xdc469b5583fa9b7ebd3245e1665334cd758c4bef4c5a132c62baca85effacfec.

Solidity: event SetMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity)

func (*ThalesFilterer) FilterSetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetPositionalMarketManager(opts *bind.FilterOpts) (*ThalesSetPositionalMarketManagerIterator, error)

FilterSetPositionalMarketManager is a free log retrieval operation binding the contract event 0x9987372437ace1af79923f26b948aa04afef92b2b7786144c5aae621ea84eb0a.

Solidity: event SetPositionalMarketManager(address _manager)

func (*ThalesFilterer) FilterSetPriceFeed added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetPriceFeed(opts *bind.FilterOpts) (*ThalesSetPriceFeedIterator, error)

FilterSetPriceFeed is a free log retrieval operation binding the contract event 0xf724a45d041687842411f2b977ef22ab8f43c8f1104f4592b42a00f9b34a643d.

Solidity: event SetPriceFeed(address _priceFeed)

func (*ThalesFilterer) FilterSetSUSD added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetSUSD(opts *bind.FilterOpts) (*ThalesSetSUSDIterator, error)

FilterSetSUSD is a free log retrieval operation binding the contract event 0x74a8764fc8d62d2d844c8c54426bd94ad034e0e92abdf5280ff75e2cbd678fb6.

Solidity: event SetSUSD(address sUSD)

func (*ThalesFilterer) FilterSetSafeBox added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetSafeBox(opts *bind.FilterOpts) (*ThalesSetSafeBoxIterator, error)

FilterSetSafeBox is a free log retrieval operation binding the contract event 0x49a4e3b1ee2ad2bfb1455dfad2d72e84e71a35c756d2c8296f305f12e1828bf5.

Solidity: event SetSafeBox(address _safeBox)

func (*ThalesFilterer) FilterSetSafeBoxImpact added in v0.5.4

func (_Thales *ThalesFilterer) FilterSetSafeBoxImpact(opts *bind.FilterOpts) (*ThalesSetSafeBoxImpactIterator, error)

FilterSetSafeBoxImpact is a free log retrieval operation binding the contract event 0x01edd423db862fb00774918e3b06d9c1dd3db9a99b5a194c439d2f141876f444.

Solidity: event SetSafeBoxImpact(uint256 _safeBoxImpact)

func (*ThalesFilterer) FilterSoldToAMM added in v0.5.4

func (_Thales *ThalesFilterer) FilterSoldToAMM(opts *bind.FilterOpts) (*ThalesSoldToAMMIterator, error)

FilterSoldToAMM is a free log retrieval operation binding the contract event 0x1d6ff70c632edb1e6aba7fbc0148db68c8392e30f9dfaadae2543a2543757cf6.

Solidity: event SoldToAMM(address seller, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

func (*ThalesFilterer) ParseBoughtFromAmm added in v0.5.4

func (_Thales *ThalesFilterer) ParseBoughtFromAmm(log types.Log) (*ThalesBoughtFromAmm, error)

ParseBoughtFromAmm is a log parse operation binding the contract event 0xf3bfbc0822d1ed667a2b298e71e0304f2c1f4685398189d7c39e412f733150f4.

Solidity: event BoughtFromAmm(address buyer, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

func (*ThalesFilterer) ParseOwnerChanged added in v0.5.4

func (_Thales *ThalesFilterer) ParseOwnerChanged(log types.Log) (*ThalesOwnerChanged, error)

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

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*ThalesFilterer) ParseOwnerNominated added in v0.5.4

func (_Thales *ThalesFilterer) ParseOwnerNominated(log types.Log) (*ThalesOwnerNominated, error)

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

Solidity: event OwnerNominated(address newOwner)

func (*ThalesFilterer) ParsePauseChanged added in v0.5.4

func (_Thales *ThalesFilterer) ParsePauseChanged(log types.Log) (*ThalesPauseChanged, error)

ParsePauseChanged is a log parse operation binding the contract event 0x8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5.

Solidity: event PauseChanged(bool isPaused)

func (*ThalesFilterer) ParseReferrerPaid added in v0.5.4

func (_Thales *ThalesFilterer) ParseReferrerPaid(log types.Log) (*ThalesReferrerPaid, error)

ParseReferrerPaid is a log parse operation binding the contract event 0x8fa68a6a8e2fc9ff758a6e64afba8bc2f66fb082999a2c5225c8c49633faded4.

Solidity: event ReferrerPaid(address refferer, address trader, uint256 amount, uint256 volume)

func (*ThalesFilterer) ParseSetCapPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetCapPerAsset(log types.Log) (*ThalesSetCapPerAsset, error)

ParseSetCapPerAsset is a log parse operation binding the contract event 0x5af395595015797b4d0f26b77c38dd4831298dabc7906ee3d62b80fa75d35c1e.

Solidity: event SetCapPerAsset(bytes32 asset, uint256 _cap)

func (*ThalesFilterer) ParseSetCapPerMarket added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetCapPerMarket(log types.Log) (*ThalesSetCapPerMarket, error)

ParseSetCapPerMarket is a log parse operation binding the contract event 0xcc72495e91bfc45ec11465a752fc2866b8a5ef8960b0925774ede927ee7cbdbe.

Solidity: event SetCapPerMarket(uint256 _capPerMarket)

func (*ThalesFilterer) ParseSetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetImpliedVolatilityPerAsset(log types.Log) (*ThalesSetImpliedVolatilityPerAsset, error)

ParseSetImpliedVolatilityPerAsset is a log parse operation binding the contract event 0x715e0a52c0b74c77d2d2012a363ac95b494302ad2abb78ac7406ec93451f1adb.

Solidity: event SetImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility)

func (*ThalesFilterer) ParseSetMaxSpread added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetMaxSpread(log types.Log) (*ThalesSetMaxSpread, error)

ParseSetMaxSpread is a log parse operation binding the contract event 0x4af6d03c4624e0a6b868b8f6453e047f23f3ea15e9d08c938bd4c445d7ef19b3.

Solidity: event SetMaxSpread(uint256 _spread)

func (*ThalesFilterer) ParseSetMaxSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetMaxSupportedPrice(log types.Log) (*ThalesSetMaxSupportedPrice, error)

ParseSetMaxSupportedPrice is a log parse operation binding the contract event 0xafb2511d843afc28083da6c608f400d0262aef83b3cd885abd205b3e64f544bb.

Solidity: event SetMaxSupportedPrice(uint256 _spread)

func (*ThalesFilterer) ParseSetMinSpread added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetMinSpread(log types.Log) (*ThalesSetMinSpread, error)

ParseSetMinSpread is a log parse operation binding the contract event 0x1e6a338a58debcc786781a079c4459466b102ad0156cc84f51d25ef7dd8cb9b0.

Solidity: event SetMinSpread(uint256 _spread)

func (*ThalesFilterer) ParseSetMinSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetMinSupportedPrice(log types.Log) (*ThalesSetMinSupportedPrice, error)

ParseSetMinSupportedPrice is a log parse operation binding the contract event 0xa36b45ea010fcb2e70d33048b7d3f27c265915709bf40fc7e239459424933d9f.

Solidity: event SetMinSupportedPrice(uint256 _spread)

func (*ThalesFilterer) ParseSetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetMinimalTimeLeftToMaturity(log types.Log) (*ThalesSetMinimalTimeLeftToMaturity, error)

ParseSetMinimalTimeLeftToMaturity is a log parse operation binding the contract event 0xdc469b5583fa9b7ebd3245e1665334cd758c4bef4c5a132c62baca85effacfec.

Solidity: event SetMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity)

func (*ThalesFilterer) ParseSetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetPositionalMarketManager(log types.Log) (*ThalesSetPositionalMarketManager, error)

ParseSetPositionalMarketManager is a log parse operation binding the contract event 0x9987372437ace1af79923f26b948aa04afef92b2b7786144c5aae621ea84eb0a.

Solidity: event SetPositionalMarketManager(address _manager)

func (*ThalesFilterer) ParseSetPriceFeed added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetPriceFeed(log types.Log) (*ThalesSetPriceFeed, error)

ParseSetPriceFeed is a log parse operation binding the contract event 0xf724a45d041687842411f2b977ef22ab8f43c8f1104f4592b42a00f9b34a643d.

Solidity: event SetPriceFeed(address _priceFeed)

func (*ThalesFilterer) ParseSetSUSD added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetSUSD(log types.Log) (*ThalesSetSUSD, error)

ParseSetSUSD is a log parse operation binding the contract event 0x74a8764fc8d62d2d844c8c54426bd94ad034e0e92abdf5280ff75e2cbd678fb6.

Solidity: event SetSUSD(address sUSD)

func (*ThalesFilterer) ParseSetSafeBox added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetSafeBox(log types.Log) (*ThalesSetSafeBox, error)

ParseSetSafeBox is a log parse operation binding the contract event 0x49a4e3b1ee2ad2bfb1455dfad2d72e84e71a35c756d2c8296f305f12e1828bf5.

Solidity: event SetSafeBox(address _safeBox)

func (*ThalesFilterer) ParseSetSafeBoxImpact added in v0.5.4

func (_Thales *ThalesFilterer) ParseSetSafeBoxImpact(log types.Log) (*ThalesSetSafeBoxImpact, error)

ParseSetSafeBoxImpact is a log parse operation binding the contract event 0x01edd423db862fb00774918e3b06d9c1dd3db9a99b5a194c439d2f141876f444.

Solidity: event SetSafeBoxImpact(uint256 _safeBoxImpact)

func (*ThalesFilterer) ParseSoldToAMM added in v0.5.4

func (_Thales *ThalesFilterer) ParseSoldToAMM(log types.Log) (*ThalesSoldToAMM, error)

ParseSoldToAMM is a log parse operation binding the contract event 0x1d6ff70c632edb1e6aba7fbc0148db68c8392e30f9dfaadae2543a2543757cf6.

Solidity: event SoldToAMM(address seller, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

func (*ThalesFilterer) WatchBoughtFromAmm added in v0.5.4

func (_Thales *ThalesFilterer) WatchBoughtFromAmm(opts *bind.WatchOpts, sink chan<- *ThalesBoughtFromAmm) (event.Subscription, error)

WatchBoughtFromAmm is a free log subscription operation binding the contract event 0xf3bfbc0822d1ed667a2b298e71e0304f2c1f4685398189d7c39e412f733150f4.

Solidity: event BoughtFromAmm(address buyer, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

func (*ThalesFilterer) WatchOwnerChanged added in v0.5.4

func (_Thales *ThalesFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *ThalesOwnerChanged) (event.Subscription, error)

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

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*ThalesFilterer) WatchOwnerNominated added in v0.5.4

func (_Thales *ThalesFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *ThalesOwnerNominated) (event.Subscription, error)

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

Solidity: event OwnerNominated(address newOwner)

func (*ThalesFilterer) WatchPauseChanged added in v0.5.4

func (_Thales *ThalesFilterer) WatchPauseChanged(opts *bind.WatchOpts, sink chan<- *ThalesPauseChanged) (event.Subscription, error)

WatchPauseChanged is a free log subscription operation binding the contract event 0x8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5.

Solidity: event PauseChanged(bool isPaused)

func (*ThalesFilterer) WatchReferrerPaid added in v0.5.4

func (_Thales *ThalesFilterer) WatchReferrerPaid(opts *bind.WatchOpts, sink chan<- *ThalesReferrerPaid) (event.Subscription, error)

WatchReferrerPaid is a free log subscription operation binding the contract event 0x8fa68a6a8e2fc9ff758a6e64afba8bc2f66fb082999a2c5225c8c49633faded4.

Solidity: event ReferrerPaid(address refferer, address trader, uint256 amount, uint256 volume)

func (*ThalesFilterer) WatchSetCapPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetCapPerAsset(opts *bind.WatchOpts, sink chan<- *ThalesSetCapPerAsset) (event.Subscription, error)

WatchSetCapPerAsset is a free log subscription operation binding the contract event 0x5af395595015797b4d0f26b77c38dd4831298dabc7906ee3d62b80fa75d35c1e.

Solidity: event SetCapPerAsset(bytes32 asset, uint256 _cap)

func (*ThalesFilterer) WatchSetCapPerMarket added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetCapPerMarket(opts *bind.WatchOpts, sink chan<- *ThalesSetCapPerMarket) (event.Subscription, error)

WatchSetCapPerMarket is a free log subscription operation binding the contract event 0xcc72495e91bfc45ec11465a752fc2866b8a5ef8960b0925774ede927ee7cbdbe.

Solidity: event SetCapPerMarket(uint256 _capPerMarket)

func (*ThalesFilterer) WatchSetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetImpliedVolatilityPerAsset(opts *bind.WatchOpts, sink chan<- *ThalesSetImpliedVolatilityPerAsset) (event.Subscription, error)

WatchSetImpliedVolatilityPerAsset is a free log subscription operation binding the contract event 0x715e0a52c0b74c77d2d2012a363ac95b494302ad2abb78ac7406ec93451f1adb.

Solidity: event SetImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility)

func (*ThalesFilterer) WatchSetMaxSpread added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetMaxSpread(opts *bind.WatchOpts, sink chan<- *ThalesSetMaxSpread) (event.Subscription, error)

WatchSetMaxSpread is a free log subscription operation binding the contract event 0x4af6d03c4624e0a6b868b8f6453e047f23f3ea15e9d08c938bd4c445d7ef19b3.

Solidity: event SetMaxSpread(uint256 _spread)

func (*ThalesFilterer) WatchSetMaxSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetMaxSupportedPrice(opts *bind.WatchOpts, sink chan<- *ThalesSetMaxSupportedPrice) (event.Subscription, error)

WatchSetMaxSupportedPrice is a free log subscription operation binding the contract event 0xafb2511d843afc28083da6c608f400d0262aef83b3cd885abd205b3e64f544bb.

Solidity: event SetMaxSupportedPrice(uint256 _spread)

func (*ThalesFilterer) WatchSetMinSpread added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetMinSpread(opts *bind.WatchOpts, sink chan<- *ThalesSetMinSpread) (event.Subscription, error)

WatchSetMinSpread is a free log subscription operation binding the contract event 0x1e6a338a58debcc786781a079c4459466b102ad0156cc84f51d25ef7dd8cb9b0.

Solidity: event SetMinSpread(uint256 _spread)

func (*ThalesFilterer) WatchSetMinSupportedPrice added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetMinSupportedPrice(opts *bind.WatchOpts, sink chan<- *ThalesSetMinSupportedPrice) (event.Subscription, error)

WatchSetMinSupportedPrice is a free log subscription operation binding the contract event 0xa36b45ea010fcb2e70d33048b7d3f27c265915709bf40fc7e239459424933d9f.

Solidity: event SetMinSupportedPrice(uint256 _spread)

func (*ThalesFilterer) WatchSetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetMinimalTimeLeftToMaturity(opts *bind.WatchOpts, sink chan<- *ThalesSetMinimalTimeLeftToMaturity) (event.Subscription, error)

WatchSetMinimalTimeLeftToMaturity is a free log subscription operation binding the contract event 0xdc469b5583fa9b7ebd3245e1665334cd758c4bef4c5a132c62baca85effacfec.

Solidity: event SetMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity)

func (*ThalesFilterer) WatchSetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetPositionalMarketManager(opts *bind.WatchOpts, sink chan<- *ThalesSetPositionalMarketManager) (event.Subscription, error)

WatchSetPositionalMarketManager is a free log subscription operation binding the contract event 0x9987372437ace1af79923f26b948aa04afef92b2b7786144c5aae621ea84eb0a.

Solidity: event SetPositionalMarketManager(address _manager)

func (*ThalesFilterer) WatchSetPriceFeed added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetPriceFeed(opts *bind.WatchOpts, sink chan<- *ThalesSetPriceFeed) (event.Subscription, error)

WatchSetPriceFeed is a free log subscription operation binding the contract event 0xf724a45d041687842411f2b977ef22ab8f43c8f1104f4592b42a00f9b34a643d.

Solidity: event SetPriceFeed(address _priceFeed)

func (*ThalesFilterer) WatchSetSUSD added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetSUSD(opts *bind.WatchOpts, sink chan<- *ThalesSetSUSD) (event.Subscription, error)

WatchSetSUSD is a free log subscription operation binding the contract event 0x74a8764fc8d62d2d844c8c54426bd94ad034e0e92abdf5280ff75e2cbd678fb6.

Solidity: event SetSUSD(address sUSD)

func (*ThalesFilterer) WatchSetSafeBox added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetSafeBox(opts *bind.WatchOpts, sink chan<- *ThalesSetSafeBox) (event.Subscription, error)

WatchSetSafeBox is a free log subscription operation binding the contract event 0x49a4e3b1ee2ad2bfb1455dfad2d72e84e71a35c756d2c8296f305f12e1828bf5.

Solidity: event SetSafeBox(address _safeBox)

func (*ThalesFilterer) WatchSetSafeBoxImpact added in v0.5.4

func (_Thales *ThalesFilterer) WatchSetSafeBoxImpact(opts *bind.WatchOpts, sink chan<- *ThalesSetSafeBoxImpact) (event.Subscription, error)

WatchSetSafeBoxImpact is a free log subscription operation binding the contract event 0x01edd423db862fb00774918e3b06d9c1dd3db9a99b5a194c439d2f141876f444.

Solidity: event SetSafeBoxImpact(uint256 _safeBoxImpact)

func (*ThalesFilterer) WatchSoldToAMM added in v0.5.4

func (_Thales *ThalesFilterer) WatchSoldToAMM(opts *bind.WatchOpts, sink chan<- *ThalesSoldToAMM) (event.Subscription, error)

WatchSoldToAMM is a free log subscription operation binding the contract event 0x1d6ff70c632edb1e6aba7fbc0148db68c8392e30f9dfaadae2543a2543757cf6.

Solidity: event SoldToAMM(address seller, address market, uint8 position, uint256 amount, uint256 sUSDPaid, address susd, address asset)

type ThalesOwnerChanged added in v0.5.4

type ThalesOwnerChanged struct {
	OldOwner common.Address
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesOwnerChanged represents a OwnerChanged event raised by the Thales contract.

type ThalesOwnerChangedIterator added in v0.5.4

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

ThalesOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Thales contract.

func (*ThalesOwnerChangedIterator) Close added in v0.5.4

func (it *ThalesOwnerChangedIterator) Close() error

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

func (*ThalesOwnerChangedIterator) Error added in v0.5.4

func (it *ThalesOwnerChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesOwnerChangedIterator) Next added in v0.5.4

func (it *ThalesOwnerChangedIterator) 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 ThalesOwnerNominated added in v0.5.4

type ThalesOwnerNominated struct {
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesOwnerNominated represents a OwnerNominated event raised by the Thales contract.

type ThalesOwnerNominatedIterator added in v0.5.4

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

ThalesOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the Thales contract.

func (*ThalesOwnerNominatedIterator) Close added in v0.5.4

func (it *ThalesOwnerNominatedIterator) Close() error

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

func (*ThalesOwnerNominatedIterator) Error added in v0.5.4

func (it *ThalesOwnerNominatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesOwnerNominatedIterator) Next added in v0.5.4

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 ThalesPauseChanged added in v0.5.4

type ThalesPauseChanged struct {
	IsPaused bool
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesPauseChanged represents a PauseChanged event raised by the Thales contract.

type ThalesPauseChangedIterator added in v0.5.4

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

ThalesPauseChangedIterator is returned from FilterPauseChanged and is used to iterate over the raw logs and unpacked data for PauseChanged events raised by the Thales contract.

func (*ThalesPauseChangedIterator) Close added in v0.5.4

func (it *ThalesPauseChangedIterator) Close() error

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

func (*ThalesPauseChangedIterator) Error added in v0.5.4

func (it *ThalesPauseChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesPauseChangedIterator) Next added in v0.5.4

func (it *ThalesPauseChangedIterator) 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 ThalesRaw added in v0.5.4

type ThalesRaw struct {
	Contract *Thales // Generic contract binding to access the raw methods on
}

ThalesRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ThalesRaw) Call added in v0.5.4

func (_Thales *ThalesRaw) 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 (*ThalesRaw) Transact added in v0.5.4

func (_Thales *ThalesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ThalesRaw) Transfer added in v0.5.4

func (_Thales *ThalesRaw) 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 ThalesReferrerPaid added in v0.5.4

type ThalesReferrerPaid struct {
	Refferer common.Address
	Trader   common.Address
	Amount   *big.Int
	Volume   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesReferrerPaid represents a ReferrerPaid event raised by the Thales contract.

type ThalesReferrerPaidIterator added in v0.5.4

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

ThalesReferrerPaidIterator is returned from FilterReferrerPaid and is used to iterate over the raw logs and unpacked data for ReferrerPaid events raised by the Thales contract.

func (*ThalesReferrerPaidIterator) Close added in v0.5.4

func (it *ThalesReferrerPaidIterator) Close() error

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

func (*ThalesReferrerPaidIterator) Error added in v0.5.4

func (it *ThalesReferrerPaidIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesReferrerPaidIterator) Next added in v0.5.4

func (it *ThalesReferrerPaidIterator) 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 ThalesSession added in v0.5.4

type ThalesSession struct {
	Contract     *Thales           // 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
}

ThalesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ThalesSession) AcceptOwnership added in v0.5.4

func (_Thales *ThalesSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*ThalesSession) AvailableToBuyFromAMM added in v0.5.4

func (_Thales *ThalesSession) AvailableToBuyFromAMM(market common.Address, position uint8) (*big.Int, error)

AvailableToBuyFromAMM is a free data retrieval call binding the contract method 0xefc15251.

Solidity: function availableToBuyFromAMM(address market, uint8 position) view returns(uint256 _available)

func (*ThalesSession) AvailableToSellToAMM added in v0.5.4

func (_Thales *ThalesSession) AvailableToSellToAMM(market common.Address, position uint8) (*big.Int, error)

AvailableToSellToAMM is a free data retrieval call binding the contract method 0xc2783f92.

Solidity: function availableToSellToAMM(address market, uint8 position) view returns(uint256)

func (*ThalesSession) BuyFromAMM added in v0.5.4

func (_Thales *ThalesSession) BuyFromAMM(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

BuyFromAMM is a paid mutator transaction binding the contract method 0x8875eb84.

Solidity: function buyFromAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesSession) BuyFromAMMWithDifferentCollateralAndReferrer added in v0.5.4

func (_Thales *ThalesSession) BuyFromAMMWithDifferentCollateralAndReferrer(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, collateral common.Address, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithDifferentCollateralAndReferrer is a paid mutator transaction binding the contract method 0x6cc5a6ff.

Solidity: function buyFromAMMWithDifferentCollateralAndReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address collateral, address _referrer) returns()

func (*ThalesSession) BuyFromAMMWithReferrer added in v0.5.4

func (_Thales *ThalesSession) BuyFromAMMWithReferrer(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithReferrer is a paid mutator transaction binding the contract method 0x9f916c9f.

Solidity: function buyFromAMMWithReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address _referrer) returns()

func (*ThalesSession) BuyFromAmmQuote added in v0.5.4

func (_Thales *ThalesSession) BuyFromAmmQuote(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyFromAmmQuote is a free data retrieval call binding the contract method 0x270e13ef.

Solidity: function buyFromAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesSession) BuyFromAmmQuoteWithDifferentCollateral added in v0.5.4

func (_Thales *ThalesSession) BuyFromAmmQuoteWithDifferentCollateral(market common.Address, position uint8, amount *big.Int, collateral common.Address) (struct {
	CollateralQuote *big.Int
	SUSDToPay       *big.Int
}, error)

BuyFromAmmQuoteWithDifferentCollateral is a free data retrieval call binding the contract method 0xd4a2641b.

Solidity: function buyFromAmmQuoteWithDifferentCollateral(address market, uint8 position, uint256 amount, address collateral) view returns(uint256 collateralQuote, uint256 sUSDToPay)

func (*ThalesSession) BuyPriceImpact added in v0.5.4

func (_Thales *ThalesSession) BuyPriceImpact(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

BuyPriceImpact is a free data retrieval call binding the contract method 0xbf46c0b4.

Solidity: function buyPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256)

func (*ThalesSession) CalculateOdds added in v0.5.4

func (_Thales *ThalesSession) CalculateOdds(_price *big.Int, strike *big.Int, timeLeftInDays *big.Int, volatility *big.Int) (*big.Int, error)

CalculateOdds is a free data retrieval call binding the contract method 0xa8cd06e8.

Solidity: function calculateOdds(uint256 _price, uint256 strike, uint256 timeLeftInDays, uint256 volatility) view returns(uint256)

func (*ThalesSession) CanExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesSession) CanExerciseMaturedMarket(market common.Address) (bool, error)

CanExerciseMaturedMarket is a free data retrieval call binding the contract method 0xca1d578e.

Solidity: function canExerciseMaturedMarket(address market) view returns(bool _canExercise)

func (*ThalesSession) CapPerMarket added in v0.5.4

func (_Thales *ThalesSession) CapPerMarket() (*big.Int, error)

CapPerMarket is a free data retrieval call binding the contract method 0xfb91d41c.

Solidity: function capPerMarket() view returns(uint256)

func (*ThalesSession) CurveOnrampEnabled added in v0.5.4

func (_Thales *ThalesSession) CurveOnrampEnabled() (bool, error)

CurveOnrampEnabled is a free data retrieval call binding the contract method 0x1fbb38e8.

Solidity: function curveOnrampEnabled() view returns(bool)

func (*ThalesSession) CurveSUSD added in v0.5.4

func (_Thales *ThalesSession) CurveSUSD() (common.Address, error)

CurveSUSD is a free data retrieval call binding the contract method 0xa5bf660d.

Solidity: function curveSUSD() view returns(address)

func (*ThalesSession) Dai added in v0.5.4

func (_Thales *ThalesSession) Dai() (common.Address, error)

Dai is a free data retrieval call binding the contract method 0xf4b9fa75.

Solidity: function dai() view returns(address)

func (*ThalesSession) DeciMath added in v0.5.4

func (_Thales *ThalesSession) DeciMath() (common.Address, error)

DeciMath is a free data retrieval call binding the contract method 0x6cfa636e.

Solidity: function deciMath() view returns(address)

func (*ThalesSession) ExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesSession) ExerciseMaturedMarket(market common.Address) (*types.Transaction, error)

ExerciseMaturedMarket is a paid mutator transaction binding the contract method 0x51b9181f.

Solidity: function exerciseMaturedMarket(address market) returns()

func (*ThalesSession) GetCapPerAsset added in v0.5.4

func (_Thales *ThalesSession) GetCapPerAsset(asset [32]byte) (*big.Int, error)

GetCapPerAsset is a free data retrieval call binding the contract method 0xf8debeb7.

Solidity: function getCapPerAsset(bytes32 asset) view returns(uint256 _cap)

func (*ThalesSession) ImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesSession) ImpliedVolatilityPerAsset(arg0 [32]byte) (*big.Int, error)

ImpliedVolatilityPerAsset is a free data retrieval call binding the contract method 0xf502b003.

Solidity: function impliedVolatilityPerAsset(bytes32 ) view returns(uint256)

func (*ThalesSession) InitNonReentrant added in v0.5.4

func (_Thales *ThalesSession) InitNonReentrant() (*types.Transaction, error)

InitNonReentrant is a paid mutator transaction binding the contract method 0xebc79772.

Solidity: function initNonReentrant() returns()

func (*ThalesSession) Initialize added in v0.5.4

func (_Thales *ThalesSession) Initialize(_owner common.Address, _priceFeed common.Address, _sUSD common.Address, _capPerMarket *big.Int, _deciMath common.Address, _min_spread *big.Int, _max_spread *big.Int, _minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xad18f0da.

Solidity: function initialize(address _owner, address _priceFeed, address _sUSD, uint256 _capPerMarket, address _deciMath, uint256 _min_spread, uint256 _max_spread, uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesSession) IsMarketInAMMTrading added in v0.5.4

func (_Thales *ThalesSession) IsMarketInAMMTrading(market common.Address) (bool, error)

IsMarketInAMMTrading is a free data retrieval call binding the contract method 0x5727a0f3.

Solidity: function isMarketInAMMTrading(address market) view returns(bool isTrading)

func (*ThalesSession) LastPauseTime added in v0.5.4

func (_Thales *ThalesSession) LastPauseTime() (*big.Int, error)

LastPauseTime is a free data retrieval call binding the contract method 0x91b4ded9.

Solidity: function lastPauseTime() view returns(uint256)

func (*ThalesSession) MAXAPPROVAL added in v0.5.4

func (_Thales *ThalesSession) MAXAPPROVAL() (*big.Int, error)

MAXAPPROVAL is a free data retrieval call binding the contract method 0x7f4ed8ee.

Solidity: function MAX_APPROVAL() view returns(uint256)

func (*ThalesSession) Manager added in v0.5.4

func (_Thales *ThalesSession) Manager() (common.Address, error)

Manager is a free data retrieval call binding the contract method 0x481c6a75.

Solidity: function manager() view returns(address)

func (*ThalesSession) MaxSpread added in v0.5.4

func (_Thales *ThalesSession) MaxSpread() (*big.Int, error)

MaxSpread is a free data retrieval call binding the contract method 0x316425c3.

Solidity: function max_spread() view returns(uint256)

func (*ThalesSession) MaxSupportedPrice added in v0.5.4

func (_Thales *ThalesSession) MaxSupportedPrice() (*big.Int, error)

MaxSupportedPrice is a free data retrieval call binding the contract method 0x19b844a6.

Solidity: function maxSupportedPrice() view returns(uint256)

func (*ThalesSession) MinSpread added in v0.5.4

func (_Thales *ThalesSession) MinSpread() (*big.Int, error)

MinSpread is a free data retrieval call binding the contract method 0x6aaa81b6.

Solidity: function min_spread() view returns(uint256)

func (*ThalesSession) MinSupportedPrice added in v0.5.4

func (_Thales *ThalesSession) MinSupportedPrice() (*big.Int, error)

MinSupportedPrice is a free data retrieval call binding the contract method 0x931b2040.

Solidity: function minSupportedPrice() view returns(uint256)

func (*ThalesSession) MinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesSession) MinimalTimeLeftToMaturity() (*big.Int, error)

MinimalTimeLeftToMaturity is a free data retrieval call binding the contract method 0xdf8974d0.

Solidity: function minimalTimeLeftToMaturity() view returns(uint256)

func (*ThalesSession) NominateNewOwner added in v0.5.4

func (_Thales *ThalesSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*ThalesSession) NominatedOwner added in v0.5.4

func (_Thales *ThalesSession) NominatedOwner() (common.Address, error)

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

Solidity: function nominatedOwner() view returns(address)

func (*ThalesSession) Owner added in v0.5.4

func (_Thales *ThalesSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ThalesSession) Paused added in v0.5.4

func (_Thales *ThalesSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ThalesSession) PreviousManager added in v0.5.4

func (_Thales *ThalesSession) PreviousManager() (common.Address, error)

PreviousManager is a free data retrieval call binding the contract method 0x06f58fe4.

Solidity: function previousManager() view returns(address)

func (*ThalesSession) Price added in v0.5.4

func (_Thales *ThalesSession) Price(market common.Address, position uint8) (*big.Int, error)

Price is a free data retrieval call binding the contract method 0x6ed033f8.

Solidity: function price(address market, uint8 position) view returns(uint256 price)

func (*ThalesSession) PriceFeed added in v0.5.4

func (_Thales *ThalesSession) PriceFeed() (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*ThalesSession) Referrals added in v0.5.4

func (_Thales *ThalesSession) Referrals() (common.Address, error)

Referrals is a free data retrieval call binding the contract method 0xd3dc7539.

Solidity: function referrals() view returns(address)

func (*ThalesSession) ReferrerFee added in v0.5.4

func (_Thales *ThalesSession) ReferrerFee() (*big.Int, error)

ReferrerFee is a free data retrieval call binding the contract method 0x6e88a7bd.

Solidity: function referrerFee() view returns(uint256)

func (*ThalesSession) RetrieveSUSDAmount added in v0.5.4

func (_Thales *ThalesSession) RetrieveSUSDAmount(account common.Address, amount *big.Int) (*types.Transaction, error)

RetrieveSUSDAmount is a paid mutator transaction binding the contract method 0xefb1fe35.

Solidity: function retrieveSUSDAmount(address account, uint256 amount) returns()

func (*ThalesSession) SUSD added in v0.5.4

func (_Thales *ThalesSession) SUSD() (common.Address, error)

SUSD is a free data retrieval call binding the contract method 0x9324cac7.

Solidity: function sUSD() view returns(address)

func (*ThalesSession) SafeBox added in v0.5.4

func (_Thales *ThalesSession) SafeBox() (common.Address, error)

SafeBox is a free data retrieval call binding the contract method 0x48663e95.

Solidity: function safeBox() view returns(address)

func (*ThalesSession) SafeBoxImpact added in v0.5.4

func (_Thales *ThalesSession) SafeBoxImpact() (*big.Int, error)

SafeBoxImpact is a free data retrieval call binding the contract method 0xd69fb668.

Solidity: function safeBoxImpact() view returns(uint256)

func (*ThalesSession) SellPriceImpact added in v0.5.4

func (_Thales *ThalesSession) SellPriceImpact(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellPriceImpact is a free data retrieval call binding the contract method 0x1c37d04b.

Solidity: function sellPriceImpact(address market, uint8 position, uint256 amount) view returns(uint256 _impact)

func (*ThalesSession) SellToAMM added in v0.5.4

func (_Thales *ThalesSession) SellToAMM(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

SellToAMM is a paid mutator transaction binding the contract method 0x3ce1108d.

Solidity: function sellToAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesSession) SellToAmmQuote added in v0.5.4

func (_Thales *ThalesSession) SellToAmmQuote(market common.Address, position uint8, amount *big.Int) (*big.Int, error)

SellToAmmQuote is a free data retrieval call binding the contract method 0x0f13aae8.

Solidity: function sellToAmmQuote(address market, uint8 position, uint256 amount) view returns(uint256 _available)

func (*ThalesSession) SetCapPerAsset added in v0.5.4

func (_Thales *ThalesSession) SetCapPerAsset(asset [32]byte, _cap *big.Int) (*types.Transaction, error)

SetCapPerAsset is a paid mutator transaction binding the contract method 0xd1624924.

Solidity: function setCapPerAsset(bytes32 asset, uint256 _cap) returns()

func (*ThalesSession) SetCurveSUSD added in v0.5.4

func (_Thales *ThalesSession) SetCurveSUSD(_curveSUSD common.Address, _dai common.Address, _usdc common.Address, _usdt common.Address, _curveOnrampEnabled bool) (*types.Transaction, error)

SetCurveSUSD is a paid mutator transaction binding the contract method 0xb42b5798.

Solidity: function setCurveSUSD(address _curveSUSD, address _dai, address _usdc, address _usdt, bool _curveOnrampEnabled) returns()

func (*ThalesSession) SetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesSession) SetImpliedVolatilityPerAsset(asset [32]byte, _impliedVolatility *big.Int) (*types.Transaction, error)

SetImpliedVolatilityPerAsset is a paid mutator transaction binding the contract method 0x5ef85b26.

Solidity: function setImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility) returns()

func (*ThalesSession) SetMinMaxSpread added in v0.5.4

func (_Thales *ThalesSession) SetMinMaxSpread(_minspread *big.Int, _maxspread *big.Int) (*types.Transaction, error)

SetMinMaxSpread is a paid mutator transaction binding the contract method 0x82615349.

Solidity: function setMinMaxSpread(uint256 _minspread, uint256 _maxspread) returns()

func (*ThalesSession) SetMinMaxSupportedPriceAndCap added in v0.5.4

func (_Thales *ThalesSession) SetMinMaxSupportedPriceAndCap(_minSupportedPrice *big.Int, _maxSupportedPrice *big.Int, _capPerMarket *big.Int) (*types.Transaction, error)

SetMinMaxSupportedPriceAndCap is a paid mutator transaction binding the contract method 0xc8f0b4ec.

Solidity: function setMinMaxSupportedPriceAndCap(uint256 _minSupportedPrice, uint256 _maxSupportedPrice, uint256 _capPerMarket) returns()

func (*ThalesSession) SetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesSession) SetMinimalTimeLeftToMaturity(_minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

SetMinimalTimeLeftToMaturity is a paid mutator transaction binding the contract method 0x85170209.

Solidity: function setMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesSession) SetOwner added in v0.5.4

func (_Thales *ThalesSession) SetOwner(_owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

func (*ThalesSession) SetPaused added in v0.5.4

func (_Thales *ThalesSession) SetPaused(_paused bool) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.

Solidity: function setPaused(bool _paused) returns()

func (*ThalesSession) SetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesSession) SetPositionalMarketManager(_manager common.Address) (*types.Transaction, error)

SetPositionalMarketManager is a paid mutator transaction binding the contract method 0xbf996ae3.

Solidity: function setPositionalMarketManager(address _manager) returns()

func (*ThalesSession) SetPriceFeedAndSUSD added in v0.5.4

func (_Thales *ThalesSession) SetPriceFeedAndSUSD(_priceFeed common.Address, _sUSD common.Address) (*types.Transaction, error)

SetPriceFeedAndSUSD is a paid mutator transaction binding the contract method 0xbbdf88ce.

Solidity: function setPriceFeedAndSUSD(address _priceFeed, address _sUSD) returns()

func (*ThalesSession) SetSafeBoxData added in v0.5.4

func (_Thales *ThalesSession) SetSafeBoxData(_safeBox common.Address, _safeBoxImpact *big.Int) (*types.Transaction, error)

SetSafeBoxData is a paid mutator transaction binding the contract method 0xfc1ed857.

Solidity: function setSafeBoxData(address _safeBox, uint256 _safeBoxImpact) returns()

func (*ThalesSession) SetStakingThalesAndReferrals added in v0.5.4

func (_Thales *ThalesSession) SetStakingThalesAndReferrals(_stakingThales common.Address, _referrals common.Address, _referrerFee *big.Int) (*types.Transaction, error)

SetStakingThalesAndReferrals is a paid mutator transaction binding the contract method 0xcafb3ca2.

Solidity: function setStakingThalesAndReferrals(address _stakingThales, address _referrals, uint256 _referrerFee) returns()

func (*ThalesSession) SetWhitelistedAddress added in v0.5.4

func (_Thales *ThalesSession) SetWhitelistedAddress(_address common.Address, enabled bool) (*types.Transaction, error)

SetWhitelistedAddress is a paid mutator transaction binding the contract method 0x7b337a36.

Solidity: function setWhitelistedAddress(address _address, bool enabled) returns()

func (*ThalesSession) SpentOnMarket added in v0.5.4

func (_Thales *ThalesSession) SpentOnMarket(arg0 common.Address) (*big.Int, error)

SpentOnMarket is a free data retrieval call binding the contract method 0xc4dc27d7.

Solidity: function spentOnMarket(address ) view returns(uint256)

func (*ThalesSession) StakingThales added in v0.5.4

func (_Thales *ThalesSession) StakingThales() (common.Address, error)

StakingThales is a free data retrieval call binding the contract method 0xfd8a8cc6.

Solidity: function stakingThales() view returns(address)

func (*ThalesSession) TransferOwnershipAtInit added in v0.5.4

func (_Thales *ThalesSession) TransferOwnershipAtInit(proxyAddress common.Address) (*types.Transaction, error)

TransferOwnershipAtInit is a paid mutator transaction binding the contract method 0xc3b83f5f.

Solidity: function transferOwnershipAtInit(address proxyAddress) returns()

func (*ThalesSession) Usdc added in v0.5.4

func (_Thales *ThalesSession) Usdc() (common.Address, error)

Usdc is a free data retrieval call binding the contract method 0x3e413bee.

Solidity: function usdc() view returns(address)

func (*ThalesSession) Usdt added in v0.5.4

func (_Thales *ThalesSession) Usdt() (common.Address, error)

Usdt is a free data retrieval call binding the contract method 0x2f48ab7d.

Solidity: function usdt() view returns(address)

func (*ThalesSession) WhitelistedAddresses added in v0.5.4

func (_Thales *ThalesSession) WhitelistedAddresses(arg0 common.Address) (bool, error)

WhitelistedAddresses is a free data retrieval call binding the contract method 0x06c933d8.

Solidity: function whitelistedAddresses(address ) view returns(bool)

type ThalesSetCapPerAsset added in v0.5.4

type ThalesSetCapPerAsset struct {
	Asset [32]byte
	Cap   *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ThalesSetCapPerAsset represents a SetCapPerAsset event raised by the Thales contract.

type ThalesSetCapPerAssetIterator added in v0.5.4

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

ThalesSetCapPerAssetIterator is returned from FilterSetCapPerAsset and is used to iterate over the raw logs and unpacked data for SetCapPerAsset events raised by the Thales contract.

func (*ThalesSetCapPerAssetIterator) Close added in v0.5.4

func (it *ThalesSetCapPerAssetIterator) Close() error

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

func (*ThalesSetCapPerAssetIterator) Error added in v0.5.4

func (it *ThalesSetCapPerAssetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetCapPerAssetIterator) Next added in v0.5.4

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 ThalesSetCapPerMarket added in v0.5.4

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

ThalesSetCapPerMarket represents a SetCapPerMarket event raised by the Thales contract.

type ThalesSetCapPerMarketIterator added in v0.5.4

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

ThalesSetCapPerMarketIterator is returned from FilterSetCapPerMarket and is used to iterate over the raw logs and unpacked data for SetCapPerMarket events raised by the Thales contract.

func (*ThalesSetCapPerMarketIterator) Close added in v0.5.4

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

func (*ThalesSetCapPerMarketIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetCapPerMarketIterator) Next added in v0.5.4

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 ThalesSetImpliedVolatilityPerAsset added in v0.5.4

type ThalesSetImpliedVolatilityPerAsset struct {
	Asset             [32]byte
	ImpliedVolatility *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

ThalesSetImpliedVolatilityPerAsset represents a SetImpliedVolatilityPerAsset event raised by the Thales contract.

type ThalesSetImpliedVolatilityPerAssetIterator added in v0.5.4

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

ThalesSetImpliedVolatilityPerAssetIterator is returned from FilterSetImpliedVolatilityPerAsset and is used to iterate over the raw logs and unpacked data for SetImpliedVolatilityPerAsset events raised by the Thales contract.

func (*ThalesSetImpliedVolatilityPerAssetIterator) Close added in v0.5.4

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

func (*ThalesSetImpliedVolatilityPerAssetIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetImpliedVolatilityPerAssetIterator) Next added in v0.5.4

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 ThalesSetMaxSpread added in v0.5.4

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

ThalesSetMaxSpread represents a SetMaxSpread event raised by the Thales contract.

type ThalesSetMaxSpreadIterator added in v0.5.4

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

ThalesSetMaxSpreadIterator is returned from FilterSetMaxSpread and is used to iterate over the raw logs and unpacked data for SetMaxSpread events raised by the Thales contract.

func (*ThalesSetMaxSpreadIterator) Close added in v0.5.4

func (it *ThalesSetMaxSpreadIterator) Close() error

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

func (*ThalesSetMaxSpreadIterator) Error added in v0.5.4

func (it *ThalesSetMaxSpreadIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetMaxSpreadIterator) Next added in v0.5.4

func (it *ThalesSetMaxSpreadIterator) 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 ThalesSetMaxSupportedPrice added in v0.5.4

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

ThalesSetMaxSupportedPrice represents a SetMaxSupportedPrice event raised by the Thales contract.

type ThalesSetMaxSupportedPriceIterator added in v0.5.4

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

ThalesSetMaxSupportedPriceIterator is returned from FilterSetMaxSupportedPrice and is used to iterate over the raw logs and unpacked data for SetMaxSupportedPrice events raised by the Thales contract.

func (*ThalesSetMaxSupportedPriceIterator) Close added in v0.5.4

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

func (*ThalesSetMaxSupportedPriceIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetMaxSupportedPriceIterator) Next added in v0.5.4

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 ThalesSetMinSpread added in v0.5.4

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

ThalesSetMinSpread represents a SetMinSpread event raised by the Thales contract.

type ThalesSetMinSpreadIterator added in v0.5.4

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

ThalesSetMinSpreadIterator is returned from FilterSetMinSpread and is used to iterate over the raw logs and unpacked data for SetMinSpread events raised by the Thales contract.

func (*ThalesSetMinSpreadIterator) Close added in v0.5.4

func (it *ThalesSetMinSpreadIterator) Close() error

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

func (*ThalesSetMinSpreadIterator) Error added in v0.5.4

func (it *ThalesSetMinSpreadIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetMinSpreadIterator) Next added in v0.5.4

func (it *ThalesSetMinSpreadIterator) 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 ThalesSetMinSupportedPrice added in v0.5.4

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

ThalesSetMinSupportedPrice represents a SetMinSupportedPrice event raised by the Thales contract.

type ThalesSetMinSupportedPriceIterator added in v0.5.4

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

ThalesSetMinSupportedPriceIterator is returned from FilterSetMinSupportedPrice and is used to iterate over the raw logs and unpacked data for SetMinSupportedPrice events raised by the Thales contract.

func (*ThalesSetMinSupportedPriceIterator) Close added in v0.5.4

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

func (*ThalesSetMinSupportedPriceIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetMinSupportedPriceIterator) Next added in v0.5.4

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 ThalesSetMinimalTimeLeftToMaturity added in v0.5.4

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

ThalesSetMinimalTimeLeftToMaturity represents a SetMinimalTimeLeftToMaturity event raised by the Thales contract.

type ThalesSetMinimalTimeLeftToMaturityIterator added in v0.5.4

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

ThalesSetMinimalTimeLeftToMaturityIterator is returned from FilterSetMinimalTimeLeftToMaturity and is used to iterate over the raw logs and unpacked data for SetMinimalTimeLeftToMaturity events raised by the Thales contract.

func (*ThalesSetMinimalTimeLeftToMaturityIterator) Close added in v0.5.4

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

func (*ThalesSetMinimalTimeLeftToMaturityIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetMinimalTimeLeftToMaturityIterator) Next added in v0.5.4

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 ThalesSetPositionalMarketManager added in v0.5.4

type ThalesSetPositionalMarketManager struct {
	Manager common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ThalesSetPositionalMarketManager represents a SetPositionalMarketManager event raised by the Thales contract.

type ThalesSetPositionalMarketManagerIterator added in v0.5.4

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

ThalesSetPositionalMarketManagerIterator is returned from FilterSetPositionalMarketManager and is used to iterate over the raw logs and unpacked data for SetPositionalMarketManager events raised by the Thales contract.

func (*ThalesSetPositionalMarketManagerIterator) Close added in v0.5.4

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

func (*ThalesSetPositionalMarketManagerIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetPositionalMarketManagerIterator) Next added in v0.5.4

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 ThalesSetPriceFeed added in v0.5.4

type ThalesSetPriceFeed struct {
	PriceFeed common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

ThalesSetPriceFeed represents a SetPriceFeed event raised by the Thales contract.

type ThalesSetPriceFeedIterator added in v0.5.4

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

ThalesSetPriceFeedIterator is returned from FilterSetPriceFeed and is used to iterate over the raw logs and unpacked data for SetPriceFeed events raised by the Thales contract.

func (*ThalesSetPriceFeedIterator) Close added in v0.5.4

func (it *ThalesSetPriceFeedIterator) Close() error

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

func (*ThalesSetPriceFeedIterator) Error added in v0.5.4

func (it *ThalesSetPriceFeedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetPriceFeedIterator) Next added in v0.5.4

func (it *ThalesSetPriceFeedIterator) 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 ThalesSetSUSD added in v0.5.4

type ThalesSetSUSD struct {
	SUSD common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

ThalesSetSUSD represents a SetSUSD event raised by the Thales contract.

type ThalesSetSUSDIterator added in v0.5.4

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

ThalesSetSUSDIterator is returned from FilterSetSUSD and is used to iterate over the raw logs and unpacked data for SetSUSD events raised by the Thales contract.

func (*ThalesSetSUSDIterator) Close added in v0.5.4

func (it *ThalesSetSUSDIterator) Close() error

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

func (*ThalesSetSUSDIterator) Error added in v0.5.4

func (it *ThalesSetSUSDIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetSUSDIterator) Next added in v0.5.4

func (it *ThalesSetSUSDIterator) 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 ThalesSetSafeBox added in v0.5.4

type ThalesSetSafeBox struct {
	SafeBox common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ThalesSetSafeBox represents a SetSafeBox event raised by the Thales contract.

type ThalesSetSafeBoxImpact added in v0.5.4

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

ThalesSetSafeBoxImpact represents a SetSafeBoxImpact event raised by the Thales contract.

type ThalesSetSafeBoxImpactIterator added in v0.5.4

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

ThalesSetSafeBoxImpactIterator is returned from FilterSetSafeBoxImpact and is used to iterate over the raw logs and unpacked data for SetSafeBoxImpact events raised by the Thales contract.

func (*ThalesSetSafeBoxImpactIterator) Close added in v0.5.4

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

func (*ThalesSetSafeBoxImpactIterator) Error added in v0.5.4

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetSafeBoxImpactIterator) Next added in v0.5.4

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 ThalesSetSafeBoxIterator added in v0.5.4

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

ThalesSetSafeBoxIterator is returned from FilterSetSafeBox and is used to iterate over the raw logs and unpacked data for SetSafeBox events raised by the Thales contract.

func (*ThalesSetSafeBoxIterator) Close added in v0.5.4

func (it *ThalesSetSafeBoxIterator) Close() error

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

func (*ThalesSetSafeBoxIterator) Error added in v0.5.4

func (it *ThalesSetSafeBoxIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSetSafeBoxIterator) Next added in v0.5.4

func (it *ThalesSetSafeBoxIterator) 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 ThalesSoldToAMM added in v0.5.4

type ThalesSoldToAMM struct {
	Seller   common.Address
	Market   common.Address
	Position uint8
	Amount   *big.Int
	SUSDPaid *big.Int
	Susd     common.Address
	Asset    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ThalesSoldToAMM represents a SoldToAMM event raised by the Thales contract.

type ThalesSoldToAMMIterator added in v0.5.4

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

ThalesSoldToAMMIterator is returned from FilterSoldToAMM and is used to iterate over the raw logs and unpacked data for SoldToAMM events raised by the Thales contract.

func (*ThalesSoldToAMMIterator) Close added in v0.5.4

func (it *ThalesSoldToAMMIterator) Close() error

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

func (*ThalesSoldToAMMIterator) Error added in v0.5.4

func (it *ThalesSoldToAMMIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ThalesSoldToAMMIterator) Next added in v0.5.4

func (it *ThalesSoldToAMMIterator) 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 ThalesTransactor added in v0.5.4

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

ThalesTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewThalesTransactor added in v0.5.4

func NewThalesTransactor(address common.Address, transactor bind.ContractTransactor) (*ThalesTransactor, error)

NewThalesTransactor creates a new write-only instance of Thales, bound to a specific deployed contract.

func (*ThalesTransactor) AcceptOwnership added in v0.5.4

func (_Thales *ThalesTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*ThalesTransactor) BuyFromAMM added in v0.5.4

func (_Thales *ThalesTransactor) BuyFromAMM(opts *bind.TransactOpts, market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

BuyFromAMM is a paid mutator transaction binding the contract method 0x8875eb84.

Solidity: function buyFromAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesTransactor) BuyFromAMMWithDifferentCollateralAndReferrer added in v0.5.4

func (_Thales *ThalesTransactor) BuyFromAMMWithDifferentCollateralAndReferrer(opts *bind.TransactOpts, market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, collateral common.Address, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithDifferentCollateralAndReferrer is a paid mutator transaction binding the contract method 0x6cc5a6ff.

Solidity: function buyFromAMMWithDifferentCollateralAndReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address collateral, address _referrer) returns()

func (*ThalesTransactor) BuyFromAMMWithReferrer added in v0.5.4

func (_Thales *ThalesTransactor) BuyFromAMMWithReferrer(opts *bind.TransactOpts, market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithReferrer is a paid mutator transaction binding the contract method 0x9f916c9f.

Solidity: function buyFromAMMWithReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address _referrer) returns()

func (*ThalesTransactor) ExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesTransactor) ExerciseMaturedMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error)

ExerciseMaturedMarket is a paid mutator transaction binding the contract method 0x51b9181f.

Solidity: function exerciseMaturedMarket(address market) returns()

func (*ThalesTransactor) InitNonReentrant added in v0.5.4

func (_Thales *ThalesTransactor) InitNonReentrant(opts *bind.TransactOpts) (*types.Transaction, error)

InitNonReentrant is a paid mutator transaction binding the contract method 0xebc79772.

Solidity: function initNonReentrant() returns()

func (*ThalesTransactor) Initialize added in v0.5.4

func (_Thales *ThalesTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address, _priceFeed common.Address, _sUSD common.Address, _capPerMarket *big.Int, _deciMath common.Address, _min_spread *big.Int, _max_spread *big.Int, _minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xad18f0da.

Solidity: function initialize(address _owner, address _priceFeed, address _sUSD, uint256 _capPerMarket, address _deciMath, uint256 _min_spread, uint256 _max_spread, uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesTransactor) NominateNewOwner added in v0.5.4

func (_Thales *ThalesTransactor) NominateNewOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*ThalesTransactor) RetrieveSUSDAmount added in v0.5.4

func (_Thales *ThalesTransactor) RetrieveSUSDAmount(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

RetrieveSUSDAmount is a paid mutator transaction binding the contract method 0xefb1fe35.

Solidity: function retrieveSUSDAmount(address account, uint256 amount) returns()

func (*ThalesTransactor) SellToAMM added in v0.5.4

func (_Thales *ThalesTransactor) SellToAMM(opts *bind.TransactOpts, market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

SellToAMM is a paid mutator transaction binding the contract method 0x3ce1108d.

Solidity: function sellToAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesTransactor) SetCapPerAsset added in v0.5.4

func (_Thales *ThalesTransactor) SetCapPerAsset(opts *bind.TransactOpts, asset [32]byte, _cap *big.Int) (*types.Transaction, error)

SetCapPerAsset is a paid mutator transaction binding the contract method 0xd1624924.

Solidity: function setCapPerAsset(bytes32 asset, uint256 _cap) returns()

func (*ThalesTransactor) SetCurveSUSD added in v0.5.4

func (_Thales *ThalesTransactor) SetCurveSUSD(opts *bind.TransactOpts, _curveSUSD common.Address, _dai common.Address, _usdc common.Address, _usdt common.Address, _curveOnrampEnabled bool) (*types.Transaction, error)

SetCurveSUSD is a paid mutator transaction binding the contract method 0xb42b5798.

Solidity: function setCurveSUSD(address _curveSUSD, address _dai, address _usdc, address _usdt, bool _curveOnrampEnabled) returns()

func (*ThalesTransactor) SetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesTransactor) SetImpliedVolatilityPerAsset(opts *bind.TransactOpts, asset [32]byte, _impliedVolatility *big.Int) (*types.Transaction, error)

SetImpliedVolatilityPerAsset is a paid mutator transaction binding the contract method 0x5ef85b26.

Solidity: function setImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility) returns()

func (*ThalesTransactor) SetMinMaxSpread added in v0.5.4

func (_Thales *ThalesTransactor) SetMinMaxSpread(opts *bind.TransactOpts, _minspread *big.Int, _maxspread *big.Int) (*types.Transaction, error)

SetMinMaxSpread is a paid mutator transaction binding the contract method 0x82615349.

Solidity: function setMinMaxSpread(uint256 _minspread, uint256 _maxspread) returns()

func (*ThalesTransactor) SetMinMaxSupportedPriceAndCap added in v0.5.4

func (_Thales *ThalesTransactor) SetMinMaxSupportedPriceAndCap(opts *bind.TransactOpts, _minSupportedPrice *big.Int, _maxSupportedPrice *big.Int, _capPerMarket *big.Int) (*types.Transaction, error)

SetMinMaxSupportedPriceAndCap is a paid mutator transaction binding the contract method 0xc8f0b4ec.

Solidity: function setMinMaxSupportedPriceAndCap(uint256 _minSupportedPrice, uint256 _maxSupportedPrice, uint256 _capPerMarket) returns()

func (*ThalesTransactor) SetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesTransactor) SetMinimalTimeLeftToMaturity(opts *bind.TransactOpts, _minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

SetMinimalTimeLeftToMaturity is a paid mutator transaction binding the contract method 0x85170209.

Solidity: function setMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesTransactor) SetOwner added in v0.5.4

func (_Thales *ThalesTransactor) SetOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

func (*ThalesTransactor) SetPaused added in v0.5.4

func (_Thales *ThalesTransactor) SetPaused(opts *bind.TransactOpts, _paused bool) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.

Solidity: function setPaused(bool _paused) returns()

func (*ThalesTransactor) SetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesTransactor) SetPositionalMarketManager(opts *bind.TransactOpts, _manager common.Address) (*types.Transaction, error)

SetPositionalMarketManager is a paid mutator transaction binding the contract method 0xbf996ae3.

Solidity: function setPositionalMarketManager(address _manager) returns()

func (*ThalesTransactor) SetPriceFeedAndSUSD added in v0.5.4

func (_Thales *ThalesTransactor) SetPriceFeedAndSUSD(opts *bind.TransactOpts, _priceFeed common.Address, _sUSD common.Address) (*types.Transaction, error)

SetPriceFeedAndSUSD is a paid mutator transaction binding the contract method 0xbbdf88ce.

Solidity: function setPriceFeedAndSUSD(address _priceFeed, address _sUSD) returns()

func (*ThalesTransactor) SetSafeBoxData added in v0.5.4

func (_Thales *ThalesTransactor) SetSafeBoxData(opts *bind.TransactOpts, _safeBox common.Address, _safeBoxImpact *big.Int) (*types.Transaction, error)

SetSafeBoxData is a paid mutator transaction binding the contract method 0xfc1ed857.

Solidity: function setSafeBoxData(address _safeBox, uint256 _safeBoxImpact) returns()

func (*ThalesTransactor) SetStakingThalesAndReferrals added in v0.5.4

func (_Thales *ThalesTransactor) SetStakingThalesAndReferrals(opts *bind.TransactOpts, _stakingThales common.Address, _referrals common.Address, _referrerFee *big.Int) (*types.Transaction, error)

SetStakingThalesAndReferrals is a paid mutator transaction binding the contract method 0xcafb3ca2.

Solidity: function setStakingThalesAndReferrals(address _stakingThales, address _referrals, uint256 _referrerFee) returns()

func (*ThalesTransactor) SetWhitelistedAddress added in v0.5.4

func (_Thales *ThalesTransactor) SetWhitelistedAddress(opts *bind.TransactOpts, _address common.Address, enabled bool) (*types.Transaction, error)

SetWhitelistedAddress is a paid mutator transaction binding the contract method 0x7b337a36.

Solidity: function setWhitelistedAddress(address _address, bool enabled) returns()

func (*ThalesTransactor) TransferOwnershipAtInit added in v0.5.4

func (_Thales *ThalesTransactor) TransferOwnershipAtInit(opts *bind.TransactOpts, proxyAddress common.Address) (*types.Transaction, error)

TransferOwnershipAtInit is a paid mutator transaction binding the contract method 0xc3b83f5f.

Solidity: function transferOwnershipAtInit(address proxyAddress) returns()

type ThalesTransactorRaw added in v0.5.4

type ThalesTransactorRaw struct {
	Contract *ThalesTransactor // Generic write-only contract binding to access the raw methods on
}

ThalesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ThalesTransactorRaw) Transact added in v0.5.4

func (_Thales *ThalesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ThalesTransactorRaw) Transfer added in v0.5.4

func (_Thales *ThalesTransactorRaw) 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 ThalesTransactorSession added in v0.5.4

type ThalesTransactorSession struct {
	Contract     *ThalesTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ThalesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ThalesTransactorSession) AcceptOwnership added in v0.5.4

func (_Thales *ThalesTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*ThalesTransactorSession) BuyFromAMM added in v0.5.4

func (_Thales *ThalesTransactorSession) BuyFromAMM(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

BuyFromAMM is a paid mutator transaction binding the contract method 0x8875eb84.

Solidity: function buyFromAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesTransactorSession) BuyFromAMMWithDifferentCollateralAndReferrer added in v0.5.4

func (_Thales *ThalesTransactorSession) BuyFromAMMWithDifferentCollateralAndReferrer(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, collateral common.Address, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithDifferentCollateralAndReferrer is a paid mutator transaction binding the contract method 0x6cc5a6ff.

Solidity: function buyFromAMMWithDifferentCollateralAndReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address collateral, address _referrer) returns()

func (*ThalesTransactorSession) BuyFromAMMWithReferrer added in v0.5.4

func (_Thales *ThalesTransactorSession) BuyFromAMMWithReferrer(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int, _referrer common.Address) (*types.Transaction, error)

BuyFromAMMWithReferrer is a paid mutator transaction binding the contract method 0x9f916c9f.

Solidity: function buyFromAMMWithReferrer(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage, address _referrer) returns()

func (*ThalesTransactorSession) ExerciseMaturedMarket added in v0.5.4

func (_Thales *ThalesTransactorSession) ExerciseMaturedMarket(market common.Address) (*types.Transaction, error)

ExerciseMaturedMarket is a paid mutator transaction binding the contract method 0x51b9181f.

Solidity: function exerciseMaturedMarket(address market) returns()

func (*ThalesTransactorSession) InitNonReentrant added in v0.5.4

func (_Thales *ThalesTransactorSession) InitNonReentrant() (*types.Transaction, error)

InitNonReentrant is a paid mutator transaction binding the contract method 0xebc79772.

Solidity: function initNonReentrant() returns()

func (*ThalesTransactorSession) Initialize added in v0.5.4

func (_Thales *ThalesTransactorSession) Initialize(_owner common.Address, _priceFeed common.Address, _sUSD common.Address, _capPerMarket *big.Int, _deciMath common.Address, _min_spread *big.Int, _max_spread *big.Int, _minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xad18f0da.

Solidity: function initialize(address _owner, address _priceFeed, address _sUSD, uint256 _capPerMarket, address _deciMath, uint256 _min_spread, uint256 _max_spread, uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesTransactorSession) NominateNewOwner added in v0.5.4

func (_Thales *ThalesTransactorSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*ThalesTransactorSession) RetrieveSUSDAmount added in v0.5.4

func (_Thales *ThalesTransactorSession) RetrieveSUSDAmount(account common.Address, amount *big.Int) (*types.Transaction, error)

RetrieveSUSDAmount is a paid mutator transaction binding the contract method 0xefb1fe35.

Solidity: function retrieveSUSDAmount(address account, uint256 amount) returns()

func (*ThalesTransactorSession) SellToAMM added in v0.5.4

func (_Thales *ThalesTransactorSession) SellToAMM(market common.Address, position uint8, amount *big.Int, expectedPayout *big.Int, additionalSlippage *big.Int) (*types.Transaction, error)

SellToAMM is a paid mutator transaction binding the contract method 0x3ce1108d.

Solidity: function sellToAMM(address market, uint8 position, uint256 amount, uint256 expectedPayout, uint256 additionalSlippage) returns()

func (*ThalesTransactorSession) SetCapPerAsset added in v0.5.4

func (_Thales *ThalesTransactorSession) SetCapPerAsset(asset [32]byte, _cap *big.Int) (*types.Transaction, error)

SetCapPerAsset is a paid mutator transaction binding the contract method 0xd1624924.

Solidity: function setCapPerAsset(bytes32 asset, uint256 _cap) returns()

func (*ThalesTransactorSession) SetCurveSUSD added in v0.5.4

func (_Thales *ThalesTransactorSession) SetCurveSUSD(_curveSUSD common.Address, _dai common.Address, _usdc common.Address, _usdt common.Address, _curveOnrampEnabled bool) (*types.Transaction, error)

SetCurveSUSD is a paid mutator transaction binding the contract method 0xb42b5798.

Solidity: function setCurveSUSD(address _curveSUSD, address _dai, address _usdc, address _usdt, bool _curveOnrampEnabled) returns()

func (*ThalesTransactorSession) SetImpliedVolatilityPerAsset added in v0.5.4

func (_Thales *ThalesTransactorSession) SetImpliedVolatilityPerAsset(asset [32]byte, _impliedVolatility *big.Int) (*types.Transaction, error)

SetImpliedVolatilityPerAsset is a paid mutator transaction binding the contract method 0x5ef85b26.

Solidity: function setImpliedVolatilityPerAsset(bytes32 asset, uint256 _impliedVolatility) returns()

func (*ThalesTransactorSession) SetMinMaxSpread added in v0.5.4

func (_Thales *ThalesTransactorSession) SetMinMaxSpread(_minspread *big.Int, _maxspread *big.Int) (*types.Transaction, error)

SetMinMaxSpread is a paid mutator transaction binding the contract method 0x82615349.

Solidity: function setMinMaxSpread(uint256 _minspread, uint256 _maxspread) returns()

func (*ThalesTransactorSession) SetMinMaxSupportedPriceAndCap added in v0.5.4

func (_Thales *ThalesTransactorSession) SetMinMaxSupportedPriceAndCap(_minSupportedPrice *big.Int, _maxSupportedPrice *big.Int, _capPerMarket *big.Int) (*types.Transaction, error)

SetMinMaxSupportedPriceAndCap is a paid mutator transaction binding the contract method 0xc8f0b4ec.

Solidity: function setMinMaxSupportedPriceAndCap(uint256 _minSupportedPrice, uint256 _maxSupportedPrice, uint256 _capPerMarket) returns()

func (*ThalesTransactorSession) SetMinimalTimeLeftToMaturity added in v0.5.4

func (_Thales *ThalesTransactorSession) SetMinimalTimeLeftToMaturity(_minimalTimeLeftToMaturity *big.Int) (*types.Transaction, error)

SetMinimalTimeLeftToMaturity is a paid mutator transaction binding the contract method 0x85170209.

Solidity: function setMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity) returns()

func (*ThalesTransactorSession) SetOwner added in v0.5.4

func (_Thales *ThalesTransactorSession) SetOwner(_owner common.Address) (*types.Transaction, error)

SetOwner is a paid mutator transaction binding the contract method 0x13af4035.

Solidity: function setOwner(address _owner) returns()

func (*ThalesTransactorSession) SetPaused added in v0.5.4

func (_Thales *ThalesTransactorSession) SetPaused(_paused bool) (*types.Transaction, error)

SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.

Solidity: function setPaused(bool _paused) returns()

func (*ThalesTransactorSession) SetPositionalMarketManager added in v0.5.4

func (_Thales *ThalesTransactorSession) SetPositionalMarketManager(_manager common.Address) (*types.Transaction, error)

SetPositionalMarketManager is a paid mutator transaction binding the contract method 0xbf996ae3.

Solidity: function setPositionalMarketManager(address _manager) returns()

func (*ThalesTransactorSession) SetPriceFeedAndSUSD added in v0.5.4

func (_Thales *ThalesTransactorSession) SetPriceFeedAndSUSD(_priceFeed common.Address, _sUSD common.Address) (*types.Transaction, error)

SetPriceFeedAndSUSD is a paid mutator transaction binding the contract method 0xbbdf88ce.

Solidity: function setPriceFeedAndSUSD(address _priceFeed, address _sUSD) returns()

func (*ThalesTransactorSession) SetSafeBoxData added in v0.5.4

func (_Thales *ThalesTransactorSession) SetSafeBoxData(_safeBox common.Address, _safeBoxImpact *big.Int) (*types.Transaction, error)

SetSafeBoxData is a paid mutator transaction binding the contract method 0xfc1ed857.

Solidity: function setSafeBoxData(address _safeBox, uint256 _safeBoxImpact) returns()

func (*ThalesTransactorSession) SetStakingThalesAndReferrals added in v0.5.4

func (_Thales *ThalesTransactorSession) SetStakingThalesAndReferrals(_stakingThales common.Address, _referrals common.Address, _referrerFee *big.Int) (*types.Transaction, error)

SetStakingThalesAndReferrals is a paid mutator transaction binding the contract method 0xcafb3ca2.

Solidity: function setStakingThalesAndReferrals(address _stakingThales, address _referrals, uint256 _referrerFee) returns()

func (*ThalesTransactorSession) SetWhitelistedAddress added in v0.5.4

func (_Thales *ThalesTransactorSession) SetWhitelistedAddress(_address common.Address, enabled bool) (*types.Transaction, error)

SetWhitelistedAddress is a paid mutator transaction binding the contract method 0x7b337a36.

Solidity: function setWhitelistedAddress(address _address, bool enabled) returns()

func (*ThalesTransactorSession) TransferOwnershipAtInit added in v0.5.4

func (_Thales *ThalesTransactorSession) TransferOwnershipAtInit(proxyAddress common.Address) (*types.Transaction, error)

TransferOwnershipAtInit is a paid mutator transaction binding the contract method 0xc3b83f5f.

Solidity: function transferOwnershipAtInit(address proxyAddress) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL