suds

package
v1.4.1-rc-161 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SudsABI = "" /* 9215-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Suds

type Suds struct {
	SudsCaller     // Read-only binding to the contract
	SudsTransactor // Write-only binding to the contract
	SudsFilterer   // Log filterer for contract events
}

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

func NewSuds

func NewSuds(address common.Address, backend bind.ContractBackend) (*Suds, error)

NewSuds creates a new instance of Suds, bound to a specific deployed contract.

type SudsAddLiquidity

type SudsAddLiquidity struct {
	Provider     common.Address
	TokenAmounts [4]*big.Int
	Fees         [4]*big.Int
	Invariant    *big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SudsAddLiquidity represents a AddLiquidity event raised by the Suds contract.

type SudsAddLiquidityIterator

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

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

func (*SudsAddLiquidityIterator) Close

func (it *SudsAddLiquidityIterator) Close() error

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

func (*SudsAddLiquidityIterator) Error

func (it *SudsAddLiquidityIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsAddLiquidityIterator) Next

func (it *SudsAddLiquidityIterator) 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 SudsCaller

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

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

func NewSudsCaller

func NewSudsCaller(address common.Address, caller bind.ContractCaller) (*SudsCaller, error)

NewSudsCaller creates a new read-only instance of Suds, bound to a specific deployed contract.

func (*SudsCaller) A

func (_Suds *SudsCaller) A(opts *bind.CallOpts) (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256)

func (*SudsCaller) AdminActionsDeadline

func (_Suds *SudsCaller) AdminActionsDeadline(opts *bind.CallOpts) (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256)

func (*SudsCaller) AdminFee

func (_Suds *SudsCaller) AdminFee(opts *bind.CallOpts) (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256)

func (*SudsCaller) Balances

func (_Suds *SudsCaller) Balances(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256)

func (*SudsCaller) CalcTokenAmount

func (_Suds *SudsCaller) CalcTokenAmount(opts *bind.CallOpts, amounts [4]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xcf701ff7.

Solidity: function calc_token_amount(uint256[4] amounts, bool deposit) returns(uint256)

func (*SudsCaller) Coins

func (_Suds *SudsCaller) Coins(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address)

func (*SudsCaller) Fee

func (_Suds *SudsCaller) Fee(opts *bind.CallOpts) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256)

func (*SudsCaller) FutureA

func (_Suds *SudsCaller) FutureA(opts *bind.CallOpts) (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256)

func (*SudsCaller) FutureAdminFee

func (_Suds *SudsCaller) FutureAdminFee(opts *bind.CallOpts) (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256)

func (*SudsCaller) FutureFee

func (_Suds *SudsCaller) FutureFee(opts *bind.CallOpts) (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256)

func (*SudsCaller) FutureOwner

func (_Suds *SudsCaller) FutureOwner(opts *bind.CallOpts) (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address)

func (*SudsCaller) GetDy

func (_Suds *SudsCaller) GetDy(opts *bind.CallOpts, i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsCaller) GetDyUnderlying

func (_Suds *SudsCaller) GetDyUnderlying(opts *bind.CallOpts, i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsCaller) GetVirtualPrice

func (_Suds *SudsCaller) GetVirtualPrice(opts *bind.CallOpts) (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256)

func (*SudsCaller) Owner

func (_Suds *SudsCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() returns(address)

func (*SudsCaller) TransferOwnershipDeadline

func (_Suds *SudsCaller) TransferOwnershipDeadline(opts *bind.CallOpts) (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256)

func (*SudsCaller) UnderlyingCoins

func (_Suds *SudsCaller) UnderlyingCoins(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address)

type SudsCallerRaw

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

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

func (*SudsCallerRaw) Call

func (_Suds *SudsCallerRaw) 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 SudsCallerSession

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

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

func (*SudsCallerSession) A

func (_Suds *SudsCallerSession) A() (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256)

func (*SudsCallerSession) AdminActionsDeadline

func (_Suds *SudsCallerSession) AdminActionsDeadline() (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256)

func (*SudsCallerSession) AdminFee

func (_Suds *SudsCallerSession) AdminFee() (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256)

func (*SudsCallerSession) Balances

func (_Suds *SudsCallerSession) Balances(arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256)

func (*SudsCallerSession) CalcTokenAmount

func (_Suds *SudsCallerSession) CalcTokenAmount(amounts [4]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xcf701ff7.

Solidity: function calc_token_amount(uint256[4] amounts, bool deposit) returns(uint256)

func (*SudsCallerSession) Coins

func (_Suds *SudsCallerSession) Coins(arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address)

func (*SudsCallerSession) Fee

func (_Suds *SudsCallerSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256)

func (*SudsCallerSession) FutureA

func (_Suds *SudsCallerSession) FutureA() (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256)

func (*SudsCallerSession) FutureAdminFee

func (_Suds *SudsCallerSession) FutureAdminFee() (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256)

func (*SudsCallerSession) FutureFee

func (_Suds *SudsCallerSession) FutureFee() (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256)

func (*SudsCallerSession) FutureOwner

func (_Suds *SudsCallerSession) FutureOwner() (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address)

func (*SudsCallerSession) GetDy

func (_Suds *SudsCallerSession) GetDy(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsCallerSession) GetDyUnderlying

func (_Suds *SudsCallerSession) GetDyUnderlying(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsCallerSession) GetVirtualPrice

func (_Suds *SudsCallerSession) GetVirtualPrice() (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256)

func (*SudsCallerSession) Owner

func (_Suds *SudsCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() returns(address)

func (*SudsCallerSession) TransferOwnershipDeadline

func (_Suds *SudsCallerSession) TransferOwnershipDeadline() (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256)

func (*SudsCallerSession) UnderlyingCoins

func (_Suds *SudsCallerSession) UnderlyingCoins(arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address)

type SudsCommitNewAdmin

type SudsCommitNewAdmin struct {
	Deadline *big.Int
	Admin    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

SudsCommitNewAdmin represents a CommitNewAdmin event raised by the Suds contract.

type SudsCommitNewAdminIterator

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

SudsCommitNewAdminIterator is returned from FilterCommitNewAdmin and is used to iterate over the raw logs and unpacked data for CommitNewAdmin events raised by the Suds contract.

func (*SudsCommitNewAdminIterator) Close

func (it *SudsCommitNewAdminIterator) Close() error

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

func (*SudsCommitNewAdminIterator) Error

func (it *SudsCommitNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsCommitNewAdminIterator) Next

func (it *SudsCommitNewAdminIterator) 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 SudsCommitNewParameters

type SudsCommitNewParameters struct {
	Deadline *big.Int
	A        *big.Int
	Fee      *big.Int
	AdminFee *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

SudsCommitNewParameters represents a CommitNewParameters event raised by the Suds contract.

type SudsCommitNewParametersIterator

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

SudsCommitNewParametersIterator is returned from FilterCommitNewParameters and is used to iterate over the raw logs and unpacked data for CommitNewParameters events raised by the Suds contract.

func (*SudsCommitNewParametersIterator) Close

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

func (*SudsCommitNewParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsCommitNewParametersIterator) 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 SudsFilterer

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

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

func NewSudsFilterer

func NewSudsFilterer(address common.Address, filterer bind.ContractFilterer) (*SudsFilterer, error)

NewSudsFilterer creates a new log filterer instance of Suds, bound to a specific deployed contract.

func (*SudsFilterer) FilterAddLiquidity

func (_Suds *SudsFilterer) FilterAddLiquidity(opts *bind.FilterOpts, provider []common.Address) (*SudsAddLiquidityIterator, error)

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

Solidity: event AddLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) FilterCommitNewAdmin

func (_Suds *SudsFilterer) FilterCommitNewAdmin(opts *bind.FilterOpts, deadline []*big.Int, admin []common.Address) (*SudsCommitNewAdminIterator, error)

FilterCommitNewAdmin is a free log retrieval operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*SudsFilterer) FilterCommitNewParameters

func (_Suds *SudsFilterer) FilterCommitNewParameters(opts *bind.FilterOpts, deadline []*big.Int) (*SudsCommitNewParametersIterator, error)

FilterCommitNewParameters is a free log retrieval operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) FilterNewAdmin

func (_Suds *SudsFilterer) FilterNewAdmin(opts *bind.FilterOpts, admin []common.Address) (*SudsNewAdminIterator, error)

FilterNewAdmin is a free log retrieval operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*SudsFilterer) FilterNewParameters

func (_Suds *SudsFilterer) FilterNewParameters(opts *bind.FilterOpts) (*SudsNewParametersIterator, error)

FilterNewParameters is a free log retrieval operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) FilterRemoveLiquidity

func (_Suds *SudsFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts, provider []common.Address) (*SudsRemoveLiquidityIterator, error)

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

Solidity: event RemoveLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 token_supply)

func (*SudsFilterer) FilterRemoveLiquidityImbalance

func (_Suds *SudsFilterer) FilterRemoveLiquidityImbalance(opts *bind.FilterOpts, provider []common.Address) (*SudsRemoveLiquidityImbalanceIterator, error)

FilterRemoveLiquidityImbalance is a free log retrieval operation binding the contract event 0xb964b72f73f5ef5bf0fdc559b2fab9a7b12a39e47817a547f1f0aee47febd602.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) FilterTokenExchange

func (_Suds *SudsFilterer) FilterTokenExchange(opts *bind.FilterOpts, buyer []common.Address) (*SudsTokenExchangeIterator, error)

FilterTokenExchange is a free log retrieval operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*SudsFilterer) FilterTokenExchangeUnderlying

func (_Suds *SudsFilterer) FilterTokenExchangeUnderlying(opts *bind.FilterOpts, buyer []common.Address) (*SudsTokenExchangeUnderlyingIterator, error)

FilterTokenExchangeUnderlying is a free log retrieval operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*SudsFilterer) ParseAddLiquidity

func (_Suds *SudsFilterer) ParseAddLiquidity(log types.Log) (*SudsAddLiquidity, error)

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

Solidity: event AddLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) ParseCommitNewAdmin

func (_Suds *SudsFilterer) ParseCommitNewAdmin(log types.Log) (*SudsCommitNewAdmin, error)

ParseCommitNewAdmin is a log parse operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*SudsFilterer) ParseCommitNewParameters

func (_Suds *SudsFilterer) ParseCommitNewParameters(log types.Log) (*SudsCommitNewParameters, error)

ParseCommitNewParameters is a log parse operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) ParseNewAdmin

func (_Suds *SudsFilterer) ParseNewAdmin(log types.Log) (*SudsNewAdmin, error)

ParseNewAdmin is a log parse operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*SudsFilterer) ParseNewParameters

func (_Suds *SudsFilterer) ParseNewParameters(log types.Log) (*SudsNewParameters, error)

ParseNewParameters is a log parse operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) ParseRemoveLiquidity

func (_Suds *SudsFilterer) ParseRemoveLiquidity(log types.Log) (*SudsRemoveLiquidity, error)

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

Solidity: event RemoveLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 token_supply)

func (*SudsFilterer) ParseRemoveLiquidityImbalance

func (_Suds *SudsFilterer) ParseRemoveLiquidityImbalance(log types.Log) (*SudsRemoveLiquidityImbalance, error)

ParseRemoveLiquidityImbalance is a log parse operation binding the contract event 0xb964b72f73f5ef5bf0fdc559b2fab9a7b12a39e47817a547f1f0aee47febd602.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) ParseTokenExchange

func (_Suds *SudsFilterer) ParseTokenExchange(log types.Log) (*SudsTokenExchange, error)

ParseTokenExchange is a log parse operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*SudsFilterer) ParseTokenExchangeUnderlying

func (_Suds *SudsFilterer) ParseTokenExchangeUnderlying(log types.Log) (*SudsTokenExchangeUnderlying, error)

ParseTokenExchangeUnderlying is a log parse operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*SudsFilterer) WatchAddLiquidity

func (_Suds *SudsFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *SudsAddLiquidity, provider []common.Address) (event.Subscription, error)

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

Solidity: event AddLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) WatchCommitNewAdmin

func (_Suds *SudsFilterer) WatchCommitNewAdmin(opts *bind.WatchOpts, sink chan<- *SudsCommitNewAdmin, deadline []*big.Int, admin []common.Address) (event.Subscription, error)

WatchCommitNewAdmin is a free log subscription operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*SudsFilterer) WatchCommitNewParameters

func (_Suds *SudsFilterer) WatchCommitNewParameters(opts *bind.WatchOpts, sink chan<- *SudsCommitNewParameters, deadline []*big.Int) (event.Subscription, error)

WatchCommitNewParameters is a free log subscription operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) WatchNewAdmin

func (_Suds *SudsFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *SudsNewAdmin, admin []common.Address) (event.Subscription, error)

WatchNewAdmin is a free log subscription operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*SudsFilterer) WatchNewParameters

func (_Suds *SudsFilterer) WatchNewParameters(opts *bind.WatchOpts, sink chan<- *SudsNewParameters) (event.Subscription, error)

WatchNewParameters is a free log subscription operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*SudsFilterer) WatchRemoveLiquidity

func (_Suds *SudsFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *SudsRemoveLiquidity, provider []common.Address) (event.Subscription, error)

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

Solidity: event RemoveLiquidity(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 token_supply)

func (*SudsFilterer) WatchRemoveLiquidityImbalance

func (_Suds *SudsFilterer) WatchRemoveLiquidityImbalance(opts *bind.WatchOpts, sink chan<- *SudsRemoveLiquidityImbalance, provider []common.Address) (event.Subscription, error)

WatchRemoveLiquidityImbalance is a free log subscription operation binding the contract event 0xb964b72f73f5ef5bf0fdc559b2fab9a7b12a39e47817a547f1f0aee47febd602.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[4] token_amounts, uint256[4] fees, uint256 invariant, uint256 token_supply)

func (*SudsFilterer) WatchTokenExchange

func (_Suds *SudsFilterer) WatchTokenExchange(opts *bind.WatchOpts, sink chan<- *SudsTokenExchange, buyer []common.Address) (event.Subscription, error)

WatchTokenExchange is a free log subscription operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*SudsFilterer) WatchTokenExchangeUnderlying

func (_Suds *SudsFilterer) WatchTokenExchangeUnderlying(opts *bind.WatchOpts, sink chan<- *SudsTokenExchangeUnderlying, buyer []common.Address) (event.Subscription, error)

WatchTokenExchangeUnderlying is a free log subscription operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

type SudsNewAdmin

type SudsNewAdmin struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

SudsNewAdmin represents a NewAdmin event raised by the Suds contract.

type SudsNewAdminIterator

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

SudsNewAdminIterator is returned from FilterNewAdmin and is used to iterate over the raw logs and unpacked data for NewAdmin events raised by the Suds contract.

func (*SudsNewAdminIterator) Close

func (it *SudsNewAdminIterator) Close() error

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

func (*SudsNewAdminIterator) Error

func (it *SudsNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsNewAdminIterator) Next

func (it *SudsNewAdminIterator) 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 SudsNewParameters

type SudsNewParameters struct {
	A        *big.Int
	Fee      *big.Int
	AdminFee *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

SudsNewParameters represents a NewParameters event raised by the Suds contract.

type SudsNewParametersIterator

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

SudsNewParametersIterator is returned from FilterNewParameters and is used to iterate over the raw logs and unpacked data for NewParameters events raised by the Suds contract.

func (*SudsNewParametersIterator) Close

func (it *SudsNewParametersIterator) Close() error

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

func (*SudsNewParametersIterator) Error

func (it *SudsNewParametersIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsNewParametersIterator) Next

func (it *SudsNewParametersIterator) 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 SudsRaw

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

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

func (*SudsRaw) Call

func (_Suds *SudsRaw) 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 (*SudsRaw) Transact

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

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

func (*SudsRaw) Transfer

func (_Suds *SudsRaw) 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 SudsRemoveLiquidity

type SudsRemoveLiquidity struct {
	Provider     common.Address
	TokenAmounts [4]*big.Int
	Fees         [4]*big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SudsRemoveLiquidity represents a RemoveLiquidity event raised by the Suds contract.

type SudsRemoveLiquidityImbalance

type SudsRemoveLiquidityImbalance struct {
	Provider     common.Address
	TokenAmounts [4]*big.Int
	Fees         [4]*big.Int
	Invariant    *big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SudsRemoveLiquidityImbalance represents a RemoveLiquidityImbalance event raised by the Suds contract.

type SudsRemoveLiquidityImbalanceIterator

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

SudsRemoveLiquidityImbalanceIterator is returned from FilterRemoveLiquidityImbalance and is used to iterate over the raw logs and unpacked data for RemoveLiquidityImbalance events raised by the Suds contract.

func (*SudsRemoveLiquidityImbalanceIterator) Close

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

func (*SudsRemoveLiquidityImbalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsRemoveLiquidityImbalanceIterator) 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 SudsRemoveLiquidityIterator

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

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

func (*SudsRemoveLiquidityIterator) Close

func (it *SudsRemoveLiquidityIterator) Close() error

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

func (*SudsRemoveLiquidityIterator) Error

func (it *SudsRemoveLiquidityIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsRemoveLiquidityIterator) Next

func (it *SudsRemoveLiquidityIterator) 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 SudsSession

type SudsSession struct {
	Contract     *Suds             // 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
}

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

func (*SudsSession) A

func (_Suds *SudsSession) A() (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256)

func (*SudsSession) AddLiquidity

func (_Suds *SudsSession) AddLiquidity(amounts [4]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[4] amounts, uint256 min_mint_amount) returns()

func (*SudsSession) AdminActionsDeadline

func (_Suds *SudsSession) AdminActionsDeadline() (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256)

func (*SudsSession) AdminFee

func (_Suds *SudsSession) AdminFee() (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256)

func (*SudsSession) ApplyNewParameters

func (_Suds *SudsSession) ApplyNewParameters() (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*SudsSession) ApplyTransferOwnership

func (_Suds *SudsSession) ApplyTransferOwnership() (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*SudsSession) Balances

func (_Suds *SudsSession) Balances(arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256)

func (*SudsSession) CalcTokenAmount

func (_Suds *SudsSession) CalcTokenAmount(amounts [4]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xcf701ff7.

Solidity: function calc_token_amount(uint256[4] amounts, bool deposit) returns(uint256)

func (*SudsSession) Coins

func (_Suds *SudsSession) Coins(arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address)

func (*SudsSession) CommitNewParameters

func (_Suds *SudsSession) CommitNewParameters(amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*SudsSession) CommitTransferOwnership

func (_Suds *SudsSession) CommitTransferOwnership(_owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*SudsSession) Exchange

func (_Suds *SudsSession) Exchange(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x3df02124.

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsSession) ExchangeUnderlying

func (_Suds *SudsSession) ExchangeUnderlying(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xa6417ed6.

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsSession) Fee

func (_Suds *SudsSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256)

func (*SudsSession) FutureA

func (_Suds *SudsSession) FutureA() (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256)

func (*SudsSession) FutureAdminFee

func (_Suds *SudsSession) FutureAdminFee() (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256)

func (*SudsSession) FutureFee

func (_Suds *SudsSession) FutureFee() (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256)

func (*SudsSession) FutureOwner

func (_Suds *SudsSession) FutureOwner() (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address)

func (*SudsSession) GetDy

func (_Suds *SudsSession) GetDy(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsSession) GetDyUnderlying

func (_Suds *SudsSession) GetDyUnderlying(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256)

func (*SudsSession) GetVirtualPrice

func (_Suds *SudsSession) GetVirtualPrice() (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256)

func (*SudsSession) KillMe

func (_Suds *SudsSession) KillMe() (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*SudsSession) Owner

func (_Suds *SudsSession) Owner() (common.Address, error)

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

Solidity: function owner() returns(address)

func (*SudsSession) RemoveLiquidity

func (_Suds *SudsSession) RemoveLiquidity(_amount *big.Int, min_amounts [4]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[4] min_amounts) returns()

func (*SudsSession) RemoveLiquidityImbalance

func (_Suds *SudsSession) RemoveLiquidityImbalance(amounts [4]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x18a7bd76.

Solidity: function remove_liquidity_imbalance(uint256[4] amounts, uint256 max_burn_amount) returns()

func (*SudsSession) RevertNewParameters

func (_Suds *SudsSession) RevertNewParameters() (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*SudsSession) RevertTransferOwnership

func (_Suds *SudsSession) RevertTransferOwnership() (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*SudsSession) TransferOwnershipDeadline

func (_Suds *SudsSession) TransferOwnershipDeadline() (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256)

func (*SudsSession) UnderlyingCoins

func (_Suds *SudsSession) UnderlyingCoins(arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address)

func (*SudsSession) UnkillMe

func (_Suds *SudsSession) UnkillMe() (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*SudsSession) WithdrawAdminFees

func (_Suds *SudsSession) WithdrawAdminFees() (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

type SudsTokenExchange

type SudsTokenExchange struct {
	Buyer        common.Address
	SoldId       *big.Int
	TokensSold   *big.Int
	BoughtId     *big.Int
	TokensBought *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SudsTokenExchange represents a TokenExchange event raised by the Suds contract.

type SudsTokenExchangeIterator

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

SudsTokenExchangeIterator is returned from FilterTokenExchange and is used to iterate over the raw logs and unpacked data for TokenExchange events raised by the Suds contract.

func (*SudsTokenExchangeIterator) Close

func (it *SudsTokenExchangeIterator) Close() error

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

func (*SudsTokenExchangeIterator) Error

func (it *SudsTokenExchangeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsTokenExchangeIterator) Next

func (it *SudsTokenExchangeIterator) 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 SudsTokenExchangeUnderlying

type SudsTokenExchangeUnderlying struct {
	Buyer        common.Address
	SoldId       *big.Int
	TokensSold   *big.Int
	BoughtId     *big.Int
	TokensBought *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SudsTokenExchangeUnderlying represents a TokenExchangeUnderlying event raised by the Suds contract.

type SudsTokenExchangeUnderlyingIterator

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

SudsTokenExchangeUnderlyingIterator is returned from FilterTokenExchangeUnderlying and is used to iterate over the raw logs and unpacked data for TokenExchangeUnderlying events raised by the Suds contract.

func (*SudsTokenExchangeUnderlyingIterator) Close

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

func (*SudsTokenExchangeUnderlyingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SudsTokenExchangeUnderlyingIterator) 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 SudsTransactor

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

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

func NewSudsTransactor

func NewSudsTransactor(address common.Address, transactor bind.ContractTransactor) (*SudsTransactor, error)

NewSudsTransactor creates a new write-only instance of Suds, bound to a specific deployed contract.

func (*SudsTransactor) AddLiquidity

func (_Suds *SudsTransactor) AddLiquidity(opts *bind.TransactOpts, amounts [4]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[4] amounts, uint256 min_mint_amount) returns()

func (*SudsTransactor) ApplyNewParameters

func (_Suds *SudsTransactor) ApplyNewParameters(opts *bind.TransactOpts) (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*SudsTransactor) ApplyTransferOwnership

func (_Suds *SudsTransactor) ApplyTransferOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*SudsTransactor) CommitNewParameters

func (_Suds *SudsTransactor) CommitNewParameters(opts *bind.TransactOpts, amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*SudsTransactor) CommitTransferOwnership

func (_Suds *SudsTransactor) CommitTransferOwnership(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*SudsTransactor) Exchange

func (_Suds *SudsTransactor) Exchange(opts *bind.TransactOpts, i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x3df02124.

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsTransactor) ExchangeUnderlying

func (_Suds *SudsTransactor) ExchangeUnderlying(opts *bind.TransactOpts, i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xa6417ed6.

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsTransactor) KillMe

func (_Suds *SudsTransactor) KillMe(opts *bind.TransactOpts) (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*SudsTransactor) RemoveLiquidity

func (_Suds *SudsTransactor) RemoveLiquidity(opts *bind.TransactOpts, _amount *big.Int, min_amounts [4]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[4] min_amounts) returns()

func (*SudsTransactor) RemoveLiquidityImbalance

func (_Suds *SudsTransactor) RemoveLiquidityImbalance(opts *bind.TransactOpts, amounts [4]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x18a7bd76.

Solidity: function remove_liquidity_imbalance(uint256[4] amounts, uint256 max_burn_amount) returns()

func (*SudsTransactor) RevertNewParameters

func (_Suds *SudsTransactor) RevertNewParameters(opts *bind.TransactOpts) (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*SudsTransactor) RevertTransferOwnership

func (_Suds *SudsTransactor) RevertTransferOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*SudsTransactor) UnkillMe

func (_Suds *SudsTransactor) UnkillMe(opts *bind.TransactOpts) (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*SudsTransactor) WithdrawAdminFees

func (_Suds *SudsTransactor) WithdrawAdminFees(opts *bind.TransactOpts) (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

type SudsTransactorRaw

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

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

func (*SudsTransactorRaw) Transact

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

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

func (*SudsTransactorRaw) Transfer

func (_Suds *SudsTransactorRaw) 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 SudsTransactorSession

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

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

func (*SudsTransactorSession) AddLiquidity

func (_Suds *SudsTransactorSession) AddLiquidity(amounts [4]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[4] amounts, uint256 min_mint_amount) returns()

func (*SudsTransactorSession) ApplyNewParameters

func (_Suds *SudsTransactorSession) ApplyNewParameters() (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*SudsTransactorSession) ApplyTransferOwnership

func (_Suds *SudsTransactorSession) ApplyTransferOwnership() (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*SudsTransactorSession) CommitNewParameters

func (_Suds *SudsTransactorSession) CommitNewParameters(amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*SudsTransactorSession) CommitTransferOwnership

func (_Suds *SudsTransactorSession) CommitTransferOwnership(_owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*SudsTransactorSession) Exchange

func (_Suds *SudsTransactorSession) Exchange(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x3df02124.

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsTransactorSession) ExchangeUnderlying

func (_Suds *SudsTransactorSession) ExchangeUnderlying(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xa6417ed6.

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*SudsTransactorSession) KillMe

func (_Suds *SudsTransactorSession) KillMe() (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*SudsTransactorSession) RemoveLiquidity

func (_Suds *SudsTransactorSession) RemoveLiquidity(_amount *big.Int, min_amounts [4]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[4] min_amounts) returns()

func (*SudsTransactorSession) RemoveLiquidityImbalance

func (_Suds *SudsTransactorSession) RemoveLiquidityImbalance(amounts [4]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x18a7bd76.

Solidity: function remove_liquidity_imbalance(uint256[4] amounts, uint256 max_burn_amount) returns()

func (*SudsTransactorSession) RevertNewParameters

func (_Suds *SudsTransactorSession) RevertNewParameters() (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*SudsTransactorSession) RevertTransferOwnership

func (_Suds *SudsTransactorSession) RevertTransferOwnership() (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*SudsTransactorSession) UnkillMe

func (_Suds *SudsTransactorSession) UnkillMe() (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*SudsTransactorSession) WithdrawAdminFees

func (_Suds *SudsTransactorSession) WithdrawAdminFees() (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

Jump to

Keyboard shortcuts

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