niftyswap

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const INiftyswapExchangeABI = "" /* 5821-byte string literal not displayed */

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

View Source
const INiftyswapFactoryABI = "" /* 1183-byte string literal not displayed */

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

View Source
const IWrapAndNiftyswapABI = "" /* 1420-byte string literal not displayed */

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

View Source
const NiftyswapExchangeABI = "" /* 10029-byte string literal not displayed */

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

View Source
const NiftyswapExchangeBin = "" /* 43610-byte string literal not displayed */

NiftyswapExchangeBin is the compiled bytecode used for deploying new contracts.

View Source
const NiftyswapFactoryABI = "" /* 1157-byte string literal not displayed */

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

View Source
const NiftyswapFactoryBin = "" /* 45356-byte string literal not displayed */

NiftyswapFactoryBin is the compiled bytecode used for deploying new contracts.

View Source
const WrapAndNiftyswapABI = "" /* 2473-byte string literal not displayed */

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

View Source
const WrapAndNiftyswapBin = "" /* 13570-byte string literal not displayed */

WrapAndNiftyswapBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type INiftyswapExchange

type INiftyswapExchange struct {
	INiftyswapExchangeCaller     // Read-only binding to the contract
	INiftyswapExchangeTransactor // Write-only binding to the contract
	INiftyswapExchangeFilterer   // Log filterer for contract events
}

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

func NewINiftyswapExchange

func NewINiftyswapExchange(address common.Address, backend bind.ContractBackend) (*INiftyswapExchange, error)

NewINiftyswapExchange creates a new instance of INiftyswapExchange, bound to a specific deployed contract.

type INiftyswapExchangeCaller

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

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

func NewINiftyswapExchangeCaller

func NewINiftyswapExchangeCaller(address common.Address, caller bind.ContractCaller) (*INiftyswapExchangeCaller, error)

NewINiftyswapExchangeCaller creates a new read-only instance of INiftyswapExchange, bound to a specific deployed contract.

func (*INiftyswapExchangeCaller) GetBuyPrice

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetBuyPrice(opts *bind.CallOpts, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeCaller) GetCurrencyInfo

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetCurrencyInfo(opts *bind.CallOpts) (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*INiftyswapExchangeCaller) GetCurrencyReserves

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetCurrencyReserves(opts *bind.CallOpts, _ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*INiftyswapExchangeCaller) GetFactoryAddress

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetFactoryAddress(opts *bind.CallOpts) (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*INiftyswapExchangeCaller) GetPriceCurrencyToToken

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetPriceCurrencyToToken(opts *bind.CallOpts, _ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*INiftyswapExchangeCaller) GetPriceTokenToCurrency

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetPriceTokenToCurrency(opts *bind.CallOpts, _ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*INiftyswapExchangeCaller) GetSellPrice

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetSellPrice(opts *bind.CallOpts, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeCaller) GetTokenAddress

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetTokenAddress(opts *bind.CallOpts) (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*INiftyswapExchangeCaller) GetTotalSupply

func (_INiftyswapExchange *INiftyswapExchangeCaller) GetTotalSupply(opts *bind.CallOpts, _ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

type INiftyswapExchangeCallerRaw

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

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

func (*INiftyswapExchangeCallerRaw) Call

func (_INiftyswapExchange *INiftyswapExchangeCallerRaw) 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 INiftyswapExchangeCallerSession

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

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

func (*INiftyswapExchangeCallerSession) GetBuyPrice

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetBuyPrice(_assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeCallerSession) GetCurrencyInfo

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetCurrencyInfo() (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*INiftyswapExchangeCallerSession) GetCurrencyReserves

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetCurrencyReserves(_ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*INiftyswapExchangeCallerSession) GetFactoryAddress

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetFactoryAddress() (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*INiftyswapExchangeCallerSession) GetPriceCurrencyToToken

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetPriceCurrencyToToken(_ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*INiftyswapExchangeCallerSession) GetPriceTokenToCurrency

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetPriceTokenToCurrency(_ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*INiftyswapExchangeCallerSession) GetSellPrice

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetSellPrice(_assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeCallerSession) GetTokenAddress

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetTokenAddress() (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*INiftyswapExchangeCallerSession) GetTotalSupply

func (_INiftyswapExchange *INiftyswapExchangeCallerSession) GetTotalSupply(_ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

type INiftyswapExchangeCurrencyPurchase

type INiftyswapExchangeCurrencyPurchase struct {
	Buyer                 common.Address
	Recipient             common.Address
	TokensSoldIds         []*big.Int
	TokensSoldAmounts     []*big.Int
	CurrencyBoughtAmounts []*big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

INiftyswapExchangeCurrencyPurchase represents a CurrencyPurchase event raised by the INiftyswapExchange contract.

type INiftyswapExchangeCurrencyPurchaseIterator

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

INiftyswapExchangeCurrencyPurchaseIterator is returned from FilterCurrencyPurchase and is used to iterate over the raw logs and unpacked data for CurrencyPurchase events raised by the INiftyswapExchange contract.

func (*INiftyswapExchangeCurrencyPurchaseIterator) Close

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

func (*INiftyswapExchangeCurrencyPurchaseIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchangeCurrencyPurchaseIterator) 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 INiftyswapExchangeFilterer

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

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

func NewINiftyswapExchangeFilterer

func NewINiftyswapExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*INiftyswapExchangeFilterer, error)

NewINiftyswapExchangeFilterer creates a new log filterer instance of INiftyswapExchange, bound to a specific deployed contract.

func (*INiftyswapExchangeFilterer) FilterCurrencyPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) FilterCurrencyPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*INiftyswapExchangeCurrencyPurchaseIterator, error)

FilterCurrencyPurchase is a free log retrieval operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*INiftyswapExchangeFilterer) FilterLiquidityAdded

func (_INiftyswapExchange *INiftyswapExchangeFilterer) FilterLiquidityAdded(opts *bind.FilterOpts, provider []common.Address) (*INiftyswapExchangeLiquidityAddedIterator, error)

FilterLiquidityAdded is a free log retrieval operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) FilterLiquidityRemoved

func (_INiftyswapExchange *INiftyswapExchangeFilterer) FilterLiquidityRemoved(opts *bind.FilterOpts, provider []common.Address) (*INiftyswapExchangeLiquidityRemovedIterator, error)

FilterLiquidityRemoved is a free log retrieval operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) FilterTokensPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) FilterTokensPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*INiftyswapExchangeTokensPurchaseIterator, error)

FilterTokensPurchase is a free log retrieval operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

func (*INiftyswapExchangeFilterer) ParseCurrencyPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) ParseCurrencyPurchase(log types.Log) (*INiftyswapExchangeCurrencyPurchase, error)

ParseCurrencyPurchase is a log parse operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*INiftyswapExchangeFilterer) ParseLiquidityAdded

func (_INiftyswapExchange *INiftyswapExchangeFilterer) ParseLiquidityAdded(log types.Log) (*INiftyswapExchangeLiquidityAdded, error)

ParseLiquidityAdded is a log parse operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) ParseLiquidityRemoved

func (_INiftyswapExchange *INiftyswapExchangeFilterer) ParseLiquidityRemoved(log types.Log) (*INiftyswapExchangeLiquidityRemoved, error)

ParseLiquidityRemoved is a log parse operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) ParseTokensPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) ParseTokensPurchase(log types.Log) (*INiftyswapExchangeTokensPurchase, error)

ParseTokensPurchase is a log parse operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

func (*INiftyswapExchangeFilterer) WatchCurrencyPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) WatchCurrencyPurchase(opts *bind.WatchOpts, sink chan<- *INiftyswapExchangeCurrencyPurchase, buyer []common.Address, recipient []common.Address) (event.Subscription, error)

WatchCurrencyPurchase is a free log subscription operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*INiftyswapExchangeFilterer) WatchLiquidityAdded

func (_INiftyswapExchange *INiftyswapExchangeFilterer) WatchLiquidityAdded(opts *bind.WatchOpts, sink chan<- *INiftyswapExchangeLiquidityAdded, provider []common.Address) (event.Subscription, error)

WatchLiquidityAdded is a free log subscription operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) WatchLiquidityRemoved

func (_INiftyswapExchange *INiftyswapExchangeFilterer) WatchLiquidityRemoved(opts *bind.WatchOpts, sink chan<- *INiftyswapExchangeLiquidityRemoved, provider []common.Address) (event.Subscription, error)

WatchLiquidityRemoved is a free log subscription operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*INiftyswapExchangeFilterer) WatchTokensPurchase

func (_INiftyswapExchange *INiftyswapExchangeFilterer) WatchTokensPurchase(opts *bind.WatchOpts, sink chan<- *INiftyswapExchangeTokensPurchase, buyer []common.Address, recipient []common.Address) (event.Subscription, error)

WatchTokensPurchase is a free log subscription operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

type INiftyswapExchangeLiquidityAdded

type INiftyswapExchangeLiquidityAdded struct {
	Provider        common.Address
	TokenIds        []*big.Int
	TokenAmounts    []*big.Int
	CurrencyAmounts []*big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

INiftyswapExchangeLiquidityAdded represents a LiquidityAdded event raised by the INiftyswapExchange contract.

type INiftyswapExchangeLiquidityAddedIterator

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

INiftyswapExchangeLiquidityAddedIterator is returned from FilterLiquidityAdded and is used to iterate over the raw logs and unpacked data for LiquidityAdded events raised by the INiftyswapExchange contract.

func (*INiftyswapExchangeLiquidityAddedIterator) Close

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

func (*INiftyswapExchangeLiquidityAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchangeLiquidityAddedIterator) 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 INiftyswapExchangeLiquidityRemoved

type INiftyswapExchangeLiquidityRemoved struct {
	Provider        common.Address
	TokenIds        []*big.Int
	TokenAmounts    []*big.Int
	CurrencyAmounts []*big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

INiftyswapExchangeLiquidityRemoved represents a LiquidityRemoved event raised by the INiftyswapExchange contract.

type INiftyswapExchangeLiquidityRemovedIterator

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

INiftyswapExchangeLiquidityRemovedIterator is returned from FilterLiquidityRemoved and is used to iterate over the raw logs and unpacked data for LiquidityRemoved events raised by the INiftyswapExchange contract.

func (*INiftyswapExchangeLiquidityRemovedIterator) Close

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

func (*INiftyswapExchangeLiquidityRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchangeLiquidityRemovedIterator) 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 INiftyswapExchangeRaw

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

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

func (*INiftyswapExchangeRaw) Call

func (_INiftyswapExchange *INiftyswapExchangeRaw) 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 (*INiftyswapExchangeRaw) Transact

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

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

func (*INiftyswapExchangeRaw) Transfer

func (_INiftyswapExchange *INiftyswapExchangeRaw) 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 INiftyswapExchangeSession

type INiftyswapExchangeSession struct {
	Contract     *INiftyswapExchange // 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
}

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

func (*INiftyswapExchangeSession) GetBuyPrice

func (_INiftyswapExchange *INiftyswapExchangeSession) GetBuyPrice(_assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeSession) GetCurrencyInfo

func (_INiftyswapExchange *INiftyswapExchangeSession) GetCurrencyInfo() (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*INiftyswapExchangeSession) GetCurrencyReserves

func (_INiftyswapExchange *INiftyswapExchangeSession) GetCurrencyReserves(_ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*INiftyswapExchangeSession) GetFactoryAddress

func (_INiftyswapExchange *INiftyswapExchangeSession) GetFactoryAddress() (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*INiftyswapExchangeSession) GetPriceCurrencyToToken

func (_INiftyswapExchange *INiftyswapExchangeSession) GetPriceCurrencyToToken(_ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*INiftyswapExchangeSession) GetPriceTokenToCurrency

func (_INiftyswapExchange *INiftyswapExchangeSession) GetPriceTokenToCurrency(_ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*INiftyswapExchangeSession) GetSellPrice

func (_INiftyswapExchange *INiftyswapExchangeSession) GetSellPrice(_assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256)

func (*INiftyswapExchangeSession) GetTokenAddress

func (_INiftyswapExchange *INiftyswapExchangeSession) GetTokenAddress() (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*INiftyswapExchangeSession) GetTotalSupply

func (_INiftyswapExchange *INiftyswapExchangeSession) GetTotalSupply(_ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

func (*INiftyswapExchangeSession) OnERC1155BatchReceived

func (_INiftyswapExchange *INiftyswapExchangeSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*INiftyswapExchangeSession) OnERC1155Received

func (_INiftyswapExchange *INiftyswapExchangeSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

type INiftyswapExchangeTokensPurchase

type INiftyswapExchangeTokensPurchase struct {
	Buyer               common.Address
	Recipient           common.Address
	TokensBoughtIds     []*big.Int
	TokensBoughtAmounts []*big.Int
	CurrencySoldAmounts []*big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

INiftyswapExchangeTokensPurchase represents a TokensPurchase event raised by the INiftyswapExchange contract.

type INiftyswapExchangeTokensPurchaseIterator

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

INiftyswapExchangeTokensPurchaseIterator is returned from FilterTokensPurchase and is used to iterate over the raw logs and unpacked data for TokensPurchase events raised by the INiftyswapExchange contract.

func (*INiftyswapExchangeTokensPurchaseIterator) Close

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

func (*INiftyswapExchangeTokensPurchaseIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchangeTokensPurchaseIterator) 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 INiftyswapExchangeTransactor

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

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

func NewINiftyswapExchangeTransactor

func NewINiftyswapExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*INiftyswapExchangeTransactor, error)

NewINiftyswapExchangeTransactor creates a new write-only instance of INiftyswapExchange, bound to a specific deployed contract.

func (*INiftyswapExchangeTransactor) OnERC1155BatchReceived

func (_INiftyswapExchange *INiftyswapExchangeTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*INiftyswapExchangeTransactor) OnERC1155Received

func (_INiftyswapExchange *INiftyswapExchangeTransactor) OnERC1155Received(opts *bind.TransactOpts, _operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

type INiftyswapExchangeTransactorRaw

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

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

func (*INiftyswapExchangeTransactorRaw) Transact

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

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

func (*INiftyswapExchangeTransactorRaw) Transfer

func (_INiftyswapExchange *INiftyswapExchangeTransactorRaw) 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 INiftyswapExchangeTransactorSession

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

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

func (*INiftyswapExchangeTransactorSession) OnERC1155BatchReceived

func (_INiftyswapExchange *INiftyswapExchangeTransactorSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*INiftyswapExchangeTransactorSession) OnERC1155Received

func (_INiftyswapExchange *INiftyswapExchangeTransactorSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

type INiftyswapFactory

type INiftyswapFactory struct {
	INiftyswapFactoryCaller     // Read-only binding to the contract
	INiftyswapFactoryTransactor // Write-only binding to the contract
	INiftyswapFactoryFilterer   // Log filterer for contract events
}

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

func NewINiftyswapFactory

func NewINiftyswapFactory(address common.Address, backend bind.ContractBackend) (*INiftyswapFactory, error)

NewINiftyswapFactory creates a new instance of INiftyswapFactory, bound to a specific deployed contract.

type INiftyswapFactoryCaller

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

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

func NewINiftyswapFactoryCaller

func NewINiftyswapFactoryCaller(address common.Address, caller bind.ContractCaller) (*INiftyswapFactoryCaller, error)

NewINiftyswapFactoryCaller creates a new read-only instance of INiftyswapFactory, bound to a specific deployed contract.

func (*INiftyswapFactoryCaller) TokensToExchange

func (_INiftyswapFactory *INiftyswapFactoryCaller) TokensToExchange(opts *bind.CallOpts, _token common.Address, _currency common.Address, _currencyID *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address _token, address _currency, uint256 _currencyID) view returns(address)

type INiftyswapFactoryCallerRaw

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

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

func (*INiftyswapFactoryCallerRaw) Call

func (_INiftyswapFactory *INiftyswapFactoryCallerRaw) 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 INiftyswapFactoryCallerSession

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

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

func (*INiftyswapFactoryCallerSession) TokensToExchange

func (_INiftyswapFactory *INiftyswapFactoryCallerSession) TokensToExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address _token, address _currency, uint256 _currencyID) view returns(address)

type INiftyswapFactoryFilterer

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

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

func NewINiftyswapFactoryFilterer

func NewINiftyswapFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*INiftyswapFactoryFilterer, error)

NewINiftyswapFactoryFilterer creates a new log filterer instance of INiftyswapFactory, bound to a specific deployed contract.

func (*INiftyswapFactoryFilterer) FilterNewExchange

func (_INiftyswapFactory *INiftyswapFactoryFilterer) FilterNewExchange(opts *bind.FilterOpts, token []common.Address, currency []common.Address, currencyID []*big.Int) (*INiftyswapFactoryNewExchangeIterator, error)

FilterNewExchange is a free log retrieval operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

func (*INiftyswapFactoryFilterer) ParseNewExchange

func (_INiftyswapFactory *INiftyswapFactoryFilterer) ParseNewExchange(log types.Log) (*INiftyswapFactoryNewExchange, error)

ParseNewExchange is a log parse operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

func (*INiftyswapFactoryFilterer) WatchNewExchange

func (_INiftyswapFactory *INiftyswapFactoryFilterer) WatchNewExchange(opts *bind.WatchOpts, sink chan<- *INiftyswapFactoryNewExchange, token []common.Address, currency []common.Address, currencyID []*big.Int) (event.Subscription, error)

WatchNewExchange is a free log subscription operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

type INiftyswapFactoryNewExchange

type INiftyswapFactoryNewExchange struct {
	Token      common.Address
	Currency   common.Address
	CurrencyID *big.Int
	Exchange   common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

INiftyswapFactoryNewExchange represents a NewExchange event raised by the INiftyswapFactory contract.

type INiftyswapFactoryNewExchangeIterator

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

INiftyswapFactoryNewExchangeIterator is returned from FilterNewExchange and is used to iterate over the raw logs and unpacked data for NewExchange events raised by the INiftyswapFactory contract.

func (*INiftyswapFactoryNewExchangeIterator) Close

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

func (*INiftyswapFactoryNewExchangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapFactoryNewExchangeIterator) 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 INiftyswapFactoryRaw

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

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

func (*INiftyswapFactoryRaw) Call

func (_INiftyswapFactory *INiftyswapFactoryRaw) 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 (*INiftyswapFactoryRaw) Transact

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

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

func (*INiftyswapFactoryRaw) Transfer

func (_INiftyswapFactory *INiftyswapFactoryRaw) 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 INiftyswapFactorySession

type INiftyswapFactorySession struct {
	Contract     *INiftyswapFactory // 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
}

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

func (*INiftyswapFactorySession) CreateExchange

func (_INiftyswapFactory *INiftyswapFactorySession) CreateExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

func (*INiftyswapFactorySession) TokensToExchange

func (_INiftyswapFactory *INiftyswapFactorySession) TokensToExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address _token, address _currency, uint256 _currencyID) view returns(address)

type INiftyswapFactoryTransactor

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

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

func NewINiftyswapFactoryTransactor

func NewINiftyswapFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*INiftyswapFactoryTransactor, error)

NewINiftyswapFactoryTransactor creates a new write-only instance of INiftyswapFactory, bound to a specific deployed contract.

func (*INiftyswapFactoryTransactor) CreateExchange

func (_INiftyswapFactory *INiftyswapFactoryTransactor) CreateExchange(opts *bind.TransactOpts, _token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

type INiftyswapFactoryTransactorRaw

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

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

func (*INiftyswapFactoryTransactorRaw) Transact

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

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

func (*INiftyswapFactoryTransactorRaw) Transfer

func (_INiftyswapFactory *INiftyswapFactoryTransactorRaw) 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 INiftyswapFactoryTransactorSession

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

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

func (*INiftyswapFactoryTransactorSession) CreateExchange

func (_INiftyswapFactory *INiftyswapFactoryTransactorSession) CreateExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

type IWrapAndNiftyswap

type IWrapAndNiftyswap struct {
	IWrapAndNiftyswapCaller     // Read-only binding to the contract
	IWrapAndNiftyswapTransactor // Write-only binding to the contract
	IWrapAndNiftyswapFilterer   // Log filterer for contract events
}

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

func NewIWrapAndNiftyswap

func NewIWrapAndNiftyswap(address common.Address, backend bind.ContractBackend) (*IWrapAndNiftyswap, error)

NewIWrapAndNiftyswap creates a new instance of IWrapAndNiftyswap, bound to a specific deployed contract.

type IWrapAndNiftyswapCaller

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

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

func NewIWrapAndNiftyswapCaller

func NewIWrapAndNiftyswapCaller(address common.Address, caller bind.ContractCaller) (*IWrapAndNiftyswapCaller, error)

NewIWrapAndNiftyswapCaller creates a new read-only instance of IWrapAndNiftyswap, bound to a specific deployed contract.

type IWrapAndNiftyswapCallerRaw

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

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

func (*IWrapAndNiftyswapCallerRaw) Call

func (_IWrapAndNiftyswap *IWrapAndNiftyswapCallerRaw) 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 IWrapAndNiftyswapCallerSession

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

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

type IWrapAndNiftyswapFilterer

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

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

func NewIWrapAndNiftyswapFilterer

func NewIWrapAndNiftyswapFilterer(address common.Address, filterer bind.ContractFilterer) (*IWrapAndNiftyswapFilterer, error)

NewIWrapAndNiftyswapFilterer creates a new log filterer instance of IWrapAndNiftyswap, bound to a specific deployed contract.

type IWrapAndNiftyswapRaw

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

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

func (*IWrapAndNiftyswapRaw) Call

func (_IWrapAndNiftyswap *IWrapAndNiftyswapRaw) 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 (*IWrapAndNiftyswapRaw) Transact

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

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

func (*IWrapAndNiftyswapRaw) Transfer

func (_IWrapAndNiftyswap *IWrapAndNiftyswapRaw) 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 IWrapAndNiftyswapSession

type IWrapAndNiftyswapSession struct {
	Contract     *IWrapAndNiftyswap // 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
}

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

func (*IWrapAndNiftyswapSession) OnERC1155BatchReceived

func (_IWrapAndNiftyswap *IWrapAndNiftyswapSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapSession) OnERC1155Received

func (_IWrapAndNiftyswap *IWrapAndNiftyswapSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapSession) WrapAndSwap

func (_IWrapAndNiftyswap *IWrapAndNiftyswapSession) WrapAndSwap(_maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

type IWrapAndNiftyswapTransactor

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

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

func NewIWrapAndNiftyswapTransactor

func NewIWrapAndNiftyswapTransactor(address common.Address, transactor bind.ContractTransactor) (*IWrapAndNiftyswapTransactor, error)

NewIWrapAndNiftyswapTransactor creates a new write-only instance of IWrapAndNiftyswap, bound to a specific deployed contract.

func (*IWrapAndNiftyswapTransactor) OnERC1155BatchReceived

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapTransactor) OnERC1155Received

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactor) OnERC1155Received(opts *bind.TransactOpts, _operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapTransactor) WrapAndSwap

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactor) WrapAndSwap(opts *bind.TransactOpts, _maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

type IWrapAndNiftyswapTransactorRaw

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

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

func (*IWrapAndNiftyswapTransactorRaw) Transact

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

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

func (*IWrapAndNiftyswapTransactorRaw) Transfer

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactorRaw) 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 IWrapAndNiftyswapTransactorSession

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

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

func (*IWrapAndNiftyswapTransactorSession) OnERC1155BatchReceived

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactorSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapTransactorSession) OnERC1155Received

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactorSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*IWrapAndNiftyswapTransactorSession) WrapAndSwap

func (_IWrapAndNiftyswap *IWrapAndNiftyswapTransactorSession) WrapAndSwap(_maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

type NiftyswapExchange

type NiftyswapExchange struct {
	NiftyswapExchangeCaller     // Read-only binding to the contract
	NiftyswapExchangeTransactor // Write-only binding to the contract
	NiftyswapExchangeFilterer   // Log filterer for contract events
}

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

func DeployNiftyswapExchange

func DeployNiftyswapExchange(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenAddr common.Address, _currencyAddr common.Address, _currencyID *big.Int) (common.Address, *types.Transaction, *NiftyswapExchange, error)

DeployNiftyswapExchange deploys a new Ethereum contract, binding an instance of NiftyswapExchange to it.

func NewNiftyswapExchange

func NewNiftyswapExchange(address common.Address, backend bind.ContractBackend) (*NiftyswapExchange, error)

NewNiftyswapExchange creates a new instance of NiftyswapExchange, bound to a specific deployed contract.

type NiftyswapExchangeApprovalForAll

type NiftyswapExchangeApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeApprovalForAll represents a ApprovalForAll event raised by the NiftyswapExchange contract.

type NiftyswapExchangeApprovalForAllIterator

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

NiftyswapExchangeApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeApprovalForAllIterator) Close

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

func (*NiftyswapExchangeApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeApprovalForAllIterator) 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 NiftyswapExchangeCaller

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

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

func NewNiftyswapExchangeCaller

func NewNiftyswapExchangeCaller(address common.Address, caller bind.ContractCaller) (*NiftyswapExchangeCaller, error)

NewNiftyswapExchangeCaller creates a new read-only instance of NiftyswapExchange, bound to a specific deployed contract.

func (*NiftyswapExchangeCaller) BalanceOf

func (_NiftyswapExchange *NiftyswapExchangeCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address, _id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address _owner, uint256 _id) view returns(uint256)

func (*NiftyswapExchangeCaller) BalanceOfBatch

func (_NiftyswapExchange *NiftyswapExchangeCaller) BalanceOfBatch(opts *bind.CallOpts, _owners []common.Address, _ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] _owners, uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCaller) GetBuyPrice

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetBuyPrice(opts *bind.CallOpts, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeCaller) GetCurrencyInfo

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetCurrencyInfo(opts *bind.CallOpts) (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*NiftyswapExchangeCaller) GetCurrencyReserves

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetCurrencyReserves(opts *bind.CallOpts, _ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCaller) GetFactoryAddress

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetFactoryAddress(opts *bind.CallOpts) (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*NiftyswapExchangeCaller) GetPriceCurrencyToToken

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetPriceCurrencyToToken(opts *bind.CallOpts, _ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*NiftyswapExchangeCaller) GetPriceTokenToCurrency

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetPriceTokenToCurrency(opts *bind.CallOpts, _ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*NiftyswapExchangeCaller) GetSellPrice

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetSellPrice(opts *bind.CallOpts, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeCaller) GetTokenAddress

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetTokenAddress(opts *bind.CallOpts) (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*NiftyswapExchangeCaller) GetTotalSupply

func (_NiftyswapExchange *NiftyswapExchangeCaller) GetTotalSupply(opts *bind.CallOpts, _ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCaller) IsApprovedForAll

func (_NiftyswapExchange *NiftyswapExchangeCaller) IsApprovedForAll(opts *bind.CallOpts, _owner common.Address, _operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address _owner, address _operator) view returns(bool isOperator)

func (*NiftyswapExchangeCaller) SupportsInterface

func (_NiftyswapExchange *NiftyswapExchangeCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

type NiftyswapExchangeCallerRaw

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

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

func (*NiftyswapExchangeCallerRaw) Call

func (_NiftyswapExchange *NiftyswapExchangeCallerRaw) 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 NiftyswapExchangeCallerSession

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

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

func (*NiftyswapExchangeCallerSession) BalanceOf

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) BalanceOf(_owner common.Address, _id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address _owner, uint256 _id) view returns(uint256)

func (*NiftyswapExchangeCallerSession) BalanceOfBatch

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) BalanceOfBatch(_owners []common.Address, _ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] _owners, uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCallerSession) GetBuyPrice

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetBuyPrice(_assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeCallerSession) GetCurrencyInfo

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetCurrencyInfo() (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*NiftyswapExchangeCallerSession) GetCurrencyReserves

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetCurrencyReserves(_ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCallerSession) GetFactoryAddress

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetFactoryAddress() (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*NiftyswapExchangeCallerSession) GetPriceCurrencyToToken

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetPriceCurrencyToToken(_ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*NiftyswapExchangeCallerSession) GetPriceTokenToCurrency

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetPriceTokenToCurrency(_ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*NiftyswapExchangeCallerSession) GetSellPrice

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetSellPrice(_assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeCallerSession) GetTokenAddress

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetTokenAddress() (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*NiftyswapExchangeCallerSession) GetTotalSupply

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) GetTotalSupply(_ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeCallerSession) IsApprovedForAll

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) IsApprovedForAll(_owner common.Address, _operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address _owner, address _operator) view returns(bool isOperator)

func (*NiftyswapExchangeCallerSession) SupportsInterface

func (_NiftyswapExchange *NiftyswapExchangeCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

type NiftyswapExchangeCurrencyPurchase

type NiftyswapExchangeCurrencyPurchase struct {
	Buyer                 common.Address
	Recipient             common.Address
	TokensSoldIds         []*big.Int
	TokensSoldAmounts     []*big.Int
	CurrencyBoughtAmounts []*big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeCurrencyPurchase represents a CurrencyPurchase event raised by the NiftyswapExchange contract.

type NiftyswapExchangeCurrencyPurchaseIterator

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

NiftyswapExchangeCurrencyPurchaseIterator is returned from FilterCurrencyPurchase and is used to iterate over the raw logs and unpacked data for CurrencyPurchase events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeCurrencyPurchaseIterator) Close

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

func (*NiftyswapExchangeCurrencyPurchaseIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeCurrencyPurchaseIterator) 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 NiftyswapExchangeFilterer

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

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

func NewNiftyswapExchangeFilterer

func NewNiftyswapExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*NiftyswapExchangeFilterer, error)

NewNiftyswapExchangeFilterer creates a new log filterer instance of NiftyswapExchange, bound to a specific deployed contract.

func (*NiftyswapExchangeFilterer) FilterApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterApprovalForAll(opts *bind.FilterOpts, _owner []common.Address, _operator []common.Address) (*NiftyswapExchangeApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)

func (*NiftyswapExchangeFilterer) FilterCurrencyPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterCurrencyPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*NiftyswapExchangeCurrencyPurchaseIterator, error)

FilterCurrencyPurchase is a free log retrieval operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*NiftyswapExchangeFilterer) FilterLiquidityAdded

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterLiquidityAdded(opts *bind.FilterOpts, provider []common.Address) (*NiftyswapExchangeLiquidityAddedIterator, error)

FilterLiquidityAdded is a free log retrieval operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) FilterLiquidityRemoved

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterLiquidityRemoved(opts *bind.FilterOpts, provider []common.Address) (*NiftyswapExchangeLiquidityRemovedIterator, error)

FilterLiquidityRemoved is a free log retrieval operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) FilterTokensPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterTokensPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*NiftyswapExchangeTokensPurchaseIterator, error)

FilterTokensPurchase is a free log retrieval operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

func (*NiftyswapExchangeFilterer) FilterTransferBatch

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterTransferBatch(opts *bind.FilterOpts, _operator []common.Address, _from []common.Address, _to []common.Address) (*NiftyswapExchangeTransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts)

func (*NiftyswapExchangeFilterer) FilterTransferSingle

func (_NiftyswapExchange *NiftyswapExchangeFilterer) FilterTransferSingle(opts *bind.FilterOpts, _operator []common.Address, _from []common.Address, _to []common.Address) (*NiftyswapExchangeTransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount)

func (*NiftyswapExchangeFilterer) ParseApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseApprovalForAll(log types.Log) (*NiftyswapExchangeApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)

func (*NiftyswapExchangeFilterer) ParseCurrencyPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseCurrencyPurchase(log types.Log) (*NiftyswapExchangeCurrencyPurchase, error)

ParseCurrencyPurchase is a log parse operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*NiftyswapExchangeFilterer) ParseLiquidityAdded

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseLiquidityAdded(log types.Log) (*NiftyswapExchangeLiquidityAdded, error)

ParseLiquidityAdded is a log parse operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) ParseLiquidityRemoved

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseLiquidityRemoved(log types.Log) (*NiftyswapExchangeLiquidityRemoved, error)

ParseLiquidityRemoved is a log parse operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) ParseTokensPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseTokensPurchase(log types.Log) (*NiftyswapExchangeTokensPurchase, error)

ParseTokensPurchase is a log parse operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

func (*NiftyswapExchangeFilterer) ParseTransferBatch

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseTransferBatch(log types.Log) (*NiftyswapExchangeTransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts)

func (*NiftyswapExchangeFilterer) ParseTransferSingle

func (_NiftyswapExchange *NiftyswapExchangeFilterer) ParseTransferSingle(log types.Log) (*NiftyswapExchangeTransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount)

func (*NiftyswapExchangeFilterer) WatchApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeApprovalForAll, _owner []common.Address, _operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)

func (*NiftyswapExchangeFilterer) WatchCurrencyPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchCurrencyPurchase(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeCurrencyPurchase, buyer []common.Address, recipient []common.Address) (event.Subscription, error)

WatchCurrencyPurchase is a free log subscription operation binding the contract event 0x89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd.

Solidity: event CurrencyPurchase(address indexed buyer, address indexed recipient, uint256[] tokensSoldIds, uint256[] tokensSoldAmounts, uint256[] currencyBoughtAmounts)

func (*NiftyswapExchangeFilterer) WatchLiquidityAdded

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchLiquidityAdded(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeLiquidityAdded, provider []common.Address) (event.Subscription, error)

WatchLiquidityAdded is a free log subscription operation binding the contract event 0x403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da316.

Solidity: event LiquidityAdded(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) WatchLiquidityRemoved

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchLiquidityRemoved(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeLiquidityRemoved, provider []common.Address) (event.Subscription, error)

WatchLiquidityRemoved is a free log subscription operation binding the contract event 0x711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd423.

Solidity: event LiquidityRemoved(address indexed provider, uint256[] tokenIds, uint256[] tokenAmounts, uint256[] currencyAmounts)

func (*NiftyswapExchangeFilterer) WatchTokensPurchase

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchTokensPurchase(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeTokensPurchase, buyer []common.Address, recipient []common.Address) (event.Subscription, error)

WatchTokensPurchase is a free log subscription operation binding the contract event 0xd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a30.

Solidity: event TokensPurchase(address indexed buyer, address indexed recipient, uint256[] tokensBoughtIds, uint256[] tokensBoughtAmounts, uint256[] currencySoldAmounts)

func (*NiftyswapExchangeFilterer) WatchTransferBatch

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeTransferBatch, _operator []common.Address, _from []common.Address, _to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _amounts)

func (*NiftyswapExchangeFilterer) WatchTransferSingle

func (_NiftyswapExchange *NiftyswapExchangeFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *NiftyswapExchangeTransferSingle, _operator []common.Address, _from []common.Address, _to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _amount)

type NiftyswapExchangeLiquidityAdded

type NiftyswapExchangeLiquidityAdded struct {
	Provider        common.Address
	TokenIds        []*big.Int
	TokenAmounts    []*big.Int
	CurrencyAmounts []*big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeLiquidityAdded represents a LiquidityAdded event raised by the NiftyswapExchange contract.

type NiftyswapExchangeLiquidityAddedIterator

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

NiftyswapExchangeLiquidityAddedIterator is returned from FilterLiquidityAdded and is used to iterate over the raw logs and unpacked data for LiquidityAdded events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeLiquidityAddedIterator) Close

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

func (*NiftyswapExchangeLiquidityAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeLiquidityAddedIterator) 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 NiftyswapExchangeLiquidityRemoved

type NiftyswapExchangeLiquidityRemoved struct {
	Provider        common.Address
	TokenIds        []*big.Int
	TokenAmounts    []*big.Int
	CurrencyAmounts []*big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeLiquidityRemoved represents a LiquidityRemoved event raised by the NiftyswapExchange contract.

type NiftyswapExchangeLiquidityRemovedIterator

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

NiftyswapExchangeLiquidityRemovedIterator is returned from FilterLiquidityRemoved and is used to iterate over the raw logs and unpacked data for LiquidityRemoved events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeLiquidityRemovedIterator) Close

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

func (*NiftyswapExchangeLiquidityRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeLiquidityRemovedIterator) 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 NiftyswapExchangeRaw

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

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

func (*NiftyswapExchangeRaw) Call

func (_NiftyswapExchange *NiftyswapExchangeRaw) 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 (*NiftyswapExchangeRaw) Transact

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

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

func (*NiftyswapExchangeRaw) Transfer

func (_NiftyswapExchange *NiftyswapExchangeRaw) 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 NiftyswapExchangeSession

type NiftyswapExchangeSession struct {
	Contract     *NiftyswapExchange // 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
}

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

func (*NiftyswapExchangeSession) BalanceOf

func (_NiftyswapExchange *NiftyswapExchangeSession) BalanceOf(_owner common.Address, _id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address _owner, uint256 _id) view returns(uint256)

func (*NiftyswapExchangeSession) BalanceOfBatch

func (_NiftyswapExchange *NiftyswapExchangeSession) BalanceOfBatch(_owners []common.Address, _ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] _owners, uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeSession) Fallback

func (_NiftyswapExchange *NiftyswapExchangeSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*NiftyswapExchangeSession) GetBuyPrice

func (_NiftyswapExchange *NiftyswapExchangeSession) GetBuyPrice(_assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPrice is a free data retrieval call binding the contract method 0xfca16c3b.

Solidity: function getBuyPrice(uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeSession) GetCurrencyInfo

func (_NiftyswapExchange *NiftyswapExchangeSession) GetCurrencyInfo() (common.Address, *big.Int, error)

GetCurrencyInfo is a free data retrieval call binding the contract method 0x46adf5ca.

Solidity: function getCurrencyInfo() view returns(address, uint256)

func (*NiftyswapExchangeSession) GetCurrencyReserves

func (_NiftyswapExchange *NiftyswapExchangeSession) GetCurrencyReserves(_ids []*big.Int) ([]*big.Int, error)

GetCurrencyReserves is a free data retrieval call binding the contract method 0x209b96c5.

Solidity: function getCurrencyReserves(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeSession) GetFactoryAddress

func (_NiftyswapExchange *NiftyswapExchangeSession) GetFactoryAddress() (common.Address, error)

GetFactoryAddress is a free data retrieval call binding the contract method 0xa9c2e36c.

Solidity: function getFactoryAddress() view returns(address)

func (*NiftyswapExchangeSession) GetPriceCurrencyToToken

func (_NiftyswapExchange *NiftyswapExchangeSession) GetPriceCurrencyToToken(_ids []*big.Int, _tokensBought []*big.Int) ([]*big.Int, error)

GetPriceCurrencyToToken is a free data retrieval call binding the contract method 0xbe571468.

Solidity: function getPrice_currencyToToken(uint256[] _ids, uint256[] _tokensBought) view returns(uint256[])

func (*NiftyswapExchangeSession) GetPriceTokenToCurrency

func (_NiftyswapExchange *NiftyswapExchangeSession) GetPriceTokenToCurrency(_ids []*big.Int, _tokensSold []*big.Int) ([]*big.Int, error)

GetPriceTokenToCurrency is a free data retrieval call binding the contract method 0x863ed300.

Solidity: function getPrice_tokenToCurrency(uint256[] _ids, uint256[] _tokensSold) view returns(uint256[])

func (*NiftyswapExchangeSession) GetSellPrice

func (_NiftyswapExchange *NiftyswapExchangeSession) GetSellPrice(_assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPrice is a free data retrieval call binding the contract method 0x6ee8e134.

Solidity: function getSellPrice(uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) pure returns(uint256 price)

func (*NiftyswapExchangeSession) GetTokenAddress

func (_NiftyswapExchange *NiftyswapExchangeSession) GetTokenAddress() (common.Address, error)

GetTokenAddress is a free data retrieval call binding the contract method 0x10fe9ae8.

Solidity: function getTokenAddress() view returns(address)

func (*NiftyswapExchangeSession) GetTotalSupply

func (_NiftyswapExchange *NiftyswapExchangeSession) GetTotalSupply(_ids []*big.Int) ([]*big.Int, error)

GetTotalSupply is a free data retrieval call binding the contract method 0x2bef5e38.

Solidity: function getTotalSupply(uint256[] _ids) view returns(uint256[])

func (*NiftyswapExchangeSession) IsApprovedForAll

func (_NiftyswapExchange *NiftyswapExchangeSession) IsApprovedForAll(_owner common.Address, _operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address _owner, address _operator) view returns(bool isOperator)

func (*NiftyswapExchangeSession) OnERC1155BatchReceived

func (_NiftyswapExchange *NiftyswapExchangeSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*NiftyswapExchangeSession) OnERC1155Received

func (_NiftyswapExchange *NiftyswapExchangeSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*NiftyswapExchangeSession) SafeBatchTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeSession) SafeBatchTransferFrom(_from common.Address, _to common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address _from, address _to, uint256[] _ids, uint256[] _amounts, bytes _data) returns()

func (*NiftyswapExchangeSession) SafeTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeSession) SafeTransferFrom(_from common.Address, _to common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes _data) returns()

func (*NiftyswapExchangeSession) SetApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeSession) SetApprovalForAll(_operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address _operator, bool _approved) returns()

func (*NiftyswapExchangeSession) SupportsInterface

func (_NiftyswapExchange *NiftyswapExchangeSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

type NiftyswapExchangeTokensPurchase

type NiftyswapExchangeTokensPurchase struct {
	Buyer               common.Address
	Recipient           common.Address
	TokensBoughtIds     []*big.Int
	TokensBoughtAmounts []*big.Int
	CurrencySoldAmounts []*big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeTokensPurchase represents a TokensPurchase event raised by the NiftyswapExchange contract.

type NiftyswapExchangeTokensPurchaseIterator

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

NiftyswapExchangeTokensPurchaseIterator is returned from FilterTokensPurchase and is used to iterate over the raw logs and unpacked data for TokensPurchase events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeTokensPurchaseIterator) Close

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

func (*NiftyswapExchangeTokensPurchaseIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeTokensPurchaseIterator) 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 NiftyswapExchangeTransactor

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

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

func NewNiftyswapExchangeTransactor

func NewNiftyswapExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*NiftyswapExchangeTransactor, error)

NewNiftyswapExchangeTransactor creates a new write-only instance of NiftyswapExchange, bound to a specific deployed contract.

func (*NiftyswapExchangeTransactor) Fallback

func (_NiftyswapExchange *NiftyswapExchangeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*NiftyswapExchangeTransactor) OnERC1155BatchReceived

func (_NiftyswapExchange *NiftyswapExchangeTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*NiftyswapExchangeTransactor) OnERC1155Received

func (_NiftyswapExchange *NiftyswapExchangeTransactor) OnERC1155Received(opts *bind.TransactOpts, _operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*NiftyswapExchangeTransactor) SafeBatchTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address _from, address _to, uint256[] _ids, uint256[] _amounts, bytes _data) returns()

func (*NiftyswapExchangeTransactor) SafeTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeTransactor) SafeTransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes _data) returns()

func (*NiftyswapExchangeTransactor) SetApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeTransactor) SetApprovalForAll(opts *bind.TransactOpts, _operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address _operator, bool _approved) returns()

type NiftyswapExchangeTransactorRaw

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

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

func (*NiftyswapExchangeTransactorRaw) Transact

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

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

func (*NiftyswapExchangeTransactorRaw) Transfer

func (_NiftyswapExchange *NiftyswapExchangeTransactorRaw) 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 NiftyswapExchangeTransactorSession

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

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

func (*NiftyswapExchangeTransactorSession) Fallback

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() returns()

func (*NiftyswapExchangeTransactorSession) OnERC1155BatchReceived

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _data) returns(bytes4)

func (*NiftyswapExchangeTransactorSession) OnERC1155Received

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) OnERC1155Received(_operator common.Address, _from common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes _data) returns(bytes4)

func (*NiftyswapExchangeTransactorSession) SafeBatchTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) SafeBatchTransferFrom(_from common.Address, _to common.Address, _ids []*big.Int, _amounts []*big.Int, _data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address _from, address _to, uint256[] _ids, uint256[] _amounts, bytes _data) returns()

func (*NiftyswapExchangeTransactorSession) SafeTransferFrom

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) SafeTransferFrom(_from common.Address, _to common.Address, _id *big.Int, _amount *big.Int, _data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes _data) returns()

func (*NiftyswapExchangeTransactorSession) SetApprovalForAll

func (_NiftyswapExchange *NiftyswapExchangeTransactorSession) SetApprovalForAll(_operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address _operator, bool _approved) returns()

type NiftyswapExchangeTransferBatch

type NiftyswapExchangeTransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Amounts  []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeTransferBatch represents a TransferBatch event raised by the NiftyswapExchange contract.

type NiftyswapExchangeTransferBatchIterator

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

NiftyswapExchangeTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeTransferBatchIterator) Close

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

func (*NiftyswapExchangeTransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeTransferBatchIterator) 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 NiftyswapExchangeTransferSingle

type NiftyswapExchangeTransferSingle struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Id       *big.Int
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

NiftyswapExchangeTransferSingle represents a TransferSingle event raised by the NiftyswapExchange contract.

type NiftyswapExchangeTransferSingleIterator

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

NiftyswapExchangeTransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the NiftyswapExchange contract.

func (*NiftyswapExchangeTransferSingleIterator) Close

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

func (*NiftyswapExchangeTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchangeTransferSingleIterator) 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 NiftyswapFactory

type NiftyswapFactory struct {
	NiftyswapFactoryCaller     // Read-only binding to the contract
	NiftyswapFactoryTransactor // Write-only binding to the contract
	NiftyswapFactoryFilterer   // Log filterer for contract events
}

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

func DeployNiftyswapFactory

func DeployNiftyswapFactory(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *NiftyswapFactory, error)

DeployNiftyswapFactory deploys a new Ethereum contract, binding an instance of NiftyswapFactory to it.

func NewNiftyswapFactory

func NewNiftyswapFactory(address common.Address, backend bind.ContractBackend) (*NiftyswapFactory, error)

NewNiftyswapFactory creates a new instance of NiftyswapFactory, bound to a specific deployed contract.

type NiftyswapFactoryCaller

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

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

func NewNiftyswapFactoryCaller

func NewNiftyswapFactoryCaller(address common.Address, caller bind.ContractCaller) (*NiftyswapFactoryCaller, error)

NewNiftyswapFactoryCaller creates a new read-only instance of NiftyswapFactory, bound to a specific deployed contract.

func (*NiftyswapFactoryCaller) TokensToExchange

func (_NiftyswapFactory *NiftyswapFactoryCaller) TokensToExchange(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address , address , uint256 ) view returns(address)

type NiftyswapFactoryCallerRaw

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

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

func (*NiftyswapFactoryCallerRaw) Call

func (_NiftyswapFactory *NiftyswapFactoryCallerRaw) 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 NiftyswapFactoryCallerSession

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

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

func (*NiftyswapFactoryCallerSession) TokensToExchange

func (_NiftyswapFactory *NiftyswapFactoryCallerSession) TokensToExchange(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address , address , uint256 ) view returns(address)

type NiftyswapFactoryFilterer

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

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

func NewNiftyswapFactoryFilterer

func NewNiftyswapFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*NiftyswapFactoryFilterer, error)

NewNiftyswapFactoryFilterer creates a new log filterer instance of NiftyswapFactory, bound to a specific deployed contract.

func (*NiftyswapFactoryFilterer) FilterNewExchange

func (_NiftyswapFactory *NiftyswapFactoryFilterer) FilterNewExchange(opts *bind.FilterOpts, token []common.Address, currency []common.Address, currencyID []*big.Int) (*NiftyswapFactoryNewExchangeIterator, error)

FilterNewExchange is a free log retrieval operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

func (*NiftyswapFactoryFilterer) ParseNewExchange

func (_NiftyswapFactory *NiftyswapFactoryFilterer) ParseNewExchange(log types.Log) (*NiftyswapFactoryNewExchange, error)

ParseNewExchange is a log parse operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

func (*NiftyswapFactoryFilterer) WatchNewExchange

func (_NiftyswapFactory *NiftyswapFactoryFilterer) WatchNewExchange(opts *bind.WatchOpts, sink chan<- *NiftyswapFactoryNewExchange, token []common.Address, currency []common.Address, currencyID []*big.Int) (event.Subscription, error)

WatchNewExchange is a free log subscription operation binding the contract event 0x23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c.

Solidity: event NewExchange(address indexed token, address indexed currency, uint256 indexed currencyID, address exchange)

type NiftyswapFactoryNewExchange

type NiftyswapFactoryNewExchange struct {
	Token      common.Address
	Currency   common.Address
	CurrencyID *big.Int
	Exchange   common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

NiftyswapFactoryNewExchange represents a NewExchange event raised by the NiftyswapFactory contract.

type NiftyswapFactoryNewExchangeIterator

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

NiftyswapFactoryNewExchangeIterator is returned from FilterNewExchange and is used to iterate over the raw logs and unpacked data for NewExchange events raised by the NiftyswapFactory contract.

func (*NiftyswapFactoryNewExchangeIterator) Close

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

func (*NiftyswapFactoryNewExchangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapFactoryNewExchangeIterator) 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 NiftyswapFactoryRaw

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

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

func (*NiftyswapFactoryRaw) Call

func (_NiftyswapFactory *NiftyswapFactoryRaw) 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 (*NiftyswapFactoryRaw) Transact

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

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

func (*NiftyswapFactoryRaw) Transfer

func (_NiftyswapFactory *NiftyswapFactoryRaw) 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 NiftyswapFactorySession

type NiftyswapFactorySession struct {
	Contract     *NiftyswapFactory // 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
}

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

func (*NiftyswapFactorySession) CreateExchange

func (_NiftyswapFactory *NiftyswapFactorySession) CreateExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

func (*NiftyswapFactorySession) TokensToExchange

func (_NiftyswapFactory *NiftyswapFactorySession) TokensToExchange(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (common.Address, error)

TokensToExchange is a free data retrieval call binding the contract method 0x1427474c.

Solidity: function tokensToExchange(address , address , uint256 ) view returns(address)

type NiftyswapFactoryTransactor

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

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

func NewNiftyswapFactoryTransactor

func NewNiftyswapFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*NiftyswapFactoryTransactor, error)

NewNiftyswapFactoryTransactor creates a new write-only instance of NiftyswapFactory, bound to a specific deployed contract.

func (*NiftyswapFactoryTransactor) CreateExchange

func (_NiftyswapFactory *NiftyswapFactoryTransactor) CreateExchange(opts *bind.TransactOpts, _token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

type NiftyswapFactoryTransactorRaw

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

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

func (*NiftyswapFactoryTransactorRaw) Transact

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

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

func (*NiftyswapFactoryTransactorRaw) Transfer

func (_NiftyswapFactory *NiftyswapFactoryTransactorRaw) 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 NiftyswapFactoryTransactorSession

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

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

func (*NiftyswapFactoryTransactorSession) CreateExchange

func (_NiftyswapFactory *NiftyswapFactoryTransactorSession) CreateExchange(_token common.Address, _currency common.Address, _currencyID *big.Int) (*types.Transaction, error)

CreateExchange is a paid mutator transaction binding the contract method 0x8359289c.

Solidity: function createExchange(address _token, address _currency, uint256 _currencyID) returns()

type WrapAndNiftyswap

type WrapAndNiftyswap struct {
	WrapAndNiftyswapCaller     // Read-only binding to the contract
	WrapAndNiftyswapTransactor // Write-only binding to the contract
	WrapAndNiftyswapFilterer   // Log filterer for contract events
}

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

func DeployWrapAndNiftyswap

func DeployWrapAndNiftyswap(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenWrapper common.Address, _exchange common.Address, _erc20 common.Address, _erc1155 common.Address) (common.Address, *types.Transaction, *WrapAndNiftyswap, error)

DeployWrapAndNiftyswap deploys a new Ethereum contract, binding an instance of WrapAndNiftyswap to it.

func NewWrapAndNiftyswap

func NewWrapAndNiftyswap(address common.Address, backend bind.ContractBackend) (*WrapAndNiftyswap, error)

NewWrapAndNiftyswap creates a new instance of WrapAndNiftyswap, bound to a specific deployed contract.

type WrapAndNiftyswapCaller

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

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

func NewWrapAndNiftyswapCaller

func NewWrapAndNiftyswapCaller(address common.Address, caller bind.ContractCaller) (*WrapAndNiftyswapCaller, error)

NewWrapAndNiftyswapCaller creates a new read-only instance of WrapAndNiftyswap, bound to a specific deployed contract.

func (*WrapAndNiftyswapCaller) Erc1155

func (_WrapAndNiftyswap *WrapAndNiftyswapCaller) Erc1155(opts *bind.CallOpts) (common.Address, error)

Erc1155 is a free data retrieval call binding the contract method 0xd56022d7.

Solidity: function erc1155() view returns(address)

func (*WrapAndNiftyswapCaller) Erc20

func (_WrapAndNiftyswap *WrapAndNiftyswapCaller) Erc20(opts *bind.CallOpts) (common.Address, error)

Erc20 is a free data retrieval call binding the contract method 0x785e9e86.

Solidity: function erc20() view returns(address)

func (*WrapAndNiftyswapCaller) Exchange

func (_WrapAndNiftyswap *WrapAndNiftyswapCaller) Exchange(opts *bind.CallOpts) (common.Address, error)

Exchange is a free data retrieval call binding the contract method 0xd2f7265a.

Solidity: function exchange() view returns(address)

func (*WrapAndNiftyswapCaller) TokenWrapper

func (_WrapAndNiftyswap *WrapAndNiftyswapCaller) TokenWrapper(opts *bind.CallOpts) (common.Address, error)

TokenWrapper is a free data retrieval call binding the contract method 0xc5e3dfd8.

Solidity: function tokenWrapper() view returns(address)

type WrapAndNiftyswapCallerRaw

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

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

func (*WrapAndNiftyswapCallerRaw) Call

func (_WrapAndNiftyswap *WrapAndNiftyswapCallerRaw) 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 WrapAndNiftyswapCallerSession

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

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

func (*WrapAndNiftyswapCallerSession) Erc1155

func (_WrapAndNiftyswap *WrapAndNiftyswapCallerSession) Erc1155() (common.Address, error)

Erc1155 is a free data retrieval call binding the contract method 0xd56022d7.

Solidity: function erc1155() view returns(address)

func (*WrapAndNiftyswapCallerSession) Erc20

func (_WrapAndNiftyswap *WrapAndNiftyswapCallerSession) Erc20() (common.Address, error)

Erc20 is a free data retrieval call binding the contract method 0x785e9e86.

Solidity: function erc20() view returns(address)

func (*WrapAndNiftyswapCallerSession) Exchange

func (_WrapAndNiftyswap *WrapAndNiftyswapCallerSession) Exchange() (common.Address, error)

Exchange is a free data retrieval call binding the contract method 0xd2f7265a.

Solidity: function exchange() view returns(address)

func (*WrapAndNiftyswapCallerSession) TokenWrapper

func (_WrapAndNiftyswap *WrapAndNiftyswapCallerSession) TokenWrapper() (common.Address, error)

TokenWrapper is a free data retrieval call binding the contract method 0xc5e3dfd8.

Solidity: function tokenWrapper() view returns(address)

type WrapAndNiftyswapFilterer

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

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

func NewWrapAndNiftyswapFilterer

func NewWrapAndNiftyswapFilterer(address common.Address, filterer bind.ContractFilterer) (*WrapAndNiftyswapFilterer, error)

NewWrapAndNiftyswapFilterer creates a new log filterer instance of WrapAndNiftyswap, bound to a specific deployed contract.

type WrapAndNiftyswapRaw

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

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

func (*WrapAndNiftyswapRaw) Call

func (_WrapAndNiftyswap *WrapAndNiftyswapRaw) 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 (*WrapAndNiftyswapRaw) Transact

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

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

func (*WrapAndNiftyswapRaw) Transfer

func (_WrapAndNiftyswap *WrapAndNiftyswapRaw) 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 WrapAndNiftyswapSession

type WrapAndNiftyswapSession struct {
	Contract     *WrapAndNiftyswap // 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
}

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

func (*WrapAndNiftyswapSession) Erc1155

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) Erc1155() (common.Address, error)

Erc1155 is a free data retrieval call binding the contract method 0xd56022d7.

Solidity: function erc1155() view returns(address)

func (*WrapAndNiftyswapSession) Erc20

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) Erc20() (common.Address, error)

Erc20 is a free data retrieval call binding the contract method 0x785e9e86.

Solidity: function erc20() view returns(address)

func (*WrapAndNiftyswapSession) Exchange

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) Exchange() (common.Address, error)

Exchange is a free data retrieval call binding the contract method 0xd2f7265a.

Solidity: function exchange() view returns(address)

func (*WrapAndNiftyswapSession) OnERC1155BatchReceived

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _niftyswapOrder []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _niftyswapOrder) returns(bytes4)

func (*WrapAndNiftyswapSession) OnERC1155Received

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*WrapAndNiftyswapSession) TokenWrapper

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) TokenWrapper() (common.Address, error)

TokenWrapper is a free data retrieval call binding the contract method 0xc5e3dfd8.

Solidity: function tokenWrapper() view returns(address)

func (*WrapAndNiftyswapSession) WrapAndSwap

func (_WrapAndNiftyswap *WrapAndNiftyswapSession) WrapAndSwap(_maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

type WrapAndNiftyswapTransactor

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

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

func NewWrapAndNiftyswapTransactor

func NewWrapAndNiftyswapTransactor(address common.Address, transactor bind.ContractTransactor) (*WrapAndNiftyswapTransactor, error)

NewWrapAndNiftyswapTransactor creates a new write-only instance of WrapAndNiftyswap, bound to a specific deployed contract.

func (*WrapAndNiftyswapTransactor) OnERC1155BatchReceived

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactor) OnERC1155BatchReceived(opts *bind.TransactOpts, arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _niftyswapOrder []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _niftyswapOrder) returns(bytes4)

func (*WrapAndNiftyswapTransactor) OnERC1155Received

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactor) OnERC1155Received(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*WrapAndNiftyswapTransactor) WrapAndSwap

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactor) WrapAndSwap(opts *bind.TransactOpts, _maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

type WrapAndNiftyswapTransactorRaw

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

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

func (*WrapAndNiftyswapTransactorRaw) Transact

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

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

func (*WrapAndNiftyswapTransactorRaw) Transfer

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactorRaw) 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 WrapAndNiftyswapTransactorSession

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

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

func (*WrapAndNiftyswapTransactorSession) OnERC1155BatchReceived

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactorSession) OnERC1155BatchReceived(arg0 common.Address, _from common.Address, _ids []*big.Int, _amounts []*big.Int, _niftyswapOrder []byte) (*types.Transaction, error)

OnERC1155BatchReceived is a paid mutator transaction binding the contract method 0xbc197c81.

Solidity: function onERC1155BatchReceived(address , address _from, uint256[] _ids, uint256[] _amounts, bytes _niftyswapOrder) returns(bytes4)

func (*WrapAndNiftyswapTransactorSession) OnERC1155Received

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactorSession) OnERC1155Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error)

OnERC1155Received is a paid mutator transaction binding the contract method 0xf23a6e61.

Solidity: function onERC1155Received(address , address , uint256 , uint256 , bytes ) returns(bytes4)

func (*WrapAndNiftyswapTransactorSession) WrapAndSwap

func (_WrapAndNiftyswap *WrapAndNiftyswapTransactorSession) WrapAndSwap(_maxAmount *big.Int, _recipient common.Address, _niftyswapOrder []byte) (*types.Transaction, error)

WrapAndSwap is a paid mutator transaction binding the contract method 0xa874d5b6.

Solidity: function wrapAndSwap(uint256 _maxAmount, address _recipient, bytes _niftyswapOrder) returns()

Jump to

Keyboard shortcuts

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