Documentation ¶
Index ¶
- Variables
- type Posts
- type PostsCaller
- type PostsCallerRaw
- type PostsCallerSession
- type PostsFilterer
- func (_Posts *PostsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*PostsOwnershipTransferredIterator, error)
- func (_Posts *PostsFilterer) ParseOwnershipTransferred(log types.Log) (*PostsOwnershipTransferred, error)
- func (_Posts *PostsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PostsOwnershipTransferred, ...) (event.Subscription, error)
- type PostsOwnershipTransferred
- type PostsOwnershipTransferredIterator
- type PostsRaw
- func (_Posts *PostsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Posts *PostsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Posts *PostsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PostsSession
- func (_Posts *PostsSession) CreatePost(_userID int64, _postHash [32]byte) (*types.Transaction, error)
- func (_Posts *PostsSession) GetPosts(_userID int64) ([][32]byte, error)
- func (_Posts *PostsSession) Owner() (common.Address, error)
- func (_Posts *PostsSession) Posts(arg0 int64, arg1 *big.Int) ([32]byte, error)
- func (_Posts *PostsSession) RenounceOwnership() (*types.Transaction, error)
- func (_Posts *PostsSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type PostsTransactor
- func (_Posts *PostsTransactor) CreatePost(opts *bind.TransactOpts, _userID int64, _postHash [32]byte) (*types.Transaction, error)
- func (_Posts *PostsTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Posts *PostsTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- type PostsTransactorRaw
- type PostsTransactorSession
- func (_Posts *PostsTransactorSession) CreatePost(_userID int64, _postHash [32]byte) (*types.Transaction, error)
- func (_Posts *PostsTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Posts *PostsTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var PostsABI = PostsMetaData.ABI
PostsABI is the input ABI used to generate the binding from. Deprecated: Use PostsMetaData.ABI instead.
var PostsMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"initialOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"createPost\",\"inputs\":[{\"name\":\"_userID\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"_postHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getPosts\",\"inputs\":[{\"name\":\"_userID\",\"type\":\"int64\",\"internalType\":\"int64\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"posts\",\"inputs\":[{\"name\":\"\",\"type\":\"int64\",\"internalType\":\"int64\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
}
PostsMetaData contains all meta data concerning the Posts contract.
Functions ¶
This section is empty.
Types ¶
type Posts ¶
type Posts struct { PostsCaller // Read-only binding to the contract PostsTransactor // Write-only binding to the contract PostsFilterer // Log filterer for contract events }
Posts is an auto generated Go binding around an Ethereum contract.
type PostsCaller ¶
type PostsCaller struct {
// contains filtered or unexported fields
}
PostsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPostsCaller ¶
func NewPostsCaller(address common.Address, caller bind.ContractCaller) (*PostsCaller, error)
NewPostsCaller creates a new read-only instance of Posts, bound to a specific deployed contract.
func (*PostsCaller) GetPosts ¶
GetPosts is a free data retrieval call binding the contract method 0x9150bb55.
Solidity: function getPosts(int64 _userID) view returns(bytes32[])
type PostsCallerRaw ¶
type PostsCallerRaw struct {
Contract *PostsCaller // Generic read-only contract binding to access the raw methods on
}
PostsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PostsCallerRaw) Call ¶
func (_Posts *PostsCallerRaw) 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 PostsCallerSession ¶
type PostsCallerSession struct { Contract *PostsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PostsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PostsCallerSession) GetPosts ¶
func (_Posts *PostsCallerSession) GetPosts(_userID int64) ([][32]byte, error)
GetPosts is a free data retrieval call binding the contract method 0x9150bb55.
Solidity: function getPosts(int64 _userID) view returns(bytes32[])
type PostsFilterer ¶
type PostsFilterer struct {
// contains filtered or unexported fields
}
PostsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPostsFilterer ¶
func NewPostsFilterer(address common.Address, filterer bind.ContractFilterer) (*PostsFilterer, error)
NewPostsFilterer creates a new log filterer instance of Posts, bound to a specific deployed contract.
func (*PostsFilterer) FilterOwnershipTransferred ¶
func (_Posts *PostsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PostsOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PostsFilterer) ParseOwnershipTransferred ¶
func (_Posts *PostsFilterer) ParseOwnershipTransferred(log types.Log) (*PostsOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*PostsFilterer) WatchOwnershipTransferred ¶
func (_Posts *PostsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PostsOwnershipTransferred, 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 PostsOwnershipTransferred ¶
type PostsOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
PostsOwnershipTransferred represents a OwnershipTransferred event raised by the Posts contract.
type PostsOwnershipTransferredIterator ¶
type PostsOwnershipTransferredIterator struct { Event *PostsOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PostsOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Posts contract.
func (*PostsOwnershipTransferredIterator) Close ¶
func (it *PostsOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PostsOwnershipTransferredIterator) Error ¶
func (it *PostsOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PostsOwnershipTransferredIterator) Next ¶
func (it *PostsOwnershipTransferredIterator) 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 PostsRaw ¶
type PostsRaw struct {
Contract *Posts // Generic contract binding to access the raw methods on
}
PostsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PostsRaw) Call ¶
func (_Posts *PostsRaw) 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 (*PostsRaw) Transact ¶
func (_Posts *PostsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PostsRaw) Transfer ¶
func (_Posts *PostsRaw) 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 PostsSession ¶
type PostsSession struct { Contract *Posts // 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 }
PostsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PostsSession) CreatePost ¶
func (_Posts *PostsSession) CreatePost(_userID int64, _postHash [32]byte) (*types.Transaction, error)
CreatePost is a paid mutator transaction binding the contract method 0x8f4fea57.
Solidity: function createPost(int64 _userID, bytes32 _postHash) returns()
func (*PostsSession) GetPosts ¶
func (_Posts *PostsSession) GetPosts(_userID int64) ([][32]byte, error)
GetPosts is a free data retrieval call binding the contract method 0x9150bb55.
Solidity: function getPosts(int64 _userID) view returns(bytes32[])
func (*PostsSession) Owner ¶
func (_Posts *PostsSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*PostsSession) Posts ¶
Posts is a free data retrieval call binding the contract method 0x5b4421da.
Solidity: function posts(int64 , uint256 ) view returns(bytes32)
func (*PostsSession) RenounceOwnership ¶
func (_Posts *PostsSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PostsSession) TransferOwnership ¶
func (_Posts *PostsSession) 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 PostsTransactor ¶
type PostsTransactor struct {
// contains filtered or unexported fields
}
PostsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPostsTransactor ¶
func NewPostsTransactor(address common.Address, transactor bind.ContractTransactor) (*PostsTransactor, error)
NewPostsTransactor creates a new write-only instance of Posts, bound to a specific deployed contract.
func (*PostsTransactor) CreatePost ¶
func (_Posts *PostsTransactor) CreatePost(opts *bind.TransactOpts, _userID int64, _postHash [32]byte) (*types.Transaction, error)
CreatePost is a paid mutator transaction binding the contract method 0x8f4fea57.
Solidity: function createPost(int64 _userID, bytes32 _postHash) returns()
func (*PostsTransactor) RenounceOwnership ¶
func (_Posts *PostsTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PostsTransactor) TransferOwnership ¶
func (_Posts *PostsTransactor) 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 PostsTransactorRaw ¶
type PostsTransactorRaw struct {
Contract *PostsTransactor // Generic write-only contract binding to access the raw methods on
}
PostsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PostsTransactorRaw) Transact ¶
func (_Posts *PostsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PostsTransactorRaw) Transfer ¶
func (_Posts *PostsTransactorRaw) 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 PostsTransactorSession ¶
type PostsTransactorSession struct { Contract *PostsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PostsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PostsTransactorSession) CreatePost ¶
func (_Posts *PostsTransactorSession) CreatePost(_userID int64, _postHash [32]byte) (*types.Transaction, error)
CreatePost is a paid mutator transaction binding the contract method 0x8f4fea57.
Solidity: function createPost(int64 _userID, bytes32 _postHash) returns()
func (*PostsTransactorSession) RenounceOwnership ¶
func (_Posts *PostsTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*PostsTransactorSession) TransferOwnership ¶
func (_Posts *PostsTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()