gauge

package
v1.3.6-rc-53 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GaugeABI = "" /* 5694-byte string literal not displayed */

GaugeABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

type Gauge struct {
	GaugeCaller     // Read-only binding to the contract
	GaugeTransactor // Write-only binding to the contract
	GaugeFilterer   // Log filterer for contract events
}

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

func NewGauge

func NewGauge(address common.Address, backend bind.ContractBackend) (*Gauge, error)

NewGauge creates a new instance of Gauge, bound to a specific deployed contract.

type GaugeCaller

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

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

func NewGaugeCaller

func NewGaugeCaller(address common.Address, caller bind.ContractCaller) (*GaugeCaller, error)

NewGaugeCaller creates a new read-only instance of Gauge, bound to a specific deployed contract.

func (*GaugeCaller) ApprovedToDeposit

func (_Gauge *GaugeCaller) ApprovedToDeposit(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedToDeposit is a free data retrieval call binding the contract method 0xe1522536.

Solidity: function approved_to_deposit(address arg0, address arg1) view returns(bool)

func (*GaugeCaller) BalanceOf

func (_Gauge *GaugeCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address arg0) view returns(uint256)

func (*GaugeCaller) Controller

func (_Gauge *GaugeCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*GaugeCaller) CrvToken

func (_Gauge *GaugeCaller) CrvToken(opts *bind.CallOpts) (common.Address, error)

CrvToken is a free data retrieval call binding the contract method 0x76d8b117.

Solidity: function crv_token() view returns(address)

func (*GaugeCaller) FutureEpochTime

func (_Gauge *GaugeCaller) FutureEpochTime(opts *bind.CallOpts) (*big.Int, error)

FutureEpochTime is a free data retrieval call binding the contract method 0xbe5d1be9.

Solidity: function future_epoch_time() view returns(uint256)

func (*GaugeCaller) InflationRate

func (_Gauge *GaugeCaller) InflationRate(opts *bind.CallOpts) (*big.Int, error)

InflationRate is a free data retrieval call binding the contract method 0x180692d0.

Solidity: function inflation_rate() view returns(uint256)

func (*GaugeCaller) IntegrateCheckpoint

func (_Gauge *GaugeCaller) IntegrateCheckpoint(opts *bind.CallOpts) (*big.Int, error)

IntegrateCheckpoint is a free data retrieval call binding the contract method 0xd31f3f6d.

Solidity: function integrate_checkpoint() view returns(uint256)

func (*GaugeCaller) IntegrateCheckpointOf

func (_Gauge *GaugeCaller) IntegrateCheckpointOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

IntegrateCheckpointOf is a free data retrieval call binding the contract method 0x9bd324f2.

Solidity: function integrate_checkpoint_of(address arg0) view returns(uint256)

func (*GaugeCaller) IntegrateFraction

func (_Gauge *GaugeCaller) IntegrateFraction(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

IntegrateFraction is a free data retrieval call binding the contract method 0x09400707.

Solidity: function integrate_fraction(address arg0) view returns(uint256)

func (*GaugeCaller) IntegrateInvSupply

func (_Gauge *GaugeCaller) IntegrateInvSupply(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

IntegrateInvSupply is a free data retrieval call binding the contract method 0xfec8ee0c.

Solidity: function integrate_inv_supply(uint256 arg0) view returns(uint256)

func (*GaugeCaller) IntegrateInvSupplyOf

func (_Gauge *GaugeCaller) IntegrateInvSupplyOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

IntegrateInvSupplyOf is a free data retrieval call binding the contract method 0xde263bfa.

Solidity: function integrate_inv_supply_of(address arg0) view returns(uint256)

func (*GaugeCaller) LpToken

func (_Gauge *GaugeCaller) LpToken(opts *bind.CallOpts) (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x82c63066.

Solidity: function lp_token() view returns(address)

func (*GaugeCaller) Minter

func (_Gauge *GaugeCaller) Minter(opts *bind.CallOpts) (common.Address, error)

Minter is a free data retrieval call binding the contract method 0x07546172.

Solidity: function minter() view returns(address)

func (*GaugeCaller) Period

func (_Gauge *GaugeCaller) Period(opts *bind.CallOpts) (*big.Int, error)

Period is a free data retrieval call binding the contract method 0xef78d4fd.

Solidity: function period() view returns(int128)

func (*GaugeCaller) PeriodTimestamp

func (_Gauge *GaugeCaller) PeriodTimestamp(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

PeriodTimestamp is a free data retrieval call binding the contract method 0x7598108c.

Solidity: function period_timestamp(uint256 arg0) view returns(uint256)

func (*GaugeCaller) TotalSupply

func (_Gauge *GaugeCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*GaugeCaller) VotingEscrow

func (_Gauge *GaugeCaller) VotingEscrow(opts *bind.CallOpts) (common.Address, error)

VotingEscrow is a free data retrieval call binding the contract method 0xdfe05031.

Solidity: function voting_escrow() view returns(address)

func (*GaugeCaller) WorkingBalances

func (_Gauge *GaugeCaller) WorkingBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

WorkingBalances is a free data retrieval call binding the contract method 0x13ecb1ca.

Solidity: function working_balances(address arg0) view returns(uint256)

func (*GaugeCaller) WorkingSupply

func (_Gauge *GaugeCaller) WorkingSupply(opts *bind.CallOpts) (*big.Int, error)

WorkingSupply is a free data retrieval call binding the contract method 0x17e28089.

Solidity: function working_supply() view returns(uint256)

type GaugeCallerRaw

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

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

func (*GaugeCallerRaw) Call

func (_Gauge *GaugeCallerRaw) 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 GaugeCallerSession

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

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

func (*GaugeCallerSession) ApprovedToDeposit

func (_Gauge *GaugeCallerSession) ApprovedToDeposit(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedToDeposit is a free data retrieval call binding the contract method 0xe1522536.

Solidity: function approved_to_deposit(address arg0, address arg1) view returns(bool)

func (*GaugeCallerSession) BalanceOf

func (_Gauge *GaugeCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address arg0) view returns(uint256)

func (*GaugeCallerSession) Controller

func (_Gauge *GaugeCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*GaugeCallerSession) CrvToken

func (_Gauge *GaugeCallerSession) CrvToken() (common.Address, error)

CrvToken is a free data retrieval call binding the contract method 0x76d8b117.

Solidity: function crv_token() view returns(address)

func (*GaugeCallerSession) FutureEpochTime

func (_Gauge *GaugeCallerSession) FutureEpochTime() (*big.Int, error)

FutureEpochTime is a free data retrieval call binding the contract method 0xbe5d1be9.

Solidity: function future_epoch_time() view returns(uint256)

func (*GaugeCallerSession) InflationRate

func (_Gauge *GaugeCallerSession) InflationRate() (*big.Int, error)

InflationRate is a free data retrieval call binding the contract method 0x180692d0.

Solidity: function inflation_rate() view returns(uint256)

func (*GaugeCallerSession) IntegrateCheckpoint

func (_Gauge *GaugeCallerSession) IntegrateCheckpoint() (*big.Int, error)

IntegrateCheckpoint is a free data retrieval call binding the contract method 0xd31f3f6d.

Solidity: function integrate_checkpoint() view returns(uint256)

func (*GaugeCallerSession) IntegrateCheckpointOf

func (_Gauge *GaugeCallerSession) IntegrateCheckpointOf(arg0 common.Address) (*big.Int, error)

IntegrateCheckpointOf is a free data retrieval call binding the contract method 0x9bd324f2.

Solidity: function integrate_checkpoint_of(address arg0) view returns(uint256)

func (*GaugeCallerSession) IntegrateFraction

func (_Gauge *GaugeCallerSession) IntegrateFraction(arg0 common.Address) (*big.Int, error)

IntegrateFraction is a free data retrieval call binding the contract method 0x09400707.

Solidity: function integrate_fraction(address arg0) view returns(uint256)

func (*GaugeCallerSession) IntegrateInvSupply

func (_Gauge *GaugeCallerSession) IntegrateInvSupply(arg0 *big.Int) (*big.Int, error)

IntegrateInvSupply is a free data retrieval call binding the contract method 0xfec8ee0c.

Solidity: function integrate_inv_supply(uint256 arg0) view returns(uint256)

func (*GaugeCallerSession) IntegrateInvSupplyOf

func (_Gauge *GaugeCallerSession) IntegrateInvSupplyOf(arg0 common.Address) (*big.Int, error)

IntegrateInvSupplyOf is a free data retrieval call binding the contract method 0xde263bfa.

Solidity: function integrate_inv_supply_of(address arg0) view returns(uint256)

func (*GaugeCallerSession) LpToken

func (_Gauge *GaugeCallerSession) LpToken() (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x82c63066.

Solidity: function lp_token() view returns(address)

func (*GaugeCallerSession) Minter

func (_Gauge *GaugeCallerSession) Minter() (common.Address, error)

Minter is a free data retrieval call binding the contract method 0x07546172.

Solidity: function minter() view returns(address)

func (*GaugeCallerSession) Period

func (_Gauge *GaugeCallerSession) Period() (*big.Int, error)

Period is a free data retrieval call binding the contract method 0xef78d4fd.

Solidity: function period() view returns(int128)

func (*GaugeCallerSession) PeriodTimestamp

func (_Gauge *GaugeCallerSession) PeriodTimestamp(arg0 *big.Int) (*big.Int, error)

PeriodTimestamp is a free data retrieval call binding the contract method 0x7598108c.

Solidity: function period_timestamp(uint256 arg0) view returns(uint256)

func (*GaugeCallerSession) TotalSupply

func (_Gauge *GaugeCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*GaugeCallerSession) VotingEscrow

func (_Gauge *GaugeCallerSession) VotingEscrow() (common.Address, error)

VotingEscrow is a free data retrieval call binding the contract method 0xdfe05031.

Solidity: function voting_escrow() view returns(address)

func (*GaugeCallerSession) WorkingBalances

func (_Gauge *GaugeCallerSession) WorkingBalances(arg0 common.Address) (*big.Int, error)

WorkingBalances is a free data retrieval call binding the contract method 0x13ecb1ca.

Solidity: function working_balances(address arg0) view returns(uint256)

func (*GaugeCallerSession) WorkingSupply

func (_Gauge *GaugeCallerSession) WorkingSupply() (*big.Int, error)

WorkingSupply is a free data retrieval call binding the contract method 0x17e28089.

Solidity: function working_supply() view returns(uint256)

type GaugeDeposit

type GaugeDeposit struct {
	Provider common.Address
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

GaugeDeposit represents a Deposit event raised by the Gauge contract.

type GaugeDepositIterator

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

GaugeDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Gauge contract.

func (*GaugeDepositIterator) Close

func (it *GaugeDepositIterator) Close() error

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

func (*GaugeDepositIterator) Error

func (it *GaugeDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GaugeDepositIterator) Next

func (it *GaugeDepositIterator) Next() bool

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

type GaugeFilterer

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

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

func NewGaugeFilterer

func NewGaugeFilterer(address common.Address, filterer bind.ContractFilterer) (*GaugeFilterer, error)

NewGaugeFilterer creates a new log filterer instance of Gauge, bound to a specific deployed contract.

func (*GaugeFilterer) FilterDeposit

func (_Gauge *GaugeFilterer) FilterDeposit(opts *bind.FilterOpts, provider []common.Address) (*GaugeDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address indexed provider, uint256 value)

func (*GaugeFilterer) FilterUpdateLiquidityLimit

func (_Gauge *GaugeFilterer) FilterUpdateLiquidityLimit(opts *bind.FilterOpts) (*GaugeUpdateLiquidityLimitIterator, error)

FilterUpdateLiquidityLimit is a free log retrieval operation binding the contract event 0x7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a3.

Solidity: event UpdateLiquidityLimit(address user, uint256 original_balance, uint256 original_supply, uint256 working_balance, uint256 working_supply)

func (*GaugeFilterer) FilterWithdraw

func (_Gauge *GaugeFilterer) FilterWithdraw(opts *bind.FilterOpts, provider []common.Address) (*GaugeWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.

Solidity: event Withdraw(address indexed provider, uint256 value)

func (*GaugeFilterer) ParseDeposit

func (_Gauge *GaugeFilterer) ParseDeposit(log types.Log) (*GaugeDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address indexed provider, uint256 value)

func (*GaugeFilterer) ParseUpdateLiquidityLimit

func (_Gauge *GaugeFilterer) ParseUpdateLiquidityLimit(log types.Log) (*GaugeUpdateLiquidityLimit, error)

ParseUpdateLiquidityLimit is a log parse operation binding the contract event 0x7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a3.

Solidity: event UpdateLiquidityLimit(address user, uint256 original_balance, uint256 original_supply, uint256 working_balance, uint256 working_supply)

func (*GaugeFilterer) ParseWithdraw

func (_Gauge *GaugeFilterer) ParseWithdraw(log types.Log) (*GaugeWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.

Solidity: event Withdraw(address indexed provider, uint256 value)

func (*GaugeFilterer) WatchDeposit

func (_Gauge *GaugeFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *GaugeDeposit, provider []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.

Solidity: event Deposit(address indexed provider, uint256 value)

func (*GaugeFilterer) WatchUpdateLiquidityLimit

func (_Gauge *GaugeFilterer) WatchUpdateLiquidityLimit(opts *bind.WatchOpts, sink chan<- *GaugeUpdateLiquidityLimit) (event.Subscription, error)

WatchUpdateLiquidityLimit is a free log subscription operation binding the contract event 0x7ecd84343f76a23d2227290e0288da3251b045541698e575a5515af4f04197a3.

Solidity: event UpdateLiquidityLimit(address user, uint256 original_balance, uint256 original_supply, uint256 working_balance, uint256 working_supply)

func (*GaugeFilterer) WatchWithdraw

func (_Gauge *GaugeFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *GaugeWithdraw, provider []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364.

Solidity: event Withdraw(address indexed provider, uint256 value)

type GaugeRaw

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

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

func (*GaugeRaw) Call

func (_Gauge *GaugeRaw) 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 (*GaugeRaw) Transact

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

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

func (*GaugeRaw) Transfer

func (_Gauge *GaugeRaw) 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 GaugeSession

type GaugeSession struct {
	Contract     *Gauge            // 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
}

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

func (*GaugeSession) ApprovedToDeposit

func (_Gauge *GaugeSession) ApprovedToDeposit(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedToDeposit is a free data retrieval call binding the contract method 0xe1522536.

Solidity: function approved_to_deposit(address arg0, address arg1) view returns(bool)

func (*GaugeSession) BalanceOf

func (_Gauge *GaugeSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address arg0) view returns(uint256)

func (*GaugeSession) ClaimableTokens

func (_Gauge *GaugeSession) ClaimableTokens(addr common.Address) (*types.Transaction, error)

ClaimableTokens is a paid mutator transaction binding the contract method 0x33134583.

Solidity: function claimable_tokens(address addr) returns(uint256)

func (*GaugeSession) Controller

func (_Gauge *GaugeSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*GaugeSession) CrvToken

func (_Gauge *GaugeSession) CrvToken() (common.Address, error)

CrvToken is a free data retrieval call binding the contract method 0x76d8b117.

Solidity: function crv_token() view returns(address)

func (*GaugeSession) Deposit

func (_Gauge *GaugeSession) Deposit(_value *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _value) returns()

func (*GaugeSession) Deposit0

func (_Gauge *GaugeSession) Deposit0(_value *big.Int, addr common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 _value, address addr) returns()

func (*GaugeSession) FutureEpochTime

func (_Gauge *GaugeSession) FutureEpochTime() (*big.Int, error)

FutureEpochTime is a free data retrieval call binding the contract method 0xbe5d1be9.

Solidity: function future_epoch_time() view returns(uint256)

func (*GaugeSession) InflationRate

func (_Gauge *GaugeSession) InflationRate() (*big.Int, error)

InflationRate is a free data retrieval call binding the contract method 0x180692d0.

Solidity: function inflation_rate() view returns(uint256)

func (*GaugeSession) IntegrateCheckpoint

func (_Gauge *GaugeSession) IntegrateCheckpoint() (*big.Int, error)

IntegrateCheckpoint is a free data retrieval call binding the contract method 0xd31f3f6d.

Solidity: function integrate_checkpoint() view returns(uint256)

func (*GaugeSession) IntegrateCheckpointOf

func (_Gauge *GaugeSession) IntegrateCheckpointOf(arg0 common.Address) (*big.Int, error)

IntegrateCheckpointOf is a free data retrieval call binding the contract method 0x9bd324f2.

Solidity: function integrate_checkpoint_of(address arg0) view returns(uint256)

func (*GaugeSession) IntegrateFraction

func (_Gauge *GaugeSession) IntegrateFraction(arg0 common.Address) (*big.Int, error)

IntegrateFraction is a free data retrieval call binding the contract method 0x09400707.

Solidity: function integrate_fraction(address arg0) view returns(uint256)

func (*GaugeSession) IntegrateInvSupply

func (_Gauge *GaugeSession) IntegrateInvSupply(arg0 *big.Int) (*big.Int, error)

IntegrateInvSupply is a free data retrieval call binding the contract method 0xfec8ee0c.

Solidity: function integrate_inv_supply(uint256 arg0) view returns(uint256)

func (*GaugeSession) IntegrateInvSupplyOf

func (_Gauge *GaugeSession) IntegrateInvSupplyOf(arg0 common.Address) (*big.Int, error)

IntegrateInvSupplyOf is a free data retrieval call binding the contract method 0xde263bfa.

Solidity: function integrate_inv_supply_of(address arg0) view returns(uint256)

func (*GaugeSession) Kick

func (_Gauge *GaugeSession) Kick(addr common.Address) (*types.Transaction, error)

Kick is a paid mutator transaction binding the contract method 0x96c55175.

Solidity: function kick(address addr) returns()

func (*GaugeSession) LpToken

func (_Gauge *GaugeSession) LpToken() (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x82c63066.

Solidity: function lp_token() view returns(address)

func (*GaugeSession) Minter

func (_Gauge *GaugeSession) Minter() (common.Address, error)

Minter is a free data retrieval call binding the contract method 0x07546172.

Solidity: function minter() view returns(address)

func (*GaugeSession) Period

func (_Gauge *GaugeSession) Period() (*big.Int, error)

Period is a free data retrieval call binding the contract method 0xef78d4fd.

Solidity: function period() view returns(int128)

func (*GaugeSession) PeriodTimestamp

func (_Gauge *GaugeSession) PeriodTimestamp(arg0 *big.Int) (*big.Int, error)

PeriodTimestamp is a free data retrieval call binding the contract method 0x7598108c.

Solidity: function period_timestamp(uint256 arg0) view returns(uint256)

func (*GaugeSession) SetApproveDeposit

func (_Gauge *GaugeSession) SetApproveDeposit(addr common.Address, can_deposit bool) (*types.Transaction, error)

SetApproveDeposit is a paid mutator transaction binding the contract method 0x1d2747d4.

Solidity: function set_approve_deposit(address addr, bool can_deposit) returns()

func (*GaugeSession) TotalSupply

func (_Gauge *GaugeSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*GaugeSession) UserCheckpoint

func (_Gauge *GaugeSession) UserCheckpoint(addr common.Address) (*types.Transaction, error)

UserCheckpoint is a paid mutator transaction binding the contract method 0x4b820093.

Solidity: function user_checkpoint(address addr) returns(bool)

func (*GaugeSession) VotingEscrow

func (_Gauge *GaugeSession) VotingEscrow() (common.Address, error)

VotingEscrow is a free data retrieval call binding the contract method 0xdfe05031.

Solidity: function voting_escrow() view returns(address)

func (*GaugeSession) Withdraw

func (_Gauge *GaugeSession) Withdraw(_value *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _value) returns()

func (*GaugeSession) WorkingBalances

func (_Gauge *GaugeSession) WorkingBalances(arg0 common.Address) (*big.Int, error)

WorkingBalances is a free data retrieval call binding the contract method 0x13ecb1ca.

Solidity: function working_balances(address arg0) view returns(uint256)

func (*GaugeSession) WorkingSupply

func (_Gauge *GaugeSession) WorkingSupply() (*big.Int, error)

WorkingSupply is a free data retrieval call binding the contract method 0x17e28089.

Solidity: function working_supply() view returns(uint256)

type GaugeTransactor

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

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

func NewGaugeTransactor

func NewGaugeTransactor(address common.Address, transactor bind.ContractTransactor) (*GaugeTransactor, error)

NewGaugeTransactor creates a new write-only instance of Gauge, bound to a specific deployed contract.

func (*GaugeTransactor) ClaimableTokens

func (_Gauge *GaugeTransactor) ClaimableTokens(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

ClaimableTokens is a paid mutator transaction binding the contract method 0x33134583.

Solidity: function claimable_tokens(address addr) returns(uint256)

func (*GaugeTransactor) Deposit

func (_Gauge *GaugeTransactor) Deposit(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _value) returns()

func (*GaugeTransactor) Deposit0

func (_Gauge *GaugeTransactor) Deposit0(opts *bind.TransactOpts, _value *big.Int, addr common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 _value, address addr) returns()

func (*GaugeTransactor) Kick

func (_Gauge *GaugeTransactor) Kick(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

Kick is a paid mutator transaction binding the contract method 0x96c55175.

Solidity: function kick(address addr) returns()

func (*GaugeTransactor) SetApproveDeposit

func (_Gauge *GaugeTransactor) SetApproveDeposit(opts *bind.TransactOpts, addr common.Address, can_deposit bool) (*types.Transaction, error)

SetApproveDeposit is a paid mutator transaction binding the contract method 0x1d2747d4.

Solidity: function set_approve_deposit(address addr, bool can_deposit) returns()

func (*GaugeTransactor) UserCheckpoint

func (_Gauge *GaugeTransactor) UserCheckpoint(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

UserCheckpoint is a paid mutator transaction binding the contract method 0x4b820093.

Solidity: function user_checkpoint(address addr) returns(bool)

func (*GaugeTransactor) Withdraw

func (_Gauge *GaugeTransactor) Withdraw(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _value) returns()

type GaugeTransactorRaw

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

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

func (*GaugeTransactorRaw) Transact

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

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

func (*GaugeTransactorRaw) Transfer

func (_Gauge *GaugeTransactorRaw) 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 GaugeTransactorSession

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

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

func (*GaugeTransactorSession) ClaimableTokens

func (_Gauge *GaugeTransactorSession) ClaimableTokens(addr common.Address) (*types.Transaction, error)

ClaimableTokens is a paid mutator transaction binding the contract method 0x33134583.

Solidity: function claimable_tokens(address addr) returns(uint256)

func (*GaugeTransactorSession) Deposit

func (_Gauge *GaugeTransactorSession) Deposit(_value *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xb6b55f25.

Solidity: function deposit(uint256 _value) returns()

func (*GaugeTransactorSession) Deposit0

func (_Gauge *GaugeTransactorSession) Deposit0(_value *big.Int, addr common.Address) (*types.Transaction, error)

Deposit0 is a paid mutator transaction binding the contract method 0x6e553f65.

Solidity: function deposit(uint256 _value, address addr) returns()

func (*GaugeTransactorSession) Kick

Kick is a paid mutator transaction binding the contract method 0x96c55175.

Solidity: function kick(address addr) returns()

func (*GaugeTransactorSession) SetApproveDeposit

func (_Gauge *GaugeTransactorSession) SetApproveDeposit(addr common.Address, can_deposit bool) (*types.Transaction, error)

SetApproveDeposit is a paid mutator transaction binding the contract method 0x1d2747d4.

Solidity: function set_approve_deposit(address addr, bool can_deposit) returns()

func (*GaugeTransactorSession) UserCheckpoint

func (_Gauge *GaugeTransactorSession) UserCheckpoint(addr common.Address) (*types.Transaction, error)

UserCheckpoint is a paid mutator transaction binding the contract method 0x4b820093.

Solidity: function user_checkpoint(address addr) returns(bool)

func (*GaugeTransactorSession) Withdraw

func (_Gauge *GaugeTransactorSession) Withdraw(_value *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _value) returns()

type GaugeUpdateLiquidityLimit

type GaugeUpdateLiquidityLimit struct {
	User            common.Address
	OriginalBalance *big.Int
	OriginalSupply  *big.Int
	WorkingBalance  *big.Int
	WorkingSupply   *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

GaugeUpdateLiquidityLimit represents a UpdateLiquidityLimit event raised by the Gauge contract.

type GaugeUpdateLiquidityLimitIterator

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

GaugeUpdateLiquidityLimitIterator is returned from FilterUpdateLiquidityLimit and is used to iterate over the raw logs and unpacked data for UpdateLiquidityLimit events raised by the Gauge contract.

func (*GaugeUpdateLiquidityLimitIterator) Close

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

func (*GaugeUpdateLiquidityLimitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GaugeUpdateLiquidityLimitIterator) 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 GaugeWithdraw

type GaugeWithdraw struct {
	Provider common.Address
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

GaugeWithdraw represents a Withdraw event raised by the Gauge contract.

type GaugeWithdrawIterator

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

GaugeWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Gauge contract.

func (*GaugeWithdrawIterator) Close

func (it *GaugeWithdrawIterator) Close() error

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

func (*GaugeWithdrawIterator) Error

func (it *GaugeWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GaugeWithdrawIterator) Next

func (it *GaugeWithdrawIterator) Next() bool

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

Jump to

Keyboard shortcuts

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