polymarket

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressPolyMarketCTFExchange        = common.HexToAddress("0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E")
	AddressPolyMarketNegRiskCTFExchange = common.HexToAddress("0xC5d563A36AE78145C45a50134d48A1215220f80a")
	AddressPolyMarketConditionTokens    = common.HexToAddress("0x4D97DCd97eC945f40cF65F87097ACe5EA0476045")

	// EventOrderMatched   = contract.EventHash("OrdersMatched(bytes32,address,uint256,uint256,uint256,uint256)")
	EventOrderFinalized = contract.EventHash("OrderFilled(bytes32,address,address,uint256,uint256,uint256,uint256,uint256)")
)
View Source
var CTFExchangeABI = CTFExchangeMetaData.ABI

CTFExchangeABI is the input ABI used to generate the binding from. Deprecated: Use CTFExchangeMetaData.ABI instead.

View Source
var CTFExchangeMetaData = &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\":\"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\":[],\"name\":\"TooLittleTokensReceived\",\"type\":\"error\"},{\"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\":\"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\":[{\"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\"}]",
}

CTFExchangeMetaData contains all meta data concerning the CTFExchange contract.

View Source
var ConditionTokensABI = ConditionTokensMetaData.ABI

ConditionTokensABI is the input ABI used to generate the binding from. Deprecated: Use ConditionTokensMetaData.ABI instead.

View Source
var ConditionTokensMetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"name\":\"indexSets\",\"type\":\"uint256[]\"}],\"name\":\"redeemPositions\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"payoutNumerators\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"address\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"ids\",\"type\":\"uint256[]\"},{\"name\":\"values\",\"type\":\"uint256[]\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"collectionId\",\"type\":\"bytes32\"}],\"name\":\"getPositionId\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owners\",\"type\":\"address[]\"},{\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"name\":\"partition\",\"type\":\"uint256[]\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"splitPosition\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"oracle\",\"type\":\"address\"},{\"name\":\"questionId\",\"type\":\"bytes32\"},{\"name\":\"outcomeSlotCount\",\"type\":\"uint256\"}],\"name\":\"getConditionId\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"name\":\"indexSet\",\"type\":\"uint256\"}],\"name\":\"getCollectionId\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"name\":\"partition\",\"type\":\"uint256[]\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mergePositions\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"operator\",\"type\":\"address\"},{\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"questionId\",\"type\":\"bytes32\"},{\"name\":\"payouts\",\"type\":\"uint256[]\"}],\"name\":\"reportPayouts\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"conditionId\",\"type\":\"bytes32\"}],\"name\":\"getOutcomeSlotCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"oracle\",\"type\":\"address\"},{\"name\":\"questionId\",\"type\":\"bytes32\"},{\"name\":\"outcomeSlotCount\",\"type\":\"uint256\"}],\"name\":\"prepareCondition\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"payoutDenominator\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"address\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"id\",\"type\":\"uint256\"},{\"name\":\"value\",\"type\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"oracle\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"questionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"outcomeSlotCount\",\"type\":\"uint256\"}],\"name\":\"ConditionPreparation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"oracle\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"questionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"outcomeSlotCount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"payoutNumerators\",\"type\":\"uint256[]\"}],\"name\":\"ConditionResolution\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"stakeholder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"collateralToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"partition\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"PositionSplit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"stakeholder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"collateralToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"partition\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"PositionsMerge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"redeemer\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"collateralToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"parentCollectionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"conditionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"indexSets\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"payout\",\"type\":\"uint256\"}],\"name\":\"PayoutRedemption\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"}]",
}

ConditionTokensMetaData contains all meta data concerning the ConditionTokens contract.

Functions

This section is empty.

Types

type CTFExchange

type CTFExchange struct {
	CTFExchangeCaller     // Read-only binding to the contract
	CTFExchangeTransactor // Write-only binding to the contract
	CTFExchangeFilterer   // Log filterer for contract events
}

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

func NewCTFExchange

func NewCTFExchange(address common.Address, backend bind.ContractBackend) (*CTFExchange, error)

NewCTFExchange creates a new instance of CTFExchange, bound to a specific deployed contract.

type CTFExchangeCaller

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

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

func NewCTFExchangeCaller

func NewCTFExchangeCaller(address common.Address, caller bind.ContractCaller) (*CTFExchangeCaller, error)

NewCTFExchangeCaller creates a new read-only instance of CTFExchange, bound to a specific deployed contract.

func (*CTFExchangeCaller) Admins

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) DomainSeparator

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetCollateral

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetComplement

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetConditionId

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetCtf

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetMaxFeeRate

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetOrderStatus

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetPolyProxyFactoryImplementation

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetPolyProxyWalletAddress

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetProxyFactory

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetSafeAddress

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetSafeFactory

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) GetSafeFactoryImplementation

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) HashOrder

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) IsAdmin

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) IsOperator

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) IsValidNonce

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) Nonces

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) Operators

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) OrderStatus

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ParentCollectionId

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) Paused

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ProxyFactory

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) Registry

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) SafeFactory

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) SupportsInterface

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ValidateComplement

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ValidateOrder

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ValidateOrderSignature

func (_CTFExchange *CTFExchangeCaller) 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 (*CTFExchangeCaller) ValidateTokenId

func (_CTFExchange *CTFExchangeCaller) 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 CTFExchangeCallerRaw

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

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

func (*CTFExchangeCallerRaw) Call

func (_CTFExchange *CTFExchangeCallerRaw) 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 CTFExchangeCallerSession

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

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

func (*CTFExchangeCallerSession) Admins

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) DomainSeparator

func (_CTFExchange *CTFExchangeCallerSession) DomainSeparator() ([32]byte, error)

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

Solidity: function domainSeparator() view returns(bytes32)

func (*CTFExchangeCallerSession) GetCollateral

func (_CTFExchange *CTFExchangeCallerSession) GetCollateral() (common.Address, error)

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

Solidity: function getCollateral() view returns(address)

func (*CTFExchangeCallerSession) GetComplement

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) GetConditionId

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) GetCtf

func (_CTFExchange *CTFExchangeCallerSession) GetCtf() (common.Address, error)

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

Solidity: function getCtf() view returns(address)

func (*CTFExchangeCallerSession) GetMaxFeeRate

func (_CTFExchange *CTFExchangeCallerSession) GetMaxFeeRate() (*big.Int, error)

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

Solidity: function getMaxFeeRate() pure returns(uint256)

func (*CTFExchangeCallerSession) GetOrderStatus

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) GetPolyProxyFactoryImplementation

func (_CTFExchange *CTFExchangeCallerSession) GetPolyProxyFactoryImplementation() (common.Address, error)

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

Solidity: function getPolyProxyFactoryImplementation() view returns(address)

func (*CTFExchangeCallerSession) GetPolyProxyWalletAddress

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) GetProxyFactory

func (_CTFExchange *CTFExchangeCallerSession) GetProxyFactory() (common.Address, error)

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

Solidity: function getProxyFactory() view returns(address)

func (*CTFExchangeCallerSession) GetSafeAddress

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) GetSafeFactory

func (_CTFExchange *CTFExchangeCallerSession) GetSafeFactory() (common.Address, error)

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

Solidity: function getSafeFactory() view returns(address)

func (*CTFExchangeCallerSession) GetSafeFactoryImplementation

func (_CTFExchange *CTFExchangeCallerSession) GetSafeFactoryImplementation() (common.Address, error)

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

Solidity: function getSafeFactoryImplementation() view returns(address)

func (*CTFExchangeCallerSession) HashOrder

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) IsAdmin

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) IsOperator

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) IsValidNonce

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) Nonces

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) Operators

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) OrderStatus

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) ParentCollectionId

func (_CTFExchange *CTFExchangeCallerSession) ParentCollectionId() ([32]byte, error)

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

Solidity: function parentCollectionId() view returns(bytes32)

func (*CTFExchangeCallerSession) Paused

func (_CTFExchange *CTFExchangeCallerSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*CTFExchangeCallerSession) ProxyFactory

func (_CTFExchange *CTFExchangeCallerSession) ProxyFactory() (common.Address, error)

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

Solidity: function proxyFactory() view returns(address)

func (*CTFExchangeCallerSession) Registry

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) SafeFactory

func (_CTFExchange *CTFExchangeCallerSession) SafeFactory() (common.Address, error)

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

Solidity: function safeFactory() view returns(address)

func (*CTFExchangeCallerSession) SupportsInterface

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) ValidateComplement

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) ValidateOrder

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) ValidateOrderSignature

func (_CTFExchange *CTFExchangeCallerSession) 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 (*CTFExchangeCallerSession) ValidateTokenId

func (_CTFExchange *CTFExchangeCallerSession) 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 CTFExchangeFeeCharged

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

CTFExchangeFeeCharged represents a FeeCharged event raised by the CTFExchange contract.

type CTFExchangeFeeChargedIterator

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

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

func (*CTFExchangeFeeChargedIterator) Close

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

func (*CTFExchangeFeeChargedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeFeeChargedIterator) 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 CTFExchangeFilterer

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

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

func NewCTFExchangeFilterer

func NewCTFExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*CTFExchangeFilterer, error)

NewCTFExchangeFilterer creates a new log filterer instance of CTFExchange, bound to a specific deployed contract.

func (*CTFExchangeFilterer) FilterFeeCharged

func (_CTFExchange *CTFExchangeFilterer) FilterFeeCharged(opts *bind.FilterOpts, receiver []common.Address) (*CTFExchangeFeeChargedIterator, error)

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

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

func (*CTFExchangeFilterer) FilterNewAdmin

func (_CTFExchange *CTFExchangeFilterer) FilterNewAdmin(opts *bind.FilterOpts, newAdminAddress []common.Address, admin []common.Address) (*CTFExchangeNewAdminIterator, error)

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

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

func (*CTFExchangeFilterer) FilterNewOperator

func (_CTFExchange *CTFExchangeFilterer) FilterNewOperator(opts *bind.FilterOpts, newOperatorAddress []common.Address, admin []common.Address) (*CTFExchangeNewOperatorIterator, error)

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

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

func (*CTFExchangeFilterer) FilterOrderCancelled

func (_CTFExchange *CTFExchangeFilterer) FilterOrderCancelled(opts *bind.FilterOpts, orderHash [][32]byte) (*CTFExchangeOrderCancelledIterator, error)

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

Solidity: event OrderCancelled(bytes32 indexed orderHash)

func (*CTFExchangeFilterer) FilterOrderFilled

func (_CTFExchange *CTFExchangeFilterer) FilterOrderFilled(opts *bind.FilterOpts, orderHash [][32]byte, maker []common.Address, taker []common.Address) (*CTFExchangeOrderFilledIterator, 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 (*CTFExchangeFilterer) FilterOrdersMatched

func (_CTFExchange *CTFExchangeFilterer) FilterOrdersMatched(opts *bind.FilterOpts, takerOrderHash [][32]byte, takerOrderMaker []common.Address) (*CTFExchangeOrdersMatchedIterator, 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 (*CTFExchangeFilterer) FilterProxyFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) FilterProxyFactoryUpdated(opts *bind.FilterOpts, oldProxyFactory []common.Address, newProxyFactory []common.Address) (*CTFExchangeProxyFactoryUpdatedIterator, error)

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

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

func (*CTFExchangeFilterer) FilterRemovedAdmin

func (_CTFExchange *CTFExchangeFilterer) FilterRemovedAdmin(opts *bind.FilterOpts, removedAdmin []common.Address, admin []common.Address) (*CTFExchangeRemovedAdminIterator, error)

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

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

func (*CTFExchangeFilterer) FilterRemovedOperator

func (_CTFExchange *CTFExchangeFilterer) FilterRemovedOperator(opts *bind.FilterOpts, removedOperator []common.Address, admin []common.Address) (*CTFExchangeRemovedOperatorIterator, error)

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

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

func (*CTFExchangeFilterer) FilterSafeFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) FilterSafeFactoryUpdated(opts *bind.FilterOpts, oldSafeFactory []common.Address, newSafeFactory []common.Address) (*CTFExchangeSafeFactoryUpdatedIterator, error)

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

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

func (*CTFExchangeFilterer) FilterTokenRegistered

func (_CTFExchange *CTFExchangeFilterer) FilterTokenRegistered(opts *bind.FilterOpts, token0 []*big.Int, token1 []*big.Int, conditionId [][32]byte) (*CTFExchangeTokenRegisteredIterator, 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 (*CTFExchangeFilterer) FilterTradingPaused

func (_CTFExchange *CTFExchangeFilterer) FilterTradingPaused(opts *bind.FilterOpts, pauser []common.Address) (*CTFExchangeTradingPausedIterator, error)

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

Solidity: event TradingPaused(address indexed pauser)

func (*CTFExchangeFilterer) FilterTradingUnpaused

func (_CTFExchange *CTFExchangeFilterer) FilterTradingUnpaused(opts *bind.FilterOpts, pauser []common.Address) (*CTFExchangeTradingUnpausedIterator, error)

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

Solidity: event TradingUnpaused(address indexed pauser)

func (*CTFExchangeFilterer) ParseFeeCharged

func (_CTFExchange *CTFExchangeFilterer) ParseFeeCharged(log types.Log) (*CTFExchangeFeeCharged, error)

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

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

func (*CTFExchangeFilterer) ParseNewAdmin

func (_CTFExchange *CTFExchangeFilterer) ParseNewAdmin(log types.Log) (*CTFExchangeNewAdmin, error)

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

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

func (*CTFExchangeFilterer) ParseNewOperator

func (_CTFExchange *CTFExchangeFilterer) ParseNewOperator(log types.Log) (*CTFExchangeNewOperator, error)

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

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

func (*CTFExchangeFilterer) ParseOrderCancelled

func (_CTFExchange *CTFExchangeFilterer) ParseOrderCancelled(log types.Log) (*CTFExchangeOrderCancelled, error)

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

Solidity: event OrderCancelled(bytes32 indexed orderHash)

func (*CTFExchangeFilterer) ParseOrderFilled

func (_CTFExchange *CTFExchangeFilterer) ParseOrderFilled(log types.Log) (*CTFExchangeOrderFilled, 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 (*CTFExchangeFilterer) ParseOrdersMatched

func (_CTFExchange *CTFExchangeFilterer) ParseOrdersMatched(log types.Log) (*CTFExchangeOrdersMatched, 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 (*CTFExchangeFilterer) ParseProxyFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) ParseProxyFactoryUpdated(log types.Log) (*CTFExchangeProxyFactoryUpdated, error)

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

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

func (*CTFExchangeFilterer) ParseRemovedAdmin

func (_CTFExchange *CTFExchangeFilterer) ParseRemovedAdmin(log types.Log) (*CTFExchangeRemovedAdmin, error)

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

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

func (*CTFExchangeFilterer) ParseRemovedOperator

func (_CTFExchange *CTFExchangeFilterer) ParseRemovedOperator(log types.Log) (*CTFExchangeRemovedOperator, error)

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

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

func (*CTFExchangeFilterer) ParseSafeFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) ParseSafeFactoryUpdated(log types.Log) (*CTFExchangeSafeFactoryUpdated, error)

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

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

func (*CTFExchangeFilterer) ParseTokenRegistered

func (_CTFExchange *CTFExchangeFilterer) ParseTokenRegistered(log types.Log) (*CTFExchangeTokenRegistered, 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 (*CTFExchangeFilterer) ParseTradingPaused

func (_CTFExchange *CTFExchangeFilterer) ParseTradingPaused(log types.Log) (*CTFExchangeTradingPaused, error)

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

Solidity: event TradingPaused(address indexed pauser)

func (*CTFExchangeFilterer) ParseTradingUnpaused

func (_CTFExchange *CTFExchangeFilterer) ParseTradingUnpaused(log types.Log) (*CTFExchangeTradingUnpaused, error)

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

Solidity: event TradingUnpaused(address indexed pauser)

func (*CTFExchangeFilterer) WatchFeeCharged

func (_CTFExchange *CTFExchangeFilterer) WatchFeeCharged(opts *bind.WatchOpts, sink chan<- *CTFExchangeFeeCharged, 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 (*CTFExchangeFilterer) WatchNewAdmin

func (_CTFExchange *CTFExchangeFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *CTFExchangeNewAdmin, 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 (*CTFExchangeFilterer) WatchNewOperator

func (_CTFExchange *CTFExchangeFilterer) WatchNewOperator(opts *bind.WatchOpts, sink chan<- *CTFExchangeNewOperator, 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 (*CTFExchangeFilterer) WatchOrderCancelled

func (_CTFExchange *CTFExchangeFilterer) WatchOrderCancelled(opts *bind.WatchOpts, sink chan<- *CTFExchangeOrderCancelled, 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 (*CTFExchangeFilterer) WatchOrderFilled

func (_CTFExchange *CTFExchangeFilterer) WatchOrderFilled(opts *bind.WatchOpts, sink chan<- *CTFExchangeOrderFilled, 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 (*CTFExchangeFilterer) WatchOrdersMatched

func (_CTFExchange *CTFExchangeFilterer) WatchOrdersMatched(opts *bind.WatchOpts, sink chan<- *CTFExchangeOrdersMatched, 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 (*CTFExchangeFilterer) WatchProxyFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) WatchProxyFactoryUpdated(opts *bind.WatchOpts, sink chan<- *CTFExchangeProxyFactoryUpdated, 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 (*CTFExchangeFilterer) WatchRemovedAdmin

func (_CTFExchange *CTFExchangeFilterer) WatchRemovedAdmin(opts *bind.WatchOpts, sink chan<- *CTFExchangeRemovedAdmin, 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 (*CTFExchangeFilterer) WatchRemovedOperator

func (_CTFExchange *CTFExchangeFilterer) WatchRemovedOperator(opts *bind.WatchOpts, sink chan<- *CTFExchangeRemovedOperator, 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 (*CTFExchangeFilterer) WatchSafeFactoryUpdated

func (_CTFExchange *CTFExchangeFilterer) WatchSafeFactoryUpdated(opts *bind.WatchOpts, sink chan<- *CTFExchangeSafeFactoryUpdated, 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 (*CTFExchangeFilterer) WatchTokenRegistered

func (_CTFExchange *CTFExchangeFilterer) WatchTokenRegistered(opts *bind.WatchOpts, sink chan<- *CTFExchangeTokenRegistered, 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 (*CTFExchangeFilterer) WatchTradingPaused

func (_CTFExchange *CTFExchangeFilterer) WatchTradingPaused(opts *bind.WatchOpts, sink chan<- *CTFExchangeTradingPaused, 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 (*CTFExchangeFilterer) WatchTradingUnpaused

func (_CTFExchange *CTFExchangeFilterer) WatchTradingUnpaused(opts *bind.WatchOpts, sink chan<- *CTFExchangeTradingUnpaused, 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 CTFExchangeNewAdmin

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

CTFExchangeNewAdmin represents a NewAdmin event raised by the CTFExchange contract.

type CTFExchangeNewAdminIterator

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

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

func (*CTFExchangeNewAdminIterator) Close

func (it *CTFExchangeNewAdminIterator) Close() error

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

func (*CTFExchangeNewAdminIterator) Error

func (it *CTFExchangeNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeNewAdminIterator) Next

func (it *CTFExchangeNewAdminIterator) 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 CTFExchangeNewOperator

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

CTFExchangeNewOperator represents a NewOperator event raised by the CTFExchange contract.

type CTFExchangeNewOperatorIterator

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

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

func (*CTFExchangeNewOperatorIterator) Close

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

func (*CTFExchangeNewOperatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeNewOperatorIterator) 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 CTFExchangeOrderCancelled

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

CTFExchangeOrderCancelled represents a OrderCancelled event raised by the CTFExchange contract.

type CTFExchangeOrderCancelledIterator

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

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

func (*CTFExchangeOrderCancelledIterator) Close

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

func (*CTFExchangeOrderCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeOrderCancelledIterator) 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 CTFExchangeOrderFilled

type CTFExchangeOrderFilled 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
}

CTFExchangeOrderFilled represents a OrderFilled event raised by the CTFExchange contract.

type CTFExchangeOrderFilledIterator

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

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

func (*CTFExchangeOrderFilledIterator) Close

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

func (*CTFExchangeOrderFilledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeOrderFilledIterator) 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 CTFExchangeOrdersMatched

type CTFExchangeOrdersMatched 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
}

CTFExchangeOrdersMatched represents a OrdersMatched event raised by the CTFExchange contract.

type CTFExchangeOrdersMatchedIterator

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

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

func (*CTFExchangeOrdersMatchedIterator) Close

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

func (*CTFExchangeOrdersMatchedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeOrdersMatchedIterator) 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 CTFExchangeProxyFactoryUpdated

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

CTFExchangeProxyFactoryUpdated represents a ProxyFactoryUpdated event raised by the CTFExchange contract.

type CTFExchangeProxyFactoryUpdatedIterator

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

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

func (*CTFExchangeProxyFactoryUpdatedIterator) Close

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

func (*CTFExchangeProxyFactoryUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeProxyFactoryUpdatedIterator) 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 CTFExchangeRaw

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

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

func (*CTFExchangeRaw) Call

func (_CTFExchange *CTFExchangeRaw) 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 (*CTFExchangeRaw) Transact

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

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

func (*CTFExchangeRaw) Transfer

func (_CTFExchange *CTFExchangeRaw) 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 CTFExchangeRemovedAdmin

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

CTFExchangeRemovedAdmin represents a RemovedAdmin event raised by the CTFExchange contract.

type CTFExchangeRemovedAdminIterator

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

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

func (*CTFExchangeRemovedAdminIterator) Close

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

func (*CTFExchangeRemovedAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeRemovedAdminIterator) 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 CTFExchangeRemovedOperator

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

CTFExchangeRemovedOperator represents a RemovedOperator event raised by the CTFExchange contract.

type CTFExchangeRemovedOperatorIterator

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

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

func (*CTFExchangeRemovedOperatorIterator) Close

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

func (*CTFExchangeRemovedOperatorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeRemovedOperatorIterator) 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 CTFExchangeSafeFactoryUpdated

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

CTFExchangeSafeFactoryUpdated represents a SafeFactoryUpdated event raised by the CTFExchange contract.

type CTFExchangeSafeFactoryUpdatedIterator

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

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

func (*CTFExchangeSafeFactoryUpdatedIterator) Close

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

func (*CTFExchangeSafeFactoryUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeSafeFactoryUpdatedIterator) 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 CTFExchangeSession

type CTFExchangeSession struct {
	Contract     *CTFExchange      // 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
}

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

func (*CTFExchangeSession) AddAdmin

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) AddOperator

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) Admins

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) CancelOrder

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) CancelOrders

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) DomainSeparator

func (_CTFExchange *CTFExchangeSession) DomainSeparator() ([32]byte, error)

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

Solidity: function domainSeparator() view returns(bytes32)

func (*CTFExchangeSession) FillOrder

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) FillOrders

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetCollateral

func (_CTFExchange *CTFExchangeSession) GetCollateral() (common.Address, error)

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

Solidity: function getCollateral() view returns(address)

func (*CTFExchangeSession) GetComplement

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetConditionId

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetCtf

func (_CTFExchange *CTFExchangeSession) GetCtf() (common.Address, error)

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

Solidity: function getCtf() view returns(address)

func (*CTFExchangeSession) GetMaxFeeRate

func (_CTFExchange *CTFExchangeSession) GetMaxFeeRate() (*big.Int, error)

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

Solidity: function getMaxFeeRate() pure returns(uint256)

func (*CTFExchangeSession) GetOrderStatus

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetPolyProxyFactoryImplementation

func (_CTFExchange *CTFExchangeSession) GetPolyProxyFactoryImplementation() (common.Address, error)

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

Solidity: function getPolyProxyFactoryImplementation() view returns(address)

func (*CTFExchangeSession) GetPolyProxyWalletAddress

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetProxyFactory

func (_CTFExchange *CTFExchangeSession) GetProxyFactory() (common.Address, error)

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

Solidity: function getProxyFactory() view returns(address)

func (*CTFExchangeSession) GetSafeAddress

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) GetSafeFactory

func (_CTFExchange *CTFExchangeSession) GetSafeFactory() (common.Address, error)

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

Solidity: function getSafeFactory() view returns(address)

func (*CTFExchangeSession) GetSafeFactoryImplementation

func (_CTFExchange *CTFExchangeSession) GetSafeFactoryImplementation() (common.Address, error)

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

Solidity: function getSafeFactoryImplementation() view returns(address)

func (*CTFExchangeSession) HashOrder

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) IncrementNonce

func (_CTFExchange *CTFExchangeSession) IncrementNonce() (*types.Transaction, error)

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

Solidity: function incrementNonce() returns()

func (*CTFExchangeSession) IsAdmin

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) IsOperator

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) IsValidNonce

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) MatchOrders

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) Nonces

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) OnERC1155BatchReceived

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) OnERC1155Received

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) Operators

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) OrderStatus

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) ParentCollectionId

func (_CTFExchange *CTFExchangeSession) ParentCollectionId() ([32]byte, error)

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

Solidity: function parentCollectionId() view returns(bytes32)

func (*CTFExchangeSession) PauseTrading

func (_CTFExchange *CTFExchangeSession) PauseTrading() (*types.Transaction, error)

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

Solidity: function pauseTrading() returns()

func (*CTFExchangeSession) Paused

func (_CTFExchange *CTFExchangeSession) Paused() (bool, error)

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

Solidity: function paused() view returns(bool)

func (*CTFExchangeSession) ProxyFactory

func (_CTFExchange *CTFExchangeSession) ProxyFactory() (common.Address, error)

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

Solidity: function proxyFactory() view returns(address)

func (*CTFExchangeSession) RegisterToken

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) Registry

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) RemoveAdmin

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) RemoveOperator

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) RenounceAdminRole

func (_CTFExchange *CTFExchangeSession) RenounceAdminRole() (*types.Transaction, error)

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

Solidity: function renounceAdminRole() returns()

func (*CTFExchangeSession) RenounceOperatorRole

func (_CTFExchange *CTFExchangeSession) RenounceOperatorRole() (*types.Transaction, error)

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

Solidity: function renounceOperatorRole() returns()

func (*CTFExchangeSession) SafeFactory

func (_CTFExchange *CTFExchangeSession) SafeFactory() (common.Address, error)

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

Solidity: function safeFactory() view returns(address)

func (*CTFExchangeSession) SetProxyFactory

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) SetSafeFactory

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) SupportsInterface

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) UnpauseTrading

func (_CTFExchange *CTFExchangeSession) UnpauseTrading() (*types.Transaction, error)

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

Solidity: function unpauseTrading() returns()

func (*CTFExchangeSession) ValidateComplement

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) ValidateOrder

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) ValidateOrderSignature

func (_CTFExchange *CTFExchangeSession) 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 (*CTFExchangeSession) ValidateTokenId

func (_CTFExchange *CTFExchangeSession) 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 CTFExchangeTokenRegistered

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

CTFExchangeTokenRegistered represents a TokenRegistered event raised by the CTFExchange contract.

type CTFExchangeTokenRegisteredIterator

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

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

func (*CTFExchangeTokenRegisteredIterator) Close

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

func (*CTFExchangeTokenRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeTokenRegisteredIterator) 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 CTFExchangeTradingPaused

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

CTFExchangeTradingPaused represents a TradingPaused event raised by the CTFExchange contract.

type CTFExchangeTradingPausedIterator

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

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

func (*CTFExchangeTradingPausedIterator) Close

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

func (*CTFExchangeTradingPausedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeTradingPausedIterator) 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 CTFExchangeTradingUnpaused

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

CTFExchangeTradingUnpaused represents a TradingUnpaused event raised by the CTFExchange contract.

type CTFExchangeTradingUnpausedIterator

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

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

func (*CTFExchangeTradingUnpausedIterator) Close

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

func (*CTFExchangeTradingUnpausedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTFExchangeTradingUnpausedIterator) 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 CTFExchangeTransactor

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

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

func NewCTFExchangeTransactor

func NewCTFExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*CTFExchangeTransactor, error)

NewCTFExchangeTransactor creates a new write-only instance of CTFExchange, bound to a specific deployed contract.

func (*CTFExchangeTransactor) AddAdmin

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) AddOperator

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) CancelOrder

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) CancelOrders

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) FillOrder

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) FillOrders

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) IncrementNonce

func (_CTFExchange *CTFExchangeTransactor) IncrementNonce(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function incrementNonce() returns()

func (*CTFExchangeTransactor) MatchOrders

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) OnERC1155BatchReceived

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) OnERC1155Received

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) PauseTrading

func (_CTFExchange *CTFExchangeTransactor) PauseTrading(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function pauseTrading() returns()

func (*CTFExchangeTransactor) RegisterToken

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) RemoveAdmin

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) RemoveOperator

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) RenounceAdminRole

func (_CTFExchange *CTFExchangeTransactor) RenounceAdminRole(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceAdminRole() returns()

func (*CTFExchangeTransactor) RenounceOperatorRole

func (_CTFExchange *CTFExchangeTransactor) RenounceOperatorRole(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOperatorRole() returns()

func (*CTFExchangeTransactor) SetProxyFactory

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) SetSafeFactory

func (_CTFExchange *CTFExchangeTransactor) 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 (*CTFExchangeTransactor) UnpauseTrading

func (_CTFExchange *CTFExchangeTransactor) UnpauseTrading(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function unpauseTrading() returns()

type CTFExchangeTransactorRaw

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

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

func (*CTFExchangeTransactorRaw) Transact

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

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

func (*CTFExchangeTransactorRaw) Transfer

func (_CTFExchange *CTFExchangeTransactorRaw) 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 CTFExchangeTransactorSession

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

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

func (*CTFExchangeTransactorSession) AddAdmin

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) AddOperator

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) CancelOrder

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) CancelOrders

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) FillOrder

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) FillOrders

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) IncrementNonce

func (_CTFExchange *CTFExchangeTransactorSession) IncrementNonce() (*types.Transaction, error)

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

Solidity: function incrementNonce() returns()

func (*CTFExchangeTransactorSession) MatchOrders

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) OnERC1155BatchReceived

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) OnERC1155Received

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) PauseTrading

func (_CTFExchange *CTFExchangeTransactorSession) PauseTrading() (*types.Transaction, error)

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

Solidity: function pauseTrading() returns()

func (*CTFExchangeTransactorSession) RegisterToken

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) RemoveAdmin

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) RemoveOperator

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) RenounceAdminRole

func (_CTFExchange *CTFExchangeTransactorSession) RenounceAdminRole() (*types.Transaction, error)

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

Solidity: function renounceAdminRole() returns()

func (*CTFExchangeTransactorSession) RenounceOperatorRole

func (_CTFExchange *CTFExchangeTransactorSession) RenounceOperatorRole() (*types.Transaction, error)

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

Solidity: function renounceOperatorRole() returns()

func (*CTFExchangeTransactorSession) SetProxyFactory

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) SetSafeFactory

func (_CTFExchange *CTFExchangeTransactorSession) 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 (*CTFExchangeTransactorSession) UnpauseTrading

func (_CTFExchange *CTFExchangeTransactorSession) UnpauseTrading() (*types.Transaction, error)

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

Solidity: function unpauseTrading() returns()

type ConditionTokens

type ConditionTokens struct {
	ConditionTokensCaller     // Read-only binding to the contract
	ConditionTokensTransactor // Write-only binding to the contract
	ConditionTokensFilterer   // Log filterer for contract events
}

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

func NewConditionTokens

func NewConditionTokens(address common.Address, backend bind.ContractBackend) (*ConditionTokens, error)

NewConditionTokens creates a new instance of ConditionTokens, bound to a specific deployed contract.

type ConditionTokensApprovalForAll

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

ConditionTokensApprovalForAll represents a ApprovalForAll event raised by the ConditionTokens contract.

type ConditionTokensApprovalForAllIterator

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

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

func (*ConditionTokensApprovalForAllIterator) Close

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

func (*ConditionTokensApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensApprovalForAllIterator) 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 ConditionTokensCaller

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

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

func NewConditionTokensCaller

func NewConditionTokensCaller(address common.Address, caller bind.ContractCaller) (*ConditionTokensCaller, error)

NewConditionTokensCaller creates a new read-only instance of ConditionTokens, bound to a specific deployed contract.

func (*ConditionTokensCaller) BalanceOf

func (_ConditionTokens *ConditionTokensCaller) BalanceOf(opts *bind.CallOpts, owner common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address owner, uint256 id) view returns(uint256)

func (*ConditionTokensCaller) BalanceOfBatch

func (_ConditionTokens *ConditionTokensCaller) BalanceOfBatch(opts *bind.CallOpts, owners []common.Address, ids []*big.Int) ([]*big.Int, error)

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

Solidity: function balanceOfBatch(address[] owners, uint256[] ids) view returns(uint256[])

func (*ConditionTokensCaller) GetCollectionId

func (_ConditionTokens *ConditionTokensCaller) GetCollectionId(opts *bind.CallOpts, parentCollectionId [32]byte, conditionId [32]byte, indexSet *big.Int) ([32]byte, error)

GetCollectionId is a free data retrieval call binding the contract method 0x856296f7.

Solidity: function getCollectionId(bytes32 parentCollectionId, bytes32 conditionId, uint256 indexSet) view returns(bytes32)

func (*ConditionTokensCaller) GetConditionId

func (_ConditionTokens *ConditionTokensCaller) GetConditionId(opts *bind.CallOpts, oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) ([32]byte, error)

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

Solidity: function getConditionId(address oracle, bytes32 questionId, uint256 outcomeSlotCount) pure returns(bytes32)

func (*ConditionTokensCaller) GetOutcomeSlotCount

func (_ConditionTokens *ConditionTokensCaller) GetOutcomeSlotCount(opts *bind.CallOpts, conditionId [32]byte) (*big.Int, error)

GetOutcomeSlotCount is a free data retrieval call binding the contract method 0xd42dc0c2.

Solidity: function getOutcomeSlotCount(bytes32 conditionId) view returns(uint256)

func (*ConditionTokensCaller) GetPositionId

func (_ConditionTokens *ConditionTokensCaller) GetPositionId(opts *bind.CallOpts, collateralToken common.Address, collectionId [32]byte) (*big.Int, error)

GetPositionId is a free data retrieval call binding the contract method 0x39dd7530.

Solidity: function getPositionId(address collateralToken, bytes32 collectionId) pure returns(uint256)

func (*ConditionTokensCaller) IsApprovedForAll

func (_ConditionTokens *ConditionTokensCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

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

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ConditionTokensCaller) PayoutDenominator

func (_ConditionTokens *ConditionTokensCaller) PayoutDenominator(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

PayoutDenominator is a free data retrieval call binding the contract method 0xdd34de67.

Solidity: function payoutDenominator(bytes32 ) view returns(uint256)

func (*ConditionTokensCaller) PayoutNumerators

func (_ConditionTokens *ConditionTokensCaller) PayoutNumerators(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (*big.Int, error)

PayoutNumerators is a free data retrieval call binding the contract method 0x0504c814.

Solidity: function payoutNumerators(bytes32 , uint256 ) view returns(uint256)

func (*ConditionTokensCaller) SupportsInterface

func (_ConditionTokens *ConditionTokensCaller) 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)

type ConditionTokensCallerRaw

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

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

func (*ConditionTokensCallerRaw) Call

func (_ConditionTokens *ConditionTokensCallerRaw) 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 ConditionTokensCallerSession

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

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

func (*ConditionTokensCallerSession) BalanceOf

func (_ConditionTokens *ConditionTokensCallerSession) BalanceOf(owner common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address owner, uint256 id) view returns(uint256)

func (*ConditionTokensCallerSession) BalanceOfBatch

func (_ConditionTokens *ConditionTokensCallerSession) BalanceOfBatch(owners []common.Address, ids []*big.Int) ([]*big.Int, error)

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

Solidity: function balanceOfBatch(address[] owners, uint256[] ids) view returns(uint256[])

func (*ConditionTokensCallerSession) GetCollectionId

func (_ConditionTokens *ConditionTokensCallerSession) GetCollectionId(parentCollectionId [32]byte, conditionId [32]byte, indexSet *big.Int) ([32]byte, error)

GetCollectionId is a free data retrieval call binding the contract method 0x856296f7.

Solidity: function getCollectionId(bytes32 parentCollectionId, bytes32 conditionId, uint256 indexSet) view returns(bytes32)

func (*ConditionTokensCallerSession) GetConditionId

func (_ConditionTokens *ConditionTokensCallerSession) GetConditionId(oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) ([32]byte, error)

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

Solidity: function getConditionId(address oracle, bytes32 questionId, uint256 outcomeSlotCount) pure returns(bytes32)

func (*ConditionTokensCallerSession) GetOutcomeSlotCount

func (_ConditionTokens *ConditionTokensCallerSession) GetOutcomeSlotCount(conditionId [32]byte) (*big.Int, error)

GetOutcomeSlotCount is a free data retrieval call binding the contract method 0xd42dc0c2.

Solidity: function getOutcomeSlotCount(bytes32 conditionId) view returns(uint256)

func (*ConditionTokensCallerSession) GetPositionId

func (_ConditionTokens *ConditionTokensCallerSession) GetPositionId(collateralToken common.Address, collectionId [32]byte) (*big.Int, error)

GetPositionId is a free data retrieval call binding the contract method 0x39dd7530.

Solidity: function getPositionId(address collateralToken, bytes32 collectionId) pure returns(uint256)

func (*ConditionTokensCallerSession) IsApprovedForAll

func (_ConditionTokens *ConditionTokensCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

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

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ConditionTokensCallerSession) PayoutDenominator

func (_ConditionTokens *ConditionTokensCallerSession) PayoutDenominator(arg0 [32]byte) (*big.Int, error)

PayoutDenominator is a free data retrieval call binding the contract method 0xdd34de67.

Solidity: function payoutDenominator(bytes32 ) view returns(uint256)

func (*ConditionTokensCallerSession) PayoutNumerators

func (_ConditionTokens *ConditionTokensCallerSession) PayoutNumerators(arg0 [32]byte, arg1 *big.Int) (*big.Int, error)

PayoutNumerators is a free data retrieval call binding the contract method 0x0504c814.

Solidity: function payoutNumerators(bytes32 , uint256 ) view returns(uint256)

func (*ConditionTokensCallerSession) SupportsInterface

func (_ConditionTokens *ConditionTokensCallerSession) 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)

type ConditionTokensConditionPreparation

type ConditionTokensConditionPreparation struct {
	ConditionId      [32]byte
	Oracle           common.Address
	QuestionId       [32]byte
	OutcomeSlotCount *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ConditionTokensConditionPreparation represents a ConditionPreparation event raised by the ConditionTokens contract.

type ConditionTokensConditionPreparationIterator

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

ConditionTokensConditionPreparationIterator is returned from FilterConditionPreparation and is used to iterate over the raw logs and unpacked data for ConditionPreparation events raised by the ConditionTokens contract.

func (*ConditionTokensConditionPreparationIterator) Close

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

func (*ConditionTokensConditionPreparationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensConditionPreparationIterator) 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 ConditionTokensConditionResolution

type ConditionTokensConditionResolution struct {
	ConditionId      [32]byte
	Oracle           common.Address
	QuestionId       [32]byte
	OutcomeSlotCount *big.Int
	PayoutNumerators []*big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ConditionTokensConditionResolution represents a ConditionResolution event raised by the ConditionTokens contract.

type ConditionTokensConditionResolutionIterator

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

ConditionTokensConditionResolutionIterator is returned from FilterConditionResolution and is used to iterate over the raw logs and unpacked data for ConditionResolution events raised by the ConditionTokens contract.

func (*ConditionTokensConditionResolutionIterator) Close

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

func (*ConditionTokensConditionResolutionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensConditionResolutionIterator) 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 ConditionTokensFilterer

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

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

func NewConditionTokensFilterer

func NewConditionTokensFilterer(address common.Address, filterer bind.ContractFilterer) (*ConditionTokensFilterer, error)

NewConditionTokensFilterer creates a new log filterer instance of ConditionTokens, bound to a specific deployed contract.

func (*ConditionTokensFilterer) FilterApprovalForAll

func (_ConditionTokens *ConditionTokensFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ConditionTokensApprovalForAllIterator, error)

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

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ConditionTokensFilterer) FilterConditionPreparation

func (_ConditionTokens *ConditionTokensFilterer) FilterConditionPreparation(opts *bind.FilterOpts, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (*ConditionTokensConditionPreparationIterator, error)

FilterConditionPreparation is a free log retrieval operation binding the contract event 0xab3760c3bd2bb38b5bcf54dc79802ed67338b4cf29f3054ded67ed24661e4177.

Solidity: event ConditionPreparation(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount)

func (*ConditionTokensFilterer) FilterConditionResolution

func (_ConditionTokens *ConditionTokensFilterer) FilterConditionResolution(opts *bind.FilterOpts, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (*ConditionTokensConditionResolutionIterator, error)

FilterConditionResolution is a free log retrieval operation binding the contract event 0xb44d84d3289691f71497564b85d4233648d9dbae8cbdbb4329f301c3a0185894.

Solidity: event ConditionResolution(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount, uint256[] payoutNumerators)

func (*ConditionTokensFilterer) FilterPayoutRedemption

func (_ConditionTokens *ConditionTokensFilterer) FilterPayoutRedemption(opts *bind.FilterOpts, redeemer []common.Address, collateralToken []common.Address, parentCollectionId [][32]byte) (*ConditionTokensPayoutRedemptionIterator, error)

FilterPayoutRedemption is a free log retrieval operation binding the contract event 0x2682012a4a4f1973119f1c9b90745d1bd91fa2bab387344f044cb3586864d18d.

Solidity: event PayoutRedemption(address indexed redeemer, address indexed collateralToken, bytes32 indexed parentCollectionId, bytes32 conditionId, uint256[] indexSets, uint256 payout)

func (*ConditionTokensFilterer) FilterPositionSplit

func (_ConditionTokens *ConditionTokensFilterer) FilterPositionSplit(opts *bind.FilterOpts, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (*ConditionTokensPositionSplitIterator, error)

FilterPositionSplit is a free log retrieval operation binding the contract event 0x2e6bb91f8cbcda0c93623c54d0403a43514fabc40084ec96b6d5379a74786298.

Solidity: event PositionSplit(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) FilterPositionsMerge

func (_ConditionTokens *ConditionTokensFilterer) FilterPositionsMerge(opts *bind.FilterOpts, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (*ConditionTokensPositionsMergeIterator, error)

FilterPositionsMerge is a free log retrieval operation binding the contract event 0x6f13ca62553fcc2bcd2372180a43949c1e4cebba603901ede2f4e14f36b282ca.

Solidity: event PositionsMerge(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) FilterTransferBatch

func (_ConditionTokens *ConditionTokensFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ConditionTokensTransferBatchIterator, error)

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

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ConditionTokensFilterer) FilterTransferSingle

func (_ConditionTokens *ConditionTokensFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ConditionTokensTransferSingleIterator, error)

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

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ConditionTokensFilterer) FilterURI

func (_ConditionTokens *ConditionTokensFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*ConditionTokensURIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ConditionTokensFilterer) ParseApprovalForAll

func (_ConditionTokens *ConditionTokensFilterer) ParseApprovalForAll(log types.Log) (*ConditionTokensApprovalForAll, error)

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

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ConditionTokensFilterer) ParseConditionPreparation

func (_ConditionTokens *ConditionTokensFilterer) ParseConditionPreparation(log types.Log) (*ConditionTokensConditionPreparation, error)

ParseConditionPreparation is a log parse operation binding the contract event 0xab3760c3bd2bb38b5bcf54dc79802ed67338b4cf29f3054ded67ed24661e4177.

Solidity: event ConditionPreparation(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount)

func (*ConditionTokensFilterer) ParseConditionResolution

func (_ConditionTokens *ConditionTokensFilterer) ParseConditionResolution(log types.Log) (*ConditionTokensConditionResolution, error)

ParseConditionResolution is a log parse operation binding the contract event 0xb44d84d3289691f71497564b85d4233648d9dbae8cbdbb4329f301c3a0185894.

Solidity: event ConditionResolution(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount, uint256[] payoutNumerators)

func (*ConditionTokensFilterer) ParsePayoutRedemption

func (_ConditionTokens *ConditionTokensFilterer) ParsePayoutRedemption(log types.Log) (*ConditionTokensPayoutRedemption, error)

ParsePayoutRedemption is a log parse operation binding the contract event 0x2682012a4a4f1973119f1c9b90745d1bd91fa2bab387344f044cb3586864d18d.

Solidity: event PayoutRedemption(address indexed redeemer, address indexed collateralToken, bytes32 indexed parentCollectionId, bytes32 conditionId, uint256[] indexSets, uint256 payout)

func (*ConditionTokensFilterer) ParsePositionSplit

func (_ConditionTokens *ConditionTokensFilterer) ParsePositionSplit(log types.Log) (*ConditionTokensPositionSplit, error)

ParsePositionSplit is a log parse operation binding the contract event 0x2e6bb91f8cbcda0c93623c54d0403a43514fabc40084ec96b6d5379a74786298.

Solidity: event PositionSplit(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) ParsePositionsMerge

func (_ConditionTokens *ConditionTokensFilterer) ParsePositionsMerge(log types.Log) (*ConditionTokensPositionsMerge, error)

ParsePositionsMerge is a log parse operation binding the contract event 0x6f13ca62553fcc2bcd2372180a43949c1e4cebba603901ede2f4e14f36b282ca.

Solidity: event PositionsMerge(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) ParseTransferBatch

func (_ConditionTokens *ConditionTokensFilterer) ParseTransferBatch(log types.Log) (*ConditionTokensTransferBatch, error)

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

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ConditionTokensFilterer) ParseTransferSingle

func (_ConditionTokens *ConditionTokensFilterer) ParseTransferSingle(log types.Log) (*ConditionTokensTransferSingle, error)

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

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ConditionTokensFilterer) ParseURI

func (_ConditionTokens *ConditionTokensFilterer) ParseURI(log types.Log) (*ConditionTokensURI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*ConditionTokensFilterer) WatchApprovalForAll

func (_ConditionTokens *ConditionTokensFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ConditionTokensApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

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

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ConditionTokensFilterer) WatchConditionPreparation

func (_ConditionTokens *ConditionTokensFilterer) WatchConditionPreparation(opts *bind.WatchOpts, sink chan<- *ConditionTokensConditionPreparation, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (event.Subscription, error)

WatchConditionPreparation is a free log subscription operation binding the contract event 0xab3760c3bd2bb38b5bcf54dc79802ed67338b4cf29f3054ded67ed24661e4177.

Solidity: event ConditionPreparation(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount)

func (*ConditionTokensFilterer) WatchConditionResolution

func (_ConditionTokens *ConditionTokensFilterer) WatchConditionResolution(opts *bind.WatchOpts, sink chan<- *ConditionTokensConditionResolution, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (event.Subscription, error)

WatchConditionResolution is a free log subscription operation binding the contract event 0xb44d84d3289691f71497564b85d4233648d9dbae8cbdbb4329f301c3a0185894.

Solidity: event ConditionResolution(bytes32 indexed conditionId, address indexed oracle, bytes32 indexed questionId, uint256 outcomeSlotCount, uint256[] payoutNumerators)

func (*ConditionTokensFilterer) WatchPayoutRedemption

func (_ConditionTokens *ConditionTokensFilterer) WatchPayoutRedemption(opts *bind.WatchOpts, sink chan<- *ConditionTokensPayoutRedemption, redeemer []common.Address, collateralToken []common.Address, parentCollectionId [][32]byte) (event.Subscription, error)

WatchPayoutRedemption is a free log subscription operation binding the contract event 0x2682012a4a4f1973119f1c9b90745d1bd91fa2bab387344f044cb3586864d18d.

Solidity: event PayoutRedemption(address indexed redeemer, address indexed collateralToken, bytes32 indexed parentCollectionId, bytes32 conditionId, uint256[] indexSets, uint256 payout)

func (*ConditionTokensFilterer) WatchPositionSplit

func (_ConditionTokens *ConditionTokensFilterer) WatchPositionSplit(opts *bind.WatchOpts, sink chan<- *ConditionTokensPositionSplit, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (event.Subscription, error)

WatchPositionSplit is a free log subscription operation binding the contract event 0x2e6bb91f8cbcda0c93623c54d0403a43514fabc40084ec96b6d5379a74786298.

Solidity: event PositionSplit(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) WatchPositionsMerge

func (_ConditionTokens *ConditionTokensFilterer) WatchPositionsMerge(opts *bind.WatchOpts, sink chan<- *ConditionTokensPositionsMerge, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (event.Subscription, error)

WatchPositionsMerge is a free log subscription operation binding the contract event 0x6f13ca62553fcc2bcd2372180a43949c1e4cebba603901ede2f4e14f36b282ca.

Solidity: event PositionsMerge(address indexed stakeholder, address collateralToken, bytes32 indexed parentCollectionId, bytes32 indexed conditionId, uint256[] partition, uint256 amount)

func (*ConditionTokensFilterer) WatchTransferBatch

func (_ConditionTokens *ConditionTokensFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *ConditionTokensTransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*ConditionTokensFilterer) WatchTransferSingle

func (_ConditionTokens *ConditionTokensFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *ConditionTokensTransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*ConditionTokensFilterer) WatchURI

func (_ConditionTokens *ConditionTokensFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *ConditionTokensURI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

type ConditionTokensPayoutRedemption

type ConditionTokensPayoutRedemption struct {
	Redeemer           common.Address
	CollateralToken    common.Address
	ParentCollectionId [32]byte
	ConditionId        [32]byte
	IndexSets          []*big.Int
	Payout             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ConditionTokensPayoutRedemption represents a PayoutRedemption event raised by the ConditionTokens contract.

type ConditionTokensPayoutRedemptionIterator

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

ConditionTokensPayoutRedemptionIterator is returned from FilterPayoutRedemption and is used to iterate over the raw logs and unpacked data for PayoutRedemption events raised by the ConditionTokens contract.

func (*ConditionTokensPayoutRedemptionIterator) Close

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

func (*ConditionTokensPayoutRedemptionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensPayoutRedemptionIterator) 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 ConditionTokensPositionSplit

type ConditionTokensPositionSplit struct {
	Stakeholder        common.Address
	CollateralToken    common.Address
	ParentCollectionId [32]byte
	ConditionId        [32]byte
	Partition          []*big.Int
	Amount             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ConditionTokensPositionSplit represents a PositionSplit event raised by the ConditionTokens contract.

type ConditionTokensPositionSplitIterator

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

ConditionTokensPositionSplitIterator is returned from FilterPositionSplit and is used to iterate over the raw logs and unpacked data for PositionSplit events raised by the ConditionTokens contract.

func (*ConditionTokensPositionSplitIterator) Close

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

func (*ConditionTokensPositionSplitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensPositionSplitIterator) 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 ConditionTokensPositionsMerge

type ConditionTokensPositionsMerge struct {
	Stakeholder        common.Address
	CollateralToken    common.Address
	ParentCollectionId [32]byte
	ConditionId        [32]byte
	Partition          []*big.Int
	Amount             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

ConditionTokensPositionsMerge represents a PositionsMerge event raised by the ConditionTokens contract.

type ConditionTokensPositionsMergeIterator

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

ConditionTokensPositionsMergeIterator is returned from FilterPositionsMerge and is used to iterate over the raw logs and unpacked data for PositionsMerge events raised by the ConditionTokens contract.

func (*ConditionTokensPositionsMergeIterator) Close

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

func (*ConditionTokensPositionsMergeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensPositionsMergeIterator) 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 ConditionTokensRaw

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

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

func (*ConditionTokensRaw) Call

func (_ConditionTokens *ConditionTokensRaw) 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 (*ConditionTokensRaw) Transact

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

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

func (*ConditionTokensRaw) Transfer

func (_ConditionTokens *ConditionTokensRaw) 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 ConditionTokensSession

type ConditionTokensSession struct {
	Contract     *ConditionTokens  // 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
}

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

func (*ConditionTokensSession) BalanceOf

func (_ConditionTokens *ConditionTokensSession) BalanceOf(owner common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address owner, uint256 id) view returns(uint256)

func (*ConditionTokensSession) BalanceOfBatch

func (_ConditionTokens *ConditionTokensSession) BalanceOfBatch(owners []common.Address, ids []*big.Int) ([]*big.Int, error)

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

Solidity: function balanceOfBatch(address[] owners, uint256[] ids) view returns(uint256[])

func (*ConditionTokensSession) GetCollectionId

func (_ConditionTokens *ConditionTokensSession) GetCollectionId(parentCollectionId [32]byte, conditionId [32]byte, indexSet *big.Int) ([32]byte, error)

GetCollectionId is a free data retrieval call binding the contract method 0x856296f7.

Solidity: function getCollectionId(bytes32 parentCollectionId, bytes32 conditionId, uint256 indexSet) view returns(bytes32)

func (*ConditionTokensSession) GetConditionId

func (_ConditionTokens *ConditionTokensSession) GetConditionId(oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) ([32]byte, error)

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

Solidity: function getConditionId(address oracle, bytes32 questionId, uint256 outcomeSlotCount) pure returns(bytes32)

func (*ConditionTokensSession) GetOutcomeSlotCount

func (_ConditionTokens *ConditionTokensSession) GetOutcomeSlotCount(conditionId [32]byte) (*big.Int, error)

GetOutcomeSlotCount is a free data retrieval call binding the contract method 0xd42dc0c2.

Solidity: function getOutcomeSlotCount(bytes32 conditionId) view returns(uint256)

func (*ConditionTokensSession) GetPositionId

func (_ConditionTokens *ConditionTokensSession) GetPositionId(collateralToken common.Address, collectionId [32]byte) (*big.Int, error)

GetPositionId is a free data retrieval call binding the contract method 0x39dd7530.

Solidity: function getPositionId(address collateralToken, bytes32 collectionId) pure returns(uint256)

func (*ConditionTokensSession) IsApprovedForAll

func (_ConditionTokens *ConditionTokensSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

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

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ConditionTokensSession) MergePositions

func (_ConditionTokens *ConditionTokensSession) MergePositions(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

MergePositions is a paid mutator transaction binding the contract method 0x9e7212ad.

Solidity: function mergePositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

func (*ConditionTokensSession) PayoutDenominator

func (_ConditionTokens *ConditionTokensSession) PayoutDenominator(arg0 [32]byte) (*big.Int, error)

PayoutDenominator is a free data retrieval call binding the contract method 0xdd34de67.

Solidity: function payoutDenominator(bytes32 ) view returns(uint256)

func (*ConditionTokensSession) PayoutNumerators

func (_ConditionTokens *ConditionTokensSession) PayoutNumerators(arg0 [32]byte, arg1 *big.Int) (*big.Int, error)

PayoutNumerators is a free data retrieval call binding the contract method 0x0504c814.

Solidity: function payoutNumerators(bytes32 , uint256 ) view returns(uint256)

func (*ConditionTokensSession) PrepareCondition

func (_ConditionTokens *ConditionTokensSession) PrepareCondition(oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) (*types.Transaction, error)

PrepareCondition is a paid mutator transaction binding the contract method 0xd96ee754.

Solidity: function prepareCondition(address oracle, bytes32 questionId, uint256 outcomeSlotCount) returns()

func (*ConditionTokensSession) RedeemPositions

func (_ConditionTokens *ConditionTokensSession) RedeemPositions(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, indexSets []*big.Int) (*types.Transaction, error)

RedeemPositions is a paid mutator transaction binding the contract method 0x01b7037c.

Solidity: function redeemPositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] indexSets) returns()

func (*ConditionTokensSession) ReportPayouts

func (_ConditionTokens *ConditionTokensSession) ReportPayouts(questionId [32]byte, payouts []*big.Int) (*types.Transaction, error)

ReportPayouts is a paid mutator transaction binding the contract method 0xc49298ac.

Solidity: function reportPayouts(bytes32 questionId, uint256[] payouts) returns()

func (*ConditionTokensSession) SafeBatchTransferFrom

func (_ConditionTokens *ConditionTokensSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*ConditionTokensSession) SafeTransferFrom

func (_ConditionTokens *ConditionTokensSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*ConditionTokensSession) SetApprovalForAll

func (_ConditionTokens *ConditionTokensSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

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

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ConditionTokensSession) SplitPosition

func (_ConditionTokens *ConditionTokensSession) SplitPosition(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

SplitPosition is a paid mutator transaction binding the contract method 0x72ce4275.

Solidity: function splitPosition(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

func (*ConditionTokensSession) SupportsInterface

func (_ConditionTokens *ConditionTokensSession) 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)

type ConditionTokensTransactor

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

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

func NewConditionTokensTransactor

func NewConditionTokensTransactor(address common.Address, transactor bind.ContractTransactor) (*ConditionTokensTransactor, error)

NewConditionTokensTransactor creates a new write-only instance of ConditionTokens, bound to a specific deployed contract.

func (*ConditionTokensTransactor) MergePositions

func (_ConditionTokens *ConditionTokensTransactor) MergePositions(opts *bind.TransactOpts, collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

MergePositions is a paid mutator transaction binding the contract method 0x9e7212ad.

Solidity: function mergePositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

func (*ConditionTokensTransactor) PrepareCondition

func (_ConditionTokens *ConditionTokensTransactor) PrepareCondition(opts *bind.TransactOpts, oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) (*types.Transaction, error)

PrepareCondition is a paid mutator transaction binding the contract method 0xd96ee754.

Solidity: function prepareCondition(address oracle, bytes32 questionId, uint256 outcomeSlotCount) returns()

func (*ConditionTokensTransactor) RedeemPositions

func (_ConditionTokens *ConditionTokensTransactor) RedeemPositions(opts *bind.TransactOpts, collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, indexSets []*big.Int) (*types.Transaction, error)

RedeemPositions is a paid mutator transaction binding the contract method 0x01b7037c.

Solidity: function redeemPositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] indexSets) returns()

func (*ConditionTokensTransactor) ReportPayouts

func (_ConditionTokens *ConditionTokensTransactor) ReportPayouts(opts *bind.TransactOpts, questionId [32]byte, payouts []*big.Int) (*types.Transaction, error)

ReportPayouts is a paid mutator transaction binding the contract method 0xc49298ac.

Solidity: function reportPayouts(bytes32 questionId, uint256[] payouts) returns()

func (*ConditionTokensTransactor) SafeBatchTransferFrom

func (_ConditionTokens *ConditionTokensTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*ConditionTokensTransactor) SafeTransferFrom

func (_ConditionTokens *ConditionTokensTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*ConditionTokensTransactor) SetApprovalForAll

func (_ConditionTokens *ConditionTokensTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

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

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ConditionTokensTransactor) SplitPosition

func (_ConditionTokens *ConditionTokensTransactor) SplitPosition(opts *bind.TransactOpts, collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

SplitPosition is a paid mutator transaction binding the contract method 0x72ce4275.

Solidity: function splitPosition(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

type ConditionTokensTransactorRaw

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

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

func (*ConditionTokensTransactorRaw) Transact

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

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

func (*ConditionTokensTransactorRaw) Transfer

func (_ConditionTokens *ConditionTokensTransactorRaw) 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 ConditionTokensTransactorSession

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

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

func (*ConditionTokensTransactorSession) MergePositions

func (_ConditionTokens *ConditionTokensTransactorSession) MergePositions(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

MergePositions is a paid mutator transaction binding the contract method 0x9e7212ad.

Solidity: function mergePositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

func (*ConditionTokensTransactorSession) PrepareCondition

func (_ConditionTokens *ConditionTokensTransactorSession) PrepareCondition(oracle common.Address, questionId [32]byte, outcomeSlotCount *big.Int) (*types.Transaction, error)

PrepareCondition is a paid mutator transaction binding the contract method 0xd96ee754.

Solidity: function prepareCondition(address oracle, bytes32 questionId, uint256 outcomeSlotCount) returns()

func (*ConditionTokensTransactorSession) RedeemPositions

func (_ConditionTokens *ConditionTokensTransactorSession) RedeemPositions(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, indexSets []*big.Int) (*types.Transaction, error)

RedeemPositions is a paid mutator transaction binding the contract method 0x01b7037c.

Solidity: function redeemPositions(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] indexSets) returns()

func (*ConditionTokensTransactorSession) ReportPayouts

func (_ConditionTokens *ConditionTokensTransactorSession) ReportPayouts(questionId [32]byte, payouts []*big.Int) (*types.Transaction, error)

ReportPayouts is a paid mutator transaction binding the contract method 0xc49298ac.

Solidity: function reportPayouts(bytes32 questionId, uint256[] payouts) returns()

func (*ConditionTokensTransactorSession) SafeBatchTransferFrom

func (_ConditionTokens *ConditionTokensTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*ConditionTokensTransactorSession) SafeTransferFrom

func (_ConditionTokens *ConditionTokensTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

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

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*ConditionTokensTransactorSession) SetApprovalForAll

func (_ConditionTokens *ConditionTokensTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

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

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ConditionTokensTransactorSession) SplitPosition

func (_ConditionTokens *ConditionTokensTransactorSession) SplitPosition(collateralToken common.Address, parentCollectionId [32]byte, conditionId [32]byte, partition []*big.Int, amount *big.Int) (*types.Transaction, error)

SplitPosition is a paid mutator transaction binding the contract method 0x72ce4275.

Solidity: function splitPosition(address collateralToken, bytes32 parentCollectionId, bytes32 conditionId, uint256[] partition, uint256 amount) returns()

type ConditionTokensTransferBatch

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

ConditionTokensTransferBatch represents a TransferBatch event raised by the ConditionTokens contract.

type ConditionTokensTransferBatchIterator

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

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

func (*ConditionTokensTransferBatchIterator) Close

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

func (*ConditionTokensTransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensTransferBatchIterator) 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 ConditionTokensTransferSingle

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

ConditionTokensTransferSingle represents a TransferSingle event raised by the ConditionTokens contract.

type ConditionTokensTransferSingleIterator

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

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

func (*ConditionTokensTransferSingleIterator) Close

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

func (*ConditionTokensTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensTransferSingleIterator) 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 ConditionTokensURI

type ConditionTokensURI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ConditionTokensURI represents a URI event raised by the ConditionTokens contract.

type ConditionTokensURIIterator

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

ConditionTokensURIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the ConditionTokens contract.

func (*ConditionTokensURIIterator) Close

func (it *ConditionTokensURIIterator) Close() error

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

func (*ConditionTokensURIIterator) Error

func (it *ConditionTokensURIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionTokensURIIterator) Next

func (it *ConditionTokensURIIterator) 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 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