platform

package
v1.1.0-rc-6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform struct {
	PlatformCaller     // Read-only binding to the contract
	PlatformTransactor // Write-only binding to the contract
	PlatformFilterer   // Log filterer for contract events
}

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

func NewPlatform

func NewPlatform(address common.Address, backend bind.ContractBackend) (*Platform, error)

NewPlatform creates a new instance of Platform, bound to a specific deployed contract.

type PlatformAddLiquidity

type PlatformAddLiquidity 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
}

PlatformAddLiquidity represents a AddLiquidity event raised by the Platform contract.

type PlatformAddLiquidityIterator

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

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

func (*PlatformAddLiquidityIterator) Close

func (it *PlatformAddLiquidityIterator) Close() error

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

func (*PlatformAddLiquidityIterator) Error

func (it *PlatformAddLiquidityIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformAddLiquidityIterator) 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 PlatformCaller

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

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

func NewPlatformCaller

func NewPlatformCaller(address common.Address, caller bind.ContractCaller) (*PlatformCaller, error)

NewPlatformCaller creates a new read-only instance of Platform, bound to a specific deployed contract.

func (*PlatformCaller) A

func (_Platform *PlatformCaller) 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 (*PlatformCaller) AdminActionsDeadline

func (_Platform *PlatformCaller) 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 (*PlatformCaller) AdminFee

func (_Platform *PlatformCaller) 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 (*PlatformCaller) Balances

func (_Platform *PlatformCaller) 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 (*PlatformCaller) CalcTokenAmount

func (_Platform *PlatformCaller) 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 (*PlatformCaller) Coins

func (_Platform *PlatformCaller) 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 (*PlatformCaller) Fee

func (_Platform *PlatformCaller) 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 (*PlatformCaller) FutureA

func (_Platform *PlatformCaller) 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 (*PlatformCaller) FutureAdminFee

func (_Platform *PlatformCaller) 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 (*PlatformCaller) FutureFee

func (_Platform *PlatformCaller) 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 (*PlatformCaller) FutureOwner

func (_Platform *PlatformCaller) 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 (*PlatformCaller) GetDy

func (_Platform *PlatformCaller) 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 (*PlatformCaller) GetDyUnderlying

func (_Platform *PlatformCaller) 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 (*PlatformCaller) GetVirtualPrice

func (_Platform *PlatformCaller) 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 (*PlatformCaller) Owner

func (_Platform *PlatformCaller) 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 (*PlatformCaller) TransferOwnershipDeadline

func (_Platform *PlatformCaller) 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 (*PlatformCaller) UnderlyingCoins

func (_Platform *PlatformCaller) 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 PlatformCallerRaw

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

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

func (*PlatformCallerRaw) Call

func (_Platform *PlatformCallerRaw) 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 PlatformCallerSession

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

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

func (*PlatformCallerSession) A

func (_Platform *PlatformCallerSession) A() (*big.Int, error)

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

Solidity: function A() returns(uint256)

func (*PlatformCallerSession) AdminActionsDeadline

func (_Platform *PlatformCallerSession) AdminActionsDeadline() (*big.Int, error)

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

Solidity: function admin_actions_deadline() returns(uint256)

func (*PlatformCallerSession) AdminFee

func (_Platform *PlatformCallerSession) AdminFee() (*big.Int, error)

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

Solidity: function admin_fee() returns(uint256)

func (*PlatformCallerSession) Balances

func (_Platform *PlatformCallerSession) 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 (*PlatformCallerSession) CalcTokenAmount

func (_Platform *PlatformCallerSession) 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 (*PlatformCallerSession) Coins

func (_Platform *PlatformCallerSession) 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 (*PlatformCallerSession) Fee

func (_Platform *PlatformCallerSession) Fee() (*big.Int, error)

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

Solidity: function fee() returns(uint256)

func (*PlatformCallerSession) FutureA

func (_Platform *PlatformCallerSession) FutureA() (*big.Int, error)

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

Solidity: function future_A() returns(uint256)

func (*PlatformCallerSession) FutureAdminFee

func (_Platform *PlatformCallerSession) FutureAdminFee() (*big.Int, error)

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

Solidity: function future_admin_fee() returns(uint256)

func (*PlatformCallerSession) FutureFee

func (_Platform *PlatformCallerSession) FutureFee() (*big.Int, error)

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

Solidity: function future_fee() returns(uint256)

func (*PlatformCallerSession) FutureOwner

func (_Platform *PlatformCallerSession) FutureOwner() (common.Address, error)

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

Solidity: function future_owner() returns(address)

func (*PlatformCallerSession) GetDy

func (_Platform *PlatformCallerSession) 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 (*PlatformCallerSession) GetDyUnderlying

func (_Platform *PlatformCallerSession) 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 (*PlatformCallerSession) GetVirtualPrice

func (_Platform *PlatformCallerSession) GetVirtualPrice() (*big.Int, error)

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

Solidity: function get_virtual_price() returns(uint256)

func (*PlatformCallerSession) Owner

func (_Platform *PlatformCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() returns(address)

func (*PlatformCallerSession) TransferOwnershipDeadline

func (_Platform *PlatformCallerSession) TransferOwnershipDeadline() (*big.Int, error)

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

Solidity: function transfer_ownership_deadline() returns(uint256)

func (*PlatformCallerSession) UnderlyingCoins

func (_Platform *PlatformCallerSession) 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 PlatformCommitNewAdmin

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

PlatformCommitNewAdmin represents a CommitNewAdmin event raised by the Platform contract.

type PlatformCommitNewAdminIterator

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

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

func (*PlatformCommitNewAdminIterator) Close

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

func (*PlatformCommitNewAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformCommitNewAdminIterator) 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 PlatformCommitNewParameters

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

PlatformCommitNewParameters represents a CommitNewParameters event raised by the Platform contract.

type PlatformCommitNewParametersIterator

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

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

func (*PlatformCommitNewParametersIterator) Close

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

func (*PlatformCommitNewParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformCommitNewParametersIterator) 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 PlatformFilterer

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

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

func NewPlatformFilterer

func NewPlatformFilterer(address common.Address, filterer bind.ContractFilterer) (*PlatformFilterer, error)

NewPlatformFilterer creates a new log filterer instance of Platform, bound to a specific deployed contract.

func (*PlatformFilterer) FilterAddLiquidity

func (_Platform *PlatformFilterer) FilterAddLiquidity(opts *bind.FilterOpts, provider []common.Address) (*PlatformAddLiquidityIterator, 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 (*PlatformFilterer) FilterCommitNewAdmin

func (_Platform *PlatformFilterer) FilterCommitNewAdmin(opts *bind.FilterOpts, deadline []*big.Int, admin []common.Address) (*PlatformCommitNewAdminIterator, error)

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

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

func (*PlatformFilterer) FilterCommitNewParameters

func (_Platform *PlatformFilterer) FilterCommitNewParameters(opts *bind.FilterOpts, deadline []*big.Int) (*PlatformCommitNewParametersIterator, 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 (*PlatformFilterer) FilterNewAdmin

func (_Platform *PlatformFilterer) FilterNewAdmin(opts *bind.FilterOpts, admin []common.Address) (*PlatformNewAdminIterator, error)

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

Solidity: event NewAdmin(address indexed admin)

func (*PlatformFilterer) FilterNewParameters

func (_Platform *PlatformFilterer) FilterNewParameters(opts *bind.FilterOpts) (*PlatformNewParametersIterator, error)

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

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

func (*PlatformFilterer) FilterRemoveLiquidity

func (_Platform *PlatformFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts, provider []common.Address) (*PlatformRemoveLiquidityIterator, 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 (*PlatformFilterer) FilterRemoveLiquidityImbalance

func (_Platform *PlatformFilterer) FilterRemoveLiquidityImbalance(opts *bind.FilterOpts, provider []common.Address) (*PlatformRemoveLiquidityImbalanceIterator, 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 (*PlatformFilterer) FilterTokenExchange

func (_Platform *PlatformFilterer) FilterTokenExchange(opts *bind.FilterOpts, buyer []common.Address) (*PlatformTokenExchangeIterator, 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 (*PlatformFilterer) FilterTokenExchangeUnderlying

func (_Platform *PlatformFilterer) FilterTokenExchangeUnderlying(opts *bind.FilterOpts, buyer []common.Address) (*PlatformTokenExchangeUnderlyingIterator, 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 (*PlatformFilterer) ParseAddLiquidity

func (_Platform *PlatformFilterer) ParseAddLiquidity(log types.Log) (*PlatformAddLiquidity, 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 (*PlatformFilterer) ParseCommitNewAdmin

func (_Platform *PlatformFilterer) ParseCommitNewAdmin(log types.Log) (*PlatformCommitNewAdmin, error)

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

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

func (*PlatformFilterer) ParseCommitNewParameters

func (_Platform *PlatformFilterer) ParseCommitNewParameters(log types.Log) (*PlatformCommitNewParameters, 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 (*PlatformFilterer) ParseNewAdmin

func (_Platform *PlatformFilterer) ParseNewAdmin(log types.Log) (*PlatformNewAdmin, error)

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

Solidity: event NewAdmin(address indexed admin)

func (*PlatformFilterer) ParseNewParameters

func (_Platform *PlatformFilterer) ParseNewParameters(log types.Log) (*PlatformNewParameters, error)

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

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

func (*PlatformFilterer) ParseRemoveLiquidity

func (_Platform *PlatformFilterer) ParseRemoveLiquidity(log types.Log) (*PlatformRemoveLiquidity, 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 (*PlatformFilterer) ParseRemoveLiquidityImbalance

func (_Platform *PlatformFilterer) ParseRemoveLiquidityImbalance(log types.Log) (*PlatformRemoveLiquidityImbalance, 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 (*PlatformFilterer) ParseTokenExchange

func (_Platform *PlatformFilterer) ParseTokenExchange(log types.Log) (*PlatformTokenExchange, 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 (*PlatformFilterer) ParseTokenExchangeUnderlying

func (_Platform *PlatformFilterer) ParseTokenExchangeUnderlying(log types.Log) (*PlatformTokenExchangeUnderlying, 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 (*PlatformFilterer) WatchAddLiquidity

func (_Platform *PlatformFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *PlatformAddLiquidity, 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 (*PlatformFilterer) WatchCommitNewAdmin

func (_Platform *PlatformFilterer) WatchCommitNewAdmin(opts *bind.WatchOpts, sink chan<- *PlatformCommitNewAdmin, 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 (*PlatformFilterer) WatchCommitNewParameters

func (_Platform *PlatformFilterer) WatchCommitNewParameters(opts *bind.WatchOpts, sink chan<- *PlatformCommitNewParameters, 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 (*PlatformFilterer) WatchNewAdmin

func (_Platform *PlatformFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *PlatformNewAdmin, 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 (*PlatformFilterer) WatchNewParameters

func (_Platform *PlatformFilterer) WatchNewParameters(opts *bind.WatchOpts, sink chan<- *PlatformNewParameters) (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 (*PlatformFilterer) WatchRemoveLiquidity

func (_Platform *PlatformFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *PlatformRemoveLiquidity, 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 (*PlatformFilterer) WatchRemoveLiquidityImbalance

func (_Platform *PlatformFilterer) WatchRemoveLiquidityImbalance(opts *bind.WatchOpts, sink chan<- *PlatformRemoveLiquidityImbalance, 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 (*PlatformFilterer) WatchTokenExchange

func (_Platform *PlatformFilterer) WatchTokenExchange(opts *bind.WatchOpts, sink chan<- *PlatformTokenExchange, 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 (*PlatformFilterer) WatchTokenExchangeUnderlying

func (_Platform *PlatformFilterer) WatchTokenExchangeUnderlying(opts *bind.WatchOpts, sink chan<- *PlatformTokenExchangeUnderlying, 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 PlatformNewAdmin

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

PlatformNewAdmin represents a NewAdmin event raised by the Platform contract.

type PlatformNewAdminIterator

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

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

func (*PlatformNewAdminIterator) Close

func (it *PlatformNewAdminIterator) Close() error

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

func (*PlatformNewAdminIterator) Error

func (it *PlatformNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformNewAdminIterator) Next

func (it *PlatformNewAdminIterator) 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 PlatformNewParameters

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

PlatformNewParameters represents a NewParameters event raised by the Platform contract.

type PlatformNewParametersIterator

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

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

func (*PlatformNewParametersIterator) Close

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

func (*PlatformNewParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformNewParametersIterator) 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 PlatformRaw

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

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

func (*PlatformRaw) Call

func (_Platform *PlatformRaw) 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 (*PlatformRaw) Transact

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

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

func (*PlatformRaw) Transfer

func (_Platform *PlatformRaw) 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 PlatformRemoveLiquidity

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

PlatformRemoveLiquidity represents a RemoveLiquidity event raised by the Platform contract.

type PlatformRemoveLiquidityImbalance

type PlatformRemoveLiquidityImbalance 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
}

PlatformRemoveLiquidityImbalance represents a RemoveLiquidityImbalance event raised by the Platform contract.

type PlatformRemoveLiquidityImbalanceIterator

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

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

func (*PlatformRemoveLiquidityImbalanceIterator) Close

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

func (*PlatformRemoveLiquidityImbalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformRemoveLiquidityImbalanceIterator) 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 PlatformRemoveLiquidityIterator

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

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

func (*PlatformRemoveLiquidityIterator) Close

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

func (*PlatformRemoveLiquidityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformRemoveLiquidityIterator) 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 PlatformSession

type PlatformSession struct {
	Contract     *Platform         // 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
}

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

func (*PlatformSession) A

func (_Platform *PlatformSession) A() (*big.Int, error)

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

Solidity: function A() returns(uint256)

func (*PlatformSession) AddLiquidity

func (_Platform *PlatformSession) 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 (*PlatformSession) AdminActionsDeadline

func (_Platform *PlatformSession) AdminActionsDeadline() (*big.Int, error)

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

Solidity: function admin_actions_deadline() returns(uint256)

func (*PlatformSession) AdminFee

func (_Platform *PlatformSession) AdminFee() (*big.Int, error)

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

Solidity: function admin_fee() returns(uint256)

func (*PlatformSession) ApplyNewParameters

func (_Platform *PlatformSession) ApplyNewParameters() (*types.Transaction, error)

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

Solidity: function apply_new_parameters() returns()

func (*PlatformSession) ApplyTransferOwnership

func (_Platform *PlatformSession) ApplyTransferOwnership() (*types.Transaction, error)

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

Solidity: function apply_transfer_ownership() returns()

func (*PlatformSession) Balances

func (_Platform *PlatformSession) 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 (*PlatformSession) CalcTokenAmount

func (_Platform *PlatformSession) 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 (*PlatformSession) Coins

func (_Platform *PlatformSession) 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 (*PlatformSession) CommitNewParameters

func (_Platform *PlatformSession) 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 (*PlatformSession) CommitTransferOwnership

func (_Platform *PlatformSession) 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 (*PlatformSession) Exchange

func (_Platform *PlatformSession) 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 (*PlatformSession) ExchangeUnderlying

func (_Platform *PlatformSession) 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 (*PlatformSession) Fee

func (_Platform *PlatformSession) Fee() (*big.Int, error)

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

Solidity: function fee() returns(uint256)

func (*PlatformSession) FutureA

func (_Platform *PlatformSession) FutureA() (*big.Int, error)

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

Solidity: function future_A() returns(uint256)

func (*PlatformSession) FutureAdminFee

func (_Platform *PlatformSession) FutureAdminFee() (*big.Int, error)

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

Solidity: function future_admin_fee() returns(uint256)

func (*PlatformSession) FutureFee

func (_Platform *PlatformSession) FutureFee() (*big.Int, error)

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

Solidity: function future_fee() returns(uint256)

func (*PlatformSession) FutureOwner

func (_Platform *PlatformSession) FutureOwner() (common.Address, error)

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

Solidity: function future_owner() returns(address)

func (*PlatformSession) GetDy

func (_Platform *PlatformSession) 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 (*PlatformSession) GetDyUnderlying

func (_Platform *PlatformSession) 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 (*PlatformSession) GetVirtualPrice

func (_Platform *PlatformSession) GetVirtualPrice() (*big.Int, error)

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

Solidity: function get_virtual_price() returns(uint256)

func (*PlatformSession) KillMe

func (_Platform *PlatformSession) KillMe() (*types.Transaction, error)

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

Solidity: function kill_me() returns()

func (*PlatformSession) Owner

func (_Platform *PlatformSession) Owner() (common.Address, error)

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

Solidity: function owner() returns(address)

func (*PlatformSession) RemoveLiquidity

func (_Platform *PlatformSession) 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 (*PlatformSession) RemoveLiquidityImbalance

func (_Platform *PlatformSession) 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 (*PlatformSession) RevertNewParameters

func (_Platform *PlatformSession) RevertNewParameters() (*types.Transaction, error)

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

Solidity: function revert_new_parameters() returns()

func (*PlatformSession) RevertTransferOwnership

func (_Platform *PlatformSession) RevertTransferOwnership() (*types.Transaction, error)

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

Solidity: function revert_transfer_ownership() returns()

func (*PlatformSession) TransferOwnershipDeadline

func (_Platform *PlatformSession) TransferOwnershipDeadline() (*big.Int, error)

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

Solidity: function transfer_ownership_deadline() returns(uint256)

func (*PlatformSession) UnderlyingCoins

func (_Platform *PlatformSession) 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 (*PlatformSession) UnkillMe

func (_Platform *PlatformSession) UnkillMe() (*types.Transaction, error)

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

Solidity: function unkill_me() returns()

func (*PlatformSession) WithdrawAdminFees

func (_Platform *PlatformSession) WithdrawAdminFees() (*types.Transaction, error)

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

Solidity: function withdraw_admin_fees() returns()

type PlatformTokenExchange

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

PlatformTokenExchange represents a TokenExchange event raised by the Platform contract.

type PlatformTokenExchangeIterator

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

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

func (*PlatformTokenExchangeIterator) Close

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

func (*PlatformTokenExchangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformTokenExchangeIterator) 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 PlatformTokenExchangeUnderlying

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

PlatformTokenExchangeUnderlying represents a TokenExchangeUnderlying event raised by the Platform contract.

type PlatformTokenExchangeUnderlyingIterator

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

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

func (*PlatformTokenExchangeUnderlyingIterator) Close

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

func (*PlatformTokenExchangeUnderlyingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PlatformTokenExchangeUnderlyingIterator) 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 PlatformTransactor

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

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

func NewPlatformTransactor

func NewPlatformTransactor(address common.Address, transactor bind.ContractTransactor) (*PlatformTransactor, error)

NewPlatformTransactor creates a new write-only instance of Platform, bound to a specific deployed contract.

func (*PlatformTransactor) AddLiquidity

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) ApplyNewParameters

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) ApplyTransferOwnership

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) CommitNewParameters

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) CommitTransferOwnership

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) Exchange

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) ExchangeUnderlying

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) KillMe

func (_Platform *PlatformTransactor) KillMe(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function kill_me() returns()

func (*PlatformTransactor) RemoveLiquidity

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) RemoveLiquidityImbalance

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) RevertNewParameters

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) RevertTransferOwnership

func (_Platform *PlatformTransactor) 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 (*PlatformTransactor) UnkillMe

func (_Platform *PlatformTransactor) UnkillMe(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function unkill_me() returns()

func (*PlatformTransactor) WithdrawAdminFees

func (_Platform *PlatformTransactor) 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 PlatformTransactorRaw

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

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

func (*PlatformTransactorRaw) Transact

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

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

func (*PlatformTransactorRaw) Transfer

func (_Platform *PlatformTransactorRaw) 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 PlatformTransactorSession

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

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

func (*PlatformTransactorSession) AddLiquidity

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) ApplyNewParameters

func (_Platform *PlatformTransactorSession) ApplyNewParameters() (*types.Transaction, error)

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

Solidity: function apply_new_parameters() returns()

func (*PlatformTransactorSession) ApplyTransferOwnership

func (_Platform *PlatformTransactorSession) ApplyTransferOwnership() (*types.Transaction, error)

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

Solidity: function apply_transfer_ownership() returns()

func (*PlatformTransactorSession) CommitNewParameters

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) CommitTransferOwnership

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) Exchange

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) ExchangeUnderlying

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) KillMe

func (_Platform *PlatformTransactorSession) KillMe() (*types.Transaction, error)

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

Solidity: function kill_me() returns()

func (*PlatformTransactorSession) RemoveLiquidity

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) RemoveLiquidityImbalance

func (_Platform *PlatformTransactorSession) 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 (*PlatformTransactorSession) RevertNewParameters

func (_Platform *PlatformTransactorSession) RevertNewParameters() (*types.Transaction, error)

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

Solidity: function revert_new_parameters() returns()

func (*PlatformTransactorSession) RevertTransferOwnership

func (_Platform *PlatformTransactorSession) RevertTransferOwnership() (*types.Transaction, error)

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

Solidity: function revert_transfer_ownership() returns()

func (*PlatformTransactorSession) UnkillMe

func (_Platform *PlatformTransactorSession) UnkillMe() (*types.Transaction, error)

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

Solidity: function unkill_me() returns()

func (*PlatformTransactorSession) WithdrawAdminFees

func (_Platform *PlatformTransactorSession) 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