Documentation ¶
Index ¶
- Variables
- type Reader
- type ReaderCaller
- func (_Reader *ReaderCaller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)
- func (_Reader *ReaderCaller) GetAmountOut(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, ...) (*big.Int, *big.Int, error)
- func (_Reader *ReaderCaller) GetFeeBasisPoints(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Reader *ReaderCaller) GetFees(opts *bind.CallOpts, _vault common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetFullVaultTokenInfo(opts *bind.CallOpts, _vault common.Address, _weth common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetFundingRates(opts *bind.CallOpts, _vault common.Address, _weth common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetMaxAmountIn(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, ...) (*big.Int, error)
- func (_Reader *ReaderCaller) GetPairInfo(opts *bind.CallOpts, _factory common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetPositions(opts *bind.CallOpts, _vault common.Address, _account common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetPrices(opts *bind.CallOpts, _priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetStakingInfo(opts *bind.CallOpts, _account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetTokenBalances(opts *bind.CallOpts, _account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetTokenBalancesWithSupplies(opts *bind.CallOpts, _account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetTokenSupply(opts *bind.CallOpts, _token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderCaller) GetTotalBalance(opts *bind.CallOpts, _token common.Address, _accounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderCaller) GetTotalStaked(opts *bind.CallOpts, _yieldTokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetVaultTokenInfo(opts *bind.CallOpts, _vault common.Address, _weth common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetVaultTokenInfoV2(opts *bind.CallOpts, _vault common.Address, _weth common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCaller) GetVestingInfo(opts *bind.CallOpts, _account common.Address, _vesters []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCaller) Gov(opts *bind.CallOpts) (common.Address, error)
- func (_Reader *ReaderCaller) HasMaxGlobalShortSizes(opts *bind.CallOpts) (bool, error)
- func (_Reader *ReaderCaller) POSITIONPROPSLENGTH(opts *bind.CallOpts) (*big.Int, error)
- func (_Reader *ReaderCaller) PRICEPRECISION(opts *bind.CallOpts) (*big.Int, error)
- func (_Reader *ReaderCaller) USDGDECIMALS(opts *bind.CallOpts) (*big.Int, error)
- type ReaderCallerRaw
- type ReaderCallerSession
- func (_Reader *ReaderCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_Reader *ReaderCallerSession) GetAmountOut(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, *big.Int, error)
- func (_Reader *ReaderCallerSession) GetFeeBasisPoints(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Reader *ReaderCallerSession) GetFees(_vault common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetFullVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetFundingRates(_vault common.Address, _weth common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetMaxAmountIn(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address) (*big.Int, error)
- func (_Reader *ReaderCallerSession) GetPairInfo(_factory common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetPositions(_vault common.Address, _account common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetPrices(_priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetStakingInfo(_account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetTokenBalances(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetTokenBalancesWithSupplies(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetTokenSupply(_token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderCallerSession) GetTotalBalance(_token common.Address, _accounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderCallerSession) GetTotalStaked(_yieldTokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetVaultTokenInfoV2(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) GetVestingInfo(_account common.Address, _vesters []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderCallerSession) Gov() (common.Address, error)
- func (_Reader *ReaderCallerSession) HasMaxGlobalShortSizes() (bool, error)
- func (_Reader *ReaderCallerSession) POSITIONPROPSLENGTH() (*big.Int, error)
- func (_Reader *ReaderCallerSession) PRICEPRECISION() (*big.Int, error)
- func (_Reader *ReaderCallerSession) USDGDECIMALS() (*big.Int, error)
- type ReaderFilterer
- type ReaderRaw
- func (_Reader *ReaderRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Reader *ReaderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Reader *ReaderRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ReaderSession
- func (_Reader *ReaderSession) BASISPOINTSDIVISOR() (*big.Int, error)
- func (_Reader *ReaderSession) GetAmountOut(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, *big.Int, error)
- func (_Reader *ReaderSession) GetFeeBasisPoints(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, *big.Int, *big.Int, error)
- func (_Reader *ReaderSession) GetFees(_vault common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetFullVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetFundingRates(_vault common.Address, _weth common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetMaxAmountIn(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address) (*big.Int, error)
- func (_Reader *ReaderSession) GetPairInfo(_factory common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetPositions(_vault common.Address, _account common.Address, ...) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetPrices(_priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetStakingInfo(_account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetTokenBalances(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetTokenBalancesWithSupplies(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetTokenSupply(_token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderSession) GetTotalBalance(_token common.Address, _accounts []common.Address) (*big.Int, error)
- func (_Reader *ReaderSession) GetTotalStaked(_yieldTokens []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetVaultTokenInfoV2(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, ...) ([]*big.Int, error)
- func (_Reader *ReaderSession) GetVestingInfo(_account common.Address, _vesters []common.Address) ([]*big.Int, error)
- func (_Reader *ReaderSession) Gov() (common.Address, error)
- func (_Reader *ReaderSession) HasMaxGlobalShortSizes() (bool, error)
- func (_Reader *ReaderSession) POSITIONPROPSLENGTH() (*big.Int, error)
- func (_Reader *ReaderSession) PRICEPRECISION() (*big.Int, error)
- func (_Reader *ReaderSession) SetConfig(_hasMaxGlobalShortSizes bool) (*types.Transaction, error)
- func (_Reader *ReaderSession) SetGov(_gov common.Address) (*types.Transaction, error)
- func (_Reader *ReaderSession) USDGDECIMALS() (*big.Int, error)
- type ReaderTransactor
- type ReaderTransactorRaw
- type ReaderTransactorSession
Constants ¶
This section is empty.
Variables ¶
var ReaderABI = ReaderMetaData.ABI
ReaderABI is the input ABI used to generate the binding from. Deprecated: Use ReaderMetaData.ABI instead.
var ReaderMetaData = &bind.MetaData{
ABI: "[{\"type\":\"function\",\"name\":\"BASIS_POINTS_DIVISOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"POSITION_PROPS_LENGTH\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PRICE_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"USDG_DECIMALS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAmountOut\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"contractIVault\"},{\"name\":\"_tokenIn\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFeeBasisPoints\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"contractIVault\"},{\"name\":\"_tokenIn\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amountIn\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFees\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFullVaultTokenInfo\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFundingRates\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMaxAmountIn\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"contractIVault\"},{\"name\":\"_tokenIn\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPairInfo\",\"inputs\":[{\"name\":\"_factory\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositions\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_indexTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_isLong\",\"type\":\"bool[]\",\"internalType\":\"bool[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPrices\",\"inputs\":[{\"name\":\"_priceFeed\",\"type\":\"address\",\"internalType\":\"contractIVaultPriceFeed\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getStakingInfo\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_yieldTrackers\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenBalances\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenBalancesWithSupplies\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenSupply\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"contractIERC20\"},{\"name\":\"_excludedAccounts\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTotalBalance\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"contractIERC20\"},{\"name\":\"_accounts\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTotalStaked\",\"inputs\":[{\"name\":\"_yieldTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVaultTokenInfo\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVaultTokenInfoV2\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_weth\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVestingInfo\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_vesters\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasMaxGlobalShortSizes\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setConfig\",\"inputs\":[{\"name\":\"_hasMaxGlobalShortSizes\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"}]",
}
ReaderMetaData contains all meta data concerning the Reader contract.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { ReaderCaller // Read-only binding to the contract ReaderTransactor // Write-only binding to the contract ReaderFilterer // Log filterer for contract events }
Reader is an auto generated Go binding around an Ethereum contract.
type ReaderCaller ¶
type ReaderCaller struct {
// contains filtered or unexported fields
}
ReaderCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewReaderCaller ¶
func NewReaderCaller(address common.Address, caller bind.ContractCaller) (*ReaderCaller, error)
NewReaderCaller creates a new read-only instance of Reader, bound to a specific deployed contract.
func (*ReaderCaller) BASISPOINTSDIVISOR ¶
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*ReaderCaller) GetAmountOut ¶
func (_Reader *ReaderCaller) GetAmountOut(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xd7176ca9.
Solidity: function getAmountOut(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256)
func (*ReaderCaller) GetFeeBasisPoints ¶
func (_Reader *ReaderCaller) GetFeeBasisPoints(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0x440f018c.
Solidity: function getFeeBasisPoints(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256, uint256)
func (*ReaderCaller) GetFees ¶
func (_Reader *ReaderCaller) GetFees(opts *bind.CallOpts, _vault common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFees is a free data retrieval call binding the contract method 0x86d4d0f5.
Solidity: function getFees(address _vault, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetFullVaultTokenInfo ¶
func (_Reader *ReaderCaller) GetFullVaultTokenInfo(opts *bind.CallOpts, _vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetFullVaultTokenInfo is a free data retrieval call binding the contract method 0x7b906e93.
Solidity: function getFullVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetFundingRates ¶
func (_Reader *ReaderCaller) GetFundingRates(opts *bind.CallOpts, _vault common.Address, _weth common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFundingRates is a free data retrieval call binding the contract method 0x95a7535a.
Solidity: function getFundingRates(address _vault, address _weth, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetMaxAmountIn ¶
func (_Reader *ReaderCaller) GetMaxAmountIn(opts *bind.CallOpts, _vault common.Address, _tokenIn common.Address, _tokenOut common.Address) (*big.Int, error)
GetMaxAmountIn is a free data retrieval call binding the contract method 0xf3535e6c.
Solidity: function getMaxAmountIn(address _vault, address _tokenIn, address _tokenOut) view returns(uint256)
func (*ReaderCaller) GetPairInfo ¶
func (_Reader *ReaderCaller) GetPairInfo(opts *bind.CallOpts, _factory common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPairInfo is a free data retrieval call binding the contract method 0xa4543ead.
Solidity: function getPairInfo(address _factory, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetPositions ¶
func (_Reader *ReaderCaller) GetPositions(opts *bind.CallOpts, _vault common.Address, _account common.Address, _collateralTokens []common.Address, _indexTokens []common.Address, _isLong []bool) ([]*big.Int, error)
GetPositions is a free data retrieval call binding the contract method 0xdc383cab.
Solidity: function getPositions(address _vault, address _account, address[] _collateralTokens, address[] _indexTokens, bool[] _isLong) view returns(uint256[])
func (*ReaderCaller) GetPrices ¶
func (_Reader *ReaderCaller) GetPrices(opts *bind.CallOpts, _priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x3613d527.
Solidity: function getPrices(address _priceFeed, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetStakingInfo ¶
func (_Reader *ReaderCaller) GetStakingInfo(opts *bind.CallOpts, _account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.
Solidity: function getStakingInfo(address _account, address[] _yieldTrackers) view returns(uint256[])
func (*ReaderCaller) GetTokenBalances ¶
func (_Reader *ReaderCaller) GetTokenBalances(opts *bind.CallOpts, _account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalances is a free data retrieval call binding the contract method 0xd802178e.
Solidity: function getTokenBalances(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetTokenBalancesWithSupplies ¶
func (_Reader *ReaderCaller) GetTokenBalancesWithSupplies(opts *bind.CallOpts, _account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalancesWithSupplies is a free data retrieval call binding the contract method 0x2e3e3342.
Solidity: function getTokenBalancesWithSupplies(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetTokenSupply ¶
func (_Reader *ReaderCaller) GetTokenSupply(opts *bind.CallOpts, _token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
GetTokenSupply is a free data retrieval call binding the contract method 0x2ac0184c.
Solidity: function getTokenSupply(address _token, address[] _excludedAccounts) view returns(uint256)
func (*ReaderCaller) GetTotalBalance ¶
func (_Reader *ReaderCaller) GetTotalBalance(opts *bind.CallOpts, _token common.Address, _accounts []common.Address) (*big.Int, error)
GetTotalBalance is a free data retrieval call binding the contract method 0xfbdb05ca.
Solidity: function getTotalBalance(address _token, address[] _accounts) view returns(uint256)
func (*ReaderCaller) GetTotalStaked ¶
func (_Reader *ReaderCaller) GetTotalStaked(opts *bind.CallOpts, _yieldTokens []common.Address) ([]*big.Int, error)
GetTotalStaked is a free data retrieval call binding the contract method 0x2413c8c1.
Solidity: function getTotalStaked(address[] _yieldTokens) view returns(uint256[])
func (*ReaderCaller) GetVaultTokenInfo ¶
func (_Reader *ReaderCaller) GetVaultTokenInfo(opts *bind.CallOpts, _vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfo is a free data retrieval call binding the contract method 0x20542568.
Solidity: function getVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetVaultTokenInfoV2 ¶
func (_Reader *ReaderCaller) GetVaultTokenInfoV2(opts *bind.CallOpts, _vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfoV2 is a free data retrieval call binding the contract method 0x8e83ca32.
Solidity: function getVaultTokenInfoV2(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCaller) GetVestingInfo ¶
func (_Reader *ReaderCaller) GetVestingInfo(opts *bind.CallOpts, _account common.Address, _vesters []common.Address) ([]*big.Int, error)
GetVestingInfo is a free data retrieval call binding the contract method 0x48211934.
Solidity: function getVestingInfo(address _account, address[] _vesters) view returns(uint256[])
func (*ReaderCaller) Gov ¶
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*ReaderCaller) HasMaxGlobalShortSizes ¶
func (_Reader *ReaderCaller) HasMaxGlobalShortSizes(opts *bind.CallOpts) (bool, error)
HasMaxGlobalShortSizes is a free data retrieval call binding the contract method 0xc6f1d676.
Solidity: function hasMaxGlobalShortSizes() view returns(bool)
func (*ReaderCaller) POSITIONPROPSLENGTH ¶
POSITIONPROPSLENGTH is a free data retrieval call binding the contract method 0xad7e5497.
Solidity: function POSITION_PROPS_LENGTH() view returns(uint256)
func (*ReaderCaller) PRICEPRECISION ¶
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*ReaderCaller) USDGDECIMALS ¶
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
type ReaderCallerRaw ¶
type ReaderCallerRaw struct {
Contract *ReaderCaller // Generic read-only contract binding to access the raw methods on
}
ReaderCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ReaderCallerRaw) Call ¶
func (_Reader *ReaderCallerRaw) 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 ReaderCallerSession ¶
type ReaderCallerSession struct { Contract *ReaderCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ReaderCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ReaderCallerSession) BASISPOINTSDIVISOR ¶
func (_Reader *ReaderCallerSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*ReaderCallerSession) GetAmountOut ¶
func (_Reader *ReaderCallerSession) GetAmountOut(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xd7176ca9.
Solidity: function getAmountOut(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256)
func (*ReaderCallerSession) GetFeeBasisPoints ¶
func (_Reader *ReaderCallerSession) GetFeeBasisPoints(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0x440f018c.
Solidity: function getFeeBasisPoints(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256, uint256)
func (*ReaderCallerSession) GetFees ¶
func (_Reader *ReaderCallerSession) GetFees(_vault common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFees is a free data retrieval call binding the contract method 0x86d4d0f5.
Solidity: function getFees(address _vault, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetFullVaultTokenInfo ¶
func (_Reader *ReaderCallerSession) GetFullVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetFullVaultTokenInfo is a free data retrieval call binding the contract method 0x7b906e93.
Solidity: function getFullVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetFundingRates ¶
func (_Reader *ReaderCallerSession) GetFundingRates(_vault common.Address, _weth common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFundingRates is a free data retrieval call binding the contract method 0x95a7535a.
Solidity: function getFundingRates(address _vault, address _weth, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetMaxAmountIn ¶
func (_Reader *ReaderCallerSession) GetMaxAmountIn(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address) (*big.Int, error)
GetMaxAmountIn is a free data retrieval call binding the contract method 0xf3535e6c.
Solidity: function getMaxAmountIn(address _vault, address _tokenIn, address _tokenOut) view returns(uint256)
func (*ReaderCallerSession) GetPairInfo ¶
func (_Reader *ReaderCallerSession) GetPairInfo(_factory common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPairInfo is a free data retrieval call binding the contract method 0xa4543ead.
Solidity: function getPairInfo(address _factory, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetPositions ¶
func (_Reader *ReaderCallerSession) GetPositions(_vault common.Address, _account common.Address, _collateralTokens []common.Address, _indexTokens []common.Address, _isLong []bool) ([]*big.Int, error)
GetPositions is a free data retrieval call binding the contract method 0xdc383cab.
Solidity: function getPositions(address _vault, address _account, address[] _collateralTokens, address[] _indexTokens, bool[] _isLong) view returns(uint256[])
func (*ReaderCallerSession) GetPrices ¶
func (_Reader *ReaderCallerSession) GetPrices(_priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x3613d527.
Solidity: function getPrices(address _priceFeed, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetStakingInfo ¶
func (_Reader *ReaderCallerSession) GetStakingInfo(_account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.
Solidity: function getStakingInfo(address _account, address[] _yieldTrackers) view returns(uint256[])
func (*ReaderCallerSession) GetTokenBalances ¶
func (_Reader *ReaderCallerSession) GetTokenBalances(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalances is a free data retrieval call binding the contract method 0xd802178e.
Solidity: function getTokenBalances(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetTokenBalancesWithSupplies ¶
func (_Reader *ReaderCallerSession) GetTokenBalancesWithSupplies(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalancesWithSupplies is a free data retrieval call binding the contract method 0x2e3e3342.
Solidity: function getTokenBalancesWithSupplies(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetTokenSupply ¶
func (_Reader *ReaderCallerSession) GetTokenSupply(_token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
GetTokenSupply is a free data retrieval call binding the contract method 0x2ac0184c.
Solidity: function getTokenSupply(address _token, address[] _excludedAccounts) view returns(uint256)
func (*ReaderCallerSession) GetTotalBalance ¶
func (_Reader *ReaderCallerSession) GetTotalBalance(_token common.Address, _accounts []common.Address) (*big.Int, error)
GetTotalBalance is a free data retrieval call binding the contract method 0xfbdb05ca.
Solidity: function getTotalBalance(address _token, address[] _accounts) view returns(uint256)
func (*ReaderCallerSession) GetTotalStaked ¶
func (_Reader *ReaderCallerSession) GetTotalStaked(_yieldTokens []common.Address) ([]*big.Int, error)
GetTotalStaked is a free data retrieval call binding the contract method 0x2413c8c1.
Solidity: function getTotalStaked(address[] _yieldTokens) view returns(uint256[])
func (*ReaderCallerSession) GetVaultTokenInfo ¶
func (_Reader *ReaderCallerSession) GetVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfo is a free data retrieval call binding the contract method 0x20542568.
Solidity: function getVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetVaultTokenInfoV2 ¶
func (_Reader *ReaderCallerSession) GetVaultTokenInfoV2(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfoV2 is a free data retrieval call binding the contract method 0x8e83ca32.
Solidity: function getVaultTokenInfoV2(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderCallerSession) GetVestingInfo ¶
func (_Reader *ReaderCallerSession) GetVestingInfo(_account common.Address, _vesters []common.Address) ([]*big.Int, error)
GetVestingInfo is a free data retrieval call binding the contract method 0x48211934.
Solidity: function getVestingInfo(address _account, address[] _vesters) view returns(uint256[])
func (*ReaderCallerSession) Gov ¶
func (_Reader *ReaderCallerSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*ReaderCallerSession) HasMaxGlobalShortSizes ¶
func (_Reader *ReaderCallerSession) HasMaxGlobalShortSizes() (bool, error)
HasMaxGlobalShortSizes is a free data retrieval call binding the contract method 0xc6f1d676.
Solidity: function hasMaxGlobalShortSizes() view returns(bool)
func (*ReaderCallerSession) POSITIONPROPSLENGTH ¶
func (_Reader *ReaderCallerSession) POSITIONPROPSLENGTH() (*big.Int, error)
POSITIONPROPSLENGTH is a free data retrieval call binding the contract method 0xad7e5497.
Solidity: function POSITION_PROPS_LENGTH() view returns(uint256)
func (*ReaderCallerSession) PRICEPRECISION ¶
func (_Reader *ReaderCallerSession) PRICEPRECISION() (*big.Int, error)
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*ReaderCallerSession) USDGDECIMALS ¶
func (_Reader *ReaderCallerSession) USDGDECIMALS() (*big.Int, error)
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
type ReaderFilterer ¶
type ReaderFilterer struct {
// contains filtered or unexported fields
}
ReaderFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewReaderFilterer ¶
func NewReaderFilterer(address common.Address, filterer bind.ContractFilterer) (*ReaderFilterer, error)
NewReaderFilterer creates a new log filterer instance of Reader, bound to a specific deployed contract.
type ReaderRaw ¶
type ReaderRaw struct {
Contract *Reader // Generic contract binding to access the raw methods on
}
ReaderRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ReaderRaw) Call ¶
func (_Reader *ReaderRaw) 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 (*ReaderRaw) Transact ¶
func (_Reader *ReaderRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReaderRaw) Transfer ¶
func (_Reader *ReaderRaw) 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 ReaderSession ¶
type ReaderSession struct { Contract *Reader // 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 }
ReaderSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ReaderSession) BASISPOINTSDIVISOR ¶
func (_Reader *ReaderSession) BASISPOINTSDIVISOR() (*big.Int, error)
BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.
Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)
func (*ReaderSession) GetAmountOut ¶
func (_Reader *ReaderSession) GetAmountOut(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xd7176ca9.
Solidity: function getAmountOut(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256)
func (*ReaderSession) GetFeeBasisPoints ¶
func (_Reader *ReaderSession) GetFeeBasisPoints(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address, _amountIn *big.Int) (*big.Int, *big.Int, *big.Int, error)
GetFeeBasisPoints is a free data retrieval call binding the contract method 0x440f018c.
Solidity: function getFeeBasisPoints(address _vault, address _tokenIn, address _tokenOut, uint256 _amountIn) view returns(uint256, uint256, uint256)
func (*ReaderSession) GetFees ¶
func (_Reader *ReaderSession) GetFees(_vault common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFees is a free data retrieval call binding the contract method 0x86d4d0f5.
Solidity: function getFees(address _vault, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetFullVaultTokenInfo ¶
func (_Reader *ReaderSession) GetFullVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetFullVaultTokenInfo is a free data retrieval call binding the contract method 0x7b906e93.
Solidity: function getFullVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetFundingRates ¶
func (_Reader *ReaderSession) GetFundingRates(_vault common.Address, _weth common.Address, _tokens []common.Address) ([]*big.Int, error)
GetFundingRates is a free data retrieval call binding the contract method 0x95a7535a.
Solidity: function getFundingRates(address _vault, address _weth, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetMaxAmountIn ¶
func (_Reader *ReaderSession) GetMaxAmountIn(_vault common.Address, _tokenIn common.Address, _tokenOut common.Address) (*big.Int, error)
GetMaxAmountIn is a free data retrieval call binding the contract method 0xf3535e6c.
Solidity: function getMaxAmountIn(address _vault, address _tokenIn, address _tokenOut) view returns(uint256)
func (*ReaderSession) GetPairInfo ¶
func (_Reader *ReaderSession) GetPairInfo(_factory common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPairInfo is a free data retrieval call binding the contract method 0xa4543ead.
Solidity: function getPairInfo(address _factory, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetPositions ¶
func (_Reader *ReaderSession) GetPositions(_vault common.Address, _account common.Address, _collateralTokens []common.Address, _indexTokens []common.Address, _isLong []bool) ([]*big.Int, error)
GetPositions is a free data retrieval call binding the contract method 0xdc383cab.
Solidity: function getPositions(address _vault, address _account, address[] _collateralTokens, address[] _indexTokens, bool[] _isLong) view returns(uint256[])
func (*ReaderSession) GetPrices ¶
func (_Reader *ReaderSession) GetPrices(_priceFeed common.Address, _tokens []common.Address) ([]*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x3613d527.
Solidity: function getPrices(address _priceFeed, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetStakingInfo ¶
func (_Reader *ReaderSession) GetStakingInfo(_account common.Address, _yieldTrackers []common.Address) ([]*big.Int, error)
GetStakingInfo is a free data retrieval call binding the contract method 0x937a0be8.
Solidity: function getStakingInfo(address _account, address[] _yieldTrackers) view returns(uint256[])
func (*ReaderSession) GetTokenBalances ¶
func (_Reader *ReaderSession) GetTokenBalances(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalances is a free data retrieval call binding the contract method 0xd802178e.
Solidity: function getTokenBalances(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetTokenBalancesWithSupplies ¶
func (_Reader *ReaderSession) GetTokenBalancesWithSupplies(_account common.Address, _tokens []common.Address) ([]*big.Int, error)
GetTokenBalancesWithSupplies is a free data retrieval call binding the contract method 0x2e3e3342.
Solidity: function getTokenBalancesWithSupplies(address _account, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetTokenSupply ¶
func (_Reader *ReaderSession) GetTokenSupply(_token common.Address, _excludedAccounts []common.Address) (*big.Int, error)
GetTokenSupply is a free data retrieval call binding the contract method 0x2ac0184c.
Solidity: function getTokenSupply(address _token, address[] _excludedAccounts) view returns(uint256)
func (*ReaderSession) GetTotalBalance ¶
func (_Reader *ReaderSession) GetTotalBalance(_token common.Address, _accounts []common.Address) (*big.Int, error)
GetTotalBalance is a free data retrieval call binding the contract method 0xfbdb05ca.
Solidity: function getTotalBalance(address _token, address[] _accounts) view returns(uint256)
func (*ReaderSession) GetTotalStaked ¶
GetTotalStaked is a free data retrieval call binding the contract method 0x2413c8c1.
Solidity: function getTotalStaked(address[] _yieldTokens) view returns(uint256[])
func (*ReaderSession) GetVaultTokenInfo ¶
func (_Reader *ReaderSession) GetVaultTokenInfo(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfo is a free data retrieval call binding the contract method 0x20542568.
Solidity: function getVaultTokenInfo(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetVaultTokenInfoV2 ¶
func (_Reader *ReaderSession) GetVaultTokenInfoV2(_vault common.Address, _weth common.Address, _usdgAmount *big.Int, _tokens []common.Address) ([]*big.Int, error)
GetVaultTokenInfoV2 is a free data retrieval call binding the contract method 0x8e83ca32.
Solidity: function getVaultTokenInfoV2(address _vault, address _weth, uint256 _usdgAmount, address[] _tokens) view returns(uint256[])
func (*ReaderSession) GetVestingInfo ¶
func (_Reader *ReaderSession) GetVestingInfo(_account common.Address, _vesters []common.Address) ([]*big.Int, error)
GetVestingInfo is a free data retrieval call binding the contract method 0x48211934.
Solidity: function getVestingInfo(address _account, address[] _vesters) view returns(uint256[])
func (*ReaderSession) Gov ¶
func (_Reader *ReaderSession) Gov() (common.Address, error)
Gov is a free data retrieval call binding the contract method 0x12d43a51.
Solidity: function gov() view returns(address)
func (*ReaderSession) HasMaxGlobalShortSizes ¶
func (_Reader *ReaderSession) HasMaxGlobalShortSizes() (bool, error)
HasMaxGlobalShortSizes is a free data retrieval call binding the contract method 0xc6f1d676.
Solidity: function hasMaxGlobalShortSizes() view returns(bool)
func (*ReaderSession) POSITIONPROPSLENGTH ¶
func (_Reader *ReaderSession) POSITIONPROPSLENGTH() (*big.Int, error)
POSITIONPROPSLENGTH is a free data retrieval call binding the contract method 0xad7e5497.
Solidity: function POSITION_PROPS_LENGTH() view returns(uint256)
func (*ReaderSession) PRICEPRECISION ¶
func (_Reader *ReaderSession) PRICEPRECISION() (*big.Int, error)
PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.
Solidity: function PRICE_PRECISION() view returns(uint256)
func (*ReaderSession) SetConfig ¶
func (_Reader *ReaderSession) SetConfig(_hasMaxGlobalShortSizes bool) (*types.Transaction, error)
SetConfig is a paid mutator transaction binding the contract method 0x9b0183c3.
Solidity: function setConfig(bool _hasMaxGlobalShortSizes) returns()
func (*ReaderSession) SetGov ¶
func (_Reader *ReaderSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
func (*ReaderSession) USDGDECIMALS ¶
func (_Reader *ReaderSession) USDGDECIMALS() (*big.Int, error)
USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.
Solidity: function USDG_DECIMALS() view returns(uint256)
type ReaderTransactor ¶
type ReaderTransactor struct {
// contains filtered or unexported fields
}
ReaderTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewReaderTransactor ¶
func NewReaderTransactor(address common.Address, transactor bind.ContractTransactor) (*ReaderTransactor, error)
NewReaderTransactor creates a new write-only instance of Reader, bound to a specific deployed contract.
func (*ReaderTransactor) SetConfig ¶
func (_Reader *ReaderTransactor) SetConfig(opts *bind.TransactOpts, _hasMaxGlobalShortSizes bool) (*types.Transaction, error)
SetConfig is a paid mutator transaction binding the contract method 0x9b0183c3.
Solidity: function setConfig(bool _hasMaxGlobalShortSizes) returns()
func (*ReaderTransactor) SetGov ¶
func (_Reader *ReaderTransactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()
type ReaderTransactorRaw ¶
type ReaderTransactorRaw struct {
Contract *ReaderTransactor // Generic write-only contract binding to access the raw methods on
}
ReaderTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ReaderTransactorRaw) Transact ¶
func (_Reader *ReaderTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReaderTransactorRaw) Transfer ¶
func (_Reader *ReaderTransactorRaw) 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 ReaderTransactorSession ¶
type ReaderTransactorSession struct { Contract *ReaderTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ReaderTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ReaderTransactorSession) SetConfig ¶
func (_Reader *ReaderTransactorSession) SetConfig(_hasMaxGlobalShortSizes bool) (*types.Transaction, error)
SetConfig is a paid mutator transaction binding the contract method 0x9b0183c3.
Solidity: function setConfig(bool _hasMaxGlobalShortSizes) returns()
func (*ReaderTransactorSession) SetGov ¶
func (_Reader *ReaderTransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)
SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.
Solidity: function setGov(address _gov) returns()