kanot

package module
v0.0.0-...-9657da1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: AGPL-3.0 Imports: 18 Imported by: 0

README

Kano Terminal

License

See COPYING file

Documentation

Index

Constants

View Source
const DSTokenABI = "" /* 6824-byte string literal not displayed */

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

View Source
const USV2PairABI = "" /* 9821-byte string literal not displayed */

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

Variables

This section is empty.

Functions

func BigToFloat

func BigToFloat(bi *big.Int) float64

TODO: this is just for testing; remove when moving to postgresql numeric

func InitLog

func InitLog()

func SyncETH

func SyncETH()

Types

type ContractSync

type ContractSync interface {
	Name() string
	Contract() (common.Address, uint64, *abi.ABI)

	EventName([]common.Hash) string
	LogFields(string) ([]string, []string)

	LastInsertedBlock(*pgxpool.Conn) uint64
	Insert(*pgxpool.Conn, *ethclient.Client, types.Log, []interface{})
}

type DSToken

type DSToken struct {
	DSTokenCaller     // Read-only binding to the contract
	DSTokenTransactor // Write-only binding to the contract
	DSTokenFilterer   // Log filterer for contract events
}

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

func NewDSToken

func NewDSToken(address common.Address, backend bind.ContractBackend) (*DSToken, error)

NewDSToken creates a new instance of DSToken, bound to a specific deployed contract.

type DSTokenApproval

type DSTokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

DSTokenApproval represents a Approval event raised by the DSToken contract.

type DSTokenApprovalIterator

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

DSTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the DSToken contract.

func (*DSTokenApprovalIterator) Close

func (it *DSTokenApprovalIterator) Close() error

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

func (*DSTokenApprovalIterator) Error

func (it *DSTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenApprovalIterator) Next

func (it *DSTokenApprovalIterator) 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 DSTokenBurn

type DSTokenBurn struct {
	Guy common.Address
	Wad *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

DSTokenBurn represents a Burn event raised by the DSToken contract.

type DSTokenBurnIterator

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

DSTokenBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the DSToken contract.

func (*DSTokenBurnIterator) Close

func (it *DSTokenBurnIterator) Close() error

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

func (*DSTokenBurnIterator) Error

func (it *DSTokenBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenBurnIterator) Next

func (it *DSTokenBurnIterator) 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 DSTokenCaller

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

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

func NewDSTokenCaller

func NewDSTokenCaller(address common.Address, caller bind.ContractCaller) (*DSTokenCaller, error)

NewDSTokenCaller creates a new read-only instance of DSToken, bound to a specific deployed contract.

func (*DSTokenCaller) Allowance

func (_DSToken *DSTokenCaller) Allowance(opts *bind.CallOpts, src common.Address, guy common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address guy) view returns(uint256)

func (*DSTokenCaller) Authority

func (_DSToken *DSTokenCaller) Authority(opts *bind.CallOpts) (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DSTokenCaller) BalanceOf

func (_DSToken *DSTokenCaller) BalanceOf(opts *bind.CallOpts, src common.Address) (*big.Int, error)

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

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

func (*DSTokenCaller) Decimals

func (_DSToken *DSTokenCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*DSTokenCaller) Name

func (_DSToken *DSTokenCaller) Name(opts *bind.CallOpts) ([32]byte, error)

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

Solidity: function name() view returns(bytes32)

func (*DSTokenCaller) Owner

func (_DSToken *DSTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DSTokenCaller) Stopped

func (_DSToken *DSTokenCaller) Stopped(opts *bind.CallOpts) (bool, error)

Stopped is a free data retrieval call binding the contract method 0x75f12b21.

Solidity: function stopped() view returns(bool)

func (*DSTokenCaller) Symbol

func (_DSToken *DSTokenCaller) Symbol(opts *bind.CallOpts) ([32]byte, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(bytes32)

func (*DSTokenCaller) TotalSupply

func (_DSToken *DSTokenCaller) 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)

type DSTokenCallerRaw

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

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

func (*DSTokenCallerRaw) Call

func (_DSToken *DSTokenCallerRaw) 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 DSTokenCallerSession

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

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

func (*DSTokenCallerSession) Allowance

func (_DSToken *DSTokenCallerSession) Allowance(src common.Address, guy common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address guy) view returns(uint256)

func (*DSTokenCallerSession) Authority

func (_DSToken *DSTokenCallerSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DSTokenCallerSession) BalanceOf

func (_DSToken *DSTokenCallerSession) BalanceOf(src common.Address) (*big.Int, error)

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

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

func (*DSTokenCallerSession) Decimals

func (_DSToken *DSTokenCallerSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*DSTokenCallerSession) Name

func (_DSToken *DSTokenCallerSession) Name() ([32]byte, error)

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

Solidity: function name() view returns(bytes32)

func (*DSTokenCallerSession) Owner

func (_DSToken *DSTokenCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DSTokenCallerSession) Stopped

func (_DSToken *DSTokenCallerSession) Stopped() (bool, error)

Stopped is a free data retrieval call binding the contract method 0x75f12b21.

Solidity: function stopped() view returns(bool)

func (*DSTokenCallerSession) Symbol

func (_DSToken *DSTokenCallerSession) Symbol() ([32]byte, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(bytes32)

func (*DSTokenCallerSession) TotalSupply

func (_DSToken *DSTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type DSTokenFilterer

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

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

func NewDSTokenFilterer

func NewDSTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*DSTokenFilterer, error)

NewDSTokenFilterer creates a new log filterer instance of DSToken, bound to a specific deployed contract.

func (*DSTokenFilterer) FilterApproval

func (_DSToken *DSTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*DSTokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DSTokenFilterer) FilterBurn

func (_DSToken *DSTokenFilterer) FilterBurn(opts *bind.FilterOpts, guy []common.Address) (*DSTokenBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed guy, uint256 wad)

func (*DSTokenFilterer) FilterLogSetAuthority

func (_DSToken *DSTokenFilterer) FilterLogSetAuthority(opts *bind.FilterOpts, authority []common.Address) (*DSTokenLogSetAuthorityIterator, error)

FilterLogSetAuthority is a free log retrieval operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DSTokenFilterer) FilterLogSetOwner

func (_DSToken *DSTokenFilterer) FilterLogSetOwner(opts *bind.FilterOpts, owner []common.Address) (*DSTokenLogSetOwnerIterator, error)

FilterLogSetOwner is a free log retrieval operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DSTokenFilterer) FilterMint

func (_DSToken *DSTokenFilterer) FilterMint(opts *bind.FilterOpts, guy []common.Address) (*DSTokenMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed guy, uint256 wad)

func (*DSTokenFilterer) FilterTransfer

func (_DSToken *DSTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*DSTokenTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*DSTokenFilterer) ParseApproval

func (_DSToken *DSTokenFilterer) ParseApproval(log types.Log) (*DSTokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DSTokenFilterer) ParseBurn

func (_DSToken *DSTokenFilterer) ParseBurn(log types.Log) (*DSTokenBurn, error)

ParseBurn is a log parse operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed guy, uint256 wad)

func (*DSTokenFilterer) ParseLogSetAuthority

func (_DSToken *DSTokenFilterer) ParseLogSetAuthority(log types.Log) (*DSTokenLogSetAuthority, error)

ParseLogSetAuthority is a log parse operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DSTokenFilterer) ParseLogSetOwner

func (_DSToken *DSTokenFilterer) ParseLogSetOwner(log types.Log) (*DSTokenLogSetOwner, error)

ParseLogSetOwner is a log parse operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DSTokenFilterer) ParseMint

func (_DSToken *DSTokenFilterer) ParseMint(log types.Log) (*DSTokenMint, error)

ParseMint is a log parse operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed guy, uint256 wad)

func (*DSTokenFilterer) ParseTransfer

func (_DSToken *DSTokenFilterer) ParseTransfer(log types.Log) (*DSTokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*DSTokenFilterer) WatchApproval

func (_DSToken *DSTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *DSTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*DSTokenFilterer) WatchBurn

func (_DSToken *DSTokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *DSTokenBurn, guy []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.

Solidity: event Burn(address indexed guy, uint256 wad)

func (*DSTokenFilterer) WatchLogSetAuthority

func (_DSToken *DSTokenFilterer) WatchLogSetAuthority(opts *bind.WatchOpts, sink chan<- *DSTokenLogSetAuthority, authority []common.Address) (event.Subscription, error)

WatchLogSetAuthority is a free log subscription operation binding the contract event 0x1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada4.

Solidity: event LogSetAuthority(address indexed authority)

func (*DSTokenFilterer) WatchLogSetOwner

func (_DSToken *DSTokenFilterer) WatchLogSetOwner(opts *bind.WatchOpts, sink chan<- *DSTokenLogSetOwner, owner []common.Address) (event.Subscription, error)

WatchLogSetOwner is a free log subscription operation binding the contract event 0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94.

Solidity: event LogSetOwner(address indexed owner)

func (*DSTokenFilterer) WatchMint

func (_DSToken *DSTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *DSTokenMint, guy []common.Address) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.

Solidity: event Mint(address indexed guy, uint256 wad)

func (*DSTokenFilterer) WatchTransfer

func (_DSToken *DSTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *DSTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type DSTokenLogSetAuthority

type DSTokenLogSetAuthority struct {
	Authority common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

DSTokenLogSetAuthority represents a LogSetAuthority event raised by the DSToken contract.

type DSTokenLogSetAuthorityIterator

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

DSTokenLogSetAuthorityIterator is returned from FilterLogSetAuthority and is used to iterate over the raw logs and unpacked data for LogSetAuthority events raised by the DSToken contract.

func (*DSTokenLogSetAuthorityIterator) Close

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

func (*DSTokenLogSetAuthorityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenLogSetAuthorityIterator) 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 DSTokenLogSetOwner

type DSTokenLogSetOwner struct {
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

DSTokenLogSetOwner represents a LogSetOwner event raised by the DSToken contract.

type DSTokenLogSetOwnerIterator

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

DSTokenLogSetOwnerIterator is returned from FilterLogSetOwner and is used to iterate over the raw logs and unpacked data for LogSetOwner events raised by the DSToken contract.

func (*DSTokenLogSetOwnerIterator) Close

func (it *DSTokenLogSetOwnerIterator) Close() error

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

func (*DSTokenLogSetOwnerIterator) Error

func (it *DSTokenLogSetOwnerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenLogSetOwnerIterator) Next

func (it *DSTokenLogSetOwnerIterator) 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 DSTokenMint

type DSTokenMint struct {
	Guy common.Address
	Wad *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

DSTokenMint represents a Mint event raised by the DSToken contract.

type DSTokenMintIterator

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

DSTokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the DSToken contract.

func (*DSTokenMintIterator) Close

func (it *DSTokenMintIterator) Close() error

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

func (*DSTokenMintIterator) Error

func (it *DSTokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenMintIterator) Next

func (it *DSTokenMintIterator) 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 DSTokenRaw

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

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

func (*DSTokenRaw) Call

func (_DSToken *DSTokenRaw) 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 (*DSTokenRaw) Transact

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

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

func (*DSTokenRaw) Transfer

func (_DSToken *DSTokenRaw) 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 DSTokenSession

type DSTokenSession struct {
	Contract     *DSToken          // 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
}

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

func (*DSTokenSession) Allowance

func (_DSToken *DSTokenSession) Allowance(src common.Address, guy common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address guy) view returns(uint256)

func (*DSTokenSession) Approve

func (_DSToken *DSTokenSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address guy, uint256 wad) returns(bool)

func (*DSTokenSession) Approve0

func (_DSToken *DSTokenSession) Approve0(guy common.Address) (*types.Transaction, error)

Approve0 is a paid mutator transaction binding the contract method 0xdaea85c5.

Solidity: function approve(address guy) returns(bool)

func (*DSTokenSession) Authority

func (_DSToken *DSTokenSession) Authority() (common.Address, error)

Authority is a free data retrieval call binding the contract method 0xbf7e214f.

Solidity: function authority() view returns(address)

func (*DSTokenSession) BalanceOf

func (_DSToken *DSTokenSession) BalanceOf(src common.Address) (*big.Int, error)

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

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

func (*DSTokenSession) Burn

func (_DSToken *DSTokenSession) Burn(wad *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 wad) returns()

func (*DSTokenSession) Burn0

func (_DSToken *DSTokenSession) Burn0(guy common.Address, wad *big.Int) (*types.Transaction, error)

Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address guy, uint256 wad) returns()

func (*DSTokenSession) Decimals

func (_DSToken *DSTokenSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*DSTokenSession) Mint

func (_DSToken *DSTokenSession) Mint(guy common.Address, wad *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address guy, uint256 wad) returns()

func (*DSTokenSession) Mint0

func (_DSToken *DSTokenSession) Mint0(wad *big.Int) (*types.Transaction, error)

Mint0 is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 wad) returns()

func (*DSTokenSession) Move

func (_DSToken *DSTokenSession) Move(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

Move is a paid mutator transaction binding the contract method 0xbb35783b.

Solidity: function move(address src, address dst, uint256 wad) returns()

func (*DSTokenSession) Name

func (_DSToken *DSTokenSession) Name() ([32]byte, error)

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

Solidity: function name() view returns(bytes32)

func (*DSTokenSession) Owner

func (_DSToken *DSTokenSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DSTokenSession) Pull

func (_DSToken *DSTokenSession) Pull(src common.Address, wad *big.Int) (*types.Transaction, error)

Pull is a paid mutator transaction binding the contract method 0xf2d5d56b.

Solidity: function pull(address src, uint256 wad) returns()

func (*DSTokenSession) Push

func (_DSToken *DSTokenSession) Push(dst common.Address, wad *big.Int) (*types.Transaction, error)

Push is a paid mutator transaction binding the contract method 0xb753a98c.

Solidity: function push(address dst, uint256 wad) returns()

func (*DSTokenSession) SetAuthority

func (_DSToken *DSTokenSession) SetAuthority(authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DSTokenSession) SetName

func (_DSToken *DSTokenSession) SetName(name_ [32]byte) (*types.Transaction, error)

SetName is a paid mutator transaction binding the contract method 0x5ac801fe.

Solidity: function setName(bytes32 name_) returns()

func (*DSTokenSession) SetOwner

func (_DSToken *DSTokenSession) SetOwner(owner_ common.Address) (*types.Transaction, error)

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

Solidity: function setOwner(address owner_) returns()

func (*DSTokenSession) Start

func (_DSToken *DSTokenSession) Start() (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xbe9a6555.

Solidity: function start() returns()

func (*DSTokenSession) Stop

func (_DSToken *DSTokenSession) Stop() (*types.Transaction, error)

Stop is a paid mutator transaction binding the contract method 0x07da68f5.

Solidity: function stop() returns()

func (*DSTokenSession) Stopped

func (_DSToken *DSTokenSession) Stopped() (bool, error)

Stopped is a free data retrieval call binding the contract method 0x75f12b21.

Solidity: function stopped() view returns(bool)

func (*DSTokenSession) Symbol

func (_DSToken *DSTokenSession) Symbol() ([32]byte, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(bytes32)

func (*DSTokenSession) TotalSupply

func (_DSToken *DSTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*DSTokenSession) Transfer

func (_DSToken *DSTokenSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 wad) returns(bool)

func (*DSTokenSession) TransferFrom

func (_DSToken *DSTokenSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)

type DSTokenTransactor

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

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

func NewDSTokenTransactor

func NewDSTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*DSTokenTransactor, error)

NewDSTokenTransactor creates a new write-only instance of DSToken, bound to a specific deployed contract.

func (*DSTokenTransactor) Approve

func (_DSToken *DSTokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address guy, uint256 wad) returns(bool)

func (*DSTokenTransactor) Approve0

func (_DSToken *DSTokenTransactor) Approve0(opts *bind.TransactOpts, guy common.Address) (*types.Transaction, error)

Approve0 is a paid mutator transaction binding the contract method 0xdaea85c5.

Solidity: function approve(address guy) returns(bool)

func (*DSTokenTransactor) Burn

func (_DSToken *DSTokenTransactor) Burn(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 wad) returns()

func (*DSTokenTransactor) Burn0

func (_DSToken *DSTokenTransactor) Burn0(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)

Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address guy, uint256 wad) returns()

func (*DSTokenTransactor) Mint

func (_DSToken *DSTokenTransactor) Mint(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address guy, uint256 wad) returns()

func (*DSTokenTransactor) Mint0

func (_DSToken *DSTokenTransactor) Mint0(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)

Mint0 is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 wad) returns()

func (*DSTokenTransactor) Move

func (_DSToken *DSTokenTransactor) Move(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

Move is a paid mutator transaction binding the contract method 0xbb35783b.

Solidity: function move(address src, address dst, uint256 wad) returns()

func (*DSTokenTransactor) Pull

func (_DSToken *DSTokenTransactor) Pull(opts *bind.TransactOpts, src common.Address, wad *big.Int) (*types.Transaction, error)

Pull is a paid mutator transaction binding the contract method 0xf2d5d56b.

Solidity: function pull(address src, uint256 wad) returns()

func (*DSTokenTransactor) Push

func (_DSToken *DSTokenTransactor) Push(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)

Push is a paid mutator transaction binding the contract method 0xb753a98c.

Solidity: function push(address dst, uint256 wad) returns()

func (*DSTokenTransactor) SetAuthority

func (_DSToken *DSTokenTransactor) SetAuthority(opts *bind.TransactOpts, authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DSTokenTransactor) SetName

func (_DSToken *DSTokenTransactor) SetName(opts *bind.TransactOpts, name_ [32]byte) (*types.Transaction, error)

SetName is a paid mutator transaction binding the contract method 0x5ac801fe.

Solidity: function setName(bytes32 name_) returns()

func (*DSTokenTransactor) SetOwner

func (_DSToken *DSTokenTransactor) SetOwner(opts *bind.TransactOpts, owner_ common.Address) (*types.Transaction, error)

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

Solidity: function setOwner(address owner_) returns()

func (*DSTokenTransactor) Start

func (_DSToken *DSTokenTransactor) Start(opts *bind.TransactOpts) (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xbe9a6555.

Solidity: function start() returns()

func (*DSTokenTransactor) Stop

func (_DSToken *DSTokenTransactor) Stop(opts *bind.TransactOpts) (*types.Transaction, error)

Stop is a paid mutator transaction binding the contract method 0x07da68f5.

Solidity: function stop() returns()

func (*DSTokenTransactor) Transfer

func (_DSToken *DSTokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 wad) returns(bool)

func (*DSTokenTransactor) TransferFrom

func (_DSToken *DSTokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)

type DSTokenTransactorRaw

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

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

func (*DSTokenTransactorRaw) Transact

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

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

func (*DSTokenTransactorRaw) Transfer

func (_DSToken *DSTokenTransactorRaw) 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 DSTokenTransactorSession

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

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

func (*DSTokenTransactorSession) Approve

func (_DSToken *DSTokenTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address guy, uint256 wad) returns(bool)

func (*DSTokenTransactorSession) Approve0

func (_DSToken *DSTokenTransactorSession) Approve0(guy common.Address) (*types.Transaction, error)

Approve0 is a paid mutator transaction binding the contract method 0xdaea85c5.

Solidity: function approve(address guy) returns(bool)

func (*DSTokenTransactorSession) Burn

func (_DSToken *DSTokenTransactorSession) Burn(wad *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 wad) returns()

func (*DSTokenTransactorSession) Burn0

func (_DSToken *DSTokenTransactorSession) Burn0(guy common.Address, wad *big.Int) (*types.Transaction, error)

Burn0 is a paid mutator transaction binding the contract method 0x9dc29fac.

Solidity: function burn(address guy, uint256 wad) returns()

func (*DSTokenTransactorSession) Mint

func (_DSToken *DSTokenTransactorSession) Mint(guy common.Address, wad *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address guy, uint256 wad) returns()

func (*DSTokenTransactorSession) Mint0

func (_DSToken *DSTokenTransactorSession) Mint0(wad *big.Int) (*types.Transaction, error)

Mint0 is a paid mutator transaction binding the contract method 0xa0712d68.

Solidity: function mint(uint256 wad) returns()

func (*DSTokenTransactorSession) Move

func (_DSToken *DSTokenTransactorSession) Move(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

Move is a paid mutator transaction binding the contract method 0xbb35783b.

Solidity: function move(address src, address dst, uint256 wad) returns()

func (*DSTokenTransactorSession) Pull

func (_DSToken *DSTokenTransactorSession) Pull(src common.Address, wad *big.Int) (*types.Transaction, error)

Pull is a paid mutator transaction binding the contract method 0xf2d5d56b.

Solidity: function pull(address src, uint256 wad) returns()

func (*DSTokenTransactorSession) Push

func (_DSToken *DSTokenTransactorSession) Push(dst common.Address, wad *big.Int) (*types.Transaction, error)

Push is a paid mutator transaction binding the contract method 0xb753a98c.

Solidity: function push(address dst, uint256 wad) returns()

func (*DSTokenTransactorSession) SetAuthority

func (_DSToken *DSTokenTransactorSession) SetAuthority(authority_ common.Address) (*types.Transaction, error)

SetAuthority is a paid mutator transaction binding the contract method 0x7a9e5e4b.

Solidity: function setAuthority(address authority_) returns()

func (*DSTokenTransactorSession) SetName

func (_DSToken *DSTokenTransactorSession) SetName(name_ [32]byte) (*types.Transaction, error)

SetName is a paid mutator transaction binding the contract method 0x5ac801fe.

Solidity: function setName(bytes32 name_) returns()

func (*DSTokenTransactorSession) SetOwner

func (_DSToken *DSTokenTransactorSession) SetOwner(owner_ common.Address) (*types.Transaction, error)

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

Solidity: function setOwner(address owner_) returns()

func (*DSTokenTransactorSession) Start

func (_DSToken *DSTokenTransactorSession) Start() (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xbe9a6555.

Solidity: function start() returns()

func (*DSTokenTransactorSession) Stop

func (_DSToken *DSTokenTransactorSession) Stop() (*types.Transaction, error)

Stop is a paid mutator transaction binding the contract method 0x07da68f5.

Solidity: function stop() returns()

func (*DSTokenTransactorSession) Transfer

func (_DSToken *DSTokenTransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 wad) returns(bool)

func (*DSTokenTransactorSession) TransferFrom

func (_DSToken *DSTokenTransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)

type DSTokenTransfer

type DSTokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

DSTokenTransfer represents a Transfer event raised by the DSToken contract.

type DSTokenTransferIterator

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

DSTokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the DSToken contract.

func (*DSTokenTransferIterator) Close

func (it *DSTokenTransferIterator) Close() error

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

func (*DSTokenTransferIterator) Error

func (it *DSTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DSTokenTransferIterator) Next

func (it *DSTokenTransferIterator) 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 GlueUSV2Factory

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

https://uniswap.org/docs/v2/smart-contracts/factory/ event PairCreated(address indexed token0, address indexed token1, address pair, uint);

func NewGlueUSV2Factory

func NewGlueUSV2Factory() *GlueUSV2Factory

func (*GlueUSV2Factory) Contract

func (s *GlueUSV2Factory) Contract() (common.Address, uint64, *abi.ABI)

func (*GlueUSV2Factory) EventName

func (s *GlueUSV2Factory) EventName(topics []common.Hash) string

func (*GlueUSV2Factory) Insert

func (s *GlueUSV2Factory) Insert(dbConn *pgxpool.Conn, ec *ethclient.Client, l types.Log, args []interface{})

func (*GlueUSV2Factory) LastInsertedBlock

func (s *GlueUSV2Factory) LastInsertedBlock(dbConn *pgxpool.Conn) uint64

func (*GlueUSV2Factory) LogFields

func (s *GlueUSV2Factory) LogFields(eventName string) ([]string, []string)

func (*GlueUSV2Factory) Name

func (s *GlueUSV2Factory) Name() string

type GlueUSV2Pair

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

https://uniswap.org/docs/v2/smart-contracts/pair/

func NewGlueUSV2Pair

func NewGlueUSV2Pair(addr common.Address, block uint64, ticker string) *GlueUSV2Pair

func (*GlueUSV2Pair) Contract

func (s *GlueUSV2Pair) Contract() (common.Address, uint64, *abi.ABI)

func (*GlueUSV2Pair) EventName

func (s *GlueUSV2Pair) EventName(topics []common.Hash) string

func (*GlueUSV2Pair) Insert

func (s *GlueUSV2Pair) Insert(dbConn *pgxpool.Conn, ec *ethclient.Client, l types.Log, args []interface{})

func (*GlueUSV2Pair) LastInsertedBlock

func (s *GlueUSV2Pair) LastInsertedBlock(dbConn *pgxpool.Conn) uint64

func (*GlueUSV2Pair) LogFields

func (s *GlueUSV2Pair) LogFields(eventName string) ([]string, []string)

func (*GlueUSV2Pair) Name

func (s *GlueUSV2Pair) Name() string

type USV2Pair

type USV2Pair struct {
	USV2PairCaller     // Read-only binding to the contract
	USV2PairTransactor // Write-only binding to the contract
	USV2PairFilterer   // Log filterer for contract events
}

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

func NewUSV2Pair

func NewUSV2Pair(address common.Address, backend bind.ContractBackend) (*USV2Pair, error)

NewUSV2Pair creates a new instance of USV2Pair, bound to a specific deployed contract.

type USV2PairApproval

type USV2PairApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

USV2PairApproval represents a Approval event raised by the USV2Pair contract.

type USV2PairApprovalIterator

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

USV2PairApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the USV2Pair contract.

func (*USV2PairApprovalIterator) Close

func (it *USV2PairApprovalIterator) Close() error

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

func (*USV2PairApprovalIterator) Error

func (it *USV2PairApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairApprovalIterator) Next

func (it *USV2PairApprovalIterator) 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 USV2PairBurn

type USV2PairBurn struct {
	Sender  common.Address
	Amount0 *big.Int
	Amount1 *big.Int
	To      common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

USV2PairBurn represents a Burn event raised by the USV2Pair contract.

type USV2PairBurnIterator

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

USV2PairBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the USV2Pair contract.

func (*USV2PairBurnIterator) Close

func (it *USV2PairBurnIterator) Close() error

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

func (*USV2PairBurnIterator) Error

func (it *USV2PairBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairBurnIterator) Next

func (it *USV2PairBurnIterator) 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 USV2PairCaller

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

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

func NewUSV2PairCaller

func NewUSV2PairCaller(address common.Address, caller bind.ContractCaller) (*USV2PairCaller, error)

NewUSV2PairCaller creates a new read-only instance of USV2Pair, bound to a specific deployed contract.

func (*USV2PairCaller) Allowance

func (_USV2Pair *USV2PairCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*USV2PairCaller) BalanceOf

func (_USV2Pair *USV2PairCaller) 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 ) view returns(uint256)

func (*USV2PairCaller) DOMAINSEPARATOR

func (_USV2Pair *USV2PairCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*USV2PairCaller) Decimals

func (_USV2Pair *USV2PairCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*USV2PairCaller) Factory

func (_USV2Pair *USV2PairCaller) Factory(opts *bind.CallOpts) (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*USV2PairCaller) GetReserves

func (_USV2Pair *USV2PairCaller) GetReserves(opts *bind.CallOpts) (struct {
	Reserve0           *big.Int
	Reserve1           *big.Int
	BlockTimestampLast uint32
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)

func (*USV2PairCaller) KLast

func (_USV2Pair *USV2PairCaller) KLast(opts *bind.CallOpts) (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*USV2PairCaller) MINIMUMLIQUIDITY

func (_USV2Pair *USV2PairCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*USV2PairCaller) Name

func (_USV2Pair *USV2PairCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() view returns(string)

func (*USV2PairCaller) Nonces

func (_USV2Pair *USV2PairCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*USV2PairCaller) PERMITTYPEHASH

func (_USV2Pair *USV2PairCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*USV2PairCaller) Price0CumulativeLast

func (_USV2Pair *USV2PairCaller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*USV2PairCaller) Price1CumulativeLast

func (_USV2Pair *USV2PairCaller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*USV2PairCaller) Symbol

func (_USV2Pair *USV2PairCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*USV2PairCaller) Token0

func (_USV2Pair *USV2PairCaller) Token0(opts *bind.CallOpts) (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*USV2PairCaller) Token1

func (_USV2Pair *USV2PairCaller) Token1(opts *bind.CallOpts) (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*USV2PairCaller) TotalSupply

func (_USV2Pair *USV2PairCaller) 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)

type USV2PairCallerRaw

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

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

func (*USV2PairCallerRaw) Call

func (_USV2Pair *USV2PairCallerRaw) 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 USV2PairCallerSession

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

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

func (*USV2PairCallerSession) Allowance

func (_USV2Pair *USV2PairCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*USV2PairCallerSession) BalanceOf

func (_USV2Pair *USV2PairCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

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

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

func (*USV2PairCallerSession) DOMAINSEPARATOR

func (_USV2Pair *USV2PairCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*USV2PairCallerSession) Decimals

func (_USV2Pair *USV2PairCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*USV2PairCallerSession) Factory

func (_USV2Pair *USV2PairCallerSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*USV2PairCallerSession) GetReserves

func (_USV2Pair *USV2PairCallerSession) GetReserves() (struct {
	Reserve0           *big.Int
	Reserve1           *big.Int
	BlockTimestampLast uint32
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)

func (*USV2PairCallerSession) KLast

func (_USV2Pair *USV2PairCallerSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*USV2PairCallerSession) MINIMUMLIQUIDITY

func (_USV2Pair *USV2PairCallerSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*USV2PairCallerSession) Name

func (_USV2Pair *USV2PairCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*USV2PairCallerSession) Nonces

func (_USV2Pair *USV2PairCallerSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*USV2PairCallerSession) PERMITTYPEHASH

func (_USV2Pair *USV2PairCallerSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*USV2PairCallerSession) Price0CumulativeLast

func (_USV2Pair *USV2PairCallerSession) Price0CumulativeLast() (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*USV2PairCallerSession) Price1CumulativeLast

func (_USV2Pair *USV2PairCallerSession) Price1CumulativeLast() (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*USV2PairCallerSession) Symbol

func (_USV2Pair *USV2PairCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*USV2PairCallerSession) Token0

func (_USV2Pair *USV2PairCallerSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*USV2PairCallerSession) Token1

func (_USV2Pair *USV2PairCallerSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*USV2PairCallerSession) TotalSupply

func (_USV2Pair *USV2PairCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type USV2PairCreated

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

type USV2PairFilterer

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

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

func NewUSV2PairFilterer

func NewUSV2PairFilterer(address common.Address, filterer bind.ContractFilterer) (*USV2PairFilterer, error)

NewUSV2PairFilterer creates a new log filterer instance of USV2Pair, bound to a specific deployed contract.

func (*USV2PairFilterer) FilterApproval

func (_USV2Pair *USV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*USV2PairApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*USV2PairFilterer) FilterBurn

func (_USV2Pair *USV2PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*USV2PairBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)

func (*USV2PairFilterer) FilterMint

func (_USV2Pair *USV2PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*USV2PairMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)

func (*USV2PairFilterer) FilterSwap

func (_USV2Pair *USV2PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*USV2PairSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*USV2PairFilterer) FilterSync

func (_USV2Pair *USV2PairFilterer) FilterSync(opts *bind.FilterOpts) (*USV2PairSyncIterator, error)

FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*USV2PairFilterer) FilterTransfer

func (_USV2Pair *USV2PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*USV2PairTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*USV2PairFilterer) ParseApproval

func (_USV2Pair *USV2PairFilterer) ParseApproval(log types.Log) (*USV2PairApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*USV2PairFilterer) ParseBurn

func (_USV2Pair *USV2PairFilterer) ParseBurn(log types.Log) (*USV2PairBurn, error)

ParseBurn is a log parse operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)

func (*USV2PairFilterer) ParseMint

func (_USV2Pair *USV2PairFilterer) ParseMint(log types.Log) (*USV2PairMint, error)

ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)

func (*USV2PairFilterer) ParseSwap

func (_USV2Pair *USV2PairFilterer) ParseSwap(log types.Log) (*USV2PairSwap, error)

ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*USV2PairFilterer) ParseSync

func (_USV2Pair *USV2PairFilterer) ParseSync(log types.Log) (*USV2PairSync, error)

ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*USV2PairFilterer) ParseTransfer

func (_USV2Pair *USV2PairFilterer) ParseTransfer(log types.Log) (*USV2PairTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*USV2PairFilterer) WatchApproval

func (_USV2Pair *USV2PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *USV2PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*USV2PairFilterer) WatchBurn

func (_USV2Pair *USV2PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *USV2PairBurn, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)

func (*USV2PairFilterer) WatchMint

func (_USV2Pair *USV2PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *USV2PairMint, sender []common.Address) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)

func (*USV2PairFilterer) WatchSwap

func (_USV2Pair *USV2PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *USV2PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*USV2PairFilterer) WatchSync

func (_USV2Pair *USV2PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *USV2PairSync) (event.Subscription, error)

WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*USV2PairFilterer) WatchTransfer

func (_USV2Pair *USV2PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *USV2PairTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type USV2PairMint

type USV2PairMint struct {
	Sender  common.Address
	Amount0 *big.Int
	Amount1 *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

USV2PairMint represents a Mint event raised by the USV2Pair contract.

type USV2PairMintIterator

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

USV2PairMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the USV2Pair contract.

func (*USV2PairMintIterator) Close

func (it *USV2PairMintIterator) Close() error

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

func (*USV2PairMintIterator) Error

func (it *USV2PairMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairMintIterator) Next

func (it *USV2PairMintIterator) 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 USV2PairRaw

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

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

func (*USV2PairRaw) Call

func (_USV2Pair *USV2PairRaw) 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 (*USV2PairRaw) Transact

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

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

func (*USV2PairRaw) Transfer

func (_USV2Pair *USV2PairRaw) 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 USV2PairSession

type USV2PairSession struct {
	Contract     *USV2Pair         // 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
}

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

func (*USV2PairSession) Allowance

func (_USV2Pair *USV2PairSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*USV2PairSession) Approve

func (_USV2Pair *USV2PairSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*USV2PairSession) BalanceOf

func (_USV2Pair *USV2PairSession) BalanceOf(arg0 common.Address) (*big.Int, error)

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

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

func (*USV2PairSession) Burn

func (_USV2Pair *USV2PairSession) Burn(to common.Address) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x89afcb44.

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*USV2PairSession) DOMAINSEPARATOR

func (_USV2Pair *USV2PairSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*USV2PairSession) Decimals

func (_USV2Pair *USV2PairSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*USV2PairSession) Factory

func (_USV2Pair *USV2PairSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*USV2PairSession) GetReserves

func (_USV2Pair *USV2PairSession) GetReserves() (struct {
	Reserve0           *big.Int
	Reserve1           *big.Int
	BlockTimestampLast uint32
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)

func (*USV2PairSession) Initialize

func (_USV2Pair *USV2PairSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1) returns()

func (*USV2PairSession) KLast

func (_USV2Pair *USV2PairSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*USV2PairSession) MINIMUMLIQUIDITY

func (_USV2Pair *USV2PairSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*USV2PairSession) Mint

func (_USV2Pair *USV2PairSession) Mint(to common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 liquidity)

func (*USV2PairSession) Name

func (_USV2Pair *USV2PairSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*USV2PairSession) Nonces

func (_USV2Pair *USV2PairSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

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

func (*USV2PairSession) PERMITTYPEHASH

func (_USV2Pair *USV2PairSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*USV2PairSession) Permit

func (_USV2Pair *USV2PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*USV2PairSession) Price0CumulativeLast

func (_USV2Pair *USV2PairSession) Price0CumulativeLast() (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*USV2PairSession) Price1CumulativeLast

func (_USV2Pair *USV2PairSession) Price1CumulativeLast() (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*USV2PairSession) Skim

func (_USV2Pair *USV2PairSession) Skim(to common.Address) (*types.Transaction, error)

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*USV2PairSession) Swap

func (_USV2Pair *USV2PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x022c0d9f.

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()

func (*USV2PairSession) Symbol

func (_USV2Pair *USV2PairSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*USV2PairSession) Sync

func (_USV2Pair *USV2PairSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*USV2PairSession) Token0

func (_USV2Pair *USV2PairSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*USV2PairSession) Token1

func (_USV2Pair *USV2PairSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*USV2PairSession) TotalSupply

func (_USV2Pair *USV2PairSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*USV2PairSession) Transfer

func (_USV2Pair *USV2PairSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*USV2PairSession) TransferFrom

func (_USV2Pair *USV2PairSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type USV2PairSwap

type USV2PairSwap struct {
	Sender     common.Address
	Amount0In  *big.Int
	Amount1In  *big.Int
	Amount0Out *big.Int
	Amount1Out *big.Int
	To         common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

USV2PairSwap represents a Swap event raised by the USV2Pair contract.

type USV2PairSwapIterator

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

USV2PairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the USV2Pair contract.

func (*USV2PairSwapIterator) Close

func (it *USV2PairSwapIterator) Close() error

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

func (*USV2PairSwapIterator) Error

func (it *USV2PairSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairSwapIterator) Next

func (it *USV2PairSwapIterator) 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 USV2PairSync

type USV2PairSync struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

USV2PairSync represents a Sync event raised by the USV2Pair contract.

type USV2PairSyncIterator

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

USV2PairSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the USV2Pair contract.

func (*USV2PairSyncIterator) Close

func (it *USV2PairSyncIterator) Close() error

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

func (*USV2PairSyncIterator) Error

func (it *USV2PairSyncIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairSyncIterator) Next

func (it *USV2PairSyncIterator) 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 USV2PairTransactor

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

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

func NewUSV2PairTransactor

func NewUSV2PairTransactor(address common.Address, transactor bind.ContractTransactor) (*USV2PairTransactor, error)

NewUSV2PairTransactor creates a new write-only instance of USV2Pair, bound to a specific deployed contract.

func (*USV2PairTransactor) Approve

func (_USV2Pair *USV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*USV2PairTransactor) Burn

func (_USV2Pair *USV2PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x89afcb44.

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*USV2PairTransactor) Initialize

func (_USV2Pair *USV2PairTransactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1) returns()

func (*USV2PairTransactor) Mint

func (_USV2Pair *USV2PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 liquidity)

func (*USV2PairTransactor) Permit

func (_USV2Pair *USV2PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*USV2PairTransactor) Skim

func (_USV2Pair *USV2PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*USV2PairTransactor) Swap

func (_USV2Pair *USV2PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x022c0d9f.

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()

func (*USV2PairTransactor) Sync

func (_USV2Pair *USV2PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*USV2PairTransactor) Transfer

func (_USV2Pair *USV2PairTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*USV2PairTransactor) TransferFrom

func (_USV2Pair *USV2PairTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type USV2PairTransactorRaw

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

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

func (*USV2PairTransactorRaw) Transact

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

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

func (*USV2PairTransactorRaw) Transfer

func (_USV2Pair *USV2PairTransactorRaw) 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 USV2PairTransactorSession

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

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

func (*USV2PairTransactorSession) Approve

func (_USV2Pair *USV2PairTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*USV2PairTransactorSession) Burn

Burn is a paid mutator transaction binding the contract method 0x89afcb44.

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*USV2PairTransactorSession) Initialize

func (_USV2Pair *USV2PairTransactorSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1) returns()

func (*USV2PairTransactorSession) Mint

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 liquidity)

func (*USV2PairTransactorSession) Permit

func (_USV2Pair *USV2PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*USV2PairTransactorSession) Skim

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*USV2PairTransactorSession) Swap

func (_USV2Pair *USV2PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x022c0d9f.

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()

func (*USV2PairTransactorSession) Sync

func (_USV2Pair *USV2PairTransactorSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*USV2PairTransactorSession) Transfer

func (_USV2Pair *USV2PairTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*USV2PairTransactorSession) TransferFrom

func (_USV2Pair *USV2PairTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type USV2PairTransfer

type USV2PairTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

USV2PairTransfer represents a Transfer event raised by the USV2Pair contract.

type USV2PairTransferIterator

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

USV2PairTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the USV2Pair contract.

func (*USV2PairTransferIterator) Close

func (it *USV2PairTransferIterator) Close() error

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

func (*USV2PairTransferIterator) Error

func (it *USV2PairTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*USV2PairTransferIterator) Next

func (it *USV2PairTransferIterator) 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.

Directories

Path Synopsis
cmd
kanotsrv command

Jump to

Keyboard shortcuts

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