conditional_tokens

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConditionalTokensABI = ConditionalTokensMetaData.ABI

ConditionalTokensABI is the input ABI used to generate the binding from. Deprecated: Use ConditionalTokensMetaData.ABI instead.

View Source
var ConditionalTokensMetaData = &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\":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\":\"owners\",\"type\":\"address[]\"},{\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"operator\",\"type\":\"address\"},{\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"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\"},{\"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\":false,\"inputs\":[{\"name\":\"questionId\",\"type\":\"bytes32\"},{\"name\":\"payouts\",\"type\":\"uint256[]\"}],\"name\":\"reportPayouts\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"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\":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\":\"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\":\"conditionId\",\"type\":\"bytes32\"}],\"name\":\"getOutcomeSlotCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"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\":true,\"inputs\":[{\"name\":\"collateralToken\",\"type\":\"address\"},{\"name\":\"collectionId\",\"type\":\"bytes32\"}],\"name\":\"getPositionId\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}

ConditionalTokensMetaData contains all meta data concerning the ConditionalTokens contract.

Functions

This section is empty.

Types

type ConditionalTokens

type ConditionalTokens struct {
	ConditionalTokensCaller     // Read-only binding to the contract
	ConditionalTokensTransactor // Write-only binding to the contract
	ConditionalTokensFilterer   // Log filterer for contract events
}

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

func NewConditionalTokens

func NewConditionalTokens(address common.Address, backend bind.ContractBackend) (*ConditionalTokens, error)

NewConditionalTokens creates a new instance of ConditionalTokens, bound to a specific deployed contract.

type ConditionalTokensApprovalForAll

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

ConditionalTokensApprovalForAll represents a ApprovalForAll event raised by the ConditionalTokens contract.

type ConditionalTokensApprovalForAllIterator

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

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

func (*ConditionalTokensApprovalForAllIterator) Close

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

func (*ConditionalTokensApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensApprovalForAllIterator) 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 ConditionalTokensCaller

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

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

func NewConditionalTokensCaller

func NewConditionalTokensCaller(address common.Address, caller bind.ContractCaller) (*ConditionalTokensCaller, error)

NewConditionalTokensCaller creates a new read-only instance of ConditionalTokens, bound to a specific deployed contract.

func (*ConditionalTokensCaller) BalanceOf

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) BalanceOfBatch

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) GetCollectionId

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) GetConditionId

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) GetOutcomeSlotCount

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) GetPositionId

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) IsApprovedForAll

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) PayoutDenominator

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) PayoutNumerators

func (_ConditionalTokens *ConditionalTokensCaller) 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 (*ConditionalTokensCaller) SupportsInterface

func (_ConditionalTokens *ConditionalTokensCaller) 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 ConditionalTokensCallerRaw

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

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

func (*ConditionalTokensCallerRaw) Call

func (_ConditionalTokens *ConditionalTokensCallerRaw) 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 ConditionalTokensCallerSession

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

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

func (*ConditionalTokensCallerSession) BalanceOf

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) BalanceOfBatch

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) GetCollectionId

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) GetConditionId

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) GetOutcomeSlotCount

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) GetPositionId

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) IsApprovedForAll

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) PayoutDenominator

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) PayoutNumerators

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 (*ConditionalTokensCallerSession) SupportsInterface

func (_ConditionalTokens *ConditionalTokensCallerSession) 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 ConditionalTokensConditionPreparation

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

ConditionalTokensConditionPreparation represents a ConditionPreparation event raised by the ConditionalTokens contract.

type ConditionalTokensConditionPreparationIterator

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

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

func (*ConditionalTokensConditionPreparationIterator) Close

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

func (*ConditionalTokensConditionPreparationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensConditionPreparationIterator) 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 ConditionalTokensConditionResolution

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

ConditionalTokensConditionResolution represents a ConditionResolution event raised by the ConditionalTokens contract.

type ConditionalTokensConditionResolutionIterator

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

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

func (*ConditionalTokensConditionResolutionIterator) Close

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

func (*ConditionalTokensConditionResolutionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensConditionResolutionIterator) 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 ConditionalTokensFilterer

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

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

func NewConditionalTokensFilterer

func NewConditionalTokensFilterer(address common.Address, filterer bind.ContractFilterer) (*ConditionalTokensFilterer, error)

NewConditionalTokensFilterer creates a new log filterer instance of ConditionalTokens, bound to a specific deployed contract.

func (*ConditionalTokensFilterer) FilterApprovalForAll

func (_ConditionalTokens *ConditionalTokensFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ConditionalTokensApprovalForAllIterator, 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 (*ConditionalTokensFilterer) FilterConditionPreparation

func (_ConditionalTokens *ConditionalTokensFilterer) FilterConditionPreparation(opts *bind.FilterOpts, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (*ConditionalTokensConditionPreparationIterator, 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 (*ConditionalTokensFilterer) FilterConditionResolution

func (_ConditionalTokens *ConditionalTokensFilterer) FilterConditionResolution(opts *bind.FilterOpts, conditionId [][32]byte, oracle []common.Address, questionId [][32]byte) (*ConditionalTokensConditionResolutionIterator, 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 (*ConditionalTokensFilterer) FilterPayoutRedemption

func (_ConditionalTokens *ConditionalTokensFilterer) FilterPayoutRedemption(opts *bind.FilterOpts, redeemer []common.Address, collateralToken []common.Address, parentCollectionId [][32]byte) (*ConditionalTokensPayoutRedemptionIterator, 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 (*ConditionalTokensFilterer) FilterPositionSplit

func (_ConditionalTokens *ConditionalTokensFilterer) FilterPositionSplit(opts *bind.FilterOpts, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (*ConditionalTokensPositionSplitIterator, 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 (*ConditionalTokensFilterer) FilterPositionsMerge

func (_ConditionalTokens *ConditionalTokensFilterer) FilterPositionsMerge(opts *bind.FilterOpts, stakeholder []common.Address, parentCollectionId [][32]byte, conditionId [][32]byte) (*ConditionalTokensPositionsMergeIterator, 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 (*ConditionalTokensFilterer) FilterTransferBatch

func (_ConditionalTokens *ConditionalTokensFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ConditionalTokensTransferBatchIterator, 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 (*ConditionalTokensFilterer) FilterTransferSingle

func (_ConditionalTokens *ConditionalTokensFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*ConditionalTokensTransferSingleIterator, 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 (*ConditionalTokensFilterer) FilterURI

func (_ConditionalTokens *ConditionalTokensFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*ConditionalTokensURIIterator, error)

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

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

func (*ConditionalTokensFilterer) ParseApprovalForAll

func (_ConditionalTokens *ConditionalTokensFilterer) ParseApprovalForAll(log types.Log) (*ConditionalTokensApprovalForAll, error)

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

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

func (*ConditionalTokensFilterer) ParseConditionPreparation

func (_ConditionalTokens *ConditionalTokensFilterer) ParseConditionPreparation(log types.Log) (*ConditionalTokensConditionPreparation, 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 (*ConditionalTokensFilterer) ParseConditionResolution

func (_ConditionalTokens *ConditionalTokensFilterer) ParseConditionResolution(log types.Log) (*ConditionalTokensConditionResolution, 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 (*ConditionalTokensFilterer) ParsePayoutRedemption

func (_ConditionalTokens *ConditionalTokensFilterer) ParsePayoutRedemption(log types.Log) (*ConditionalTokensPayoutRedemption, 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 (*ConditionalTokensFilterer) ParsePositionSplit

func (_ConditionalTokens *ConditionalTokensFilterer) ParsePositionSplit(log types.Log) (*ConditionalTokensPositionSplit, 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 (*ConditionalTokensFilterer) ParsePositionsMerge

func (_ConditionalTokens *ConditionalTokensFilterer) ParsePositionsMerge(log types.Log) (*ConditionalTokensPositionsMerge, 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 (*ConditionalTokensFilterer) ParseTransferBatch

func (_ConditionalTokens *ConditionalTokensFilterer) ParseTransferBatch(log types.Log) (*ConditionalTokensTransferBatch, 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 (*ConditionalTokensFilterer) ParseTransferSingle

func (_ConditionalTokens *ConditionalTokensFilterer) ParseTransferSingle(log types.Log) (*ConditionalTokensTransferSingle, 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 (*ConditionalTokensFilterer) ParseURI

func (_ConditionalTokens *ConditionalTokensFilterer) ParseURI(log types.Log) (*ConditionalTokensURI, error)

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

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

func (*ConditionalTokensFilterer) WatchApprovalForAll

func (_ConditionalTokens *ConditionalTokensFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ConditionalTokensApprovalForAll, 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 (*ConditionalTokensFilterer) WatchConditionPreparation

func (_ConditionalTokens *ConditionalTokensFilterer) WatchConditionPreparation(opts *bind.WatchOpts, sink chan<- *ConditionalTokensConditionPreparation, 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 (*ConditionalTokensFilterer) WatchConditionResolution

func (_ConditionalTokens *ConditionalTokensFilterer) WatchConditionResolution(opts *bind.WatchOpts, sink chan<- *ConditionalTokensConditionResolution, 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 (*ConditionalTokensFilterer) WatchPayoutRedemption

func (_ConditionalTokens *ConditionalTokensFilterer) WatchPayoutRedemption(opts *bind.WatchOpts, sink chan<- *ConditionalTokensPayoutRedemption, 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 (*ConditionalTokensFilterer) WatchPositionSplit

func (_ConditionalTokens *ConditionalTokensFilterer) WatchPositionSplit(opts *bind.WatchOpts, sink chan<- *ConditionalTokensPositionSplit, 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 (*ConditionalTokensFilterer) WatchPositionsMerge

func (_ConditionalTokens *ConditionalTokensFilterer) WatchPositionsMerge(opts *bind.WatchOpts, sink chan<- *ConditionalTokensPositionsMerge, 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 (*ConditionalTokensFilterer) WatchTransferBatch

func (_ConditionalTokens *ConditionalTokensFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *ConditionalTokensTransferBatch, 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 (*ConditionalTokensFilterer) WatchTransferSingle

func (_ConditionalTokens *ConditionalTokensFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *ConditionalTokensTransferSingle, 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 (*ConditionalTokensFilterer) WatchURI

func (_ConditionalTokens *ConditionalTokensFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *ConditionalTokensURI, 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 ConditionalTokensPayoutRedemption

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

ConditionalTokensPayoutRedemption represents a PayoutRedemption event raised by the ConditionalTokens contract.

type ConditionalTokensPayoutRedemptionIterator

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

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

func (*ConditionalTokensPayoutRedemptionIterator) Close

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

func (*ConditionalTokensPayoutRedemptionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensPayoutRedemptionIterator) 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 ConditionalTokensPositionSplit

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

ConditionalTokensPositionSplit represents a PositionSplit event raised by the ConditionalTokens contract.

type ConditionalTokensPositionSplitIterator

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

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

func (*ConditionalTokensPositionSplitIterator) Close

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

func (*ConditionalTokensPositionSplitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensPositionSplitIterator) 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 ConditionalTokensPositionsMerge

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

ConditionalTokensPositionsMerge represents a PositionsMerge event raised by the ConditionalTokens contract.

type ConditionalTokensPositionsMergeIterator

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

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

func (*ConditionalTokensPositionsMergeIterator) Close

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

func (*ConditionalTokensPositionsMergeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensPositionsMergeIterator) 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 ConditionalTokensRaw

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

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

func (*ConditionalTokensRaw) Call

func (_ConditionalTokens *ConditionalTokensRaw) 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 (*ConditionalTokensRaw) Transact

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

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

func (*ConditionalTokensRaw) Transfer

func (_ConditionalTokens *ConditionalTokensRaw) 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 ConditionalTokensSession

type ConditionalTokensSession struct {
	Contract     *ConditionalTokens // 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
}

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

func (*ConditionalTokensSession) BalanceOf

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) BalanceOfBatch

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) GetCollectionId

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) GetConditionId

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) GetOutcomeSlotCount

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) GetPositionId

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) IsApprovedForAll

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) MergePositions

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) PayoutDenominator

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) PayoutNumerators

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) PrepareCondition

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) RedeemPositions

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) ReportPayouts

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) SafeBatchTransferFrom

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) SafeTransferFrom

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) SetApprovalForAll

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) SplitPosition

func (_ConditionalTokens *ConditionalTokensSession) 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 (*ConditionalTokensSession) SupportsInterface

func (_ConditionalTokens *ConditionalTokensSession) 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 ConditionalTokensTransactor

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

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

func NewConditionalTokensTransactor

func NewConditionalTokensTransactor(address common.Address, transactor bind.ContractTransactor) (*ConditionalTokensTransactor, error)

NewConditionalTokensTransactor creates a new write-only instance of ConditionalTokens, bound to a specific deployed contract.

func (*ConditionalTokensTransactor) MergePositions

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) PrepareCondition

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) RedeemPositions

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) ReportPayouts

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) SafeBatchTransferFrom

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) SafeTransferFrom

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) SetApprovalForAll

func (_ConditionalTokens *ConditionalTokensTransactor) 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 (*ConditionalTokensTransactor) SplitPosition

func (_ConditionalTokens *ConditionalTokensTransactor) 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 ConditionalTokensTransactorRaw

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

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

func (*ConditionalTokensTransactorRaw) Transact

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

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

func (*ConditionalTokensTransactorRaw) Transfer

func (_ConditionalTokens *ConditionalTokensTransactorRaw) 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 ConditionalTokensTransactorSession

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

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

func (*ConditionalTokensTransactorSession) MergePositions

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) PrepareCondition

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) RedeemPositions

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) ReportPayouts

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) SafeBatchTransferFrom

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) SafeTransferFrom

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) SetApprovalForAll

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 (*ConditionalTokensTransactorSession) SplitPosition

func (_ConditionalTokens *ConditionalTokensTransactorSession) 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 ConditionalTokensTransferBatch

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

ConditionalTokensTransferBatch represents a TransferBatch event raised by the ConditionalTokens contract.

type ConditionalTokensTransferBatchIterator

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

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

func (*ConditionalTokensTransferBatchIterator) Close

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

func (*ConditionalTokensTransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensTransferBatchIterator) 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 ConditionalTokensTransferSingle

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

ConditionalTokensTransferSingle represents a TransferSingle event raised by the ConditionalTokens contract.

type ConditionalTokensTransferSingleIterator

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

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

func (*ConditionalTokensTransferSingleIterator) Close

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

func (*ConditionalTokensTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensTransferSingleIterator) 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 ConditionalTokensURI

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

ConditionalTokensURI represents a URI event raised by the ConditionalTokens contract.

type ConditionalTokensURIIterator

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

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

func (*ConditionalTokensURIIterator) Close

func (it *ConditionalTokensURIIterator) Close() error

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

func (*ConditionalTokensURIIterator) Error

func (it *ConditionalTokensURIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ConditionalTokensURIIterator) 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.

Jump to

Keyboard shortcuts

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