niftyswap

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INiftyswapExchange20ABI = INiftyswapExchange20MetaData.ABI

INiftyswapExchange20ABI is the input ABI used to generate the binding from. Deprecated: Use INiftyswapExchange20MetaData.ABI instead.

View Source
var INiftyswapExchange20MetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyBoughtAmounts\",\"type\":\"uint256[]\"}],\"name\":\"CurrencyPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"royaltyRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"royaltyFee\",\"type\":\"uint256\"}],\"name\":\"RoyaltyChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencySoldAmounts\",\"type\":\"uint256[]\"}],\"name\":\"TokensPurchase\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_maxCurrency\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"_extraFeeRecipients\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_extraFeeAmounts\",\"type\":\"uint256[]\"}],\"name\":\"buyTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPriceWithRoyalty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrencyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getCurrencyReserves\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGlobalRoyaltyFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGlobalRoyaltyRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBought\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_currencyToToken\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensSold\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_tokenToCurrency\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"}],\"name\":\"getRoyalties\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPriceWithRoyalty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getTotalSupply\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"}],\"name\":\"sendRoyalties\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

INiftyswapExchange20MetaData contains all meta data concerning the INiftyswapExchange20 contract.

View Source
var INiftyswapExchangeABI = INiftyswapExchangeMetaData.ABI

INiftyswapExchangeABI is the input ABI used to generate the binding from. Deprecated: Use INiftyswapExchangeMetaData.ABI instead.

View Source
var INiftyswapExchangeMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyBoughtAmounts\",\"type\":\"uint256[]\"}],\"name\":\"CurrencyPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencySoldAmounts\",\"type\":\"uint256[]\"}],\"name\":\"TokensPurchase\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrencyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getCurrencyReserves\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBought\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_currencyToToken\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensSold\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_tokenToCurrency\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getTotalSupply\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

INiftyswapExchangeMetaData contains all meta data concerning the INiftyswapExchange contract.

View Source
var INiftyswapFactoryABI = INiftyswapFactoryMetaData.ABI

INiftyswapFactoryABI is the input ABI used to generate the binding from. Deprecated: Use INiftyswapFactoryMetaData.ABI instead.

View Source
var INiftyswapFactoryMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"currencyID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"}],\"name\":\"NewExchange\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_currencyID\",\"type\":\"uint256\"}],\"name\":\"createExchange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_currencyID\",\"type\":\"uint256\"}],\"name\":\"tokensToExchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

INiftyswapFactoryMetaData contains all meta data concerning the INiftyswapFactory contract.

View Source
var IWrapAndNiftyswapABI = IWrapAndNiftyswapMetaData.ABI

IWrapAndNiftyswapABI is the input ABI used to generate the binding from. Deprecated: Use IWrapAndNiftyswapMetaData.ABI instead.

View Source
var IWrapAndNiftyswapMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_niftyswapOrder\",\"type\":\"bytes\"}],\"name\":\"wrapAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IWrapAndNiftyswapMetaData contains all meta data concerning the IWrapAndNiftyswap contract.

View Source
var NiftyswapExchange20ABI = NiftyswapExchange20MetaData.ABI

NiftyswapExchange20ABI is the input ABI used to generate the binding from. Deprecated: Use NiftyswapExchange20MetaData.ABI instead.

View Source
var NiftyswapExchange20Bin = NiftyswapExchange20MetaData.Bin

NiftyswapExchange20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use NiftyswapExchange20MetaData.Bin instead.

View Source
var NiftyswapExchange20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currencyAddr\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyBoughtAmounts\",\"type\":\"uint256[]\"}],\"name\":\"CurrencyPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousParent\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newParent\",\"type\":\"address\"}],\"name\":\"ParentOwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"royaltyRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"royaltyFee\",\"type\":\"uint256\"}],\"name\":\"RoyaltyChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencySoldAmounts\",\"type\":\"uint256[]\"}],\"name\":\"TokensPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"_maxCurrency\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"_extraFeeRecipients\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_extraFeeAmounts\",\"type\":\"uint256[]\"}],\"name\":\"buyTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newParent\",\"type\":\"address\"}],\"name\":\"changeOwnableParent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPriceWithRoyalty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrencyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getCurrencyReserves\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGlobalRoyaltyFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getGlobalRoyaltyRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBought\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_currencyToToken\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensSold\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_tokenToCurrency\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"}],\"name\":\"getRoyalties\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_cost\",\"type\":\"uint256\"}],\"name\":\"getRoyaltyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"royalty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPriceWithRoyalty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getTotalSupply\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isOperator\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_royaltyRecipient\",\"type\":\"address\"}],\"name\":\"sendRoyalties\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_fee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"}],\"name\":\"setRoyaltyInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x6101006040523480156200001257600080fd5b50604051620059e1380380620059e1833981016040819052620000359162000263565b6000805460ff1916600117905560408051631127a41d60e31b815290513391829163893d20e891600480820192602092909190829003018186803b1580156200007d57600080fd5b505afa925050508015620000b0575060408051601f3d908101601f19168201909252620000ad918101906200023f565b60015b620000d85760405162461bcd60e51b8152600401620000cf90620002d1565b60405180910390fd5b50600380546001600160a01b0319166001600160a01b0383169081179091556040516000907ffca4bc097843727c93a8ab8d241a38481cccf8ec96dda1a342574712cfe8eb40908290a3506001600160a01b038216158015906200014457506001600160a01b03811615155b620001635760405162461bcd60e51b8152600401620000cf9062000308565b33606090811b60c0526001600160601b031983821b81166080529082901b1660a0526040516301ffc9a760e01b81526001600160a01b038316906301ffc9a790620001ba9063152a902d60e11b90600401620002bc565b60206040518083038186803b158015620001d357600080fd5b505afa92505050801562000206575060408051601f3d908101601f1916820190925262000203918101906200029a565b60015b62000211576200021a565b151560f81b60e0525b505062000355565b80516001600160a01b03811681146200023a57600080fd5b919050565b60006020828403121562000251578081fd5b6200025c8262000222565b9392505050565b6000806040838503121562000276578081fd5b620002818362000222565b9150620002916020840162000222565b90509250929050565b600060208284031215620002ac578081fd5b815180151581146200025c578182fd5b6001600160e01b031991909116815260200190565b60208082526015908201527f504152454e54204953204e4f54204f574e41424c450000000000000000000000604082015260600190565b6020808252602d908201527f4e696674797377617045786368616e6765323023636f6e7374727563746f723a60408201526c1253959053125117d253941555609a1b606082015260800190565b60805160601c60a05160601c60c05160601c60e05160f81c6155f5620003ec60003980611405525080610cf55250806107685280610c9452806111ff528061158d52806123df52806127f65280612b58528061309652508061053352806109745280610dac5280610f6052806110bb52806112dc52806114595280612bae52806130ec528061348d528061367a52506155f56000f3fe608060405234801561001057600080fd5b50600436106101cd5760003560e01c8063a22cb46511610104578063be571468116100a2578063e985e9c511610071578063e985e9c5146103e1578063f23a6e61146103f4578063f242432a14610407578063fca16c3b1461041a576101cd565b8063be57146814610392578063c7ed115e146103a5578063d93e8aaa146103c6578063e523d3fc146103d9576101cd565b8063a9c2e36c116100de578063a9c2e36c14610344578063aeaad2081461034c578063b5de3d141461035f578063bc197c8114610372576101cd565b8063a22cb4651461030b578063a63138751461031e578063a7380f6e14610331576101cd565b80632eb2c2d6116101715780636ee8e1341161014b5780636ee8e134146102ca578063863ed300146102dd57806389382ca0146102f0578063893d20e814610303576101cd565b80632eb2c2d61461029a57806346adf5ca146102af5780634e1273f4146102b7576101cd565b806310fe9ae8116101ad57806310fe9ae81461023f57806314556a5614610254578063209b96c5146102675780632bef5e3814610287576101cd565b80628e09d8146101ee578062fdd58e1461020c57806301ffc9a71461021f575b60405162461bcd60e51b81526004016101e5906146c8565b60405180910390fd5b6101f661042d565b60405161020391906152de565b60405180910390f35b6101f661021a366004613f18565b610433565b61023261022d36600461419d565b61045e565b6040516102039190614625565b610247610531565b60405161020391906144f4565b6101f6610262366004613d6a565b610555565b61027a610275366004613fd1565b610570565b60405161020391906145d9565b61027a610295366004613fd1565b610611565b6102ad6102a8366004613dda565b6106a9565b005b610247610766565b61027a6102c5366004613f70565b61078a565b6101f66102d836600461445e565b6108a3565b61027a6102eb366004614011565b61091d565b6102ad6102fe366004613d6a565b610aa3565b610247610b69565b6102ad610319366004613eeb565b610c04565b6102ad61032c366004613d6a565b610c72565b6101f661033f366004614489565b610cbe565b610247610cf3565b6101f661035a366004614489565b610d17565b6102ad61036d366004614419565b610d41565b610385610380366004613dda565b610f0a565b6040516102039190614630565b61027a6103a0366004614011565b611285565b6103b86103b336600461443d565b611400565b604051610203929190614560565b61027a6103d43660046140b5565b611545565b610247611756565b6102326103ef366004613da2565b611765565b610385610402366004613e84565b611793565b6102ad610415366004613e84565b611892565b6101f661042836600461445e565b611948565b60045490565b6001600160a01b03821660009081526001602090815260408083208484529091529020545b92915050565b60006001600160e01b031982167f36372b070000000000000000000000000000000000000000000000000000000014806104c157506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b806104f557506001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000145b8061052957506001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000145b90505b919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6001600160a01b031660009081526008602052604090205490565b606081818167ffffffffffffffff8111801561058b57600080fd5b506040519080825280602002602001820160405280156105b5578160200160208202803683370190505b50905060005b8281101561060857600760008787848181106105d357fe5b905060200201358152602001908152602001600020548282815181106105f557fe5b60209081029190910101526001016105bb565b50949350505050565b606081818167ffffffffffffffff8111801561062c57600080fd5b50604051908082528060200260200182016040528015610656578160200160208202803683370190505b50905060005b82811015610608576006600087878481811061067457fe5b9050602002013581526020019081526020016000205482828151811061069657fe5b602090810291909101015260010161065c565b336001600160a01b03861614806106c557506106c58533611765565b6107005760405162461bcd60e51b815260040180806020018281038252602f8152602001806154bb602f913960400191505060405180910390fd5b6001600160a01b0384166107455760405162461bcd60e51b815260040180806020018281038252603081526020018061542f6030913960400191505060405180910390fd5b610751858585856119ad565b61075f858585855a86611c48565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b606081518351146107cc5760405162461bcd60e51b815260040180806020018281038252602c81526020018061548f602c913960400191505060405180910390fd5b6060835167ffffffffffffffff811180156107e657600080fd5b50604051908082528060200260200182016040528015610810578160200160208202803683370190505b50905060005b845181101561089b576001600086838151811061082f57fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600085838151811061086557fe5b602002602001015181526020019081526020016000205482828151811061088857fe5b6020908102919091010152600101610816565b509392505050565b600080831180156108b45750600082115b6108d05760405162461bcd60e51b81526004016101e59061508a565b60006108de856103de611e59565b905060006108ec8285611e59565b9050600061090683610900886103e8611e59565b90611ecf565b905080828161091157fe5b04979650505050505050565b606083818167ffffffffffffffff8111801561093857600080fd5b50604051908082528060200260200182016040528015610962578160200160208202803683370190505b50905060005b82811015610a985760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662fdd58e308b8b868181106109ad57fe5b905060200201356040518363ffffffff1660e01b81526004016109d1929190614560565b60206040518083038186803b1580156109e957600080fd5b505afa1580156109fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a219190614401565b9050610a78898984818110610a3257fe5b90506020020135888885818110610a4557fe5b9050602002013583600760008e8e89818110610a5d57fe5b90506020020135815260200190815260200160002054610cbe565b838381518110610a8457fe5b602090810291909101015250600101610968565b509695505050505050565b610aab610b69565b6001600160a01b0316336001600160a01b031614610adb5760405162461bcd60e51b81526004016101e5906151c7565b6001600160a01b038116610b015760405162461bcd60e51b81526004016101e590614b39565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383811691821792839055604051919216907ffca4bc097843727c93a8ab8d241a38481cccf8ec96dda1a342574712cfe8eb4090600090a350565b600354604080517f893d20e800000000000000000000000000000000000000000000000000000000815290516000926001600160a01b03169163893d20e8916004808301926020929190829003018186803b158015610bc757600080fd5b505afa158015610bdb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bff9190613d86565b905090565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6001600160a01b03811660009081526008602052604081208054919055610cba7f00000000000000000000000000000000000000000000000000000000000000008383611f29565b5050565b600080610ccc8585856108a3565b90506000610cda8783611400565b9150610ce8905082826120a4565b979650505050505050565b7f000000000000000000000000000000000000000000000000000000000000000090565b600080610d25858585611948565b90506000610d338783611400565b9150610ce890508282611ecf565b610d49610b69565b6001600160a01b0316336001600160a01b031614610d795760405162461bcd60e51b81526004016101e5906151c7565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906301ffc9a790610e01907f2a55205a0000000000000000000000000000000000000000000000000000000090600401614630565b60206040518083038186803b158015610e1957600080fd5b505afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190614181565b90508015610e715760405162461bcd60e51b81526004016101e590614f73565b6103de8310610e925760405162461bcd60e51b81526004016101e5906148bf565b6004839055600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556040517f02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b390610efd9086906152de565b60405180910390a2505050565b60008082806020019051810190610f2191906141b9565b90506001600160e01b031981167fade79c7a00000000000000000000000000000000000000000000000000000000141561107e57336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610f9d5760405162461bcd60e51b81526004016101e590614e36565b610fa5613a9e565b83806020019051810190610fb9919061432a565b8051909250600091506001600160a01b031615610fd7578151610fd9565b875b9050816060015151826040015151146110045760405162461bcd60e51b81526004016101e590614979565b60606110258888856020015186608001518688604001518960600151612101565b9050816001600160a01b0316896001600160a01b03167f89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd8a8a8560405161106e939291906145ec565b60405180910390a3505050611259565b6001600160e01b031981167f82da2b7300000000000000000000000000000000000000000000000000000000141561113557336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110f85760405162461bcd60e51b81526004016101e590614725565b611100613ad6565b8380602001905181019061111491906141d5565b90508091505061112f87878784600001518560200151612420565b50611259565b6001600160e01b031981167f5c0bf2590000000000000000000000000000000000000000000000000000000014156111c2573330146111865760405162461bcd60e51b81526004016101e590614bf3565b61118e613af0565b838060200190518101906111a2919061426e565b90508091505061112f87878784600001518560200151866040015161287b565b6001600160e01b031981167fc8c323f900000000000000000000000000000000000000000000000000000000141561124157336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461123c5760405162461bcd60e51b81526004016101e590614db3565b611259565b60405162461bcd60e51b81526004016101e590614adc565b507fbc197c81000000000000000000000000000000000000000000000000000000009695505050505050565b606083818167ffffffffffffffff811180156112a057600080fd5b506040519080825280602002602001820160405280156112ca578160200160208202803683370190505b50905060005b82811015610a985760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662fdd58e308b8b8681811061131557fe5b905060200201356040518363ffffffff1660e01b8152600401611339929190614560565b60206040518083038186803b15801561135157600080fd5b505afa158015611365573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113899190614401565b90506113e089898481811061139a57fe5b905060200201358888858181106113ad57fe5b90506020020135600760008d8d888181106113c457fe5b9050602002013581526020019081526020016000205484610d17565b8383815181106113ec57fe5b6020908102919091010152506001016112d0565b6000807f000000000000000000000000000000000000000000000000000000000000000015611519576040517f2a55205a0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632a55205a9061149090879087906004016152e7565b604080518083038186803b1580156114a757600080fd5b505afa9250505080156114d7575060408051601f3d908101601f191682019092526114d491810190613f43565b60015b61150f576005546004546001600160a01b0390911690611506906103e890611500908790611e59565b90612c7a565b9150915061153e565b909250905061153e565b6005546004546001600160a01b0390911690611506906103e890611500908790611e59565b9250929050565b6060428510156115675760405162461bcd60e51b81526004016101e590614c76565b60008851116115885760405162461bcd60e51b81526004016101e590614fd0565b6115b47f0000000000000000000000000000000000000000000000000000000000000000333089612ce4565b60006001600160a01b038516156115cb57846115cd565b335b84518451919250889181146115f45760405162461bcd60e51b81526004016101e590614979565b60005b818110156116e657600086828151811061160d57fe5b602002602001015111156116de5761164186828151811061162a57fe5b6020026020010151846120a490919063ffffffff16565b92506116a186828151811061165257fe5b6020026020010151600860008a858151811061166a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054611ecf90919063ffffffff16565b600860008984815181106116b157fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6001016115f7565b5060606116f68c8c858c88612e67565b9050836001600160a01b0316336001600160a01b03167fd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a308e8e8560405161173f939291906145ec565b60405180910390a39b9a5050505050505050505050565b6005546001600160a01b031690565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6040805160018082528183019092526000916060919060208083019080368337505060408051600180825281830190925292935060609291506020808301908036833701905050905085826000815181106117ea57fe5b602002602001018181525050848160008151811061180457fe5b60200260200101818152505061181d8888848488610f0a565b6001600160e01b0319167fbc197c8100000000000000000000000000000000000000000000000000000000146118655760405162461bcd60e51b81526004016101e590614d30565b507ff23a6e6100000000000000000000000000000000000000000000000000000000979650505050505050565b336001600160a01b03861614806118ae57506118ae8533611765565b6118e95760405162461bcd60e51b815260040180806020018281038252602a81526020018061539f602a913960400191505060405180910390fd5b6001600160a01b03841661192e5760405162461bcd60e51b815260040180806020018281038252602b815260200180615374602b913960400191505060405180910390fd5b61193a85858585613172565b61075f858585855a86613253565b600080831180156119595750600082115b6119755760405162461bcd60e51b81526004016101e590614b96565b600061198d6103e86119878688611e59565b90611e59565b905060006119a16103de61198786896120a4565b9050610a9882826133de565b80518251146119ed5760405162461bcd60e51b81526004018080602001828103825260358152602001806153fa6035913960400191505060405180910390fd5b815160005b81811015611b6757611a69838281518110611a0957fe5b602002602001015160016000896001600160a01b03166001600160a01b031681526020019081526020016000206000878581518110611a4457fe5b60200260200101518152602001908152602001600020546120a490919063ffffffff16565b6001600160a01b03871660009081526001602052604081208651909190879085908110611a9257fe5b6020026020010151815260200190815260200160002081905550611b1b838281518110611abb57fe5b602002602001015160016000886001600160a01b03166001600160a01b031681526020019081526020016000206000878581518110611af657fe5b6020026020010151815260200190815260200160002054611ecf90919063ffffffff16565b6001600160a01b03861660009081526001602052604081208651909190879085908110611b4457fe5b6020908102919091018101518252810191909152604001600020556001016119f2565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611bed578181015183820152602001611bd5565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611c2c578181015183820152602001611c14565b5050505090500194505050505060405180910390a45050505050565b611c5a856001600160a01b0316613424565b15611e51576000856001600160a01b031663bc197c8184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015611ceb578181015183820152602001611cd3565b50505050905001848103835286818151815260200191508051906020019060200280838360005b83811015611d2a578181015183820152602001611d12565b50505050905001848103825285818151815260200191508051906020019080838360005b83811015611d66578181015183820152602001611d4e565b50505050905090810190601f168015611d935780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600088803b158015611db857600080fd5b5087f1158015611dcc573d6000803e3d6000fd5b50505050506040513d6020811015611de357600080fd5b505190506001600160e01b031981167fbc197c810000000000000000000000000000000000000000000000000000000014611e4f5760405162461bcd60e51b815260040180806020018281038252603f81526020018061551a603f913960400191505060405180910390fd5b505b505050505050565b600082611e6857506000610458565b82820282848281611e7557fe5b0414611ec8576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b9392505050565b600082820183811015611ec8576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310611fd45780518252601f199092019160209182019101611fb5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612036576040519150601f19603f3d011682016040523d82523d6000602084013e61203b565b606091505b5091509150818015612069575080511580612069575080806020019051602081101561206657600080fd5b50515b61075f5760405162461bcd60e51b815260040180806020018281038252602d815260200180615593602d913960400191505060405180910390fd5b6000828211156120fb576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b60005460609060ff1661215b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191690558751428610156121875760405162461bcd60e51b81526004016101e590614a7f565b60008167ffffffffffffffff811180156121a057600080fd5b506040519080825280602002602001820160405280156121ca578160200160208202803683370190505b50925060606121d88b61345b565b905060005b8381101561232b5760008c82815181106121f357fe5b6020026020010151905060008c838151811061220b57fe5b60200260200101519050600084848151811061222357fe5b602002602001015190506000821161224d5760405162461bcd60e51b81526004016101e590614f16565b600083815260076020526040812054906122718461226b85826120a4565b846108a3565b90506000806122808784611400565b909250905080156122c8576001600160a01b0382166000908152600860205260409020546122ae9082611ecf565b6001600160a01b0383166000908152600860205260409020555b6122dc6122d584836120a4565b8b90611ecf565b99506122e884846120a4565b60008881526007602052604090205561230183826120a4565b8c898151811061230d57fe5b60209081029190910101525050600190950194506121dd9350505050565b5060005b85518110156123b957600086828151811061234657fe5b602002602001015111156123b15761236386828151811061162a57fe5b925061237486828151811061165257fe5b6008600089848151811061238457fe5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055505b60010161232f565b50888210156123da5760405162461bcd60e51b81526004016101e590614645565b6124057f00000000000000000000000000000000000000000000000000000000000000008884611f29565b5050506000805460ff19166001179055979650505050505050565b60005460ff16612477576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055428110156124a15760405162461bcd60e51b81526004016101e590614cd3565b8351600060608267ffffffffffffffff811180156124be57600080fd5b506040519080825280602002602001820160405280156124e8578160200160208202803683370190505b50905060608367ffffffffffffffff8111801561250457600080fd5b5060405190808252806020026020018201604052801561252e578160200160208202803683370190505b509050606061253c8961345b565b905060005b858110156127d55760008a828151811061255757fe5b6020026020010151905060008a838151811061256f57fe5b6020026020010151905060008a848151811061258757fe5b6020026020010151116125ac5760405162461bcd60e51b81526004016101e59061516a565b600081116125cc5760405162461bcd60e51b81526004016101e590614eb9565b600082815260066020526040902054801561272857600083815260076020526040812054865190919087908790811061260157fe5b602002602001015190506000806126336126248588611e5990919063ffffffff16565b61262e85896120a4565b6133de565b91509150818f898151811061264457fe5b6020026020010151101561266a5760405162461bcd60e51b81526004016101e59061502d565b6126748483611ecf565b60008881526007602052604090205561268d8c83611ecf565b9b50836126b086611987846126a35760006126a6565b60015b869060ff166120a4565b816126b757fe5b048b89815181106126c457fe5b602002602001018181525050818a89815181106126dd57fe5b60200260200101818152505061270f8b89815181106126f857fe5b602002602001015186611ecf90919063ffffffff16565b600088815260066020526040902055506127ca92505050565b60008b858151811061273657fe5b60200260200101519050633b9aca008110156127645760405162461bcd60e51b81526004016101e590614862565b600084815260076020526040902081905561277f8982611ecf565b6000858152600660205260409020829055885190995081908990879081106127a357fe5b602002602001018181525050808786815181106127bc57fe5b602002602001018181525050505b505050600101612541565b506127f18a8a856040518060200160405280600081525061370e565b61281d7f00000000000000000000000000000000000000000000000000000000000000008b3087612ce4565b896001600160a01b03167f403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da3168a8a8560405161285a939291906145ec565b60405180910390a250506000805460ff191660011790555050505050505050565b60005460ff166128d2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191690554281116128fb5760405162461bcd60e51b81526004016101e590614805565b8451600060608267ffffffffffffffff8111801561291857600080fd5b50604051908082528060200260200182016040528015612942578160200160208202803683370190505b50905060608367ffffffffffffffff8111801561295e57600080fd5b50604051908082528060200260200182016040528015612988578160200160208202803683370190505b50905060606129968a61345b565b905060005b85811015612b475760008b82815181106129b157fe5b6020026020010151905060008b83815181106129c957fe5b6020026020010151905060008484815181106129e157fe5b6020026020010151905060006006600085815260200190815260200160002054905060008111612a235760405162461bcd60e51b81526004016101e5906147a8565b6000848152600760205260408120549082612a3e8684611e59565b81612a4557fe5b049050600083612a558787611e59565b81612a5c57fe5b0490508f8881518110612a6b57fe5b6020026020010151821015612a925760405162461bcd60e51b81526004016101e5906149fc565b8e8881518110612a9e57fe5b6020026020010151811015612ac55760405162461bcd60e51b81526004016101e590615281565b612acf84876120a4565b600088815260066020526040902055612ae883836120a4565b600088815260076020526040902055612b018c83611ecf565b9b50808b8981518110612b1057fe5b602002602001018181525050818a8981518110612b2957fe5b602090810291909101015250506001909501945061299b9350505050565b50612b53308b8b6138db565b612b7e7f00000000000000000000000000000000000000000000000000000000000000008c86611f29565b6040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632eb2c2d690612be99030908f908f908990600401614508565b600060405180830381600087803b158015612c0357600080fd5b505af1158015612c17573d6000803e3d6000fd5b505050508a6001600160a01b03167f711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd4238b8585604051612c58939291906145ec565b60405180910390a250506000805460ff19166001179055505050505050505050565b6000808211612cd0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d617468236469763a204449564953494f4e5f42595f5a45524f0000604482015290519081900360640190fd5b6000828481612cdb57fe5b04949350505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b60208310612d975780518252601f199092019160209182019101612d78565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612df9576040519150601f19603f3d011682016040523d82523d6000602084013e612dfe565b606091505b5091509150818015612e2c575080511580612e2c5750808060200190516020811015612e2957600080fd5b50515b611e515760405162461bcd60e51b81526004018080602001828103825260318152602001806153c96031913960400191505060405180910390fd5b60005460609060ff16612ec1576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff1916905542831015612eeb5760405162461bcd60e51b81526004016101e590615224565b8551848167ffffffffffffffff81118015612f0557600080fd5b50604051908082528060200260200182016040528015612f2f578160200160208202803683370190505b5092506060612f3d8961345b565b905060005b8381101561308a5760008a8281518110612f5857fe5b6020026020010151905060008a8381518110612f7057fe5b602002602001015190506000848481518110612f8857fe5b6020026020010151905060008211612fb25760405162461bcd60e51b81526004016101e59061491c565b60008381526007602052604081205490612fcd848385611948565b9050600080612fdc8784611400565b90925090508015613024576001600160a01b03821660009081526008602052604090205461300a9082611ecf565b6001600160a01b0383166000908152600860205260409020555b613038816130328c866120a4565b906120a4565b99506130448382611ecf565b8c898151811061305057fe5b60209081029190910101526130658484611ecf565b60009788526007602052604090972096909655505060019094019350612f4292505050565b5081156130bc576130bc7f00000000000000000000000000000000000000000000000000000000000000008684611f29565b6040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632eb2c2d69061312790309089908e908e90600401614508565b600060405180830381600087803b15801561314157600080fd5b505af1158015613155573d6000803e3d6000fd5b505050505050506000805460ff1916600117905595945050505050565b6001600160a01b03841660009081526001602090815260408083208584529091529020546131a090826120a4565b6001600160a01b0380861660009081526001602081815260408084208885528252808420959095559287168252825282812085825290915220546131e49082611ecf565b6001600160a01b038085166000818152600160209081526040808320888452825291829020949094558051868152938401859052805191939288169233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62929181900390910190a450505050565b613265856001600160a01b0316613424565b15611e51576000856001600160a01b031663f23a6e6184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156132f75781810151838201526020016132df565b50505050905090810190601f1680156133245780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600088803b15801561334757600080fd5b5087f115801561335b573d6000803e3d6000fd5b50505050506040513d602081101561337257600080fd5b505190506001600160e01b031981167ff23a6e610000000000000000000000000000000000000000000000000000000014611e4f5760405162461bcd60e51b815260040180806020018281038252603a815260200180615559603a913960400191505060405180910390fd5b6000808284816133ea57fe5b061561340c5761340560018486816133fe57fe5b0490611ecf565b6001613419565b82848161341557fe5b0460005b915091509250929050565b6000813f8015801590611ec857507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470141592915050565b8051606090600181141561355d57604080516001808252818301909252606091602080830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662fdd58e30866000815181106134c757fe5b60200260200101516040518363ffffffff1660e01b81526004016134ec929190614560565b60206040518083038186803b15801561350457600080fd5b505afa158015613518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353c9190614401565b8160008151811061354957fe5b6020908102919091010152915061052c9050565b60608167ffffffffffffffff8111801561357657600080fd5b506040519080825280602002602001820160405280156135a0578160200160208202803683370190505b50905030816000815181106135b157fe5b6001600160a01b039092166020928302919091019091015260015b82811015613649578481815181106135e057fe5b60200260200101518560018303815181106135f757fe5b60200260200101511061361c5760405162461bcd60e51b81526004016101e5906150e7565b3082828151811061362957fe5b6001600160a01b03909216602092830291909101909101526001016135cc565b506040517f4e1273f40000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634e1273f4906136b19084908890600401614579565b60006040518083038186803b1580156136c957600080fd5b505afa1580156136dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613705919081019061407a565b9250505061052c565b815183511461374e5760405162461bcd60e51b81526004018080602001828103825260308152602001806154ea6030913960400191505060405180910390fd5b825160005b818110156137f1576137a584828151811061376a57fe5b602002602001015160016000896001600160a01b03166001600160a01b031681526020019081526020016000206000888581518110611af657fe5b6001600160a01b038716600090815260016020526040812087519091908890859081106137ce57fe5b602090810291909101810151825281019190915260400160002055600101613753565b50846001600160a01b031660006001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015613878578181015183820152602001613860565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156138b757818101518382015260200161389f565b5050505090500194505050505060405180910390a461075f60008686865a87611c48565b81518151811461391c5760405162461bcd60e51b815260040180806020018281038252603081526020018061545f6030913960400191505060405180910390fd5b60005b818110156139bd5761397183828151811061393657fe5b602002602001015160016000886001600160a01b03166001600160a01b031681526020019081526020016000206000878581518110611a4457fe5b6001600160a01b0386166000908152600160205260408120865190919087908590811061399a57fe5b60209081029190910181015182528101919091526040016000205560010161391f565b5060006001600160a01b0316846001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015613a44578181015183820152602001613a2c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015613a83578181015183820152602001613a6b565b5050505090500194505050505060405180910390a450505050565b6040518060a0016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081525090565b604051806040016040528060608152602001600081525090565b60405180606001604052806060815260200160608152602001600081525090565b803561052c81615337565b805161052c81615337565b600082601f830112613b37578081fd5b8135613b4a613b4582615319565b6152f5565b818152915060208083019084810181840286018201871015613b6b57600080fd5b60005b84811015613b93578135613b8181615337565b84529282019290820190600101613b6e565b505050505092915050565b600082601f830112613bae578081fd5b8151613bbc613b4582615319565b818152915060208083019084810181840286018201871015613bdd57600080fd5b60005b84811015613b93578151613bf381615337565b84529282019290820190600101613be0565b60008083601f840112613c16578182fd5b50813567ffffffffffffffff811115613c2d578182fd5b602083019150836020808302850101111561153e57600080fd5b600082601f830112613c57578081fd5b8135613c65613b4582615319565b818152915060208083019084810181840286018201871015613c8657600080fd5b60005b84811015613b9357813584529282019290820190600101613c89565b600082601f830112613cb5578081fd5b8151613cc3613b4582615319565b818152915060208083019084810181840286018201871015613ce457600080fd5b60005b84811015613b9357815184529282019290820190600101613ce7565b600082601f830112613d13578081fd5b813567ffffffffffffffff811115613d2757fe5b613d3a6020601f19601f840116016152f5565b9150808252836020828501011115613d5157600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215613d7b578081fd5b8135611ec881615337565b600060208284031215613d97578081fd5b8151611ec881615337565b60008060408385031215613db4578081fd5b8235613dbf81615337565b91506020830135613dcf81615337565b809150509250929050565b600080600080600060a08688031215613df1578081fd5b8535613dfc81615337565b94506020860135613e0c81615337565b9350604086013567ffffffffffffffff80821115613e28578283fd5b613e3489838a01613c47565b94506060880135915080821115613e49578283fd5b613e5589838a01613c47565b93506080880135915080821115613e6a578283fd5b50613e7788828901613d03565b9150509295509295909350565b600080600080600060a08688031215613e9b578081fd5b8535613ea681615337565b94506020860135613eb681615337565b93506040860135925060608601359150608086013567ffffffffffffffff811115613edf578182fd5b613e7788828901613d03565b60008060408385031215613efd578182fd5b8235613f0881615337565b91506020830135613dcf8161534f565b60008060408385031215613f2a578182fd5b8235613f3581615337565b946020939093013593505050565b60008060408385031215613f55578182fd5b8251613f6081615337565b6020939093015192949293505050565b60008060408385031215613f82578182fd5b823567ffffffffffffffff80821115613f99578384fd5b613fa586838701613b27565b93506020850135915080821115613fba578283fd5b50613fc785828601613c47565b9150509250929050565b60008060208385031215613fe3578182fd5b823567ffffffffffffffff811115613ff9578283fd5b61400585828601613c05565b90969095509350505050565b60008060008060408587031215614026578182fd5b843567ffffffffffffffff8082111561403d578384fd5b61404988838901613c05565b90965094506020870135915080821115614061578384fd5b5061406e87828801613c05565b95989497509550505050565b60006020828403121561408b578081fd5b815167ffffffffffffffff8111156140a1578182fd5b6140ad84828501613ca5565b949350505050565b600080600080600080600060e0888a0312156140cf578485fd5b873567ffffffffffffffff808211156140e6578687fd5b6140f28b838c01613c47565b985060208a0135915080821115614107578687fd5b6141138b838c01613c47565b975060408a0135965060608a0135955061412f60808b01613b11565b945060a08a0135915080821115614144578384fd5b6141508b838c01613b27565b935060c08a0135915080821115614165578283fd5b506141728a828b01613c47565b91505092959891949750929550565b600060208284031215614192578081fd5b8151611ec88161534f565b6000602082840312156141ae578081fd5b8135611ec88161535d565b6000602082840312156141ca578081fd5b8151611ec88161535d565b600080604083850312156141e7578182fd5b82516141f28161535d565b602084015190925067ffffffffffffffff8082111561420f578283fd5b9084019060408287031215614222578283fd5b60405160408101818110838211171561423757fe5b604052825182811115614248578485fd5b61425488828601613ca5565b825250602083015160208201528093505050509250929050565b60008060408385031215614280578182fd5b825161428b8161535d565b602084015190925067ffffffffffffffff808211156142a8578283fd5b90840190606082870312156142bb578283fd5b6040516060810181811083821117156142d057fe5b6040528251828111156142e1578485fd5b6142ed88828601613ca5565b825250602083015182811115614301578485fd5b61430d88828601613ca5565b602083015250604083015160408201528093505050509250929050565b6000806040838503121561433c578182fd5b82516143478161535d565b602084015190925067ffffffffffffffff80821115614364578283fd5b9084019060a08287031215614377578283fd5b60405160a08101818110838211171561438c57fe5b60405261439883613b1c565b8152602083015160208201526040830151828111156143b5578485fd5b6143c188828601613b9e565b6040830152506060830151828111156143d8578485fd5b6143e488828601613ca5565b606083015250608083015160808201528093505050509250929050565b600060208284031215614412578081fd5b5051919050565b6000806040838503121561442b578182fd5b823591506020830135613dcf81615337565b6000806040838503121561444f578182fd5b50508035926020909101359150565b600080600060608486031215614472578081fd5b505081359360208301359350604090920135919050565b6000806000806080858703121561449e578182fd5b5050823594602084013594506040840135936060013592509050565b6000815180845260208085019450808401835b838110156144e9578151875295820195908201906001016144cd565b509495945050505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525060a0604083015261453460a08301856144ba565b828103606084015261454681856144ba565b838103608090940193909352508152602001949350505050565b6001600160a01b03929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b828110156145bb5781516001600160a01b031684529284019290840190600101614596565b505050838103828501526145cf81866144ba565b9695505050505050565b600060208252611ec860208301846144ba565b6000606082526145ff60608301866144ba565b828103602084015261461181866144ba565b905082810360408401526145cf81856144ba565b901515815260200190565b6001600160e01b031991909116815260200190565b60208082526042908201527f4e696674797377617045786368616e67653230235f746f6b656e546f4375727260408201527f656e63793a20494e53554646494349454e545f43555252454e43595f414d4f5560608201527f4e54000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526026908201527f4e696674797377617045786368616e676532303a554e535550504f525445445f60408201527f4d4554484f440000000000000000000000000000000000000000000000000000606082015260800190565b60208082526045908201527f4e696674797377617045786368616e67653230236f6e4552433131353542617460408201527f636852656365697665643a20494e56414c49445f544f4b454e5f5452414e534660608201527f4552524544000000000000000000000000000000000000000000000000000000608082015260a00190565b6020808252603a908201527f4e696674797377617045786368616e67653230235f72656d6f76654c6971756960408201527f646974793a204e554c4c5f544f54414c5f4c4951554944495459000000000000606082015260800190565b60208082526037908201527f4e696674797377617045786368616e67653230235f72656d6f76654c6971756960408201527f646974793a20444541444c494e455f4558434545444544000000000000000000606082015260800190565b6020808252603a908201527f4e696674797377617045786368616e67653230235f6164644c6971756964697460408201527f793a20494e56414c49445f43555252454e43595f414d4f554e54000000000000606082015260800190565b6020808252603b908201527f4e696674797377617045786368616e6765323023736574526f79616c7479496e60408201527f666f3a20524f59414c54595f4645455f49535f544f4f5f484947480000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e67653230235f63757272656e6379546f5460408201527f6f6b656e3a204e554c4c5f544f4b454e535f424f554748540000000000000000606082015260800190565b60208082526044908201527f4e696674797377617045786368616e6765323023627579546f6b656e733a204560408201527f585452415f464545535f4152524159535f4152455f4e4f545f53414d455f4c4560608201527f4e47544800000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526042908201527f4e696674797377617045786368616e67653230235f72656d6f76654c6971756960408201527f646974793a20494e53554646494349454e545f43555252454e43595f414d4f5560608201527f4e54000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526037908201527f4e696674797377617045786368616e67653230235f746f6b656e546f4375727260408201527f656e63793a20444541444c494e455f4558434545444544000000000000000000606082015260800190565b6020808252603a908201527f4e696674797377617045786368616e67653230236f6e4552433131353542617460408201527f636852656365697665643a20494e56414c49445f4d4554484f44000000000000606082015260800190565b60208082526035908201527f44656c6567617465644f776e61626c65236368616e67654f776e61626c65506160408201527f72656e743a20494e56414c49445f414444524553530000000000000000000000606082015260800190565b6020808252602e908201527f4e696674797377617045786368616e676532302367657442757950726963653a60408201527f20454d5054595f52455345525645000000000000000000000000000000000000606082015260800190565b6020808252604c908201527f4e696674797377617045786368616e67653230236f6e4552433131353542617460408201527f636852656365697665643a20494e56414c49445f4e494654595f544f4b454e5360608201527f5f5452414e534645525245440000000000000000000000000000000000000000608082015260a00190565b60208082526030908201527f4e696674797377617045786368616e6765323023627579546f6b656e733a204460408201527f4541444c494e455f455843454544454400000000000000000000000000000000606082015260800190565b60208082526034908201527f4e696674797377617045786368616e67653230235f6164644c6971756964697460408201527f793a20444541444c494e455f4558434545444544000000000000000000000000606082015260800190565b60208082526041908201527f4e696674797377617045786368616e67653230236f6e4552433131353552656360408201527f65697665643a20494e56414c49445f4f4e52454345495645445f4d455353414760608201527f4500000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526044908201527f4e696674797377617045786368616e67653230236f6e4552433131353542617460408201527f636852656365697665643a20494e56414c49445f544f4b454e535f4445504f5360608201527f4954454400000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526046908201527f4e696674797377617045786368616e67653230236f6e4552433131353542617460408201527f636852656365697665643a20494e56414c49445f544f4b454e535f5452414e5360608201527f4645525245440000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526035908201527f4e696674797377617045786368616e67653230235f6164644c6971756964697460408201527f793a204e554c4c5f544f4b454e535f414d4f554e540000000000000000000000606082015260800190565b60208082526036908201527f4e696674797377617045786368616e67653230235f746f6b656e546f4375727260408201527f656e63793a204e554c4c5f544f4b454e535f534f4c4400000000000000000000606082015260800190565b6020808252603b908201527f4e696674797377617045786368616e6765323023736574526f79616c7479496e60408201527f666f3a20544f4b454e20535550504f525453204552432d323938310000000000606082015260800190565b6020808252603a908201527f4e696674797377617045786368616e6765323023627579546f6b656e733a204960408201527f4e56414c49445f43555252454e43595f4944535f414d4f554e54000000000000606082015260800190565b6020808252603f908201527f4e696674797377617045786368616e67653230235f6164644c6971756964697460408201527f793a204d41585f43555252454e43595f414d4f554e545f455843454544454400606082015260800190565b6020808252602f908201527f4e696674797377617045786368616e676532302367657453656c6c507269636560408201527f3a20454d5054595f524553455256450000000000000000000000000000000000606082015260800190565b60208082526046908201527f4e696674797377617045786368616e67653230235f676574546f6b656e52657360408201527f65727665733a20554e534f525445445f4f525f4455504c49434154455f544f4b60608201527f454e5f4944530000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526034908201527f4e696674797377617045786368616e67653230235f6164644c6971756964697460408201527f793a204e554c4c5f4d41585f43555252454e4359000000000000000000000000606082015260800190565b6020808252602f908201527f44656c6567617465644f776e61626c65236f6e6c794f776e65723a2053454e4460408201527f45525f49535f4e4f545f4f574e45520000000000000000000000000000000000606082015260800190565b60208082526037908201527f4e696674797377617045786368616e67653230235f63757272656e6379546f5460408201527f6f6b656e3a20444541444c494e455f4558434545444544000000000000000000606082015260800190565b60208082526039908201527f4e696674797377617045786368616e67653230235f72656d6f76654c6971756960408201527f646974793a20494e53554646494349454e545f544f4b454e5300000000000000606082015260800190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561531157fe5b604052919050565b600067ffffffffffffffff82111561532d57fe5b5060209081020190565b6001600160a01b038116811461534c57600080fd5b50565b801515811461534c57600080fd5b6001600160e01b03198116811461534c57600080fdfe4552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f524543495049454e544552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f4f50455241544f525472616e7366657248656c7065723a3a7472616e7366657246726f6d3a207472616e7366657246726f6d206661696c656445524331313535235f7361666542617463685472616e7366657246726f6d3a20494e56414c49445f4152524159535f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f524543495049454e54455243313135354d696e744275726e2362617463684275726e3a20494e56414c49445f4152524159535f4c454e475448455243313135352362616c616e63654f6642617463683a20494e56414c49445f41525241595f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f4f50455241544f52455243313135354d696e744275726e2362617463684d696e743a20494e56414c49445f4152524159535f4c454e47544845524331313535235f63616c6c6f6e45524331313535426174636852656365697665643a20494e56414c49445f4f4e5f524543454956455f4d45535341474545524331313535235f63616c6c6f6e4552433131353552656365697665643a20494e56414c49445f4f4e5f524543454956455f4d4553534147455472616e7366657248656c7065723a3a736166655472616e736665723a207472616e73666572206661696c6564a2646970667358221220ba018a7e4168c001561fc6ffac131df935ada6767baab149bcc177150d97788b64736f6c63430007040033",
}

NiftyswapExchange20MetaData contains all meta data concerning the NiftyswapExchange20 contract.

View Source
var NiftyswapExchangeABI = NiftyswapExchangeMetaData.ABI

NiftyswapExchangeABI is the input ABI used to generate the binding from. Deprecated: Use NiftyswapExchangeMetaData.ABI instead.

View Source
var NiftyswapExchangeBin = NiftyswapExchangeMetaData.Bin

NiftyswapExchangeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NiftyswapExchangeMetaData.Bin instead.

View Source
var NiftyswapExchangeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currencyAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_currencyID\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensSoldAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyBoughtAmounts\",\"type\":\"uint256[]\"}],\"name\":\"CurrencyPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokenAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencyAmounts\",\"type\":\"uint256[]\"}],\"name\":\"LiquidityRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtIds\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokensBoughtAmounts\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"currencySoldAmounts\",\"type\":\"uint256[]\"}],\"name\":\"TokensPurchase\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetBoughtAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getBuyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrencyInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getCurrencyReserves\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensBought\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_currencyToToken\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_tokensSold\",\"type\":\"uint256[]\"}],\"name\":\"getPrice_tokenToCurrency\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_assetSoldAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetSoldReserve\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_assetBoughtReserve\",\"type\":\"uint256\"}],\"name\":\"getSellPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"}],\"name\":\"getTotalSupply\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isOperator\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b50604051620049ea380380620049ea83398101604081905262000034916200011f565b6000805460ff191660011790556001600160a01b038316158015906200006257506001600160a01b03821615155b6200008a5760405162461bcd60e51b815260040162000081906200015f565b60405180910390fd5b600580546001600160a01b03199081163317909155600380546001600160a01b03868116918416821790925560048054928616929093168217909255600683905514620000d9576000620000dc565b60015b60048054911515600160a01b0260ff60a01b1990921691909117905550620001aa915050565b80516001600160a01b03811681146200011a57600080fd5b919050565b60008060006060848603121562000134578283fd5b6200013f8462000102565b92506200014f6020850162000102565b9150604084015190509250925092565b6020808252602b908201527f4e696674797377617045786368616e676523636f6e7374727563746f723a494e60408201526a159053125117d25394155560aa1b606082015260800190565b61483080620001ba6000396000f3fe608060405234801561001057600080fd5b50600436106101355760003560e01c8063863ed300116100b2578063be57146811610081578063f23a6e6111610066578063f23a6e61146102ac578063f242432a146102bf578063fca16c3b146102d257610135565b8063be57146814610286578063e985e9c51461029957610135565b8063863ed30014610238578063a22cb4651461024b578063a9c2e36c1461025e578063bc197c811461026657610135565b80632bef5e381161010957806346adf5ca116100ee57806346adf5ca146101fc5780634e1273f4146102125780636ee8e1341461022557610135565b80632bef5e38146101d45780632eb2c2d6146101e757610135565b8062fdd58e1461015657806301ffc9a71461017f57806310fe9ae81461019f578063209b96c5146101b4575b60405162461bcd60e51b815260040161014d906140b3565b60405180910390fd5b61016961016436600461332a565b6102e5565b6040516101769190614593565b60405180910390f35b61019261018d3660046134fc565b610310565b6040516101769190613a3b565b6101a76103af565b6040516101769190613854565b6101c76101c2366004613418565b6103be565b60405161017691906139ef565b6101c76101e2366004613418565b61045f565b6101fa6101f53660046131e8565b6104f7565b005b6102046105b4565b604051610176929190613976565b6101c7610220366004613355565b6105c8565b6101696102333660046137ef565b6106e1565b6101c7610246366004613458565b61075b565b6101fa6102593660046132f9565b6108b1565b6101a761091f565b6102796102743660046131e8565b61092e565b6040516101769190613a46565b6101c7610294366004613458565b610dc1565b6101926102a73660046131b0565b610f0c565b6102796102ba366004613292565b610f3a565b6101fa6102cd366004613292565b611039565b6101696102e03660046137ef565b6110ef565b6001600160a01b03821660009081526001602090815260408083208484529091529020545b92915050565b60006001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000148061037357506001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000145b806103a757506001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000145b90505b919050565b6003546001600160a01b031690565b606081818167ffffffffffffffff811180156103d957600080fd5b50604051908082528060200260200182016040528015610403578160200160208202803683370190505b50905060005b82811015610456576008600087878481811061042157fe5b9050602002013581526020019081526020016000205482828151811061044357fe5b6020908102919091010152600101610409565b50949350505050565b606081818167ffffffffffffffff8111801561047a57600080fd5b506040519080825280602002602001820160405280156104a4578160200160208202803683370190505b50905060005b8281101561045657600760008787848181106104c257fe5b905060200201358152602001908152602001600020548282815181106104e457fe5b60209081029190910101526001016104aa565b336001600160a01b038616148061051357506105138533610f0c565b61054e5760405162461bcd60e51b815260040180806020018281038252602f815260200180614723602f913960400191505060405180910390fd5b6001600160a01b0384166105935760405162461bcd60e51b81526004018080602001828103825260308152602001806146976030913960400191505060405180910390fd5b61059f85858585611154565b6105ad858585855a866113ef565b5050505050565b6004546006546001600160a01b0390911691565b6060815183511461060a5760405162461bcd60e51b815260040180806020018281038252602c8152602001806146f7602c913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561062457600080fd5b5060405190808252806020026020018201604052801561064e578160200160208202803683370190505b50905060005b84518110156106d9576001600086838151811061066d57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008583815181106106a357fe5b60200260200101518152602001908152602001600020548282815181106106c657fe5b6020908102919091010152600101610654565b509392505050565b600080831180156106f25750600082115b61070e5760405162461bcd60e51b815260040161014d90614456565b600061071c856103e3611600565b9050600061072a8285611600565b905060006107448361073e886103e8611600565b90611676565b905080828161074f57fe5b04979650505050505050565b606083818167ffffffffffffffff8111801561077657600080fd5b506040519080825280602002602001820160405280156107a0578160200160208202803683370190505b50905060005b828110156108a6576003546000906001600160a01b031662fdd58e308b8b868181106107ce57fe5b905060200201356040518363ffffffff1660e01b81526004016107f2929190613976565b60206040518083038186803b15801561080a57600080fd5b505afa15801561081e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084291906137d7565b905061088687878481811061085357fe5b9050602002013582600860008d8d8881811061086b57fe5b905060200201358152602001908152602001600020546106e1565b83838151811061089257fe5b6020908102919091010152506001016107a6565b509695505050505050565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6005546001600160a01b031690565b600080828060200190518101906109459190613518565b90506001600160e01b031981167fb2d81047000000000000000000000000000000000000000000000000000000001415610ac7576004546001600160a01b031633146109a35760405162461bcd60e51b815260040161014d90614510565b84516001146109c45760405162461bcd60e51b815260040161014d90613c52565b600654856000815181106109d457fe5b6020026020010151146109f95760405162461bcd60e51b815260040161014d90613b72565b610a01612f9a565b83806020019051810190610a1591906135cd565b8051909250600091506001600160a01b031615610a33578151610a35565b875b90506060610a668360200151846040015189600081518110610a5357fe5b60200260200101518660600151866116d0565b9050816001600160a01b0316896001600160a01b03167fd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a308560200151866040015185604051610ab793929190613a02565b60405180910390a3505050610d95565b6001600160e01b031981167fdb08ec97000000000000000000000000000000000000000000000000000000001415610bc1576003546001600160a01b03163314610b235760405162461bcd60e51b815260040161014d90613e96565b610b2b612fcb565b83806020019051810190610b3f9190613756565b8051909250600091506001600160a01b031615610b5d578151610b5f565b875b90506060610b78888885602001518660400151866119f0565b9050816001600160a01b0316896001600160a01b03167f89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd8a8a85604051610ab793929190613a02565b6001600160e01b031981167f82da2b73000000000000000000000000000000000000000000000000000000001415610c5a576003546001600160a01b03163314610c1d5760405162461bcd60e51b815260040161014d90613bcf565b610c25612ff5565b83806020019051810190610c399190613534565b905080915050610c5487878784600001518560200151611c67565b50610d95565b6001600160e01b031981167f5c0bf259000000000000000000000000000000000000000000000000000000001415610ce757333014610cab5760405162461bcd60e51b815260040161014d90613fd3565b610cb361300f565b83806020019051810190610cc7919061369a565b905080915050610c548787878460000151856020015186604001516121d0565b6001600160e01b031981167fc8c323f9000000000000000000000000000000000000000000000000000000001415610d7d576004546001600160a01b03163314610d435760405162461bcd60e51b815260040161014d90613cd5565b60065485600081518110610d5357fe5b602002602001015114610d785760405162461bcd60e51b815260040161014d90613b72565b610d95565b60405162461bcd60e51b815260040161014d906144b3565b507fbc197c81000000000000000000000000000000000000000000000000000000009695505050505050565b606083818167ffffffffffffffff81118015610ddc57600080fd5b50604051908082528060200260200182016040528015610e06578160200160208202803683370190505b50905060005b828110156108a6576003546000906001600160a01b031662fdd58e308b8b86818110610e3457fe5b905060200201356040518363ffffffff1660e01b8152600401610e58929190613976565b60206040518083038186803b158015610e7057600080fd5b505afa158015610e84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea891906137d7565b9050610eec878784818110610eb957fe5b90506020020135600860008c8c87818110610ed057fe5b90506020020135815260200190815260200160002054836110ef565b838381518110610ef857fe5b602090810291909101015250600101610e0c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b604080516001808252818301909252600091606091906020808301908036833750506040805160018082528183019092529293506060929150602080830190803683370190505090508582600081518110610f9157fe5b6020026020010181815250508481600081518110610fab57fe5b602002602001018181525050610fc4888884848861092e565b6001600160e01b0319167fbc197c81000000000000000000000000000000000000000000000000000000001461100c5760405162461bcd60e51b815260040161014d90614110565b507ff23a6e6100000000000000000000000000000000000000000000000000000000979650505050505050565b336001600160a01b038616148061105557506110558533610f0c565b6110905760405162461bcd60e51b815260040180806020018281038252602a815260200180614638602a913960400191505060405180910390fd5b6001600160a01b0384166110d55760405162461bcd60e51b815260040180806020018281038252602b81526020018061460d602b913960400191505060405180910390fd5b6110e185858585612647565b6105ad858585855a86612728565b600080831180156111005750600082115b61111c5760405162461bcd60e51b815260040161014d906143f9565b60006111346103e861112e8688611600565b90611600565b905060006111486103e361112e86896128b3565b90506108a68282612910565b80518251146111945760405162461bcd60e51b81526004018080602001828103825260358152602001806146626035913960400191505060405180910390fd5b815160005b8181101561130e576112108382815181106111b057fe5b602002602001015160016000896001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106111eb57fe5b60200260200101518152602001908152602001600020546128b390919063ffffffff16565b6001600160a01b0387166000908152600160205260408120865190919087908590811061123957fe5b60200260200101518152602001908152602001600020819055506112c283828151811061126257fe5b602002602001015160016000886001600160a01b03166001600160a01b03168152602001908152602001600020600087858151811061129d57fe5b602002602001015181526020019081526020016000205461167690919063ffffffff16565b6001600160a01b038616600090815260016020526040812086519091908790859081106112eb57fe5b602090810291909101810151825281019190915260400160002055600101611199565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561139457818101518382015260200161137c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156113d35781810151838201526020016113bb565b5050505090500194505050505060405180910390a45050505050565b611401856001600160a01b0316612957565b156115f8576000856001600160a01b031663bc197c8184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561149257818101518382015260200161147a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156114d15781810151838201526020016114b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561150d5781810151838201526020016114f5565b50505050905090810190601f16801561153a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600088803b15801561155f57600080fd5b5087f1158015611573573d6000803e3d6000fd5b50505050506040513d602081101561158a57600080fd5b505190506001600160e01b031981167fbc197c8100000000000000000000000000000000000000000000000000000000146115f65760405162461bcd60e51b815260040180806020018281038252603f815260200180614782603f913960400191505060405180910390fd5b505b505050505050565b60008261160f5750600061030a565b8282028284828161161c57fe5b041461166f576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b9392505050565b60008282018381101561166f576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b60005460609060ff1661172a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055428310156117545760405162461bcd60e51b815260040161014d90613b15565b8551848167ffffffffffffffff8111801561176e57600080fd5b50604051908082528060200260200182016040528015611798578160200160208202803683370190505b50925060608267ffffffffffffffff811180156117b457600080fd5b506040519080825280602002602001820160405280156117de578160200160208202803683370190505b5090506117ea8961298e565b905060005b838110156118cd5760008a828151811061180557fe5b6020026020010151905060008a838151811061181d57fe5b60200260200101519050600084848151811061183557fe5b602002602001015190506000821161185f5760405162461bcd60e51b815260040161014d906141cb565b6000838152600860205260408120549061187a8483856110ef565b905061188688826128b3565b9750808a878151811061189557fe5b60209081029190910101526118aa8282611676565b600095865260086020526040909520949094555050600190920191506117ef9050565b50811561195657600480546006546040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169263f242432a926119239230928b9289910161393e565b600060405180830381600087803b15801561193d57600080fd5b505af1158015611951573d6000803e3d6000fd5b505050505b6003546040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690632eb2c2d6906119a590309089908e908e90600401613868565b600060405180830381600087803b1580156119bf57600080fd5b505af11580156119d3573d6000803e3d6000fd5b505050505050506000805460ff1916600117905595945050505050565b60005460609060ff16611a4a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055855142841015611a765760405162461bcd60e51b815260040161014d90613d58565b60008167ffffffffffffffff81118015611a8f57600080fd5b50604051908082528060200260200182016040528015611ab9578160200160208202803683370190505b50925060608267ffffffffffffffff81118015611ad557600080fd5b50604051908082528060200260200182016040528015611aff578160200160208202803683370190505b509050611b0b8961298e565b905060005b83811015611bf75760008a8281518110611b2657fe5b6020026020010151905060008a8381518110611b3e57fe5b602002602001015190506000848481518110611b5657fe5b6020026020010151905060008211611b805760405162461bcd60e51b815260040161014d9061439c565b60008381526008602052604081205490611ba484611b9e85826128b3565b846106e1565b9050611bb08882611676565b9750611bbc82826128b3565b600086815260086020526040902055895181908b9088908110611bdb57fe5b6020908102919091010152505060019093019250611b10915050565b5086821015611c185760405162461bcd60e51b815260040161014d90613db5565b600480546006546040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169263f242432a926119a59230928b9289910161393e565b60005460ff16611cbe576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff1916905542811015611ce85760405162461bcd60e51b815260040161014d90614228565b8351600060608267ffffffffffffffff81118015611d0557600080fd5b50604051908082528060200260200182016040528015611d2f578160200160208202803683370190505b50905060608367ffffffffffffffff81118015611d4b57600080fd5b50604051908082528060200260200182016040528015611d75578160200160208202803683370190505b50905060608467ffffffffffffffff81118015611d9157600080fd5b50604051908082528060200260200182016040528015611dbb578160200160208202803683370190505b509050611dc78961298e565b905060005b858110156120a55760008a8281518110611de257fe5b6020026020010151905060008a8381518110611dfa57fe5b6020026020010151905060008a8481518110611e1257fe5b602002602001015111611e375760405162461bcd60e51b815260040161014d90613a5b565b60008111611e575760405162461bcd60e51b815260040161014d9061433f565b60045474010000000000000000000000000000000000000000900460ff1615611e9c57600654821415611e9c5760405162461bcd60e51b815260040161014d90614285565b6000828152600760205260409020548015611ff8576000838152600860205260408120548651909190879087908110611ed157fe5b60200260200101519050600080611f03611ef4858861160090919063ffffffff16565b611efe85896128b3565b612910565b91509150818f8981518110611f1457fe5b60200260200101511015611f3a5760405162461bcd60e51b815260040161014d90613f76565b611f448483611676565b600088815260086020526040902055611f5d8c83611676565b9b5083611f808661112e84611f73576000611f76565b60015b869060ff166128b3565b81611f8757fe5b048b8981518110611f9457fe5b602002602001018181525050818a8981518110611fad57fe5b602002602001018181525050611fdf8b8981518110611fc857fe5b60200260200101518661167690919063ffffffff16565b6000888152600760205260409020555061209a92505050565b60008b858151811061200657fe5b60200260200101519050633b9aca008110156120345760405162461bcd60e51b815260040161014d90613f19565b600084815260086020526040902081905561204f8982611676565b60008581526007602052604090208290558851909950819089908790811061207357fe5b6020026020010181815250508087868151811061208c57fe5b602002602001018181525050505b505050600101611dcc565b506120c18a8a8560405180602001604052806000815250612c0a565b6004546006546040516001600160a01b039092169163f242432a918d913091908990612111907fc8c323f90000000000000000000000000000000000000000000000000000000090602001613a46565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016121409594939291906138c0565b600060405180830381600087803b15801561215a57600080fd5b505af115801561216e573d6000803e3d6000fd5b50505050896001600160a01b03167f403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da3168a8a856040516121af93929190613a02565b60405180910390a250506000805460ff191660011790555050505050505050565b60005460ff16612227576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191690554281116122505760405162461bcd60e51b815260040161014d90614056565b8451600060608267ffffffffffffffff8111801561226d57600080fd5b50604051908082528060200260200182016040528015612297578160200160208202803683370190505b50905060608367ffffffffffffffff811180156122b357600080fd5b506040519080825280602002602001820160405280156122dd578160200160208202803683370190505b50905060608467ffffffffffffffff811180156122f957600080fd5b50604051908082528060200260200182016040528015612323578160200160208202803683370190505b50905061232f8a61298e565b905060005b858110156124e05760008b828151811061234a57fe5b6020026020010151905060008b838151811061236257fe5b60200260200101519050600084848151811061237a57fe5b60200260200101519050600060076000858152602001908152602001600020549050600081116123bc5760405162461bcd60e51b815260040161014d90613ab8565b60008481526008602052604081205490826123d78684611600565b816123de57fe5b0490506000836123ee8787611600565b816123f557fe5b0490508f888151811061240457fe5b602002602001015182101561242b5760405162461bcd60e51b815260040161014d9061416d565b8e888151811061243757fe5b602002602001015181101561245e5760405162461bcd60e51b815260040161014d906142e2565b61246884876128b3565b60008881526007602052604090205561248183836128b3565b60008881526008602052604090205561249a8c83611676565b9b50808b89815181106124a957fe5b602002602001018181525050818a89815181106124c257fe5b60209081029190910101525050600190950194506123349350505050565b506124ec308b8b612dd7565b600460009054906101000a90046001600160a01b03166001600160a01b031663f242432a308d600654886040518563ffffffff1660e01b8152600401612535949392919061393e565b600060405180830381600087803b15801561254f57600080fd5b505af1158015612563573d6000803e3d6000fd5b50506003546040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b039091169250632eb2c2d691506125b69030908f908f908990600401613868565b600060405180830381600087803b1580156125d057600080fd5b505af11580156125e4573d6000803e3d6000fd5b505050508a6001600160a01b03167f711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd4238b858560405161262593929190613a02565b60405180910390a250506000805460ff19166001179055505050505050505050565b6001600160a01b038416600090815260016020908152604080832085845290915290205461267590826128b3565b6001600160a01b0380861660009081526001602081815260408084208885528252808420959095559287168252825282812085825290915220546126b99082611676565b6001600160a01b038085166000818152600160209081526040808320888452825291829020949094558051868152938401859052805191939288169233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62929181900390910190a450505050565b61273a856001600160a01b0316612957565b156115f8576000856001600160a01b031663f23a6e6184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156127cc5781810151838201526020016127b4565b50505050905090810190601f1680156127f95780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600088803b15801561281c57600080fd5b5087f1158015612830573d6000803e3d6000fd5b50505050506040513d602081101561284757600080fd5b505190506001600160e01b031981167ff23a6e6100000000000000000000000000000000000000000000000000000000146115f65760405162461bcd60e51b815260040180806020018281038252603a8152602001806147c1603a913960400191505060405180910390fd5b60008282111561290a576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b60008082848161291c57fe5b061561293e57612937600184868161293057fe5b0490611676565b600161294b565b82848161294757fe5b0460005b915091505b9250929050565b6000813f801580159061166f57507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470141592915050565b80516060906001811415612a755760408051600180825281830190925260609160208083019080368337505060035486519293506001600160a01b03169162fdd58e9150309087906000906129df57fe5b60200260200101516040518363ffffffff1660e01b8152600401612a04929190613976565b60206040518083038186803b158015612a1c57600080fd5b505afa158015612a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5491906137d7565b81600081518110612a6157fe5b602090810291909101015291506103aa9050565b60608167ffffffffffffffff81118015612a8e57600080fd5b50604051908082528060200260200182016040528015612ab8578160200160208202803683370190505b5090503081600081518110612ac957fe5b6001600160a01b039092166020928302919091019091015260015b82811015612b6157848181518110612af857fe5b6020026020010151856001830381518110612b0f57fe5b602002602001015110612b345760405162461bcd60e51b815260040161014d90613e13565b30828281518110612b4157fe5b6001600160a01b0390921660209283029190910190910152600101612ae4565b506003546040517f4e1273f40000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690634e1273f490612bad908490889060040161398f565b60006040518083038186803b158015612bc557600080fd5b505afa158015612bd9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c0191908101906134c1565b925050506103aa565b8151835114612c4a5760405162461bcd60e51b81526004018080602001828103825260308152602001806147526030913960400191505060405180910390fd5b825160005b81811015612ced57612ca1848281518110612c6657fe5b602002602001015160016000896001600160a01b03166001600160a01b03168152602001908152602001600020600088858151811061129d57fe5b6001600160a01b03871660009081526001602052604081208751909190889085908110612cca57fe5b602090810291909101810151825281019190915260400160002055600101612c4f565b50846001600160a01b031660006001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612d74578181015183820152602001612d5c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612db3578181015183820152602001612d9b565b5050505090500194505050505060405180910390a46105ad60008686865a876113ef565b815181518114612e185760405162461bcd60e51b81526004018080602001828103825260308152602001806146c76030913960400191505060405180910390fd5b60005b81811015612eb957612e6d838281518110612e3257fe5b602002602001015160016000886001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106111eb57fe5b6001600160a01b03861660009081526001602052604081208651909190879085908110612e9657fe5b602090810291909101810151825281019190915260400160002055600101612e1b565b5060006001600160a01b0316846001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612f40578181015183820152602001612f28565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612f7f578181015183820152602001612f67565b5050505090500194505050505060405180910390a450505050565b604051806080016040528060006001600160a01b031681526020016060815260200160608152602001600081525090565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b604051806040016040528060608152602001600081525090565b60405180606001604052806060815260200160608152602001600081525090565b80516103aa816145de565b60008083601f84011261304c578081fd5b50813567ffffffffffffffff811115613063578182fd5b602083019150836020808302850101111561295057600080fd5b600082601f83011261308d578081fd5b81356130a061309b826145c0565b61459c565b8181529150602080830190848101818402860182018710156130c157600080fd5b60005b848110156130e0578135845292820192908201906001016130c4565b505050505092915050565b600082601f8301126130fb578081fd5b815161310961309b826145c0565b81815291506020808301908481018184028601820187101561312a57600080fd5b60005b848110156130e05781518452928201929082019060010161312d565b600082601f830112613159578081fd5b813567ffffffffffffffff81111561316d57fe5b6131806020601f19601f8401160161459c565b915080825283602082850101111561319757600080fd5b8060208401602084013760009082016020015292915050565b600080604083850312156131c2578182fd5b82356131cd816145de565b915060208301356131dd816145de565b809150509250929050565b600080600080600060a086880312156131ff578081fd5b853561320a816145de565b9450602086013561321a816145de565b9350604086013567ffffffffffffffff80821115613236578283fd5b61324289838a0161307d565b94506060880135915080821115613257578283fd5b61326389838a0161307d565b93506080880135915080821115613278578283fd5b5061328588828901613149565b9150509295509295909350565b600080600080600060a086880312156132a9578081fd5b85356132b4816145de565b945060208601356132c4816145de565b93506040860135925060608601359150608086013567ffffffffffffffff8111156132ed578182fd5b61328588828901613149565b6000806040838503121561330b578182fd5b8235613316816145de565b9150602083013580151581146131dd578182fd5b6000806040838503121561333c578182fd5b8235613347816145de565b946020939093013593505050565b60008060408385031215613367578182fd5b823567ffffffffffffffff8082111561337e578384fd5b818501915085601f830112613391578384fd5b813561339f61309b826145c0565b80828252602080830192508086018a8283870289010111156133bf578889fd5b8896505b848710156133ea5780356133d6816145de565b8452600196909601959281019281016133c3565b509096508701359350505080821115613401578283fd5b5061340e8582860161307d565b9150509250929050565b6000806020838503121561342a578182fd5b823567ffffffffffffffff811115613440578283fd5b61344c8582860161303b565b90969095509350505050565b6000806000806040858703121561346d578182fd5b843567ffffffffffffffff80821115613484578384fd5b6134908883890161303b565b909650945060208701359150808211156134a8578384fd5b506134b58782880161303b565b95989497509550505050565b6000602082840312156134d2578081fd5b815167ffffffffffffffff8111156134e8578182fd5b6134f4848285016130eb565b949350505050565b60006020828403121561350d578081fd5b813561166f816145f6565b600060208284031215613529578081fd5b815161166f816145f6565b60008060408385031215613546578182fd5b8251613551816145f6565b602084015190925067ffffffffffffffff8082111561356e578283fd5b9084019060408287031215613581578283fd5b60405160408101818110838211171561359657fe5b6040528251828111156135a7578485fd5b6135b3888286016130eb565b825250602083015160208201528093505050509250929050565b600080604083850312156135df578182fd5b82516135ea816145f6565b602084015190925067ffffffffffffffff80821115613607578283fd5b908401906080828703121561361a578283fd5b60405160808101818110838211171561362f57fe5b60405261363b83613030565b815260208301518281111561364e578485fd5b61365a888286016130eb565b602083015250604083015182811115613671578485fd5b61367d888286016130eb565b604083015250606083015160608201528093505050509250929050565b600080604083850312156136ac578182fd5b82516136b7816145f6565b602084015190925067ffffffffffffffff808211156136d4578283fd5b90840190606082870312156136e7578283fd5b6040516060810181811083821117156136fc57fe5b60405282518281111561370d578485fd5b613719888286016130eb565b82525060208301518281111561372d578485fd5b613739888286016130eb565b602083015250604083015160408201528093505050509250929050565b6000808284036080811215613769578283fd5b8351613774816145f6565b92506060601f1982011215613787578182fd5b506040516060810181811067ffffffffffffffff821117156137a557fe5b60405260208401516137b6816145de565b81526040848101516020830152606090940151938101939093525092909150565b6000602082840312156137e8578081fd5b5051919050565b600080600060608486031215613803578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156138495781518752958201959082019060010161382d565b509495945050505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525060a0604083015261389460a083018561381a565b82810360608401526138a6818561381a565b838103608090940193909352508152602001949350505050565b60006001600160a01b03808816835260208188168185015286604085015285606085015260a06080850152845191508160a0850152825b828110156139135785810182015185820160c0015281016138f7565b82811115613924578360c084870101525b5050601f01601f19169190910160c0019695505050505050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b03929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b828110156139d15781516001600160a01b0316845292840192908401906001016139ac565b505050838103828501526139e5818661381a565b9695505050505050565b60006020825261166f602083018461381a565b600060608252613a15606083018661381a565b8281036020840152613a27818661381a565b905082810360408401526139e5818561381a565b901515815260200190565b6001600160e01b031991909116815260200190565b60208082526032908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204e554c4c5f4d41585f43555252454e43590000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a204e554c4c5f544f54414c5f4c49515549444954590000000000000000606082015260800190565b60208082526035908201527f4e696674797377617045786368616e6765235f63757272656e6379546f546f6b60408201527f656e3a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b6020808252603d908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f4944000000606082015260800190565b60208082526043908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e5f5452414e5346455260608201527f5245440000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526045908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f4944535f4160608201527f4d4f554e54000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526042908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e535f4445504f53495460608201527f4544000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526035908201527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e60408201527f63793a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b602080825260409082018190527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e908201527f63793a20494e53554646494349454e545f43555252454e43595f414d4f554e54606082015260800190565b60208082526044908201527f4e696674797377617045786368616e6765235f676574546f6b656e526573657260408201527f7665733a20554e534f525445445f4f525f4455504c49434154455f544f4b454e60608201527f5f49445300000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526044908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e535f5452414e53464560608201527f5252454400000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526038908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f20494e56414c49445f43555252454e43595f414d4f554e540000000000000000606082015260800190565b6020808252603d908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204d41585f43555252454e43595f414d4f554e545f4558434545444544000000606082015260800190565b6020808252604a908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f4e494654595f544f4b454e535f5460608201527f52414e5346455252454400000000000000000000000000000000000000000000608082015260a00190565b60208082526035908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b60208082526024908201527f4e696674797377617045786368616e67653a554e535550504f525445445f4d4560408201527f54484f4400000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603f908201527f4e696674797377617045786368616e6765236f6e45524331313535526563656960408201527f7665643a20494e56414c49445f4f4e52454345495645445f4d45535341474500606082015260800190565b602080825260409082018190527f4e696674797377617045786368616e6765235f72656d6f76654c697175696469908201527f74793a20494e53554646494349454e545f43555252454e43595f414d4f554e54606082015260800190565b60208082526036908201527f4e696674797377617045786368616e6765235f63757272656e6379546f546f6b60408201527f656e3a204e554c4c5f544f4b454e535f424f5547485400000000000000000000606082015260800190565b60208082526032908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f20444541444c494e455f45584345454445440000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f2043555252454e43595f504f4f4c5f464f5242494444454e0000000000000000606082015260800190565b60208082526037908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a20494e53554646494349454e545f544f4b454e53000000000000000000606082015260800190565b60208082526033908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204e554c4c5f544f4b454e535f414d4f554e5400000000000000000000000000606082015260800190565b60208082526034908201527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e60408201527f63793a204e554c4c5f544f4b454e535f534f4c44000000000000000000000000606082015260800190565b6020808252602c908201527f4e696674797377617045786368616e67652367657442757950726963653a204560408201527f4d5054595f524553455256450000000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f4e696674797377617045786368616e67652367657453656c6c50726963653a2060408201527f454d5054595f5245534552564500000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f4d4554484f440000000000000000606082015260800190565b60208082526046908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f5452414e5360608201527f4645525245440000000000000000000000000000000000000000000000000000608082015260a00190565b90815260200190565b60405181810167ffffffffffffffff811182821017156145b857fe5b604052919050565b600067ffffffffffffffff8211156145d457fe5b5060209081020190565b6001600160a01b03811681146145f357600080fd5b50565b6001600160e01b0319811681146145f357600080fdfe4552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f524543495049454e544552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f7361666542617463685472616e7366657246726f6d3a20494e56414c49445f4152524159535f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f524543495049454e54455243313135354d696e744275726e2362617463684275726e3a20494e56414c49445f4152524159535f4c454e475448455243313135352362616c616e63654f6642617463683a20494e56414c49445f41525241595f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f4f50455241544f52455243313135354d696e744275726e2362617463684d696e743a20494e56414c49445f4152524159535f4c454e47544845524331313535235f63616c6c6f6e45524331313535426174636852656365697665643a20494e56414c49445f4f4e5f524543454956455f4d45535341474545524331313535235f63616c6c6f6e4552433131353552656365697665643a20494e56414c49445f4f4e5f524543454956455f4d455353414745a26469706673582212209a8b9866a76dbb2947a1347641e9a47328cea284fdaa7fba1ccae8ae663cdf9364736f6c63430007040033",
}

NiftyswapExchangeMetaData contains all meta data concerning the NiftyswapExchange contract.

View Source
var NiftyswapFactoryABI = NiftyswapFactoryMetaData.ABI

NiftyswapFactoryABI is the input ABI used to generate the binding from. Deprecated: Use NiftyswapFactoryMetaData.ABI instead.

View Source
var NiftyswapFactoryBin = NiftyswapFactoryMetaData.Bin

NiftyswapFactoryBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NiftyswapFactoryMetaData.Bin instead.

View Source
var NiftyswapFactoryMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"currencyID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"}],\"name\":\"NewExchange\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_currencyID\",\"type\":\"uint256\"}],\"name\":\"createExchange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"tokensToExchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50614d33806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80631427474c1461003b5780638359289c146100a7575b600080fd5b61007e6004803603606081101561005157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356100ec565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100ea600480360360608110156100bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610124565b005b6000602081815293815260408082208552928152828120909352825290205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152602081815260408083208685168452825280832085845290915290205416156101b5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526039815260200180614cc56039913960400191505060405180910390fd5b60008383836040516101c6906102cd565b808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051809103906000f080158015610226573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff85811660008181526020818152604080832089861680855290835281842089855283529281902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169587169586179055805194855251949550869491937f23658fa6d505b3e3034045b3937d4239cbdaa345bfb0c4a2d6637ade8b85457c929081900390910190a450505050565b6149ea806102db8339019056fe60806040523480156200001157600080fd5b50604051620049ea380380620049ea83398101604081905262000034916200011f565b6000805460ff191660011790556001600160a01b038316158015906200006257506001600160a01b03821615155b6200008a5760405162461bcd60e51b815260040162000081906200015f565b60405180910390fd5b600580546001600160a01b03199081163317909155600380546001600160a01b03868116918416821790925560048054928616929093168217909255600683905514620000d9576000620000dc565b60015b60048054911515600160a01b0260ff60a01b1990921691909117905550620001aa915050565b80516001600160a01b03811681146200011a57600080fd5b919050565b60008060006060848603121562000134578283fd5b6200013f8462000102565b92506200014f6020850162000102565b9150604084015190509250925092565b6020808252602b908201527f4e696674797377617045786368616e676523636f6e7374727563746f723a494e60408201526a159053125117d25394155560aa1b606082015260800190565b61483080620001ba6000396000f3fe608060405234801561001057600080fd5b50600436106101355760003560e01c8063863ed300116100b2578063be57146811610081578063f23a6e6111610066578063f23a6e61146102ac578063f242432a146102bf578063fca16c3b146102d257610135565b8063be57146814610286578063e985e9c51461029957610135565b8063863ed30014610238578063a22cb4651461024b578063a9c2e36c1461025e578063bc197c811461026657610135565b80632bef5e381161010957806346adf5ca116100ee57806346adf5ca146101fc5780634e1273f4146102125780636ee8e1341461022557610135565b80632bef5e38146101d45780632eb2c2d6146101e757610135565b8062fdd58e1461015657806301ffc9a71461017f57806310fe9ae81461019f578063209b96c5146101b4575b60405162461bcd60e51b815260040161014d906140b3565b60405180910390fd5b61016961016436600461332a565b6102e5565b6040516101769190614593565b60405180910390f35b61019261018d3660046134fc565b610310565b6040516101769190613a3b565b6101a76103af565b6040516101769190613854565b6101c76101c2366004613418565b6103be565b60405161017691906139ef565b6101c76101e2366004613418565b61045f565b6101fa6101f53660046131e8565b6104f7565b005b6102046105b4565b604051610176929190613976565b6101c7610220366004613355565b6105c8565b6101696102333660046137ef565b6106e1565b6101c7610246366004613458565b61075b565b6101fa6102593660046132f9565b6108b1565b6101a761091f565b6102796102743660046131e8565b61092e565b6040516101769190613a46565b6101c7610294366004613458565b610dc1565b6101926102a73660046131b0565b610f0c565b6102796102ba366004613292565b610f3a565b6101fa6102cd366004613292565b611039565b6101696102e03660046137ef565b6110ef565b6001600160a01b03821660009081526001602090815260408083208484529091529020545b92915050565b60006001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000148061037357506001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000145b806103a757506001600160e01b031982167f4e2312e000000000000000000000000000000000000000000000000000000000145b90505b919050565b6003546001600160a01b031690565b606081818167ffffffffffffffff811180156103d957600080fd5b50604051908082528060200260200182016040528015610403578160200160208202803683370190505b50905060005b82811015610456576008600087878481811061042157fe5b9050602002013581526020019081526020016000205482828151811061044357fe5b6020908102919091010152600101610409565b50949350505050565b606081818167ffffffffffffffff8111801561047a57600080fd5b506040519080825280602002602001820160405280156104a4578160200160208202803683370190505b50905060005b8281101561045657600760008787848181106104c257fe5b905060200201358152602001908152602001600020548282815181106104e457fe5b60209081029190910101526001016104aa565b336001600160a01b038616148061051357506105138533610f0c565b61054e5760405162461bcd60e51b815260040180806020018281038252602f815260200180614723602f913960400191505060405180910390fd5b6001600160a01b0384166105935760405162461bcd60e51b81526004018080602001828103825260308152602001806146976030913960400191505060405180910390fd5b61059f85858585611154565b6105ad858585855a866113ef565b5050505050565b6004546006546001600160a01b0390911691565b6060815183511461060a5760405162461bcd60e51b815260040180806020018281038252602c8152602001806146f7602c913960400191505060405180910390fd5b6060835167ffffffffffffffff8111801561062457600080fd5b5060405190808252806020026020018201604052801561064e578160200160208202803683370190505b50905060005b84518110156106d9576001600086838151811061066d57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008583815181106106a357fe5b60200260200101518152602001908152602001600020548282815181106106c657fe5b6020908102919091010152600101610654565b509392505050565b600080831180156106f25750600082115b61070e5760405162461bcd60e51b815260040161014d90614456565b600061071c856103e3611600565b9050600061072a8285611600565b905060006107448361073e886103e8611600565b90611676565b905080828161074f57fe5b04979650505050505050565b606083818167ffffffffffffffff8111801561077657600080fd5b506040519080825280602002602001820160405280156107a0578160200160208202803683370190505b50905060005b828110156108a6576003546000906001600160a01b031662fdd58e308b8b868181106107ce57fe5b905060200201356040518363ffffffff1660e01b81526004016107f2929190613976565b60206040518083038186803b15801561080a57600080fd5b505afa15801561081e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084291906137d7565b905061088687878481811061085357fe5b9050602002013582600860008d8d8881811061086b57fe5b905060200201358152602001908152602001600020546106e1565b83838151811061089257fe5b6020908102919091010152506001016107a6565b509695505050505050565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6005546001600160a01b031690565b600080828060200190518101906109459190613518565b90506001600160e01b031981167fb2d81047000000000000000000000000000000000000000000000000000000001415610ac7576004546001600160a01b031633146109a35760405162461bcd60e51b815260040161014d90614510565b84516001146109c45760405162461bcd60e51b815260040161014d90613c52565b600654856000815181106109d457fe5b6020026020010151146109f95760405162461bcd60e51b815260040161014d90613b72565b610a01612f9a565b83806020019051810190610a1591906135cd565b8051909250600091506001600160a01b031615610a33578151610a35565b875b90506060610a668360200151846040015189600081518110610a5357fe5b60200260200101518660600151866116d0565b9050816001600160a01b0316896001600160a01b03167fd38bc77e62e239476b3e25620d73f29a4a188e808aad79f4a81aaf44871a7a308560200151866040015185604051610ab793929190613a02565b60405180910390a3505050610d95565b6001600160e01b031981167fdb08ec97000000000000000000000000000000000000000000000000000000001415610bc1576003546001600160a01b03163314610b235760405162461bcd60e51b815260040161014d90613e96565b610b2b612fcb565b83806020019051810190610b3f9190613756565b8051909250600091506001600160a01b031615610b5d578151610b5f565b875b90506060610b78888885602001518660400151866119f0565b9050816001600160a01b0316896001600160a01b03167f89e4dbdd48f69e7920342e9ad9691b9a7150f254e6a0af177ccfd2556aab8bcd8a8a85604051610ab793929190613a02565b6001600160e01b031981167f82da2b73000000000000000000000000000000000000000000000000000000001415610c5a576003546001600160a01b03163314610c1d5760405162461bcd60e51b815260040161014d90613bcf565b610c25612ff5565b83806020019051810190610c399190613534565b905080915050610c5487878784600001518560200151611c67565b50610d95565b6001600160e01b031981167f5c0bf259000000000000000000000000000000000000000000000000000000001415610ce757333014610cab5760405162461bcd60e51b815260040161014d90613fd3565b610cb361300f565b83806020019051810190610cc7919061369a565b905080915050610c548787878460000151856020015186604001516121d0565b6001600160e01b031981167fc8c323f9000000000000000000000000000000000000000000000000000000001415610d7d576004546001600160a01b03163314610d435760405162461bcd60e51b815260040161014d90613cd5565b60065485600081518110610d5357fe5b602002602001015114610d785760405162461bcd60e51b815260040161014d90613b72565b610d95565b60405162461bcd60e51b815260040161014d906144b3565b507fbc197c81000000000000000000000000000000000000000000000000000000009695505050505050565b606083818167ffffffffffffffff81118015610ddc57600080fd5b50604051908082528060200260200182016040528015610e06578160200160208202803683370190505b50905060005b828110156108a6576003546000906001600160a01b031662fdd58e308b8b86818110610e3457fe5b905060200201356040518363ffffffff1660e01b8152600401610e58929190613976565b60206040518083038186803b158015610e7057600080fd5b505afa158015610e84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea891906137d7565b9050610eec878784818110610eb957fe5b90506020020135600860008c8c87818110610ed057fe5b90506020020135815260200190815260200160002054836110ef565b838381518110610ef857fe5b602090810291909101015250600101610e0c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b604080516001808252818301909252600091606091906020808301908036833750506040805160018082528183019092529293506060929150602080830190803683370190505090508582600081518110610f9157fe5b6020026020010181815250508481600081518110610fab57fe5b602002602001018181525050610fc4888884848861092e565b6001600160e01b0319167fbc197c81000000000000000000000000000000000000000000000000000000001461100c5760405162461bcd60e51b815260040161014d90614110565b507ff23a6e6100000000000000000000000000000000000000000000000000000000979650505050505050565b336001600160a01b038616148061105557506110558533610f0c565b6110905760405162461bcd60e51b815260040180806020018281038252602a815260200180614638602a913960400191505060405180910390fd5b6001600160a01b0384166110d55760405162461bcd60e51b815260040180806020018281038252602b81526020018061460d602b913960400191505060405180910390fd5b6110e185858585612647565b6105ad858585855a86612728565b600080831180156111005750600082115b61111c5760405162461bcd60e51b815260040161014d906143f9565b60006111346103e861112e8688611600565b90611600565b905060006111486103e361112e86896128b3565b90506108a68282612910565b80518251146111945760405162461bcd60e51b81526004018080602001828103825260358152602001806146626035913960400191505060405180910390fd5b815160005b8181101561130e576112108382815181106111b057fe5b602002602001015160016000896001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106111eb57fe5b60200260200101518152602001908152602001600020546128b390919063ffffffff16565b6001600160a01b0387166000908152600160205260408120865190919087908590811061123957fe5b60200260200101518152602001908152602001600020819055506112c283828151811061126257fe5b602002602001015160016000886001600160a01b03166001600160a01b03168152602001908152602001600020600087858151811061129d57fe5b602002602001015181526020019081526020016000205461167690919063ffffffff16565b6001600160a01b038616600090815260016020526040812086519091908790859081106112eb57fe5b602090810291909101810151825281019190915260400160002055600101611199565b50836001600160a01b0316856001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561139457818101518382015260200161137c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156113d35781810151838201526020016113bb565b5050505090500194505050505060405180910390a45050505050565b611401856001600160a01b0316612957565b156115f8576000856001600160a01b031663bc197c8184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b03168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561149257818101518382015260200161147a565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156114d15781810151838201526020016114b9565b50505050905001848103825285818151815260200191508051906020019080838360005b8381101561150d5781810151838201526020016114f5565b50505050905090810190601f16801561153a5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600088803b15801561155f57600080fd5b5087f1158015611573573d6000803e3d6000fd5b50505050506040513d602081101561158a57600080fd5b505190506001600160e01b031981167fbc197c8100000000000000000000000000000000000000000000000000000000146115f65760405162461bcd60e51b815260040180806020018281038252603f815260200180614782603f913960400191505060405180910390fd5b505b505050505050565b60008261160f5750600061030a565b8282028284828161161c57fe5b041461166f576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236d756c3a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b9392505050565b60008282018381101561166f576040805162461bcd60e51b815260206004820152601660248201527f536166654d617468236164643a204f564552464c4f5700000000000000000000604482015290519081900360640190fd5b60005460609060ff1661172a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055428310156117545760405162461bcd60e51b815260040161014d90613b15565b8551848167ffffffffffffffff8111801561176e57600080fd5b50604051908082528060200260200182016040528015611798578160200160208202803683370190505b50925060608267ffffffffffffffff811180156117b457600080fd5b506040519080825280602002602001820160405280156117de578160200160208202803683370190505b5090506117ea8961298e565b905060005b838110156118cd5760008a828151811061180557fe5b6020026020010151905060008a838151811061181d57fe5b60200260200101519050600084848151811061183557fe5b602002602001015190506000821161185f5760405162461bcd60e51b815260040161014d906141cb565b6000838152600860205260408120549061187a8483856110ef565b905061188688826128b3565b9750808a878151811061189557fe5b60209081029190910101526118aa8282611676565b600095865260086020526040909520949094555050600190920191506117ef9050565b50811561195657600480546006546040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169263f242432a926119239230928b9289910161393e565b600060405180830381600087803b15801561193d57600080fd5b505af1158015611951573d6000803e3d6000fd5b505050505b6003546040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690632eb2c2d6906119a590309089908e908e90600401613868565b600060405180830381600087803b1580156119bf57600080fd5b505af11580156119d3573d6000803e3d6000fd5b505050505050506000805460ff1916600117905595945050505050565b60005460609060ff16611a4a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055855142841015611a765760405162461bcd60e51b815260040161014d90613d58565b60008167ffffffffffffffff81118015611a8f57600080fd5b50604051908082528060200260200182016040528015611ab9578160200160208202803683370190505b50925060608267ffffffffffffffff81118015611ad557600080fd5b50604051908082528060200260200182016040528015611aff578160200160208202803683370190505b509050611b0b8961298e565b905060005b83811015611bf75760008a8281518110611b2657fe5b6020026020010151905060008a8381518110611b3e57fe5b602002602001015190506000848481518110611b5657fe5b6020026020010151905060008211611b805760405162461bcd60e51b815260040161014d9061439c565b60008381526008602052604081205490611ba484611b9e85826128b3565b846106e1565b9050611bb08882611676565b9750611bbc82826128b3565b600086815260086020526040902055895181908b9088908110611bdb57fe5b6020908102919091010152505060019093019250611b10915050565b5086821015611c185760405162461bcd60e51b815260040161014d90613db5565b600480546006546040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b039092169263f242432a926119a59230928b9289910161393e565b60005460ff16611cbe576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff1916905542811015611ce85760405162461bcd60e51b815260040161014d90614228565b8351600060608267ffffffffffffffff81118015611d0557600080fd5b50604051908082528060200260200182016040528015611d2f578160200160208202803683370190505b50905060608367ffffffffffffffff81118015611d4b57600080fd5b50604051908082528060200260200182016040528015611d75578160200160208202803683370190505b50905060608467ffffffffffffffff81118015611d9157600080fd5b50604051908082528060200260200182016040528015611dbb578160200160208202803683370190505b509050611dc78961298e565b905060005b858110156120a55760008a8281518110611de257fe5b6020026020010151905060008a8381518110611dfa57fe5b6020026020010151905060008a8481518110611e1257fe5b602002602001015111611e375760405162461bcd60e51b815260040161014d90613a5b565b60008111611e575760405162461bcd60e51b815260040161014d9061433f565b60045474010000000000000000000000000000000000000000900460ff1615611e9c57600654821415611e9c5760405162461bcd60e51b815260040161014d90614285565b6000828152600760205260409020548015611ff8576000838152600860205260408120548651909190879087908110611ed157fe5b60200260200101519050600080611f03611ef4858861160090919063ffffffff16565b611efe85896128b3565b612910565b91509150818f8981518110611f1457fe5b60200260200101511015611f3a5760405162461bcd60e51b815260040161014d90613f76565b611f448483611676565b600088815260086020526040902055611f5d8c83611676565b9b5083611f808661112e84611f73576000611f76565b60015b869060ff166128b3565b81611f8757fe5b048b8981518110611f9457fe5b602002602001018181525050818a8981518110611fad57fe5b602002602001018181525050611fdf8b8981518110611fc857fe5b60200260200101518661167690919063ffffffff16565b6000888152600760205260409020555061209a92505050565b60008b858151811061200657fe5b60200260200101519050633b9aca008110156120345760405162461bcd60e51b815260040161014d90613f19565b600084815260086020526040902081905561204f8982611676565b60008581526007602052604090208290558851909950819089908790811061207357fe5b6020026020010181815250508087868151811061208c57fe5b602002602001018181525050505b505050600101611dcc565b506120c18a8a8560405180602001604052806000815250612c0a565b6004546006546040516001600160a01b039092169163f242432a918d913091908990612111907fc8c323f90000000000000000000000000000000000000000000000000000000090602001613a46565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016121409594939291906138c0565b600060405180830381600087803b15801561215a57600080fd5b505af115801561216e573d6000803e3d6000fd5b50505050896001600160a01b03167f403f9dc4582dae52d3eeb4a22d37540ffb13c32d964c92ec5ac0d3d5628da3168a8a856040516121af93929190613a02565b60405180910390a250506000805460ff191660011790555050505050505050565b60005460ff16612227576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191690554281116122505760405162461bcd60e51b815260040161014d90614056565b8451600060608267ffffffffffffffff8111801561226d57600080fd5b50604051908082528060200260200182016040528015612297578160200160208202803683370190505b50905060608367ffffffffffffffff811180156122b357600080fd5b506040519080825280602002602001820160405280156122dd578160200160208202803683370190505b50905060608467ffffffffffffffff811180156122f957600080fd5b50604051908082528060200260200182016040528015612323578160200160208202803683370190505b50905061232f8a61298e565b905060005b858110156124e05760008b828151811061234a57fe5b6020026020010151905060008b838151811061236257fe5b60200260200101519050600084848151811061237a57fe5b60200260200101519050600060076000858152602001908152602001600020549050600081116123bc5760405162461bcd60e51b815260040161014d90613ab8565b60008481526008602052604081205490826123d78684611600565b816123de57fe5b0490506000836123ee8787611600565b816123f557fe5b0490508f888151811061240457fe5b602002602001015182101561242b5760405162461bcd60e51b815260040161014d9061416d565b8e888151811061243757fe5b602002602001015181101561245e5760405162461bcd60e51b815260040161014d906142e2565b61246884876128b3565b60008881526007602052604090205561248183836128b3565b60008881526008602052604090205561249a8c83611676565b9b50808b89815181106124a957fe5b602002602001018181525050818a89815181106124c257fe5b60209081029190910101525050600190950194506123349350505050565b506124ec308b8b612dd7565b600460009054906101000a90046001600160a01b03166001600160a01b031663f242432a308d600654886040518563ffffffff1660e01b8152600401612535949392919061393e565b600060405180830381600087803b15801561254f57600080fd5b505af1158015612563573d6000803e3d6000fd5b50506003546040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b039091169250632eb2c2d691506125b69030908f908f908990600401613868565b600060405180830381600087803b1580156125d057600080fd5b505af11580156125e4573d6000803e3d6000fd5b505050508a6001600160a01b03167f711e9bcb94b4cf7bc99c1cb938edc75ac7e85a136838e90abf6ee1f5adebd4238b858560405161262593929190613a02565b60405180910390a250506000805460ff19166001179055505050505050505050565b6001600160a01b038416600090815260016020908152604080832085845290915290205461267590826128b3565b6001600160a01b0380861660009081526001602081815260408084208885528252808420959095559287168252825282812085825290915220546126b99082611676565b6001600160a01b038085166000818152600160209081526040808320888452825291829020949094558051868152938401859052805191939288169233927fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62929181900390910190a450505050565b61273a856001600160a01b0316612957565b156115f8576000856001600160a01b031663f23a6e6184338a8989886040518763ffffffff1660e01b815260040180866001600160a01b03168152602001856001600160a01b0316815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156127cc5781810151838201526020016127b4565b50505050905090810190601f1680156127f95780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600088803b15801561281c57600080fd5b5087f1158015612830573d6000803e3d6000fd5b50505050506040513d602081101561284757600080fd5b505190506001600160e01b031981167ff23a6e6100000000000000000000000000000000000000000000000000000000146115f65760405162461bcd60e51b815260040180806020018281038252603a8152602001806147c1603a913960400191505060405180910390fd5b60008282111561290a576040805162461bcd60e51b815260206004820152601760248201527f536166654d617468237375623a20554e444552464c4f57000000000000000000604482015290519081900360640190fd5b50900390565b60008082848161291c57fe5b061561293e57612937600184868161293057fe5b0490611676565b600161294b565b82848161294757fe5b0460005b915091505b9250929050565b6000813f801580159061166f57507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470141592915050565b80516060906001811415612a755760408051600180825281830190925260609160208083019080368337505060035486519293506001600160a01b03169162fdd58e9150309087906000906129df57fe5b60200260200101516040518363ffffffff1660e01b8152600401612a04929190613976565b60206040518083038186803b158015612a1c57600080fd5b505afa158015612a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5491906137d7565b81600081518110612a6157fe5b602090810291909101015291506103aa9050565b60608167ffffffffffffffff81118015612a8e57600080fd5b50604051908082528060200260200182016040528015612ab8578160200160208202803683370190505b5090503081600081518110612ac957fe5b6001600160a01b039092166020928302919091019091015260015b82811015612b6157848181518110612af857fe5b6020026020010151856001830381518110612b0f57fe5b602002602001015110612b345760405162461bcd60e51b815260040161014d90613e13565b30828281518110612b4157fe5b6001600160a01b0390921660209283029190910190910152600101612ae4565b506003546040517f4e1273f40000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690634e1273f490612bad908490889060040161398f565b60006040518083038186803b158015612bc557600080fd5b505afa158015612bd9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c0191908101906134c1565b925050506103aa565b8151835114612c4a5760405162461bcd60e51b81526004018080602001828103825260308152602001806147526030913960400191505060405180910390fd5b825160005b81811015612ced57612ca1848281518110612c6657fe5b602002602001015160016000896001600160a01b03166001600160a01b03168152602001908152602001600020600088858151811061129d57fe5b6001600160a01b03871660009081526001602052604081208751909190889085908110612cca57fe5b602090810291909101810151825281019190915260400160002055600101612c4f565b50846001600160a01b031660006001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612d74578181015183820152602001612d5c565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612db3578181015183820152602001612d9b565b5050505090500194505050505060405180910390a46105ad60008686865a876113ef565b815181518114612e185760405162461bcd60e51b81526004018080602001828103825260308152602001806146c76030913960400191505060405180910390fd5b60005b81811015612eb957612e6d838281518110612e3257fe5b602002602001015160016000886001600160a01b03166001600160a01b0316815260200190815260200160002060008785815181106111eb57fe5b6001600160a01b03861660009081526001602052604081208651909190879085908110612e9657fe5b602090810291909101810151825281019190915260400160002055600101612e1b565b5060006001600160a01b0316846001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015612f40578181015183820152602001612f28565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015612f7f578181015183820152602001612f67565b5050505090500194505050505060405180910390a450505050565b604051806080016040528060006001600160a01b031681526020016060815260200160608152602001600081525090565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b604051806040016040528060608152602001600081525090565b60405180606001604052806060815260200160608152602001600081525090565b80516103aa816145de565b60008083601f84011261304c578081fd5b50813567ffffffffffffffff811115613063578182fd5b602083019150836020808302850101111561295057600080fd5b600082601f83011261308d578081fd5b81356130a061309b826145c0565b61459c565b8181529150602080830190848101818402860182018710156130c157600080fd5b60005b848110156130e0578135845292820192908201906001016130c4565b505050505092915050565b600082601f8301126130fb578081fd5b815161310961309b826145c0565b81815291506020808301908481018184028601820187101561312a57600080fd5b60005b848110156130e05781518452928201929082019060010161312d565b600082601f830112613159578081fd5b813567ffffffffffffffff81111561316d57fe5b6131806020601f19601f8401160161459c565b915080825283602082850101111561319757600080fd5b8060208401602084013760009082016020015292915050565b600080604083850312156131c2578182fd5b82356131cd816145de565b915060208301356131dd816145de565b809150509250929050565b600080600080600060a086880312156131ff578081fd5b853561320a816145de565b9450602086013561321a816145de565b9350604086013567ffffffffffffffff80821115613236578283fd5b61324289838a0161307d565b94506060880135915080821115613257578283fd5b61326389838a0161307d565b93506080880135915080821115613278578283fd5b5061328588828901613149565b9150509295509295909350565b600080600080600060a086880312156132a9578081fd5b85356132b4816145de565b945060208601356132c4816145de565b93506040860135925060608601359150608086013567ffffffffffffffff8111156132ed578182fd5b61328588828901613149565b6000806040838503121561330b578182fd5b8235613316816145de565b9150602083013580151581146131dd578182fd5b6000806040838503121561333c578182fd5b8235613347816145de565b946020939093013593505050565b60008060408385031215613367578182fd5b823567ffffffffffffffff8082111561337e578384fd5b818501915085601f830112613391578384fd5b813561339f61309b826145c0565b80828252602080830192508086018a8283870289010111156133bf578889fd5b8896505b848710156133ea5780356133d6816145de565b8452600196909601959281019281016133c3565b509096508701359350505080821115613401578283fd5b5061340e8582860161307d565b9150509250929050565b6000806020838503121561342a578182fd5b823567ffffffffffffffff811115613440578283fd5b61344c8582860161303b565b90969095509350505050565b6000806000806040858703121561346d578182fd5b843567ffffffffffffffff80821115613484578384fd5b6134908883890161303b565b909650945060208701359150808211156134a8578384fd5b506134b58782880161303b565b95989497509550505050565b6000602082840312156134d2578081fd5b815167ffffffffffffffff8111156134e8578182fd5b6134f4848285016130eb565b949350505050565b60006020828403121561350d578081fd5b813561166f816145f6565b600060208284031215613529578081fd5b815161166f816145f6565b60008060408385031215613546578182fd5b8251613551816145f6565b602084015190925067ffffffffffffffff8082111561356e578283fd5b9084019060408287031215613581578283fd5b60405160408101818110838211171561359657fe5b6040528251828111156135a7578485fd5b6135b3888286016130eb565b825250602083015160208201528093505050509250929050565b600080604083850312156135df578182fd5b82516135ea816145f6565b602084015190925067ffffffffffffffff80821115613607578283fd5b908401906080828703121561361a578283fd5b60405160808101818110838211171561362f57fe5b60405261363b83613030565b815260208301518281111561364e578485fd5b61365a888286016130eb565b602083015250604083015182811115613671578485fd5b61367d888286016130eb565b604083015250606083015160608201528093505050509250929050565b600080604083850312156136ac578182fd5b82516136b7816145f6565b602084015190925067ffffffffffffffff808211156136d4578283fd5b90840190606082870312156136e7578283fd5b6040516060810181811083821117156136fc57fe5b60405282518281111561370d578485fd5b613719888286016130eb565b82525060208301518281111561372d578485fd5b613739888286016130eb565b602083015250604083015160408201528093505050509250929050565b6000808284036080811215613769578283fd5b8351613774816145f6565b92506060601f1982011215613787578182fd5b506040516060810181811067ffffffffffffffff821117156137a557fe5b60405260208401516137b6816145de565b81526040848101516020830152606090940151938101939093525092909150565b6000602082840312156137e8578081fd5b5051919050565b600080600060608486031215613803578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156138495781518752958201959082019060010161382d565b509495945050505050565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525060a0604083015261389460a083018561381a565b82810360608401526138a6818561381a565b838103608090940193909352508152602001949350505050565b60006001600160a01b03808816835260208188168185015286604085015285606085015260a06080850152845191508160a0850152825b828110156139135785810182015185820160c0015281016138f7565b82811115613924578360c084870101525b5050601f01601f19169190910160c0019695505050505050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b03929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b828110156139d15781516001600160a01b0316845292840192908401906001016139ac565b505050838103828501526139e5818661381a565b9695505050505050565b60006020825261166f602083018461381a565b600060608252613a15606083018661381a565b8281036020840152613a27818661381a565b905082810360408401526139e5818561381a565b901515815260200190565b6001600160e01b031991909116815260200190565b60208082526032908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204e554c4c5f4d41585f43555252454e43590000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a204e554c4c5f544f54414c5f4c49515549444954590000000000000000606082015260800190565b60208082526035908201527f4e696674797377617045786368616e6765235f63757272656e6379546f546f6b60408201527f656e3a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b6020808252603d908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f4944000000606082015260800190565b60208082526043908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e5f5452414e5346455260608201527f5245440000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526045908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f4944535f4160608201527f4d4f554e54000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526042908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e535f4445504f53495460608201527f4544000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526035908201527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e60408201527f63793a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b602080825260409082018190527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e908201527f63793a20494e53554646494349454e545f43555252454e43595f414d4f554e54606082015260800190565b60208082526044908201527f4e696674797377617045786368616e6765235f676574546f6b656e526573657260408201527f7665733a20554e534f525445445f4f525f4455504c49434154455f544f4b454e60608201527f5f49445300000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526044908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f544f4b454e535f5452414e53464560608201527f5252454400000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526038908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f20494e56414c49445f43555252454e43595f414d4f554e540000000000000000606082015260800190565b6020808252603d908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204d41585f43555252454e43595f414d4f554e545f4558434545444544000000606082015260800190565b6020808252604a908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f4e494654595f544f4b454e535f5460608201527f52414e5346455252454400000000000000000000000000000000000000000000608082015260a00190565b60208082526035908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a20444541444c494e455f45584345454445440000000000000000000000606082015260800190565b60208082526024908201527f4e696674797377617045786368616e67653a554e535550504f525445445f4d4560408201527f54484f4400000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603f908201527f4e696674797377617045786368616e6765236f6e45524331313535526563656960408201527f7665643a20494e56414c49445f4f4e52454345495645445f4d45535341474500606082015260800190565b602080825260409082018190527f4e696674797377617045786368616e6765235f72656d6f76654c697175696469908201527f74793a20494e53554646494349454e545f43555252454e43595f414d4f554e54606082015260800190565b60208082526036908201527f4e696674797377617045786368616e6765235f63757272656e6379546f546f6b60408201527f656e3a204e554c4c5f544f4b454e535f424f5547485400000000000000000000606082015260800190565b60208082526032908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f20444541444c494e455f45584345454445440000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f2043555252454e43595f504f4f4c5f464f5242494444454e0000000000000000606082015260800190565b60208082526037908201527f4e696674797377617045786368616e6765235f72656d6f76654c69717569646960408201527f74793a20494e53554646494349454e545f544f4b454e53000000000000000000606082015260800190565b60208082526033908201527f4e696674797377617045786368616e6765235f6164644c69717569646974793a60408201527f204e554c4c5f544f4b454e535f414d4f554e5400000000000000000000000000606082015260800190565b60208082526034908201527f4e696674797377617045786368616e6765235f746f6b656e546f43757272656e60408201527f63793a204e554c4c5f544f4b454e535f534f4c44000000000000000000000000606082015260800190565b6020808252602c908201527f4e696674797377617045786368616e67652367657442757950726963653a204560408201527f4d5054595f524553455256450000000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f4e696674797377617045786368616e67652367657453656c6c50726963653a2060408201527f454d5054595f5245534552564500000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f4d4554484f440000000000000000606082015260800190565b60208082526046908201527f4e696674797377617045786368616e6765236f6e45524331313535426174636860408201527f52656365697665643a20494e56414c49445f43555252454e43595f5452414e5360608201527f4645525245440000000000000000000000000000000000000000000000000000608082015260a00190565b90815260200190565b60405181810167ffffffffffffffff811182821017156145b857fe5b604052919050565b600067ffffffffffffffff8211156145d457fe5b5060209081020190565b6001600160a01b03811681146145f357600080fd5b50565b6001600160e01b0319811681146145f357600080fdfe4552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f524543495049454e544552433131353523736166655472616e7366657246726f6d3a20494e56414c49445f4f50455241544f5245524331313535235f7361666542617463685472616e7366657246726f6d3a20494e56414c49445f4152524159535f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f524543495049454e54455243313135354d696e744275726e2362617463684275726e3a20494e56414c49445f4152524159535f4c454e475448455243313135352362616c616e63654f6642617463683a20494e56414c49445f41525241595f4c454e47544845524331313535237361666542617463685472616e7366657246726f6d3a20494e56414c49445f4f50455241544f52455243313135354d696e744275726e2362617463684d696e743a20494e56414c49445f4152524159535f4c454e47544845524331313535235f63616c6c6f6e45524331313535426174636852656365697665643a20494e56414c49445f4f4e5f524543454956455f4d45535341474545524331313535235f63616c6c6f6e4552433131353552656365697665643a20494e56414c49445f4f4e5f524543454956455f4d455353414745a26469706673582212209a8b9866a76dbb2947a1347641e9a47328cea284fdaa7fba1ccae8ae663cdf9364736f6c634300070400334e6966747973776170466163746f72792363726561746545786368616e67653a2045584348414e47455f414c52454144595f43524541544544a264697066735822122044722216faf391a7cd9ff8a746f13beb826183c2e73e027103b01d154072158f64736f6c63430007040033",
}

NiftyswapFactoryMetaData contains all meta data concerning the NiftyswapFactory contract.

View Source
var WrapAndNiftyswapABI = WrapAndNiftyswapMetaData.ABI

WrapAndNiftyswapABI is the input ABI used to generate the binding from. Deprecated: Use WrapAndNiftyswapMetaData.ABI instead.

View Source
var WrapAndNiftyswapBin = WrapAndNiftyswapMetaData.Bin

WrapAndNiftyswapBin is the compiled bytecode used for deploying new contracts. Deprecated: Use WrapAndNiftyswapMetaData.Bin instead.

View Source
var WrapAndNiftyswapMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_tokenWrapper\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_exchange\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_erc20\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_erc1155\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"erc1155\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"erc20\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"_ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"_niftyswapOrder\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenWrapper\",\"outputs\":[{\"internalType\":\"contractIERC20Wrapper\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_recipient\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_niftyswapOrder\",\"type\":\"bytes\"}],\"name\":\"wrapAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x6101206040523480156200001257600080fd5b506040516200181f3803806200181f8339810160408190526200003591620001ec565b6001600160a01b038416158015906200005657506001600160a01b03831615155b80156200006b57506001600160a01b03821615155b80156200008057506001600160a01b03811615155b620000a85760405162461bcd60e51b81526004016200009f90620002c2565b60405180910390fd5b6001600160601b0319606085811b821660805284811b821660a05283811b821660c05282901b1660e05260405163095ea7b360e01b81526001600160a01b0383169063095ea7b3906200010490879060001990600401620002a9565b602060405180830381600087803b1580156200011f57600080fd5b505af115801562000134573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015a919062000253565b506040516318fe01c760e21b81526001600160a01b038516906363f8071c906200018990859060040162000295565b60206040518083038186803b158015620001a257600080fd5b505afa158015620001b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001dd91906200027c565b61010052506200031292505050565b6000806000806080858703121562000202578384fd5b84516200020f81620002f9565b60208601519094506200022281620002f9565b60408601519093506200023581620002f9565b60608601519092506200024881620002f9565b939692955090935050565b60006020828403121562000265578081fd5b8151801515811462000275578182fd5b9392505050565b6000602082840312156200028e578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252601c908201527f494e56414c494420434f4e5354525543544f5220415247554d454e5400000000604082015260600190565b6001600160a01b03811681146200030f57600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c61010051611462620003bd600039806103875280610450528061084e5250806105c652806106aa5280610ac052508061010252806101b2528061029b528061052d528061092b52806109b7525080610365528061077f5280610a9c52508061026e5280610336528061042152806105005280610651528061081f52806108fe5280610a785280610aef52506114626000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063c5e3dfd81161005b578063c5e3dfd8146100d5578063d2f7265a146100dd578063d56022d7146100e5578063f23a6e61146100ed5761007d565b8063785e9e8614610082578063a874d5b6146100a0578063bc197c81146100b5575b600080fd5b61008a610100565b60405161009791906110d3565b60405180910390f35b6100b36100ae366004610fca565b610124565b005b6100c86100c3366004610d17565b610639565b6040516100979190611219565b61008a610a76565b61008a610a9a565b61008a610abe565b6100c86100fb366004610dce565b610ae2565b7f000000000000000000000000000000000000000000000000000000000000000081565b61012c610b58565b61013882840184610e6b565b80519092506001600160a01b03161590508061015d575080516001600160a01b031630145b6101825760405162461bcd60e51b8152600401610179906113a9565b60405180910390fd5b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906101eb90339030908a906004016110e7565b602060405180830381600087803b15801561020557600080fd5b505af1158015610219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023d9190610e44565b506040517f8340f5490000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638340f549906102c7907f00000000000000000000000000000000000000000000000000000000000000009030908a906004016110e7565b600060405180830381600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b50506000805460ff1916600117905550506040517ff242432a0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f242432a906103b59030907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000908b908a908a906004016111c7565b600060405180830381600087803b1580156103cf57600080fd5b505af11580156103e3573d6000803e3d6000fd5b50506000805460ff191681556040517efdd58e0000000000000000000000000000000000000000000000000000000081529092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915062fdd58e906104789030907f000000000000000000000000000000000000000000000000000000000000000090600401611200565b60206040518083038186803b15801561049057600080fd5b505afa1580156104a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c89190610fb2565b9050801561058c576040517fd9caed120000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d9caed1290610559907f000000000000000000000000000000000000000000000000000000000000000090899086906004016110e7565b600060405180830381600087803b15801561057357600080fd5b505af1158015610587573d6000803e3d6000fd5b505050505b602082015160408084015190517f2eb2c2d60000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692632eb2c2d6926105ff9230928b92909160040161116f565b600060405180830381600087803b15801561061957600080fd5b505af115801561062d573d6000803e3d6000fd5b50505050505050505050565b6000805460ff16806106735750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b1561069f57507fbc197c8100000000000000000000000000000000000000000000000000000000610a6a565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106e75760405162461bcd60e51b815260040161017990611326565b6106ef610b89565b6106fb83850185610f35565b80519092506001600160a01b031615905080610720575080516001600160a01b031630145b61073c5760405162461bcd60e51b815260040161017990611246565b6000805460ff191660011790556040517f2eb2c2d60000000000000000000000000000000000000000000000000000000081523390632eb2c2d6906107b39030907f0000000000000000000000000000000000000000000000000000000000000000908d908d908d908d908d908d9060040161110b565b600060405180830381600087803b1580156107cd57600080fd5b505af11580156107e1573d6000803e3d6000fd5b50506000805460ff191681556040517efdd58e0000000000000000000000000000000000000000000000000000000081529092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915062fdd58e906108769030907f000000000000000000000000000000000000000000000000000000000000000090600401611200565b60206040518083038186803b15801561088e57600080fd5b505afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190610fb2565b90508015610a44576040517fd9caed120000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d9caed1290610957907f000000000000000000000000000000000000000000000000000000000000000090309086906004016110e7565b600060405180830381600087803b15801561097157600080fd5b505af1158015610985573d6000803e3d6000fd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016925063a9059cbb91506109f0908d908590600401611200565b602060405180830381600087803b158015610a0a57600080fd5b505af1158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190610e44565b505b507fbc197c81000000000000000000000000000000000000000000000000000000009150505b98975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b2c5760405162461bcd60e51b8152600401610179906112c9565b507ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b604051806080016040528060006001600160a01b031681526020016060815260200160608152602001600081525090565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b80356001600160a01b0381168114610bca57600080fd5b919050565b60008083601f840112610be0578182fd5b50813567ffffffffffffffff811115610bf7578182fd5b6020830191508360208083028501011115610c1157600080fd5b9250929050565b600082601f830112610c28578081fd5b813567ffffffffffffffff80821115610c3d57fe5b602080830260405182828201018181108582111715610c5857fe5b604052848152945081850192508582018187018301881015610c7957600080fd5b600091505b84821015610c9c578035845292820192600191909101908201610c7e565b505050505092915050565b80357fffffffff0000000000000000000000000000000000000000000000000000000081168114610bca57600080fd5b60008083601f840112610ce8578182fd5b50813567ffffffffffffffff811115610cff578182fd5b602083019150836020828501011115610c1157600080fd5b60008060008060008060008060a0898b031215610d32578384fd5b610d3b89610bb3565b9750610d4960208a01610bb3565b9650604089013567ffffffffffffffff80821115610d65578586fd5b610d718c838d01610bcf565b909850965060608b0135915080821115610d89578586fd5b610d958c838d01610bcf565b909650945060808b0135915080821115610dad578384fd5b50610dba8b828c01610cd7565b999c989b5096995094979396929594505050565b60008060008060008060a08789031215610de6578182fd5b610def87610bb3565b9550610dfd60208801610bb3565b94506040870135935060608701359250608087013567ffffffffffffffff811115610e26578283fd5b610e3289828a01610cd7565b979a9699509497509295939492505050565b600060208284031215610e55578081fd5b81518015158114610e64578182fd5b9392505050565b60008060408385031215610e7d578182fd5b610e8683610ca7565b9150602083013567ffffffffffffffff80821115610ea2578283fd5b9084019060808287031215610eb5578283fd5b604051608081018181108382111715610eca57fe5b604052610ed683610bb3565b8152602083013582811115610ee9578485fd5b610ef588828601610c18565b602083015250604083013582811115610f0c578485fd5b610f1888828601610c18565b604083015250606083013560608201528093505050509250929050565b6000808284036080811215610f48578283fd5b610f5184610ca7565b92506060601f1982011215610f64578182fd5b506040516060810181811067ffffffffffffffff82111715610f8257fe5b604052610f9160208501610bb3565b81526040840135602082015260608401356040820152809150509250929050565b600060208284031215610fc3578081fd5b5051919050565b60008060008060608587031215610fdf578384fd5b84359350610fef60208601610bb3565b9250604085013567ffffffffffffffff81111561100a578283fd5b61101687828801610cd7565b95989497509550505050565b60008284527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611053578081fd5b6020830280836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b8381101561109e57815187529582019590820190600101611082565b509495945050505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b03808b168352808a1660208401525060a0604083015261113860a08301888a611022565b828103606084015261114b818789611022565b905082810360808401526111608185876110a9565b9b9a5050505050505050505050565b60006001600160a01b03808716835280861660208401525060a0604083015261119b60a083018561106f565b82810360608401526111ad818561106f565b838103608090940193909352508152602001949350505050565b60006001600160a01b03808916835280881660208401525085604083015284606083015260a06080830152610a6a60a0830184866110a9565b6001600160a01b03929092168252602082015260400190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b6020808252604e908201527f57726170416e644e6966747973776170236f6e4552433131353542617463685260408201527f656365697665643a204f5244455220524543495049454e54204d55535420424560608201527f205448495320434f4e5452414354000000000000000000000000000000000000608082015260a00190565b6020808252603c908201527f57726170416e644e6966747973776170236f6e4552433131353552656365697660408201527f65643a20494e56414c49445f455243313135355f524543454956454400000000606082015260800190565b60208082526041908201527f57726170416e644e6966747973776170236f6e4552433131353542617463685260408201527f656365697665643a20494e56414c49445f455243313135355f5245434549564560608201527f4400000000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526043908201527f57726170416e644e69667479737761702377726170416e64537761703a204f5260408201527f44455220524543495049454e54204d555354204245205448495320434f4e545260608201527f4143540000000000000000000000000000000000000000000000000000000000608082015260a0019056fea2646970667358221220ef4c3b3f7ae822cb7fdd18c740da1e395f098d7094f9a22dedd0f200d5b48a1964736f6c63430007040033",
}

WrapAndNiftyswapMetaData contains all meta data concerning the WrapAndNiftyswap contract.

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 INiftyswapExchange20 added in v0.5.5

type INiftyswapExchange20 struct {
	INiftyswapExchange20Caller     // Read-only binding to the contract
	INiftyswapExchange20Transactor // Write-only binding to the contract
	INiftyswapExchange20Filterer   // Log filterer for contract events
}

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

func NewINiftyswapExchange20 added in v0.5.5

func NewINiftyswapExchange20(address common.Address, backend bind.ContractBackend) (*INiftyswapExchange20, error)

NewINiftyswapExchange20 creates a new instance of INiftyswapExchange20, bound to a specific deployed contract.

type INiftyswapExchange20Caller added in v0.5.5

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

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

func NewINiftyswapExchange20Caller added in v0.5.5

func NewINiftyswapExchange20Caller(address common.Address, caller bind.ContractCaller) (*INiftyswapExchange20Caller, error)

NewINiftyswapExchange20Caller creates a new read-only instance of INiftyswapExchange20, bound to a specific deployed contract.

func (*INiftyswapExchange20Caller) GetBuyPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetBuyPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetBuyPriceWithRoyalty(opts *bind.CallOpts, _tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20Caller) GetCurrencyInfo added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetCurrencyInfo(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*INiftyswapExchange20Caller) GetCurrencyReserves added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetFactoryAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetGlobalRoyaltyFee added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetGlobalRoyaltyFee(opts *bind.CallOpts) (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*INiftyswapExchange20Caller) GetGlobalRoyaltyRecipient added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetGlobalRoyaltyRecipient(opts *bind.CallOpts) (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*INiftyswapExchange20Caller) GetPriceCurrencyToToken added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetPriceTokenToCurrency added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetRoyalties(opts *bind.CallOpts, _royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*INiftyswapExchange20Caller) GetSellPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetSellPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) GetSellPriceWithRoyalty(opts *bind.CallOpts, _tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20Caller) GetTokenAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 (*INiftyswapExchange20Caller) GetTotalSupply added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Caller) 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 INiftyswapExchange20CallerRaw added in v0.5.5

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

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

func (*INiftyswapExchange20CallerRaw) Call added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerRaw) 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 INiftyswapExchange20CallerSession added in v0.5.5

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

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

func (*INiftyswapExchange20CallerSession) GetBuyPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 (*INiftyswapExchange20CallerSession) GetBuyPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetBuyPriceWithRoyalty(_tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20CallerSession) GetCurrencyInfo added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetCurrencyInfo() (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*INiftyswapExchange20CallerSession) GetCurrencyReserves added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 (*INiftyswapExchange20CallerSession) GetFactoryAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetFactoryAddress() (common.Address, error)

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

Solidity: function getFactoryAddress() view returns(address)

func (*INiftyswapExchange20CallerSession) GetGlobalRoyaltyFee added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetGlobalRoyaltyFee() (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*INiftyswapExchange20CallerSession) GetGlobalRoyaltyRecipient added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetGlobalRoyaltyRecipient() (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*INiftyswapExchange20CallerSession) GetPriceCurrencyToToken added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 (*INiftyswapExchange20CallerSession) GetPriceTokenToCurrency added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 (*INiftyswapExchange20CallerSession) GetRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetRoyalties(_royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*INiftyswapExchange20CallerSession) GetSellPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 (*INiftyswapExchange20CallerSession) GetSellPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetSellPriceWithRoyalty(_tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20CallerSession) GetTokenAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) GetTokenAddress() (common.Address, error)

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

Solidity: function getTokenAddress() view returns(address)

func (*INiftyswapExchange20CallerSession) GetTotalSupply added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20CallerSession) 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 INiftyswapExchange20CurrencyPurchase added in v0.5.5

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

INiftyswapExchange20CurrencyPurchase represents a CurrencyPurchase event raised by the INiftyswapExchange20 contract.

type INiftyswapExchange20CurrencyPurchaseIterator added in v0.5.5

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

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

func (*INiftyswapExchange20CurrencyPurchaseIterator) Close added in v0.5.5

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

func (*INiftyswapExchange20CurrencyPurchaseIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchange20CurrencyPurchaseIterator) Next added in v0.5.5

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 INiftyswapExchange20Filterer added in v0.5.5

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

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

func NewINiftyswapExchange20Filterer added in v0.5.5

func NewINiftyswapExchange20Filterer(address common.Address, filterer bind.ContractFilterer) (*INiftyswapExchange20Filterer, error)

NewINiftyswapExchange20Filterer creates a new log filterer instance of INiftyswapExchange20, bound to a specific deployed contract.

func (*INiftyswapExchange20Filterer) FilterCurrencyPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) FilterCurrencyPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*INiftyswapExchange20CurrencyPurchaseIterator, 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 (*INiftyswapExchange20Filterer) FilterLiquidityAdded added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) FilterLiquidityAdded(opts *bind.FilterOpts, provider []common.Address) (*INiftyswapExchange20LiquidityAddedIterator, 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 (*INiftyswapExchange20Filterer) FilterLiquidityRemoved added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) FilterLiquidityRemoved(opts *bind.FilterOpts, provider []common.Address) (*INiftyswapExchange20LiquidityRemovedIterator, 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 (*INiftyswapExchange20Filterer) FilterRoyaltyChanged added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) FilterRoyaltyChanged(opts *bind.FilterOpts, royaltyRecipient []common.Address) (*INiftyswapExchange20RoyaltyChangedIterator, error)

FilterRoyaltyChanged is a free log retrieval operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*INiftyswapExchange20Filterer) FilterTokensPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) FilterTokensPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*INiftyswapExchange20TokensPurchaseIterator, 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 (*INiftyswapExchange20Filterer) ParseCurrencyPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) ParseCurrencyPurchase(log types.Log) (*INiftyswapExchange20CurrencyPurchase, 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 (*INiftyswapExchange20Filterer) ParseLiquidityAdded added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) ParseLiquidityAdded(log types.Log) (*INiftyswapExchange20LiquidityAdded, 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 (*INiftyswapExchange20Filterer) ParseLiquidityRemoved added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) ParseLiquidityRemoved(log types.Log) (*INiftyswapExchange20LiquidityRemoved, 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 (*INiftyswapExchange20Filterer) ParseRoyaltyChanged added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) ParseRoyaltyChanged(log types.Log) (*INiftyswapExchange20RoyaltyChanged, error)

ParseRoyaltyChanged is a log parse operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*INiftyswapExchange20Filterer) ParseTokensPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) ParseTokensPurchase(log types.Log) (*INiftyswapExchange20TokensPurchase, 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 (*INiftyswapExchange20Filterer) WatchCurrencyPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) WatchCurrencyPurchase(opts *bind.WatchOpts, sink chan<- *INiftyswapExchange20CurrencyPurchase, 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 (*INiftyswapExchange20Filterer) WatchLiquidityAdded added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) WatchLiquidityAdded(opts *bind.WatchOpts, sink chan<- *INiftyswapExchange20LiquidityAdded, 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 (*INiftyswapExchange20Filterer) WatchLiquidityRemoved added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) WatchLiquidityRemoved(opts *bind.WatchOpts, sink chan<- *INiftyswapExchange20LiquidityRemoved, 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 (*INiftyswapExchange20Filterer) WatchRoyaltyChanged added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) WatchRoyaltyChanged(opts *bind.WatchOpts, sink chan<- *INiftyswapExchange20RoyaltyChanged, royaltyRecipient []common.Address) (event.Subscription, error)

WatchRoyaltyChanged is a free log subscription operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*INiftyswapExchange20Filterer) WatchTokensPurchase added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Filterer) WatchTokensPurchase(opts *bind.WatchOpts, sink chan<- *INiftyswapExchange20TokensPurchase, 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 INiftyswapExchange20LiquidityAdded added in v0.5.5

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

INiftyswapExchange20LiquidityAdded represents a LiquidityAdded event raised by the INiftyswapExchange20 contract.

type INiftyswapExchange20LiquidityAddedIterator added in v0.5.5

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

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

func (*INiftyswapExchange20LiquidityAddedIterator) Close added in v0.5.5

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

func (*INiftyswapExchange20LiquidityAddedIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchange20LiquidityAddedIterator) Next added in v0.5.5

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 INiftyswapExchange20LiquidityRemoved added in v0.5.5

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

INiftyswapExchange20LiquidityRemoved represents a LiquidityRemoved event raised by the INiftyswapExchange20 contract.

type INiftyswapExchange20LiquidityRemovedIterator added in v0.5.5

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

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

func (*INiftyswapExchange20LiquidityRemovedIterator) Close added in v0.5.5

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

func (*INiftyswapExchange20LiquidityRemovedIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchange20LiquidityRemovedIterator) Next added in v0.5.5

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 INiftyswapExchange20Raw added in v0.5.5

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

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

func (*INiftyswapExchange20Raw) Call added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Raw) 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 (*INiftyswapExchange20Raw) Transact added in v0.5.5

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

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

func (*INiftyswapExchange20Raw) Transfer added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Raw) 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 INiftyswapExchange20RoyaltyChanged added in v0.6.8

type INiftyswapExchange20RoyaltyChanged struct {
	RoyaltyRecipient common.Address
	RoyaltyFee       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

INiftyswapExchange20RoyaltyChanged represents a RoyaltyChanged event raised by the INiftyswapExchange20 contract.

type INiftyswapExchange20RoyaltyChangedIterator added in v0.6.8

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

INiftyswapExchange20RoyaltyChangedIterator is returned from FilterRoyaltyChanged and is used to iterate over the raw logs and unpacked data for RoyaltyChanged events raised by the INiftyswapExchange20 contract.

func (*INiftyswapExchange20RoyaltyChangedIterator) Close added in v0.6.8

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

func (*INiftyswapExchange20RoyaltyChangedIterator) Error added in v0.6.8

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchange20RoyaltyChangedIterator) Next added in v0.6.8

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 INiftyswapExchange20Session added in v0.5.5

type INiftyswapExchange20Session struct {
	Contract     *INiftyswapExchange20 // 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
}

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

func (*INiftyswapExchange20Session) BuyTokens added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) BuyTokens(_tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*INiftyswapExchange20Session) GetBuyPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) GetBuyPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetBuyPriceWithRoyalty(_tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20Session) GetCurrencyInfo added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetCurrencyInfo() (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*INiftyswapExchange20Session) GetCurrencyReserves added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) GetFactoryAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetFactoryAddress() (common.Address, error)

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

Solidity: function getFactoryAddress() view returns(address)

func (*INiftyswapExchange20Session) GetGlobalRoyaltyFee added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetGlobalRoyaltyFee() (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*INiftyswapExchange20Session) GetGlobalRoyaltyRecipient added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetGlobalRoyaltyRecipient() (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*INiftyswapExchange20Session) GetPriceCurrencyToToken added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) GetPriceTokenToCurrency added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) GetRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetRoyalties(_royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*INiftyswapExchange20Session) GetSellPrice added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) GetSellPriceWithRoyalty added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetSellPriceWithRoyalty(_tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*INiftyswapExchange20Session) GetTokenAddress added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) GetTokenAddress() (common.Address, error)

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

Solidity: function getTokenAddress() view returns(address)

func (*INiftyswapExchange20Session) GetTotalSupply added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) OnERC1155BatchReceived added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) OnERC1155Received added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Session) 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 (*INiftyswapExchange20Session) SendRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Session) SendRoyalties(_royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

type INiftyswapExchange20TokensPurchase added in v0.5.5

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

INiftyswapExchange20TokensPurchase represents a TokensPurchase event raised by the INiftyswapExchange20 contract.

type INiftyswapExchange20TokensPurchaseIterator added in v0.5.5

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

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

func (*INiftyswapExchange20TokensPurchaseIterator) Close added in v0.5.5

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

func (*INiftyswapExchange20TokensPurchaseIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*INiftyswapExchange20TokensPurchaseIterator) Next added in v0.5.5

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 INiftyswapExchange20Transactor added in v0.5.5

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

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

func NewINiftyswapExchange20Transactor added in v0.5.5

func NewINiftyswapExchange20Transactor(address common.Address, transactor bind.ContractTransactor) (*INiftyswapExchange20Transactor, error)

NewINiftyswapExchange20Transactor creates a new write-only instance of INiftyswapExchange20, bound to a specific deployed contract.

func (*INiftyswapExchange20Transactor) BuyTokens added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Transactor) BuyTokens(opts *bind.TransactOpts, _tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*INiftyswapExchange20Transactor) OnERC1155BatchReceived added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Transactor) 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 (*INiftyswapExchange20Transactor) OnERC1155Received added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20Transactor) 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 (*INiftyswapExchange20Transactor) SendRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20Transactor) SendRoyalties(opts *bind.TransactOpts, _royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

type INiftyswapExchange20TransactorRaw added in v0.5.5

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

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

func (*INiftyswapExchange20TransactorRaw) Transact added in v0.5.5

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

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

func (*INiftyswapExchange20TransactorRaw) Transfer added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20TransactorRaw) 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 INiftyswapExchange20TransactorSession added in v0.5.5

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

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

func (*INiftyswapExchange20TransactorSession) BuyTokens added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20TransactorSession) BuyTokens(_tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*INiftyswapExchange20TransactorSession) OnERC1155BatchReceived added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20TransactorSession) 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 (*INiftyswapExchange20TransactorSession) OnERC1155Received added in v0.5.5

func (_INiftyswapExchange20 *INiftyswapExchange20TransactorSession) 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 (*INiftyswapExchange20TransactorSession) SendRoyalties added in v0.6.8

func (_INiftyswapExchange20 *INiftyswapExchange20TransactorSession) SendRoyalties(_royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

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 NiftyswapExchange20 added in v0.5.5

type NiftyswapExchange20 struct {
	NiftyswapExchange20Caller     // Read-only binding to the contract
	NiftyswapExchange20Transactor // Write-only binding to the contract
	NiftyswapExchange20Filterer   // Log filterer for contract events
}

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

func DeployNiftyswapExchange20 added in v0.5.5

func DeployNiftyswapExchange20(auth *bind.TransactOpts, backend bind.ContractBackend, _tokenAddr common.Address, _currencyAddr common.Address) (common.Address, *types.Transaction, *NiftyswapExchange20, error)

DeployNiftyswapExchange20 deploys a new Ethereum contract, binding an instance of NiftyswapExchange20 to it.

func NewNiftyswapExchange20 added in v0.5.5

func NewNiftyswapExchange20(address common.Address, backend bind.ContractBackend) (*NiftyswapExchange20, error)

NewNiftyswapExchange20 creates a new instance of NiftyswapExchange20, bound to a specific deployed contract.

type NiftyswapExchange20ApprovalForAll added in v0.5.5

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

NiftyswapExchange20ApprovalForAll represents a ApprovalForAll event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20ApprovalForAllIterator added in v0.5.5

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

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

func (*NiftyswapExchange20ApprovalForAllIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20ApprovalForAllIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20ApprovalForAllIterator) Next added in v0.5.5

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 NiftyswapExchange20Caller added in v0.5.5

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

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

func NewNiftyswapExchange20Caller added in v0.5.5

func NewNiftyswapExchange20Caller(address common.Address, caller bind.ContractCaller) (*NiftyswapExchange20Caller, error)

NewNiftyswapExchange20Caller creates a new read-only instance of NiftyswapExchange20, bound to a specific deployed contract.

func (*NiftyswapExchange20Caller) BalanceOf added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) BalanceOfBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetBuyPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetBuyPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetBuyPriceWithRoyalty(opts *bind.CallOpts, _tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20Caller) GetCurrencyInfo added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetCurrencyInfo(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*NiftyswapExchange20Caller) GetCurrencyReserves added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetFactoryAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetGlobalRoyaltyFee added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetGlobalRoyaltyFee(opts *bind.CallOpts) (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*NiftyswapExchange20Caller) GetGlobalRoyaltyRecipient added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetGlobalRoyaltyRecipient(opts *bind.CallOpts) (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*NiftyswapExchange20Caller) GetOwner added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetOwner(opts *bind.CallOpts) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*NiftyswapExchange20Caller) GetPriceCurrencyToToken added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetPriceTokenToCurrency added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetRoyalties(opts *bind.CallOpts, _royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*NiftyswapExchange20Caller) GetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetRoyaltyInfo(opts *bind.CallOpts, _tokenId *big.Int, _cost *big.Int) (struct {
	Recipient common.Address
	Royalty   *big.Int
}, error)

GetRoyaltyInfo is a free data retrieval call binding the contract method 0xc7ed115e.

Solidity: function getRoyaltyInfo(uint256 _tokenId, uint256 _cost) view returns(address recipient, uint256 royalty)

func (*NiftyswapExchange20Caller) GetSellPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetSellPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) GetSellPriceWithRoyalty(opts *bind.CallOpts, _tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20Caller) GetTokenAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) GetTotalSupply added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) IsApprovedForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 (*NiftyswapExchange20Caller) SupportsInterface added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Caller) 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 NiftyswapExchange20CallerRaw added in v0.5.5

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

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

func (*NiftyswapExchange20CallerRaw) Call added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerRaw) 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 NiftyswapExchange20CallerSession added in v0.5.5

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

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

func (*NiftyswapExchange20CallerSession) BalanceOf added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) BalanceOfBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetBuyPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetBuyPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetBuyPriceWithRoyalty(_tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20CallerSession) GetCurrencyInfo added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetCurrencyInfo() (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*NiftyswapExchange20CallerSession) GetCurrencyReserves added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetFactoryAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetFactoryAddress() (common.Address, error)

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

Solidity: function getFactoryAddress() view returns(address)

func (*NiftyswapExchange20CallerSession) GetGlobalRoyaltyFee added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetGlobalRoyaltyFee() (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*NiftyswapExchange20CallerSession) GetGlobalRoyaltyRecipient added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetGlobalRoyaltyRecipient() (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*NiftyswapExchange20CallerSession) GetOwner added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*NiftyswapExchange20CallerSession) GetPriceCurrencyToToken added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetPriceTokenToCurrency added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetRoyalties(_royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*NiftyswapExchange20CallerSession) GetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetRoyaltyInfo(_tokenId *big.Int, _cost *big.Int) (struct {
	Recipient common.Address
	Royalty   *big.Int
}, error)

GetRoyaltyInfo is a free data retrieval call binding the contract method 0xc7ed115e.

Solidity: function getRoyaltyInfo(uint256 _tokenId, uint256 _cost) view returns(address recipient, uint256 royalty)

func (*NiftyswapExchange20CallerSession) GetSellPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) GetSellPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetSellPriceWithRoyalty(_tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20CallerSession) GetTokenAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) GetTokenAddress() (common.Address, error)

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

Solidity: function getTokenAddress() view returns(address)

func (*NiftyswapExchange20CallerSession) GetTotalSupply added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) IsApprovedForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 (*NiftyswapExchange20CallerSession) SupportsInterface added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20CallerSession) 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 NiftyswapExchange20CurrencyPurchase added in v0.5.5

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

NiftyswapExchange20CurrencyPurchase represents a CurrencyPurchase event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20CurrencyPurchaseIterator added in v0.5.5

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

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

func (*NiftyswapExchange20CurrencyPurchaseIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20CurrencyPurchaseIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20CurrencyPurchaseIterator) Next added in v0.5.5

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 NiftyswapExchange20Filterer added in v0.5.5

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

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

func NewNiftyswapExchange20Filterer added in v0.5.5

func NewNiftyswapExchange20Filterer(address common.Address, filterer bind.ContractFilterer) (*NiftyswapExchange20Filterer, error)

NewNiftyswapExchange20Filterer creates a new log filterer instance of NiftyswapExchange20, bound to a specific deployed contract.

func (*NiftyswapExchange20Filterer) FilterApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterApprovalForAll(opts *bind.FilterOpts, _owner []common.Address, _operator []common.Address) (*NiftyswapExchange20ApprovalForAllIterator, 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 (*NiftyswapExchange20Filterer) FilterCurrencyPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterCurrencyPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*NiftyswapExchange20CurrencyPurchaseIterator, 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 (*NiftyswapExchange20Filterer) FilterLiquidityAdded added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterLiquidityAdded(opts *bind.FilterOpts, provider []common.Address) (*NiftyswapExchange20LiquidityAddedIterator, 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 (*NiftyswapExchange20Filterer) FilterLiquidityRemoved added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterLiquidityRemoved(opts *bind.FilterOpts, provider []common.Address) (*NiftyswapExchange20LiquidityRemovedIterator, 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 (*NiftyswapExchange20Filterer) FilterParentOwnerChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterParentOwnerChanged(opts *bind.FilterOpts, previousParent []common.Address, newParent []common.Address) (*NiftyswapExchange20ParentOwnerChangedIterator, error)

FilterParentOwnerChanged is a free log retrieval operation binding the contract event 0xfca4bc097843727c93a8ab8d241a38481cccf8ec96dda1a342574712cfe8eb40.

Solidity: event ParentOwnerChanged(address indexed previousParent, address indexed newParent)

func (*NiftyswapExchange20Filterer) FilterRoyaltyChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterRoyaltyChanged(opts *bind.FilterOpts, royaltyRecipient []common.Address) (*NiftyswapExchange20RoyaltyChangedIterator, error)

FilterRoyaltyChanged is a free log retrieval operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*NiftyswapExchange20Filterer) FilterTokensPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterTokensPurchase(opts *bind.FilterOpts, buyer []common.Address, recipient []common.Address) (*NiftyswapExchange20TokensPurchaseIterator, 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 (*NiftyswapExchange20Filterer) FilterTransferBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterTransferBatch(opts *bind.FilterOpts, _operator []common.Address, _from []common.Address, _to []common.Address) (*NiftyswapExchange20TransferBatchIterator, 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 (*NiftyswapExchange20Filterer) FilterTransferSingle added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) FilterTransferSingle(opts *bind.FilterOpts, _operator []common.Address, _from []common.Address, _to []common.Address) (*NiftyswapExchange20TransferSingleIterator, 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 (*NiftyswapExchange20Filterer) ParseApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseApprovalForAll(log types.Log) (*NiftyswapExchange20ApprovalForAll, error)

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

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

func (*NiftyswapExchange20Filterer) ParseCurrencyPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseCurrencyPurchase(log types.Log) (*NiftyswapExchange20CurrencyPurchase, 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 (*NiftyswapExchange20Filterer) ParseLiquidityAdded added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseLiquidityAdded(log types.Log) (*NiftyswapExchange20LiquidityAdded, 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 (*NiftyswapExchange20Filterer) ParseLiquidityRemoved added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseLiquidityRemoved(log types.Log) (*NiftyswapExchange20LiquidityRemoved, 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 (*NiftyswapExchange20Filterer) ParseParentOwnerChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseParentOwnerChanged(log types.Log) (*NiftyswapExchange20ParentOwnerChanged, error)

ParseParentOwnerChanged is a log parse operation binding the contract event 0xfca4bc097843727c93a8ab8d241a38481cccf8ec96dda1a342574712cfe8eb40.

Solidity: event ParentOwnerChanged(address indexed previousParent, address indexed newParent)

func (*NiftyswapExchange20Filterer) ParseRoyaltyChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseRoyaltyChanged(log types.Log) (*NiftyswapExchange20RoyaltyChanged, error)

ParseRoyaltyChanged is a log parse operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*NiftyswapExchange20Filterer) ParseTokensPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseTokensPurchase(log types.Log) (*NiftyswapExchange20TokensPurchase, 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 (*NiftyswapExchange20Filterer) ParseTransferBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseTransferBatch(log types.Log) (*NiftyswapExchange20TransferBatch, 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 (*NiftyswapExchange20Filterer) ParseTransferSingle added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) ParseTransferSingle(log types.Log) (*NiftyswapExchange20TransferSingle, 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 (*NiftyswapExchange20Filterer) WatchApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20ApprovalForAll, _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 (*NiftyswapExchange20Filterer) WatchCurrencyPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchCurrencyPurchase(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20CurrencyPurchase, 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 (*NiftyswapExchange20Filterer) WatchLiquidityAdded added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchLiquidityAdded(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20LiquidityAdded, 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 (*NiftyswapExchange20Filterer) WatchLiquidityRemoved added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchLiquidityRemoved(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20LiquidityRemoved, 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 (*NiftyswapExchange20Filterer) WatchParentOwnerChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchParentOwnerChanged(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20ParentOwnerChanged, previousParent []common.Address, newParent []common.Address) (event.Subscription, error)

WatchParentOwnerChanged is a free log subscription operation binding the contract event 0xfca4bc097843727c93a8ab8d241a38481cccf8ec96dda1a342574712cfe8eb40.

Solidity: event ParentOwnerChanged(address indexed previousParent, address indexed newParent)

func (*NiftyswapExchange20Filterer) WatchRoyaltyChanged added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchRoyaltyChanged(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20RoyaltyChanged, royaltyRecipient []common.Address) (event.Subscription, error)

WatchRoyaltyChanged is a free log subscription operation binding the contract event 0x02365318429bf1d603e8383b62068288a077545c5c9e709201d563b3f56ce2b3.

Solidity: event RoyaltyChanged(address indexed royaltyRecipient, uint256 royaltyFee)

func (*NiftyswapExchange20Filterer) WatchTokensPurchase added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchTokensPurchase(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20TokensPurchase, 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 (*NiftyswapExchange20Filterer) WatchTransferBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20TransferBatch, _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 (*NiftyswapExchange20Filterer) WatchTransferSingle added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Filterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *NiftyswapExchange20TransferSingle, _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 NiftyswapExchange20LiquidityAdded added in v0.5.5

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

NiftyswapExchange20LiquidityAdded represents a LiquidityAdded event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20LiquidityAddedIterator added in v0.5.5

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

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

func (*NiftyswapExchange20LiquidityAddedIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20LiquidityAddedIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20LiquidityAddedIterator) Next added in v0.5.5

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 NiftyswapExchange20LiquidityRemoved added in v0.5.5

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

NiftyswapExchange20LiquidityRemoved represents a LiquidityRemoved event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20LiquidityRemovedIterator added in v0.5.5

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

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

func (*NiftyswapExchange20LiquidityRemovedIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20LiquidityRemovedIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20LiquidityRemovedIterator) Next added in v0.5.5

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 NiftyswapExchange20ParentOwnerChanged added in v0.6.8

type NiftyswapExchange20ParentOwnerChanged struct {
	PreviousParent common.Address
	NewParent      common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

NiftyswapExchange20ParentOwnerChanged represents a ParentOwnerChanged event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20ParentOwnerChangedIterator added in v0.6.8

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

NiftyswapExchange20ParentOwnerChangedIterator is returned from FilterParentOwnerChanged and is used to iterate over the raw logs and unpacked data for ParentOwnerChanged events raised by the NiftyswapExchange20 contract.

func (*NiftyswapExchange20ParentOwnerChangedIterator) Close added in v0.6.8

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

func (*NiftyswapExchange20ParentOwnerChangedIterator) Error added in v0.6.8

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20ParentOwnerChangedIterator) Next added in v0.6.8

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 NiftyswapExchange20Raw added in v0.5.5

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

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

func (*NiftyswapExchange20Raw) Call added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Raw) 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 (*NiftyswapExchange20Raw) Transact added in v0.5.5

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

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

func (*NiftyswapExchange20Raw) Transfer added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Raw) 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 NiftyswapExchange20RoyaltyChanged added in v0.6.8

type NiftyswapExchange20RoyaltyChanged struct {
	RoyaltyRecipient common.Address
	RoyaltyFee       *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

NiftyswapExchange20RoyaltyChanged represents a RoyaltyChanged event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20RoyaltyChangedIterator added in v0.6.8

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

NiftyswapExchange20RoyaltyChangedIterator is returned from FilterRoyaltyChanged and is used to iterate over the raw logs and unpacked data for RoyaltyChanged events raised by the NiftyswapExchange20 contract.

func (*NiftyswapExchange20RoyaltyChangedIterator) Close added in v0.6.8

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

func (*NiftyswapExchange20RoyaltyChangedIterator) Error added in v0.6.8

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20RoyaltyChangedIterator) Next added in v0.6.8

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 NiftyswapExchange20Session added in v0.5.5

type NiftyswapExchange20Session struct {
	Contract     *NiftyswapExchange20 // 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
}

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

func (*NiftyswapExchange20Session) BalanceOf added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) BalanceOfBatch added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) BuyTokens added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) BuyTokens(_tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*NiftyswapExchange20Session) ChangeOwnableParent added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) ChangeOwnableParent(_newParent common.Address) (*types.Transaction, error)

ChangeOwnableParent is a paid mutator transaction binding the contract method 0x89382ca0.

Solidity: function changeOwnableParent(address _newParent) returns()

func (*NiftyswapExchange20Session) Fallback added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() returns()

func (*NiftyswapExchange20Session) GetBuyPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) GetBuyPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetBuyPriceWithRoyalty(_tokenId *big.Int, _assetBoughtAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetBuyPriceWithRoyalty is a free data retrieval call binding the contract method 0xaeaad208.

Solidity: function getBuyPriceWithRoyalty(uint256 _tokenId, uint256 _assetBoughtAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20Session) GetCurrencyInfo added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetCurrencyInfo() (common.Address, error)

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

Solidity: function getCurrencyInfo() view returns(address)

func (*NiftyswapExchange20Session) GetCurrencyReserves added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) GetFactoryAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetFactoryAddress() (common.Address, error)

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

Solidity: function getFactoryAddress() view returns(address)

func (*NiftyswapExchange20Session) GetGlobalRoyaltyFee added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetGlobalRoyaltyFee() (*big.Int, error)

GetGlobalRoyaltyFee is a free data retrieval call binding the contract method 0x008e09d8.

Solidity: function getGlobalRoyaltyFee() view returns(uint256)

func (*NiftyswapExchange20Session) GetGlobalRoyaltyRecipient added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetGlobalRoyaltyRecipient() (common.Address, error)

GetGlobalRoyaltyRecipient is a free data retrieval call binding the contract method 0xe523d3fc.

Solidity: function getGlobalRoyaltyRecipient() view returns(address)

func (*NiftyswapExchange20Session) GetOwner added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() view returns(address)

func (*NiftyswapExchange20Session) GetPriceCurrencyToToken added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) GetPriceTokenToCurrency added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) GetRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetRoyalties(_royaltyRecipient common.Address) (*big.Int, error)

GetRoyalties is a free data retrieval call binding the contract method 0x14556a56.

Solidity: function getRoyalties(address _royaltyRecipient) view returns(uint256)

func (*NiftyswapExchange20Session) GetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetRoyaltyInfo(_tokenId *big.Int, _cost *big.Int) (struct {
	Recipient common.Address
	Royalty   *big.Int
}, error)

GetRoyaltyInfo is a free data retrieval call binding the contract method 0xc7ed115e.

Solidity: function getRoyaltyInfo(uint256 _tokenId, uint256 _cost) view returns(address recipient, uint256 royalty)

func (*NiftyswapExchange20Session) GetSellPrice added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) GetSellPriceWithRoyalty added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetSellPriceWithRoyalty(_tokenId *big.Int, _assetSoldAmount *big.Int, _assetSoldReserve *big.Int, _assetBoughtReserve *big.Int) (*big.Int, error)

GetSellPriceWithRoyalty is a free data retrieval call binding the contract method 0xa7380f6e.

Solidity: function getSellPriceWithRoyalty(uint256 _tokenId, uint256 _assetSoldAmount, uint256 _assetSoldReserve, uint256 _assetBoughtReserve) view returns(uint256 price)

func (*NiftyswapExchange20Session) GetTokenAddress added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) GetTokenAddress() (common.Address, error)

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

Solidity: function getTokenAddress() view returns(address)

func (*NiftyswapExchange20Session) GetTotalSupply added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) IsApprovedForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) OnERC1155BatchReceived added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) OnERC1155Received added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) SafeBatchTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) SafeTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) SendRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) SendRoyalties(_royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

func (*NiftyswapExchange20Session) SetApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 (*NiftyswapExchange20Session) SetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Session) SetRoyaltyInfo(_fee *big.Int, _recipient common.Address) (*types.Transaction, error)

SetRoyaltyInfo is a paid mutator transaction binding the contract method 0xb5de3d14.

Solidity: function setRoyaltyInfo(uint256 _fee, address _recipient) returns()

func (*NiftyswapExchange20Session) SupportsInterface added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Session) 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 NiftyswapExchange20TokensPurchase added in v0.5.5

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

NiftyswapExchange20TokensPurchase represents a TokensPurchase event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20TokensPurchaseIterator added in v0.5.5

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

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

func (*NiftyswapExchange20TokensPurchaseIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20TokensPurchaseIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20TokensPurchaseIterator) Next added in v0.5.5

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 NiftyswapExchange20Transactor added in v0.5.5

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

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

func NewNiftyswapExchange20Transactor added in v0.5.5

func NewNiftyswapExchange20Transactor(address common.Address, transactor bind.ContractTransactor) (*NiftyswapExchange20Transactor, error)

NewNiftyswapExchange20Transactor creates a new write-only instance of NiftyswapExchange20, bound to a specific deployed contract.

func (*NiftyswapExchange20Transactor) BuyTokens added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) BuyTokens(opts *bind.TransactOpts, _tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*NiftyswapExchange20Transactor) ChangeOwnableParent added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) ChangeOwnableParent(opts *bind.TransactOpts, _newParent common.Address) (*types.Transaction, error)

ChangeOwnableParent is a paid mutator transaction binding the contract method 0x89382ca0.

Solidity: function changeOwnableParent(address _newParent) returns()

func (*NiftyswapExchange20Transactor) Fallback added in v0.5.5

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

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

Solidity: fallback() returns()

func (*NiftyswapExchange20Transactor) OnERC1155BatchReceived added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) 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 (*NiftyswapExchange20Transactor) OnERC1155Received added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) 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 (*NiftyswapExchange20Transactor) SafeBatchTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) 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 (*NiftyswapExchange20Transactor) SafeTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) 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 (*NiftyswapExchange20Transactor) SendRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) SendRoyalties(opts *bind.TransactOpts, _royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

func (*NiftyswapExchange20Transactor) SetApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) 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()

func (*NiftyswapExchange20Transactor) SetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20Transactor) SetRoyaltyInfo(opts *bind.TransactOpts, _fee *big.Int, _recipient common.Address) (*types.Transaction, error)

SetRoyaltyInfo is a paid mutator transaction binding the contract method 0xb5de3d14.

Solidity: function setRoyaltyInfo(uint256 _fee, address _recipient) returns()

type NiftyswapExchange20TransactorRaw added in v0.5.5

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

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

func (*NiftyswapExchange20TransactorRaw) Transact added in v0.5.5

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

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

func (*NiftyswapExchange20TransactorRaw) Transfer added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorRaw) 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 NiftyswapExchange20TransactorSession added in v0.5.5

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

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

func (*NiftyswapExchange20TransactorSession) BuyTokens added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) BuyTokens(_tokenIds []*big.Int, _tokensBoughtAmounts []*big.Int, _maxCurrency *big.Int, _deadline *big.Int, _recipient common.Address, _extraFeeRecipients []common.Address, _extraFeeAmounts []*big.Int) (*types.Transaction, error)

BuyTokens is a paid mutator transaction binding the contract method 0xd93e8aaa.

Solidity: function buyTokens(uint256[] _tokenIds, uint256[] _tokensBoughtAmounts, uint256 _maxCurrency, uint256 _deadline, address _recipient, address[] _extraFeeRecipients, uint256[] _extraFeeAmounts) returns(uint256[])

func (*NiftyswapExchange20TransactorSession) ChangeOwnableParent added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) ChangeOwnableParent(_newParent common.Address) (*types.Transaction, error)

ChangeOwnableParent is a paid mutator transaction binding the contract method 0x89382ca0.

Solidity: function changeOwnableParent(address _newParent) returns()

func (*NiftyswapExchange20TransactorSession) Fallback added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() returns()

func (*NiftyswapExchange20TransactorSession) OnERC1155BatchReceived added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) 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 (*NiftyswapExchange20TransactorSession) OnERC1155Received added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) 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 (*NiftyswapExchange20TransactorSession) SafeBatchTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) 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 (*NiftyswapExchange20TransactorSession) SafeTransferFrom added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) 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 (*NiftyswapExchange20TransactorSession) SendRoyalties added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) SendRoyalties(_royaltyRecipient common.Address) (*types.Transaction, error)

SendRoyalties is a paid mutator transaction binding the contract method 0xa6313875.

Solidity: function sendRoyalties(address _royaltyRecipient) returns()

func (*NiftyswapExchange20TransactorSession) SetApprovalForAll added in v0.5.5

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) 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 (*NiftyswapExchange20TransactorSession) SetRoyaltyInfo added in v0.6.8

func (_NiftyswapExchange20 *NiftyswapExchange20TransactorSession) SetRoyaltyInfo(_fee *big.Int, _recipient common.Address) (*types.Transaction, error)

SetRoyaltyInfo is a paid mutator transaction binding the contract method 0xb5de3d14.

Solidity: function setRoyaltyInfo(uint256 _fee, address _recipient) returns()

type NiftyswapExchange20TransferBatch added in v0.5.5

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

NiftyswapExchange20TransferBatch represents a TransferBatch event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20TransferBatchIterator added in v0.5.5

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

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

func (*NiftyswapExchange20TransferBatchIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20TransferBatchIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20TransferBatchIterator) Next added in v0.5.5

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 NiftyswapExchange20TransferSingle added in v0.5.5

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

NiftyswapExchange20TransferSingle represents a TransferSingle event raised by the NiftyswapExchange20 contract.

type NiftyswapExchange20TransferSingleIterator added in v0.5.5

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

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

func (*NiftyswapExchange20TransferSingleIterator) Close added in v0.5.5

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

func (*NiftyswapExchange20TransferSingleIterator) Error added in v0.5.5

Error returns any retrieval or parsing error occurred during filtering.

func (*NiftyswapExchange20TransferSingleIterator) Next added in v0.5.5

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 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