Versions in this module Expand all Collapse all v1 v1.4.1 Oct 2, 2019 Changes in this version + type Client struct + Client *ethclient.Client + func NewClient(node string, privateKey string, cdpID int64, proxy string) (client *Client, err error) + func (client *Client) ApproveDai() (*types.Transaction, error) + func (client *Client) ApproveMkr() (*types.Transaction, error) + func (client *Client) DoDrawDai(cdp *cdp.CDP, ethPrice, pethRatio, target *big.Float) (*transaction.Tx, error) + func (client *Client) DoFreeEth(cdp *cdp.CDP, ethPrice, target *big.Float) (*transaction.Tx, error) + func (client *Client) FreeEth(eth *big.Float, cdp *cdp.CDP) (*types.Transaction, error) + func (client *Client) GetAuth() (*bind.TransactOpts, error) + func (client *Client) GetCDP(cdpID int64) (*cdp.CDP, error) + func (client *Client) GetEthBalance() (eth *big.Float, err error) + func (client *Client) GetEthPrice() (eth *big.Float, err error) + func (client *Client) GetOasisDaiToEth(dai *big.Float) (eth *big.Float, err error) + func (client *Client) GetOasisEthToDai(eth *big.Float) (dai *big.Float, err error) + func (client *Client) GetPethRatio() (ratio *big.Float, err error) + func (client *Client) GetReceipt(hash string) (*types.Receipt, error) + func (client *Client) GetUniswapDaiToEth(dai *big.Float) (eth *big.Float, err error) + func (client *Client) GetUniswapEthToDai(eth *big.Float) (dai *big.Float, err error) + func (client *Client) IsDaiAllowed() (allowed bool, err error) + func (client *Client) IsMkrAllowed() (allowed bool, err error) + func (client Client) DrawSellLock(dai *big.Float) (*types.Transaction, error) + func (client Client) FreeSellWipe(eth *big.Float) (*types.Transaction, error)