func (d Deployer) DeployExchange(feeAccount Address) (*Exchange, *types.Transaction, error) {
	callOpts := &bind.CallOpts{Pending: true}
	txOpts := bind.NewKeyedTransactor(d.Wallet.PrivateKey)

	addr, tx, ex, err := interfaces.DeployExchange(txOpts, d.Backend, feeAccount)
	if err != nil && err.Error() == "replacement transaction underpriced" {
		txOpts.Nonce = d.GetNonce()
		addr, tx, ex, err = interfaces.DeployExchange(txOpts, d.Backend, feeAccount)
	} else if err != nil {
		return nil, nil, err
	}

	return &Exchange{
		Address:     addr,
		Contract:    ex,
		CallOptions: callOpts,
		TxOptions:   txOpts,
		Admin:       d.Wallet,
	}, tx, nil
}
// DeployExchange deploys and returns a new instance of the decentralized exchange contract. The
// exchange is deployed with the given fee account which will receive the trading fees.
DeployExchange deploys and returns a new instance of the decentralized exchange contract. The
exchange is deployed with the given fee account which will receive the trading fees.
// DeployExchange deploys and returns a new instance of the decentralized exchange contract . The // exchange is deployed with the given fee account which will receive the trading fees .
func (d Deployer) DeployExchange(feeAccount Address) (*Exchange, *types.Transaction, error) {
	callOpts := &bind.CallOpts{Pending: true}
	txOpts := bind.NewKeyedTransactor(d.Wallet.PrivateKey)
	addr, tx, ex, err := interfaces.DeployExchange(txOpts, d.Backend, feeAccount)
	if err != nil && err.Error() == "replacement transaction underpriced" {
		txOpts.Nonce = d.GetNonce()
		addr, tx, ex, err = interfaces.DeployExchange(txOpts, d.Backend, feeAccount)
	} else if err != nil {
		return nil, nil, err
	}
	return &Exchange{
		Address:     addr,
		Contract:    ex,
		CallOptions: callOpts,
		TxOptions:   txOpts,
		Admin:       d.Wallet,
	}, tx, nil
}
func ( d Deployer ) DeployExchange ( feeAccount Address ) ( * Exchange , * types . Transaction , error ) { callOpts := & bind . CallOpts { Pending : true } txOpts := bind . NewKeyedTransactor ( d . Wallet . PrivateKey ) addr , tx , ex , err := interfaces . DeployExchange ( txOpts , d . Backend , feeAccount ) if err != nil && err . Error ( ) == " " { txOpts . Nonce = d . GetNonce ( ) addr , tx , ex , err = interfaces . DeployExchange ( txOpts , d . Backend , feeAccount ) } else if err != nil { return nil , nil , err } return & Exchange { Address : addr , Contract : ex , CallOptions : callOpts , TxOptions : txOpts , Admin : d . Wallet , } , tx , nil }
DeployExchange deploys and returns a new instance of the decentralized exchange contract.
DeployExchange deploys and returns a new instance of the decentralized exchange contract .