exchange

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExchangeABI = ExchangeMetaData.ABI

ExchangeABI is the input ABI used to generate the binding from. Deprecated: Use ExchangeMetaData.ABI instead.

View Source
var ExchangeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_collateral\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_ctf\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_proxyFactory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_safeFactory\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyRegistered\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FeeTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidComplement\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MakingGtRemaining\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MismatchedTokenIds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAdmin\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotCrossing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotOperator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotTaker\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OrderExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OrderFilledOrCancelled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Paused\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TooLittleTokensReceived\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"FeeCharged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newAdminAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"NewAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOperatorAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"NewOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newNonce\",\"type\":\"uint256\"}],\"name\":\"NonceIncremented\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"}],\"name\":\"OrderCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerAssetId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerAssetId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerAmountFilled\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerAmountFilled\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"OrderFilled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"takerOrderHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"takerOrderMaker\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerAssetId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerAssetId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"makerAmountFilled\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"takerAmountFilled\",\"type\":\"uint256\"}],\"name\":\"OrdersMatched\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldProxyFactory\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newProxyFactory\",\"type\":\"address\"}],\"name\":\"ProxyFactoryUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"removedAdmin\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"RemovedAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"removedOperator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"RemovedOperator\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldSafeFactory\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newSafeFactory\",\"type\":\"address\"}],\"name\":\"SafeFactoryUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"token0\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"token1\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"conditionId\",\"type\":\"bytes32\"}],\"name\":\"TokenRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pauser\",\"type\":\"address\"}],\"name\":\"TradingPaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"pauser\",\"type\":\"address\"}],\"name\":\"TradingUnpaused\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin_\",\"type\":\"address\"}],\"name\":\"addAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator_\",\"type\":\"address\"}],\"name\":\"addOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"admins\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"order\",\"type\":\"tuple\"}],\"name\":\"cancelOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder[]\",\"name\":\"orders\",\"type\":\"tuple[]\"}],\"name\":\"cancelOrders\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"order\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"fillAmount\",\"type\":\"uint256\"}],\"name\":\"fillOrder\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder[]\",\"name\":\"orders\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256[]\",\"name\":\"fillAmounts\",\"type\":\"uint256[]\"}],\"name\":\"fillOrders\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCollateral\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"token\",\"type\":\"uint256\"}],\"name\":\"getComplement\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"token\",\"type\":\"uint256\"}],\"name\":\"getConditionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCtf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMaxFeeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"}],\"name\":\"getOrderStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"isFilledOrCancelled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"remaining\",\"type\":\"uint256\"}],\"internalType\":\"structOrderStatus\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPolyProxyFactoryImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"getPolyProxyWalletAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProxyFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"getSafeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSafeFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getSafeFactoryImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"order\",\"type\":\"tuple\"}],\"name\":\"hashOrder\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementNonce\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"usr\",\"type\":\"address\"}],\"name\":\"isAdmin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"usr\",\"type\":\"address\"}],\"name\":\"isOperator\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"usr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"isValidNonce\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"takerOrder\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder[]\",\"name\":\"makerOrders\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"takerFillAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"makerFillAmounts\",\"type\":\"uint256[]\"}],\"name\":\"matchOrders\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":\"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\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"operators\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"orderStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isFilledOrCancelled\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"remaining\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"parentCollectionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseTrading\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxyFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"complement\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"conditionId\",\"type\":\"bytes32\"}],\"name\":\"registerToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"registry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"complement\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"conditionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"removeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"removeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceAdminRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOperatorRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safeFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newProxyFactory\",\"type\":\"address\"}],\"name\":\"setProxyFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newSafeFactory\",\"type\":\"address\"}],\"name\":\"setSafeFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpauseTrading\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"complement\",\"type\":\"uint256\"}],\"name\":\"validateComplement\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"order\",\"type\":\"tuple\"}],\"name\":\"validateOrder\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"makerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"takerAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeRateBps\",\"type\":\"uint256\"},{\"internalType\":\"enumSide\",\"name\":\"side\",\"type\":\"uint8\"},{\"internalType\":\"enumSignatureType\",\"name\":\"signatureType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structOrder\",\"name\":\"order\",\"type\":\"tuple\"}],\"name\":\"validateOrderSignature\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"validateTokenId\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ExchangeMetaData contains all meta data concerning the Exchange contract.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	ExchangeCaller     // Read-only binding to the contract
	ExchangeTransactor // Write-only binding to the contract
	ExchangeFilterer   // Log filterer for contract events
}

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

func NewExchange

func NewExchange(address common.Address, backend bind.ContractBackend) (*Exchange, error)

NewExchange creates a new instance of Exchange, bound to a specific deployed contract.

type ExchangeCaller

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

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

func NewExchangeCaller

func NewExchangeCaller(address common.Address, caller bind.ContractCaller) (*ExchangeCaller, error)

NewExchangeCaller creates a new read-only instance of Exchange, bound to a specific deployed contract.

func (*ExchangeCaller) Admins

func (_Exchange *ExchangeCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

Solidity: function admins(address ) view returns(uint256)

func (*ExchangeCaller) DomainSeparator

func (_Exchange *ExchangeCaller) DomainSeparator(opts *bind.CallOpts) ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*ExchangeCaller) Eip712Domain

func (_Exchange *ExchangeCaller) Eip712Domain(opts *bind.CallOpts) (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*ExchangeCaller) GetCollateral

func (_Exchange *ExchangeCaller) GetCollateral(opts *bind.CallOpts) (common.Address, error)

GetCollateral is a free data retrieval call binding the contract method 0x5c1548fb.

Solidity: function getCollateral() view returns(address)

func (*ExchangeCaller) GetComplement

func (_Exchange *ExchangeCaller) GetComplement(opts *bind.CallOpts, token *big.Int) (*big.Int, error)

GetComplement is a free data retrieval call binding the contract method 0xa10f3dce.

Solidity: function getComplement(uint256 token) view returns(uint256)

func (*ExchangeCaller) GetConditionId

func (_Exchange *ExchangeCaller) GetConditionId(opts *bind.CallOpts, token *big.Int) ([32]byte, error)

GetConditionId is a free data retrieval call binding the contract method 0xd7fb272f.

Solidity: function getConditionId(uint256 token) view returns(bytes32)

func (*ExchangeCaller) GetCtf

func (_Exchange *ExchangeCaller) GetCtf(opts *bind.CallOpts) (common.Address, error)

GetCtf is a free data retrieval call binding the contract method 0x3b521d78.

Solidity: function getCtf() view returns(address)

func (*ExchangeCaller) GetMaxFeeRate

func (_Exchange *ExchangeCaller) GetMaxFeeRate(opts *bind.CallOpts) (*big.Int, error)

GetMaxFeeRate is a free data retrieval call binding the contract method 0x4a2a11f5.

Solidity: function getMaxFeeRate() pure returns(uint256)

func (*ExchangeCaller) GetOrderStatus

func (_Exchange *ExchangeCaller) GetOrderStatus(opts *bind.CallOpts, orderHash [32]byte) (OrderStatus, error)

GetOrderStatus is a free data retrieval call binding the contract method 0x46423aa7.

Solidity: function getOrderStatus(bytes32 orderHash) view returns((bool,uint256))

func (*ExchangeCaller) GetPolyProxyFactoryImplementation

func (_Exchange *ExchangeCaller) GetPolyProxyFactoryImplementation(opts *bind.CallOpts) (common.Address, error)

GetPolyProxyFactoryImplementation is a free data retrieval call binding the contract method 0x06b9d691.

Solidity: function getPolyProxyFactoryImplementation() view returns(address)

func (*ExchangeCaller) GetPolyProxyWalletAddress

func (_Exchange *ExchangeCaller) GetPolyProxyWalletAddress(opts *bind.CallOpts, _addr common.Address) (common.Address, error)

GetPolyProxyWalletAddress is a free data retrieval call binding the contract method 0xedef7d8e.

Solidity: function getPolyProxyWalletAddress(address _addr) view returns(address)

func (*ExchangeCaller) GetProxyFactory

func (_Exchange *ExchangeCaller) GetProxyFactory(opts *bind.CallOpts) (common.Address, error)

GetProxyFactory is a free data retrieval call binding the contract method 0xb28c51c0.

Solidity: function getProxyFactory() view returns(address)

func (*ExchangeCaller) GetSafeAddress

func (_Exchange *ExchangeCaller) GetSafeAddress(opts *bind.CallOpts, _addr common.Address) (common.Address, error)

GetSafeAddress is a free data retrieval call binding the contract method 0xa287bdf1.

Solidity: function getSafeAddress(address _addr) view returns(address)

func (*ExchangeCaller) GetSafeFactory

func (_Exchange *ExchangeCaller) GetSafeFactory(opts *bind.CallOpts) (common.Address, error)

GetSafeFactory is a free data retrieval call binding the contract method 0x75d7370a.

Solidity: function getSafeFactory() view returns(address)

func (*ExchangeCaller) GetSafeFactoryImplementation

func (_Exchange *ExchangeCaller) GetSafeFactoryImplementation(opts *bind.CallOpts) (common.Address, error)

GetSafeFactoryImplementation is a free data retrieval call binding the contract method 0xe03ac3d0.

Solidity: function getSafeFactoryImplementation() view returns(address)

func (*ExchangeCaller) HashOrder

func (_Exchange *ExchangeCaller) HashOrder(opts *bind.CallOpts, order Order) ([32]byte, error)

HashOrder is a free data retrieval call binding the contract method 0xe50e4f97.

Solidity: function hashOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns(bytes32)

func (*ExchangeCaller) IsAdmin

func (_Exchange *ExchangeCaller) IsAdmin(opts *bind.CallOpts, usr common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

Solidity: function isAdmin(address usr) view returns(bool)

func (*ExchangeCaller) IsOperator

func (_Exchange *ExchangeCaller) IsOperator(opts *bind.CallOpts, usr common.Address) (bool, error)

IsOperator is a free data retrieval call binding the contract method 0x6d70f7ae.

Solidity: function isOperator(address usr) view returns(bool)

func (*ExchangeCaller) IsValidNonce

func (_Exchange *ExchangeCaller) IsValidNonce(opts *bind.CallOpts, usr common.Address, nonce *big.Int) (bool, error)

IsValidNonce is a free data retrieval call binding the contract method 0x0647ee20.

Solidity: function isValidNonce(address usr, uint256 nonce) view returns(bool)

func (*ExchangeCaller) Nonces

func (_Exchange *ExchangeCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*ExchangeCaller) Operators

func (_Exchange *ExchangeCaller) Operators(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Operators is a free data retrieval call binding the contract method 0x13e7c9d8.

Solidity: function operators(address ) view returns(uint256)

func (*ExchangeCaller) OrderStatus

func (_Exchange *ExchangeCaller) OrderStatus(opts *bind.CallOpts, arg0 [32]byte) (struct {
	IsFilledOrCancelled bool
	Remaining           *big.Int
}, error)

OrderStatus is a free data retrieval call binding the contract method 0x2dff692d.

Solidity: function orderStatus(bytes32 ) view returns(bool isFilledOrCancelled, uint256 remaining)

func (*ExchangeCaller) ParentCollectionId

func (_Exchange *ExchangeCaller) ParentCollectionId(opts *bind.CallOpts) ([32]byte, error)

ParentCollectionId is a free data retrieval call binding the contract method 0x44bea37e.

Solidity: function parentCollectionId() view returns(bytes32)

func (*ExchangeCaller) Paused

func (_Exchange *ExchangeCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ExchangeCaller) ProxyFactory

func (_Exchange *ExchangeCaller) ProxyFactory(opts *bind.CallOpts) (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ExchangeCaller) Registry

func (_Exchange *ExchangeCaller) Registry(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Complement  *big.Int
	ConditionId [32]byte
}, error)

Registry is a free data retrieval call binding the contract method 0x5893253c.

Solidity: function registry(uint256 ) view returns(uint256 complement, bytes32 conditionId)

func (*ExchangeCaller) SafeFactory

func (_Exchange *ExchangeCaller) SafeFactory(opts *bind.CallOpts) (common.Address, error)

SafeFactory is a free data retrieval call binding the contract method 0x131e7e1c.

Solidity: function safeFactory() view returns(address)

func (*ExchangeCaller) SupportsInterface

func (_Exchange *ExchangeCaller) 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) view returns(bool)

func (*ExchangeCaller) ValidateComplement

func (_Exchange *ExchangeCaller) ValidateComplement(opts *bind.CallOpts, token *big.Int, complement *big.Int) error

ValidateComplement is a free data retrieval call binding the contract method 0xd82da838.

Solidity: function validateComplement(uint256 token, uint256 complement) view returns()

func (*ExchangeCaller) ValidateOrder

func (_Exchange *ExchangeCaller) ValidateOrder(opts *bind.CallOpts, order Order) error

ValidateOrder is a free data retrieval call binding the contract method 0x654f0ce4.

Solidity: function validateOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeCaller) ValidateOrderSignature

func (_Exchange *ExchangeCaller) ValidateOrderSignature(opts *bind.CallOpts, orderHash [32]byte, order Order) error

ValidateOrderSignature is a free data retrieval call binding the contract method 0xe2eec405.

Solidity: function validateOrderSignature(bytes32 orderHash, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeCaller) ValidateTokenId

func (_Exchange *ExchangeCaller) ValidateTokenId(opts *bind.CallOpts, tokenId *big.Int) error

ValidateTokenId is a free data retrieval call binding the contract method 0x34600901.

Solidity: function validateTokenId(uint256 tokenId) view returns()

type ExchangeCallerRaw

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

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

func (*ExchangeCallerRaw) Call

func (_Exchange *ExchangeCallerRaw) 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 ExchangeCallerSession

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

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

func (*ExchangeCallerSession) Admins

func (_Exchange *ExchangeCallerSession) Admins(arg0 common.Address) (*big.Int, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

Solidity: function admins(address ) view returns(uint256)

func (*ExchangeCallerSession) DomainSeparator

func (_Exchange *ExchangeCallerSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*ExchangeCallerSession) Eip712Domain

func (_Exchange *ExchangeCallerSession) Eip712Domain() (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*ExchangeCallerSession) GetCollateral

func (_Exchange *ExchangeCallerSession) GetCollateral() (common.Address, error)

GetCollateral is a free data retrieval call binding the contract method 0x5c1548fb.

Solidity: function getCollateral() view returns(address)

func (*ExchangeCallerSession) GetComplement

func (_Exchange *ExchangeCallerSession) GetComplement(token *big.Int) (*big.Int, error)

GetComplement is a free data retrieval call binding the contract method 0xa10f3dce.

Solidity: function getComplement(uint256 token) view returns(uint256)

func (*ExchangeCallerSession) GetConditionId

func (_Exchange *ExchangeCallerSession) GetConditionId(token *big.Int) ([32]byte, error)

GetConditionId is a free data retrieval call binding the contract method 0xd7fb272f.

Solidity: function getConditionId(uint256 token) view returns(bytes32)

func (*ExchangeCallerSession) GetCtf

func (_Exchange *ExchangeCallerSession) GetCtf() (common.Address, error)

GetCtf is a free data retrieval call binding the contract method 0x3b521d78.

Solidity: function getCtf() view returns(address)

func (*ExchangeCallerSession) GetMaxFeeRate

func (_Exchange *ExchangeCallerSession) GetMaxFeeRate() (*big.Int, error)

GetMaxFeeRate is a free data retrieval call binding the contract method 0x4a2a11f5.

Solidity: function getMaxFeeRate() pure returns(uint256)

func (*ExchangeCallerSession) GetOrderStatus

func (_Exchange *ExchangeCallerSession) GetOrderStatus(orderHash [32]byte) (OrderStatus, error)

GetOrderStatus is a free data retrieval call binding the contract method 0x46423aa7.

Solidity: function getOrderStatus(bytes32 orderHash) view returns((bool,uint256))

func (*ExchangeCallerSession) GetPolyProxyFactoryImplementation

func (_Exchange *ExchangeCallerSession) GetPolyProxyFactoryImplementation() (common.Address, error)

GetPolyProxyFactoryImplementation is a free data retrieval call binding the contract method 0x06b9d691.

Solidity: function getPolyProxyFactoryImplementation() view returns(address)

func (*ExchangeCallerSession) GetPolyProxyWalletAddress

func (_Exchange *ExchangeCallerSession) GetPolyProxyWalletAddress(_addr common.Address) (common.Address, error)

GetPolyProxyWalletAddress is a free data retrieval call binding the contract method 0xedef7d8e.

Solidity: function getPolyProxyWalletAddress(address _addr) view returns(address)

func (*ExchangeCallerSession) GetProxyFactory

func (_Exchange *ExchangeCallerSession) GetProxyFactory() (common.Address, error)

GetProxyFactory is a free data retrieval call binding the contract method 0xb28c51c0.

Solidity: function getProxyFactory() view returns(address)

func (*ExchangeCallerSession) GetSafeAddress

func (_Exchange *ExchangeCallerSession) GetSafeAddress(_addr common.Address) (common.Address, error)

GetSafeAddress is a free data retrieval call binding the contract method 0xa287bdf1.

Solidity: function getSafeAddress(address _addr) view returns(address)

func (*ExchangeCallerSession) GetSafeFactory

func (_Exchange *ExchangeCallerSession) GetSafeFactory() (common.Address, error)

GetSafeFactory is a free data retrieval call binding the contract method 0x75d7370a.

Solidity: function getSafeFactory() view returns(address)

func (*ExchangeCallerSession) GetSafeFactoryImplementation

func (_Exchange *ExchangeCallerSession) GetSafeFactoryImplementation() (common.Address, error)

GetSafeFactoryImplementation is a free data retrieval call binding the contract method 0xe03ac3d0.

Solidity: function getSafeFactoryImplementation() view returns(address)

func (*ExchangeCallerSession) HashOrder

func (_Exchange *ExchangeCallerSession) HashOrder(order Order) ([32]byte, error)

HashOrder is a free data retrieval call binding the contract method 0xe50e4f97.

Solidity: function hashOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns(bytes32)

func (*ExchangeCallerSession) IsAdmin

func (_Exchange *ExchangeCallerSession) IsAdmin(usr common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

Solidity: function isAdmin(address usr) view returns(bool)

func (*ExchangeCallerSession) IsOperator

func (_Exchange *ExchangeCallerSession) IsOperator(usr common.Address) (bool, error)

IsOperator is a free data retrieval call binding the contract method 0x6d70f7ae.

Solidity: function isOperator(address usr) view returns(bool)

func (*ExchangeCallerSession) IsValidNonce

func (_Exchange *ExchangeCallerSession) IsValidNonce(usr common.Address, nonce *big.Int) (bool, error)

IsValidNonce is a free data retrieval call binding the contract method 0x0647ee20.

Solidity: function isValidNonce(address usr, uint256 nonce) view returns(bool)

func (*ExchangeCallerSession) Nonces

func (_Exchange *ExchangeCallerSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*ExchangeCallerSession) Operators

func (_Exchange *ExchangeCallerSession) Operators(arg0 common.Address) (*big.Int, error)

Operators is a free data retrieval call binding the contract method 0x13e7c9d8.

Solidity: function operators(address ) view returns(uint256)

func (*ExchangeCallerSession) OrderStatus

func (_Exchange *ExchangeCallerSession) OrderStatus(arg0 [32]byte) (struct {
	IsFilledOrCancelled bool
	Remaining           *big.Int
}, error)

OrderStatus is a free data retrieval call binding the contract method 0x2dff692d.

Solidity: function orderStatus(bytes32 ) view returns(bool isFilledOrCancelled, uint256 remaining)

func (*ExchangeCallerSession) ParentCollectionId

func (_Exchange *ExchangeCallerSession) ParentCollectionId() ([32]byte, error)

ParentCollectionId is a free data retrieval call binding the contract method 0x44bea37e.

Solidity: function parentCollectionId() view returns(bytes32)

func (*ExchangeCallerSession) Paused

func (_Exchange *ExchangeCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ExchangeCallerSession) ProxyFactory

func (_Exchange *ExchangeCallerSession) ProxyFactory() (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ExchangeCallerSession) Registry

func (_Exchange *ExchangeCallerSession) Registry(arg0 *big.Int) (struct {
	Complement  *big.Int
	ConditionId [32]byte
}, error)

Registry is a free data retrieval call binding the contract method 0x5893253c.

Solidity: function registry(uint256 ) view returns(uint256 complement, bytes32 conditionId)

func (*ExchangeCallerSession) SafeFactory

func (_Exchange *ExchangeCallerSession) SafeFactory() (common.Address, error)

SafeFactory is a free data retrieval call binding the contract method 0x131e7e1c.

Solidity: function safeFactory() view returns(address)

func (*ExchangeCallerSession) SupportsInterface

func (_Exchange *ExchangeCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

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

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ExchangeCallerSession) ValidateComplement

func (_Exchange *ExchangeCallerSession) ValidateComplement(token *big.Int, complement *big.Int) error

ValidateComplement is a free data retrieval call binding the contract method 0xd82da838.

Solidity: function validateComplement(uint256 token, uint256 complement) view returns()

func (*ExchangeCallerSession) ValidateOrder

func (_Exchange *ExchangeCallerSession) ValidateOrder(order Order) error

ValidateOrder is a free data retrieval call binding the contract method 0x654f0ce4.

Solidity: function validateOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeCallerSession) ValidateOrderSignature

func (_Exchange *ExchangeCallerSession) ValidateOrderSignature(orderHash [32]byte, order Order) error

ValidateOrderSignature is a free data retrieval call binding the contract method 0xe2eec405.

Solidity: function validateOrderSignature(bytes32 orderHash, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeCallerSession) ValidateTokenId

func (_Exchange *ExchangeCallerSession) ValidateTokenId(tokenId *big.Int) error

ValidateTokenId is a free data retrieval call binding the contract method 0x34600901.

Solidity: function validateTokenId(uint256 tokenId) view returns()

type ExchangeEIP712DomainChanged

type ExchangeEIP712DomainChanged struct {
	Raw types.Log // Blockchain specific contextual infos
}

ExchangeEIP712DomainChanged represents a EIP712DomainChanged event raised by the Exchange contract.

type ExchangeEIP712DomainChangedIterator

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

ExchangeEIP712DomainChangedIterator is returned from FilterEIP712DomainChanged and is used to iterate over the raw logs and unpacked data for EIP712DomainChanged events raised by the Exchange contract.

func (*ExchangeEIP712DomainChangedIterator) Close

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

func (*ExchangeEIP712DomainChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeEIP712DomainChangedIterator) 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 ExchangeFeeCharged

type ExchangeFeeCharged struct {
	Receiver common.Address
	TokenId  *big.Int
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ExchangeFeeCharged represents a FeeCharged event raised by the Exchange contract.

type ExchangeFeeChargedIterator

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

ExchangeFeeChargedIterator is returned from FilterFeeCharged and is used to iterate over the raw logs and unpacked data for FeeCharged events raised by the Exchange contract.

func (*ExchangeFeeChargedIterator) Close

func (it *ExchangeFeeChargedIterator) Close() error

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

func (*ExchangeFeeChargedIterator) Error

func (it *ExchangeFeeChargedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeFeeChargedIterator) Next

func (it *ExchangeFeeChargedIterator) Next() bool

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 ExchangeFilterer

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

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

func NewExchangeFilterer

func NewExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*ExchangeFilterer, error)

NewExchangeFilterer creates a new log filterer instance of Exchange, bound to a specific deployed contract.

func (*ExchangeFilterer) FilterEIP712DomainChanged

func (_Exchange *ExchangeFilterer) FilterEIP712DomainChanged(opts *bind.FilterOpts) (*ExchangeEIP712DomainChangedIterator, error)

FilterEIP712DomainChanged is a free log retrieval operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*ExchangeFilterer) FilterFeeCharged

func (_Exchange *ExchangeFilterer) FilterFeeCharged(opts *bind.FilterOpts, receiver []common.Address) (*ExchangeFeeChargedIterator, error)

FilterFeeCharged is a free log retrieval operation binding the contract event 0xacffcc86834d0f1a64b0d5a675798deed6ff0bcfc2231edd3480e7288dba7ff4.

Solidity: event FeeCharged(address indexed receiver, uint256 tokenId, uint256 amount)

func (*ExchangeFilterer) FilterNewAdmin

func (_Exchange *ExchangeFilterer) FilterNewAdmin(opts *bind.FilterOpts, newAdminAddress []common.Address, admin []common.Address) (*ExchangeNewAdminIterator, error)

FilterNewAdmin is a free log retrieval operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed newAdminAddress, address indexed admin)

func (*ExchangeFilterer) FilterNewOperator

func (_Exchange *ExchangeFilterer) FilterNewOperator(opts *bind.FilterOpts, newOperatorAddress []common.Address, admin []common.Address) (*ExchangeNewOperatorIterator, error)

FilterNewOperator is a free log retrieval operation binding the contract event 0xf1e04d73c4304b5ff164f9d10c7473e2a1593b740674a6107975e2a7001c1e5c.

Solidity: event NewOperator(address indexed newOperatorAddress, address indexed admin)

func (*ExchangeFilterer) FilterNonceIncremented

func (_Exchange *ExchangeFilterer) FilterNonceIncremented(opts *bind.FilterOpts, user []common.Address) (*ExchangeNonceIncrementedIterator, error)

FilterNonceIncremented is a free log retrieval operation binding the contract event 0xa82a649bbd060c9099cd7b7326e2b0dc9e9af0836480e0f849dc9eaa79710b3b.

Solidity: event NonceIncremented(address indexed user, uint256 newNonce)

func (*ExchangeFilterer) FilterOrderCancelled

func (_Exchange *ExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, orderHash [][32]byte) (*ExchangeOrderCancelledIterator, error)

FilterOrderCancelled is a free log retrieval operation binding the contract event 0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d.

Solidity: event OrderCancelled(bytes32 indexed orderHash)

func (*ExchangeFilterer) FilterOrderFilled

func (_Exchange *ExchangeFilterer) FilterOrderFilled(opts *bind.FilterOpts, orderHash [][32]byte, maker []common.Address, taker []common.Address) (*ExchangeOrderFilledIterator, error)

FilterOrderFilled is a free log retrieval operation binding the contract event 0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6.

Solidity: event OrderFilled(bytes32 indexed orderHash, address indexed maker, address indexed taker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled, uint256 fee)

func (*ExchangeFilterer) FilterOrdersMatched

func (_Exchange *ExchangeFilterer) FilterOrdersMatched(opts *bind.FilterOpts, takerOrderHash [][32]byte, takerOrderMaker []common.Address) (*ExchangeOrdersMatchedIterator, error)

FilterOrdersMatched is a free log retrieval operation binding the contract event 0x63bf4d16b7fa898ef4c4b2b6d90fd201e9c56313b65638af6088d149d2ce956c.

Solidity: event OrdersMatched(bytes32 indexed takerOrderHash, address indexed takerOrderMaker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled)

func (*ExchangeFilterer) FilterProxyFactoryUpdated

func (_Exchange *ExchangeFilterer) FilterProxyFactoryUpdated(opts *bind.FilterOpts, oldProxyFactory []common.Address, newProxyFactory []common.Address) (*ExchangeProxyFactoryUpdatedIterator, error)

FilterProxyFactoryUpdated is a free log retrieval operation binding the contract event 0x3053c6252a932554235c173caffc1913604dba3a41cee89516f631c4a1a50a37.

Solidity: event ProxyFactoryUpdated(address indexed oldProxyFactory, address indexed newProxyFactory)

func (*ExchangeFilterer) FilterRemovedAdmin

func (_Exchange *ExchangeFilterer) FilterRemovedAdmin(opts *bind.FilterOpts, removedAdmin []common.Address, admin []common.Address) (*ExchangeRemovedAdminIterator, error)

FilterRemovedAdmin is a free log retrieval operation binding the contract event 0x787a2e12f4a55b658b8f573c32432ee11a5e8b51677d1e1e937aaf6a0bb5776e.

Solidity: event RemovedAdmin(address indexed removedAdmin, address indexed admin)

func (*ExchangeFilterer) FilterRemovedOperator

func (_Exchange *ExchangeFilterer) FilterRemovedOperator(opts *bind.FilterOpts, removedOperator []common.Address, admin []common.Address) (*ExchangeRemovedOperatorIterator, error)

FilterRemovedOperator is a free log retrieval operation binding the contract event 0xf7262ed0443cc211121ceb1a80d69004f319245615a7488f951f1437fd91642c.

Solidity: event RemovedOperator(address indexed removedOperator, address indexed admin)

func (*ExchangeFilterer) FilterSafeFactoryUpdated

func (_Exchange *ExchangeFilterer) FilterSafeFactoryUpdated(opts *bind.FilterOpts, oldSafeFactory []common.Address, newSafeFactory []common.Address) (*ExchangeSafeFactoryUpdatedIterator, error)

FilterSafeFactoryUpdated is a free log retrieval operation binding the contract event 0x9726d7faf7429d6b059560dc858ed769377ccdf8b7541eabe12b22548719831f.

Solidity: event SafeFactoryUpdated(address indexed oldSafeFactory, address indexed newSafeFactory)

func (*ExchangeFilterer) FilterTokenRegistered

func (_Exchange *ExchangeFilterer) FilterTokenRegistered(opts *bind.FilterOpts, token0 []*big.Int, token1 []*big.Int, conditionId [][32]byte) (*ExchangeTokenRegisteredIterator, error)

FilterTokenRegistered is a free log retrieval operation binding the contract event 0xbc9a2432e8aeb48327246cddd6e872ef452812b4243c04e6bfb786a2cd8faf0d.

Solidity: event TokenRegistered(uint256 indexed token0, uint256 indexed token1, bytes32 indexed conditionId)

func (*ExchangeFilterer) FilterTradingPaused

func (_Exchange *ExchangeFilterer) FilterTradingPaused(opts *bind.FilterOpts, pauser []common.Address) (*ExchangeTradingPausedIterator, error)

FilterTradingPaused is a free log retrieval operation binding the contract event 0x203c4bd3e526634f661575359ff30de3b0edaba6c2cb1eac60f730b6d2d9d536.

Solidity: event TradingPaused(address indexed pauser)

func (*ExchangeFilterer) FilterTradingUnpaused

func (_Exchange *ExchangeFilterer) FilterTradingUnpaused(opts *bind.FilterOpts, pauser []common.Address) (*ExchangeTradingUnpausedIterator, error)

FilterTradingUnpaused is a free log retrieval operation binding the contract event 0xa1e8a54850dbd7f520bcc09f47bff152294b77b2081da545a7adf531b7ea283b.

Solidity: event TradingUnpaused(address indexed pauser)

func (*ExchangeFilterer) ParseEIP712DomainChanged

func (_Exchange *ExchangeFilterer) ParseEIP712DomainChanged(log types.Log) (*ExchangeEIP712DomainChanged, error)

ParseEIP712DomainChanged is a log parse operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*ExchangeFilterer) ParseFeeCharged

func (_Exchange *ExchangeFilterer) ParseFeeCharged(log types.Log) (*ExchangeFeeCharged, error)

ParseFeeCharged is a log parse operation binding the contract event 0xacffcc86834d0f1a64b0d5a675798deed6ff0bcfc2231edd3480e7288dba7ff4.

Solidity: event FeeCharged(address indexed receiver, uint256 tokenId, uint256 amount)

func (*ExchangeFilterer) ParseNewAdmin

func (_Exchange *ExchangeFilterer) ParseNewAdmin(log types.Log) (*ExchangeNewAdmin, error)

ParseNewAdmin is a log parse operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed newAdminAddress, address indexed admin)

func (*ExchangeFilterer) ParseNewOperator

func (_Exchange *ExchangeFilterer) ParseNewOperator(log types.Log) (*ExchangeNewOperator, error)

ParseNewOperator is a log parse operation binding the contract event 0xf1e04d73c4304b5ff164f9d10c7473e2a1593b740674a6107975e2a7001c1e5c.

Solidity: event NewOperator(address indexed newOperatorAddress, address indexed admin)

func (*ExchangeFilterer) ParseNonceIncremented

func (_Exchange *ExchangeFilterer) ParseNonceIncremented(log types.Log) (*ExchangeNonceIncremented, error)

ParseNonceIncremented is a log parse operation binding the contract event 0xa82a649bbd060c9099cd7b7326e2b0dc9e9af0836480e0f849dc9eaa79710b3b.

Solidity: event NonceIncremented(address indexed user, uint256 newNonce)

func (*ExchangeFilterer) ParseOrderCancelled

func (_Exchange *ExchangeFilterer) ParseOrderCancelled(log types.Log) (*ExchangeOrderCancelled, error)

ParseOrderCancelled is a log parse operation binding the contract event 0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d.

Solidity: event OrderCancelled(bytes32 indexed orderHash)

func (*ExchangeFilterer) ParseOrderFilled

func (_Exchange *ExchangeFilterer) ParseOrderFilled(log types.Log) (*ExchangeOrderFilled, error)

ParseOrderFilled is a log parse operation binding the contract event 0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6.

Solidity: event OrderFilled(bytes32 indexed orderHash, address indexed maker, address indexed taker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled, uint256 fee)

func (*ExchangeFilterer) ParseOrdersMatched

func (_Exchange *ExchangeFilterer) ParseOrdersMatched(log types.Log) (*ExchangeOrdersMatched, error)

ParseOrdersMatched is a log parse operation binding the contract event 0x63bf4d16b7fa898ef4c4b2b6d90fd201e9c56313b65638af6088d149d2ce956c.

Solidity: event OrdersMatched(bytes32 indexed takerOrderHash, address indexed takerOrderMaker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled)

func (*ExchangeFilterer) ParseProxyFactoryUpdated

func (_Exchange *ExchangeFilterer) ParseProxyFactoryUpdated(log types.Log) (*ExchangeProxyFactoryUpdated, error)

ParseProxyFactoryUpdated is a log parse operation binding the contract event 0x3053c6252a932554235c173caffc1913604dba3a41cee89516f631c4a1a50a37.

Solidity: event ProxyFactoryUpdated(address indexed oldProxyFactory, address indexed newProxyFactory)

func (*ExchangeFilterer) ParseRemovedAdmin

func (_Exchange *ExchangeFilterer) ParseRemovedAdmin(log types.Log) (*ExchangeRemovedAdmin, error)

ParseRemovedAdmin is a log parse operation binding the contract event 0x787a2e12f4a55b658b8f573c32432ee11a5e8b51677d1e1e937aaf6a0bb5776e.

Solidity: event RemovedAdmin(address indexed removedAdmin, address indexed admin)

func (*ExchangeFilterer) ParseRemovedOperator

func (_Exchange *ExchangeFilterer) ParseRemovedOperator(log types.Log) (*ExchangeRemovedOperator, error)

ParseRemovedOperator is a log parse operation binding the contract event 0xf7262ed0443cc211121ceb1a80d69004f319245615a7488f951f1437fd91642c.

Solidity: event RemovedOperator(address indexed removedOperator, address indexed admin)

func (*ExchangeFilterer) ParseSafeFactoryUpdated

func (_Exchange *ExchangeFilterer) ParseSafeFactoryUpdated(log types.Log) (*ExchangeSafeFactoryUpdated, error)

ParseSafeFactoryUpdated is a log parse operation binding the contract event 0x9726d7faf7429d6b059560dc858ed769377ccdf8b7541eabe12b22548719831f.

Solidity: event SafeFactoryUpdated(address indexed oldSafeFactory, address indexed newSafeFactory)

func (*ExchangeFilterer) ParseTokenRegistered

func (_Exchange *ExchangeFilterer) ParseTokenRegistered(log types.Log) (*ExchangeTokenRegistered, error)

ParseTokenRegistered is a log parse operation binding the contract event 0xbc9a2432e8aeb48327246cddd6e872ef452812b4243c04e6bfb786a2cd8faf0d.

Solidity: event TokenRegistered(uint256 indexed token0, uint256 indexed token1, bytes32 indexed conditionId)

func (*ExchangeFilterer) ParseTradingPaused

func (_Exchange *ExchangeFilterer) ParseTradingPaused(log types.Log) (*ExchangeTradingPaused, error)

ParseTradingPaused is a log parse operation binding the contract event 0x203c4bd3e526634f661575359ff30de3b0edaba6c2cb1eac60f730b6d2d9d536.

Solidity: event TradingPaused(address indexed pauser)

func (*ExchangeFilterer) ParseTradingUnpaused

func (_Exchange *ExchangeFilterer) ParseTradingUnpaused(log types.Log) (*ExchangeTradingUnpaused, error)

ParseTradingUnpaused is a log parse operation binding the contract event 0xa1e8a54850dbd7f520bcc09f47bff152294b77b2081da545a7adf531b7ea283b.

Solidity: event TradingUnpaused(address indexed pauser)

func (*ExchangeFilterer) WatchEIP712DomainChanged

func (_Exchange *ExchangeFilterer) WatchEIP712DomainChanged(opts *bind.WatchOpts, sink chan<- *ExchangeEIP712DomainChanged) (event.Subscription, error)

WatchEIP712DomainChanged is a free log subscription operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*ExchangeFilterer) WatchFeeCharged

func (_Exchange *ExchangeFilterer) WatchFeeCharged(opts *bind.WatchOpts, sink chan<- *ExchangeFeeCharged, receiver []common.Address) (event.Subscription, error)

WatchFeeCharged is a free log subscription operation binding the contract event 0xacffcc86834d0f1a64b0d5a675798deed6ff0bcfc2231edd3480e7288dba7ff4.

Solidity: event FeeCharged(address indexed receiver, uint256 tokenId, uint256 amount)

func (*ExchangeFilterer) WatchNewAdmin

func (_Exchange *ExchangeFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *ExchangeNewAdmin, newAdminAddress []common.Address, admin []common.Address) (event.Subscription, error)

WatchNewAdmin is a free log subscription operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address indexed newAdminAddress, address indexed admin)

func (*ExchangeFilterer) WatchNewOperator

func (_Exchange *ExchangeFilterer) WatchNewOperator(opts *bind.WatchOpts, sink chan<- *ExchangeNewOperator, newOperatorAddress []common.Address, admin []common.Address) (event.Subscription, error)

WatchNewOperator is a free log subscription operation binding the contract event 0xf1e04d73c4304b5ff164f9d10c7473e2a1593b740674a6107975e2a7001c1e5c.

Solidity: event NewOperator(address indexed newOperatorAddress, address indexed admin)

func (*ExchangeFilterer) WatchNonceIncremented

func (_Exchange *ExchangeFilterer) WatchNonceIncremented(opts *bind.WatchOpts, sink chan<- *ExchangeNonceIncremented, user []common.Address) (event.Subscription, error)

WatchNonceIncremented is a free log subscription operation binding the contract event 0xa82a649bbd060c9099cd7b7326e2b0dc9e9af0836480e0f849dc9eaa79710b3b.

Solidity: event NonceIncremented(address indexed user, uint256 newNonce)

func (*ExchangeFilterer) WatchOrderCancelled

func (_Exchange *ExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *ExchangeOrderCancelled, orderHash [][32]byte) (event.Subscription, error)

WatchOrderCancelled is a free log subscription operation binding the contract event 0x5152abf959f6564662358c2e52b702259b78bac5ee7842a0f01937e670efcc7d.

Solidity: event OrderCancelled(bytes32 indexed orderHash)

func (*ExchangeFilterer) WatchOrderFilled

func (_Exchange *ExchangeFilterer) WatchOrderFilled(opts *bind.WatchOpts, sink chan<- *ExchangeOrderFilled, orderHash [][32]byte, maker []common.Address, taker []common.Address) (event.Subscription, error)

WatchOrderFilled is a free log subscription operation binding the contract event 0xd0a08e8c493f9c94f29311604c9de1b4e8c8d4c06bd0c789af57f2d65bfec0f6.

Solidity: event OrderFilled(bytes32 indexed orderHash, address indexed maker, address indexed taker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled, uint256 fee)

func (*ExchangeFilterer) WatchOrdersMatched

func (_Exchange *ExchangeFilterer) WatchOrdersMatched(opts *bind.WatchOpts, sink chan<- *ExchangeOrdersMatched, takerOrderHash [][32]byte, takerOrderMaker []common.Address) (event.Subscription, error)

WatchOrdersMatched is a free log subscription operation binding the contract event 0x63bf4d16b7fa898ef4c4b2b6d90fd201e9c56313b65638af6088d149d2ce956c.

Solidity: event OrdersMatched(bytes32 indexed takerOrderHash, address indexed takerOrderMaker, uint256 makerAssetId, uint256 takerAssetId, uint256 makerAmountFilled, uint256 takerAmountFilled)

func (*ExchangeFilterer) WatchProxyFactoryUpdated

func (_Exchange *ExchangeFilterer) WatchProxyFactoryUpdated(opts *bind.WatchOpts, sink chan<- *ExchangeProxyFactoryUpdated, oldProxyFactory []common.Address, newProxyFactory []common.Address) (event.Subscription, error)

WatchProxyFactoryUpdated is a free log subscription operation binding the contract event 0x3053c6252a932554235c173caffc1913604dba3a41cee89516f631c4a1a50a37.

Solidity: event ProxyFactoryUpdated(address indexed oldProxyFactory, address indexed newProxyFactory)

func (*ExchangeFilterer) WatchRemovedAdmin

func (_Exchange *ExchangeFilterer) WatchRemovedAdmin(opts *bind.WatchOpts, sink chan<- *ExchangeRemovedAdmin, removedAdmin []common.Address, admin []common.Address) (event.Subscription, error)

WatchRemovedAdmin is a free log subscription operation binding the contract event 0x787a2e12f4a55b658b8f573c32432ee11a5e8b51677d1e1e937aaf6a0bb5776e.

Solidity: event RemovedAdmin(address indexed removedAdmin, address indexed admin)

func (*ExchangeFilterer) WatchRemovedOperator

func (_Exchange *ExchangeFilterer) WatchRemovedOperator(opts *bind.WatchOpts, sink chan<- *ExchangeRemovedOperator, removedOperator []common.Address, admin []common.Address) (event.Subscription, error)

WatchRemovedOperator is a free log subscription operation binding the contract event 0xf7262ed0443cc211121ceb1a80d69004f319245615a7488f951f1437fd91642c.

Solidity: event RemovedOperator(address indexed removedOperator, address indexed admin)

func (*ExchangeFilterer) WatchSafeFactoryUpdated

func (_Exchange *ExchangeFilterer) WatchSafeFactoryUpdated(opts *bind.WatchOpts, sink chan<- *ExchangeSafeFactoryUpdated, oldSafeFactory []common.Address, newSafeFactory []common.Address) (event.Subscription, error)

WatchSafeFactoryUpdated is a free log subscription operation binding the contract event 0x9726d7faf7429d6b059560dc858ed769377ccdf8b7541eabe12b22548719831f.

Solidity: event SafeFactoryUpdated(address indexed oldSafeFactory, address indexed newSafeFactory)

func (*ExchangeFilterer) WatchTokenRegistered

func (_Exchange *ExchangeFilterer) WatchTokenRegistered(opts *bind.WatchOpts, sink chan<- *ExchangeTokenRegistered, token0 []*big.Int, token1 []*big.Int, conditionId [][32]byte) (event.Subscription, error)

WatchTokenRegistered is a free log subscription operation binding the contract event 0xbc9a2432e8aeb48327246cddd6e872ef452812b4243c04e6bfb786a2cd8faf0d.

Solidity: event TokenRegistered(uint256 indexed token0, uint256 indexed token1, bytes32 indexed conditionId)

func (*ExchangeFilterer) WatchTradingPaused

func (_Exchange *ExchangeFilterer) WatchTradingPaused(opts *bind.WatchOpts, sink chan<- *ExchangeTradingPaused, pauser []common.Address) (event.Subscription, error)

WatchTradingPaused is a free log subscription operation binding the contract event 0x203c4bd3e526634f661575359ff30de3b0edaba6c2cb1eac60f730b6d2d9d536.

Solidity: event TradingPaused(address indexed pauser)

func (*ExchangeFilterer) WatchTradingUnpaused

func (_Exchange *ExchangeFilterer) WatchTradingUnpaused(opts *bind.WatchOpts, sink chan<- *ExchangeTradingUnpaused, pauser []common.Address) (event.Subscription, error)

WatchTradingUnpaused is a free log subscription operation binding the contract event 0xa1e8a54850dbd7f520bcc09f47bff152294b77b2081da545a7adf531b7ea283b.

Solidity: event TradingUnpaused(address indexed pauser)

type ExchangeNewAdmin

type ExchangeNewAdmin struct {
	NewAdminAddress common.Address
	Admin           common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

ExchangeNewAdmin represents a NewAdmin event raised by the Exchange contract.

type ExchangeNewAdminIterator

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

ExchangeNewAdminIterator is returned from FilterNewAdmin and is used to iterate over the raw logs and unpacked data for NewAdmin events raised by the Exchange contract.

func (*ExchangeNewAdminIterator) Close

func (it *ExchangeNewAdminIterator) Close() error

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

func (*ExchangeNewAdminIterator) Error

func (it *ExchangeNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeNewAdminIterator) Next

func (it *ExchangeNewAdminIterator) Next() bool

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 ExchangeNewOperator

type ExchangeNewOperator struct {
	NewOperatorAddress common.Address
	Admin              common.Address
	Raw                types.Log // Blockchain specific contextual infos
}

ExchangeNewOperator represents a NewOperator event raised by the Exchange contract.

type ExchangeNewOperatorIterator

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

ExchangeNewOperatorIterator is returned from FilterNewOperator and is used to iterate over the raw logs and unpacked data for NewOperator events raised by the Exchange contract.

func (*ExchangeNewOperatorIterator) Close

func (it *ExchangeNewOperatorIterator) Close() error

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

func (*ExchangeNewOperatorIterator) Error

func (it *ExchangeNewOperatorIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeNewOperatorIterator) Next

func (it *ExchangeNewOperatorIterator) Next() bool

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 ExchangeNonceIncremented

type ExchangeNonceIncremented struct {
	User     common.Address
	NewNonce *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ExchangeNonceIncremented represents a NonceIncremented event raised by the Exchange contract.

type ExchangeNonceIncrementedIterator

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

ExchangeNonceIncrementedIterator is returned from FilterNonceIncremented and is used to iterate over the raw logs and unpacked data for NonceIncremented events raised by the Exchange contract.

func (*ExchangeNonceIncrementedIterator) Close

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

func (*ExchangeNonceIncrementedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeNonceIncrementedIterator) 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 ExchangeOrderCancelled

type ExchangeOrderCancelled struct {
	OrderHash [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

ExchangeOrderCancelled represents a OrderCancelled event raised by the Exchange contract.

type ExchangeOrderCancelledIterator

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

ExchangeOrderCancelledIterator is returned from FilterOrderCancelled and is used to iterate over the raw logs and unpacked data for OrderCancelled events raised by the Exchange contract.

func (*ExchangeOrderCancelledIterator) Close

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

func (*ExchangeOrderCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeOrderCancelledIterator) 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 ExchangeOrderFilled

type ExchangeOrderFilled struct {
	OrderHash         [32]byte
	Maker             common.Address
	Taker             common.Address
	MakerAssetId      *big.Int
	TakerAssetId      *big.Int
	MakerAmountFilled *big.Int
	TakerAmountFilled *big.Int
	Fee               *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

ExchangeOrderFilled represents a OrderFilled event raised by the Exchange contract.

type ExchangeOrderFilledIterator

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

ExchangeOrderFilledIterator is returned from FilterOrderFilled and is used to iterate over the raw logs and unpacked data for OrderFilled events raised by the Exchange contract.

func (*ExchangeOrderFilledIterator) Close

func (it *ExchangeOrderFilledIterator) Close() error

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

func (*ExchangeOrderFilledIterator) Error

func (it *ExchangeOrderFilledIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeOrderFilledIterator) Next

func (it *ExchangeOrderFilledIterator) Next() bool

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 ExchangeOrdersMatched

type ExchangeOrdersMatched struct {
	TakerOrderHash    [32]byte
	TakerOrderMaker   common.Address
	MakerAssetId      *big.Int
	TakerAssetId      *big.Int
	MakerAmountFilled *big.Int
	TakerAmountFilled *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

ExchangeOrdersMatched represents a OrdersMatched event raised by the Exchange contract.

type ExchangeOrdersMatchedIterator

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

ExchangeOrdersMatchedIterator is returned from FilterOrdersMatched and is used to iterate over the raw logs and unpacked data for OrdersMatched events raised by the Exchange contract.

func (*ExchangeOrdersMatchedIterator) Close

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

func (*ExchangeOrdersMatchedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeOrdersMatchedIterator) 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 ExchangeProxyFactoryUpdated

type ExchangeProxyFactoryUpdated struct {
	OldProxyFactory common.Address
	NewProxyFactory common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

ExchangeProxyFactoryUpdated represents a ProxyFactoryUpdated event raised by the Exchange contract.

type ExchangeProxyFactoryUpdatedIterator

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

ExchangeProxyFactoryUpdatedIterator is returned from FilterProxyFactoryUpdated and is used to iterate over the raw logs and unpacked data for ProxyFactoryUpdated events raised by the Exchange contract.

func (*ExchangeProxyFactoryUpdatedIterator) Close

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

func (*ExchangeProxyFactoryUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeProxyFactoryUpdatedIterator) 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 ExchangeRaw

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

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

func (*ExchangeRaw) Call

func (_Exchange *ExchangeRaw) 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 (*ExchangeRaw) Transact

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

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

func (*ExchangeRaw) Transfer

func (_Exchange *ExchangeRaw) 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 ExchangeRemovedAdmin

type ExchangeRemovedAdmin struct {
	RemovedAdmin common.Address
	Admin        common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

ExchangeRemovedAdmin represents a RemovedAdmin event raised by the Exchange contract.

type ExchangeRemovedAdminIterator

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

ExchangeRemovedAdminIterator is returned from FilterRemovedAdmin and is used to iterate over the raw logs and unpacked data for RemovedAdmin events raised by the Exchange contract.

func (*ExchangeRemovedAdminIterator) Close

func (it *ExchangeRemovedAdminIterator) Close() error

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

func (*ExchangeRemovedAdminIterator) Error

func (it *ExchangeRemovedAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeRemovedAdminIterator) 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 ExchangeRemovedOperator

type ExchangeRemovedOperator struct {
	RemovedOperator common.Address
	Admin           common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

ExchangeRemovedOperator represents a RemovedOperator event raised by the Exchange contract.

type ExchangeRemovedOperatorIterator

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

ExchangeRemovedOperatorIterator is returned from FilterRemovedOperator and is used to iterate over the raw logs and unpacked data for RemovedOperator events raised by the Exchange contract.

func (*ExchangeRemovedOperatorIterator) Close

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

func (*ExchangeRemovedOperatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeRemovedOperatorIterator) 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 ExchangeSafeFactoryUpdated

type ExchangeSafeFactoryUpdated struct {
	OldSafeFactory common.Address
	NewSafeFactory common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

ExchangeSafeFactoryUpdated represents a SafeFactoryUpdated event raised by the Exchange contract.

type ExchangeSafeFactoryUpdatedIterator

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

ExchangeSafeFactoryUpdatedIterator is returned from FilterSafeFactoryUpdated and is used to iterate over the raw logs and unpacked data for SafeFactoryUpdated events raised by the Exchange contract.

func (*ExchangeSafeFactoryUpdatedIterator) Close

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

func (*ExchangeSafeFactoryUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeSafeFactoryUpdatedIterator) 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 ExchangeSession

type ExchangeSession struct {
	Contract     *Exchange         // 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
}

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

func (*ExchangeSession) AddAdmin

func (_Exchange *ExchangeSession) AddAdmin(admin_ common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin_) returns()

func (*ExchangeSession) AddOperator

func (_Exchange *ExchangeSession) AddOperator(operator_ common.Address) (*types.Transaction, error)

AddOperator is a paid mutator transaction binding the contract method 0x9870d7fe.

Solidity: function addOperator(address operator_) returns()

func (*ExchangeSession) Admins

func (_Exchange *ExchangeSession) Admins(arg0 common.Address) (*big.Int, error)

Admins is a free data retrieval call binding the contract method 0x429b62e5.

Solidity: function admins(address ) view returns(uint256)

func (*ExchangeSession) CancelOrder

func (_Exchange *ExchangeSession) CancelOrder(order Order) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xa6dfcf86.

Solidity: function cancelOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) returns()

func (*ExchangeSession) CancelOrders

func (_Exchange *ExchangeSession) CancelOrders(orders []Order) (*types.Transaction, error)

CancelOrders is a paid mutator transaction binding the contract method 0xfa950b48.

Solidity: function cancelOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders) returns()

func (*ExchangeSession) DomainSeparator

func (_Exchange *ExchangeSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*ExchangeSession) Eip712Domain

func (_Exchange *ExchangeSession) Eip712Domain() (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*ExchangeSession) FillOrder

func (_Exchange *ExchangeSession) FillOrder(order Order, fillAmount *big.Int) (*types.Transaction, error)

FillOrder is a paid mutator transaction binding the contract method 0xfe729aaf.

Solidity: function fillOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order, uint256 fillAmount) returns()

func (*ExchangeSession) FillOrders

func (_Exchange *ExchangeSession) FillOrders(orders []Order, fillAmounts []*big.Int) (*types.Transaction, error)

FillOrders is a paid mutator transaction binding the contract method 0xd798eff6.

Solidity: function fillOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders, uint256[] fillAmounts) returns()

func (*ExchangeSession) GetCollateral

func (_Exchange *ExchangeSession) GetCollateral() (common.Address, error)

GetCollateral is a free data retrieval call binding the contract method 0x5c1548fb.

Solidity: function getCollateral() view returns(address)

func (*ExchangeSession) GetComplement

func (_Exchange *ExchangeSession) GetComplement(token *big.Int) (*big.Int, error)

GetComplement is a free data retrieval call binding the contract method 0xa10f3dce.

Solidity: function getComplement(uint256 token) view returns(uint256)

func (*ExchangeSession) GetConditionId

func (_Exchange *ExchangeSession) GetConditionId(token *big.Int) ([32]byte, error)

GetConditionId is a free data retrieval call binding the contract method 0xd7fb272f.

Solidity: function getConditionId(uint256 token) view returns(bytes32)

func (*ExchangeSession) GetCtf

func (_Exchange *ExchangeSession) GetCtf() (common.Address, error)

GetCtf is a free data retrieval call binding the contract method 0x3b521d78.

Solidity: function getCtf() view returns(address)

func (*ExchangeSession) GetMaxFeeRate

func (_Exchange *ExchangeSession) GetMaxFeeRate() (*big.Int, error)

GetMaxFeeRate is a free data retrieval call binding the contract method 0x4a2a11f5.

Solidity: function getMaxFeeRate() pure returns(uint256)

func (*ExchangeSession) GetOrderStatus

func (_Exchange *ExchangeSession) GetOrderStatus(orderHash [32]byte) (OrderStatus, error)

GetOrderStatus is a free data retrieval call binding the contract method 0x46423aa7.

Solidity: function getOrderStatus(bytes32 orderHash) view returns((bool,uint256))

func (*ExchangeSession) GetPolyProxyFactoryImplementation

func (_Exchange *ExchangeSession) GetPolyProxyFactoryImplementation() (common.Address, error)

GetPolyProxyFactoryImplementation is a free data retrieval call binding the contract method 0x06b9d691.

Solidity: function getPolyProxyFactoryImplementation() view returns(address)

func (*ExchangeSession) GetPolyProxyWalletAddress

func (_Exchange *ExchangeSession) GetPolyProxyWalletAddress(_addr common.Address) (common.Address, error)

GetPolyProxyWalletAddress is a free data retrieval call binding the contract method 0xedef7d8e.

Solidity: function getPolyProxyWalletAddress(address _addr) view returns(address)

func (*ExchangeSession) GetProxyFactory

func (_Exchange *ExchangeSession) GetProxyFactory() (common.Address, error)

GetProxyFactory is a free data retrieval call binding the contract method 0xb28c51c0.

Solidity: function getProxyFactory() view returns(address)

func (*ExchangeSession) GetSafeAddress

func (_Exchange *ExchangeSession) GetSafeAddress(_addr common.Address) (common.Address, error)

GetSafeAddress is a free data retrieval call binding the contract method 0xa287bdf1.

Solidity: function getSafeAddress(address _addr) view returns(address)

func (*ExchangeSession) GetSafeFactory

func (_Exchange *ExchangeSession) GetSafeFactory() (common.Address, error)

GetSafeFactory is a free data retrieval call binding the contract method 0x75d7370a.

Solidity: function getSafeFactory() view returns(address)

func (*ExchangeSession) GetSafeFactoryImplementation

func (_Exchange *ExchangeSession) GetSafeFactoryImplementation() (common.Address, error)

GetSafeFactoryImplementation is a free data retrieval call binding the contract method 0xe03ac3d0.

Solidity: function getSafeFactoryImplementation() view returns(address)

func (*ExchangeSession) HashOrder

func (_Exchange *ExchangeSession) HashOrder(order Order) ([32]byte, error)

HashOrder is a free data retrieval call binding the contract method 0xe50e4f97.

Solidity: function hashOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns(bytes32)

func (*ExchangeSession) IncrementNonce

func (_Exchange *ExchangeSession) IncrementNonce() (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x627cdcb9.

Solidity: function incrementNonce() returns()

func (*ExchangeSession) IsAdmin

func (_Exchange *ExchangeSession) IsAdmin(usr common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0x24d7806c.

Solidity: function isAdmin(address usr) view returns(bool)

func (*ExchangeSession) IsOperator

func (_Exchange *ExchangeSession) IsOperator(usr common.Address) (bool, error)

IsOperator is a free data retrieval call binding the contract method 0x6d70f7ae.

Solidity: function isOperator(address usr) view returns(bool)

func (*ExchangeSession) IsValidNonce

func (_Exchange *ExchangeSession) IsValidNonce(usr common.Address, nonce *big.Int) (bool, error)

IsValidNonce is a free data retrieval call binding the contract method 0x0647ee20.

Solidity: function isValidNonce(address usr, uint256 nonce) view returns(bool)

func (*ExchangeSession) MatchOrders

func (_Exchange *ExchangeSession) MatchOrders(takerOrder Order, makerOrders []Order, takerFillAmount *big.Int, makerFillAmounts []*big.Int) (*types.Transaction, error)

MatchOrders is a paid mutator transaction binding the contract method 0xe60f0c05.

Solidity: function matchOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) takerOrder, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] makerOrders, uint256 takerFillAmount, uint256[] makerFillAmounts) returns()

func (*ExchangeSession) Nonces

func (_Exchange *ExchangeSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*ExchangeSession) OnERC1155BatchReceived

func (_Exchange *ExchangeSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

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

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ExchangeSession) OnERC1155Received

func (_Exchange *ExchangeSession) 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 (*ExchangeSession) Operators

func (_Exchange *ExchangeSession) Operators(arg0 common.Address) (*big.Int, error)

Operators is a free data retrieval call binding the contract method 0x13e7c9d8.

Solidity: function operators(address ) view returns(uint256)

func (*ExchangeSession) OrderStatus

func (_Exchange *ExchangeSession) OrderStatus(arg0 [32]byte) (struct {
	IsFilledOrCancelled bool
	Remaining           *big.Int
}, error)

OrderStatus is a free data retrieval call binding the contract method 0x2dff692d.

Solidity: function orderStatus(bytes32 ) view returns(bool isFilledOrCancelled, uint256 remaining)

func (*ExchangeSession) ParentCollectionId

func (_Exchange *ExchangeSession) ParentCollectionId() ([32]byte, error)

ParentCollectionId is a free data retrieval call binding the contract method 0x44bea37e.

Solidity: function parentCollectionId() view returns(bytes32)

func (*ExchangeSession) PauseTrading

func (_Exchange *ExchangeSession) PauseTrading() (*types.Transaction, error)

PauseTrading is a paid mutator transaction binding the contract method 0x1031e36e.

Solidity: function pauseTrading() returns()

func (*ExchangeSession) Paused

func (_Exchange *ExchangeSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*ExchangeSession) ProxyFactory

func (_Exchange *ExchangeSession) ProxyFactory() (common.Address, error)

ProxyFactory is a free data retrieval call binding the contract method 0xc10f1a75.

Solidity: function proxyFactory() view returns(address)

func (*ExchangeSession) RegisterToken

func (_Exchange *ExchangeSession) RegisterToken(token *big.Int, complement *big.Int, conditionId [32]byte) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x68c7450f.

Solidity: function registerToken(uint256 token, uint256 complement, bytes32 conditionId) returns()

func (*ExchangeSession) Registry

func (_Exchange *ExchangeSession) Registry(arg0 *big.Int) (struct {
	Complement  *big.Int
	ConditionId [32]byte
}, error)

Registry is a free data retrieval call binding the contract method 0x5893253c.

Solidity: function registry(uint256 ) view returns(uint256 complement, bytes32 conditionId)

func (*ExchangeSession) RemoveAdmin

func (_Exchange *ExchangeSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*ExchangeSession) RemoveOperator

func (_Exchange *ExchangeSession) RemoveOperator(operator common.Address) (*types.Transaction, error)

RemoveOperator is a paid mutator transaction binding the contract method 0xac8a584a.

Solidity: function removeOperator(address operator) returns()

func (*ExchangeSession) RenounceAdminRole

func (_Exchange *ExchangeSession) RenounceAdminRole() (*types.Transaction, error)

RenounceAdminRole is a paid mutator transaction binding the contract method 0x83b8a5ae.

Solidity: function renounceAdminRole() returns()

func (*ExchangeSession) RenounceOperatorRole

func (_Exchange *ExchangeSession) RenounceOperatorRole() (*types.Transaction, error)

RenounceOperatorRole is a paid mutator transaction binding the contract method 0x3d6d3598.

Solidity: function renounceOperatorRole() returns()

func (*ExchangeSession) SafeFactory

func (_Exchange *ExchangeSession) SafeFactory() (common.Address, error)

SafeFactory is a free data retrieval call binding the contract method 0x131e7e1c.

Solidity: function safeFactory() view returns(address)

func (*ExchangeSession) SetProxyFactory

func (_Exchange *ExchangeSession) SetProxyFactory(_newProxyFactory common.Address) (*types.Transaction, error)

SetProxyFactory is a paid mutator transaction binding the contract method 0xfbddd751.

Solidity: function setProxyFactory(address _newProxyFactory) returns()

func (*ExchangeSession) SetSafeFactory

func (_Exchange *ExchangeSession) SetSafeFactory(_newSafeFactory common.Address) (*types.Transaction, error)

SetSafeFactory is a paid mutator transaction binding the contract method 0x4544f055.

Solidity: function setSafeFactory(address _newSafeFactory) returns()

func (*ExchangeSession) SupportsInterface

func (_Exchange *ExchangeSession) SupportsInterface(interfaceId [4]byte) (bool, error)

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

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ExchangeSession) UnpauseTrading

func (_Exchange *ExchangeSession) UnpauseTrading() (*types.Transaction, error)

UnpauseTrading is a paid mutator transaction binding the contract method 0x456068d2.

Solidity: function unpauseTrading() returns()

func (*ExchangeSession) ValidateComplement

func (_Exchange *ExchangeSession) ValidateComplement(token *big.Int, complement *big.Int) error

ValidateComplement is a free data retrieval call binding the contract method 0xd82da838.

Solidity: function validateComplement(uint256 token, uint256 complement) view returns()

func (*ExchangeSession) ValidateOrder

func (_Exchange *ExchangeSession) ValidateOrder(order Order) error

ValidateOrder is a free data retrieval call binding the contract method 0x654f0ce4.

Solidity: function validateOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeSession) ValidateOrderSignature

func (_Exchange *ExchangeSession) ValidateOrderSignature(orderHash [32]byte, order Order) error

ValidateOrderSignature is a free data retrieval call binding the contract method 0xe2eec405.

Solidity: function validateOrderSignature(bytes32 orderHash, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) view returns()

func (*ExchangeSession) ValidateTokenId

func (_Exchange *ExchangeSession) ValidateTokenId(tokenId *big.Int) error

ValidateTokenId is a free data retrieval call binding the contract method 0x34600901.

Solidity: function validateTokenId(uint256 tokenId) view returns()

type ExchangeTokenRegistered

type ExchangeTokenRegistered struct {
	Token0      *big.Int
	Token1      *big.Int
	ConditionId [32]byte
	Raw         types.Log // Blockchain specific contextual infos
}

ExchangeTokenRegistered represents a TokenRegistered event raised by the Exchange contract.

type ExchangeTokenRegisteredIterator

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

ExchangeTokenRegisteredIterator is returned from FilterTokenRegistered and is used to iterate over the raw logs and unpacked data for TokenRegistered events raised by the Exchange contract.

func (*ExchangeTokenRegisteredIterator) Close

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

func (*ExchangeTokenRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeTokenRegisteredIterator) 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 ExchangeTradingPaused

type ExchangeTradingPaused struct {
	Pauser common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

ExchangeTradingPaused represents a TradingPaused event raised by the Exchange contract.

type ExchangeTradingPausedIterator

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

ExchangeTradingPausedIterator is returned from FilterTradingPaused and is used to iterate over the raw logs and unpacked data for TradingPaused events raised by the Exchange contract.

func (*ExchangeTradingPausedIterator) Close

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

func (*ExchangeTradingPausedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeTradingPausedIterator) 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 ExchangeTradingUnpaused

type ExchangeTradingUnpaused struct {
	Pauser common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

ExchangeTradingUnpaused represents a TradingUnpaused event raised by the Exchange contract.

type ExchangeTradingUnpausedIterator

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

ExchangeTradingUnpausedIterator is returned from FilterTradingUnpaused and is used to iterate over the raw logs and unpacked data for TradingUnpaused events raised by the Exchange contract.

func (*ExchangeTradingUnpausedIterator) Close

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

func (*ExchangeTradingUnpausedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeTradingUnpausedIterator) 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 ExchangeTransactor

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

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

func NewExchangeTransactor

func NewExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*ExchangeTransactor, error)

NewExchangeTransactor creates a new write-only instance of Exchange, bound to a specific deployed contract.

func (*ExchangeTransactor) AddAdmin

func (_Exchange *ExchangeTransactor) AddAdmin(opts *bind.TransactOpts, admin_ common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin_) returns()

func (*ExchangeTransactor) AddOperator

func (_Exchange *ExchangeTransactor) AddOperator(opts *bind.TransactOpts, operator_ common.Address) (*types.Transaction, error)

AddOperator is a paid mutator transaction binding the contract method 0x9870d7fe.

Solidity: function addOperator(address operator_) returns()

func (*ExchangeTransactor) CancelOrder

func (_Exchange *ExchangeTransactor) CancelOrder(opts *bind.TransactOpts, order Order) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xa6dfcf86.

Solidity: function cancelOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) returns()

func (*ExchangeTransactor) CancelOrders

func (_Exchange *ExchangeTransactor) CancelOrders(opts *bind.TransactOpts, orders []Order) (*types.Transaction, error)

CancelOrders is a paid mutator transaction binding the contract method 0xfa950b48.

Solidity: function cancelOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders) returns()

func (*ExchangeTransactor) FillOrder

func (_Exchange *ExchangeTransactor) FillOrder(opts *bind.TransactOpts, order Order, fillAmount *big.Int) (*types.Transaction, error)

FillOrder is a paid mutator transaction binding the contract method 0xfe729aaf.

Solidity: function fillOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order, uint256 fillAmount) returns()

func (*ExchangeTransactor) FillOrders

func (_Exchange *ExchangeTransactor) FillOrders(opts *bind.TransactOpts, orders []Order, fillAmounts []*big.Int) (*types.Transaction, error)

FillOrders is a paid mutator transaction binding the contract method 0xd798eff6.

Solidity: function fillOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders, uint256[] fillAmounts) returns()

func (*ExchangeTransactor) IncrementNonce

func (_Exchange *ExchangeTransactor) IncrementNonce(opts *bind.TransactOpts) (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x627cdcb9.

Solidity: function incrementNonce() returns()

func (*ExchangeTransactor) MatchOrders

func (_Exchange *ExchangeTransactor) MatchOrders(opts *bind.TransactOpts, takerOrder Order, makerOrders []Order, takerFillAmount *big.Int, makerFillAmounts []*big.Int) (*types.Transaction, error)

MatchOrders is a paid mutator transaction binding the contract method 0xe60f0c05.

Solidity: function matchOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) takerOrder, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] makerOrders, uint256 takerFillAmount, uint256[] makerFillAmounts) returns()

func (*ExchangeTransactor) OnERC1155BatchReceived

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

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

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ExchangeTransactor) OnERC1155Received

func (_Exchange *ExchangeTransactor) 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 (*ExchangeTransactor) PauseTrading

func (_Exchange *ExchangeTransactor) PauseTrading(opts *bind.TransactOpts) (*types.Transaction, error)

PauseTrading is a paid mutator transaction binding the contract method 0x1031e36e.

Solidity: function pauseTrading() returns()

func (*ExchangeTransactor) RegisterToken

func (_Exchange *ExchangeTransactor) RegisterToken(opts *bind.TransactOpts, token *big.Int, complement *big.Int, conditionId [32]byte) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x68c7450f.

Solidity: function registerToken(uint256 token, uint256 complement, bytes32 conditionId) returns()

func (*ExchangeTransactor) RemoveAdmin

func (_Exchange *ExchangeTransactor) RemoveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*ExchangeTransactor) RemoveOperator

func (_Exchange *ExchangeTransactor) RemoveOperator(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error)

RemoveOperator is a paid mutator transaction binding the contract method 0xac8a584a.

Solidity: function removeOperator(address operator) returns()

func (*ExchangeTransactor) RenounceAdminRole

func (_Exchange *ExchangeTransactor) RenounceAdminRole(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceAdminRole is a paid mutator transaction binding the contract method 0x83b8a5ae.

Solidity: function renounceAdminRole() returns()

func (*ExchangeTransactor) RenounceOperatorRole

func (_Exchange *ExchangeTransactor) RenounceOperatorRole(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOperatorRole is a paid mutator transaction binding the contract method 0x3d6d3598.

Solidity: function renounceOperatorRole() returns()

func (*ExchangeTransactor) SetProxyFactory

func (_Exchange *ExchangeTransactor) SetProxyFactory(opts *bind.TransactOpts, _newProxyFactory common.Address) (*types.Transaction, error)

SetProxyFactory is a paid mutator transaction binding the contract method 0xfbddd751.

Solidity: function setProxyFactory(address _newProxyFactory) returns()

func (*ExchangeTransactor) SetSafeFactory

func (_Exchange *ExchangeTransactor) SetSafeFactory(opts *bind.TransactOpts, _newSafeFactory common.Address) (*types.Transaction, error)

SetSafeFactory is a paid mutator transaction binding the contract method 0x4544f055.

Solidity: function setSafeFactory(address _newSafeFactory) returns()

func (*ExchangeTransactor) UnpauseTrading

func (_Exchange *ExchangeTransactor) UnpauseTrading(opts *bind.TransactOpts) (*types.Transaction, error)

UnpauseTrading is a paid mutator transaction binding the contract method 0x456068d2.

Solidity: function unpauseTrading() returns()

type ExchangeTransactorRaw

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

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

func (*ExchangeTransactorRaw) Transact

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

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

func (*ExchangeTransactorRaw) Transfer

func (_Exchange *ExchangeTransactorRaw) 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 ExchangeTransactorSession

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

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

func (*ExchangeTransactorSession) AddAdmin

func (_Exchange *ExchangeTransactorSession) AddAdmin(admin_ common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(address admin_) returns()

func (*ExchangeTransactorSession) AddOperator

func (_Exchange *ExchangeTransactorSession) AddOperator(operator_ common.Address) (*types.Transaction, error)

AddOperator is a paid mutator transaction binding the contract method 0x9870d7fe.

Solidity: function addOperator(address operator_) returns()

func (*ExchangeTransactorSession) CancelOrder

func (_Exchange *ExchangeTransactorSession) CancelOrder(order Order) (*types.Transaction, error)

CancelOrder is a paid mutator transaction binding the contract method 0xa6dfcf86.

Solidity: function cancelOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order) returns()

func (*ExchangeTransactorSession) CancelOrders

func (_Exchange *ExchangeTransactorSession) CancelOrders(orders []Order) (*types.Transaction, error)

CancelOrders is a paid mutator transaction binding the contract method 0xfa950b48.

Solidity: function cancelOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders) returns()

func (*ExchangeTransactorSession) FillOrder

func (_Exchange *ExchangeTransactorSession) FillOrder(order Order, fillAmount *big.Int) (*types.Transaction, error)

FillOrder is a paid mutator transaction binding the contract method 0xfe729aaf.

Solidity: function fillOrder((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) order, uint256 fillAmount) returns()

func (*ExchangeTransactorSession) FillOrders

func (_Exchange *ExchangeTransactorSession) FillOrders(orders []Order, fillAmounts []*big.Int) (*types.Transaction, error)

FillOrders is a paid mutator transaction binding the contract method 0xd798eff6.

Solidity: function fillOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] orders, uint256[] fillAmounts) returns()

func (*ExchangeTransactorSession) IncrementNonce

func (_Exchange *ExchangeTransactorSession) IncrementNonce() (*types.Transaction, error)

IncrementNonce is a paid mutator transaction binding the contract method 0x627cdcb9.

Solidity: function incrementNonce() returns()

func (*ExchangeTransactorSession) MatchOrders

func (_Exchange *ExchangeTransactorSession) MatchOrders(takerOrder Order, makerOrders []Order, takerFillAmount *big.Int, makerFillAmounts []*big.Int) (*types.Transaction, error)

MatchOrders is a paid mutator transaction binding the contract method 0xe60f0c05.

Solidity: function matchOrders((uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes) takerOrder, (uint256,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint8,uint8,bytes)[] makerOrders, uint256 takerFillAmount, uint256[] makerFillAmounts) returns()

func (*ExchangeTransactorSession) OnERC1155BatchReceived

func (_Exchange *ExchangeTransactorSession) OnERC1155BatchReceived(arg0 common.Address, arg1 common.Address, arg2 []*big.Int, arg3 []*big.Int, arg4 []byte) (*types.Transaction, error)

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

Solidity: function onERC1155BatchReceived(address , address , uint256[] , uint256[] , bytes ) returns(bytes4)

func (*ExchangeTransactorSession) OnERC1155Received

func (_Exchange *ExchangeTransactorSession) 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 (*ExchangeTransactorSession) PauseTrading

func (_Exchange *ExchangeTransactorSession) PauseTrading() (*types.Transaction, error)

PauseTrading is a paid mutator transaction binding the contract method 0x1031e36e.

Solidity: function pauseTrading() returns()

func (*ExchangeTransactorSession) RegisterToken

func (_Exchange *ExchangeTransactorSession) RegisterToken(token *big.Int, complement *big.Int, conditionId [32]byte) (*types.Transaction, error)

RegisterToken is a paid mutator transaction binding the contract method 0x68c7450f.

Solidity: function registerToken(uint256 token, uint256 complement, bytes32 conditionId) returns()

func (*ExchangeTransactorSession) RemoveAdmin

func (_Exchange *ExchangeTransactorSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(address admin) returns()

func (*ExchangeTransactorSession) RemoveOperator

func (_Exchange *ExchangeTransactorSession) RemoveOperator(operator common.Address) (*types.Transaction, error)

RemoveOperator is a paid mutator transaction binding the contract method 0xac8a584a.

Solidity: function removeOperator(address operator) returns()

func (*ExchangeTransactorSession) RenounceAdminRole

func (_Exchange *ExchangeTransactorSession) RenounceAdminRole() (*types.Transaction, error)

RenounceAdminRole is a paid mutator transaction binding the contract method 0x83b8a5ae.

Solidity: function renounceAdminRole() returns()

func (*ExchangeTransactorSession) RenounceOperatorRole

func (_Exchange *ExchangeTransactorSession) RenounceOperatorRole() (*types.Transaction, error)

RenounceOperatorRole is a paid mutator transaction binding the contract method 0x3d6d3598.

Solidity: function renounceOperatorRole() returns()

func (*ExchangeTransactorSession) SetProxyFactory

func (_Exchange *ExchangeTransactorSession) SetProxyFactory(_newProxyFactory common.Address) (*types.Transaction, error)

SetProxyFactory is a paid mutator transaction binding the contract method 0xfbddd751.

Solidity: function setProxyFactory(address _newProxyFactory) returns()

func (*ExchangeTransactorSession) SetSafeFactory

func (_Exchange *ExchangeTransactorSession) SetSafeFactory(_newSafeFactory common.Address) (*types.Transaction, error)

SetSafeFactory is a paid mutator transaction binding the contract method 0x4544f055.

Solidity: function setSafeFactory(address _newSafeFactory) returns()

func (*ExchangeTransactorSession) UnpauseTrading

func (_Exchange *ExchangeTransactorSession) UnpauseTrading() (*types.Transaction, error)

UnpauseTrading is a paid mutator transaction binding the contract method 0x456068d2.

Solidity: function unpauseTrading() returns()

type Order

type Order struct {
	Salt          *big.Int
	Maker         common.Address
	Signer        common.Address
	Taker         common.Address
	TokenId       *big.Int
	MakerAmount   *big.Int
	TakerAmount   *big.Int
	Expiration    *big.Int
	Nonce         *big.Int
	FeeRateBps    *big.Int
	Side          uint8
	SignatureType uint8
	Signature     []byte
}

Order is an auto generated low-level Go binding around an user-defined struct.

type OrderStatus

type OrderStatus struct {
	IsFilledOrCancelled bool
	Remaining           *big.Int
}

OrderStatus is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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