func (d Deployer) NewExchange(address Address) (*Exchange, error) {
	instance, err := interfaces.NewExchange(address, d.Backend)
	if err != nil {
		return nil, err
	}

	callOptions := &bind.CallOpts{Pending: true}
	txOptions := bind.NewKeyedTransactor(d.Wallet.PrivateKey)

	return &Exchange{
		Address:     address,
		Contract:    instance,
		CallOptions: callOptions,
		TxOptions:   txOptions,
		Admin:       d.Wallet,
	}, nil
}
// NewExchange returns a new instance of the excha
NewExchange returns a new instance of the excha
// NewExchange returns a new instance of the excha
func (d Deployer) NewExchange(address Address) (*Exchange, error) {
	instance, err := interfaces.NewExchange(address, d.Backend)
	if err != nil {
		return nil, err
	}
	callOptions := &bind.CallOpts{Pending: true}
	txOptions := bind.NewKeyedTransactor(d.Wallet.PrivateKey)
	return &Exchange{
		Address:     address,
		Contract:    instance,
		CallOptions: callOptions,
		TxOptions:   txOptions,
		Admin:       d.Wallet,
	}, nil
}
func ( d Deployer ) NewExchange ( address Address ) ( * Exchange , error ) { instance , err := interfaces . NewExchange ( address , d . Backend ) if err != nil { return nil , err } callOptions := & bind . CallOpts { Pending : true } txOptions := bind . NewKeyedTransactor ( d . Wallet . PrivateKey ) return & Exchange { Address : address , Contract : instance , CallOptions : callOptions , TxOptions : txOptions , Admin : d . Wallet , } , nil }
NewExchange returns a new instance of the excha
NewExchange returns a new instance of the excha