Documentation ¶
Index ¶
- Variables
- type Cert
- type CertCaller
- type CertCallerRaw
- type CertCallerSession
- type CertFilterer
- func (_Cert *CertFilterer) FilterIssued(opts *bind.FilterOpts, course []string) (*CertIssuedIterator, error)
- func (_Cert *CertFilterer) ParseIssued(log types.Log) (*CertIssued, error)
- func (_Cert *CertFilterer) WatchIssued(opts *bind.WatchOpts, sink chan<- *CertIssued, course []string) (event.Subscription, error)
- type CertIssued
- type CertIssuedIterator
- type CertRaw
- func (_Cert *CertRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Cert *CertRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Cert *CertRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CertSession
- type CertTransactor
- type CertTransactorRaw
- type CertTransactorSession
Constants ¶
This section is empty.
Variables ¶
var CertABI = CertMetaData.ABI
CertABI is the input ABI used to generate the binding from. Deprecated: Use CertMetaData.ABI instead.
var CertMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\",\"signature\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"course\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"grade\",\"type\":\"string\"}],\"name\":\"Issued\",\"type\":\"event\",\"signature\":\"0xc7fc4858662996e8fe091a9941384ab745bfc51199d7c0a5e45a791ff945993c\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"Certificates\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"course\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"grade\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"date\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true,\"signature\":\"0x9622c836\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_course\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_grade\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_date\",\"type\":\"string\"}],\"name\":\"issue\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"signature\":\"0xd1e7be26\"}]",
}
CertMetaData contains all meta data concerning the Cert contract.
Functions ¶
This section is empty.
Types ¶
type Cert ¶
type Cert struct { CertCaller // Read-only binding to the contract CertTransactor // Write-only binding to the contract CertFilterer // Log filterer for contract events }
Cert is an auto generated Go binding around an Ethereum contract.
type CertCaller ¶
type CertCaller struct {
// contains filtered or unexported fields
}
CertCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCertCaller ¶
func NewCertCaller(address common.Address, caller bind.ContractCaller) (*CertCaller, error)
NewCertCaller creates a new read-only instance of Cert, bound to a specific deployed contract.
func (*CertCaller) Certificates ¶
func (_Cert *CertCaller) Certificates(opts *bind.CallOpts, arg0 *big.Int) (struct { Name string Course string Grade string Date string }, error)
Certificates is a free data retrieval call binding the contract method 0x9622c836.
Solidity: function Certificates(uint256 ) view returns(string name, string course, string grade, string date)
type CertCallerRaw ¶
type CertCallerRaw struct {
Contract *CertCaller // Generic read-only contract binding to access the raw methods on
}
CertCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CertCallerRaw) Call ¶
func (_Cert *CertCallerRaw) 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 CertCallerSession ¶
type CertCallerSession struct { Contract *CertCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CertCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CertCallerSession) Certificates ¶
func (_Cert *CertCallerSession) Certificates(arg0 *big.Int) (struct { Name string Course string Grade string Date string }, error)
Certificates is a free data retrieval call binding the contract method 0x9622c836.
Solidity: function Certificates(uint256 ) view returns(string name, string course, string grade, string date)
type CertFilterer ¶
type CertFilterer struct {
// contains filtered or unexported fields
}
CertFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCertFilterer ¶
func NewCertFilterer(address common.Address, filterer bind.ContractFilterer) (*CertFilterer, error)
NewCertFilterer creates a new log filterer instance of Cert, bound to a specific deployed contract.
func (*CertFilterer) FilterIssued ¶
func (_Cert *CertFilterer) FilterIssued(opts *bind.FilterOpts, course []string) (*CertIssuedIterator, error)
FilterIssued is a free log retrieval operation binding the contract event 0xc7fc4858662996e8fe091a9941384ab745bfc51199d7c0a5e45a791ff945993c.
Solidity: event Issued(string indexed course, uint256 id, string grade)
func (*CertFilterer) ParseIssued ¶
func (_Cert *CertFilterer) ParseIssued(log types.Log) (*CertIssued, error)
ParseIssued is a log parse operation binding the contract event 0xc7fc4858662996e8fe091a9941384ab745bfc51199d7c0a5e45a791ff945993c.
Solidity: event Issued(string indexed course, uint256 id, string grade)
func (*CertFilterer) WatchIssued ¶
func (_Cert *CertFilterer) WatchIssued(opts *bind.WatchOpts, sink chan<- *CertIssued, course []string) (event.Subscription, error)
WatchIssued is a free log subscription operation binding the contract event 0xc7fc4858662996e8fe091a9941384ab745bfc51199d7c0a5e45a791ff945993c.
Solidity: event Issued(string indexed course, uint256 id, string grade)
type CertIssued ¶
type CertIssued struct { Course common.Hash Id *big.Int Grade string Raw types.Log // Blockchain specific contextual infos }
CertIssued represents a Issued event raised by the Cert contract.
type CertIssuedIterator ¶
type CertIssuedIterator struct { Event *CertIssued // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CertIssuedIterator is returned from FilterIssued and is used to iterate over the raw logs and unpacked data for Issued events raised by the Cert contract.
func (*CertIssuedIterator) Close ¶
func (it *CertIssuedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CertIssuedIterator) Error ¶
func (it *CertIssuedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CertIssuedIterator) Next ¶
func (it *CertIssuedIterator) 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 CertRaw ¶
type CertRaw struct {
Contract *Cert // Generic contract binding to access the raw methods on
}
CertRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CertRaw) Call ¶
func (_Cert *CertRaw) 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 (*CertRaw) Transact ¶
func (_Cert *CertRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CertRaw) Transfer ¶
func (_Cert *CertRaw) 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 CertSession ¶
type CertSession struct { Contract *Cert // 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 }
CertSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CertSession) Certificates ¶
func (_Cert *CertSession) Certificates(arg0 *big.Int) (struct { Name string Course string Grade string Date string }, error)
Certificates is a free data retrieval call binding the contract method 0x9622c836.
Solidity: function Certificates(uint256 ) view returns(string name, string course, string grade, string date)
func (*CertSession) Issue ¶
func (_Cert *CertSession) Issue(_id *big.Int, _name string, _course string, _grade string, _date string) (*types.Transaction, error)
Issue is a paid mutator transaction binding the contract method 0xd1e7be26.
Solidity: function issue(uint256 _id, string _name, string _course, string _grade, string _date) returns()
type CertTransactor ¶
type CertTransactor struct {
// contains filtered or unexported fields
}
CertTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCertTransactor ¶
func NewCertTransactor(address common.Address, transactor bind.ContractTransactor) (*CertTransactor, error)
NewCertTransactor creates a new write-only instance of Cert, bound to a specific deployed contract.
func (*CertTransactor) Issue ¶
func (_Cert *CertTransactor) Issue(opts *bind.TransactOpts, _id *big.Int, _name string, _course string, _grade string, _date string) (*types.Transaction, error)
Issue is a paid mutator transaction binding the contract method 0xd1e7be26.
Solidity: function issue(uint256 _id, string _name, string _course, string _grade, string _date) returns()
type CertTransactorRaw ¶
type CertTransactorRaw struct {
Contract *CertTransactor // Generic write-only contract binding to access the raw methods on
}
CertTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CertTransactorRaw) Transact ¶
func (_Cert *CertTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CertTransactorRaw) Transfer ¶
func (_Cert *CertTransactorRaw) 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 CertTransactorSession ¶
type CertTransactorSession struct { Contract *CertTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CertTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CertTransactorSession) Issue ¶
func (_Cert *CertTransactorSession) Issue(_id *big.Int, _name string, _course string, _grade string, _date string) (*types.Transaction, error)
Issue is a paid mutator transaction binding the contract method 0xd1e7be26.
Solidity: function issue(uint256 _id, string _name, string _course, string _grade, string _date) returns()