raffle

package
v1.0.0-9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RaffleABI = RaffleMetaData.ABI

RaffleABI is the input ABI used to generate the binding from. Deprecated: Use RaffleMetaData.ABI instead.

View Source
var RaffleMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vrfCoordinator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_feeSetter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_usd\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_keyHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"_subscriptionId\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_uniV3Factory\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"_currencies\",\"type\":\"address[]\"},{\"internalType\":\"uint24[]\",\"name\":\"_feeRates\",\"type\":\"uint24[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"have\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"want\",\"type\":\"address\"}],\"name\":\"OnlyCoordinatorCanFulfill\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fundsAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"FundsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"PrizeClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"}],\"name\":\"RaffleCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"}],\"name\":\"RaffleClosed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"RaffleCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lowerBound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"upperBound\",\"type\":\"uint256\"}],\"name\":\"RaffleEntered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"winningTicket\",\"type\":\"uint256\"}],\"name\":\"WinningTicketPicked\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_raffleId\",\"type\":\"uint256\"}],\"name\":\"cancel\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_raffleId\",\"type\":\"uint256\"}],\"name\":\"claimFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_raffleId\",\"type\":\"uint256\"}],\"name\":\"claimPrize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_raffleId\",\"type\":\"uint256\"}],\"name\":\"close\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_duration\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"_ticketPrice\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"_ticketSize\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"}],\"name\":\"create\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"currencyInfo\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"},{\"internalType\":\"uint24\",\"name\":\"feeRate\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentTaskId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_raffleId\",\"type\":\"uint256\"},{\"internalType\":\"uint96\",\"name\":\"_amount\",\"type\":\"uint96\"}],\"name\":\"enter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"}],\"name\":\"getCurrencyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"prizeInfo\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"winningNumber\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"prizeClaimed\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"fundsClaimed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"raffleInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"endTime\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"ticketSize\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"ticketPrice\",\"type\":\"uint64\"},{\"internalType\":\"uint160\",\"name\":\"funds\",\"type\":\"uint160\"},{\"internalType\":\"uint96\",\"name\":\"soldTickets\",\"type\":\"uint96\"},{\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"internalType\":\"enumRaffle.TaskStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"randomWords\",\"type\":\"uint256[]\"}],\"name\":\"rawFulfillRandomWords\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"requestInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_currency\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_enable\",\"type\":\"bool\"},{\"internalType\":\"uint24\",\"name\":\"_feeRate\",\"type\":\"uint24\"}],\"name\":\"setCurrency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"ticketAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

RaffleMetaData contains all meta data concerning the Raffle contract.

Functions

This section is empty.

Types

type Raffle

type Raffle struct {
	RaffleCaller     // Read-only binding to the contract
	RaffleTransactor // Write-only binding to the contract
	RaffleFilterer   // Log filterer for contract events
}

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

func NewRaffle

func NewRaffle(address common.Address, backend bind.ContractBackend) (*Raffle, error)

NewRaffle creates a new instance of Raffle, bound to a specific deployed contract.

type RaffleCaller

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

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

func NewRaffleCaller

func NewRaffleCaller(address common.Address, caller bind.ContractCaller) (*RaffleCaller, error)

NewRaffleCaller creates a new read-only instance of Raffle, bound to a specific deployed contract.

func (*RaffleCaller) CurrencyInfo

func (_Raffle *RaffleCaller) CurrencyInfo(opts *bind.CallOpts, arg0 common.Address) (struct {
	Enabled bool
	FeeRate *big.Int
}, error)

CurrencyInfo is a free data retrieval call binding the contract method 0x6d31cb2a.

Solidity: function currencyInfo(address ) view returns(bool enabled, uint24 feeRate)

func (*RaffleCaller) CurrentTaskId

func (_Raffle *RaffleCaller) CurrentTaskId(opts *bind.CallOpts) (*big.Int, error)

CurrentTaskId is a free data retrieval call binding the contract method 0x98934a1f.

Solidity: function currentTaskId() view returns(uint256)

func (*RaffleCaller) FeeRate

func (_Raffle *RaffleCaller) FeeRate(opts *bind.CallOpts) (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*RaffleCaller) FeeSetter

func (_Raffle *RaffleCaller) FeeSetter(opts *bind.CallOpts) (common.Address, error)

FeeSetter is a free data retrieval call binding the contract method 0x87cf3ef4.

Solidity: function feeSetter() view returns(address)

func (*RaffleCaller) GetCurrencyPrice

func (_Raffle *RaffleCaller) GetCurrencyPrice(opts *bind.CallOpts, _currency common.Address) (*big.Int, error)

GetCurrencyPrice is a free data retrieval call binding the contract method 0x7058346f.

Solidity: function getCurrencyPrice(address _currency) view returns(uint256 price)

func (*RaffleCaller) OnERC721Received

func (_Raffle *RaffleCaller) OnERC721Received(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) ([4]byte, error)

OnERC721Received is a free data retrieval call binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) pure returns(bytes4)

func (*RaffleCaller) Owner

func (_Raffle *RaffleCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RaffleCaller) PrizeInfo

func (_Raffle *RaffleCaller) PrizeInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	WinningNumber uint32
	PrizeClaimed  bool
	FundsClaimed  bool
}, error)

PrizeInfo is a free data retrieval call binding the contract method 0x726a41cf.

Solidity: function prizeInfo(uint256 ) view returns(uint32 winningNumber, bool prizeClaimed, bool fundsClaimed)

func (*RaffleCaller) RaffleInfo

func (_Raffle *RaffleCaller) RaffleInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Owner        common.Address
	EndTime      uint64
	TicketSize   uint32
	TokenId      *big.Int
	TokenAddress common.Address
	TicketPrice  uint64
	Funds        *big.Int
	SoldTickets  *big.Int
	Currency     common.Address
	Status       uint8
}, error)

RaffleInfo is a free data retrieval call binding the contract method 0xbf30d790.

Solidity: function raffleInfo(uint256 ) view returns(address owner, uint64 endTime, uint32 ticketSize, uint256 tokenId, address tokenAddress, uint64 ticketPrice, uint160 funds, uint96 soldTickets, address currency, uint8 status)

func (*RaffleCaller) RequestInfo

func (_Raffle *RaffleCaller) RequestInfo(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

RequestInfo is a free data retrieval call binding the contract method 0x4f588bf1.

Solidity: function requestInfo(uint256 ) view returns(uint256)

func (*RaffleCaller) UserInfo

func (_Raffle *RaffleCaller) UserInfo(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (*big.Int, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 ticketAmount)

type RaffleCallerRaw

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

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

func (*RaffleCallerRaw) Call

func (_Raffle *RaffleCallerRaw) 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 RaffleCallerSession

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

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

func (*RaffleCallerSession) CurrencyInfo

func (_Raffle *RaffleCallerSession) CurrencyInfo(arg0 common.Address) (struct {
	Enabled bool
	FeeRate *big.Int
}, error)

CurrencyInfo is a free data retrieval call binding the contract method 0x6d31cb2a.

Solidity: function currencyInfo(address ) view returns(bool enabled, uint24 feeRate)

func (*RaffleCallerSession) CurrentTaskId

func (_Raffle *RaffleCallerSession) CurrentTaskId() (*big.Int, error)

CurrentTaskId is a free data retrieval call binding the contract method 0x98934a1f.

Solidity: function currentTaskId() view returns(uint256)

func (*RaffleCallerSession) FeeRate

func (_Raffle *RaffleCallerSession) FeeRate() (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*RaffleCallerSession) FeeSetter

func (_Raffle *RaffleCallerSession) FeeSetter() (common.Address, error)

FeeSetter is a free data retrieval call binding the contract method 0x87cf3ef4.

Solidity: function feeSetter() view returns(address)

func (*RaffleCallerSession) GetCurrencyPrice

func (_Raffle *RaffleCallerSession) GetCurrencyPrice(_currency common.Address) (*big.Int, error)

GetCurrencyPrice is a free data retrieval call binding the contract method 0x7058346f.

Solidity: function getCurrencyPrice(address _currency) view returns(uint256 price)

func (*RaffleCallerSession) OnERC721Received

func (_Raffle *RaffleCallerSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) ([4]byte, error)

OnERC721Received is a free data retrieval call binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) pure returns(bytes4)

func (*RaffleCallerSession) Owner

func (_Raffle *RaffleCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RaffleCallerSession) PrizeInfo

func (_Raffle *RaffleCallerSession) PrizeInfo(arg0 *big.Int) (struct {
	WinningNumber uint32
	PrizeClaimed  bool
	FundsClaimed  bool
}, error)

PrizeInfo is a free data retrieval call binding the contract method 0x726a41cf.

Solidity: function prizeInfo(uint256 ) view returns(uint32 winningNumber, bool prizeClaimed, bool fundsClaimed)

func (*RaffleCallerSession) RaffleInfo

func (_Raffle *RaffleCallerSession) RaffleInfo(arg0 *big.Int) (struct {
	Owner        common.Address
	EndTime      uint64
	TicketSize   uint32
	TokenId      *big.Int
	TokenAddress common.Address
	TicketPrice  uint64
	Funds        *big.Int
	SoldTickets  *big.Int
	Currency     common.Address
	Status       uint8
}, error)

RaffleInfo is a free data retrieval call binding the contract method 0xbf30d790.

Solidity: function raffleInfo(uint256 ) view returns(address owner, uint64 endTime, uint32 ticketSize, uint256 tokenId, address tokenAddress, uint64 ticketPrice, uint160 funds, uint96 soldTickets, address currency, uint8 status)

func (*RaffleCallerSession) RequestInfo

func (_Raffle *RaffleCallerSession) RequestInfo(arg0 *big.Int) (*big.Int, error)

RequestInfo is a free data retrieval call binding the contract method 0x4f588bf1.

Solidity: function requestInfo(uint256 ) view returns(uint256)

func (*RaffleCallerSession) UserInfo

func (_Raffle *RaffleCallerSession) UserInfo(arg0 *big.Int, arg1 common.Address) (*big.Int, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 ticketAmount)

type RaffleFilterer

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

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

func NewRaffleFilterer

func NewRaffleFilterer(address common.Address, filterer bind.ContractFilterer) (*RaffleFilterer, error)

NewRaffleFilterer creates a new log filterer instance of Raffle, bound to a specific deployed contract.

func (*RaffleFilterer) FilterFundsClaimed

func (_Raffle *RaffleFilterer) FilterFundsClaimed(opts *bind.FilterOpts) (*RaffleFundsClaimedIterator, error)

FilterFundsClaimed is a free log retrieval operation binding the contract event 0x3f53f5f381ee0b1fbf730fa56efb0a2aec8a882b2847a1ec0279982d8846e4f2.

Solidity: event FundsClaimed(uint256 taskId, uint256 fundsAmount, address owner, uint256 fee)

func (*RaffleFilterer) FilterOwnershipTransferred

func (_Raffle *RaffleFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RaffleOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RaffleFilterer) FilterPrizeClaimed

func (_Raffle *RaffleFilterer) FilterPrizeClaimed(opts *bind.FilterOpts) (*RafflePrizeClaimedIterator, error)

FilterPrizeClaimed is a free log retrieval operation binding the contract event 0x608c8c3c6a3d40f40b96fbee44f9b9aee57a39c2fcb8bb0f59d8892b2d5492a2.

Solidity: event PrizeClaimed(uint256 taskId, uint256 tokenId, address winner, uint256 fee)

func (*RaffleFilterer) FilterRaffleCancelled

func (_Raffle *RaffleFilterer) FilterRaffleCancelled(opts *bind.FilterOpts) (*RaffleRaffleCancelledIterator, error)

FilterRaffleCancelled is a free log retrieval operation binding the contract event 0x7fa78bab5d5570f162c69234a3f4d1b9294fd5bca72219cb16c1fe38839ccb8a.

Solidity: event RaffleCancelled(uint256 taskId)

func (*RaffleFilterer) FilterRaffleClosed

func (_Raffle *RaffleFilterer) FilterRaffleClosed(opts *bind.FilterOpts) (*RaffleRaffleClosedIterator, error)

FilterRaffleClosed is a free log retrieval operation binding the contract event 0x2a7d48246875b5f17dc9944def25fc8fe90e524ca2165e290ffdc0e44a0bf8b6.

Solidity: event RaffleClosed(uint256 taskId)

func (*RaffleFilterer) FilterRaffleCreated

func (_Raffle *RaffleFilterer) FilterRaffleCreated(opts *bind.FilterOpts, taskId []*big.Int, owner []common.Address) (*RaffleRaffleCreatedIterator, error)

FilterRaffleCreated is a free log retrieval operation binding the contract event 0x71f77ac840b74f30ac7115cc2fca45c4157ccc2b0a6e72f4183c587d77baa0ab.

Solidity: event RaffleCreated(uint256 indexed taskId, address indexed owner, uint256 startTime, uint256 duration)

func (*RaffleFilterer) FilterRaffleEntered

func (_Raffle *RaffleFilterer) FilterRaffleEntered(opts *bind.FilterOpts) (*RaffleRaffleEnteredIterator, error)

FilterRaffleEntered is a free log retrieval operation binding the contract event 0xeb79e1c4c2e9267b8cc3b7b7df468f4a50a3fb1c8093d604f2c281ebdf2ae829.

Solidity: event RaffleEntered(uint256 taskId, address user, uint256 lowerBound, uint256 upperBound)

func (*RaffleFilterer) FilterWinningTicketPicked

func (_Raffle *RaffleFilterer) FilterWinningTicketPicked(opts *bind.FilterOpts) (*RaffleWinningTicketPickedIterator, error)

FilterWinningTicketPicked is a free log retrieval operation binding the contract event 0x05459ed43a6fc64488d6051768b4c51dd130988284a0c8282e086078cd5ab546.

Solidity: event WinningTicketPicked(uint256 taskId, uint256 winningTicket)

func (*RaffleFilterer) ParseFundsClaimed

func (_Raffle *RaffleFilterer) ParseFundsClaimed(log types.Log) (*RaffleFundsClaimed, error)

ParseFundsClaimed is a log parse operation binding the contract event 0x3f53f5f381ee0b1fbf730fa56efb0a2aec8a882b2847a1ec0279982d8846e4f2.

Solidity: event FundsClaimed(uint256 taskId, uint256 fundsAmount, address owner, uint256 fee)

func (*RaffleFilterer) ParseOwnershipTransferred

func (_Raffle *RaffleFilterer) ParseOwnershipTransferred(log types.Log) (*RaffleOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RaffleFilterer) ParsePrizeClaimed

func (_Raffle *RaffleFilterer) ParsePrizeClaimed(log types.Log) (*RafflePrizeClaimed, error)

ParsePrizeClaimed is a log parse operation binding the contract event 0x608c8c3c6a3d40f40b96fbee44f9b9aee57a39c2fcb8bb0f59d8892b2d5492a2.

Solidity: event PrizeClaimed(uint256 taskId, uint256 tokenId, address winner, uint256 fee)

func (*RaffleFilterer) ParseRaffleCancelled

func (_Raffle *RaffleFilterer) ParseRaffleCancelled(log types.Log) (*RaffleRaffleCancelled, error)

ParseRaffleCancelled is a log parse operation binding the contract event 0x7fa78bab5d5570f162c69234a3f4d1b9294fd5bca72219cb16c1fe38839ccb8a.

Solidity: event RaffleCancelled(uint256 taskId)

func (*RaffleFilterer) ParseRaffleClosed

func (_Raffle *RaffleFilterer) ParseRaffleClosed(log types.Log) (*RaffleRaffleClosed, error)

ParseRaffleClosed is a log parse operation binding the contract event 0x2a7d48246875b5f17dc9944def25fc8fe90e524ca2165e290ffdc0e44a0bf8b6.

Solidity: event RaffleClosed(uint256 taskId)

func (*RaffleFilterer) ParseRaffleCreated

func (_Raffle *RaffleFilterer) ParseRaffleCreated(log types.Log) (*RaffleRaffleCreated, error)

ParseRaffleCreated is a log parse operation binding the contract event 0x71f77ac840b74f30ac7115cc2fca45c4157ccc2b0a6e72f4183c587d77baa0ab.

Solidity: event RaffleCreated(uint256 indexed taskId, address indexed owner, uint256 startTime, uint256 duration)

func (*RaffleFilterer) ParseRaffleEntered

func (_Raffle *RaffleFilterer) ParseRaffleEntered(log types.Log) (*RaffleRaffleEntered, error)

ParseRaffleEntered is a log parse operation binding the contract event 0xeb79e1c4c2e9267b8cc3b7b7df468f4a50a3fb1c8093d604f2c281ebdf2ae829.

Solidity: event RaffleEntered(uint256 taskId, address user, uint256 lowerBound, uint256 upperBound)

func (*RaffleFilterer) ParseWinningTicketPicked

func (_Raffle *RaffleFilterer) ParseWinningTicketPicked(log types.Log) (*RaffleWinningTicketPicked, error)

ParseWinningTicketPicked is a log parse operation binding the contract event 0x05459ed43a6fc64488d6051768b4c51dd130988284a0c8282e086078cd5ab546.

Solidity: event WinningTicketPicked(uint256 taskId, uint256 winningTicket)

func (*RaffleFilterer) WatchFundsClaimed

func (_Raffle *RaffleFilterer) WatchFundsClaimed(opts *bind.WatchOpts, sink chan<- *RaffleFundsClaimed) (event.Subscription, error)

WatchFundsClaimed is a free log subscription operation binding the contract event 0x3f53f5f381ee0b1fbf730fa56efb0a2aec8a882b2847a1ec0279982d8846e4f2.

Solidity: event FundsClaimed(uint256 taskId, uint256 fundsAmount, address owner, uint256 fee)

func (*RaffleFilterer) WatchOwnershipTransferred

func (_Raffle *RaffleFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RaffleOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RaffleFilterer) WatchPrizeClaimed

func (_Raffle *RaffleFilterer) WatchPrizeClaimed(opts *bind.WatchOpts, sink chan<- *RafflePrizeClaimed) (event.Subscription, error)

WatchPrizeClaimed is a free log subscription operation binding the contract event 0x608c8c3c6a3d40f40b96fbee44f9b9aee57a39c2fcb8bb0f59d8892b2d5492a2.

Solidity: event PrizeClaimed(uint256 taskId, uint256 tokenId, address winner, uint256 fee)

func (*RaffleFilterer) WatchRaffleCancelled

func (_Raffle *RaffleFilterer) WatchRaffleCancelled(opts *bind.WatchOpts, sink chan<- *RaffleRaffleCancelled) (event.Subscription, error)

WatchRaffleCancelled is a free log subscription operation binding the contract event 0x7fa78bab5d5570f162c69234a3f4d1b9294fd5bca72219cb16c1fe38839ccb8a.

Solidity: event RaffleCancelled(uint256 taskId)

func (*RaffleFilterer) WatchRaffleClosed

func (_Raffle *RaffleFilterer) WatchRaffleClosed(opts *bind.WatchOpts, sink chan<- *RaffleRaffleClosed) (event.Subscription, error)

WatchRaffleClosed is a free log subscription operation binding the contract event 0x2a7d48246875b5f17dc9944def25fc8fe90e524ca2165e290ffdc0e44a0bf8b6.

Solidity: event RaffleClosed(uint256 taskId)

func (*RaffleFilterer) WatchRaffleCreated

func (_Raffle *RaffleFilterer) WatchRaffleCreated(opts *bind.WatchOpts, sink chan<- *RaffleRaffleCreated, taskId []*big.Int, owner []common.Address) (event.Subscription, error)

WatchRaffleCreated is a free log subscription operation binding the contract event 0x71f77ac840b74f30ac7115cc2fca45c4157ccc2b0a6e72f4183c587d77baa0ab.

Solidity: event RaffleCreated(uint256 indexed taskId, address indexed owner, uint256 startTime, uint256 duration)

func (*RaffleFilterer) WatchRaffleEntered

func (_Raffle *RaffleFilterer) WatchRaffleEntered(opts *bind.WatchOpts, sink chan<- *RaffleRaffleEntered) (event.Subscription, error)

WatchRaffleEntered is a free log subscription operation binding the contract event 0xeb79e1c4c2e9267b8cc3b7b7df468f4a50a3fb1c8093d604f2c281ebdf2ae829.

Solidity: event RaffleEntered(uint256 taskId, address user, uint256 lowerBound, uint256 upperBound)

func (*RaffleFilterer) WatchWinningTicketPicked

func (_Raffle *RaffleFilterer) WatchWinningTicketPicked(opts *bind.WatchOpts, sink chan<- *RaffleWinningTicketPicked) (event.Subscription, error)

WatchWinningTicketPicked is a free log subscription operation binding the contract event 0x05459ed43a6fc64488d6051768b4c51dd130988284a0c8282e086078cd5ab546.

Solidity: event WinningTicketPicked(uint256 taskId, uint256 winningTicket)

type RaffleFundsClaimed

type RaffleFundsClaimed struct {
	TaskId      *big.Int
	FundsAmount *big.Int
	Owner       common.Address
	Fee         *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

RaffleFundsClaimed represents a FundsClaimed event raised by the Raffle contract.

type RaffleFundsClaimedIterator

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

RaffleFundsClaimedIterator is returned from FilterFundsClaimed and is used to iterate over the raw logs and unpacked data for FundsClaimed events raised by the Raffle contract.

func (*RaffleFundsClaimedIterator) Close

func (it *RaffleFundsClaimedIterator) Close() error

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

func (*RaffleFundsClaimedIterator) Error

func (it *RaffleFundsClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleFundsClaimedIterator) Next

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

type RaffleOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

RaffleOwnershipTransferred represents a OwnershipTransferred event raised by the Raffle contract.

type RaffleOwnershipTransferredIterator

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

RaffleOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Raffle contract.

func (*RaffleOwnershipTransferredIterator) Close

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

func (*RaffleOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleOwnershipTransferredIterator) 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 RafflePrizeClaimed

type RafflePrizeClaimed struct {
	TaskId  *big.Int
	TokenId *big.Int
	Winner  common.Address
	Fee     *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RafflePrizeClaimed represents a PrizeClaimed event raised by the Raffle contract.

type RafflePrizeClaimedIterator

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

RafflePrizeClaimedIterator is returned from FilterPrizeClaimed and is used to iterate over the raw logs and unpacked data for PrizeClaimed events raised by the Raffle contract.

func (*RafflePrizeClaimedIterator) Close

func (it *RafflePrizeClaimedIterator) Close() error

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

func (*RafflePrizeClaimedIterator) Error

func (it *RafflePrizeClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RafflePrizeClaimedIterator) Next

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

type RaffleRaffleCancelled struct {
	TaskId *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RaffleRaffleCancelled represents a RaffleCancelled event raised by the Raffle contract.

type RaffleRaffleCancelledIterator

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

RaffleRaffleCancelledIterator is returned from FilterRaffleCancelled and is used to iterate over the raw logs and unpacked data for RaffleCancelled events raised by the Raffle contract.

func (*RaffleRaffleCancelledIterator) Close

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

func (*RaffleRaffleCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleRaffleCancelledIterator) 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 RaffleRaffleClosed

type RaffleRaffleClosed struct {
	TaskId *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

RaffleRaffleClosed represents a RaffleClosed event raised by the Raffle contract.

type RaffleRaffleClosedIterator

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

RaffleRaffleClosedIterator is returned from FilterRaffleClosed and is used to iterate over the raw logs and unpacked data for RaffleClosed events raised by the Raffle contract.

func (*RaffleRaffleClosedIterator) Close

func (it *RaffleRaffleClosedIterator) Close() error

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

func (*RaffleRaffleClosedIterator) Error

func (it *RaffleRaffleClosedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleRaffleClosedIterator) Next

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

type RaffleRaffleCreated struct {
	TaskId    *big.Int
	Owner     common.Address
	StartTime *big.Int
	Duration  *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

RaffleRaffleCreated represents a RaffleCreated event raised by the Raffle contract.

type RaffleRaffleCreatedIterator

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

RaffleRaffleCreatedIterator is returned from FilterRaffleCreated and is used to iterate over the raw logs and unpacked data for RaffleCreated events raised by the Raffle contract.

func (*RaffleRaffleCreatedIterator) Close

func (it *RaffleRaffleCreatedIterator) Close() error

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

func (*RaffleRaffleCreatedIterator) Error

func (it *RaffleRaffleCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleRaffleCreatedIterator) Next

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

type RaffleRaffleEntered struct {
	TaskId     *big.Int
	User       common.Address
	LowerBound *big.Int
	UpperBound *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

RaffleRaffleEntered represents a RaffleEntered event raised by the Raffle contract.

type RaffleRaffleEnteredIterator

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

RaffleRaffleEnteredIterator is returned from FilterRaffleEntered and is used to iterate over the raw logs and unpacked data for RaffleEntered events raised by the Raffle contract.

func (*RaffleRaffleEnteredIterator) Close

func (it *RaffleRaffleEnteredIterator) Close() error

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

func (*RaffleRaffleEnteredIterator) Error

func (it *RaffleRaffleEnteredIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RaffleRaffleEnteredIterator) Next

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

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

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

func (*RaffleRaw) Call

func (_Raffle *RaffleRaw) 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 (*RaffleRaw) Transact

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

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

func (*RaffleRaw) Transfer

func (_Raffle *RaffleRaw) 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 RaffleSession

type RaffleSession struct {
	Contract     *Raffle           // 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
}

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

func (*RaffleSession) Cancel

func (_Raffle *RaffleSession) Cancel(_raffleId *big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0x40e58ee5.

Solidity: function cancel(uint256 _raffleId) returns()

func (*RaffleSession) ClaimFunds

func (_Raffle *RaffleSession) ClaimFunds(_raffleId *big.Int) (*types.Transaction, error)

ClaimFunds is a paid mutator transaction binding the contract method 0x1b55e338.

Solidity: function claimFunds(uint256 _raffleId) returns()

func (*RaffleSession) ClaimPrize

func (_Raffle *RaffleSession) ClaimPrize(_raffleId *big.Int) (*types.Transaction, error)

ClaimPrize is a paid mutator transaction binding the contract method 0xd7098154.

Solidity: function claimPrize(uint256 _raffleId) returns()

func (*RaffleSession) Close

func (_Raffle *RaffleSession) Close(_raffleId *big.Int) (*types.Transaction, error)

Close is a paid mutator transaction binding the contract method 0x0aebeb4e.

Solidity: function close(uint256 _raffleId) returns()

func (*RaffleSession) Create

func (_Raffle *RaffleSession) Create(_tokenAddr common.Address, _tokenId *big.Int, _duration *big.Int, _ticketPrice uint64, _ticketSize uint32, _currency common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0xa7c1891e.

Solidity: function create(address _tokenAddr, uint256 _tokenId, uint256 _duration, uint64 _ticketPrice, uint32 _ticketSize, address _currency) returns()

func (*RaffleSession) CurrencyInfo

func (_Raffle *RaffleSession) CurrencyInfo(arg0 common.Address) (struct {
	Enabled bool
	FeeRate *big.Int
}, error)

CurrencyInfo is a free data retrieval call binding the contract method 0x6d31cb2a.

Solidity: function currencyInfo(address ) view returns(bool enabled, uint24 feeRate)

func (*RaffleSession) CurrentTaskId

func (_Raffle *RaffleSession) CurrentTaskId() (*big.Int, error)

CurrentTaskId is a free data retrieval call binding the contract method 0x98934a1f.

Solidity: function currentTaskId() view returns(uint256)

func (*RaffleSession) Enter

func (_Raffle *RaffleSession) Enter(_raffleId *big.Int, _amount *big.Int) (*types.Transaction, error)

Enter is a paid mutator transaction binding the contract method 0x00d407d6.

Solidity: function enter(uint256 _raffleId, uint96 _amount) returns()

func (*RaffleSession) FeeRate

func (_Raffle *RaffleSession) FeeRate() (*big.Int, error)

FeeRate is a free data retrieval call binding the contract method 0x978bbdb9.

Solidity: function feeRate() view returns(uint256)

func (*RaffleSession) FeeSetter

func (_Raffle *RaffleSession) FeeSetter() (common.Address, error)

FeeSetter is a free data retrieval call binding the contract method 0x87cf3ef4.

Solidity: function feeSetter() view returns(address)

func (*RaffleSession) GetCurrencyPrice

func (_Raffle *RaffleSession) GetCurrencyPrice(_currency common.Address) (*big.Int, error)

GetCurrencyPrice is a free data retrieval call binding the contract method 0x7058346f.

Solidity: function getCurrencyPrice(address _currency) view returns(uint256 price)

func (*RaffleSession) OnERC721Received

func (_Raffle *RaffleSession) OnERC721Received(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 []byte) ([4]byte, error)

OnERC721Received is a free data retrieval call binding the contract method 0x150b7a02.

Solidity: function onERC721Received(address , address , uint256 , bytes ) pure returns(bytes4)

func (*RaffleSession) Owner

func (_Raffle *RaffleSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*RaffleSession) PrizeInfo

func (_Raffle *RaffleSession) PrizeInfo(arg0 *big.Int) (struct {
	WinningNumber uint32
	PrizeClaimed  bool
	FundsClaimed  bool
}, error)

PrizeInfo is a free data retrieval call binding the contract method 0x726a41cf.

Solidity: function prizeInfo(uint256 ) view returns(uint32 winningNumber, bool prizeClaimed, bool fundsClaimed)

func (*RaffleSession) RaffleInfo

func (_Raffle *RaffleSession) RaffleInfo(arg0 *big.Int) (struct {
	Owner        common.Address
	EndTime      uint64
	TicketSize   uint32
	TokenId      *big.Int
	TokenAddress common.Address
	TicketPrice  uint64
	Funds        *big.Int
	SoldTickets  *big.Int
	Currency     common.Address
	Status       uint8
}, error)

RaffleInfo is a free data retrieval call binding the contract method 0xbf30d790.

Solidity: function raffleInfo(uint256 ) view returns(address owner, uint64 endTime, uint32 ticketSize, uint256 tokenId, address tokenAddress, uint64 ticketPrice, uint160 funds, uint96 soldTickets, address currency, uint8 status)

func (*RaffleSession) RawFulfillRandomWords

func (_Raffle *RaffleSession) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

RawFulfillRandomWords is a paid mutator transaction binding the contract method 0x1fe543e3.

Solidity: function rawFulfillRandomWords(uint256 requestId, uint256[] randomWords) returns()

func (*RaffleSession) RenounceOwnership

func (_Raffle *RaffleSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RaffleSession) RequestInfo

func (_Raffle *RaffleSession) RequestInfo(arg0 *big.Int) (*big.Int, error)

RequestInfo is a free data retrieval call binding the contract method 0x4f588bf1.

Solidity: function requestInfo(uint256 ) view returns(uint256)

func (*RaffleSession) SetCurrency

func (_Raffle *RaffleSession) SetCurrency(_currency common.Address, _enable bool, _feeRate *big.Int) (*types.Transaction, error)

SetCurrency is a paid mutator transaction binding the contract method 0x59991a77.

Solidity: function setCurrency(address _currency, bool _enable, uint24 _feeRate) returns()

func (*RaffleSession) TransferOwnership

func (_Raffle *RaffleSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*RaffleSession) UserInfo

func (_Raffle *RaffleSession) UserInfo(arg0 *big.Int, arg1 common.Address) (*big.Int, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 ticketAmount)

type RaffleTransactor

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

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

func NewRaffleTransactor

func NewRaffleTransactor(address common.Address, transactor bind.ContractTransactor) (*RaffleTransactor, error)

NewRaffleTransactor creates a new write-only instance of Raffle, bound to a specific deployed contract.

func (*RaffleTransactor) Cancel

func (_Raffle *RaffleTransactor) Cancel(opts *bind.TransactOpts, _raffleId *big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0x40e58ee5.

Solidity: function cancel(uint256 _raffleId) returns()

func (*RaffleTransactor) ClaimFunds

func (_Raffle *RaffleTransactor) ClaimFunds(opts *bind.TransactOpts, _raffleId *big.Int) (*types.Transaction, error)

ClaimFunds is a paid mutator transaction binding the contract method 0x1b55e338.

Solidity: function claimFunds(uint256 _raffleId) returns()

func (*RaffleTransactor) ClaimPrize

func (_Raffle *RaffleTransactor) ClaimPrize(opts *bind.TransactOpts, _raffleId *big.Int) (*types.Transaction, error)

ClaimPrize is a paid mutator transaction binding the contract method 0xd7098154.

Solidity: function claimPrize(uint256 _raffleId) returns()

func (*RaffleTransactor) Close

func (_Raffle *RaffleTransactor) Close(opts *bind.TransactOpts, _raffleId *big.Int) (*types.Transaction, error)

Close is a paid mutator transaction binding the contract method 0x0aebeb4e.

Solidity: function close(uint256 _raffleId) returns()

func (*RaffleTransactor) Create

func (_Raffle *RaffleTransactor) Create(opts *bind.TransactOpts, _tokenAddr common.Address, _tokenId *big.Int, _duration *big.Int, _ticketPrice uint64, _ticketSize uint32, _currency common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0xa7c1891e.

Solidity: function create(address _tokenAddr, uint256 _tokenId, uint256 _duration, uint64 _ticketPrice, uint32 _ticketSize, address _currency) returns()

func (*RaffleTransactor) Enter

func (_Raffle *RaffleTransactor) Enter(opts *bind.TransactOpts, _raffleId *big.Int, _amount *big.Int) (*types.Transaction, error)

Enter is a paid mutator transaction binding the contract method 0x00d407d6.

Solidity: function enter(uint256 _raffleId, uint96 _amount) returns()

func (*RaffleTransactor) RawFulfillRandomWords

func (_Raffle *RaffleTransactor) RawFulfillRandomWords(opts *bind.TransactOpts, requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

RawFulfillRandomWords is a paid mutator transaction binding the contract method 0x1fe543e3.

Solidity: function rawFulfillRandomWords(uint256 requestId, uint256[] randomWords) returns()

func (*RaffleTransactor) RenounceOwnership

func (_Raffle *RaffleTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RaffleTransactor) SetCurrency

func (_Raffle *RaffleTransactor) SetCurrency(opts *bind.TransactOpts, _currency common.Address, _enable bool, _feeRate *big.Int) (*types.Transaction, error)

SetCurrency is a paid mutator transaction binding the contract method 0x59991a77.

Solidity: function setCurrency(address _currency, bool _enable, uint24 _feeRate) returns()

func (*RaffleTransactor) TransferOwnership

func (_Raffle *RaffleTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type RaffleTransactorRaw

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

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

func (*RaffleTransactorRaw) Transact

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

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

func (*RaffleTransactorRaw) Transfer

func (_Raffle *RaffleTransactorRaw) 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 RaffleTransactorSession

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

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

func (*RaffleTransactorSession) Cancel

func (_Raffle *RaffleTransactorSession) Cancel(_raffleId *big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0x40e58ee5.

Solidity: function cancel(uint256 _raffleId) returns()

func (*RaffleTransactorSession) ClaimFunds

func (_Raffle *RaffleTransactorSession) ClaimFunds(_raffleId *big.Int) (*types.Transaction, error)

ClaimFunds is a paid mutator transaction binding the contract method 0x1b55e338.

Solidity: function claimFunds(uint256 _raffleId) returns()

func (*RaffleTransactorSession) ClaimPrize

func (_Raffle *RaffleTransactorSession) ClaimPrize(_raffleId *big.Int) (*types.Transaction, error)

ClaimPrize is a paid mutator transaction binding the contract method 0xd7098154.

Solidity: function claimPrize(uint256 _raffleId) returns()

func (*RaffleTransactorSession) Close

func (_Raffle *RaffleTransactorSession) Close(_raffleId *big.Int) (*types.Transaction, error)

Close is a paid mutator transaction binding the contract method 0x0aebeb4e.

Solidity: function close(uint256 _raffleId) returns()

func (*RaffleTransactorSession) Create

func (_Raffle *RaffleTransactorSession) Create(_tokenAddr common.Address, _tokenId *big.Int, _duration *big.Int, _ticketPrice uint64, _ticketSize uint32, _currency common.Address) (*types.Transaction, error)

Create is a paid mutator transaction binding the contract method 0xa7c1891e.

Solidity: function create(address _tokenAddr, uint256 _tokenId, uint256 _duration, uint64 _ticketPrice, uint32 _ticketSize, address _currency) returns()

func (*RaffleTransactorSession) Enter

func (_Raffle *RaffleTransactorSession) Enter(_raffleId *big.Int, _amount *big.Int) (*types.Transaction, error)

Enter is a paid mutator transaction binding the contract method 0x00d407d6.

Solidity: function enter(uint256 _raffleId, uint96 _amount) returns()

func (*RaffleTransactorSession) RawFulfillRandomWords

func (_Raffle *RaffleTransactorSession) RawFulfillRandomWords(requestId *big.Int, randomWords []*big.Int) (*types.Transaction, error)

RawFulfillRandomWords is a paid mutator transaction binding the contract method 0x1fe543e3.

Solidity: function rawFulfillRandomWords(uint256 requestId, uint256[] randomWords) returns()

func (*RaffleTransactorSession) RenounceOwnership

func (_Raffle *RaffleTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RaffleTransactorSession) SetCurrency

func (_Raffle *RaffleTransactorSession) SetCurrency(_currency common.Address, _enable bool, _feeRate *big.Int) (*types.Transaction, error)

SetCurrency is a paid mutator transaction binding the contract method 0x59991a77.

Solidity: function setCurrency(address _currency, bool _enable, uint24 _feeRate) returns()

func (*RaffleTransactorSession) TransferOwnership

func (_Raffle *RaffleTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type RaffleWinningTicketPicked

type RaffleWinningTicketPicked struct {
	TaskId        *big.Int
	WinningTicket *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

RaffleWinningTicketPicked represents a WinningTicketPicked event raised by the Raffle contract.

type RaffleWinningTicketPickedIterator

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

RaffleWinningTicketPickedIterator is returned from FilterWinningTicketPicked and is used to iterate over the raw logs and unpacked data for WinningTicketPicked events raised by the Raffle contract.

func (*RaffleWinningTicketPickedIterator) Close

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

func (*RaffleWinningTicketPickedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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