GlpManager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlpManagerABI = GlpManagerMetaData.ABI

GlpManagerABI is the input ABI used to generate the binding from. Deprecated: Use GlpManagerMetaData.ABI instead.

View Source
var GlpManagerMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_vault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdg\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_glp\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_shortsTracker\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_cooldownDuration\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"BASIS_POINTS_DIVISOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"GLP_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_COOLDOWN_DURATION\",\"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\":\"addLiquidity\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minUsdg\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minGlp\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addLiquidityForAccount\",\"inputs\":[{\"name\":\"_fundingAccount\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minUsdg\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minGlp\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"aumAddition\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"aumDeduction\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"cooldownDuration\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAum\",\"inputs\":[{\"name\":\"maximise\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAumInUsdg\",\"inputs\":[{\"name\":\"maximise\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAums\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGlobalShortAveragePrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGlobalShortDelta\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPrice\",\"inputs\":[{\"name\":\"_maximise\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"glp\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inPrivateMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isHandler\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lastAddedAt\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeLiquidity\",\"inputs\":[{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_glpAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"removeLiquidityForAccount\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_glpAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minOut\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setAumAdjustment\",\"inputs\":[{\"name\":\"_aumAddition\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_aumDeduction\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setCooldownDuration\",\"inputs\":[{\"name\":\"_cooldownDuration\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setHandler\",\"inputs\":[{\"name\":\"_handler\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInPrivateMode\",\"inputs\":[{\"name\":\"_inPrivateMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setShortsTracker\",\"inputs\":[{\"name\":\"_shortsTracker\",\"type\":\"address\",\"internalType\":\"contractIShortsTracker\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setShortsTrackerAveragePriceWeight\",\"inputs\":[{\"name\":\"_shortsTrackerAveragePriceWeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"shortsTracker\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIShortsTracker\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"shortsTrackerAveragePriceWeight\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdg\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"vault\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIVault\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"AddLiquidity\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"aumInUsdg\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"glpSupply\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"mintAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RemoveLiquidity\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"glpAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"aumInUsdg\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"glpSupply\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOut\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}

GlpManagerMetaData contains all meta data concerning the GlpManager contract.

Functions

This section is empty.

Types

type GlpManager

type GlpManager struct {
	GlpManagerCaller     // Read-only binding to the contract
	GlpManagerTransactor // Write-only binding to the contract
	GlpManagerFilterer   // Log filterer for contract events
}

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

func NewGlpManager

func NewGlpManager(address common.Address, backend bind.ContractBackend) (*GlpManager, error)

NewGlpManager creates a new instance of GlpManager, bound to a specific deployed contract.

type GlpManagerAddLiquidity

type GlpManagerAddLiquidity struct {
	Account    common.Address
	Token      common.Address
	Amount     *big.Int
	AumInUsdg  *big.Int
	GlpSupply  *big.Int
	UsdgAmount *big.Int
	MintAmount *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

GlpManagerAddLiquidity represents a AddLiquidity event raised by the GlpManager contract.

type GlpManagerAddLiquidityIterator

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

GlpManagerAddLiquidityIterator is returned from FilterAddLiquidity and is used to iterate over the raw logs and unpacked data for AddLiquidity events raised by the GlpManager contract.

func (*GlpManagerAddLiquidityIterator) Close

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

func (*GlpManagerAddLiquidityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GlpManagerAddLiquidityIterator) Next

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

type GlpManagerCaller

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

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

func NewGlpManagerCaller

func NewGlpManagerCaller(address common.Address, caller bind.ContractCaller) (*GlpManagerCaller, error)

NewGlpManagerCaller creates a new read-only instance of GlpManager, bound to a specific deployed contract.

func (*GlpManagerCaller) AumAddition

func (_GlpManager *GlpManagerCaller) AumAddition(opts *bind.CallOpts) (*big.Int, error)

AumAddition is a free data retrieval call binding the contract method 0x196b68cb.

Solidity: function aumAddition() view returns(uint256)

func (*GlpManagerCaller) AumDeduction

func (_GlpManager *GlpManagerCaller) AumDeduction(opts *bind.CallOpts) (*big.Int, error)

AumDeduction is a free data retrieval call binding the contract method 0xb172bb0c.

Solidity: function aumDeduction() view returns(uint256)

func (*GlpManagerCaller) BASISPOINTSDIVISOR

func (_GlpManager *GlpManagerCaller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)

BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.

Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)

func (*GlpManagerCaller) CooldownDuration

func (_GlpManager *GlpManagerCaller) CooldownDuration(opts *bind.CallOpts) (*big.Int, error)

CooldownDuration is a free data retrieval call binding the contract method 0x35269315.

Solidity: function cooldownDuration() view returns(uint256)

func (*GlpManagerCaller) GLPPRECISION

func (_GlpManager *GlpManagerCaller) GLPPRECISION(opts *bind.CallOpts) (*big.Int, error)

GLPPRECISION is a free data retrieval call binding the contract method 0x662f1c68.

Solidity: function GLP_PRECISION() view returns(uint256)

func (*GlpManagerCaller) GetAum

func (_GlpManager *GlpManagerCaller) GetAum(opts *bind.CallOpts, maximise bool) (*big.Int, error)

GetAum is a free data retrieval call binding the contract method 0x03391476.

Solidity: function getAum(bool maximise) view returns(uint256)

func (*GlpManagerCaller) GetAumInUsdg

func (_GlpManager *GlpManagerCaller) GetAumInUsdg(opts *bind.CallOpts, maximise bool) (*big.Int, error)

GetAumInUsdg is a free data retrieval call binding the contract method 0x68a0a3e0.

Solidity: function getAumInUsdg(bool maximise) view returns(uint256)

func (*GlpManagerCaller) GetAums

func (_GlpManager *GlpManagerCaller) GetAums(opts *bind.CallOpts) ([]*big.Int, error)

GetAums is a free data retrieval call binding the contract method 0xed0d1c04.

Solidity: function getAums() view returns(uint256[])

func (*GlpManagerCaller) GetGlobalShortAveragePrice

func (_GlpManager *GlpManagerCaller) GetGlobalShortAveragePrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x440d828a.

Solidity: function getGlobalShortAveragePrice(address _token) view returns(uint256)

func (*GlpManagerCaller) GetGlobalShortDelta

func (_GlpManager *GlpManagerCaller) GetGlobalShortDelta(opts *bind.CallOpts, _token common.Address, _price *big.Int, _size *big.Int) (*big.Int, bool, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xa1acd3d5.

Solidity: function getGlobalShortDelta(address _token, uint256 _price, uint256 _size) view returns(uint256, bool)

func (*GlpManagerCaller) GetPrice

func (_GlpManager *GlpManagerCaller) GetPrice(opts *bind.CallOpts, _maximise bool) (*big.Int, error)

GetPrice is a free data retrieval call binding the contract method 0xe245b5af.

Solidity: function getPrice(bool _maximise) view returns(uint256)

func (*GlpManagerCaller) Glp

func (_GlpManager *GlpManagerCaller) Glp(opts *bind.CallOpts) (common.Address, error)

Glp is a free data retrieval call binding the contract method 0x78a207ee.

Solidity: function glp() view returns(address)

func (*GlpManagerCaller) Gov

func (_GlpManager *GlpManagerCaller) Gov(opts *bind.CallOpts) (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*GlpManagerCaller) InPrivateMode

func (_GlpManager *GlpManagerCaller) InPrivateMode(opts *bind.CallOpts) (bool, error)

InPrivateMode is a free data retrieval call binding the contract method 0x070eacee.

Solidity: function inPrivateMode() view returns(bool)

func (*GlpManagerCaller) IsHandler

func (_GlpManager *GlpManagerCaller) IsHandler(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

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

func (*GlpManagerCaller) LastAddedAt

func (_GlpManager *GlpManagerCaller) LastAddedAt(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LastAddedAt is a free data retrieval call binding the contract method 0x8b770e11.

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

func (*GlpManagerCaller) MAXCOOLDOWNDURATION

func (_GlpManager *GlpManagerCaller) MAXCOOLDOWNDURATION(opts *bind.CallOpts) (*big.Int, error)

MAXCOOLDOWNDURATION is a free data retrieval call binding the contract method 0x1e9049cf.

Solidity: function MAX_COOLDOWN_DURATION() view returns(uint256)

func (*GlpManagerCaller) PRICEPRECISION

func (_GlpManager *GlpManagerCaller) PRICEPRECISION(opts *bind.CallOpts) (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*GlpManagerCaller) ShortsTracker

func (_GlpManager *GlpManagerCaller) ShortsTracker(opts *bind.CallOpts) (common.Address, error)

ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.

Solidity: function shortsTracker() view returns(address)

func (*GlpManagerCaller) ShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerCaller) ShortsTrackerAveragePriceWeight(opts *bind.CallOpts) (*big.Int, error)

ShortsTrackerAveragePriceWeight is a free data retrieval call binding the contract method 0x64e6617f.

Solidity: function shortsTrackerAveragePriceWeight() view returns(uint256)

func (*GlpManagerCaller) USDGDECIMALS

func (_GlpManager *GlpManagerCaller) USDGDECIMALS(opts *bind.CallOpts) (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*GlpManagerCaller) Usdg

func (_GlpManager *GlpManagerCaller) Usdg(opts *bind.CallOpts) (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*GlpManagerCaller) Vault

func (_GlpManager *GlpManagerCaller) Vault(opts *bind.CallOpts) (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

type GlpManagerCallerRaw

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

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

func (*GlpManagerCallerRaw) Call

func (_GlpManager *GlpManagerCallerRaw) 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 GlpManagerCallerSession

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

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

func (*GlpManagerCallerSession) AumAddition

func (_GlpManager *GlpManagerCallerSession) AumAddition() (*big.Int, error)

AumAddition is a free data retrieval call binding the contract method 0x196b68cb.

Solidity: function aumAddition() view returns(uint256)

func (*GlpManagerCallerSession) AumDeduction

func (_GlpManager *GlpManagerCallerSession) AumDeduction() (*big.Int, error)

AumDeduction is a free data retrieval call binding the contract method 0xb172bb0c.

Solidity: function aumDeduction() view returns(uint256)

func (*GlpManagerCallerSession) BASISPOINTSDIVISOR

func (_GlpManager *GlpManagerCallerSession) 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 (*GlpManagerCallerSession) CooldownDuration

func (_GlpManager *GlpManagerCallerSession) CooldownDuration() (*big.Int, error)

CooldownDuration is a free data retrieval call binding the contract method 0x35269315.

Solidity: function cooldownDuration() view returns(uint256)

func (*GlpManagerCallerSession) GLPPRECISION

func (_GlpManager *GlpManagerCallerSession) GLPPRECISION() (*big.Int, error)

GLPPRECISION is a free data retrieval call binding the contract method 0x662f1c68.

Solidity: function GLP_PRECISION() view returns(uint256)

func (*GlpManagerCallerSession) GetAum

func (_GlpManager *GlpManagerCallerSession) GetAum(maximise bool) (*big.Int, error)

GetAum is a free data retrieval call binding the contract method 0x03391476.

Solidity: function getAum(bool maximise) view returns(uint256)

func (*GlpManagerCallerSession) GetAumInUsdg

func (_GlpManager *GlpManagerCallerSession) GetAumInUsdg(maximise bool) (*big.Int, error)

GetAumInUsdg is a free data retrieval call binding the contract method 0x68a0a3e0.

Solidity: function getAumInUsdg(bool maximise) view returns(uint256)

func (*GlpManagerCallerSession) GetAums

func (_GlpManager *GlpManagerCallerSession) GetAums() ([]*big.Int, error)

GetAums is a free data retrieval call binding the contract method 0xed0d1c04.

Solidity: function getAums() view returns(uint256[])

func (*GlpManagerCallerSession) GetGlobalShortAveragePrice

func (_GlpManager *GlpManagerCallerSession) GetGlobalShortAveragePrice(_token common.Address) (*big.Int, error)

GetGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x440d828a.

Solidity: function getGlobalShortAveragePrice(address _token) view returns(uint256)

func (*GlpManagerCallerSession) GetGlobalShortDelta

func (_GlpManager *GlpManagerCallerSession) GetGlobalShortDelta(_token common.Address, _price *big.Int, _size *big.Int) (*big.Int, bool, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xa1acd3d5.

Solidity: function getGlobalShortDelta(address _token, uint256 _price, uint256 _size) view returns(uint256, bool)

func (*GlpManagerCallerSession) GetPrice

func (_GlpManager *GlpManagerCallerSession) GetPrice(_maximise bool) (*big.Int, error)

GetPrice is a free data retrieval call binding the contract method 0xe245b5af.

Solidity: function getPrice(bool _maximise) view returns(uint256)

func (*GlpManagerCallerSession) Glp

func (_GlpManager *GlpManagerCallerSession) Glp() (common.Address, error)

Glp is a free data retrieval call binding the contract method 0x78a207ee.

Solidity: function glp() view returns(address)

func (*GlpManagerCallerSession) Gov

func (_GlpManager *GlpManagerCallerSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*GlpManagerCallerSession) InPrivateMode

func (_GlpManager *GlpManagerCallerSession) InPrivateMode() (bool, error)

InPrivateMode is a free data retrieval call binding the contract method 0x070eacee.

Solidity: function inPrivateMode() view returns(bool)

func (*GlpManagerCallerSession) IsHandler

func (_GlpManager *GlpManagerCallerSession) IsHandler(arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

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

func (*GlpManagerCallerSession) LastAddedAt

func (_GlpManager *GlpManagerCallerSession) LastAddedAt(arg0 common.Address) (*big.Int, error)

LastAddedAt is a free data retrieval call binding the contract method 0x8b770e11.

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

func (*GlpManagerCallerSession) MAXCOOLDOWNDURATION

func (_GlpManager *GlpManagerCallerSession) MAXCOOLDOWNDURATION() (*big.Int, error)

MAXCOOLDOWNDURATION is a free data retrieval call binding the contract method 0x1e9049cf.

Solidity: function MAX_COOLDOWN_DURATION() view returns(uint256)

func (*GlpManagerCallerSession) PRICEPRECISION

func (_GlpManager *GlpManagerCallerSession) PRICEPRECISION() (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*GlpManagerCallerSession) ShortsTracker

func (_GlpManager *GlpManagerCallerSession) ShortsTracker() (common.Address, error)

ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.

Solidity: function shortsTracker() view returns(address)

func (*GlpManagerCallerSession) ShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerCallerSession) ShortsTrackerAveragePriceWeight() (*big.Int, error)

ShortsTrackerAveragePriceWeight is a free data retrieval call binding the contract method 0x64e6617f.

Solidity: function shortsTrackerAveragePriceWeight() view returns(uint256)

func (*GlpManagerCallerSession) USDGDECIMALS

func (_GlpManager *GlpManagerCallerSession) USDGDECIMALS() (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*GlpManagerCallerSession) Usdg

func (_GlpManager *GlpManagerCallerSession) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*GlpManagerCallerSession) Vault

func (_GlpManager *GlpManagerCallerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

type GlpManagerFilterer

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

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

func NewGlpManagerFilterer

func NewGlpManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*GlpManagerFilterer, error)

NewGlpManagerFilterer creates a new log filterer instance of GlpManager, bound to a specific deployed contract.

func (*GlpManagerFilterer) FilterAddLiquidity

func (_GlpManager *GlpManagerFilterer) FilterAddLiquidity(opts *bind.FilterOpts) (*GlpManagerAddLiquidityIterator, error)

FilterAddLiquidity is a free log retrieval operation binding the contract event 0x38dc38b96482be64113daffd8d464ebda93e856b70ccfc605e69ccf892ab981e.

Solidity: event AddLiquidity(address account, address token, uint256 amount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 mintAmount)

func (*GlpManagerFilterer) FilterRemoveLiquidity

func (_GlpManager *GlpManagerFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts) (*GlpManagerRemoveLiquidityIterator, error)

FilterRemoveLiquidity is a free log retrieval operation binding the contract event 0x87b9679bb9a4944bafa98c267e7cd4a00ab29fed48afdefae25f0fca5da27940.

Solidity: event RemoveLiquidity(address account, address token, uint256 glpAmount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 amountOut)

func (*GlpManagerFilterer) ParseAddLiquidity

func (_GlpManager *GlpManagerFilterer) ParseAddLiquidity(log types.Log) (*GlpManagerAddLiquidity, error)

ParseAddLiquidity is a log parse operation binding the contract event 0x38dc38b96482be64113daffd8d464ebda93e856b70ccfc605e69ccf892ab981e.

Solidity: event AddLiquidity(address account, address token, uint256 amount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 mintAmount)

func (*GlpManagerFilterer) ParseRemoveLiquidity

func (_GlpManager *GlpManagerFilterer) ParseRemoveLiquidity(log types.Log) (*GlpManagerRemoveLiquidity, error)

ParseRemoveLiquidity is a log parse operation binding the contract event 0x87b9679bb9a4944bafa98c267e7cd4a00ab29fed48afdefae25f0fca5da27940.

Solidity: event RemoveLiquidity(address account, address token, uint256 glpAmount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 amountOut)

func (*GlpManagerFilterer) WatchAddLiquidity

func (_GlpManager *GlpManagerFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *GlpManagerAddLiquidity) (event.Subscription, error)

WatchAddLiquidity is a free log subscription operation binding the contract event 0x38dc38b96482be64113daffd8d464ebda93e856b70ccfc605e69ccf892ab981e.

Solidity: event AddLiquidity(address account, address token, uint256 amount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 mintAmount)

func (*GlpManagerFilterer) WatchRemoveLiquidity

func (_GlpManager *GlpManagerFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *GlpManagerRemoveLiquidity) (event.Subscription, error)

WatchRemoveLiquidity is a free log subscription operation binding the contract event 0x87b9679bb9a4944bafa98c267e7cd4a00ab29fed48afdefae25f0fca5da27940.

Solidity: event RemoveLiquidity(address account, address token, uint256 glpAmount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 amountOut)

type GlpManagerRaw

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

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

func (*GlpManagerRaw) Call

func (_GlpManager *GlpManagerRaw) 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 (*GlpManagerRaw) Transact

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

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

func (*GlpManagerRaw) Transfer

func (_GlpManager *GlpManagerRaw) 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 GlpManagerRemoveLiquidity

type GlpManagerRemoveLiquidity struct {
	Account    common.Address
	Token      common.Address
	GlpAmount  *big.Int
	AumInUsdg  *big.Int
	GlpSupply  *big.Int
	UsdgAmount *big.Int
	AmountOut  *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

GlpManagerRemoveLiquidity represents a RemoveLiquidity event raised by the GlpManager contract.

type GlpManagerRemoveLiquidityIterator

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

GlpManagerRemoveLiquidityIterator is returned from FilterRemoveLiquidity and is used to iterate over the raw logs and unpacked data for RemoveLiquidity events raised by the GlpManager contract.

func (*GlpManagerRemoveLiquidityIterator) Close

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

func (*GlpManagerRemoveLiquidityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GlpManagerRemoveLiquidityIterator) Next

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

type GlpManagerSession

type GlpManagerSession struct {
	Contract     *GlpManager       // 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
}

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

func (*GlpManagerSession) AddLiquidity

func (_GlpManager *GlpManagerSession) AddLiquidity(_token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x1ece366a.

Solidity: function addLiquidity(address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerSession) AddLiquidityForAccount

func (_GlpManager *GlpManagerSession) AddLiquidityForAccount(_fundingAccount common.Address, _account common.Address, _token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidityForAccount is a paid mutator transaction binding the contract method 0x17eb2a15.

Solidity: function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerSession) AumAddition

func (_GlpManager *GlpManagerSession) AumAddition() (*big.Int, error)

AumAddition is a free data retrieval call binding the contract method 0x196b68cb.

Solidity: function aumAddition() view returns(uint256)

func (*GlpManagerSession) AumDeduction

func (_GlpManager *GlpManagerSession) AumDeduction() (*big.Int, error)

AumDeduction is a free data retrieval call binding the contract method 0xb172bb0c.

Solidity: function aumDeduction() view returns(uint256)

func (*GlpManagerSession) BASISPOINTSDIVISOR

func (_GlpManager *GlpManagerSession) 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 (*GlpManagerSession) CooldownDuration

func (_GlpManager *GlpManagerSession) CooldownDuration() (*big.Int, error)

CooldownDuration is a free data retrieval call binding the contract method 0x35269315.

Solidity: function cooldownDuration() view returns(uint256)

func (*GlpManagerSession) GLPPRECISION

func (_GlpManager *GlpManagerSession) GLPPRECISION() (*big.Int, error)

GLPPRECISION is a free data retrieval call binding the contract method 0x662f1c68.

Solidity: function GLP_PRECISION() view returns(uint256)

func (*GlpManagerSession) GetAum

func (_GlpManager *GlpManagerSession) GetAum(maximise bool) (*big.Int, error)

GetAum is a free data retrieval call binding the contract method 0x03391476.

Solidity: function getAum(bool maximise) view returns(uint256)

func (*GlpManagerSession) GetAumInUsdg

func (_GlpManager *GlpManagerSession) GetAumInUsdg(maximise bool) (*big.Int, error)

GetAumInUsdg is a free data retrieval call binding the contract method 0x68a0a3e0.

Solidity: function getAumInUsdg(bool maximise) view returns(uint256)

func (*GlpManagerSession) GetAums

func (_GlpManager *GlpManagerSession) GetAums() ([]*big.Int, error)

GetAums is a free data retrieval call binding the contract method 0xed0d1c04.

Solidity: function getAums() view returns(uint256[])

func (*GlpManagerSession) GetGlobalShortAveragePrice

func (_GlpManager *GlpManagerSession) GetGlobalShortAveragePrice(_token common.Address) (*big.Int, error)

GetGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x440d828a.

Solidity: function getGlobalShortAveragePrice(address _token) view returns(uint256)

func (*GlpManagerSession) GetGlobalShortDelta

func (_GlpManager *GlpManagerSession) GetGlobalShortDelta(_token common.Address, _price *big.Int, _size *big.Int) (*big.Int, bool, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xa1acd3d5.

Solidity: function getGlobalShortDelta(address _token, uint256 _price, uint256 _size) view returns(uint256, bool)

func (*GlpManagerSession) GetPrice

func (_GlpManager *GlpManagerSession) GetPrice(_maximise bool) (*big.Int, error)

GetPrice is a free data retrieval call binding the contract method 0xe245b5af.

Solidity: function getPrice(bool _maximise) view returns(uint256)

func (*GlpManagerSession) Glp

func (_GlpManager *GlpManagerSession) Glp() (common.Address, error)

Glp is a free data retrieval call binding the contract method 0x78a207ee.

Solidity: function glp() view returns(address)

func (*GlpManagerSession) Gov

func (_GlpManager *GlpManagerSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*GlpManagerSession) InPrivateMode

func (_GlpManager *GlpManagerSession) InPrivateMode() (bool, error)

InPrivateMode is a free data retrieval call binding the contract method 0x070eacee.

Solidity: function inPrivateMode() view returns(bool)

func (*GlpManagerSession) IsHandler

func (_GlpManager *GlpManagerSession) IsHandler(arg0 common.Address) (bool, error)

IsHandler is a free data retrieval call binding the contract method 0x46ea87af.

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

func (*GlpManagerSession) LastAddedAt

func (_GlpManager *GlpManagerSession) LastAddedAt(arg0 common.Address) (*big.Int, error)

LastAddedAt is a free data retrieval call binding the contract method 0x8b770e11.

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

func (*GlpManagerSession) MAXCOOLDOWNDURATION

func (_GlpManager *GlpManagerSession) MAXCOOLDOWNDURATION() (*big.Int, error)

MAXCOOLDOWNDURATION is a free data retrieval call binding the contract method 0x1e9049cf.

Solidity: function MAX_COOLDOWN_DURATION() view returns(uint256)

func (*GlpManagerSession) PRICEPRECISION

func (_GlpManager *GlpManagerSession) PRICEPRECISION() (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*GlpManagerSession) RemoveLiquidity

func (_GlpManager *GlpManagerSession) RemoveLiquidity(_tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x8fed0b2c.

Solidity: function removeLiquidity(address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerSession) RemoveLiquidityForAccount

func (_GlpManager *GlpManagerSession) RemoveLiquidityForAccount(_account common.Address, _tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidityForAccount is a paid mutator transaction binding the contract method 0x71d597ad.

Solidity: function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerSession) SetAumAdjustment

func (_GlpManager *GlpManagerSession) SetAumAdjustment(_aumAddition *big.Int, _aumDeduction *big.Int) (*types.Transaction, error)

SetAumAdjustment is a paid mutator transaction binding the contract method 0x9116c4ae.

Solidity: function setAumAdjustment(uint256 _aumAddition, uint256 _aumDeduction) returns()

func (*GlpManagerSession) SetCooldownDuration

func (_GlpManager *GlpManagerSession) SetCooldownDuration(_cooldownDuration *big.Int) (*types.Transaction, error)

SetCooldownDuration is a paid mutator transaction binding the contract method 0x966be075.

Solidity: function setCooldownDuration(uint256 _cooldownDuration) returns()

func (*GlpManagerSession) SetGov

func (_GlpManager *GlpManagerSession) 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 (*GlpManagerSession) SetHandler

func (_GlpManager *GlpManagerSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*GlpManagerSession) SetInPrivateMode

func (_GlpManager *GlpManagerSession) SetInPrivateMode(_inPrivateMode bool) (*types.Transaction, error)

SetInPrivateMode is a paid mutator transaction binding the contract method 0x6a86da19.

Solidity: function setInPrivateMode(bool _inPrivateMode) returns()

func (*GlpManagerSession) SetShortsTracker

func (_GlpManager *GlpManagerSession) SetShortsTracker(_shortsTracker common.Address) (*types.Transaction, error)

SetShortsTracker is a paid mutator transaction binding the contract method 0xd34ee093.

Solidity: function setShortsTracker(address _shortsTracker) returns()

func (*GlpManagerSession) SetShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerSession) SetShortsTrackerAveragePriceWeight(_shortsTrackerAveragePriceWeight *big.Int) (*types.Transaction, error)

SetShortsTrackerAveragePriceWeight is a paid mutator transaction binding the contract method 0x4f5f6b5e.

Solidity: function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) returns()

func (*GlpManagerSession) ShortsTracker

func (_GlpManager *GlpManagerSession) ShortsTracker() (common.Address, error)

ShortsTracker is a free data retrieval call binding the contract method 0x657bc5d0.

Solidity: function shortsTracker() view returns(address)

func (*GlpManagerSession) ShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerSession) ShortsTrackerAveragePriceWeight() (*big.Int, error)

ShortsTrackerAveragePriceWeight is a free data retrieval call binding the contract method 0x64e6617f.

Solidity: function shortsTrackerAveragePriceWeight() view returns(uint256)

func (*GlpManagerSession) USDGDECIMALS

func (_GlpManager *GlpManagerSession) USDGDECIMALS() (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*GlpManagerSession) Usdg

func (_GlpManager *GlpManagerSession) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*GlpManagerSession) Vault

func (_GlpManager *GlpManagerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() view returns(address)

type GlpManagerTransactor

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

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

func NewGlpManagerTransactor

func NewGlpManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*GlpManagerTransactor, error)

NewGlpManagerTransactor creates a new write-only instance of GlpManager, bound to a specific deployed contract.

func (*GlpManagerTransactor) AddLiquidity

func (_GlpManager *GlpManagerTransactor) AddLiquidity(opts *bind.TransactOpts, _token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x1ece366a.

Solidity: function addLiquidity(address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerTransactor) AddLiquidityForAccount

func (_GlpManager *GlpManagerTransactor) AddLiquidityForAccount(opts *bind.TransactOpts, _fundingAccount common.Address, _account common.Address, _token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidityForAccount is a paid mutator transaction binding the contract method 0x17eb2a15.

Solidity: function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerTransactor) RemoveLiquidity

func (_GlpManager *GlpManagerTransactor) RemoveLiquidity(opts *bind.TransactOpts, _tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x8fed0b2c.

Solidity: function removeLiquidity(address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerTransactor) RemoveLiquidityForAccount

func (_GlpManager *GlpManagerTransactor) RemoveLiquidityForAccount(opts *bind.TransactOpts, _account common.Address, _tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidityForAccount is a paid mutator transaction binding the contract method 0x71d597ad.

Solidity: function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerTransactor) SetAumAdjustment

func (_GlpManager *GlpManagerTransactor) SetAumAdjustment(opts *bind.TransactOpts, _aumAddition *big.Int, _aumDeduction *big.Int) (*types.Transaction, error)

SetAumAdjustment is a paid mutator transaction binding the contract method 0x9116c4ae.

Solidity: function setAumAdjustment(uint256 _aumAddition, uint256 _aumDeduction) returns()

func (*GlpManagerTransactor) SetCooldownDuration

func (_GlpManager *GlpManagerTransactor) SetCooldownDuration(opts *bind.TransactOpts, _cooldownDuration *big.Int) (*types.Transaction, error)

SetCooldownDuration is a paid mutator transaction binding the contract method 0x966be075.

Solidity: function setCooldownDuration(uint256 _cooldownDuration) returns()

func (*GlpManagerTransactor) SetGov

func (_GlpManager *GlpManagerTransactor) 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()

func (*GlpManagerTransactor) SetHandler

func (_GlpManager *GlpManagerTransactor) SetHandler(opts *bind.TransactOpts, _handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*GlpManagerTransactor) SetInPrivateMode

func (_GlpManager *GlpManagerTransactor) SetInPrivateMode(opts *bind.TransactOpts, _inPrivateMode bool) (*types.Transaction, error)

SetInPrivateMode is a paid mutator transaction binding the contract method 0x6a86da19.

Solidity: function setInPrivateMode(bool _inPrivateMode) returns()

func (*GlpManagerTransactor) SetShortsTracker

func (_GlpManager *GlpManagerTransactor) SetShortsTracker(opts *bind.TransactOpts, _shortsTracker common.Address) (*types.Transaction, error)

SetShortsTracker is a paid mutator transaction binding the contract method 0xd34ee093.

Solidity: function setShortsTracker(address _shortsTracker) returns()

func (*GlpManagerTransactor) SetShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerTransactor) SetShortsTrackerAveragePriceWeight(opts *bind.TransactOpts, _shortsTrackerAveragePriceWeight *big.Int) (*types.Transaction, error)

SetShortsTrackerAveragePriceWeight is a paid mutator transaction binding the contract method 0x4f5f6b5e.

Solidity: function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) returns()

type GlpManagerTransactorRaw

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

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

func (*GlpManagerTransactorRaw) Transact

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

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

func (*GlpManagerTransactorRaw) Transfer

func (_GlpManager *GlpManagerTransactorRaw) 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 GlpManagerTransactorSession

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

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

func (*GlpManagerTransactorSession) AddLiquidity

func (_GlpManager *GlpManagerTransactorSession) AddLiquidity(_token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x1ece366a.

Solidity: function addLiquidity(address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerTransactorSession) AddLiquidityForAccount

func (_GlpManager *GlpManagerTransactorSession) AddLiquidityForAccount(_fundingAccount common.Address, _account common.Address, _token common.Address, _amount *big.Int, _minUsdg *big.Int, _minGlp *big.Int) (*types.Transaction, error)

AddLiquidityForAccount is a paid mutator transaction binding the contract method 0x17eb2a15.

Solidity: function addLiquidityForAccount(address _fundingAccount, address _account, address _token, uint256 _amount, uint256 _minUsdg, uint256 _minGlp) returns(uint256)

func (*GlpManagerTransactorSession) RemoveLiquidity

func (_GlpManager *GlpManagerTransactorSession) RemoveLiquidity(_tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x8fed0b2c.

Solidity: function removeLiquidity(address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerTransactorSession) RemoveLiquidityForAccount

func (_GlpManager *GlpManagerTransactorSession) RemoveLiquidityForAccount(_account common.Address, _tokenOut common.Address, _glpAmount *big.Int, _minOut *big.Int, _receiver common.Address) (*types.Transaction, error)

RemoveLiquidityForAccount is a paid mutator transaction binding the contract method 0x71d597ad.

Solidity: function removeLiquidityForAccount(address _account, address _tokenOut, uint256 _glpAmount, uint256 _minOut, address _receiver) returns(uint256)

func (*GlpManagerTransactorSession) SetAumAdjustment

func (_GlpManager *GlpManagerTransactorSession) SetAumAdjustment(_aumAddition *big.Int, _aumDeduction *big.Int) (*types.Transaction, error)

SetAumAdjustment is a paid mutator transaction binding the contract method 0x9116c4ae.

Solidity: function setAumAdjustment(uint256 _aumAddition, uint256 _aumDeduction) returns()

func (*GlpManagerTransactorSession) SetCooldownDuration

func (_GlpManager *GlpManagerTransactorSession) SetCooldownDuration(_cooldownDuration *big.Int) (*types.Transaction, error)

SetCooldownDuration is a paid mutator transaction binding the contract method 0x966be075.

Solidity: function setCooldownDuration(uint256 _cooldownDuration) returns()

func (*GlpManagerTransactorSession) SetGov

func (_GlpManager *GlpManagerTransactorSession) 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 (*GlpManagerTransactorSession) SetHandler

func (_GlpManager *GlpManagerTransactorSession) SetHandler(_handler common.Address, _isActive bool) (*types.Transaction, error)

SetHandler is a paid mutator transaction binding the contract method 0x9cb7de4b.

Solidity: function setHandler(address _handler, bool _isActive) returns()

func (*GlpManagerTransactorSession) SetInPrivateMode

func (_GlpManager *GlpManagerTransactorSession) SetInPrivateMode(_inPrivateMode bool) (*types.Transaction, error)

SetInPrivateMode is a paid mutator transaction binding the contract method 0x6a86da19.

Solidity: function setInPrivateMode(bool _inPrivateMode) returns()

func (*GlpManagerTransactorSession) SetShortsTracker

func (_GlpManager *GlpManagerTransactorSession) SetShortsTracker(_shortsTracker common.Address) (*types.Transaction, error)

SetShortsTracker is a paid mutator transaction binding the contract method 0xd34ee093.

Solidity: function setShortsTracker(address _shortsTracker) returns()

func (*GlpManagerTransactorSession) SetShortsTrackerAveragePriceWeight

func (_GlpManager *GlpManagerTransactorSession) SetShortsTrackerAveragePriceWeight(_shortsTrackerAveragePriceWeight *big.Int) (*types.Transaction, error)

SetShortsTrackerAveragePriceWeight is a paid mutator transaction binding the contract method 0x4f5f6b5e.

Solidity: function setShortsTrackerAveragePriceWeight(uint256 _shortsTrackerAveragePriceWeight) returns()

Jump to

Keyboard shortcuts

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