ethapi

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KolKeysABI = KolKeysMetaData.ABI

KolKeysABI is the input ABI used to generate the binding from. Deprecated: Use KolKeysMetaData.ABI instead.

View Source
var KolKeysMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"opType\",\"type\":\"bool\"}],\"name\":\"AdminOperation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"InvestorWithdrawAllIncome\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"InvestorWithdrawByOneKol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"InvestorWithdrawByOneNonce\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pricePerKey\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"typ\",\"type\":\"string\"}],\"name\":\"KeyAuctionAction\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"KeyTransfered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"KeyTransferedAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kolAddr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"keyNo\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"curNonce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"KoltotalNo\",\"type\":\"uint256\"}],\"name\":\"KolIpRightBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maxKeyNo\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"op\",\"type\":\"string\"}],\"name\":\"KolKeyOperation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSerficeFeeRate\",\"type\":\"uint256\"}],\"name\":\"ServiceFeeChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"op\",\"type\":\"string\"}],\"name\":\"SystemSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"tHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"voteNoe\",\"type\":\"uint256\"}],\"name\":\"TweetBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"UpgradeToNewRule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"WithdrawService\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"}],\"name\":\"AllIncomeOfAllKol\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"}],\"name\":\"AllIncomeOfOneKol\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"no\",\"type\":\"uint256\"}],\"name\":\"AuctionData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"internalType\":\"structKolKeys.KeyAuction[]\",\"name\":\"result\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"IncomeOfOneNonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"InvestorAllKeysOfKol\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"nonce\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"InvestorOfKol\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"KeySettingsRecord\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxNo\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalNo\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"KeyStatusOfKol\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxNo\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalNo\",\"type\":\"uint256\"}],\"internalType\":\"structKolKeys.KeySettings\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"investor\",\"type\":\"address\"}],\"name\":\"KolOfOneInvestor\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"__admins\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__currentAuctionID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__feeForKeyBiddig\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__feeForKolKeyOp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__minValCheck\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isDelete\",\"type\":\"bool\"}],\"name\":\"adminOperation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminServiceFeeWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFeeInGwei\",\"type\":\"uint256\"}],\"name\":\"adminSetBddingFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetKeyFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetKolIncomeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFeeInGwei\",\"type\":\"uint256\"}],\"name\":\"adminSetKolOperationFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetWithdrawFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"adminUpgradeToNewRule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"auctionIdxMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bidID\",\"type\":\"uint256\"}],\"name\":\"bid\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kolAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"keyNo\",\"type\":\"uint256\"}],\"name\":\"buyKolKey\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"stop\",\"type\":\"bool\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkPluginInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"incomePerNoncePerKey\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"incomeToKolPool\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerKey\",\"type\":\"uint256\"}],\"name\":\"issueBid\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"keyInAuction\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bidder\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"kolAddKeySupply\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kolIncomeRatePerKeyBuy\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pricePerKey\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"maxKeyNo\",\"type\":\"int256\"}],\"name\":\"kolOpenKeySale\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newPrice\",\"type\":\"uint256\"}],\"name\":\"kolSetKeyPrice\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bidID\",\"type\":\"uint256\"}],\"name\":\"revokeBid\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"serviceFeeRatePerKeyBuy\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"serviceFeeReceived\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"transferAllKey\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferKey\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tweetHash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tweetOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"voteNo\",\"type\":\"uint256\"}],\"name\":\"tweetBought\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"all\",\"type\":\"bool\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawAllIncome\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawFeeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"}],\"name\":\"withdrawFromOneKol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"name\":\"withdrawFromOneNonce\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

KolKeysMetaData contains all meta data concerning the KolKeys contract.

View Source
var TweetLotteryGameABI = TweetLotteryGameMetaData.ABI

TweetLotteryGameABI is the input ABI used to generate the binding from. Deprecated: Use TweetLotteryGameMetaData.ABI instead.

View Source
var TweetLotteryGameMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newTimeInHours\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"opName\",\"type\":\"string\"}],\"name\":\"AdminOperated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"opType\",\"type\":\"bool\"}],\"name\":\"AdminOperation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"winnerTeam\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ticketID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bonus\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bonusToTeam\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"random\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"nextRandomHash\",\"type\":\"bytes32\"}],\"name\":\"DiscoverWinner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kolAddr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"keyNo\",\"type\":\"uint256\"}],\"name\":\"KolIpRightBout\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSerficeFeeRate\",\"type\":\"uint256\"}],\"name\":\"ServiceFeeChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"round\",\"type\":\"uint256\"}],\"name\":\"SkipToNewRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"no\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"serviceFee\",\"type\":\"uint256\"}],\"name\":\"TicketSold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"thash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"no\",\"type\":\"uint256\"}],\"name\":\"TweetBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"UpgradeToNewRule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bonus\",\"type\":\"uint256\"}],\"name\":\"WinnerWithdrawBonus\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"WithdrawService\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"__admins\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__bonusRateToWinner\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__currentLotteryTicketID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__lotteryGameRoundTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__minValCheck\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__openToOuterPlayer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__serviceFeeRateForTicketBuy\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__ticketPriceForOuter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminChangeBonusRateToWinner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newTimeInMinutes\",\"type\":\"uint256\"}],\"name\":\"adminChangeRoundTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"isOpen\",\"type\":\"bool\"}],\"name\":\"adminOpenToOuterPlayer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isDelete\",\"type\":\"bool\"}],\"name\":\"adminOperation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminServiceFeeWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetServiceFeeRateForTicketBuy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"priceInFinney\",\"type\":\"uint256\"}],\"name\":\"adminSetTicketPriceForOuter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetWithdrawFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"adminUpgradeToNewRule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"ticketNo\",\"type\":\"uint256\"}],\"name\":\"buyTicketFromOuter\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"buyerInfoIdxForTickets\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"buyerInfoRecords\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"team\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"stop\",\"type\":\"bool\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkPluginInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentRoundNo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"random\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"nextRoundRandomHash\",\"type\":\"bytes32\"}],\"name\":\"discoverWinner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gameInfoRecord\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"randomHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"discoverTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"winTeam\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"winTicketID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bonus\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"randomVal\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"from\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"to\",\"type\":\"uint256\"}],\"name\":\"historyRoundInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"randomHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"discoverTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"winTeam\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"winTicketID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bonus\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"randomVal\",\"type\":\"uint256\"}],\"internalType\":\"structTweetLotteryGame.GameInfoOneRound[]\",\"name\":\"infos\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"serviceFeeReceived\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"skipToNextRound\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"systemSettings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"roundNo\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"tweet\",\"type\":\"bytes32\"}],\"name\":\"teamMembers\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"members\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"roundNo\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"tweet\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"memAddr\",\"type\":\"address\"}],\"name\":\"teamMembersCountForGame\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"round\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tickList\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ticketsRecords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalBonus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tweetHash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"tweetOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"voteNo\",\"type\":\"uint256\"}],\"name\":\"tweetBought\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"all\",\"type\":\"bool\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawFeeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

TweetLotteryGameMetaData contains all meta data concerning the TweetLotteryGame contract.

View Source
var TweetVoteABI = TweetVoteMetaData.ABI

TweetVoteABI is the input ABI used to generate the binding from. Deprecated: Use TweetVoteMetaData.ABI instead.

View Source
var TweetVoteMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"opType\",\"type\":\"bool\"}],\"name\":\"AdminOperation\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"kolAddr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rightsNo\",\"type\":\"uint256\"}],\"name\":\"KolRightsBought\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"kol\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"KolWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pAddr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"stop\",\"type\":\"bool\"}],\"name\":\"PluginChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Received\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSerficeFeeRate\",\"type\":\"uint256\"}],\"name\":\"ServiceFeeChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pricePost\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"rateName\",\"type\":\"string\"}],\"name\":\"SystemRateChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"tweetHash\",\"type\":\"bytes32\"}],\"name\":\"TweetPublished\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"tweetHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"voter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pricePerVote\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"voteNo\",\"type\":\"uint256\"}],\"name\":\"TweetVoted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"UpgradeToNewRule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"WithdrawService\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"__admins\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"__minValCheck\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isDelete\",\"type\":\"bool\"}],\"name\":\"adminOperation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminServiceFeeWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetKolIncomePerTweetRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newMaxVote\",\"type\":\"uint256\"}],\"name\":\"adminSetMaxVotePerTweet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"adminSetPluginAddr\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetServiceFeeRateForPerTweetVote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newPriceInFinney\",\"type\":\"uint256\"}],\"name\":\"adminSetTweetPostPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newPriceInFinney\",\"type\":\"uint256\"}],\"name\":\"adminSetTweetVotePrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newRate\",\"type\":\"uint8\"}],\"name\":\"adminSetWithdrawFeeRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"stop\",\"type\":\"bool\"}],\"name\":\"adminStopPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"adminUpgradeToNewRule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"stop\",\"type\":\"bool\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchangeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kolIncomePerTweetVoteRate\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxVotePerTweet\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oneFinney\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"ownersOfAllTweets\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pluginAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pluginStop\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"publishTweet\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"prefixedHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"recoverSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"serviceFeePerTweetVoteRate\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"serviceFeeReceived\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"systemSettings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tweetPostPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tweetVotePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"tweetHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"voteNo\",\"type\":\"uint256\"}],\"name\":\"voteToTweets\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"all\",\"type\":\"bool\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawFeeRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

TweetVoteMetaData contains all meta data concerning the TweetVote contract.

Functions

This section is empty.

Types

type KolKeys

type KolKeys struct {
	KolKeysCaller     // Read-only binding to the contract
	KolKeysTransactor // Write-only binding to the contract
	KolKeysFilterer   // Log filterer for contract events
}

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

func NewKolKeys

func NewKolKeys(address common.Address, backend bind.ContractBackend) (*KolKeys, error)

NewKolKeys creates a new instance of KolKeys, bound to a specific deployed contract.

type KolKeysAdminOperation

type KolKeysAdminOperation struct {
	Admin  common.Address
	OpType bool
	Raw    types.Log // Blockchain specific contextual infos
}

KolKeysAdminOperation represents a AdminOperation event raised by the KolKeys contract.

type KolKeysAdminOperationIterator

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

KolKeysAdminOperationIterator is returned from FilterAdminOperation and is used to iterate over the raw logs and unpacked data for AdminOperation events raised by the KolKeys contract.

func (*KolKeysAdminOperationIterator) Close

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

func (*KolKeysAdminOperationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewKolKeysCaller

func NewKolKeysCaller(address common.Address, caller bind.ContractCaller) (*KolKeysCaller, error)

NewKolKeysCaller creates a new read-only instance of KolKeys, bound to a specific deployed contract.

func (*KolKeysCaller) Admins

func (_KolKeys *KolKeysCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*KolKeysCaller) AllIncomeOfAllKol

func (_KolKeys *KolKeysCaller) AllIncomeOfAllKol(opts *bind.CallOpts, investor common.Address) (*big.Int, error)

AllIncomeOfAllKol is a free data retrieval call binding the contract method 0xaf958a62.

Solidity: function AllIncomeOfAllKol(address investor) view returns(uint256)

func (*KolKeysCaller) AllIncomeOfOneKol

func (_KolKeys *KolKeysCaller) AllIncomeOfOneKol(opts *bind.CallOpts, kol common.Address, investor common.Address) (*big.Int, error)

AllIncomeOfOneKol is a free data retrieval call binding the contract method 0x6d74bb5f.

Solidity: function AllIncomeOfOneKol(address kol, address investor) view returns(uint256)

func (*KolKeysCaller) AuctionData

func (_KolKeys *KolKeysCaller) AuctionData(opts *bind.CallOpts, start *big.Int, no *big.Int) ([]KolKeysKeyAuction, error)

AuctionData is a free data retrieval call binding the contract method 0x86eaf599.

Solidity: function AuctionData(uint256 start, uint256 no) view returns((uint256,address,address,address,uint256,uint256,uint256,bool)[] result)

func (*KolKeysCaller) AuctionIdxMap

func (_KolKeys *KolKeysCaller) AuctionIdxMap(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

AuctionIdxMap is a free data retrieval call binding the contract method 0x794f3bf1.

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

func (*KolKeysCaller) Balance

func (_KolKeys *KolKeysCaller) Balance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*KolKeysCaller) CheckPluginInterface

func (_KolKeys *KolKeysCaller) CheckPluginInterface(opts *bind.CallOpts) (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*KolKeysCaller) CurrentAuctionID

func (_KolKeys *KolKeysCaller) CurrentAuctionID(opts *bind.CallOpts) (*big.Int, error)

CurrentAuctionID is a free data retrieval call binding the contract method 0x1d6abf71.

Solidity: function __currentAuctionID() view returns(uint256)

func (*KolKeysCaller) FeeForKeyBiddig

func (_KolKeys *KolKeysCaller) FeeForKeyBiddig(opts *bind.CallOpts) (*big.Int, error)

FeeForKeyBiddig is a free data retrieval call binding the contract method 0xd4596578.

Solidity: function __feeForKeyBiddig() view returns(uint256)

func (*KolKeysCaller) FeeForKolKeyOp

func (_KolKeys *KolKeysCaller) FeeForKolKeyOp(opts *bind.CallOpts) (*big.Int, error)

FeeForKolKeyOp is a free data retrieval call binding the contract method 0xcdd3e4da.

Solidity: function __feeForKolKeyOp() view returns(uint256)

func (*KolKeysCaller) GetOwner

func (_KolKeys *KolKeysCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*KolKeysCaller) IncomeOfOneNonce

func (_KolKeys *KolKeysCaller) IncomeOfOneNonce(opts *bind.CallOpts, kol common.Address, nonce *big.Int, amount *big.Int) (*big.Int, error)

IncomeOfOneNonce is a free data retrieval call binding the contract method 0x54ffe238.

Solidity: function IncomeOfOneNonce(address kol, uint256 nonce, uint256 amount) view returns(uint256)

func (*KolKeysCaller) IncomePerNoncePerKey

func (_KolKeys *KolKeysCaller) IncomePerNoncePerKey(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

IncomePerNoncePerKey is a free data retrieval call binding the contract method 0x53311742.

Solidity: function incomePerNoncePerKey(address , uint256 ) view returns(uint256)

func (*KolKeysCaller) InvestorAllKeysOfKol

func (_KolKeys *KolKeysCaller) InvestorAllKeysOfKol(opts *bind.CallOpts, investor common.Address, kol common.Address) (struct {
	Nonce   []*big.Int
	Amounts []*big.Int
}, error)

InvestorAllKeysOfKol is a free data retrieval call binding the contract method 0xb83bb4e6.

Solidity: function InvestorAllKeysOfKol(address investor, address kol) view returns(uint256[] nonce, uint256[] amounts)

func (*KolKeysCaller) InvestorOfKol

func (_KolKeys *KolKeysCaller) InvestorOfKol(opts *bind.CallOpts, kol common.Address) ([]common.Address, error)

InvestorOfKol is a free data retrieval call binding the contract method 0x8b2b0b67.

Solidity: function InvestorOfKol(address kol) view returns(address[])

func (*KolKeysCaller) KeyInAuction

func (_KolKeys *KolKeysCaller) KeyInAuction(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Id     *big.Int
	Seller common.Address
	Bidder common.Address
	Kol    common.Address
	Nonce  *big.Int
	Amount *big.Int
	Price  *big.Int
	Status bool
}, error)

KeyInAuction is a free data retrieval call binding the contract method 0xab3da16f.

Solidity: function keyInAuction(uint256 ) view returns(uint256 id, address seller, address bidder, address kol, uint256 nonce, uint256 amount, uint256 price, bool status)

func (*KolKeysCaller) KeySettingsRecord

func (_KolKeys *KolKeysCaller) KeySettingsRecord(opts *bind.CallOpts, arg0 common.Address) (struct {
	Price   *big.Int
	MaxNo   *big.Int
	Nonce   *big.Int
	TotalNo *big.Int
}, error)

KeySettingsRecord is a free data retrieval call binding the contract method 0x94447f45.

Solidity: function KeySettingsRecord(address ) view returns(uint256 price, uint256 maxNo, uint256 nonce, uint256 totalNo)

func (*KolKeysCaller) KeyStatusOfKol

func (_KolKeys *KolKeysCaller) KeyStatusOfKol(opts *bind.CallOpts, kol common.Address) (KolKeysKeySettings, error)

KeyStatusOfKol is a free data retrieval call binding the contract method 0x9e4f5b5f.

Solidity: function KeyStatusOfKol(address kol) view returns((uint256,uint256,uint256,uint256))

func (*KolKeysCaller) KolIncomeRatePerKeyBuy

func (_KolKeys *KolKeysCaller) KolIncomeRatePerKeyBuy(opts *bind.CallOpts) (uint8, error)

KolIncomeRatePerKeyBuy is a free data retrieval call binding the contract method 0xafb337cf.

Solidity: function kolIncomeRatePerKeyBuy() view returns(uint8)

func (*KolKeysCaller) KolOfOneInvestor

func (_KolKeys *KolKeysCaller) KolOfOneInvestor(opts *bind.CallOpts, investor common.Address) ([]common.Address, error)

KolOfOneInvestor is a free data retrieval call binding the contract method 0xce92faa2.

Solidity: function KolOfOneInvestor(address investor) view returns(address[])

func (*KolKeysCaller) MinValCheck

func (_KolKeys *KolKeysCaller) MinValCheck(opts *bind.CallOpts) (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*KolKeysCaller) ServiceFeeRatePerKeyBuy

func (_KolKeys *KolKeysCaller) ServiceFeeRatePerKeyBuy(opts *bind.CallOpts) (uint8, error)

ServiceFeeRatePerKeyBuy is a free data retrieval call binding the contract method 0xaf707457.

Solidity: function serviceFeeRatePerKeyBuy() view returns(uint8)

func (*KolKeysCaller) ServiceFeeReceived

func (_KolKeys *KolKeysCaller) ServiceFeeReceived(opts *bind.CallOpts) (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*KolKeysCaller) WithdrawFeeRate

func (_KolKeys *KolKeysCaller) WithdrawFeeRate(opts *bind.CallOpts) (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type KolKeysCallerRaw

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

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

func (*KolKeysCallerRaw) Call

func (_KolKeys *KolKeysCallerRaw) 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 KolKeysCallerSession

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

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

func (*KolKeysCallerSession) Admins

func (_KolKeys *KolKeysCallerSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*KolKeysCallerSession) AllIncomeOfAllKol

func (_KolKeys *KolKeysCallerSession) AllIncomeOfAllKol(investor common.Address) (*big.Int, error)

AllIncomeOfAllKol is a free data retrieval call binding the contract method 0xaf958a62.

Solidity: function AllIncomeOfAllKol(address investor) view returns(uint256)

func (*KolKeysCallerSession) AllIncomeOfOneKol

func (_KolKeys *KolKeysCallerSession) AllIncomeOfOneKol(kol common.Address, investor common.Address) (*big.Int, error)

AllIncomeOfOneKol is a free data retrieval call binding the contract method 0x6d74bb5f.

Solidity: function AllIncomeOfOneKol(address kol, address investor) view returns(uint256)

func (*KolKeysCallerSession) AuctionData

func (_KolKeys *KolKeysCallerSession) AuctionData(start *big.Int, no *big.Int) ([]KolKeysKeyAuction, error)

AuctionData is a free data retrieval call binding the contract method 0x86eaf599.

Solidity: function AuctionData(uint256 start, uint256 no) view returns((uint256,address,address,address,uint256,uint256,uint256,bool)[] result)

func (*KolKeysCallerSession) AuctionIdxMap

func (_KolKeys *KolKeysCallerSession) AuctionIdxMap(arg0 *big.Int) (*big.Int, error)

AuctionIdxMap is a free data retrieval call binding the contract method 0x794f3bf1.

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

func (*KolKeysCallerSession) Balance

func (_KolKeys *KolKeysCallerSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*KolKeysCallerSession) CheckPluginInterface

func (_KolKeys *KolKeysCallerSession) CheckPluginInterface() (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*KolKeysCallerSession) CurrentAuctionID

func (_KolKeys *KolKeysCallerSession) CurrentAuctionID() (*big.Int, error)

CurrentAuctionID is a free data retrieval call binding the contract method 0x1d6abf71.

Solidity: function __currentAuctionID() view returns(uint256)

func (*KolKeysCallerSession) FeeForKeyBiddig

func (_KolKeys *KolKeysCallerSession) FeeForKeyBiddig() (*big.Int, error)

FeeForKeyBiddig is a free data retrieval call binding the contract method 0xd4596578.

Solidity: function __feeForKeyBiddig() view returns(uint256)

func (*KolKeysCallerSession) FeeForKolKeyOp

func (_KolKeys *KolKeysCallerSession) FeeForKolKeyOp() (*big.Int, error)

FeeForKolKeyOp is a free data retrieval call binding the contract method 0xcdd3e4da.

Solidity: function __feeForKolKeyOp() view returns(uint256)

func (*KolKeysCallerSession) GetOwner

func (_KolKeys *KolKeysCallerSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*KolKeysCallerSession) IncomeOfOneNonce

func (_KolKeys *KolKeysCallerSession) IncomeOfOneNonce(kol common.Address, nonce *big.Int, amount *big.Int) (*big.Int, error)

IncomeOfOneNonce is a free data retrieval call binding the contract method 0x54ffe238.

Solidity: function IncomeOfOneNonce(address kol, uint256 nonce, uint256 amount) view returns(uint256)

func (*KolKeysCallerSession) IncomePerNoncePerKey

func (_KolKeys *KolKeysCallerSession) IncomePerNoncePerKey(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

IncomePerNoncePerKey is a free data retrieval call binding the contract method 0x53311742.

Solidity: function incomePerNoncePerKey(address , uint256 ) view returns(uint256)

func (*KolKeysCallerSession) InvestorAllKeysOfKol

func (_KolKeys *KolKeysCallerSession) InvestorAllKeysOfKol(investor common.Address, kol common.Address) (struct {
	Nonce   []*big.Int
	Amounts []*big.Int
}, error)

InvestorAllKeysOfKol is a free data retrieval call binding the contract method 0xb83bb4e6.

Solidity: function InvestorAllKeysOfKol(address investor, address kol) view returns(uint256[] nonce, uint256[] amounts)

func (*KolKeysCallerSession) InvestorOfKol

func (_KolKeys *KolKeysCallerSession) InvestorOfKol(kol common.Address) ([]common.Address, error)

InvestorOfKol is a free data retrieval call binding the contract method 0x8b2b0b67.

Solidity: function InvestorOfKol(address kol) view returns(address[])

func (*KolKeysCallerSession) KeyInAuction

func (_KolKeys *KolKeysCallerSession) KeyInAuction(arg0 *big.Int) (struct {
	Id     *big.Int
	Seller common.Address
	Bidder common.Address
	Kol    common.Address
	Nonce  *big.Int
	Amount *big.Int
	Price  *big.Int
	Status bool
}, error)

KeyInAuction is a free data retrieval call binding the contract method 0xab3da16f.

Solidity: function keyInAuction(uint256 ) view returns(uint256 id, address seller, address bidder, address kol, uint256 nonce, uint256 amount, uint256 price, bool status)

func (*KolKeysCallerSession) KeySettingsRecord

func (_KolKeys *KolKeysCallerSession) KeySettingsRecord(arg0 common.Address) (struct {
	Price   *big.Int
	MaxNo   *big.Int
	Nonce   *big.Int
	TotalNo *big.Int
}, error)

KeySettingsRecord is a free data retrieval call binding the contract method 0x94447f45.

Solidity: function KeySettingsRecord(address ) view returns(uint256 price, uint256 maxNo, uint256 nonce, uint256 totalNo)

func (*KolKeysCallerSession) KeyStatusOfKol

func (_KolKeys *KolKeysCallerSession) KeyStatusOfKol(kol common.Address) (KolKeysKeySettings, error)

KeyStatusOfKol is a free data retrieval call binding the contract method 0x9e4f5b5f.

Solidity: function KeyStatusOfKol(address kol) view returns((uint256,uint256,uint256,uint256))

func (*KolKeysCallerSession) KolIncomeRatePerKeyBuy

func (_KolKeys *KolKeysCallerSession) KolIncomeRatePerKeyBuy() (uint8, error)

KolIncomeRatePerKeyBuy is a free data retrieval call binding the contract method 0xafb337cf.

Solidity: function kolIncomeRatePerKeyBuy() view returns(uint8)

func (*KolKeysCallerSession) KolOfOneInvestor

func (_KolKeys *KolKeysCallerSession) KolOfOneInvestor(investor common.Address) ([]common.Address, error)

KolOfOneInvestor is a free data retrieval call binding the contract method 0xce92faa2.

Solidity: function KolOfOneInvestor(address investor) view returns(address[])

func (*KolKeysCallerSession) MinValCheck

func (_KolKeys *KolKeysCallerSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*KolKeysCallerSession) ServiceFeeRatePerKeyBuy

func (_KolKeys *KolKeysCallerSession) ServiceFeeRatePerKeyBuy() (uint8, error)

ServiceFeeRatePerKeyBuy is a free data retrieval call binding the contract method 0xaf707457.

Solidity: function serviceFeeRatePerKeyBuy() view returns(uint8)

func (*KolKeysCallerSession) ServiceFeeReceived

func (_KolKeys *KolKeysCallerSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*KolKeysCallerSession) WithdrawFeeRate

func (_KolKeys *KolKeysCallerSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type KolKeysFilterer

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

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

func NewKolKeysFilterer

func NewKolKeysFilterer(address common.Address, filterer bind.ContractFilterer) (*KolKeysFilterer, error)

NewKolKeysFilterer creates a new log filterer instance of KolKeys, bound to a specific deployed contract.

func (*KolKeysFilterer) FilterAdminOperation

func (_KolKeys *KolKeysFilterer) FilterAdminOperation(opts *bind.FilterOpts) (*KolKeysAdminOperationIterator, error)

FilterAdminOperation is a free log retrieval operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*KolKeysFilterer) FilterInvestorWithdrawAllIncome

func (_KolKeys *KolKeysFilterer) FilterInvestorWithdrawAllIncome(opts *bind.FilterOpts) (*KolKeysInvestorWithdrawAllIncomeIterator, error)

FilterInvestorWithdrawAllIncome is a free log retrieval operation binding the contract event 0x5dbe3bbfa87813b8be328cdb0b812e04de36cf36d1141967e1df795a7c95db0a.

Solidity: event InvestorWithdrawAllIncome(address investor, uint256 val)

func (*KolKeysFilterer) FilterInvestorWithdrawByOneKol

func (_KolKeys *KolKeysFilterer) FilterInvestorWithdrawByOneKol(opts *bind.FilterOpts) (*KolKeysInvestorWithdrawByOneKolIterator, error)

FilterInvestorWithdrawByOneKol is a free log retrieval operation binding the contract event 0x6ce7ea243972341c9e8ddfa93ba573fec9d104862f00b1bcd6aab059efbc9a6d.

Solidity: event InvestorWithdrawByOneKol(address investor, address kol, uint256 val)

func (*KolKeysFilterer) FilterInvestorWithdrawByOneNonce

func (_KolKeys *KolKeysFilterer) FilterInvestorWithdrawByOneNonce(opts *bind.FilterOpts) (*KolKeysInvestorWithdrawByOneNonceIterator, error)

FilterInvestorWithdrawByOneNonce is a free log retrieval operation binding the contract event 0xc85771d86e5aae3490e851850d1f22697f3a3fc112709b5d2bea1c3ea84fcefc.

Solidity: event InvestorWithdrawByOneNonce(address investor, address kol, uint256 nonce, uint256 val)

func (*KolKeysFilterer) FilterKeyAuctionAction

func (_KolKeys *KolKeysFilterer) FilterKeyAuctionAction(opts *bind.FilterOpts) (*KolKeysKeyAuctionActionIterator, error)

FilterKeyAuctionAction is a free log retrieval operation binding the contract event 0xa6b5fa844f538ba008c65f296b54934aff4c2f11f1a9d5ef89c5f535b95681a2.

Solidity: event KeyAuctionAction(address kol, address seller, address buyer, uint256 nonce, uint256 amount, uint256 pricePerKey, string typ)

func (*KolKeysFilterer) FilterKeyTransfered

func (_KolKeys *KolKeysFilterer) FilterKeyTransfered(opts *bind.FilterOpts) (*KolKeysKeyTransferedIterator, error)

FilterKeyTransfered is a free log retrieval operation binding the contract event 0xab9bb64eb94ba07b3652f3aac538e6365596995aabed6d8de6e33b2bcdf7a6ed.

Solidity: event KeyTransfered(address from, address to, address kol, uint256 nonce, uint256 amount)

func (*KolKeysFilterer) FilterKeyTransferedAll

func (_KolKeys *KolKeysFilterer) FilterKeyTransferedAll(opts *bind.FilterOpts) (*KolKeysKeyTransferedAllIterator, error)

FilterKeyTransferedAll is a free log retrieval operation binding the contract event 0x67e33abe0f9a96e0749d2036016e153284d65989cd4875f4c5a42853b35e8bf1.

Solidity: event KeyTransferedAll(address from, address to, address kol)

func (*KolKeysFilterer) FilterKolIpRightBought

func (_KolKeys *KolKeysFilterer) FilterKolIpRightBought(opts *bind.FilterOpts) (*KolKeysKolIpRightBoughtIterator, error)

FilterKolIpRightBought is a free log retrieval operation binding the contract event 0x804b19ef8fca4826d0401b0cc0bf4318c4ca656488c9ee92220dc3a6e2a251ac.

Solidity: event KolIpRightBought(address kolAddr, address buyer, uint256 keyNo, uint256 curNonce, uint256 KoltotalNo)

func (*KolKeysFilterer) FilterKolKeyOperation

func (_KolKeys *KolKeysFilterer) FilterKolKeyOperation(opts *bind.FilterOpts) (*KolKeysKolKeyOperationIterator, error)

FilterKolKeyOperation is a free log retrieval operation binding the contract event 0xbc15fd271700fa06e159fed0c580b92322ca63f6dee0e074e3b5b1cb69846df9.

Solidity: event KolKeyOperation(address kol, uint256 price, uint256 maxKeyNo, string op)

func (*KolKeysFilterer) FilterOwnerSet

func (_KolKeys *KolKeysFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*KolKeysOwnerSetIterator, error)

FilterOwnerSet is a free log retrieval operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*KolKeysFilterer) FilterServiceFeeChanged

func (_KolKeys *KolKeysFilterer) FilterServiceFeeChanged(opts *bind.FilterOpts) (*KolKeysServiceFeeChangedIterator, error)

FilterServiceFeeChanged is a free log retrieval operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*KolKeysFilterer) FilterSystemSet

func (_KolKeys *KolKeysFilterer) FilterSystemSet(opts *bind.FilterOpts) (*KolKeysSystemSetIterator, error)

FilterSystemSet is a free log retrieval operation binding the contract event 0xcd714485b704afdf17516cfe0560106372ea651897ae76ae6879e628756fb2a0.

Solidity: event SystemSet(uint256 num, string op)

func (*KolKeysFilterer) FilterTweetBought

func (_KolKeys *KolKeysFilterer) FilterTweetBought(opts *bind.FilterOpts) (*KolKeysTweetBoughtIterator, error)

FilterTweetBought is a free log retrieval operation binding the contract event 0xf2f9674ebd4d561babe7a6525f2ffd0990fb102b9d29ec89a42e5b08b5455ebf.

Solidity: event TweetBought(bytes32 tHash, address owner, address buyer, uint256 voteNoe)

func (*KolKeysFilterer) FilterUpgradeToNewRule

func (_KolKeys *KolKeysFilterer) FilterUpgradeToNewRule(opts *bind.FilterOpts) (*KolKeysUpgradeToNewRuleIterator, error)

FilterUpgradeToNewRule is a free log retrieval operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*KolKeysFilterer) FilterWithdrawService

func (_KolKeys *KolKeysFilterer) FilterWithdrawService(opts *bind.FilterOpts) (*KolKeysWithdrawServiceIterator, error)

FilterWithdrawService is a free log retrieval operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*KolKeysFilterer) ParseAdminOperation

func (_KolKeys *KolKeysFilterer) ParseAdminOperation(log types.Log) (*KolKeysAdminOperation, error)

ParseAdminOperation is a log parse operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*KolKeysFilterer) ParseInvestorWithdrawAllIncome

func (_KolKeys *KolKeysFilterer) ParseInvestorWithdrawAllIncome(log types.Log) (*KolKeysInvestorWithdrawAllIncome, error)

ParseInvestorWithdrawAllIncome is a log parse operation binding the contract event 0x5dbe3bbfa87813b8be328cdb0b812e04de36cf36d1141967e1df795a7c95db0a.

Solidity: event InvestorWithdrawAllIncome(address investor, uint256 val)

func (*KolKeysFilterer) ParseInvestorWithdrawByOneKol

func (_KolKeys *KolKeysFilterer) ParseInvestorWithdrawByOneKol(log types.Log) (*KolKeysInvestorWithdrawByOneKol, error)

ParseInvestorWithdrawByOneKol is a log parse operation binding the contract event 0x6ce7ea243972341c9e8ddfa93ba573fec9d104862f00b1bcd6aab059efbc9a6d.

Solidity: event InvestorWithdrawByOneKol(address investor, address kol, uint256 val)

func (*KolKeysFilterer) ParseInvestorWithdrawByOneNonce

func (_KolKeys *KolKeysFilterer) ParseInvestorWithdrawByOneNonce(log types.Log) (*KolKeysInvestorWithdrawByOneNonce, error)

ParseInvestorWithdrawByOneNonce is a log parse operation binding the contract event 0xc85771d86e5aae3490e851850d1f22697f3a3fc112709b5d2bea1c3ea84fcefc.

Solidity: event InvestorWithdrawByOneNonce(address investor, address kol, uint256 nonce, uint256 val)

func (*KolKeysFilterer) ParseKeyAuctionAction

func (_KolKeys *KolKeysFilterer) ParseKeyAuctionAction(log types.Log) (*KolKeysKeyAuctionAction, error)

ParseKeyAuctionAction is a log parse operation binding the contract event 0xa6b5fa844f538ba008c65f296b54934aff4c2f11f1a9d5ef89c5f535b95681a2.

Solidity: event KeyAuctionAction(address kol, address seller, address buyer, uint256 nonce, uint256 amount, uint256 pricePerKey, string typ)

func (*KolKeysFilterer) ParseKeyTransfered

func (_KolKeys *KolKeysFilterer) ParseKeyTransfered(log types.Log) (*KolKeysKeyTransfered, error)

ParseKeyTransfered is a log parse operation binding the contract event 0xab9bb64eb94ba07b3652f3aac538e6365596995aabed6d8de6e33b2bcdf7a6ed.

Solidity: event KeyTransfered(address from, address to, address kol, uint256 nonce, uint256 amount)

func (*KolKeysFilterer) ParseKeyTransferedAll

func (_KolKeys *KolKeysFilterer) ParseKeyTransferedAll(log types.Log) (*KolKeysKeyTransferedAll, error)

ParseKeyTransferedAll is a log parse operation binding the contract event 0x67e33abe0f9a96e0749d2036016e153284d65989cd4875f4c5a42853b35e8bf1.

Solidity: event KeyTransferedAll(address from, address to, address kol)

func (*KolKeysFilterer) ParseKolIpRightBought

func (_KolKeys *KolKeysFilterer) ParseKolIpRightBought(log types.Log) (*KolKeysKolIpRightBought, error)

ParseKolIpRightBought is a log parse operation binding the contract event 0x804b19ef8fca4826d0401b0cc0bf4318c4ca656488c9ee92220dc3a6e2a251ac.

Solidity: event KolIpRightBought(address kolAddr, address buyer, uint256 keyNo, uint256 curNonce, uint256 KoltotalNo)

func (*KolKeysFilterer) ParseKolKeyOperation

func (_KolKeys *KolKeysFilterer) ParseKolKeyOperation(log types.Log) (*KolKeysKolKeyOperation, error)

ParseKolKeyOperation is a log parse operation binding the contract event 0xbc15fd271700fa06e159fed0c580b92322ca63f6dee0e074e3b5b1cb69846df9.

Solidity: event KolKeyOperation(address kol, uint256 price, uint256 maxKeyNo, string op)

func (*KolKeysFilterer) ParseOwnerSet

func (_KolKeys *KolKeysFilterer) ParseOwnerSet(log types.Log) (*KolKeysOwnerSet, error)

ParseOwnerSet is a log parse operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*KolKeysFilterer) ParseServiceFeeChanged

func (_KolKeys *KolKeysFilterer) ParseServiceFeeChanged(log types.Log) (*KolKeysServiceFeeChanged, error)

ParseServiceFeeChanged is a log parse operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*KolKeysFilterer) ParseSystemSet

func (_KolKeys *KolKeysFilterer) ParseSystemSet(log types.Log) (*KolKeysSystemSet, error)

ParseSystemSet is a log parse operation binding the contract event 0xcd714485b704afdf17516cfe0560106372ea651897ae76ae6879e628756fb2a0.

Solidity: event SystemSet(uint256 num, string op)

func (*KolKeysFilterer) ParseTweetBought

func (_KolKeys *KolKeysFilterer) ParseTweetBought(log types.Log) (*KolKeysTweetBought, error)

ParseTweetBought is a log parse operation binding the contract event 0xf2f9674ebd4d561babe7a6525f2ffd0990fb102b9d29ec89a42e5b08b5455ebf.

Solidity: event TweetBought(bytes32 tHash, address owner, address buyer, uint256 voteNoe)

func (*KolKeysFilterer) ParseUpgradeToNewRule

func (_KolKeys *KolKeysFilterer) ParseUpgradeToNewRule(log types.Log) (*KolKeysUpgradeToNewRule, error)

ParseUpgradeToNewRule is a log parse operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*KolKeysFilterer) ParseWithdrawService

func (_KolKeys *KolKeysFilterer) ParseWithdrawService(log types.Log) (*KolKeysWithdrawService, error)

ParseWithdrawService is a log parse operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*KolKeysFilterer) WatchAdminOperation

func (_KolKeys *KolKeysFilterer) WatchAdminOperation(opts *bind.WatchOpts, sink chan<- *KolKeysAdminOperation) (event.Subscription, error)

WatchAdminOperation is a free log subscription operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*KolKeysFilterer) WatchInvestorWithdrawAllIncome

func (_KolKeys *KolKeysFilterer) WatchInvestorWithdrawAllIncome(opts *bind.WatchOpts, sink chan<- *KolKeysInvestorWithdrawAllIncome) (event.Subscription, error)

WatchInvestorWithdrawAllIncome is a free log subscription operation binding the contract event 0x5dbe3bbfa87813b8be328cdb0b812e04de36cf36d1141967e1df795a7c95db0a.

Solidity: event InvestorWithdrawAllIncome(address investor, uint256 val)

func (*KolKeysFilterer) WatchInvestorWithdrawByOneKol

func (_KolKeys *KolKeysFilterer) WatchInvestorWithdrawByOneKol(opts *bind.WatchOpts, sink chan<- *KolKeysInvestorWithdrawByOneKol) (event.Subscription, error)

WatchInvestorWithdrawByOneKol is a free log subscription operation binding the contract event 0x6ce7ea243972341c9e8ddfa93ba573fec9d104862f00b1bcd6aab059efbc9a6d.

Solidity: event InvestorWithdrawByOneKol(address investor, address kol, uint256 val)

func (*KolKeysFilterer) WatchInvestorWithdrawByOneNonce

func (_KolKeys *KolKeysFilterer) WatchInvestorWithdrawByOneNonce(opts *bind.WatchOpts, sink chan<- *KolKeysInvestorWithdrawByOneNonce) (event.Subscription, error)

WatchInvestorWithdrawByOneNonce is a free log subscription operation binding the contract event 0xc85771d86e5aae3490e851850d1f22697f3a3fc112709b5d2bea1c3ea84fcefc.

Solidity: event InvestorWithdrawByOneNonce(address investor, address kol, uint256 nonce, uint256 val)

func (*KolKeysFilterer) WatchKeyAuctionAction

func (_KolKeys *KolKeysFilterer) WatchKeyAuctionAction(opts *bind.WatchOpts, sink chan<- *KolKeysKeyAuctionAction) (event.Subscription, error)

WatchKeyAuctionAction is a free log subscription operation binding the contract event 0xa6b5fa844f538ba008c65f296b54934aff4c2f11f1a9d5ef89c5f535b95681a2.

Solidity: event KeyAuctionAction(address kol, address seller, address buyer, uint256 nonce, uint256 amount, uint256 pricePerKey, string typ)

func (*KolKeysFilterer) WatchKeyTransfered

func (_KolKeys *KolKeysFilterer) WatchKeyTransfered(opts *bind.WatchOpts, sink chan<- *KolKeysKeyTransfered) (event.Subscription, error)

WatchKeyTransfered is a free log subscription operation binding the contract event 0xab9bb64eb94ba07b3652f3aac538e6365596995aabed6d8de6e33b2bcdf7a6ed.

Solidity: event KeyTransfered(address from, address to, address kol, uint256 nonce, uint256 amount)

func (*KolKeysFilterer) WatchKeyTransferedAll

func (_KolKeys *KolKeysFilterer) WatchKeyTransferedAll(opts *bind.WatchOpts, sink chan<- *KolKeysKeyTransferedAll) (event.Subscription, error)

WatchKeyTransferedAll is a free log subscription operation binding the contract event 0x67e33abe0f9a96e0749d2036016e153284d65989cd4875f4c5a42853b35e8bf1.

Solidity: event KeyTransferedAll(address from, address to, address kol)

func (*KolKeysFilterer) WatchKolIpRightBought

func (_KolKeys *KolKeysFilterer) WatchKolIpRightBought(opts *bind.WatchOpts, sink chan<- *KolKeysKolIpRightBought) (event.Subscription, error)

WatchKolIpRightBought is a free log subscription operation binding the contract event 0x804b19ef8fca4826d0401b0cc0bf4318c4ca656488c9ee92220dc3a6e2a251ac.

Solidity: event KolIpRightBought(address kolAddr, address buyer, uint256 keyNo, uint256 curNonce, uint256 KoltotalNo)

func (*KolKeysFilterer) WatchKolKeyOperation

func (_KolKeys *KolKeysFilterer) WatchKolKeyOperation(opts *bind.WatchOpts, sink chan<- *KolKeysKolKeyOperation) (event.Subscription, error)

WatchKolKeyOperation is a free log subscription operation binding the contract event 0xbc15fd271700fa06e159fed0c580b92322ca63f6dee0e074e3b5b1cb69846df9.

Solidity: event KolKeyOperation(address kol, uint256 price, uint256 maxKeyNo, string op)

func (*KolKeysFilterer) WatchOwnerSet

func (_KolKeys *KolKeysFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *KolKeysOwnerSet, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerSet is a free log subscription operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*KolKeysFilterer) WatchServiceFeeChanged

func (_KolKeys *KolKeysFilterer) WatchServiceFeeChanged(opts *bind.WatchOpts, sink chan<- *KolKeysServiceFeeChanged) (event.Subscription, error)

WatchServiceFeeChanged is a free log subscription operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*KolKeysFilterer) WatchSystemSet

func (_KolKeys *KolKeysFilterer) WatchSystemSet(opts *bind.WatchOpts, sink chan<- *KolKeysSystemSet) (event.Subscription, error)

WatchSystemSet is a free log subscription operation binding the contract event 0xcd714485b704afdf17516cfe0560106372ea651897ae76ae6879e628756fb2a0.

Solidity: event SystemSet(uint256 num, string op)

func (*KolKeysFilterer) WatchTweetBought

func (_KolKeys *KolKeysFilterer) WatchTweetBought(opts *bind.WatchOpts, sink chan<- *KolKeysTweetBought) (event.Subscription, error)

WatchTweetBought is a free log subscription operation binding the contract event 0xf2f9674ebd4d561babe7a6525f2ffd0990fb102b9d29ec89a42e5b08b5455ebf.

Solidity: event TweetBought(bytes32 tHash, address owner, address buyer, uint256 voteNoe)

func (*KolKeysFilterer) WatchUpgradeToNewRule

func (_KolKeys *KolKeysFilterer) WatchUpgradeToNewRule(opts *bind.WatchOpts, sink chan<- *KolKeysUpgradeToNewRule) (event.Subscription, error)

WatchUpgradeToNewRule is a free log subscription operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*KolKeysFilterer) WatchWithdrawService

func (_KolKeys *KolKeysFilterer) WatchWithdrawService(opts *bind.WatchOpts, sink chan<- *KolKeysWithdrawService) (event.Subscription, error)

WatchWithdrawService is a free log subscription operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

type KolKeysInvestorWithdrawAllIncome

type KolKeysInvestorWithdrawAllIncome struct {
	Investor common.Address
	Val      *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

KolKeysInvestorWithdrawAllIncome represents a InvestorWithdrawAllIncome event raised by the KolKeys contract.

type KolKeysInvestorWithdrawAllIncomeIterator

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

KolKeysInvestorWithdrawAllIncomeIterator is returned from FilterInvestorWithdrawAllIncome and is used to iterate over the raw logs and unpacked data for InvestorWithdrawAllIncome events raised by the KolKeys contract.

func (*KolKeysInvestorWithdrawAllIncomeIterator) Close

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

func (*KolKeysInvestorWithdrawAllIncomeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysInvestorWithdrawByOneKol struct {
	Investor common.Address
	Kol      common.Address
	Val      *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

KolKeysInvestorWithdrawByOneKol represents a InvestorWithdrawByOneKol event raised by the KolKeys contract.

type KolKeysInvestorWithdrawByOneKolIterator

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

KolKeysInvestorWithdrawByOneKolIterator is returned from FilterInvestorWithdrawByOneKol and is used to iterate over the raw logs and unpacked data for InvestorWithdrawByOneKol events raised by the KolKeys contract.

func (*KolKeysInvestorWithdrawByOneKolIterator) Close

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

func (*KolKeysInvestorWithdrawByOneKolIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysInvestorWithdrawByOneNonce struct {
	Investor common.Address
	Kol      common.Address
	Nonce    *big.Int
	Val      *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

KolKeysInvestorWithdrawByOneNonce represents a InvestorWithdrawByOneNonce event raised by the KolKeys contract.

type KolKeysInvestorWithdrawByOneNonceIterator

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

KolKeysInvestorWithdrawByOneNonceIterator is returned from FilterInvestorWithdrawByOneNonce and is used to iterate over the raw logs and unpacked data for InvestorWithdrawByOneNonce events raised by the KolKeys contract.

func (*KolKeysInvestorWithdrawByOneNonceIterator) Close

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

func (*KolKeysInvestorWithdrawByOneNonceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysKeyAuction struct {
	Id     *big.Int
	Seller common.Address
	Bidder common.Address
	Kol    common.Address
	Nonce  *big.Int
	Amount *big.Int
	Price  *big.Int
	Status bool
}

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

type KolKeysKeyAuctionAction

type KolKeysKeyAuctionAction struct {
	Kol         common.Address
	Seller      common.Address
	Buyer       common.Address
	Nonce       *big.Int
	Amount      *big.Int
	PricePerKey *big.Int
	Typ         string
	Raw         types.Log // Blockchain specific contextual infos
}

KolKeysKeyAuctionAction represents a KeyAuctionAction event raised by the KolKeys contract.

type KolKeysKeyAuctionActionIterator

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

KolKeysKeyAuctionActionIterator is returned from FilterKeyAuctionAction and is used to iterate over the raw logs and unpacked data for KeyAuctionAction events raised by the KolKeys contract.

func (*KolKeysKeyAuctionActionIterator) Close

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

func (*KolKeysKeyAuctionActionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysKeySettings struct {
	Price   *big.Int
	MaxNo   *big.Int
	Nonce   *big.Int
	TotalNo *big.Int
}

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

type KolKeysKeyTransfered

type KolKeysKeyTransfered struct {
	From   common.Address
	To     common.Address
	Kol    common.Address
	Nonce  *big.Int
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

KolKeysKeyTransfered represents a KeyTransfered event raised by the KolKeys contract.

type KolKeysKeyTransferedAll

type KolKeysKeyTransferedAll struct {
	From common.Address
	To   common.Address
	Kol  common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

KolKeysKeyTransferedAll represents a KeyTransferedAll event raised by the KolKeys contract.

type KolKeysKeyTransferedAllIterator

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

KolKeysKeyTransferedAllIterator is returned from FilterKeyTransferedAll and is used to iterate over the raw logs and unpacked data for KeyTransferedAll events raised by the KolKeys contract.

func (*KolKeysKeyTransferedAllIterator) Close

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

func (*KolKeysKeyTransferedAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

KolKeysKeyTransferedIterator is returned from FilterKeyTransfered and is used to iterate over the raw logs and unpacked data for KeyTransfered events raised by the KolKeys contract.

func (*KolKeysKeyTransferedIterator) Close

func (it *KolKeysKeyTransferedIterator) Close() error

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

func (*KolKeysKeyTransferedIterator) Error

func (it *KolKeysKeyTransferedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysKolIpRightBought struct {
	KolAddr    common.Address
	Buyer      common.Address
	KeyNo      *big.Int
	CurNonce   *big.Int
	KoltotalNo *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

KolKeysKolIpRightBought represents a KolIpRightBought event raised by the KolKeys contract.

type KolKeysKolIpRightBoughtIterator

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

KolKeysKolIpRightBoughtIterator is returned from FilterKolIpRightBought and is used to iterate over the raw logs and unpacked data for KolIpRightBought events raised by the KolKeys contract.

func (*KolKeysKolIpRightBoughtIterator) Close

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

func (*KolKeysKolIpRightBoughtIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysKolKeyOperation struct {
	Kol      common.Address
	Price    *big.Int
	MaxKeyNo *big.Int
	Op       string
	Raw      types.Log // Blockchain specific contextual infos
}

KolKeysKolKeyOperation represents a KolKeyOperation event raised by the KolKeys contract.

type KolKeysKolKeyOperationIterator

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

KolKeysKolKeyOperationIterator is returned from FilterKolKeyOperation and is used to iterate over the raw logs and unpacked data for KolKeyOperation events raised by the KolKeys contract.

func (*KolKeysKolKeyOperationIterator) Close

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

func (*KolKeysKolKeyOperationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

KolKeysOwnerSet represents a OwnerSet event raised by the KolKeys contract.

type KolKeysOwnerSetIterator

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

KolKeysOwnerSetIterator is returned from FilterOwnerSet and is used to iterate over the raw logs and unpacked data for OwnerSet events raised by the KolKeys contract.

func (*KolKeysOwnerSetIterator) Close

func (it *KolKeysOwnerSetIterator) Close() error

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

func (*KolKeysOwnerSetIterator) Error

func (it *KolKeysOwnerSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KolKeysOwnerSetIterator) Next

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

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

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

func (*KolKeysRaw) Call

func (_KolKeys *KolKeysRaw) 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 (*KolKeysRaw) Transact

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

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

func (*KolKeysRaw) Transfer

func (_KolKeys *KolKeysRaw) 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 KolKeysServiceFeeChanged

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

KolKeysServiceFeeChanged represents a ServiceFeeChanged event raised by the KolKeys contract.

type KolKeysServiceFeeChangedIterator

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

KolKeysServiceFeeChangedIterator is returned from FilterServiceFeeChanged and is used to iterate over the raw logs and unpacked data for ServiceFeeChanged events raised by the KolKeys contract.

func (*KolKeysServiceFeeChangedIterator) Close

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

func (*KolKeysServiceFeeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysSession struct {
	Contract     *KolKeys          // 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
}

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

func (*KolKeysSession) AdminOperation

func (_KolKeys *KolKeysSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*KolKeysSession) AdminServiceFeeWithdraw

func (_KolKeys *KolKeysSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*KolKeysSession) AdminSetBddingFee

func (_KolKeys *KolKeysSession) AdminSetBddingFee(newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetBddingFee is a paid mutator transaction binding the contract method 0x388a82cc.

Solidity: function adminSetBddingFee(uint256 newFeeInGwei) returns()

func (*KolKeysSession) AdminSetKeyFeeRate

func (_KolKeys *KolKeysSession) AdminSetKeyFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetKeyFeeRate is a paid mutator transaction binding the contract method 0x84854688.

Solidity: function adminSetKeyFeeRate(uint8 newRate) returns()

func (*KolKeysSession) AdminSetKolIncomeRate

func (_KolKeys *KolKeysSession) AdminSetKolIncomeRate(newRate uint8) (*types.Transaction, error)

AdminSetKolIncomeRate is a paid mutator transaction binding the contract method 0x34afeec0.

Solidity: function adminSetKolIncomeRate(uint8 newRate) returns()

func (*KolKeysSession) AdminSetKolOperationFee

func (_KolKeys *KolKeysSession) AdminSetKolOperationFee(newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetKolOperationFee is a paid mutator transaction binding the contract method 0xe9e60559.

Solidity: function adminSetKolOperationFee(uint256 newFeeInGwei) returns()

func (*KolKeysSession) AdminSetWithdrawFeeRate

func (_KolKeys *KolKeysSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*KolKeysSession) AdminUpgradeToNewRule

func (_KolKeys *KolKeysSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*KolKeysSession) Admins

func (_KolKeys *KolKeysSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*KolKeysSession) AllIncomeOfAllKol

func (_KolKeys *KolKeysSession) AllIncomeOfAllKol(investor common.Address) (*big.Int, error)

AllIncomeOfAllKol is a free data retrieval call binding the contract method 0xaf958a62.

Solidity: function AllIncomeOfAllKol(address investor) view returns(uint256)

func (*KolKeysSession) AllIncomeOfOneKol

func (_KolKeys *KolKeysSession) AllIncomeOfOneKol(kol common.Address, investor common.Address) (*big.Int, error)

AllIncomeOfOneKol is a free data retrieval call binding the contract method 0x6d74bb5f.

Solidity: function AllIncomeOfOneKol(address kol, address investor) view returns(uint256)

func (*KolKeysSession) AuctionData

func (_KolKeys *KolKeysSession) AuctionData(start *big.Int, no *big.Int) ([]KolKeysKeyAuction, error)

AuctionData is a free data retrieval call binding the contract method 0x86eaf599.

Solidity: function AuctionData(uint256 start, uint256 no) view returns((uint256,address,address,address,uint256,uint256,uint256,bool)[] result)

func (*KolKeysSession) AuctionIdxMap

func (_KolKeys *KolKeysSession) AuctionIdxMap(arg0 *big.Int) (*big.Int, error)

AuctionIdxMap is a free data retrieval call binding the contract method 0x794f3bf1.

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

func (*KolKeysSession) Balance

func (_KolKeys *KolKeysSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*KolKeysSession) Bid

func (_KolKeys *KolKeysSession) Bid(bidID *big.Int) (*types.Transaction, error)

Bid is a paid mutator transaction binding the contract method 0x454a2ab3.

Solidity: function bid(uint256 bidID) payable returns()

func (*KolKeysSession) BuyKolKey

func (_KolKeys *KolKeysSession) BuyKolKey(kolAddr common.Address, keyNo *big.Int) (*types.Transaction, error)

BuyKolKey is a paid mutator transaction binding the contract method 0xc7cdf93c.

Solidity: function buyKolKey(address kolAddr, uint256 keyNo) payable returns()

func (*KolKeysSession) ChangeOwner

func (_KolKeys *KolKeysSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*KolKeysSession) ChangeOwner0

func (_KolKeys *KolKeysSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*KolKeysSession) CheckPluginInterface

func (_KolKeys *KolKeysSession) CheckPluginInterface() (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*KolKeysSession) CurrentAuctionID

func (_KolKeys *KolKeysSession) CurrentAuctionID() (*big.Int, error)

CurrentAuctionID is a free data retrieval call binding the contract method 0x1d6abf71.

Solidity: function __currentAuctionID() view returns(uint256)

func (*KolKeysSession) FeeForKeyBiddig

func (_KolKeys *KolKeysSession) FeeForKeyBiddig() (*big.Int, error)

FeeForKeyBiddig is a free data retrieval call binding the contract method 0xd4596578.

Solidity: function __feeForKeyBiddig() view returns(uint256)

func (*KolKeysSession) FeeForKolKeyOp

func (_KolKeys *KolKeysSession) FeeForKolKeyOp() (*big.Int, error)

FeeForKolKeyOp is a free data retrieval call binding the contract method 0xcdd3e4da.

Solidity: function __feeForKolKeyOp() view returns(uint256)

func (*KolKeysSession) GetOwner

func (_KolKeys *KolKeysSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*KolKeysSession) IncomeOfOneNonce

func (_KolKeys *KolKeysSession) IncomeOfOneNonce(kol common.Address, nonce *big.Int, amount *big.Int) (*big.Int, error)

IncomeOfOneNonce is a free data retrieval call binding the contract method 0x54ffe238.

Solidity: function IncomeOfOneNonce(address kol, uint256 nonce, uint256 amount) view returns(uint256)

func (*KolKeysSession) IncomePerNoncePerKey

func (_KolKeys *KolKeysSession) IncomePerNoncePerKey(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

IncomePerNoncePerKey is a free data retrieval call binding the contract method 0x53311742.

Solidity: function incomePerNoncePerKey(address , uint256 ) view returns(uint256)

func (*KolKeysSession) IncomeToKolPool

func (_KolKeys *KolKeysSession) IncomeToKolPool(kol common.Address) (*types.Transaction, error)

IncomeToKolPool is a paid mutator transaction binding the contract method 0x2b915094.

Solidity: function incomeToKolPool(address kol) payable returns()

func (*KolKeysSession) InvestorAllKeysOfKol

func (_KolKeys *KolKeysSession) InvestorAllKeysOfKol(investor common.Address, kol common.Address) (struct {
	Nonce   []*big.Int
	Amounts []*big.Int
}, error)

InvestorAllKeysOfKol is a free data retrieval call binding the contract method 0xb83bb4e6.

Solidity: function InvestorAllKeysOfKol(address investor, address kol) view returns(uint256[] nonce, uint256[] amounts)

func (*KolKeysSession) InvestorOfKol

func (_KolKeys *KolKeysSession) InvestorOfKol(kol common.Address) ([]common.Address, error)

InvestorOfKol is a free data retrieval call binding the contract method 0x8b2b0b67.

Solidity: function InvestorOfKol(address kol) view returns(address[])

func (*KolKeysSession) IssueBid

func (_KolKeys *KolKeysSession) IssueBid(kol common.Address, nonce *big.Int, amount *big.Int, pricePerKey *big.Int) (*types.Transaction, error)

IssueBid is a paid mutator transaction binding the contract method 0x627d27b1.

Solidity: function issueBid(address kol, uint256 nonce, uint256 amount, uint256 pricePerKey) payable returns()

func (*KolKeysSession) KeyInAuction

func (_KolKeys *KolKeysSession) KeyInAuction(arg0 *big.Int) (struct {
	Id     *big.Int
	Seller common.Address
	Bidder common.Address
	Kol    common.Address
	Nonce  *big.Int
	Amount *big.Int
	Price  *big.Int
	Status bool
}, error)

KeyInAuction is a free data retrieval call binding the contract method 0xab3da16f.

Solidity: function keyInAuction(uint256 ) view returns(uint256 id, address seller, address bidder, address kol, uint256 nonce, uint256 amount, uint256 price, bool status)

func (*KolKeysSession) KeySettingsRecord

func (_KolKeys *KolKeysSession) KeySettingsRecord(arg0 common.Address) (struct {
	Price   *big.Int
	MaxNo   *big.Int
	Nonce   *big.Int
	TotalNo *big.Int
}, error)

KeySettingsRecord is a free data retrieval call binding the contract method 0x94447f45.

Solidity: function KeySettingsRecord(address ) view returns(uint256 price, uint256 maxNo, uint256 nonce, uint256 totalNo)

func (*KolKeysSession) KeyStatusOfKol

func (_KolKeys *KolKeysSession) KeyStatusOfKol(kol common.Address) (KolKeysKeySettings, error)

KeyStatusOfKol is a free data retrieval call binding the contract method 0x9e4f5b5f.

Solidity: function KeyStatusOfKol(address kol) view returns((uint256,uint256,uint256,uint256))

func (*KolKeysSession) KolAddKeySupply

func (_KolKeys *KolKeysSession) KolAddKeySupply(amount *big.Int) (*types.Transaction, error)

KolAddKeySupply is a paid mutator transaction binding the contract method 0xd7eca559.

Solidity: function kolAddKeySupply(uint256 amount) payable returns()

func (*KolKeysSession) KolIncomeRatePerKeyBuy

func (_KolKeys *KolKeysSession) KolIncomeRatePerKeyBuy() (uint8, error)

KolIncomeRatePerKeyBuy is a free data retrieval call binding the contract method 0xafb337cf.

Solidity: function kolIncomeRatePerKeyBuy() view returns(uint8)

func (*KolKeysSession) KolOfOneInvestor

func (_KolKeys *KolKeysSession) KolOfOneInvestor(investor common.Address) ([]common.Address, error)

KolOfOneInvestor is a free data retrieval call binding the contract method 0xce92faa2.

Solidity: function KolOfOneInvestor(address investor) view returns(address[])

func (*KolKeysSession) KolOpenKeySale

func (_KolKeys *KolKeysSession) KolOpenKeySale(pricePerKey *big.Int, maxKeyNo *big.Int) (*types.Transaction, error)

KolOpenKeySale is a paid mutator transaction binding the contract method 0x4a26e8ea.

Solidity: function kolOpenKeySale(uint256 pricePerKey, int256 maxKeyNo) payable returns()

func (*KolKeysSession) KolSetKeyPrice

func (_KolKeys *KolKeysSession) KolSetKeyPrice(newPrice *big.Int) (*types.Transaction, error)

KolSetKeyPrice is a paid mutator transaction binding the contract method 0xdb003fc7.

Solidity: function kolSetKeyPrice(uint256 newPrice) payable returns()

func (*KolKeysSession) MinValCheck

func (_KolKeys *KolKeysSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*KolKeysSession) Receive

func (_KolKeys *KolKeysSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*KolKeysSession) RevokeBid

func (_KolKeys *KolKeysSession) RevokeBid(bidID *big.Int) (*types.Transaction, error)

RevokeBid is a paid mutator transaction binding the contract method 0xd1a1f09a.

Solidity: function revokeBid(uint256 bidID) payable returns()

func (*KolKeysSession) ServiceFeeRatePerKeyBuy

func (_KolKeys *KolKeysSession) ServiceFeeRatePerKeyBuy() (uint8, error)

ServiceFeeRatePerKeyBuy is a free data retrieval call binding the contract method 0xaf707457.

Solidity: function serviceFeeRatePerKeyBuy() view returns(uint8)

func (*KolKeysSession) ServiceFeeReceived

func (_KolKeys *KolKeysSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*KolKeysSession) TransferAllKey

func (_KolKeys *KolKeysSession) TransferAllKey(to common.Address, kol common.Address) (*types.Transaction, error)

TransferAllKey is a paid mutator transaction binding the contract method 0x01c6c8da.

Solidity: function transferAllKey(address to, address kol) returns()

func (*KolKeysSession) TransferKey

func (_KolKeys *KolKeysSession) TransferKey(to common.Address, kol common.Address, nonce *big.Int, amount *big.Int) (*types.Transaction, error)

TransferKey is a paid mutator transaction binding the contract method 0x7b46bfe8.

Solidity: function transferKey(address to, address kol, uint256 nonce, uint256 amount) returns()

func (*KolKeysSession) TweetBought

func (_KolKeys *KolKeysSession) TweetBought(tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*KolKeysSession) Withdraw

func (_KolKeys *KolKeysSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

func (*KolKeysSession) WithdrawAllIncome

func (_KolKeys *KolKeysSession) WithdrawAllIncome() (*types.Transaction, error)

WithdrawAllIncome is a paid mutator transaction binding the contract method 0x0c3e0452.

Solidity: function withdrawAllIncome() returns()

func (*KolKeysSession) WithdrawFeeRate

func (_KolKeys *KolKeysSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

func (*KolKeysSession) WithdrawFromOneKol

func (_KolKeys *KolKeysSession) WithdrawFromOneKol(kol common.Address) (*types.Transaction, error)

WithdrawFromOneKol is a paid mutator transaction binding the contract method 0x0ef86b3f.

Solidity: function withdrawFromOneKol(address kol) returns()

func (*KolKeysSession) WithdrawFromOneNonce

func (_KolKeys *KolKeysSession) WithdrawFromOneNonce(kol common.Address, nonce *big.Int) (*types.Transaction, error)

WithdrawFromOneNonce is a paid mutator transaction binding the contract method 0x3da6136e.

Solidity: function withdrawFromOneNonce(address kol, uint256 nonce) returns()

type KolKeysSystemSet

type KolKeysSystemSet struct {
	Num *big.Int
	Op  string
	Raw types.Log // Blockchain specific contextual infos
}

KolKeysSystemSet represents a SystemSet event raised by the KolKeys contract.

type KolKeysSystemSetIterator

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

KolKeysSystemSetIterator is returned from FilterSystemSet and is used to iterate over the raw logs and unpacked data for SystemSet events raised by the KolKeys contract.

func (*KolKeysSystemSetIterator) Close

func (it *KolKeysSystemSetIterator) Close() error

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

func (*KolKeysSystemSetIterator) Error

func (it *KolKeysSystemSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KolKeysSystemSetIterator) Next

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

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

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

func NewKolKeysTransactor

func NewKolKeysTransactor(address common.Address, transactor bind.ContractTransactor) (*KolKeysTransactor, error)

NewKolKeysTransactor creates a new write-only instance of KolKeys, bound to a specific deployed contract.

func (*KolKeysTransactor) AdminOperation

func (_KolKeys *KolKeysTransactor) AdminOperation(opts *bind.TransactOpts, admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*KolKeysTransactor) AdminServiceFeeWithdraw

func (_KolKeys *KolKeysTransactor) AdminServiceFeeWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*KolKeysTransactor) AdminSetBddingFee

func (_KolKeys *KolKeysTransactor) AdminSetBddingFee(opts *bind.TransactOpts, newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetBddingFee is a paid mutator transaction binding the contract method 0x388a82cc.

Solidity: function adminSetBddingFee(uint256 newFeeInGwei) returns()

func (*KolKeysTransactor) AdminSetKeyFeeRate

func (_KolKeys *KolKeysTransactor) AdminSetKeyFeeRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetKeyFeeRate is a paid mutator transaction binding the contract method 0x84854688.

Solidity: function adminSetKeyFeeRate(uint8 newRate) returns()

func (*KolKeysTransactor) AdminSetKolIncomeRate

func (_KolKeys *KolKeysTransactor) AdminSetKolIncomeRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetKolIncomeRate is a paid mutator transaction binding the contract method 0x34afeec0.

Solidity: function adminSetKolIncomeRate(uint8 newRate) returns()

func (*KolKeysTransactor) AdminSetKolOperationFee

func (_KolKeys *KolKeysTransactor) AdminSetKolOperationFee(opts *bind.TransactOpts, newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetKolOperationFee is a paid mutator transaction binding the contract method 0xe9e60559.

Solidity: function adminSetKolOperationFee(uint256 newFeeInGwei) returns()

func (*KolKeysTransactor) AdminSetWithdrawFeeRate

func (_KolKeys *KolKeysTransactor) AdminSetWithdrawFeeRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*KolKeysTransactor) AdminUpgradeToNewRule

func (_KolKeys *KolKeysTransactor) AdminUpgradeToNewRule(opts *bind.TransactOpts, recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*KolKeysTransactor) Bid

func (_KolKeys *KolKeysTransactor) Bid(opts *bind.TransactOpts, bidID *big.Int) (*types.Transaction, error)

Bid is a paid mutator transaction binding the contract method 0x454a2ab3.

Solidity: function bid(uint256 bidID) payable returns()

func (*KolKeysTransactor) BuyKolKey

func (_KolKeys *KolKeysTransactor) BuyKolKey(opts *bind.TransactOpts, kolAddr common.Address, keyNo *big.Int) (*types.Transaction, error)

BuyKolKey is a paid mutator transaction binding the contract method 0xc7cdf93c.

Solidity: function buyKolKey(address kolAddr, uint256 keyNo) payable returns()

func (*KolKeysTransactor) ChangeOwner

func (_KolKeys *KolKeysTransactor) ChangeOwner(opts *bind.TransactOpts, stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*KolKeysTransactor) ChangeOwner0

func (_KolKeys *KolKeysTransactor) ChangeOwner0(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*KolKeysTransactor) IncomeToKolPool

func (_KolKeys *KolKeysTransactor) IncomeToKolPool(opts *bind.TransactOpts, kol common.Address) (*types.Transaction, error)

IncomeToKolPool is a paid mutator transaction binding the contract method 0x2b915094.

Solidity: function incomeToKolPool(address kol) payable returns()

func (*KolKeysTransactor) IssueBid

func (_KolKeys *KolKeysTransactor) IssueBid(opts *bind.TransactOpts, kol common.Address, nonce *big.Int, amount *big.Int, pricePerKey *big.Int) (*types.Transaction, error)

IssueBid is a paid mutator transaction binding the contract method 0x627d27b1.

Solidity: function issueBid(address kol, uint256 nonce, uint256 amount, uint256 pricePerKey) payable returns()

func (*KolKeysTransactor) KolAddKeySupply

func (_KolKeys *KolKeysTransactor) KolAddKeySupply(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

KolAddKeySupply is a paid mutator transaction binding the contract method 0xd7eca559.

Solidity: function kolAddKeySupply(uint256 amount) payable returns()

func (*KolKeysTransactor) KolOpenKeySale

func (_KolKeys *KolKeysTransactor) KolOpenKeySale(opts *bind.TransactOpts, pricePerKey *big.Int, maxKeyNo *big.Int) (*types.Transaction, error)

KolOpenKeySale is a paid mutator transaction binding the contract method 0x4a26e8ea.

Solidity: function kolOpenKeySale(uint256 pricePerKey, int256 maxKeyNo) payable returns()

func (*KolKeysTransactor) KolSetKeyPrice

func (_KolKeys *KolKeysTransactor) KolSetKeyPrice(opts *bind.TransactOpts, newPrice *big.Int) (*types.Transaction, error)

KolSetKeyPrice is a paid mutator transaction binding the contract method 0xdb003fc7.

Solidity: function kolSetKeyPrice(uint256 newPrice) payable returns()

func (*KolKeysTransactor) Receive

func (_KolKeys *KolKeysTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*KolKeysTransactor) RevokeBid

func (_KolKeys *KolKeysTransactor) RevokeBid(opts *bind.TransactOpts, bidID *big.Int) (*types.Transaction, error)

RevokeBid is a paid mutator transaction binding the contract method 0xd1a1f09a.

Solidity: function revokeBid(uint256 bidID) payable returns()

func (*KolKeysTransactor) TransferAllKey

func (_KolKeys *KolKeysTransactor) TransferAllKey(opts *bind.TransactOpts, to common.Address, kol common.Address) (*types.Transaction, error)

TransferAllKey is a paid mutator transaction binding the contract method 0x01c6c8da.

Solidity: function transferAllKey(address to, address kol) returns()

func (*KolKeysTransactor) TransferKey

func (_KolKeys *KolKeysTransactor) TransferKey(opts *bind.TransactOpts, to common.Address, kol common.Address, nonce *big.Int, amount *big.Int) (*types.Transaction, error)

TransferKey is a paid mutator transaction binding the contract method 0x7b46bfe8.

Solidity: function transferKey(address to, address kol, uint256 nonce, uint256 amount) returns()

func (*KolKeysTransactor) TweetBought

func (_KolKeys *KolKeysTransactor) TweetBought(opts *bind.TransactOpts, tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*KolKeysTransactor) Withdraw

func (_KolKeys *KolKeysTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

func (*KolKeysTransactor) WithdrawAllIncome

func (_KolKeys *KolKeysTransactor) WithdrawAllIncome(opts *bind.TransactOpts) (*types.Transaction, error)

WithdrawAllIncome is a paid mutator transaction binding the contract method 0x0c3e0452.

Solidity: function withdrawAllIncome() returns()

func (*KolKeysTransactor) WithdrawFromOneKol

func (_KolKeys *KolKeysTransactor) WithdrawFromOneKol(opts *bind.TransactOpts, kol common.Address) (*types.Transaction, error)

WithdrawFromOneKol is a paid mutator transaction binding the contract method 0x0ef86b3f.

Solidity: function withdrawFromOneKol(address kol) returns()

func (*KolKeysTransactor) WithdrawFromOneNonce

func (_KolKeys *KolKeysTransactor) WithdrawFromOneNonce(opts *bind.TransactOpts, kol common.Address, nonce *big.Int) (*types.Transaction, error)

WithdrawFromOneNonce is a paid mutator transaction binding the contract method 0x3da6136e.

Solidity: function withdrawFromOneNonce(address kol, uint256 nonce) returns()

type KolKeysTransactorRaw

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

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

func (*KolKeysTransactorRaw) Transact

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

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

func (*KolKeysTransactorRaw) Transfer

func (_KolKeys *KolKeysTransactorRaw) 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 KolKeysTransactorSession

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

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

func (*KolKeysTransactorSession) AdminOperation

func (_KolKeys *KolKeysTransactorSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*KolKeysTransactorSession) AdminServiceFeeWithdraw

func (_KolKeys *KolKeysTransactorSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*KolKeysTransactorSession) AdminSetBddingFee

func (_KolKeys *KolKeysTransactorSession) AdminSetBddingFee(newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetBddingFee is a paid mutator transaction binding the contract method 0x388a82cc.

Solidity: function adminSetBddingFee(uint256 newFeeInGwei) returns()

func (*KolKeysTransactorSession) AdminSetKeyFeeRate

func (_KolKeys *KolKeysTransactorSession) AdminSetKeyFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetKeyFeeRate is a paid mutator transaction binding the contract method 0x84854688.

Solidity: function adminSetKeyFeeRate(uint8 newRate) returns()

func (*KolKeysTransactorSession) AdminSetKolIncomeRate

func (_KolKeys *KolKeysTransactorSession) AdminSetKolIncomeRate(newRate uint8) (*types.Transaction, error)

AdminSetKolIncomeRate is a paid mutator transaction binding the contract method 0x34afeec0.

Solidity: function adminSetKolIncomeRate(uint8 newRate) returns()

func (*KolKeysTransactorSession) AdminSetKolOperationFee

func (_KolKeys *KolKeysTransactorSession) AdminSetKolOperationFee(newFeeInGwei *big.Int) (*types.Transaction, error)

AdminSetKolOperationFee is a paid mutator transaction binding the contract method 0xe9e60559.

Solidity: function adminSetKolOperationFee(uint256 newFeeInGwei) returns()

func (*KolKeysTransactorSession) AdminSetWithdrawFeeRate

func (_KolKeys *KolKeysTransactorSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*KolKeysTransactorSession) AdminUpgradeToNewRule

func (_KolKeys *KolKeysTransactorSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*KolKeysTransactorSession) Bid

func (_KolKeys *KolKeysTransactorSession) Bid(bidID *big.Int) (*types.Transaction, error)

Bid is a paid mutator transaction binding the contract method 0x454a2ab3.

Solidity: function bid(uint256 bidID) payable returns()

func (*KolKeysTransactorSession) BuyKolKey

func (_KolKeys *KolKeysTransactorSession) BuyKolKey(kolAddr common.Address, keyNo *big.Int) (*types.Transaction, error)

BuyKolKey is a paid mutator transaction binding the contract method 0xc7cdf93c.

Solidity: function buyKolKey(address kolAddr, uint256 keyNo) payable returns()

func (*KolKeysTransactorSession) ChangeOwner

func (_KolKeys *KolKeysTransactorSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*KolKeysTransactorSession) ChangeOwner0

func (_KolKeys *KolKeysTransactorSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*KolKeysTransactorSession) IncomeToKolPool

func (_KolKeys *KolKeysTransactorSession) IncomeToKolPool(kol common.Address) (*types.Transaction, error)

IncomeToKolPool is a paid mutator transaction binding the contract method 0x2b915094.

Solidity: function incomeToKolPool(address kol) payable returns()

func (*KolKeysTransactorSession) IssueBid

func (_KolKeys *KolKeysTransactorSession) IssueBid(kol common.Address, nonce *big.Int, amount *big.Int, pricePerKey *big.Int) (*types.Transaction, error)

IssueBid is a paid mutator transaction binding the contract method 0x627d27b1.

Solidity: function issueBid(address kol, uint256 nonce, uint256 amount, uint256 pricePerKey) payable returns()

func (*KolKeysTransactorSession) KolAddKeySupply

func (_KolKeys *KolKeysTransactorSession) KolAddKeySupply(amount *big.Int) (*types.Transaction, error)

KolAddKeySupply is a paid mutator transaction binding the contract method 0xd7eca559.

Solidity: function kolAddKeySupply(uint256 amount) payable returns()

func (*KolKeysTransactorSession) KolOpenKeySale

func (_KolKeys *KolKeysTransactorSession) KolOpenKeySale(pricePerKey *big.Int, maxKeyNo *big.Int) (*types.Transaction, error)

KolOpenKeySale is a paid mutator transaction binding the contract method 0x4a26e8ea.

Solidity: function kolOpenKeySale(uint256 pricePerKey, int256 maxKeyNo) payable returns()

func (*KolKeysTransactorSession) KolSetKeyPrice

func (_KolKeys *KolKeysTransactorSession) KolSetKeyPrice(newPrice *big.Int) (*types.Transaction, error)

KolSetKeyPrice is a paid mutator transaction binding the contract method 0xdb003fc7.

Solidity: function kolSetKeyPrice(uint256 newPrice) payable returns()

func (*KolKeysTransactorSession) Receive

func (_KolKeys *KolKeysTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*KolKeysTransactorSession) RevokeBid

func (_KolKeys *KolKeysTransactorSession) RevokeBid(bidID *big.Int) (*types.Transaction, error)

RevokeBid is a paid mutator transaction binding the contract method 0xd1a1f09a.

Solidity: function revokeBid(uint256 bidID) payable returns()

func (*KolKeysTransactorSession) TransferAllKey

func (_KolKeys *KolKeysTransactorSession) TransferAllKey(to common.Address, kol common.Address) (*types.Transaction, error)

TransferAllKey is a paid mutator transaction binding the contract method 0x01c6c8da.

Solidity: function transferAllKey(address to, address kol) returns()

func (*KolKeysTransactorSession) TransferKey

func (_KolKeys *KolKeysTransactorSession) TransferKey(to common.Address, kol common.Address, nonce *big.Int, amount *big.Int) (*types.Transaction, error)

TransferKey is a paid mutator transaction binding the contract method 0x7b46bfe8.

Solidity: function transferKey(address to, address kol, uint256 nonce, uint256 amount) returns()

func (*KolKeysTransactorSession) TweetBought

func (_KolKeys *KolKeysTransactorSession) TweetBought(tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*KolKeysTransactorSession) Withdraw

func (_KolKeys *KolKeysTransactorSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

func (*KolKeysTransactorSession) WithdrawAllIncome

func (_KolKeys *KolKeysTransactorSession) WithdrawAllIncome() (*types.Transaction, error)

WithdrawAllIncome is a paid mutator transaction binding the contract method 0x0c3e0452.

Solidity: function withdrawAllIncome() returns()

func (*KolKeysTransactorSession) WithdrawFromOneKol

func (_KolKeys *KolKeysTransactorSession) WithdrawFromOneKol(kol common.Address) (*types.Transaction, error)

WithdrawFromOneKol is a paid mutator transaction binding the contract method 0x0ef86b3f.

Solidity: function withdrawFromOneKol(address kol) returns()

func (*KolKeysTransactorSession) WithdrawFromOneNonce

func (_KolKeys *KolKeysTransactorSession) WithdrawFromOneNonce(kol common.Address, nonce *big.Int) (*types.Transaction, error)

WithdrawFromOneNonce is a paid mutator transaction binding the contract method 0x3da6136e.

Solidity: function withdrawFromOneNonce(address kol, uint256 nonce) returns()

type KolKeysTweetBought

type KolKeysTweetBought struct {
	THash   [32]byte
	Owner   common.Address
	Buyer   common.Address
	VoteNoe *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

KolKeysTweetBought represents a TweetBought event raised by the KolKeys contract.

type KolKeysTweetBoughtIterator

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

KolKeysTweetBoughtIterator is returned from FilterTweetBought and is used to iterate over the raw logs and unpacked data for TweetBought events raised by the KolKeys contract.

func (*KolKeysTweetBoughtIterator) Close

func (it *KolKeysTweetBoughtIterator) Close() error

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

func (*KolKeysTweetBoughtIterator) Error

func (it *KolKeysTweetBoughtIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*KolKeysTweetBoughtIterator) Next

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

type KolKeysUpgradeToNewRule struct {
	NewContract common.Address
	Balance     *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

KolKeysUpgradeToNewRule represents a UpgradeToNewRule event raised by the KolKeys contract.

type KolKeysUpgradeToNewRuleIterator

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

KolKeysUpgradeToNewRuleIterator is returned from FilterUpgradeToNewRule and is used to iterate over the raw logs and unpacked data for UpgradeToNewRule events raised by the KolKeys contract.

func (*KolKeysUpgradeToNewRuleIterator) Close

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

func (*KolKeysUpgradeToNewRuleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type KolKeysWithdrawService struct {
	Owner   common.Address
	Balance *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

KolKeysWithdrawService represents a WithdrawService event raised by the KolKeys contract.

type KolKeysWithdrawServiceIterator

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

KolKeysWithdrawServiceIterator is returned from FilterWithdrawService and is used to iterate over the raw logs and unpacked data for WithdrawService events raised by the KolKeys contract.

func (*KolKeysWithdrawServiceIterator) Close

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

func (*KolKeysWithdrawServiceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGame struct {
	TweetLotteryGameCaller     // Read-only binding to the contract
	TweetLotteryGameTransactor // Write-only binding to the contract
	TweetLotteryGameFilterer   // Log filterer for contract events
}

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

func NewTweetLotteryGame

func NewTweetLotteryGame(address common.Address, backend bind.ContractBackend) (*TweetLotteryGame, error)

NewTweetLotteryGame creates a new instance of TweetLotteryGame, bound to a specific deployed contract.

type TweetLotteryGameAdminOperated

type TweetLotteryGameAdminOperated struct {
	NewTimeInHours *big.Int
	OpName         string
	Raw            types.Log // Blockchain specific contextual infos
}

TweetLotteryGameAdminOperated represents a AdminOperated event raised by the TweetLotteryGame contract.

type TweetLotteryGameAdminOperatedIterator

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

TweetLotteryGameAdminOperatedIterator is returned from FilterAdminOperated and is used to iterate over the raw logs and unpacked data for AdminOperated events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameAdminOperatedIterator) Close

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

func (*TweetLotteryGameAdminOperatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameAdminOperation struct {
	Admin  common.Address
	OpType bool
	Raw    types.Log // Blockchain specific contextual infos
}

TweetLotteryGameAdminOperation represents a AdminOperation event raised by the TweetLotteryGame contract.

type TweetLotteryGameAdminOperationIterator

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

TweetLotteryGameAdminOperationIterator is returned from FilterAdminOperation and is used to iterate over the raw logs and unpacked data for AdminOperation events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameAdminOperationIterator) Close

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

func (*TweetLotteryGameAdminOperationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTweetLotteryGameCaller

func NewTweetLotteryGameCaller(address common.Address, caller bind.ContractCaller) (*TweetLotteryGameCaller, error)

NewTweetLotteryGameCaller creates a new read-only instance of TweetLotteryGame, bound to a specific deployed contract.

func (*TweetLotteryGameCaller) Admins

func (_TweetLotteryGame *TweetLotteryGameCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetLotteryGameCaller) Balance

func (_TweetLotteryGame *TweetLotteryGameCaller) Balance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetLotteryGameCaller) BonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameCaller) BonusRateToWinner(opts *bind.CallOpts) (uint8, error)

BonusRateToWinner is a free data retrieval call binding the contract method 0xd8574327.

Solidity: function __bonusRateToWinner() view returns(uint8)

func (*TweetLotteryGameCaller) BuyerInfoIdxForTickets

func (_TweetLotteryGame *TweetLotteryGameCaller) BuyerInfoIdxForTickets(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

BuyerInfoIdxForTickets is a free data retrieval call binding the contract method 0x88df3b19.

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

func (*TweetLotteryGameCaller) BuyerInfoRecords

func (_TweetLotteryGame *TweetLotteryGameCaller) BuyerInfoRecords(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Addr common.Address
	Team [32]byte
}, error)

BuyerInfoRecords is a free data retrieval call binding the contract method 0xa90b6c22.

Solidity: function buyerInfoRecords(bytes32 ) view returns(address addr, bytes32 team)

func (*TweetLotteryGameCaller) CheckPluginInterface

func (_TweetLotteryGame *TweetLotteryGameCaller) CheckPluginInterface(opts *bind.CallOpts) (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*TweetLotteryGameCaller) CurrentLotteryTicketID

func (_TweetLotteryGame *TweetLotteryGameCaller) CurrentLotteryTicketID(opts *bind.CallOpts) (*big.Int, error)

CurrentLotteryTicketID is a free data retrieval call binding the contract method 0x3c607d6f.

Solidity: function __currentLotteryTicketID() view returns(uint256)

func (*TweetLotteryGameCaller) CurrentRoundNo

func (_TweetLotteryGame *TweetLotteryGameCaller) CurrentRoundNo(opts *bind.CallOpts) (*big.Int, error)

CurrentRoundNo is a free data retrieval call binding the contract method 0x1a8fb62e.

Solidity: function currentRoundNo() view returns(uint256)

func (*TweetLotteryGameCaller) GameInfoRecord

func (_TweetLotteryGame *TweetLotteryGameCaller) GameInfoRecord(opts *bind.CallOpts, arg0 *big.Int) (struct {
	RandomHash   [32]byte
	DiscoverTime *big.Int
	Winner       common.Address
	WinTeam      [32]byte
	WinTicketID  *big.Int
	Bonus        *big.Int
	RandomVal    *big.Int
}, error)

GameInfoRecord is a free data retrieval call binding the contract method 0x61373c31.

Solidity: function gameInfoRecord(uint256 ) view returns(bytes32 randomHash, uint256 discoverTime, address winner, bytes32 winTeam, uint256 winTicketID, uint256 bonus, uint256 randomVal)

func (*TweetLotteryGameCaller) GetOwner

func (_TweetLotteryGame *TweetLotteryGameCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetLotteryGameCaller) HistoryRoundInfo

func (_TweetLotteryGame *TweetLotteryGameCaller) HistoryRoundInfo(opts *bind.CallOpts, from *big.Int, to *big.Int) ([]TweetLotteryGameGameInfoOneRound, error)

HistoryRoundInfo is a free data retrieval call binding the contract method 0x355b6ec4.

Solidity: function historyRoundInfo(uint256 from, uint256 to) view returns((bytes32,uint256,address,bytes32,uint256,uint256,uint256)[] infos)

func (*TweetLotteryGameCaller) LotteryGameRoundTime

func (_TweetLotteryGame *TweetLotteryGameCaller) LotteryGameRoundTime(opts *bind.CallOpts) (*big.Int, error)

LotteryGameRoundTime is a free data retrieval call binding the contract method 0x1550ddfb.

Solidity: function __lotteryGameRoundTime() view returns(uint256)

func (*TweetLotteryGameCaller) MinValCheck

func (_TweetLotteryGame *TweetLotteryGameCaller) MinValCheck(opts *bind.CallOpts) (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetLotteryGameCaller) OpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameCaller) OpenToOuterPlayer(opts *bind.CallOpts) (bool, error)

OpenToOuterPlayer is a free data retrieval call binding the contract method 0x853cf537.

Solidity: function __openToOuterPlayer() view returns(bool)

func (*TweetLotteryGameCaller) ServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameCaller) ServiceFeeRateForTicketBuy(opts *bind.CallOpts) (uint8, error)

ServiceFeeRateForTicketBuy is a free data retrieval call binding the contract method 0xd54de261.

Solidity: function __serviceFeeRateForTicketBuy() view returns(uint8)

func (*TweetLotteryGameCaller) ServiceFeeReceived

func (_TweetLotteryGame *TweetLotteryGameCaller) ServiceFeeReceived(opts *bind.CallOpts) (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetLotteryGameCaller) SystemSettings

func (_TweetLotteryGame *TweetLotteryGameCaller) SystemSettings(opts *bind.CallOpts) (*big.Int, *big.Int, *big.Int, *big.Int, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, uint256)

func (*TweetLotteryGameCaller) TeamMembers

func (_TweetLotteryGame *TweetLotteryGameCaller) TeamMembers(opts *bind.CallOpts, roundNo *big.Int, tweet [32]byte) ([]common.Address, error)

TeamMembers is a free data retrieval call binding the contract method 0xd157740f.

Solidity: function teamMembers(uint256 roundNo, bytes32 tweet) view returns(address[] members)

func (*TweetLotteryGameCaller) TeamMembersCountForGame

func (_TweetLotteryGame *TweetLotteryGameCaller) TeamMembersCountForGame(opts *bind.CallOpts, roundNo *big.Int, tweet [32]byte, memAddr common.Address) (*big.Int, *big.Int, *big.Int, error)

TeamMembersCountForGame is a free data retrieval call binding the contract method 0x253120c9.

Solidity: function teamMembersCountForGame(uint256 roundNo, bytes32 tweet, address memAddr) view returns(uint256, uint256, uint256)

func (*TweetLotteryGameCaller) TickList

func (_TweetLotteryGame *TweetLotteryGameCaller) TickList(opts *bind.CallOpts, round *big.Int, owner common.Address) ([]*big.Int, [][32]byte, error)

TickList is a free data retrieval call binding the contract method 0xdd57903b.

Solidity: function tickList(uint256 round, address owner) view returns(uint256[], bytes32[])

func (*TweetLotteryGameCaller) TicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameCaller) TicketPriceForOuter(opts *bind.CallOpts) (*big.Int, error)

TicketPriceForOuter is a free data retrieval call binding the contract method 0xf524142e.

Solidity: function __ticketPriceForOuter() view returns(uint256)

func (*TweetLotteryGameCaller) TicketsRecords

func (_TweetLotteryGame *TweetLotteryGameCaller) TicketsRecords(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

TicketsRecords is a free data retrieval call binding the contract method 0x11a7d78c.

Solidity: function ticketsRecords(uint256 , uint256 ) view returns(uint256)

func (*TweetLotteryGameCaller) TotalBonus

func (_TweetLotteryGame *TweetLotteryGameCaller) TotalBonus(opts *bind.CallOpts) (*big.Int, error)

TotalBonus is a free data retrieval call binding the contract method 0xa8dd07dc.

Solidity: function totalBonus() view returns(uint256)

func (*TweetLotteryGameCaller) WithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameCaller) WithdrawFeeRate(opts *bind.CallOpts) (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetLotteryGameCallerRaw

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

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

func (*TweetLotteryGameCallerRaw) Call

func (_TweetLotteryGame *TweetLotteryGameCallerRaw) 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 TweetLotteryGameCallerSession

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

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

func (*TweetLotteryGameCallerSession) Admins

func (_TweetLotteryGame *TweetLotteryGameCallerSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetLotteryGameCallerSession) Balance

func (_TweetLotteryGame *TweetLotteryGameCallerSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetLotteryGameCallerSession) BonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameCallerSession) BonusRateToWinner() (uint8, error)

BonusRateToWinner is a free data retrieval call binding the contract method 0xd8574327.

Solidity: function __bonusRateToWinner() view returns(uint8)

func (*TweetLotteryGameCallerSession) BuyerInfoIdxForTickets

func (_TweetLotteryGame *TweetLotteryGameCallerSession) BuyerInfoIdxForTickets(arg0 *big.Int) ([32]byte, error)

BuyerInfoIdxForTickets is a free data retrieval call binding the contract method 0x88df3b19.

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

func (*TweetLotteryGameCallerSession) BuyerInfoRecords

func (_TweetLotteryGame *TweetLotteryGameCallerSession) BuyerInfoRecords(arg0 [32]byte) (struct {
	Addr common.Address
	Team [32]byte
}, error)

BuyerInfoRecords is a free data retrieval call binding the contract method 0xa90b6c22.

Solidity: function buyerInfoRecords(bytes32 ) view returns(address addr, bytes32 team)

func (*TweetLotteryGameCallerSession) CheckPluginInterface

func (_TweetLotteryGame *TweetLotteryGameCallerSession) CheckPluginInterface() (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*TweetLotteryGameCallerSession) CurrentLotteryTicketID

func (_TweetLotteryGame *TweetLotteryGameCallerSession) CurrentLotteryTicketID() (*big.Int, error)

CurrentLotteryTicketID is a free data retrieval call binding the contract method 0x3c607d6f.

Solidity: function __currentLotteryTicketID() view returns(uint256)

func (*TweetLotteryGameCallerSession) CurrentRoundNo

func (_TweetLotteryGame *TweetLotteryGameCallerSession) CurrentRoundNo() (*big.Int, error)

CurrentRoundNo is a free data retrieval call binding the contract method 0x1a8fb62e.

Solidity: function currentRoundNo() view returns(uint256)

func (*TweetLotteryGameCallerSession) GameInfoRecord

func (_TweetLotteryGame *TweetLotteryGameCallerSession) GameInfoRecord(arg0 *big.Int) (struct {
	RandomHash   [32]byte
	DiscoverTime *big.Int
	Winner       common.Address
	WinTeam      [32]byte
	WinTicketID  *big.Int
	Bonus        *big.Int
	RandomVal    *big.Int
}, error)

GameInfoRecord is a free data retrieval call binding the contract method 0x61373c31.

Solidity: function gameInfoRecord(uint256 ) view returns(bytes32 randomHash, uint256 discoverTime, address winner, bytes32 winTeam, uint256 winTicketID, uint256 bonus, uint256 randomVal)

func (*TweetLotteryGameCallerSession) GetOwner

func (_TweetLotteryGame *TweetLotteryGameCallerSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetLotteryGameCallerSession) HistoryRoundInfo

func (_TweetLotteryGame *TweetLotteryGameCallerSession) HistoryRoundInfo(from *big.Int, to *big.Int) ([]TweetLotteryGameGameInfoOneRound, error)

HistoryRoundInfo is a free data retrieval call binding the contract method 0x355b6ec4.

Solidity: function historyRoundInfo(uint256 from, uint256 to) view returns((bytes32,uint256,address,bytes32,uint256,uint256,uint256)[] infos)

func (*TweetLotteryGameCallerSession) LotteryGameRoundTime

func (_TweetLotteryGame *TweetLotteryGameCallerSession) LotteryGameRoundTime() (*big.Int, error)

LotteryGameRoundTime is a free data retrieval call binding the contract method 0x1550ddfb.

Solidity: function __lotteryGameRoundTime() view returns(uint256)

func (*TweetLotteryGameCallerSession) MinValCheck

func (_TweetLotteryGame *TweetLotteryGameCallerSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetLotteryGameCallerSession) OpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameCallerSession) OpenToOuterPlayer() (bool, error)

OpenToOuterPlayer is a free data retrieval call binding the contract method 0x853cf537.

Solidity: function __openToOuterPlayer() view returns(bool)

func (*TweetLotteryGameCallerSession) ServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameCallerSession) ServiceFeeRateForTicketBuy() (uint8, error)

ServiceFeeRateForTicketBuy is a free data retrieval call binding the contract method 0xd54de261.

Solidity: function __serviceFeeRateForTicketBuy() view returns(uint8)

func (*TweetLotteryGameCallerSession) ServiceFeeReceived

func (_TweetLotteryGame *TweetLotteryGameCallerSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetLotteryGameCallerSession) SystemSettings

func (_TweetLotteryGame *TweetLotteryGameCallerSession) SystemSettings() (*big.Int, *big.Int, *big.Int, *big.Int, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, uint256)

func (*TweetLotteryGameCallerSession) TeamMembers

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TeamMembers(roundNo *big.Int, tweet [32]byte) ([]common.Address, error)

TeamMembers is a free data retrieval call binding the contract method 0xd157740f.

Solidity: function teamMembers(uint256 roundNo, bytes32 tweet) view returns(address[] members)

func (*TweetLotteryGameCallerSession) TeamMembersCountForGame

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TeamMembersCountForGame(roundNo *big.Int, tweet [32]byte, memAddr common.Address) (*big.Int, *big.Int, *big.Int, error)

TeamMembersCountForGame is a free data retrieval call binding the contract method 0x253120c9.

Solidity: function teamMembersCountForGame(uint256 roundNo, bytes32 tweet, address memAddr) view returns(uint256, uint256, uint256)

func (*TweetLotteryGameCallerSession) TickList

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TickList(round *big.Int, owner common.Address) ([]*big.Int, [][32]byte, error)

TickList is a free data retrieval call binding the contract method 0xdd57903b.

Solidity: function tickList(uint256 round, address owner) view returns(uint256[], bytes32[])

func (*TweetLotteryGameCallerSession) TicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TicketPriceForOuter() (*big.Int, error)

TicketPriceForOuter is a free data retrieval call binding the contract method 0xf524142e.

Solidity: function __ticketPriceForOuter() view returns(uint256)

func (*TweetLotteryGameCallerSession) TicketsRecords

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TicketsRecords(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

TicketsRecords is a free data retrieval call binding the contract method 0x11a7d78c.

Solidity: function ticketsRecords(uint256 , uint256 ) view returns(uint256)

func (*TweetLotteryGameCallerSession) TotalBonus

func (_TweetLotteryGame *TweetLotteryGameCallerSession) TotalBonus() (*big.Int, error)

TotalBonus is a free data retrieval call binding the contract method 0xa8dd07dc.

Solidity: function totalBonus() view returns(uint256)

func (*TweetLotteryGameCallerSession) WithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameCallerSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetLotteryGameDiscoverWinner

type TweetLotteryGameDiscoverWinner struct {
	Winner         common.Address
	WinnerTeam     [32]byte
	TicketID       *big.Int
	Bonus          *big.Int
	BonusToTeam    *big.Int
	Random         *big.Int
	NextRandomHash [32]byte
	Raw            types.Log // Blockchain specific contextual infos
}

TweetLotteryGameDiscoverWinner represents a DiscoverWinner event raised by the TweetLotteryGame contract.

type TweetLotteryGameDiscoverWinnerIterator

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

TweetLotteryGameDiscoverWinnerIterator is returned from FilterDiscoverWinner and is used to iterate over the raw logs and unpacked data for DiscoverWinner events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameDiscoverWinnerIterator) Close

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

func (*TweetLotteryGameDiscoverWinnerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTweetLotteryGameFilterer

func NewTweetLotteryGameFilterer(address common.Address, filterer bind.ContractFilterer) (*TweetLotteryGameFilterer, error)

NewTweetLotteryGameFilterer creates a new log filterer instance of TweetLotteryGame, bound to a specific deployed contract.

func (*TweetLotteryGameFilterer) FilterAdminOperated

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterAdminOperated(opts *bind.FilterOpts) (*TweetLotteryGameAdminOperatedIterator, error)

FilterAdminOperated is a free log retrieval operation binding the contract event 0x39865e03587bbccdfe9981182110f07a7cedc3cd608edb6a4efaa14bcdb4469d.

Solidity: event AdminOperated(uint256 newTimeInHours, string opName)

func (*TweetLotteryGameFilterer) FilterAdminOperation

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterAdminOperation(opts *bind.FilterOpts) (*TweetLotteryGameAdminOperationIterator, error)

FilterAdminOperation is a free log retrieval operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetLotteryGameFilterer) FilterDiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterDiscoverWinner(opts *bind.FilterOpts) (*TweetLotteryGameDiscoverWinnerIterator, error)

FilterDiscoverWinner is a free log retrieval operation binding the contract event 0xb46eb63b055209e08f856513cdeef787d4ad696c7f36cec7d5dd16b8d4a04445.

Solidity: event DiscoverWinner(address winner, bytes32 winnerTeam, uint256 ticketID, uint256 bonus, uint256 bonusToTeam, uint256 random, bytes32 nextRandomHash)

func (*TweetLotteryGameFilterer) FilterKolIpRightBout

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterKolIpRightBout(opts *bind.FilterOpts) (*TweetLotteryGameKolIpRightBoutIterator, error)

FilterKolIpRightBout is a free log retrieval operation binding the contract event 0xa59e6c9d6e45088d28a487818337ccf6d9f77519bbf8f5d46a94eb250690ad24.

Solidity: event KolIpRightBout(address kolAddr, address buyer, uint256 keyNo)

func (*TweetLotteryGameFilterer) FilterOwnerSet

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*TweetLotteryGameOwnerSetIterator, error)

FilterOwnerSet is a free log retrieval operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetLotteryGameFilterer) FilterServiceFeeChanged

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterServiceFeeChanged(opts *bind.FilterOpts) (*TweetLotteryGameServiceFeeChangedIterator, error)

FilterServiceFeeChanged is a free log retrieval operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetLotteryGameFilterer) FilterSkipToNewRound

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterSkipToNewRound(opts *bind.FilterOpts) (*TweetLotteryGameSkipToNewRoundIterator, error)

FilterSkipToNewRound is a free log retrieval operation binding the contract event 0xa48adfcb41b7cc4607437c02693423a81944370a5efef4b28e07f07d11652860.

Solidity: event SkipToNewRound(bytes32 hash, uint256 round)

func (*TweetLotteryGameFilterer) FilterTicketSold

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterTicketSold(opts *bind.FilterOpts) (*TweetLotteryGameTicketSoldIterator, error)

FilterTicketSold is a free log retrieval operation binding the contract event 0x7486e610a6d07e1419063632389e57b8c133ced5e70fea2d926ad3f99df98218.

Solidity: event TicketSold(address buyer, uint256 no, uint256 serviceFee)

func (*TweetLotteryGameFilterer) FilterTweetBought

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterTweetBought(opts *bind.FilterOpts) (*TweetLotteryGameTweetBoughtIterator, error)

FilterTweetBought is a free log retrieval operation binding the contract event 0xd4752ba343214266339e13b616bfa296ee8c71658e4a89e060b8050bfd2030c0.

Solidity: event TweetBought(bytes32 thash, address owner, address buyer, uint256 val, uint256 no)

func (*TweetLotteryGameFilterer) FilterUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterUpgradeToNewRule(opts *bind.FilterOpts) (*TweetLotteryGameUpgradeToNewRuleIterator, error)

FilterUpgradeToNewRule is a free log retrieval operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetLotteryGameFilterer) FilterWinnerWithdrawBonus

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterWinnerWithdrawBonus(opts *bind.FilterOpts) (*TweetLotteryGameWinnerWithdrawBonusIterator, error)

FilterWinnerWithdrawBonus is a free log retrieval operation binding the contract event 0x069763e559a8b233c91393265d903d024921625212c082077b9a4875043c3dd7.

Solidity: event WinnerWithdrawBonus(address winner, uint256 bonus)

func (*TweetLotteryGameFilterer) FilterWithdrawService

func (_TweetLotteryGame *TweetLotteryGameFilterer) FilterWithdrawService(opts *bind.FilterOpts) (*TweetLotteryGameWithdrawServiceIterator, error)

FilterWithdrawService is a free log retrieval operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*TweetLotteryGameFilterer) ParseAdminOperated

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseAdminOperated(log types.Log) (*TweetLotteryGameAdminOperated, error)

ParseAdminOperated is a log parse operation binding the contract event 0x39865e03587bbccdfe9981182110f07a7cedc3cd608edb6a4efaa14bcdb4469d.

Solidity: event AdminOperated(uint256 newTimeInHours, string opName)

func (*TweetLotteryGameFilterer) ParseAdminOperation

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseAdminOperation(log types.Log) (*TweetLotteryGameAdminOperation, error)

ParseAdminOperation is a log parse operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetLotteryGameFilterer) ParseDiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseDiscoverWinner(log types.Log) (*TweetLotteryGameDiscoverWinner, error)

ParseDiscoverWinner is a log parse operation binding the contract event 0xb46eb63b055209e08f856513cdeef787d4ad696c7f36cec7d5dd16b8d4a04445.

Solidity: event DiscoverWinner(address winner, bytes32 winnerTeam, uint256 ticketID, uint256 bonus, uint256 bonusToTeam, uint256 random, bytes32 nextRandomHash)

func (*TweetLotteryGameFilterer) ParseKolIpRightBout

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseKolIpRightBout(log types.Log) (*TweetLotteryGameKolIpRightBout, error)

ParseKolIpRightBout is a log parse operation binding the contract event 0xa59e6c9d6e45088d28a487818337ccf6d9f77519bbf8f5d46a94eb250690ad24.

Solidity: event KolIpRightBout(address kolAddr, address buyer, uint256 keyNo)

func (*TweetLotteryGameFilterer) ParseOwnerSet

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseOwnerSet(log types.Log) (*TweetLotteryGameOwnerSet, error)

ParseOwnerSet is a log parse operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetLotteryGameFilterer) ParseServiceFeeChanged

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseServiceFeeChanged(log types.Log) (*TweetLotteryGameServiceFeeChanged, error)

ParseServiceFeeChanged is a log parse operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetLotteryGameFilterer) ParseSkipToNewRound

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseSkipToNewRound(log types.Log) (*TweetLotteryGameSkipToNewRound, error)

ParseSkipToNewRound is a log parse operation binding the contract event 0xa48adfcb41b7cc4607437c02693423a81944370a5efef4b28e07f07d11652860.

Solidity: event SkipToNewRound(bytes32 hash, uint256 round)

func (*TweetLotteryGameFilterer) ParseTicketSold

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseTicketSold(log types.Log) (*TweetLotteryGameTicketSold, error)

ParseTicketSold is a log parse operation binding the contract event 0x7486e610a6d07e1419063632389e57b8c133ced5e70fea2d926ad3f99df98218.

Solidity: event TicketSold(address buyer, uint256 no, uint256 serviceFee)

func (*TweetLotteryGameFilterer) ParseTweetBought

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseTweetBought(log types.Log) (*TweetLotteryGameTweetBought, error)

ParseTweetBought is a log parse operation binding the contract event 0xd4752ba343214266339e13b616bfa296ee8c71658e4a89e060b8050bfd2030c0.

Solidity: event TweetBought(bytes32 thash, address owner, address buyer, uint256 val, uint256 no)

func (*TweetLotteryGameFilterer) ParseUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseUpgradeToNewRule(log types.Log) (*TweetLotteryGameUpgradeToNewRule, error)

ParseUpgradeToNewRule is a log parse operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetLotteryGameFilterer) ParseWinnerWithdrawBonus

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseWinnerWithdrawBonus(log types.Log) (*TweetLotteryGameWinnerWithdrawBonus, error)

ParseWinnerWithdrawBonus is a log parse operation binding the contract event 0x069763e559a8b233c91393265d903d024921625212c082077b9a4875043c3dd7.

Solidity: event WinnerWithdrawBonus(address winner, uint256 bonus)

func (*TweetLotteryGameFilterer) ParseWithdrawService

func (_TweetLotteryGame *TweetLotteryGameFilterer) ParseWithdrawService(log types.Log) (*TweetLotteryGameWithdrawService, error)

ParseWithdrawService is a log parse operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*TweetLotteryGameFilterer) WatchAdminOperated

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchAdminOperated(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameAdminOperated) (event.Subscription, error)

WatchAdminOperated is a free log subscription operation binding the contract event 0x39865e03587bbccdfe9981182110f07a7cedc3cd608edb6a4efaa14bcdb4469d.

Solidity: event AdminOperated(uint256 newTimeInHours, string opName)

func (*TweetLotteryGameFilterer) WatchAdminOperation

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchAdminOperation(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameAdminOperation) (event.Subscription, error)

WatchAdminOperation is a free log subscription operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetLotteryGameFilterer) WatchDiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchDiscoverWinner(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameDiscoverWinner) (event.Subscription, error)

WatchDiscoverWinner is a free log subscription operation binding the contract event 0xb46eb63b055209e08f856513cdeef787d4ad696c7f36cec7d5dd16b8d4a04445.

Solidity: event DiscoverWinner(address winner, bytes32 winnerTeam, uint256 ticketID, uint256 bonus, uint256 bonusToTeam, uint256 random, bytes32 nextRandomHash)

func (*TweetLotteryGameFilterer) WatchKolIpRightBout

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchKolIpRightBout(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameKolIpRightBout) (event.Subscription, error)

WatchKolIpRightBout is a free log subscription operation binding the contract event 0xa59e6c9d6e45088d28a487818337ccf6d9f77519bbf8f5d46a94eb250690ad24.

Solidity: event KolIpRightBout(address kolAddr, address buyer, uint256 keyNo)

func (*TweetLotteryGameFilterer) WatchOwnerSet

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameOwnerSet, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerSet is a free log subscription operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetLotteryGameFilterer) WatchServiceFeeChanged

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchServiceFeeChanged(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameServiceFeeChanged) (event.Subscription, error)

WatchServiceFeeChanged is a free log subscription operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetLotteryGameFilterer) WatchSkipToNewRound

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchSkipToNewRound(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameSkipToNewRound) (event.Subscription, error)

WatchSkipToNewRound is a free log subscription operation binding the contract event 0xa48adfcb41b7cc4607437c02693423a81944370a5efef4b28e07f07d11652860.

Solidity: event SkipToNewRound(bytes32 hash, uint256 round)

func (*TweetLotteryGameFilterer) WatchTicketSold

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchTicketSold(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameTicketSold) (event.Subscription, error)

WatchTicketSold is a free log subscription operation binding the contract event 0x7486e610a6d07e1419063632389e57b8c133ced5e70fea2d926ad3f99df98218.

Solidity: event TicketSold(address buyer, uint256 no, uint256 serviceFee)

func (*TweetLotteryGameFilterer) WatchTweetBought

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchTweetBought(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameTweetBought) (event.Subscription, error)

WatchTweetBought is a free log subscription operation binding the contract event 0xd4752ba343214266339e13b616bfa296ee8c71658e4a89e060b8050bfd2030c0.

Solidity: event TweetBought(bytes32 thash, address owner, address buyer, uint256 val, uint256 no)

func (*TweetLotteryGameFilterer) WatchUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchUpgradeToNewRule(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameUpgradeToNewRule) (event.Subscription, error)

WatchUpgradeToNewRule is a free log subscription operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetLotteryGameFilterer) WatchWinnerWithdrawBonus

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchWinnerWithdrawBonus(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameWinnerWithdrawBonus) (event.Subscription, error)

WatchWinnerWithdrawBonus is a free log subscription operation binding the contract event 0x069763e559a8b233c91393265d903d024921625212c082077b9a4875043c3dd7.

Solidity: event WinnerWithdrawBonus(address winner, uint256 bonus)

func (*TweetLotteryGameFilterer) WatchWithdrawService

func (_TweetLotteryGame *TweetLotteryGameFilterer) WatchWithdrawService(opts *bind.WatchOpts, sink chan<- *TweetLotteryGameWithdrawService) (event.Subscription, error)

WatchWithdrawService is a free log subscription operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

type TweetLotteryGameGameInfoOneRound

type TweetLotteryGameGameInfoOneRound struct {
	RandomHash   [32]byte
	DiscoverTime *big.Int
	Winner       common.Address
	WinTeam      [32]byte
	WinTicketID  *big.Int
	Bonus        *big.Int
	RandomVal    *big.Int
}

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

type TweetLotteryGameKolIpRightBout

type TweetLotteryGameKolIpRightBout struct {
	KolAddr common.Address
	Buyer   common.Address
	KeyNo   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TweetLotteryGameKolIpRightBout represents a KolIpRightBout event raised by the TweetLotteryGame contract.

type TweetLotteryGameKolIpRightBoutIterator

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

TweetLotteryGameKolIpRightBoutIterator is returned from FilterKolIpRightBout and is used to iterate over the raw logs and unpacked data for KolIpRightBout events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameKolIpRightBoutIterator) Close

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

func (*TweetLotteryGameKolIpRightBoutIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

TweetLotteryGameOwnerSet represents a OwnerSet event raised by the TweetLotteryGame contract.

type TweetLotteryGameOwnerSetIterator

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

TweetLotteryGameOwnerSetIterator is returned from FilterOwnerSet and is used to iterate over the raw logs and unpacked data for OwnerSet events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameOwnerSetIterator) Close

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

func (*TweetLotteryGameOwnerSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*TweetLotteryGameRaw) Call

func (_TweetLotteryGame *TweetLotteryGameRaw) 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 (*TweetLotteryGameRaw) Transact

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

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

func (*TweetLotteryGameRaw) Transfer

func (_TweetLotteryGame *TweetLotteryGameRaw) 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 TweetLotteryGameServiceFeeChanged

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

TweetLotteryGameServiceFeeChanged represents a ServiceFeeChanged event raised by the TweetLotteryGame contract.

type TweetLotteryGameServiceFeeChangedIterator

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

TweetLotteryGameServiceFeeChangedIterator is returned from FilterServiceFeeChanged and is used to iterate over the raw logs and unpacked data for ServiceFeeChanged events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameServiceFeeChangedIterator) Close

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

func (*TweetLotteryGameServiceFeeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameSession struct {
	Contract     *TweetLotteryGame // 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
}

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

func (*TweetLotteryGameSession) AdminChangeBonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameSession) AdminChangeBonusRateToWinner(newRate uint8) (*types.Transaction, error)

AdminChangeBonusRateToWinner is a paid mutator transaction binding the contract method 0x13957a7c.

Solidity: function adminChangeBonusRateToWinner(uint8 newRate) returns()

func (*TweetLotteryGameSession) AdminChangeRoundTime

func (_TweetLotteryGame *TweetLotteryGameSession) AdminChangeRoundTime(newTimeInMinutes *big.Int) (*types.Transaction, error)

AdminChangeRoundTime is a paid mutator transaction binding the contract method 0x3a80f9e6.

Solidity: function adminChangeRoundTime(uint256 newTimeInMinutes) returns()

func (*TweetLotteryGameSession) AdminOpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameSession) AdminOpenToOuterPlayer(isOpen bool) (*types.Transaction, error)

AdminOpenToOuterPlayer is a paid mutator transaction binding the contract method 0x275a18da.

Solidity: function adminOpenToOuterPlayer(bool isOpen) returns()

func (*TweetLotteryGameSession) AdminOperation

func (_TweetLotteryGame *TweetLotteryGameSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetLotteryGameSession) AdminServiceFeeWithdraw

func (_TweetLotteryGame *TweetLotteryGameSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetLotteryGameSession) AdminSetServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameSession) AdminSetServiceFeeRateForTicketBuy(newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForTicketBuy is a paid mutator transaction binding the contract method 0xda5ddd43.

Solidity: function adminSetServiceFeeRateForTicketBuy(uint8 newRate) returns()

func (*TweetLotteryGameSession) AdminSetTicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameSession) AdminSetTicketPriceForOuter(priceInFinney *big.Int) (*types.Transaction, error)

AdminSetTicketPriceForOuter is a paid mutator transaction binding the contract method 0x2a2871c5.

Solidity: function adminSetTicketPriceForOuter(uint256 priceInFinney) returns()

func (*TweetLotteryGameSession) AdminSetWithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetLotteryGameSession) AdminUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetLotteryGameSession) Admins

func (_TweetLotteryGame *TweetLotteryGameSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetLotteryGameSession) Balance

func (_TweetLotteryGame *TweetLotteryGameSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetLotteryGameSession) BonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameSession) BonusRateToWinner() (uint8, error)

BonusRateToWinner is a free data retrieval call binding the contract method 0xd8574327.

Solidity: function __bonusRateToWinner() view returns(uint8)

func (*TweetLotteryGameSession) BuyTicketFromOuter

func (_TweetLotteryGame *TweetLotteryGameSession) BuyTicketFromOuter(ticketNo *big.Int) (*types.Transaction, error)

BuyTicketFromOuter is a paid mutator transaction binding the contract method 0x2ce9df84.

Solidity: function buyTicketFromOuter(uint256 ticketNo) payable returns()

func (*TweetLotteryGameSession) BuyerInfoIdxForTickets

func (_TweetLotteryGame *TweetLotteryGameSession) BuyerInfoIdxForTickets(arg0 *big.Int) ([32]byte, error)

BuyerInfoIdxForTickets is a free data retrieval call binding the contract method 0x88df3b19.

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

func (*TweetLotteryGameSession) BuyerInfoRecords

func (_TweetLotteryGame *TweetLotteryGameSession) BuyerInfoRecords(arg0 [32]byte) (struct {
	Addr common.Address
	Team [32]byte
}, error)

BuyerInfoRecords is a free data retrieval call binding the contract method 0xa90b6c22.

Solidity: function buyerInfoRecords(bytes32 ) view returns(address addr, bytes32 team)

func (*TweetLotteryGameSession) ChangeOwner

func (_TweetLotteryGame *TweetLotteryGameSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetLotteryGameSession) ChangeOwner0

func (_TweetLotteryGame *TweetLotteryGameSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetLotteryGameSession) CheckPluginInterface

func (_TweetLotteryGame *TweetLotteryGameSession) CheckPluginInterface() (bool, error)

CheckPluginInterface is a free data retrieval call binding the contract method 0x807c758d.

Solidity: function checkPluginInterface() pure returns(bool)

func (*TweetLotteryGameSession) CurrentLotteryTicketID

func (_TweetLotteryGame *TweetLotteryGameSession) CurrentLotteryTicketID() (*big.Int, error)

CurrentLotteryTicketID is a free data retrieval call binding the contract method 0x3c607d6f.

Solidity: function __currentLotteryTicketID() view returns(uint256)

func (*TweetLotteryGameSession) CurrentRoundNo

func (_TweetLotteryGame *TweetLotteryGameSession) CurrentRoundNo() (*big.Int, error)

CurrentRoundNo is a free data retrieval call binding the contract method 0x1a8fb62e.

Solidity: function currentRoundNo() view returns(uint256)

func (*TweetLotteryGameSession) DiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameSession) DiscoverWinner(random *big.Int, nextRoundRandomHash [32]byte) (*types.Transaction, error)

DiscoverWinner is a paid mutator transaction binding the contract method 0xf427f4f9.

Solidity: function discoverWinner(uint256 random, bytes32 nextRoundRandomHash) returns()

func (*TweetLotteryGameSession) GameInfoRecord

func (_TweetLotteryGame *TweetLotteryGameSession) GameInfoRecord(arg0 *big.Int) (struct {
	RandomHash   [32]byte
	DiscoverTime *big.Int
	Winner       common.Address
	WinTeam      [32]byte
	WinTicketID  *big.Int
	Bonus        *big.Int
	RandomVal    *big.Int
}, error)

GameInfoRecord is a free data retrieval call binding the contract method 0x61373c31.

Solidity: function gameInfoRecord(uint256 ) view returns(bytes32 randomHash, uint256 discoverTime, address winner, bytes32 winTeam, uint256 winTicketID, uint256 bonus, uint256 randomVal)

func (*TweetLotteryGameSession) GetOwner

func (_TweetLotteryGame *TweetLotteryGameSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetLotteryGameSession) HistoryRoundInfo

func (_TweetLotteryGame *TweetLotteryGameSession) HistoryRoundInfo(from *big.Int, to *big.Int) ([]TweetLotteryGameGameInfoOneRound, error)

HistoryRoundInfo is a free data retrieval call binding the contract method 0x355b6ec4.

Solidity: function historyRoundInfo(uint256 from, uint256 to) view returns((bytes32,uint256,address,bytes32,uint256,uint256,uint256)[] infos)

func (*TweetLotteryGameSession) LotteryGameRoundTime

func (_TweetLotteryGame *TweetLotteryGameSession) LotteryGameRoundTime() (*big.Int, error)

LotteryGameRoundTime is a free data retrieval call binding the contract method 0x1550ddfb.

Solidity: function __lotteryGameRoundTime() view returns(uint256)

func (*TweetLotteryGameSession) MinValCheck

func (_TweetLotteryGame *TweetLotteryGameSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetLotteryGameSession) OpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameSession) OpenToOuterPlayer() (bool, error)

OpenToOuterPlayer is a free data retrieval call binding the contract method 0x853cf537.

Solidity: function __openToOuterPlayer() view returns(bool)

func (*TweetLotteryGameSession) Receive

func (_TweetLotteryGame *TweetLotteryGameSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetLotteryGameSession) ServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameSession) ServiceFeeRateForTicketBuy() (uint8, error)

ServiceFeeRateForTicketBuy is a free data retrieval call binding the contract method 0xd54de261.

Solidity: function __serviceFeeRateForTicketBuy() view returns(uint8)

func (*TweetLotteryGameSession) ServiceFeeReceived

func (_TweetLotteryGame *TweetLotteryGameSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetLotteryGameSession) SkipToNextRound

func (_TweetLotteryGame *TweetLotteryGameSession) SkipToNextRound(hash [32]byte) (*types.Transaction, error)

SkipToNextRound is a paid mutator transaction binding the contract method 0xedf9938d.

Solidity: function skipToNextRound(bytes32 hash) returns()

func (*TweetLotteryGameSession) SystemSettings

func (_TweetLotteryGame *TweetLotteryGameSession) SystemSettings() (*big.Int, *big.Int, *big.Int, *big.Int, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, uint256)

func (*TweetLotteryGameSession) TeamMembers

func (_TweetLotteryGame *TweetLotteryGameSession) TeamMembers(roundNo *big.Int, tweet [32]byte) ([]common.Address, error)

TeamMembers is a free data retrieval call binding the contract method 0xd157740f.

Solidity: function teamMembers(uint256 roundNo, bytes32 tweet) view returns(address[] members)

func (*TweetLotteryGameSession) TeamMembersCountForGame

func (_TweetLotteryGame *TweetLotteryGameSession) TeamMembersCountForGame(roundNo *big.Int, tweet [32]byte, memAddr common.Address) (*big.Int, *big.Int, *big.Int, error)

TeamMembersCountForGame is a free data retrieval call binding the contract method 0x253120c9.

Solidity: function teamMembersCountForGame(uint256 roundNo, bytes32 tweet, address memAddr) view returns(uint256, uint256, uint256)

func (*TweetLotteryGameSession) TickList

func (_TweetLotteryGame *TweetLotteryGameSession) TickList(round *big.Int, owner common.Address) ([]*big.Int, [][32]byte, error)

TickList is a free data retrieval call binding the contract method 0xdd57903b.

Solidity: function tickList(uint256 round, address owner) view returns(uint256[], bytes32[])

func (*TweetLotteryGameSession) TicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameSession) TicketPriceForOuter() (*big.Int, error)

TicketPriceForOuter is a free data retrieval call binding the contract method 0xf524142e.

Solidity: function __ticketPriceForOuter() view returns(uint256)

func (*TweetLotteryGameSession) TicketsRecords

func (_TweetLotteryGame *TweetLotteryGameSession) TicketsRecords(arg0 *big.Int, arg1 *big.Int) (*big.Int, error)

TicketsRecords is a free data retrieval call binding the contract method 0x11a7d78c.

Solidity: function ticketsRecords(uint256 , uint256 ) view returns(uint256)

func (*TweetLotteryGameSession) TotalBonus

func (_TweetLotteryGame *TweetLotteryGameSession) TotalBonus() (*big.Int, error)

TotalBonus is a free data retrieval call binding the contract method 0xa8dd07dc.

Solidity: function totalBonus() view returns(uint256)

func (*TweetLotteryGameSession) TweetBought

func (_TweetLotteryGame *TweetLotteryGameSession) TweetBought(tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*TweetLotteryGameSession) Withdraw

func (_TweetLotteryGame *TweetLotteryGameSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

func (*TweetLotteryGameSession) WithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetLotteryGameSkipToNewRound

type TweetLotteryGameSkipToNewRound struct {
	Hash  [32]byte
	Round *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

TweetLotteryGameSkipToNewRound represents a SkipToNewRound event raised by the TweetLotteryGame contract.

type TweetLotteryGameSkipToNewRoundIterator

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

TweetLotteryGameSkipToNewRoundIterator is returned from FilterSkipToNewRound and is used to iterate over the raw logs and unpacked data for SkipToNewRound events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameSkipToNewRoundIterator) Close

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

func (*TweetLotteryGameSkipToNewRoundIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameTicketSold struct {
	Buyer      common.Address
	No         *big.Int
	ServiceFee *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

TweetLotteryGameTicketSold represents a TicketSold event raised by the TweetLotteryGame contract.

type TweetLotteryGameTicketSoldIterator

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

TweetLotteryGameTicketSoldIterator is returned from FilterTicketSold and is used to iterate over the raw logs and unpacked data for TicketSold events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameTicketSoldIterator) Close

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

func (*TweetLotteryGameTicketSoldIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTweetLotteryGameTransactor

func NewTweetLotteryGameTransactor(address common.Address, transactor bind.ContractTransactor) (*TweetLotteryGameTransactor, error)

NewTweetLotteryGameTransactor creates a new write-only instance of TweetLotteryGame, bound to a specific deployed contract.

func (*TweetLotteryGameTransactor) AdminChangeBonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminChangeBonusRateToWinner(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminChangeBonusRateToWinner is a paid mutator transaction binding the contract method 0x13957a7c.

Solidity: function adminChangeBonusRateToWinner(uint8 newRate) returns()

func (*TweetLotteryGameTransactor) AdminChangeRoundTime

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminChangeRoundTime(opts *bind.TransactOpts, newTimeInMinutes *big.Int) (*types.Transaction, error)

AdminChangeRoundTime is a paid mutator transaction binding the contract method 0x3a80f9e6.

Solidity: function adminChangeRoundTime(uint256 newTimeInMinutes) returns()

func (*TweetLotteryGameTransactor) AdminOpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminOpenToOuterPlayer(opts *bind.TransactOpts, isOpen bool) (*types.Transaction, error)

AdminOpenToOuterPlayer is a paid mutator transaction binding the contract method 0x275a18da.

Solidity: function adminOpenToOuterPlayer(bool isOpen) returns()

func (*TweetLotteryGameTransactor) AdminOperation

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminOperation(opts *bind.TransactOpts, admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetLotteryGameTransactor) AdminServiceFeeWithdraw

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminServiceFeeWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetLotteryGameTransactor) AdminSetServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminSetServiceFeeRateForTicketBuy(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForTicketBuy is a paid mutator transaction binding the contract method 0xda5ddd43.

Solidity: function adminSetServiceFeeRateForTicketBuy(uint8 newRate) returns()

func (*TweetLotteryGameTransactor) AdminSetTicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminSetTicketPriceForOuter(opts *bind.TransactOpts, priceInFinney *big.Int) (*types.Transaction, error)

AdminSetTicketPriceForOuter is a paid mutator transaction binding the contract method 0x2a2871c5.

Solidity: function adminSetTicketPriceForOuter(uint256 priceInFinney) returns()

func (*TweetLotteryGameTransactor) AdminSetWithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminSetWithdrawFeeRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetLotteryGameTransactor) AdminUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameTransactor) AdminUpgradeToNewRule(opts *bind.TransactOpts, recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetLotteryGameTransactor) BuyTicketFromOuter

func (_TweetLotteryGame *TweetLotteryGameTransactor) BuyTicketFromOuter(opts *bind.TransactOpts, ticketNo *big.Int) (*types.Transaction, error)

BuyTicketFromOuter is a paid mutator transaction binding the contract method 0x2ce9df84.

Solidity: function buyTicketFromOuter(uint256 ticketNo) payable returns()

func (*TweetLotteryGameTransactor) ChangeOwner

func (_TweetLotteryGame *TweetLotteryGameTransactor) ChangeOwner(opts *bind.TransactOpts, stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetLotteryGameTransactor) ChangeOwner0

func (_TweetLotteryGame *TweetLotteryGameTransactor) ChangeOwner0(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetLotteryGameTransactor) DiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameTransactor) DiscoverWinner(opts *bind.TransactOpts, random *big.Int, nextRoundRandomHash [32]byte) (*types.Transaction, error)

DiscoverWinner is a paid mutator transaction binding the contract method 0xf427f4f9.

Solidity: function discoverWinner(uint256 random, bytes32 nextRoundRandomHash) returns()

func (*TweetLotteryGameTransactor) Receive

func (_TweetLotteryGame *TweetLotteryGameTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetLotteryGameTransactor) SkipToNextRound

func (_TweetLotteryGame *TweetLotteryGameTransactor) SkipToNextRound(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

SkipToNextRound is a paid mutator transaction binding the contract method 0xedf9938d.

Solidity: function skipToNextRound(bytes32 hash) returns()

func (*TweetLotteryGameTransactor) TweetBought

func (_TweetLotteryGame *TweetLotteryGameTransactor) TweetBought(opts *bind.TransactOpts, tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*TweetLotteryGameTransactor) Withdraw

func (_TweetLotteryGame *TweetLotteryGameTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

type TweetLotteryGameTransactorRaw

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

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

func (*TweetLotteryGameTransactorRaw) Transact

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

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

func (*TweetLotteryGameTransactorRaw) Transfer

func (_TweetLotteryGame *TweetLotteryGameTransactorRaw) 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 TweetLotteryGameTransactorSession

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

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

func (*TweetLotteryGameTransactorSession) AdminChangeBonusRateToWinner

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminChangeBonusRateToWinner(newRate uint8) (*types.Transaction, error)

AdminChangeBonusRateToWinner is a paid mutator transaction binding the contract method 0x13957a7c.

Solidity: function adminChangeBonusRateToWinner(uint8 newRate) returns()

func (*TweetLotteryGameTransactorSession) AdminChangeRoundTime

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminChangeRoundTime(newTimeInMinutes *big.Int) (*types.Transaction, error)

AdminChangeRoundTime is a paid mutator transaction binding the contract method 0x3a80f9e6.

Solidity: function adminChangeRoundTime(uint256 newTimeInMinutes) returns()

func (*TweetLotteryGameTransactorSession) AdminOpenToOuterPlayer

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminOpenToOuterPlayer(isOpen bool) (*types.Transaction, error)

AdminOpenToOuterPlayer is a paid mutator transaction binding the contract method 0x275a18da.

Solidity: function adminOpenToOuterPlayer(bool isOpen) returns()

func (*TweetLotteryGameTransactorSession) AdminOperation

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetLotteryGameTransactorSession) AdminServiceFeeWithdraw

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetLotteryGameTransactorSession) AdminSetServiceFeeRateForTicketBuy

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminSetServiceFeeRateForTicketBuy(newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForTicketBuy is a paid mutator transaction binding the contract method 0xda5ddd43.

Solidity: function adminSetServiceFeeRateForTicketBuy(uint8 newRate) returns()

func (*TweetLotteryGameTransactorSession) AdminSetTicketPriceForOuter

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminSetTicketPriceForOuter(priceInFinney *big.Int) (*types.Transaction, error)

AdminSetTicketPriceForOuter is a paid mutator transaction binding the contract method 0x2a2871c5.

Solidity: function adminSetTicketPriceForOuter(uint256 priceInFinney) returns()

func (*TweetLotteryGameTransactorSession) AdminSetWithdrawFeeRate

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetLotteryGameTransactorSession) AdminUpgradeToNewRule

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetLotteryGameTransactorSession) BuyTicketFromOuter

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) BuyTicketFromOuter(ticketNo *big.Int) (*types.Transaction, error)

BuyTicketFromOuter is a paid mutator transaction binding the contract method 0x2ce9df84.

Solidity: function buyTicketFromOuter(uint256 ticketNo) payable returns()

func (*TweetLotteryGameTransactorSession) ChangeOwner

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetLotteryGameTransactorSession) ChangeOwner0

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetLotteryGameTransactorSession) DiscoverWinner

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) DiscoverWinner(random *big.Int, nextRoundRandomHash [32]byte) (*types.Transaction, error)

DiscoverWinner is a paid mutator transaction binding the contract method 0xf427f4f9.

Solidity: function discoverWinner(uint256 random, bytes32 nextRoundRandomHash) returns()

func (*TweetLotteryGameTransactorSession) Receive

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetLotteryGameTransactorSession) SkipToNextRound

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) SkipToNextRound(hash [32]byte) (*types.Transaction, error)

SkipToNextRound is a paid mutator transaction binding the contract method 0xedf9938d.

Solidity: function skipToNextRound(bytes32 hash) returns()

func (*TweetLotteryGameTransactorSession) TweetBought

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) TweetBought(tweetHash [32]byte, tweetOwner common.Address, buyer common.Address, voteNo *big.Int) (*types.Transaction, error)

TweetBought is a paid mutator transaction binding the contract method 0xd2f2eeb7.

Solidity: function tweetBought(bytes32 tweetHash, address tweetOwner, address buyer, uint256 voteNo) payable returns()

func (*TweetLotteryGameTransactorSession) Withdraw

func (_TweetLotteryGame *TweetLotteryGameTransactorSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

type TweetLotteryGameTweetBought

type TweetLotteryGameTweetBought struct {
	Thash [32]byte
	Owner common.Address
	Buyer common.Address
	Val   *big.Int
	No    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

TweetLotteryGameTweetBought represents a TweetBought event raised by the TweetLotteryGame contract.

type TweetLotteryGameTweetBoughtIterator

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

TweetLotteryGameTweetBoughtIterator is returned from FilterTweetBought and is used to iterate over the raw logs and unpacked data for TweetBought events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameTweetBoughtIterator) Close

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

func (*TweetLotteryGameTweetBoughtIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameUpgradeToNewRule struct {
	NewContract common.Address
	Balance     *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

TweetLotteryGameUpgradeToNewRule represents a UpgradeToNewRule event raised by the TweetLotteryGame contract.

type TweetLotteryGameUpgradeToNewRuleIterator

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

TweetLotteryGameUpgradeToNewRuleIterator is returned from FilterUpgradeToNewRule and is used to iterate over the raw logs and unpacked data for UpgradeToNewRule events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameUpgradeToNewRuleIterator) Close

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

func (*TweetLotteryGameUpgradeToNewRuleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameWinnerWithdrawBonus struct {
	Winner common.Address
	Bonus  *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

TweetLotteryGameWinnerWithdrawBonus represents a WinnerWithdrawBonus event raised by the TweetLotteryGame contract.

type TweetLotteryGameWinnerWithdrawBonusIterator

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

TweetLotteryGameWinnerWithdrawBonusIterator is returned from FilterWinnerWithdrawBonus and is used to iterate over the raw logs and unpacked data for WinnerWithdrawBonus events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameWinnerWithdrawBonusIterator) Close

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

func (*TweetLotteryGameWinnerWithdrawBonusIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetLotteryGameWithdrawService struct {
	Owner   common.Address
	Balance *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TweetLotteryGameWithdrawService represents a WithdrawService event raised by the TweetLotteryGame contract.

type TweetLotteryGameWithdrawServiceIterator

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

TweetLotteryGameWithdrawServiceIterator is returned from FilterWithdrawService and is used to iterate over the raw logs and unpacked data for WithdrawService events raised by the TweetLotteryGame contract.

func (*TweetLotteryGameWithdrawServiceIterator) Close

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

func (*TweetLotteryGameWithdrawServiceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetVote struct {
	TweetVoteCaller     // Read-only binding to the contract
	TweetVoteTransactor // Write-only binding to the contract
	TweetVoteFilterer   // Log filterer for contract events
}

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

func NewTweetVote

func NewTweetVote(address common.Address, backend bind.ContractBackend) (*TweetVote, error)

NewTweetVote creates a new instance of TweetVote, bound to a specific deployed contract.

type TweetVoteAdminOperation

type TweetVoteAdminOperation struct {
	Admin  common.Address
	OpType bool
	Raw    types.Log // Blockchain specific contextual infos
}

TweetVoteAdminOperation represents a AdminOperation event raised by the TweetVote contract.

type TweetVoteAdminOperationIterator

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

TweetVoteAdminOperationIterator is returned from FilterAdminOperation and is used to iterate over the raw logs and unpacked data for AdminOperation events raised by the TweetVote contract.

func (*TweetVoteAdminOperationIterator) Close

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

func (*TweetVoteAdminOperationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTweetVoteCaller

func NewTweetVoteCaller(address common.Address, caller bind.ContractCaller) (*TweetVoteCaller, error)

NewTweetVoteCaller creates a new read-only instance of TweetVote, bound to a specific deployed contract.

func (*TweetVoteCaller) Admins

func (_TweetVote *TweetVoteCaller) Admins(opts *bind.CallOpts, arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetVoteCaller) Balance

func (_TweetVote *TweetVoteCaller) Balance(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetVoteCaller) ExchangeBalance

func (_TweetVote *TweetVoteCaller) ExchangeBalance(opts *bind.CallOpts) (*big.Int, error)

ExchangeBalance is a free data retrieval call binding the contract method 0x05babda6.

Solidity: function exchangeBalance() view returns(uint256)

func (*TweetVoteCaller) GetOwner

func (_TweetVote *TweetVoteCaller) GetOwner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetVoteCaller) KolIncomePerTweetVoteRate

func (_TweetVote *TweetVoteCaller) KolIncomePerTweetVoteRate(opts *bind.CallOpts) (uint8, error)

KolIncomePerTweetVoteRate is a free data retrieval call binding the contract method 0x7b3e47d1.

Solidity: function kolIncomePerTweetVoteRate() view returns(uint8)

func (*TweetVoteCaller) MaxVotePerTweet

func (_TweetVote *TweetVoteCaller) MaxVotePerTweet(opts *bind.CallOpts) (*big.Int, error)

MaxVotePerTweet is a free data retrieval call binding the contract method 0xdc8c071c.

Solidity: function maxVotePerTweet() view returns(uint256)

func (*TweetVoteCaller) MinValCheck

func (_TweetVote *TweetVoteCaller) MinValCheck(opts *bind.CallOpts) (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetVoteCaller) OneFinney

func (_TweetVote *TweetVoteCaller) OneFinney(opts *bind.CallOpts) (*big.Int, error)

OneFinney is a free data retrieval call binding the contract method 0x080da5dc.

Solidity: function oneFinney() view returns(uint256)

func (*TweetVoteCaller) OwnersOfAllTweets

func (_TweetVote *TweetVoteCaller) OwnersOfAllTweets(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

OwnersOfAllTweets is a free data retrieval call binding the contract method 0x60b7a81b.

Solidity: function ownersOfAllTweets(bytes32 ) view returns(address)

func (*TweetVoteCaller) PluginAddress

func (_TweetVote *TweetVoteCaller) PluginAddress(opts *bind.CallOpts) (common.Address, error)

PluginAddress is a free data retrieval call binding the contract method 0x67795783.

Solidity: function pluginAddress() view returns(address)

func (*TweetVoteCaller) PluginStop

func (_TweetVote *TweetVoteCaller) PluginStop(opts *bind.CallOpts) (bool, error)

PluginStop is a free data retrieval call binding the contract method 0x7d9a38cd.

Solidity: function pluginStop() view returns(bool)

func (*TweetVoteCaller) RecoverSigner

func (_TweetVote *TweetVoteCaller) RecoverSigner(opts *bind.CallOpts, prefixedHash [32]byte, signature []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.

Solidity: function recoverSigner(bytes32 prefixedHash, bytes signature) pure returns(address)

func (*TweetVoteCaller) ServiceFeePerTweetVoteRate

func (_TweetVote *TweetVoteCaller) ServiceFeePerTweetVoteRate(opts *bind.CallOpts) (uint8, error)

ServiceFeePerTweetVoteRate is a free data retrieval call binding the contract method 0x1028672f.

Solidity: function serviceFeePerTweetVoteRate() view returns(uint8)

func (*TweetVoteCaller) ServiceFeeReceived

func (_TweetVote *TweetVoteCaller) ServiceFeeReceived(opts *bind.CallOpts) (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetVoteCaller) SystemSettings

func (_TweetVote *TweetVoteCaller) SystemSettings(opts *bind.CallOpts) (*big.Int, *big.Int, *big.Int, common.Address, bool, uint8, uint8, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, address, bool, uint8, uint8)

func (*TweetVoteCaller) TweetPostPrice

func (_TweetVote *TweetVoteCaller) TweetPostPrice(opts *bind.CallOpts) (*big.Int, error)

TweetPostPrice is a free data retrieval call binding the contract method 0x04cea976.

Solidity: function tweetPostPrice() view returns(uint256)

func (*TweetVoteCaller) TweetVotePrice

func (_TweetVote *TweetVoteCaller) TweetVotePrice(opts *bind.CallOpts) (*big.Int, error)

TweetVotePrice is a free data retrieval call binding the contract method 0x33806cfe.

Solidity: function tweetVotePrice() view returns(uint256)

func (*TweetVoteCaller) WithdrawFeeRate

func (_TweetVote *TweetVoteCaller) WithdrawFeeRate(opts *bind.CallOpts) (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetVoteCallerRaw

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

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

func (*TweetVoteCallerRaw) Call

func (_TweetVote *TweetVoteCallerRaw) 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 TweetVoteCallerSession

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

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

func (*TweetVoteCallerSession) Admins

func (_TweetVote *TweetVoteCallerSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetVoteCallerSession) Balance

func (_TweetVote *TweetVoteCallerSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetVoteCallerSession) ExchangeBalance

func (_TweetVote *TweetVoteCallerSession) ExchangeBalance() (*big.Int, error)

ExchangeBalance is a free data retrieval call binding the contract method 0x05babda6.

Solidity: function exchangeBalance() view returns(uint256)

func (*TweetVoteCallerSession) GetOwner

func (_TweetVote *TweetVoteCallerSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetVoteCallerSession) KolIncomePerTweetVoteRate

func (_TweetVote *TweetVoteCallerSession) KolIncomePerTweetVoteRate() (uint8, error)

KolIncomePerTweetVoteRate is a free data retrieval call binding the contract method 0x7b3e47d1.

Solidity: function kolIncomePerTweetVoteRate() view returns(uint8)

func (*TweetVoteCallerSession) MaxVotePerTweet

func (_TweetVote *TweetVoteCallerSession) MaxVotePerTweet() (*big.Int, error)

MaxVotePerTweet is a free data retrieval call binding the contract method 0xdc8c071c.

Solidity: function maxVotePerTweet() view returns(uint256)

func (*TweetVoteCallerSession) MinValCheck

func (_TweetVote *TweetVoteCallerSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetVoteCallerSession) OneFinney

func (_TweetVote *TweetVoteCallerSession) OneFinney() (*big.Int, error)

OneFinney is a free data retrieval call binding the contract method 0x080da5dc.

Solidity: function oneFinney() view returns(uint256)

func (*TweetVoteCallerSession) OwnersOfAllTweets

func (_TweetVote *TweetVoteCallerSession) OwnersOfAllTweets(arg0 [32]byte) (common.Address, error)

OwnersOfAllTweets is a free data retrieval call binding the contract method 0x60b7a81b.

Solidity: function ownersOfAllTweets(bytes32 ) view returns(address)

func (*TweetVoteCallerSession) PluginAddress

func (_TweetVote *TweetVoteCallerSession) PluginAddress() (common.Address, error)

PluginAddress is a free data retrieval call binding the contract method 0x67795783.

Solidity: function pluginAddress() view returns(address)

func (*TweetVoteCallerSession) PluginStop

func (_TweetVote *TweetVoteCallerSession) PluginStop() (bool, error)

PluginStop is a free data retrieval call binding the contract method 0x7d9a38cd.

Solidity: function pluginStop() view returns(bool)

func (*TweetVoteCallerSession) RecoverSigner

func (_TweetVote *TweetVoteCallerSession) RecoverSigner(prefixedHash [32]byte, signature []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.

Solidity: function recoverSigner(bytes32 prefixedHash, bytes signature) pure returns(address)

func (*TweetVoteCallerSession) ServiceFeePerTweetVoteRate

func (_TweetVote *TweetVoteCallerSession) ServiceFeePerTweetVoteRate() (uint8, error)

ServiceFeePerTweetVoteRate is a free data retrieval call binding the contract method 0x1028672f.

Solidity: function serviceFeePerTweetVoteRate() view returns(uint8)

func (*TweetVoteCallerSession) ServiceFeeReceived

func (_TweetVote *TweetVoteCallerSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetVoteCallerSession) SystemSettings

func (_TweetVote *TweetVoteCallerSession) SystemSettings() (*big.Int, *big.Int, *big.Int, common.Address, bool, uint8, uint8, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, address, bool, uint8, uint8)

func (*TweetVoteCallerSession) TweetPostPrice

func (_TweetVote *TweetVoteCallerSession) TweetPostPrice() (*big.Int, error)

TweetPostPrice is a free data retrieval call binding the contract method 0x04cea976.

Solidity: function tweetPostPrice() view returns(uint256)

func (*TweetVoteCallerSession) TweetVotePrice

func (_TweetVote *TweetVoteCallerSession) TweetVotePrice() (*big.Int, error)

TweetVotePrice is a free data retrieval call binding the contract method 0x33806cfe.

Solidity: function tweetVotePrice() view returns(uint256)

func (*TweetVoteCallerSession) WithdrawFeeRate

func (_TweetVote *TweetVoteCallerSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetVoteFilterer

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

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

func NewTweetVoteFilterer

func NewTweetVoteFilterer(address common.Address, filterer bind.ContractFilterer) (*TweetVoteFilterer, error)

NewTweetVoteFilterer creates a new log filterer instance of TweetVote, bound to a specific deployed contract.

func (*TweetVoteFilterer) FilterAdminOperation

func (_TweetVote *TweetVoteFilterer) FilterAdminOperation(opts *bind.FilterOpts) (*TweetVoteAdminOperationIterator, error)

FilterAdminOperation is a free log retrieval operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetVoteFilterer) FilterKolRightsBought

func (_TweetVote *TweetVoteFilterer) FilterKolRightsBought(opts *bind.FilterOpts) (*TweetVoteKolRightsBoughtIterator, error)

FilterKolRightsBought is a free log retrieval operation binding the contract event 0x965468a49d826fce59d9e77b6be02c36a3de0e2bda03b078403f3139b0b8e29e.

Solidity: event KolRightsBought(address kolAddr, address buyer, uint256 rightsNo)

func (*TweetVoteFilterer) FilterKolWithdraw

func (_TweetVote *TweetVoteFilterer) FilterKolWithdraw(opts *bind.FilterOpts, kol []common.Address) (*TweetVoteKolWithdrawIterator, error)

FilterKolWithdraw is a free log retrieval operation binding the contract event 0xcb69b6e91aa9504b27fc0545fcda1c4013efec7e04245bf33130a90a7e8277a8.

Solidity: event KolWithdraw(address indexed kol, uint256 amount)

func (*TweetVoteFilterer) FilterOwnerSet

func (_TweetVote *TweetVoteFilterer) FilterOwnerSet(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*TweetVoteOwnerSetIterator, error)

FilterOwnerSet is a free log retrieval operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetVoteFilterer) FilterPluginChanged

func (_TweetVote *TweetVoteFilterer) FilterPluginChanged(opts *bind.FilterOpts) (*TweetVotePluginChangedIterator, error)

FilterPluginChanged is a free log retrieval operation binding the contract event 0x0f2e6e116646e562847c512e8f8e4844b62b06385b0125cbfef81c463874f23a.

Solidity: event PluginChanged(address pAddr, bool stop)

func (*TweetVoteFilterer) FilterReceived

func (_TweetVote *TweetVoteFilterer) FilterReceived(opts *bind.FilterOpts, sender []common.Address) (*TweetVoteReceivedIterator, error)

FilterReceived is a free log retrieval operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address indexed sender, uint256 amount)

func (*TweetVoteFilterer) FilterServiceFeeChanged

func (_TweetVote *TweetVoteFilterer) FilterServiceFeeChanged(opts *bind.FilterOpts) (*TweetVoteServiceFeeChangedIterator, error)

FilterServiceFeeChanged is a free log retrieval operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetVoteFilterer) FilterSystemRateChanged

func (_TweetVote *TweetVoteFilterer) FilterSystemRateChanged(opts *bind.FilterOpts) (*TweetVoteSystemRateChangedIterator, error)

FilterSystemRateChanged is a free log retrieval operation binding the contract event 0xbd22687be7d42e6c7dfcbfb3fe1d0288fd2d292251d6457912b9e914152ddcef.

Solidity: event SystemRateChanged(uint256 pricePost, string rateName)

func (*TweetVoteFilterer) FilterTweetPublished

func (_TweetVote *TweetVoteFilterer) FilterTweetPublished(opts *bind.FilterOpts, from []common.Address) (*TweetVoteTweetPublishedIterator, error)

FilterTweetPublished is a free log retrieval operation binding the contract event 0xc6d6ed5e39f5688dfcbb4af05f438a6eb7064336069d430bfd67c227eb04f55f.

Solidity: event TweetPublished(address indexed from, bytes32 tweetHash)

func (*TweetVoteFilterer) FilterTweetVoted

func (_TweetVote *TweetVoteFilterer) FilterTweetVoted(opts *bind.FilterOpts) (*TweetVoteTweetVotedIterator, error)

FilterTweetVoted is a free log retrieval operation binding the contract event 0xb67ade271cf9f89231289b7312378de3c5219f0e45581d2d38273f949dd114f6.

Solidity: event TweetVoted(bytes32 tweetHash, address voter, uint256 pricePerVote, uint256 voteNo)

func (*TweetVoteFilterer) FilterUpgradeToNewRule

func (_TweetVote *TweetVoteFilterer) FilterUpgradeToNewRule(opts *bind.FilterOpts) (*TweetVoteUpgradeToNewRuleIterator, error)

FilterUpgradeToNewRule is a free log retrieval operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetVoteFilterer) FilterWithdrawService

func (_TweetVote *TweetVoteFilterer) FilterWithdrawService(opts *bind.FilterOpts) (*TweetVoteWithdrawServiceIterator, error)

FilterWithdrawService is a free log retrieval operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*TweetVoteFilterer) ParseAdminOperation

func (_TweetVote *TweetVoteFilterer) ParseAdminOperation(log types.Log) (*TweetVoteAdminOperation, error)

ParseAdminOperation is a log parse operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetVoteFilterer) ParseKolRightsBought

func (_TweetVote *TweetVoteFilterer) ParseKolRightsBought(log types.Log) (*TweetVoteKolRightsBought, error)

ParseKolRightsBought is a log parse operation binding the contract event 0x965468a49d826fce59d9e77b6be02c36a3de0e2bda03b078403f3139b0b8e29e.

Solidity: event KolRightsBought(address kolAddr, address buyer, uint256 rightsNo)

func (*TweetVoteFilterer) ParseKolWithdraw

func (_TweetVote *TweetVoteFilterer) ParseKolWithdraw(log types.Log) (*TweetVoteKolWithdraw, error)

ParseKolWithdraw is a log parse operation binding the contract event 0xcb69b6e91aa9504b27fc0545fcda1c4013efec7e04245bf33130a90a7e8277a8.

Solidity: event KolWithdraw(address indexed kol, uint256 amount)

func (*TweetVoteFilterer) ParseOwnerSet

func (_TweetVote *TweetVoteFilterer) ParseOwnerSet(log types.Log) (*TweetVoteOwnerSet, error)

ParseOwnerSet is a log parse operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetVoteFilterer) ParsePluginChanged

func (_TweetVote *TweetVoteFilterer) ParsePluginChanged(log types.Log) (*TweetVotePluginChanged, error)

ParsePluginChanged is a log parse operation binding the contract event 0x0f2e6e116646e562847c512e8f8e4844b62b06385b0125cbfef81c463874f23a.

Solidity: event PluginChanged(address pAddr, bool stop)

func (*TweetVoteFilterer) ParseReceived

func (_TweetVote *TweetVoteFilterer) ParseReceived(log types.Log) (*TweetVoteReceived, error)

ParseReceived is a log parse operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address indexed sender, uint256 amount)

func (*TweetVoteFilterer) ParseServiceFeeChanged

func (_TweetVote *TweetVoteFilterer) ParseServiceFeeChanged(log types.Log) (*TweetVoteServiceFeeChanged, error)

ParseServiceFeeChanged is a log parse operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetVoteFilterer) ParseSystemRateChanged

func (_TweetVote *TweetVoteFilterer) ParseSystemRateChanged(log types.Log) (*TweetVoteSystemRateChanged, error)

ParseSystemRateChanged is a log parse operation binding the contract event 0xbd22687be7d42e6c7dfcbfb3fe1d0288fd2d292251d6457912b9e914152ddcef.

Solidity: event SystemRateChanged(uint256 pricePost, string rateName)

func (*TweetVoteFilterer) ParseTweetPublished

func (_TweetVote *TweetVoteFilterer) ParseTweetPublished(log types.Log) (*TweetVoteTweetPublished, error)

ParseTweetPublished is a log parse operation binding the contract event 0xc6d6ed5e39f5688dfcbb4af05f438a6eb7064336069d430bfd67c227eb04f55f.

Solidity: event TweetPublished(address indexed from, bytes32 tweetHash)

func (*TweetVoteFilterer) ParseTweetVoted

func (_TweetVote *TweetVoteFilterer) ParseTweetVoted(log types.Log) (*TweetVoteTweetVoted, error)

ParseTweetVoted is a log parse operation binding the contract event 0xb67ade271cf9f89231289b7312378de3c5219f0e45581d2d38273f949dd114f6.

Solidity: event TweetVoted(bytes32 tweetHash, address voter, uint256 pricePerVote, uint256 voteNo)

func (*TweetVoteFilterer) ParseUpgradeToNewRule

func (_TweetVote *TweetVoteFilterer) ParseUpgradeToNewRule(log types.Log) (*TweetVoteUpgradeToNewRule, error)

ParseUpgradeToNewRule is a log parse operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetVoteFilterer) ParseWithdrawService

func (_TweetVote *TweetVoteFilterer) ParseWithdrawService(log types.Log) (*TweetVoteWithdrawService, error)

ParseWithdrawService is a log parse operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

func (*TweetVoteFilterer) WatchAdminOperation

func (_TweetVote *TweetVoteFilterer) WatchAdminOperation(opts *bind.WatchOpts, sink chan<- *TweetVoteAdminOperation) (event.Subscription, error)

WatchAdminOperation is a free log subscription operation binding the contract event 0xa97d45d2d22d38f81ac1eb6ab339a6e56470c4cef221796a485da6841b02769e.

Solidity: event AdminOperation(address admin, bool opType)

func (*TweetVoteFilterer) WatchKolRightsBought

func (_TweetVote *TweetVoteFilterer) WatchKolRightsBought(opts *bind.WatchOpts, sink chan<- *TweetVoteKolRightsBought) (event.Subscription, error)

WatchKolRightsBought is a free log subscription operation binding the contract event 0x965468a49d826fce59d9e77b6be02c36a3de0e2bda03b078403f3139b0b8e29e.

Solidity: event KolRightsBought(address kolAddr, address buyer, uint256 rightsNo)

func (*TweetVoteFilterer) WatchKolWithdraw

func (_TweetVote *TweetVoteFilterer) WatchKolWithdraw(opts *bind.WatchOpts, sink chan<- *TweetVoteKolWithdraw, kol []common.Address) (event.Subscription, error)

WatchKolWithdraw is a free log subscription operation binding the contract event 0xcb69b6e91aa9504b27fc0545fcda1c4013efec7e04245bf33130a90a7e8277a8.

Solidity: event KolWithdraw(address indexed kol, uint256 amount)

func (*TweetVoteFilterer) WatchOwnerSet

func (_TweetVote *TweetVoteFilterer) WatchOwnerSet(opts *bind.WatchOpts, sink chan<- *TweetVoteOwnerSet, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnerSet is a free log subscription operation binding the contract event 0x342827c97908e5e2f71151c08502a66d44b6f758e3ac2f1de95f02eb95f0a735.

Solidity: event OwnerSet(address indexed oldOwner, address indexed newOwner)

func (*TweetVoteFilterer) WatchPluginChanged

func (_TweetVote *TweetVoteFilterer) WatchPluginChanged(opts *bind.WatchOpts, sink chan<- *TweetVotePluginChanged) (event.Subscription, error)

WatchPluginChanged is a free log subscription operation binding the contract event 0x0f2e6e116646e562847c512e8f8e4844b62b06385b0125cbfef81c463874f23a.

Solidity: event PluginChanged(address pAddr, bool stop)

func (*TweetVoteFilterer) WatchReceived

func (_TweetVote *TweetVoteFilterer) WatchReceived(opts *bind.WatchOpts, sink chan<- *TweetVoteReceived, sender []common.Address) (event.Subscription, error)

WatchReceived is a free log subscription operation binding the contract event 0x88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874.

Solidity: event Received(address indexed sender, uint256 amount)

func (*TweetVoteFilterer) WatchServiceFeeChanged

func (_TweetVote *TweetVoteFilterer) WatchServiceFeeChanged(opts *bind.WatchOpts, sink chan<- *TweetVoteServiceFeeChanged) (event.Subscription, error)

WatchServiceFeeChanged is a free log subscription operation binding the contract event 0x1c068decb3b5138b265d62b22c4c2d8191a2e0bd3745e97b5b0ff66fa852eca5.

Solidity: event ServiceFeeChanged(uint256 newSerficeFeeRate)

func (*TweetVoteFilterer) WatchSystemRateChanged

func (_TweetVote *TweetVoteFilterer) WatchSystemRateChanged(opts *bind.WatchOpts, sink chan<- *TweetVoteSystemRateChanged) (event.Subscription, error)

WatchSystemRateChanged is a free log subscription operation binding the contract event 0xbd22687be7d42e6c7dfcbfb3fe1d0288fd2d292251d6457912b9e914152ddcef.

Solidity: event SystemRateChanged(uint256 pricePost, string rateName)

func (*TweetVoteFilterer) WatchTweetPublished

func (_TweetVote *TweetVoteFilterer) WatchTweetPublished(opts *bind.WatchOpts, sink chan<- *TweetVoteTweetPublished, from []common.Address) (event.Subscription, error)

WatchTweetPublished is a free log subscription operation binding the contract event 0xc6d6ed5e39f5688dfcbb4af05f438a6eb7064336069d430bfd67c227eb04f55f.

Solidity: event TweetPublished(address indexed from, bytes32 tweetHash)

func (*TweetVoteFilterer) WatchTweetVoted

func (_TweetVote *TweetVoteFilterer) WatchTweetVoted(opts *bind.WatchOpts, sink chan<- *TweetVoteTweetVoted) (event.Subscription, error)

WatchTweetVoted is a free log subscription operation binding the contract event 0xb67ade271cf9f89231289b7312378de3c5219f0e45581d2d38273f949dd114f6.

Solidity: event TweetVoted(bytes32 tweetHash, address voter, uint256 pricePerVote, uint256 voteNo)

func (*TweetVoteFilterer) WatchUpgradeToNewRule

func (_TweetVote *TweetVoteFilterer) WatchUpgradeToNewRule(opts *bind.WatchOpts, sink chan<- *TweetVoteUpgradeToNewRule) (event.Subscription, error)

WatchUpgradeToNewRule is a free log subscription operation binding the contract event 0x8ff69c992616f2fe31c491c4a2ba58d0da8ab5cea0e68ad7ea1713d6fecbcdaa.

Solidity: event UpgradeToNewRule(address newContract, uint256 balance)

func (*TweetVoteFilterer) WatchWithdrawService

func (_TweetVote *TweetVoteFilterer) WatchWithdrawService(opts *bind.WatchOpts, sink chan<- *TweetVoteWithdrawService) (event.Subscription, error)

WatchWithdrawService is a free log subscription operation binding the contract event 0x7cb5cedbb78bc8cf00b5ffe051ef08d865e93d587654a591285add48befaa51d.

Solidity: event WithdrawService(address owner, uint256 balance)

type TweetVoteKolRightsBought

type TweetVoteKolRightsBought struct {
	KolAddr  common.Address
	Buyer    common.Address
	RightsNo *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

TweetVoteKolRightsBought represents a KolRightsBought event raised by the TweetVote contract.

type TweetVoteKolRightsBoughtIterator

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

TweetVoteKolRightsBoughtIterator is returned from FilterKolRightsBought and is used to iterate over the raw logs and unpacked data for KolRightsBought events raised by the TweetVote contract.

func (*TweetVoteKolRightsBoughtIterator) Close

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

func (*TweetVoteKolRightsBoughtIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetVoteKolWithdraw struct {
	Kol    common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

TweetVoteKolWithdraw represents a KolWithdraw event raised by the TweetVote contract.

type TweetVoteKolWithdrawIterator

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

TweetVoteKolWithdrawIterator is returned from FilterKolWithdraw and is used to iterate over the raw logs and unpacked data for KolWithdraw events raised by the TweetVote contract.

func (*TweetVoteKolWithdrawIterator) Close

func (it *TweetVoteKolWithdrawIterator) Close() error

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

func (*TweetVoteKolWithdrawIterator) Error

func (it *TweetVoteKolWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

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

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

TweetVoteOwnerSet represents a OwnerSet event raised by the TweetVote contract.

type TweetVoteOwnerSetIterator

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

TweetVoteOwnerSetIterator is returned from FilterOwnerSet and is used to iterate over the raw logs and unpacked data for OwnerSet events raised by the TweetVote contract.

func (*TweetVoteOwnerSetIterator) Close

func (it *TweetVoteOwnerSetIterator) Close() error

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

func (*TweetVoteOwnerSetIterator) Error

func (it *TweetVoteOwnerSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TweetVoteOwnerSetIterator) Next

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

type TweetVotePluginChanged struct {
	PAddr common.Address
	Stop  bool
	Raw   types.Log // Blockchain specific contextual infos
}

TweetVotePluginChanged represents a PluginChanged event raised by the TweetVote contract.

type TweetVotePluginChangedIterator

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

TweetVotePluginChangedIterator is returned from FilterPluginChanged and is used to iterate over the raw logs and unpacked data for PluginChanged events raised by the TweetVote contract.

func (*TweetVotePluginChangedIterator) Close

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

func (*TweetVotePluginChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*TweetVoteRaw) Call

func (_TweetVote *TweetVoteRaw) 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 (*TweetVoteRaw) Transact

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

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

func (*TweetVoteRaw) Transfer

func (_TweetVote *TweetVoteRaw) 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 TweetVoteReceived

type TweetVoteReceived struct {
	Sender common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

TweetVoteReceived represents a Received event raised by the TweetVote contract.

type TweetVoteReceivedIterator

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

TweetVoteReceivedIterator is returned from FilterReceived and is used to iterate over the raw logs and unpacked data for Received events raised by the TweetVote contract.

func (*TweetVoteReceivedIterator) Close

func (it *TweetVoteReceivedIterator) Close() error

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

func (*TweetVoteReceivedIterator) Error

func (it *TweetVoteReceivedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TweetVoteReceivedIterator) Next

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

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

TweetVoteServiceFeeChanged represents a ServiceFeeChanged event raised by the TweetVote contract.

type TweetVoteServiceFeeChangedIterator

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

TweetVoteServiceFeeChangedIterator is returned from FilterServiceFeeChanged and is used to iterate over the raw logs and unpacked data for ServiceFeeChanged events raised by the TweetVote contract.

func (*TweetVoteServiceFeeChangedIterator) Close

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

func (*TweetVoteServiceFeeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetVoteSession struct {
	Contract     *TweetVote        // 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
}

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

func (*TweetVoteSession) AdminOperation

func (_TweetVote *TweetVoteSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetVoteSession) AdminServiceFeeWithdraw

func (_TweetVote *TweetVoteSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetVoteSession) AdminSetKolIncomePerTweetRate

func (_TweetVote *TweetVoteSession) AdminSetKolIncomePerTweetRate(newRate uint8) (*types.Transaction, error)

AdminSetKolIncomePerTweetRate is a paid mutator transaction binding the contract method 0xa1cd090a.

Solidity: function adminSetKolIncomePerTweetRate(uint8 newRate) returns()

func (*TweetVoteSession) AdminSetMaxVotePerTweet

func (_TweetVote *TweetVoteSession) AdminSetMaxVotePerTweet(newMaxVote *big.Int) (*types.Transaction, error)

AdminSetMaxVotePerTweet is a paid mutator transaction binding the contract method 0x489e2590.

Solidity: function adminSetMaxVotePerTweet(uint256 newMaxVote) returns()

func (*TweetVoteSession) AdminSetPluginAddr

func (_TweetVote *TweetVoteSession) AdminSetPluginAddr(addr common.Address) (*types.Transaction, error)

AdminSetPluginAddr is a paid mutator transaction binding the contract method 0xcaa27f5b.

Solidity: function adminSetPluginAddr(address addr) returns()

func (*TweetVoteSession) AdminSetServiceFeeRateForPerTweetVote

func (_TweetVote *TweetVoteSession) AdminSetServiceFeeRateForPerTweetVote(newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForPerTweetVote is a paid mutator transaction binding the contract method 0xcef8e395.

Solidity: function adminSetServiceFeeRateForPerTweetVote(uint8 newRate) returns()

func (*TweetVoteSession) AdminSetTweetPostPrice

func (_TweetVote *TweetVoteSession) AdminSetTweetPostPrice(newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetPostPrice is a paid mutator transaction binding the contract method 0xf7d58241.

Solidity: function adminSetTweetPostPrice(uint256 newPriceInFinney) returns()

func (*TweetVoteSession) AdminSetTweetVotePrice

func (_TweetVote *TweetVoteSession) AdminSetTweetVotePrice(newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetVotePrice is a paid mutator transaction binding the contract method 0x1a25d1c0.

Solidity: function adminSetTweetVotePrice(uint256 newPriceInFinney) returns()

func (*TweetVoteSession) AdminSetWithdrawFeeRate

func (_TweetVote *TweetVoteSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetVoteSession) AdminStopPlugin

func (_TweetVote *TweetVoteSession) AdminStopPlugin(stop bool) (*types.Transaction, error)

AdminStopPlugin is a paid mutator transaction binding the contract method 0x24a5834e.

Solidity: function adminStopPlugin(bool stop) returns()

func (*TweetVoteSession) AdminUpgradeToNewRule

func (_TweetVote *TweetVoteSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetVoteSession) Admins

func (_TweetVote *TweetVoteSession) Admins(arg0 common.Address) (bool, error)

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

Solidity: function __admins(address ) view returns(bool)

func (*TweetVoteSession) Balance

func (_TweetVote *TweetVoteSession) Balance(arg0 common.Address) (*big.Int, error)

Balance is a free data retrieval call binding the contract method 0xe3d670d7.

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

func (*TweetVoteSession) ChangeOwner

func (_TweetVote *TweetVoteSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetVoteSession) ChangeOwner0

func (_TweetVote *TweetVoteSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetVoteSession) ExchangeBalance

func (_TweetVote *TweetVoteSession) ExchangeBalance() (*big.Int, error)

ExchangeBalance is a free data retrieval call binding the contract method 0x05babda6.

Solidity: function exchangeBalance() view returns(uint256)

func (*TweetVoteSession) GetOwner

func (_TweetVote *TweetVoteSession) GetOwner() (common.Address, error)

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

Solidity: function getOwner() view returns(address)

func (*TweetVoteSession) KolIncomePerTweetVoteRate

func (_TweetVote *TweetVoteSession) KolIncomePerTweetVoteRate() (uint8, error)

KolIncomePerTweetVoteRate is a free data retrieval call binding the contract method 0x7b3e47d1.

Solidity: function kolIncomePerTweetVoteRate() view returns(uint8)

func (*TweetVoteSession) MaxVotePerTweet

func (_TweetVote *TweetVoteSession) MaxVotePerTweet() (*big.Int, error)

MaxVotePerTweet is a free data retrieval call binding the contract method 0xdc8c071c.

Solidity: function maxVotePerTweet() view returns(uint256)

func (*TweetVoteSession) MinValCheck

func (_TweetVote *TweetVoteSession) MinValCheck() (*big.Int, error)

MinValCheck is a free data retrieval call binding the contract method 0x8509614b.

Solidity: function __minValCheck() view returns(uint256)

func (*TweetVoteSession) OneFinney

func (_TweetVote *TweetVoteSession) OneFinney() (*big.Int, error)

OneFinney is a free data retrieval call binding the contract method 0x080da5dc.

Solidity: function oneFinney() view returns(uint256)

func (*TweetVoteSession) OwnersOfAllTweets

func (_TweetVote *TweetVoteSession) OwnersOfAllTweets(arg0 [32]byte) (common.Address, error)

OwnersOfAllTweets is a free data retrieval call binding the contract method 0x60b7a81b.

Solidity: function ownersOfAllTweets(bytes32 ) view returns(address)

func (*TweetVoteSession) PluginAddress

func (_TweetVote *TweetVoteSession) PluginAddress() (common.Address, error)

PluginAddress is a free data retrieval call binding the contract method 0x67795783.

Solidity: function pluginAddress() view returns(address)

func (*TweetVoteSession) PluginStop

func (_TweetVote *TweetVoteSession) PluginStop() (bool, error)

PluginStop is a free data retrieval call binding the contract method 0x7d9a38cd.

Solidity: function pluginStop() view returns(bool)

func (*TweetVoteSession) PublishTweet

func (_TweetVote *TweetVoteSession) PublishTweet(hash [32]byte, signature []byte) (*types.Transaction, error)

PublishTweet is a paid mutator transaction binding the contract method 0x4bf8d46f.

Solidity: function publishTweet(bytes32 hash, bytes signature) payable returns()

func (*TweetVoteSession) Receive

func (_TweetVote *TweetVoteSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetVoteSession) RecoverSigner

func (_TweetVote *TweetVoteSession) RecoverSigner(prefixedHash [32]byte, signature []byte) (common.Address, error)

RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.

Solidity: function recoverSigner(bytes32 prefixedHash, bytes signature) pure returns(address)

func (*TweetVoteSession) ServiceFeePerTweetVoteRate

func (_TweetVote *TweetVoteSession) ServiceFeePerTweetVoteRate() (uint8, error)

ServiceFeePerTweetVoteRate is a free data retrieval call binding the contract method 0x1028672f.

Solidity: function serviceFeePerTweetVoteRate() view returns(uint8)

func (*TweetVoteSession) ServiceFeeReceived

func (_TweetVote *TweetVoteSession) ServiceFeeReceived() (*big.Int, error)

ServiceFeeReceived is a free data retrieval call binding the contract method 0xbe4479e8.

Solidity: function serviceFeeReceived() view returns(uint256)

func (*TweetVoteSession) SystemSettings

func (_TweetVote *TweetVoteSession) SystemSettings() (*big.Int, *big.Int, *big.Int, common.Address, bool, uint8, uint8, error)

SystemSettings is a free data retrieval call binding the contract method 0x60b42f12.

Solidity: function systemSettings() view returns(uint256, uint256, uint256, address, bool, uint8, uint8)

func (*TweetVoteSession) TweetPostPrice

func (_TweetVote *TweetVoteSession) TweetPostPrice() (*big.Int, error)

TweetPostPrice is a free data retrieval call binding the contract method 0x04cea976.

Solidity: function tweetPostPrice() view returns(uint256)

func (*TweetVoteSession) TweetVotePrice

func (_TweetVote *TweetVoteSession) TweetVotePrice() (*big.Int, error)

TweetVotePrice is a free data retrieval call binding the contract method 0x33806cfe.

Solidity: function tweetVotePrice() view returns(uint256)

func (*TweetVoteSession) VoteToTweets

func (_TweetVote *TweetVoteSession) VoteToTweets(tweetHash [32]byte, voteNo *big.Int) (*types.Transaction, error)

VoteToTweets is a paid mutator transaction binding the contract method 0x4e7da0e8.

Solidity: function voteToTweets(bytes32 tweetHash, uint256 voteNo) payable returns()

func (*TweetVoteSession) Withdraw

func (_TweetVote *TweetVoteSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

func (*TweetVoteSession) WithdrawFeeRate

func (_TweetVote *TweetVoteSession) WithdrawFeeRate() (*big.Int, error)

WithdrawFeeRate is a free data retrieval call binding the contract method 0xea99e689.

Solidity: function withdrawFeeRate() view returns(uint256)

type TweetVoteSystemRateChanged

type TweetVoteSystemRateChanged struct {
	PricePost *big.Int
	RateName  string
	Raw       types.Log // Blockchain specific contextual infos
}

TweetVoteSystemRateChanged represents a SystemRateChanged event raised by the TweetVote contract.

type TweetVoteSystemRateChangedIterator

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

TweetVoteSystemRateChangedIterator is returned from FilterSystemRateChanged and is used to iterate over the raw logs and unpacked data for SystemRateChanged events raised by the TweetVote contract.

func (*TweetVoteSystemRateChangedIterator) Close

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

func (*TweetVoteSystemRateChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTweetVoteTransactor

func NewTweetVoteTransactor(address common.Address, transactor bind.ContractTransactor) (*TweetVoteTransactor, error)

NewTweetVoteTransactor creates a new write-only instance of TweetVote, bound to a specific deployed contract.

func (*TweetVoteTransactor) AdminOperation

func (_TweetVote *TweetVoteTransactor) AdminOperation(opts *bind.TransactOpts, admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetVoteTransactor) AdminServiceFeeWithdraw

func (_TweetVote *TweetVoteTransactor) AdminServiceFeeWithdraw(opts *bind.TransactOpts) (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetVoteTransactor) AdminSetKolIncomePerTweetRate

func (_TweetVote *TweetVoteTransactor) AdminSetKolIncomePerTweetRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetKolIncomePerTweetRate is a paid mutator transaction binding the contract method 0xa1cd090a.

Solidity: function adminSetKolIncomePerTweetRate(uint8 newRate) returns()

func (*TweetVoteTransactor) AdminSetMaxVotePerTweet

func (_TweetVote *TweetVoteTransactor) AdminSetMaxVotePerTweet(opts *bind.TransactOpts, newMaxVote *big.Int) (*types.Transaction, error)

AdminSetMaxVotePerTweet is a paid mutator transaction binding the contract method 0x489e2590.

Solidity: function adminSetMaxVotePerTweet(uint256 newMaxVote) returns()

func (*TweetVoteTransactor) AdminSetPluginAddr

func (_TweetVote *TweetVoteTransactor) AdminSetPluginAddr(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)

AdminSetPluginAddr is a paid mutator transaction binding the contract method 0xcaa27f5b.

Solidity: function adminSetPluginAddr(address addr) returns()

func (*TweetVoteTransactor) AdminSetServiceFeeRateForPerTweetVote

func (_TweetVote *TweetVoteTransactor) AdminSetServiceFeeRateForPerTweetVote(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForPerTweetVote is a paid mutator transaction binding the contract method 0xcef8e395.

Solidity: function adminSetServiceFeeRateForPerTweetVote(uint8 newRate) returns()

func (*TweetVoteTransactor) AdminSetTweetPostPrice

func (_TweetVote *TweetVoteTransactor) AdminSetTweetPostPrice(opts *bind.TransactOpts, newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetPostPrice is a paid mutator transaction binding the contract method 0xf7d58241.

Solidity: function adminSetTweetPostPrice(uint256 newPriceInFinney) returns()

func (*TweetVoteTransactor) AdminSetTweetVotePrice

func (_TweetVote *TweetVoteTransactor) AdminSetTweetVotePrice(opts *bind.TransactOpts, newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetVotePrice is a paid mutator transaction binding the contract method 0x1a25d1c0.

Solidity: function adminSetTweetVotePrice(uint256 newPriceInFinney) returns()

func (*TweetVoteTransactor) AdminSetWithdrawFeeRate

func (_TweetVote *TweetVoteTransactor) AdminSetWithdrawFeeRate(opts *bind.TransactOpts, newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetVoteTransactor) AdminStopPlugin

func (_TweetVote *TweetVoteTransactor) AdminStopPlugin(opts *bind.TransactOpts, stop bool) (*types.Transaction, error)

AdminStopPlugin is a paid mutator transaction binding the contract method 0x24a5834e.

Solidity: function adminStopPlugin(bool stop) returns()

func (*TweetVoteTransactor) AdminUpgradeToNewRule

func (_TweetVote *TweetVoteTransactor) AdminUpgradeToNewRule(opts *bind.TransactOpts, recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetVoteTransactor) ChangeOwner

func (_TweetVote *TweetVoteTransactor) ChangeOwner(opts *bind.TransactOpts, stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetVoteTransactor) ChangeOwner0

func (_TweetVote *TweetVoteTransactor) ChangeOwner0(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetVoteTransactor) PublishTweet

func (_TweetVote *TweetVoteTransactor) PublishTweet(opts *bind.TransactOpts, hash [32]byte, signature []byte) (*types.Transaction, error)

PublishTweet is a paid mutator transaction binding the contract method 0x4bf8d46f.

Solidity: function publishTweet(bytes32 hash, bytes signature) payable returns()

func (*TweetVoteTransactor) Receive

func (_TweetVote *TweetVoteTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetVoteTransactor) VoteToTweets

func (_TweetVote *TweetVoteTransactor) VoteToTweets(opts *bind.TransactOpts, tweetHash [32]byte, voteNo *big.Int) (*types.Transaction, error)

VoteToTweets is a paid mutator transaction binding the contract method 0x4e7da0e8.

Solidity: function voteToTweets(bytes32 tweetHash, uint256 voteNo) payable returns()

func (*TweetVoteTransactor) Withdraw

func (_TweetVote *TweetVoteTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

type TweetVoteTransactorRaw

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

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

func (*TweetVoteTransactorRaw) Transact

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

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

func (*TweetVoteTransactorRaw) Transfer

func (_TweetVote *TweetVoteTransactorRaw) 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 TweetVoteTransactorSession

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

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

func (*TweetVoteTransactorSession) AdminOperation

func (_TweetVote *TweetVoteTransactorSession) AdminOperation(admin common.Address, isDelete bool) (*types.Transaction, error)

AdminOperation is a paid mutator transaction binding the contract method 0x2b508fde.

Solidity: function adminOperation(address admin, bool isDelete) returns()

func (*TweetVoteTransactorSession) AdminServiceFeeWithdraw

func (_TweetVote *TweetVoteTransactorSession) AdminServiceFeeWithdraw() (*types.Transaction, error)

AdminServiceFeeWithdraw is a paid mutator transaction binding the contract method 0x615f54a1.

Solidity: function adminServiceFeeWithdraw() returns()

func (*TweetVoteTransactorSession) AdminSetKolIncomePerTweetRate

func (_TweetVote *TweetVoteTransactorSession) AdminSetKolIncomePerTweetRate(newRate uint8) (*types.Transaction, error)

AdminSetKolIncomePerTweetRate is a paid mutator transaction binding the contract method 0xa1cd090a.

Solidity: function adminSetKolIncomePerTweetRate(uint8 newRate) returns()

func (*TweetVoteTransactorSession) AdminSetMaxVotePerTweet

func (_TweetVote *TweetVoteTransactorSession) AdminSetMaxVotePerTweet(newMaxVote *big.Int) (*types.Transaction, error)

AdminSetMaxVotePerTweet is a paid mutator transaction binding the contract method 0x489e2590.

Solidity: function adminSetMaxVotePerTweet(uint256 newMaxVote) returns()

func (*TweetVoteTransactorSession) AdminSetPluginAddr

func (_TweetVote *TweetVoteTransactorSession) AdminSetPluginAddr(addr common.Address) (*types.Transaction, error)

AdminSetPluginAddr is a paid mutator transaction binding the contract method 0xcaa27f5b.

Solidity: function adminSetPluginAddr(address addr) returns()

func (*TweetVoteTransactorSession) AdminSetServiceFeeRateForPerTweetVote

func (_TweetVote *TweetVoteTransactorSession) AdminSetServiceFeeRateForPerTweetVote(newRate uint8) (*types.Transaction, error)

AdminSetServiceFeeRateForPerTweetVote is a paid mutator transaction binding the contract method 0xcef8e395.

Solidity: function adminSetServiceFeeRateForPerTweetVote(uint8 newRate) returns()

func (*TweetVoteTransactorSession) AdminSetTweetPostPrice

func (_TweetVote *TweetVoteTransactorSession) AdminSetTweetPostPrice(newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetPostPrice is a paid mutator transaction binding the contract method 0xf7d58241.

Solidity: function adminSetTweetPostPrice(uint256 newPriceInFinney) returns()

func (*TweetVoteTransactorSession) AdminSetTweetVotePrice

func (_TweetVote *TweetVoteTransactorSession) AdminSetTweetVotePrice(newPriceInFinney *big.Int) (*types.Transaction, error)

AdminSetTweetVotePrice is a paid mutator transaction binding the contract method 0x1a25d1c0.

Solidity: function adminSetTweetVotePrice(uint256 newPriceInFinney) returns()

func (*TweetVoteTransactorSession) AdminSetWithdrawFeeRate

func (_TweetVote *TweetVoteTransactorSession) AdminSetWithdrawFeeRate(newRate uint8) (*types.Transaction, error)

AdminSetWithdrawFeeRate is a paid mutator transaction binding the contract method 0x94c681d6.

Solidity: function adminSetWithdrawFeeRate(uint8 newRate) returns()

func (*TweetVoteTransactorSession) AdminStopPlugin

func (_TweetVote *TweetVoteTransactorSession) AdminStopPlugin(stop bool) (*types.Transaction, error)

AdminStopPlugin is a paid mutator transaction binding the contract method 0x24a5834e.

Solidity: function adminStopPlugin(bool stop) returns()

func (*TweetVoteTransactorSession) AdminUpgradeToNewRule

func (_TweetVote *TweetVoteTransactorSession) AdminUpgradeToNewRule(recipient common.Address) (*types.Transaction, error)

AdminUpgradeToNewRule is a paid mutator transaction binding the contract method 0xc75539d1.

Solidity: function adminUpgradeToNewRule(address recipient) returns()

func (*TweetVoteTransactorSession) ChangeOwner

func (_TweetVote *TweetVoteTransactorSession) ChangeOwner(stop bool) (*types.Transaction, error)

ChangeOwner is a paid mutator transaction binding the contract method 0x64d13339.

Solidity: function changeOwner(bool stop) returns()

func (*TweetVoteTransactorSession) ChangeOwner0

func (_TweetVote *TweetVoteTransactorSession) ChangeOwner0(newOwner common.Address) (*types.Transaction, error)

ChangeOwner0 is a paid mutator transaction binding the contract method 0xa6f9dae1.

Solidity: function changeOwner(address newOwner) returns()

func (*TweetVoteTransactorSession) PublishTweet

func (_TweetVote *TweetVoteTransactorSession) PublishTweet(hash [32]byte, signature []byte) (*types.Transaction, error)

PublishTweet is a paid mutator transaction binding the contract method 0x4bf8d46f.

Solidity: function publishTweet(bytes32 hash, bytes signature) payable returns()

func (*TweetVoteTransactorSession) Receive

func (_TweetVote *TweetVoteTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TweetVoteTransactorSession) VoteToTweets

func (_TweetVote *TweetVoteTransactorSession) VoteToTweets(tweetHash [32]byte, voteNo *big.Int) (*types.Transaction, error)

VoteToTweets is a paid mutator transaction binding the contract method 0x4e7da0e8.

Solidity: function voteToTweets(bytes32 tweetHash, uint256 voteNo) payable returns()

func (*TweetVoteTransactorSession) Withdraw

func (_TweetVote *TweetVoteTransactorSession) Withdraw(amount *big.Int, all bool) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x38d07436.

Solidity: function withdraw(uint256 amount, bool all) returns()

type TweetVoteTweetPublished

type TweetVoteTweetPublished struct {
	From      common.Address
	TweetHash [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

TweetVoteTweetPublished represents a TweetPublished event raised by the TweetVote contract.

type TweetVoteTweetPublishedIterator

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

TweetVoteTweetPublishedIterator is returned from FilterTweetPublished and is used to iterate over the raw logs and unpacked data for TweetPublished events raised by the TweetVote contract.

func (*TweetVoteTweetPublishedIterator) Close

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

func (*TweetVoteTweetPublishedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetVoteTweetVoted struct {
	TweetHash    [32]byte
	Voter        common.Address
	PricePerVote *big.Int
	VoteNo       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

TweetVoteTweetVoted represents a TweetVoted event raised by the TweetVote contract.

type TweetVoteTweetVotedIterator

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

TweetVoteTweetVotedIterator is returned from FilterTweetVoted and is used to iterate over the raw logs and unpacked data for TweetVoted events raised by the TweetVote contract.

func (*TweetVoteTweetVotedIterator) Close

func (it *TweetVoteTweetVotedIterator) Close() error

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

func (*TweetVoteTweetVotedIterator) Error

func (it *TweetVoteTweetVotedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TweetVoteTweetVotedIterator) Next

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

type TweetVoteUpgradeToNewRule struct {
	NewContract common.Address
	Balance     *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

TweetVoteUpgradeToNewRule represents a UpgradeToNewRule event raised by the TweetVote contract.

type TweetVoteUpgradeToNewRuleIterator

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

TweetVoteUpgradeToNewRuleIterator is returned from FilterUpgradeToNewRule and is used to iterate over the raw logs and unpacked data for UpgradeToNewRule events raised by the TweetVote contract.

func (*TweetVoteUpgradeToNewRuleIterator) Close

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

func (*TweetVoteUpgradeToNewRuleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TweetVoteWithdrawService struct {
	Owner   common.Address
	Balance *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TweetVoteWithdrawService represents a WithdrawService event raised by the TweetVote contract.

type TweetVoteWithdrawServiceIterator

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

TweetVoteWithdrawServiceIterator is returned from FilterWithdrawService and is used to iterate over the raw logs and unpacked data for WithdrawService events raised by the TweetVote contract.

func (*TweetVoteWithdrawServiceIterator) Close

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

func (*TweetVoteWithdrawServiceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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