contract

package
v1.5.0-develop Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContractABI = "" /* 3185-byte string literal not displayed */

ContractABI is the input ABI used to generate the binding from.

Variables

View Source
var ContractBin = "" /* 13494-byte string literal not displayed */

ContractBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type BidBiderList

type BidBiderList struct {
	Bider  common.Address
	Amount *big.Int
	Time   *big.Int
}

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

type Contract

type Contract struct {
	ContractCaller     // Read-only binding to the contract
	ContractTransactor // Write-only binding to the contract
	ContractFilterer   // Log filterer for contract events
}

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

func DeployContract

func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Contract, error)

DeployContract deploys a new Ethereum contract, binding an instance of Contract to it.

func NewContract

func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)

NewContract creates a new instance of Contract, bound to a specific deployed contract.

type ContractBidRecord

type ContractBidRecord struct {
	Account common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ContractBidRecord represents a BidRecord event raised by the Contract contract.

type ContractBidRecordIterator

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

ContractBidRecordIterator is returned from FilterBidRecord and is used to iterate over the raw logs and unpacked data for BidRecord events raised by the Contract contract.

func (*ContractBidRecordIterator) Close

func (it *ContractBidRecordIterator) Close() error

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

func (*ContractBidRecordIterator) Error

func (it *ContractBidRecordIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractBidRecordIterator) Next

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

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

ContractBidStart represents a BidStart event raised by the Contract contract.

type ContractBidStartIterator

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

ContractBidStartIterator is returned from FilterBidStart and is used to iterate over the raw logs and unpacked data for BidStart events raised by the Contract contract.

func (*ContractBidStartIterator) Close

func (it *ContractBidStartIterator) Close() error

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

func (*ContractBidStartIterator) Error

func (it *ContractBidStartIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractBidStartIterator) Next

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

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

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

func NewContractCaller

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

NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.

func (*ContractCaller) BidderList

func (_Contract *ContractCaller) BidderList(opts *bind.CallOpts) ([]BidBiderList, *big.Int, *big.Int, error)

BidderList is a free data retrieval call binding the contract method 0x704416b4.

Solidity: function bidderList() view returns((address,uint256,uint256)[], uint256, uint256)

func (*ContractCaller) IsTATBider

func (_Contract *ContractCaller) IsTATBider(opts *bind.CallOpts, account common.Address) (bool, error)

IsTATBider is a free data retrieval call binding the contract method 0xbd2ea1f3.

Solidity: function isTATBider(address account) view returns(bool)

func (*ContractCaller) MybidAmount

func (_Contract *ContractCaller) MybidAmount(opts *bind.CallOpts) (*big.Int, error)

MybidAmount is a free data retrieval call binding the contract method 0x2c63b824.

Solidity: function mybidAmount() view returns(uint256)

func (*ContractCaller) Owner

func (_Contract *ContractCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ContractCaller) RoundTime

func (_Contract *ContractCaller) RoundTime(opts *bind.CallOpts) (*big.Int, error)

RoundTime is a free data retrieval call binding the contract method 0xee5f8c8f.

Solidity: function roundTime() view returns(uint256)

func (*ContractCaller) TATBiders

func (_Contract *ContractCaller) TATBiders(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

TATBiders is a free data retrieval call binding the contract method 0x4b954a1d.

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

type ContractCallerRaw

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

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

func (*ContractCallerRaw) Call

func (_Contract *ContractCallerRaw) 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 ContractCallerSession

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

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

func (*ContractCallerSession) BidderList

func (_Contract *ContractCallerSession) BidderList() ([]BidBiderList, *big.Int, *big.Int, error)

BidderList is a free data retrieval call binding the contract method 0x704416b4.

Solidity: function bidderList() view returns((address,uint256,uint256)[], uint256, uint256)

func (*ContractCallerSession) IsTATBider

func (_Contract *ContractCallerSession) IsTATBider(account common.Address) (bool, error)

IsTATBider is a free data retrieval call binding the contract method 0xbd2ea1f3.

Solidity: function isTATBider(address account) view returns(bool)

func (*ContractCallerSession) MybidAmount

func (_Contract *ContractCallerSession) MybidAmount() (*big.Int, error)

MybidAmount is a free data retrieval call binding the contract method 0x2c63b824.

Solidity: function mybidAmount() view returns(uint256)

func (*ContractCallerSession) Owner

func (_Contract *ContractCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ContractCallerSession) RoundTime

func (_Contract *ContractCallerSession) RoundTime() (*big.Int, error)

RoundTime is a free data retrieval call binding the contract method 0xee5f8c8f.

Solidity: function roundTime() view returns(uint256)

func (*ContractCallerSession) TATBiders

func (_Contract *ContractCallerSession) TATBiders(arg0 *big.Int) (common.Address, error)

TATBiders is a free data retrieval call binding the contract method 0x4b954a1d.

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

type ContractFilterer

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

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

func NewContractFilterer

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

NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.

func (*ContractFilterer) FilterBidRecord

func (_Contract *ContractFilterer) FilterBidRecord(opts *bind.FilterOpts) (*ContractBidRecordIterator, error)

FilterBidRecord is a free log retrieval operation binding the contract event 0x76de802f12cc4b4f411dd2288c3a054af917c4c026a01f3130ae5d3c9d0c59ba.

Solidity: event BidRecord(address account, uint256 amount)

func (*ContractFilterer) FilterBidStart

func (_Contract *ContractFilterer) FilterBidStart(opts *bind.FilterOpts) (*ContractBidStartIterator, error)

FilterBidStart is a free log retrieval operation binding the contract event 0x51fe6b55de8012ece012a5079ce14024411f6fa0692b05a177b94591c6ba3df0.

Solidity: event BidStart(uint256 height)

func (*ContractFilterer) FilterInitialized

func (_Contract *ContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*ContractInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ContractFilterer) FilterOwnershipTransferred

func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error)

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

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

func (*ContractFilterer) ParseBidRecord

func (_Contract *ContractFilterer) ParseBidRecord(log types.Log) (*ContractBidRecord, error)

ParseBidRecord is a log parse operation binding the contract event 0x76de802f12cc4b4f411dd2288c3a054af917c4c026a01f3130ae5d3c9d0c59ba.

Solidity: event BidRecord(address account, uint256 amount)

func (*ContractFilterer) ParseBidStart

func (_Contract *ContractFilterer) ParseBidStart(log types.Log) (*ContractBidStart, error)

ParseBidStart is a log parse operation binding the contract event 0x51fe6b55de8012ece012a5079ce14024411f6fa0692b05a177b94591c6ba3df0.

Solidity: event BidStart(uint256 height)

func (*ContractFilterer) ParseInitialized

func (_Contract *ContractFilterer) ParseInitialized(log types.Log) (*ContractInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ContractFilterer) ParseOwnershipTransferred

func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error)

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

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

func (*ContractFilterer) WatchBidRecord

func (_Contract *ContractFilterer) WatchBidRecord(opts *bind.WatchOpts, sink chan<- *ContractBidRecord) (event.Subscription, error)

WatchBidRecord is a free log subscription operation binding the contract event 0x76de802f12cc4b4f411dd2288c3a054af917c4c026a01f3130ae5d3c9d0c59ba.

Solidity: event BidRecord(address account, uint256 amount)

func (*ContractFilterer) WatchBidStart

func (_Contract *ContractFilterer) WatchBidStart(opts *bind.WatchOpts, sink chan<- *ContractBidStart) (event.Subscription, error)

WatchBidStart is a free log subscription operation binding the contract event 0x51fe6b55de8012ece012a5079ce14024411f6fa0692b05a177b94591c6ba3df0.

Solidity: event BidStart(uint256 height)

func (*ContractFilterer) WatchInitialized

func (_Contract *ContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ContractInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ContractFilterer) WatchOwnershipTransferred

func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

type ContractInitialized

type ContractInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

ContractInitialized represents a Initialized event raised by the Contract contract.

type ContractInitializedIterator

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

ContractInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Contract contract.

func (*ContractInitializedIterator) Close

func (it *ContractInitializedIterator) Close() error

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

func (*ContractInitializedIterator) Error

func (it *ContractInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractInitializedIterator) Next

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

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

ContractOwnershipTransferred represents a OwnershipTransferred event raised by the Contract contract.

type ContractOwnershipTransferredIterator

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

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

func (*ContractOwnershipTransferredIterator) Close

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

func (*ContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*ContractRaw) Call

func (_Contract *ContractRaw) 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 (*ContractRaw) Transact

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

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

func (*ContractRaw) Transfer

func (_Contract *ContractRaw) 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 ContractSession

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

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

func (*ContractSession) BidTAT

func (_Contract *ContractSession) BidTAT(amount *big.Int) (*types.Transaction, error)

BidTAT is a paid mutator transaction binding the contract method 0x2b231df3.

Solidity: function bidTAT(uint256 amount) returns(bool)

func (*ContractSession) BidderList

func (_Contract *ContractSession) BidderList() ([]BidBiderList, *big.Int, *big.Int, error)

BidderList is a free data retrieval call binding the contract method 0x704416b4.

Solidity: function bidderList() view returns((address,uint256,uint256)[], uint256, uint256)

func (*ContractSession) Initialize

func (_Contract *ContractSession) Initialize(_tatAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _tatAddress) returns()

func (*ContractSession) IsTATBider

func (_Contract *ContractSession) IsTATBider(account common.Address) (bool, error)

IsTATBider is a free data retrieval call binding the contract method 0xbd2ea1f3.

Solidity: function isTATBider(address account) view returns(bool)

func (*ContractSession) MybidAmount

func (_Contract *ContractSession) MybidAmount() (*big.Int, error)

MybidAmount is a free data retrieval call binding the contract method 0x2c63b824.

Solidity: function mybidAmount() view returns(uint256)

func (*ContractSession) Owner

func (_Contract *ContractSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*ContractSession) Receive

func (_Contract *ContractSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ContractSession) RenounceOwnership

func (_Contract *ContractSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ContractSession) RoundTime

func (_Contract *ContractSession) RoundTime() (*big.Int, error)

RoundTime is a free data retrieval call binding the contract method 0xee5f8c8f.

Solidity: function roundTime() view returns(uint256)

func (*ContractSession) TATBiders

func (_Contract *ContractSession) TATBiders(arg0 *big.Int) (common.Address, error)

TATBiders is a free data retrieval call binding the contract method 0x4b954a1d.

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

func (*ContractSession) TransferOwnership

func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type ContractTransactor

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

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

func NewContractTransactor

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

NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.

func (*ContractTransactor) BidTAT

func (_Contract *ContractTransactor) BidTAT(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

BidTAT is a paid mutator transaction binding the contract method 0x2b231df3.

Solidity: function bidTAT(uint256 amount) returns(bool)

func (*ContractTransactor) Initialize

func (_Contract *ContractTransactor) Initialize(opts *bind.TransactOpts, _tatAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _tatAddress) returns()

func (*ContractTransactor) Receive

func (_Contract *ContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ContractTransactor) RenounceOwnership

func (_Contract *ContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ContractTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

type ContractTransactorRaw

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

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

func (*ContractTransactorRaw) Transact

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

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

func (*ContractTransactorRaw) Transfer

func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession

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

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

func (*ContractTransactorSession) BidTAT

func (_Contract *ContractTransactorSession) BidTAT(amount *big.Int) (*types.Transaction, error)

BidTAT is a paid mutator transaction binding the contract method 0x2b231df3.

Solidity: function bidTAT(uint256 amount) returns(bool)

func (*ContractTransactorSession) Initialize

func (_Contract *ContractTransactorSession) Initialize(_tatAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _tatAddress) returns()

func (*ContractTransactorSession) Receive

func (_Contract *ContractTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*ContractTransactorSession) RenounceOwnership

func (_Contract *ContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*ContractTransactorSession) TransferOwnership

func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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