transport

package
v0.0.0-...-8269def Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TransportABI = "" /* 5351-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Struct0

type Struct0 struct {
	FromLat [10]byte
	FromLng [11]byte
	ToLat   [10]byte
	ToLng   [11]byte
}

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

type Transport

type Transport struct {
	TransportCaller     // Read-only binding to the contract
	TransportTransactor // Write-only binding to the contract
	TransportFilterer   // Log filterer for contract events
}

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

func NewTransport

func NewTransport(address common.Address, backend bind.ContractBackend) (*Transport, error)

NewTransport creates a new instance of Transport, bound to a specific deployed contract.

type TransportCaller

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

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

func NewTransportCaller

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

NewTransportCaller creates a new read-only instance of Transport, bound to a specific deployed contract.

func (*TransportCaller) GetCarriers

func (_Transport *TransportCaller) GetCarriers(opts *bind.CallOpts) (common.Address, error)

GetCarriers is a free data retrieval call binding the contract method 0x0323d5ce.

Solidity: function getCarriers() constant returns(address)

func (*TransportCaller) TokenAddress

func (_Transport *TransportCaller) TokenAddress(opts *bind.CallOpts) (common.Address, error)

TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.

Solidity: function tokenAddress() constant returns(address)

func (*TransportCaller) Trips

func (_Transport *TransportCaller) Trips(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Addr    common.Address
	Enabled bool
	Exist   bool
}, error)

Trips is a free data retrieval call binding the contract method 0xf6824a7c.

Solidity: function trips(uint256 ) constant returns(address addr, bool enabled, bool exist)

func (*TransportCaller) TripsId

func (_Transport *TransportCaller) TripsId(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TripsId is a free data retrieval call binding the contract method 0xffbb6bbb.

Solidity: function tripsId(address ) constant returns(uint256)

func (*TransportCaller) TripsLength

func (_Transport *TransportCaller) TripsLength(opts *bind.CallOpts) (*big.Int, error)

TripsLength is a free data retrieval call binding the contract method 0x454a496d.

Solidity: function tripsLength() constant returns(uint256 length)

type TransportCallerRaw

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

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

func (*TransportCallerRaw) Call

func (_Transport *TransportCallerRaw) 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 TransportCallerSession

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

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

func (*TransportCallerSession) GetCarriers

func (_Transport *TransportCallerSession) GetCarriers() (common.Address, error)

GetCarriers is a free data retrieval call binding the contract method 0x0323d5ce.

Solidity: function getCarriers() constant returns(address)

func (*TransportCallerSession) TokenAddress

func (_Transport *TransportCallerSession) TokenAddress() (common.Address, error)

TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.

Solidity: function tokenAddress() constant returns(address)

func (*TransportCallerSession) Trips

func (_Transport *TransportCallerSession) Trips(arg0 *big.Int) (struct {
	Addr    common.Address
	Enabled bool
	Exist   bool
}, error)

Trips is a free data retrieval call binding the contract method 0xf6824a7c.

Solidity: function trips(uint256 ) constant returns(address addr, bool enabled, bool exist)

func (*TransportCallerSession) TripsId

func (_Transport *TransportCallerSession) TripsId(arg0 common.Address) (*big.Int, error)

TripsId is a free data retrieval call binding the contract method 0xffbb6bbb.

Solidity: function tripsId(address ) constant returns(uint256)

func (*TransportCallerSession) TripsLength

func (_Transport *TransportCallerSession) TripsLength() (*big.Int, error)

TripsLength is a free data retrieval call binding the contract method 0x454a496d.

Solidity: function tripsLength() constant returns(uint256 length)

type TransportCarrierUpdated

type TransportCarrierUpdated struct {
	CompanyWallet common.Address
	Company       [32]byte
	Web           [32]byte
	Index         *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

TransportCarrierUpdated represents a CarrierUpdated event raised by the Transport contract.

type TransportCarrierUpdatedIterator

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

TransportCarrierUpdatedIterator is returned from FilterCarrierUpdated and is used to iterate over the raw logs and unpacked data for CarrierUpdated events raised by the Transport contract.

func (*TransportCarrierUpdatedIterator) Close

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

func (*TransportCarrierUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewTransportFilterer

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

NewTransportFilterer creates a new log filterer instance of Transport, bound to a specific deployed contract.

func (*TransportFilterer) FilterCarrierUpdated

func (_Transport *TransportFilterer) FilterCarrierUpdated(opts *bind.FilterOpts) (*TransportCarrierUpdatedIterator, error)

FilterCarrierUpdated is a free log retrieval operation binding the contract event 0xb8a1ffc97098af18c5712ef62fd620b94caefb188f07e05ca8d268fdcfb8450e.

Solidity: event CarrierUpdated(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) FilterNewCarrier

func (_Transport *TransportFilterer) FilterNewCarrier(opts *bind.FilterOpts) (*TransportNewCarrierIterator, error)

FilterNewCarrier is a free log retrieval operation binding the contract event 0x7da3acbab78e2cfa0aac005e5b53955fce84566e521fa040c614279d2593d9a6.

Solidity: event NewCarrier(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) FilterPurchasedTickets

func (_Transport *TransportFilterer) FilterPurchasedTickets(opts *bind.FilterOpts) (*TransportPurchasedTicketsIterator, error)

FilterPurchasedTickets is a free log retrieval operation binding the contract event 0x08cdff2d5568fedc99785db826cc06fdaa0e53e1fd32271717d8dd1ee73dd500.

Solidity: event PurchasedTickets(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time)

func (*TransportFilterer) FilterRefunded

func (_Transport *TransportFilterer) FilterRefunded(opts *bind.FilterOpts) (*TransportRefundedIterator, error)

FilterRefunded is a free log retrieval operation binding the contract event 0x3a15507d0ec0c19700dcd5dc99368206f7bf8f5edbe079fb848fe12671420bd0.

Solidity: event Refunded(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr)

func (*TransportFilterer) FilterTransportInitialized

func (_Transport *TransportFilterer) FilterTransportInitialized(opts *bind.FilterOpts) (*TransportTransportInitializedIterator, error)

FilterTransportInitialized is a free log retrieval operation binding the contract event 0xa2dfc5aa015f3928070c6d5ecff4b64908b5a661bc39ae3b76f2fbef4b187d4b.

Solidity: event TransportInitialized(address votingCarrier, address carriers)

func (*TransportFilterer) FilterTripEvent

func (_Transport *TransportFilterer) FilterTripEvent(opts *bind.FilterOpts) (*TransportTripEventIterator, error)

FilterTripEvent is a free log retrieval operation binding the contract event 0xac79b139c3a0deca65a4720eeaa2fa0375948035a7d6706026a955e46fbd0b12.

Solidity: event TripEvent(address _trip, uint256 _tripId, string _eventType)

func (*TransportFilterer) ParseCarrierUpdated

func (_Transport *TransportFilterer) ParseCarrierUpdated(log types.Log) (*TransportCarrierUpdated, error)

ParseCarrierUpdated is a log parse operation binding the contract event 0xb8a1ffc97098af18c5712ef62fd620b94caefb188f07e05ca8d268fdcfb8450e.

Solidity: event CarrierUpdated(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) ParseNewCarrier

func (_Transport *TransportFilterer) ParseNewCarrier(log types.Log) (*TransportNewCarrier, error)

ParseNewCarrier is a log parse operation binding the contract event 0x7da3acbab78e2cfa0aac005e5b53955fce84566e521fa040c614279d2593d9a6.

Solidity: event NewCarrier(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) ParsePurchasedTickets

func (_Transport *TransportFilterer) ParsePurchasedTickets(log types.Log) (*TransportPurchasedTickets, error)

ParsePurchasedTickets is a log parse operation binding the contract event 0x08cdff2d5568fedc99785db826cc06fdaa0e53e1fd32271717d8dd1ee73dd500.

Solidity: event PurchasedTickets(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time)

func (*TransportFilterer) ParseRefunded

func (_Transport *TransportFilterer) ParseRefunded(log types.Log) (*TransportRefunded, error)

ParseRefunded is a log parse operation binding the contract event 0x3a15507d0ec0c19700dcd5dc99368206f7bf8f5edbe079fb848fe12671420bd0.

Solidity: event Refunded(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr)

func (*TransportFilterer) ParseTransportInitialized

func (_Transport *TransportFilterer) ParseTransportInitialized(log types.Log) (*TransportTransportInitialized, error)

ParseTransportInitialized is a log parse operation binding the contract event 0xa2dfc5aa015f3928070c6d5ecff4b64908b5a661bc39ae3b76f2fbef4b187d4b.

Solidity: event TransportInitialized(address votingCarrier, address carriers)

func (*TransportFilterer) ParseTripEvent

func (_Transport *TransportFilterer) ParseTripEvent(log types.Log) (*TransportTripEvent, error)

ParseTripEvent is a log parse operation binding the contract event 0xac79b139c3a0deca65a4720eeaa2fa0375948035a7d6706026a955e46fbd0b12.

Solidity: event TripEvent(address _trip, uint256 _tripId, string _eventType)

func (*TransportFilterer) WatchCarrierUpdated

func (_Transport *TransportFilterer) WatchCarrierUpdated(opts *bind.WatchOpts, sink chan<- *TransportCarrierUpdated) (event.Subscription, error)

WatchCarrierUpdated is a free log subscription operation binding the contract event 0xb8a1ffc97098af18c5712ef62fd620b94caefb188f07e05ca8d268fdcfb8450e.

Solidity: event CarrierUpdated(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) WatchNewCarrier

func (_Transport *TransportFilterer) WatchNewCarrier(opts *bind.WatchOpts, sink chan<- *TransportNewCarrier) (event.Subscription, error)

WatchNewCarrier is a free log subscription operation binding the contract event 0x7da3acbab78e2cfa0aac005e5b53955fce84566e521fa040c614279d2593d9a6.

Solidity: event NewCarrier(address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index)

func (*TransportFilterer) WatchPurchasedTickets

func (_Transport *TransportFilterer) WatchPurchasedTickets(opts *bind.WatchOpts, sink chan<- *TransportPurchasedTickets) (event.Subscription, error)

WatchPurchasedTickets is a free log subscription operation binding the contract event 0x08cdff2d5568fedc99785db826cc06fdaa0e53e1fd32271717d8dd1ee73dd500.

Solidity: event PurchasedTickets(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time)

func (*TransportFilterer) WatchRefunded

func (_Transport *TransportFilterer) WatchRefunded(opts *bind.WatchOpts, sink chan<- *TransportRefunded) (event.Subscription, error)

WatchRefunded is a free log subscription operation binding the contract event 0x3a15507d0ec0c19700dcd5dc99368206f7bf8f5edbe079fb848fe12671420bd0.

Solidity: event Refunded(address _trip, uint256 _tripId, uint256 _tickets, address _buyerAddr)

func (*TransportFilterer) WatchTransportInitialized

func (_Transport *TransportFilterer) WatchTransportInitialized(opts *bind.WatchOpts, sink chan<- *TransportTransportInitialized) (event.Subscription, error)

WatchTransportInitialized is a free log subscription operation binding the contract event 0xa2dfc5aa015f3928070c6d5ecff4b64908b5a661bc39ae3b76f2fbef4b187d4b.

Solidity: event TransportInitialized(address votingCarrier, address carriers)

func (*TransportFilterer) WatchTripEvent

func (_Transport *TransportFilterer) WatchTripEvent(opts *bind.WatchOpts, sink chan<- *TransportTripEvent) (event.Subscription, error)

WatchTripEvent is a free log subscription operation binding the contract event 0xac79b139c3a0deca65a4720eeaa2fa0375948035a7d6706026a955e46fbd0b12.

Solidity: event TripEvent(address _trip, uint256 _tripId, string _eventType)

type TransportNewCarrier

type TransportNewCarrier struct {
	CompanyWallet common.Address
	Company       [32]byte
	Web           [32]byte
	Index         *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

TransportNewCarrier represents a NewCarrier event raised by the Transport contract.

type TransportNewCarrierIterator

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

TransportNewCarrierIterator is returned from FilterNewCarrier and is used to iterate over the raw logs and unpacked data for NewCarrier events raised by the Transport contract.

func (*TransportNewCarrierIterator) Close

func (it *TransportNewCarrierIterator) Close() error

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

func (*TransportNewCarrierIterator) Error

func (it *TransportNewCarrierIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransportNewCarrierIterator) Next

func (it *TransportNewCarrierIterator) 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 TransportPurchasedTickets

type TransportPurchasedTickets struct {
	Trip      common.Address
	TripId    *big.Int
	Tickets   *big.Int
	BuyerAddr common.Address
	Price     *big.Int
	Time      *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

TransportPurchasedTickets represents a PurchasedTickets event raised by the Transport contract.

type TransportPurchasedTicketsIterator

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

TransportPurchasedTicketsIterator is returned from FilterPurchasedTickets and is used to iterate over the raw logs and unpacked data for PurchasedTickets events raised by the Transport contract.

func (*TransportPurchasedTicketsIterator) Close

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

func (*TransportPurchasedTicketsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*TransportRaw) Call

func (_Transport *TransportRaw) 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 (*TransportRaw) Transact

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

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

func (*TransportRaw) Transfer

func (_Transport *TransportRaw) 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 TransportRefunded

type TransportRefunded struct {
	Trip      common.Address
	TripId    *big.Int
	Tickets   *big.Int
	BuyerAddr common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

TransportRefunded represents a Refunded event raised by the Transport contract.

type TransportRefundedIterator

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

TransportRefundedIterator is returned from FilterRefunded and is used to iterate over the raw logs and unpacked data for Refunded events raised by the Transport contract.

func (*TransportRefundedIterator) Close

func (it *TransportRefundedIterator) Close() error

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

func (*TransportRefundedIterator) Error

func (it *TransportRefundedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransportRefundedIterator) Next

func (it *TransportRefundedIterator) 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 TransportSession

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

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

func (*TransportSession) CreateTrip

func (_Transport *TransportSession) CreateTrip(_tripLoc Struct0, _price *big.Int, _schedule [][]byte, _places uint8, _description []byte, _routeType uint8, _enabled bool) (*types.Transaction, error)

CreateTrip is a paid mutator transaction binding the contract method 0x21dfa7d2.

Solidity: function createTrip(Struct0 _tripLoc, uint256 _price, bytes[] _schedule, uint8 _places, bytes _description, uint8 _routeType, bool _enabled) returns()

func (*TransportSession) EmitCarrier

func (_Transport *TransportSession) EmitCarrier(isNew bool, _companyWallet common.Address, _company [32]byte, _web [32]byte, _index *big.Int) (*types.Transaction, error)

EmitCarrier is a paid mutator transaction binding the contract method 0x806523ba.

Solidity: function emitCarrier(bool isNew, address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index) returns()

func (*TransportSession) EmitPurchasedTicket

func (_Transport *TransportSession) EmitPurchasedTicket(_tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address, _price *big.Int, _time *big.Int) (*types.Transaction, error)

EmitPurchasedTicket is a paid mutator transaction binding the contract method 0x2dcac642.

Solidity: function emitPurchasedTicket(uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time) returns()

func (*TransportSession) EmitRefundedTickets

func (_Transport *TransportSession) EmitRefundedTickets(_tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address) (*types.Transaction, error)

EmitRefundedTickets is a paid mutator transaction binding the contract method 0xca52055e.

Solidity: function emitRefundedTickets(uint256 _tripId, uint256 _tickets, address _buyerAddr) returns()

func (*TransportSession) EmitTripUpdateEvent

func (_Transport *TransportSession) EmitTripUpdateEvent(_tripId *big.Int, updateType string) (*types.Transaction, error)

EmitTripUpdateEvent is a paid mutator transaction binding the contract method 0x8e91e611.

Solidity: function emitTripUpdateEvent(uint256 _tripId, string updateType) returns()

func (*TransportSession) GetCarriers

func (_Transport *TransportSession) GetCarriers() (common.Address, error)

GetCarriers is a free data retrieval call binding the contract method 0x0323d5ce.

Solidity: function getCarriers() constant returns(address)

func (*TransportSession) SetEnabled

func (_Transport *TransportSession) SetEnabled(_enabled bool) (*types.Transaction, error)

SetEnabled is a paid mutator transaction binding the contract method 0x328d8f72.

Solidity: function setEnabled(bool _enabled) returns()

func (*TransportSession) TokenAddress

func (_Transport *TransportSession) TokenAddress() (common.Address, error)

TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.

Solidity: function tokenAddress() constant returns(address)

func (*TransportSession) Trips

func (_Transport *TransportSession) Trips(arg0 *big.Int) (struct {
	Addr    common.Address
	Enabled bool
	Exist   bool
}, error)

Trips is a free data retrieval call binding the contract method 0xf6824a7c.

Solidity: function trips(uint256 ) constant returns(address addr, bool enabled, bool exist)

func (*TransportSession) TripsId

func (_Transport *TransportSession) TripsId(arg0 common.Address) (*big.Int, error)

TripsId is a free data retrieval call binding the contract method 0xffbb6bbb.

Solidity: function tripsId(address ) constant returns(uint256)

func (*TransportSession) TripsLength

func (_Transport *TransportSession) TripsLength() (*big.Int, error)

TripsLength is a free data retrieval call binding the contract method 0x454a496d.

Solidity: function tripsLength() constant returns(uint256 length)

type TransportTransactor

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

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

func NewTransportTransactor

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

NewTransportTransactor creates a new write-only instance of Transport, bound to a specific deployed contract.

func (*TransportTransactor) CreateTrip

func (_Transport *TransportTransactor) CreateTrip(opts *bind.TransactOpts, _tripLoc Struct0, _price *big.Int, _schedule [][]byte, _places uint8, _description []byte, _routeType uint8, _enabled bool) (*types.Transaction, error)

CreateTrip is a paid mutator transaction binding the contract method 0x21dfa7d2.

Solidity: function createTrip(Struct0 _tripLoc, uint256 _price, bytes[] _schedule, uint8 _places, bytes _description, uint8 _routeType, bool _enabled) returns()

func (*TransportTransactor) EmitCarrier

func (_Transport *TransportTransactor) EmitCarrier(opts *bind.TransactOpts, isNew bool, _companyWallet common.Address, _company [32]byte, _web [32]byte, _index *big.Int) (*types.Transaction, error)

EmitCarrier is a paid mutator transaction binding the contract method 0x806523ba.

Solidity: function emitCarrier(bool isNew, address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index) returns()

func (*TransportTransactor) EmitPurchasedTicket

func (_Transport *TransportTransactor) EmitPurchasedTicket(opts *bind.TransactOpts, _tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address, _price *big.Int, _time *big.Int) (*types.Transaction, error)

EmitPurchasedTicket is a paid mutator transaction binding the contract method 0x2dcac642.

Solidity: function emitPurchasedTicket(uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time) returns()

func (*TransportTransactor) EmitRefundedTickets

func (_Transport *TransportTransactor) EmitRefundedTickets(opts *bind.TransactOpts, _tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address) (*types.Transaction, error)

EmitRefundedTickets is a paid mutator transaction binding the contract method 0xca52055e.

Solidity: function emitRefundedTickets(uint256 _tripId, uint256 _tickets, address _buyerAddr) returns()

func (*TransportTransactor) EmitTripUpdateEvent

func (_Transport *TransportTransactor) EmitTripUpdateEvent(opts *bind.TransactOpts, _tripId *big.Int, updateType string) (*types.Transaction, error)

EmitTripUpdateEvent is a paid mutator transaction binding the contract method 0x8e91e611.

Solidity: function emitTripUpdateEvent(uint256 _tripId, string updateType) returns()

func (*TransportTransactor) SetEnabled

func (_Transport *TransportTransactor) SetEnabled(opts *bind.TransactOpts, _enabled bool) (*types.Transaction, error)

SetEnabled is a paid mutator transaction binding the contract method 0x328d8f72.

Solidity: function setEnabled(bool _enabled) returns()

type TransportTransactorRaw

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

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

func (*TransportTransactorRaw) Transact

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

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

func (*TransportTransactorRaw) Transfer

func (_Transport *TransportTransactorRaw) 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 TransportTransactorSession

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

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

func (*TransportTransactorSession) CreateTrip

func (_Transport *TransportTransactorSession) CreateTrip(_tripLoc Struct0, _price *big.Int, _schedule [][]byte, _places uint8, _description []byte, _routeType uint8, _enabled bool) (*types.Transaction, error)

CreateTrip is a paid mutator transaction binding the contract method 0x21dfa7d2.

Solidity: function createTrip(Struct0 _tripLoc, uint256 _price, bytes[] _schedule, uint8 _places, bytes _description, uint8 _routeType, bool _enabled) returns()

func (*TransportTransactorSession) EmitCarrier

func (_Transport *TransportTransactorSession) EmitCarrier(isNew bool, _companyWallet common.Address, _company [32]byte, _web [32]byte, _index *big.Int) (*types.Transaction, error)

EmitCarrier is a paid mutator transaction binding the contract method 0x806523ba.

Solidity: function emitCarrier(bool isNew, address _companyWallet, bytes32 _company, bytes32 _web, uint256 _index) returns()

func (*TransportTransactorSession) EmitPurchasedTicket

func (_Transport *TransportTransactorSession) EmitPurchasedTicket(_tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address, _price *big.Int, _time *big.Int) (*types.Transaction, error)

EmitPurchasedTicket is a paid mutator transaction binding the contract method 0x2dcac642.

Solidity: function emitPurchasedTicket(uint256 _tripId, uint256 _tickets, address _buyerAddr, uint256 _price, uint256 _time) returns()

func (*TransportTransactorSession) EmitRefundedTickets

func (_Transport *TransportTransactorSession) EmitRefundedTickets(_tripId *big.Int, _tickets *big.Int, _buyerAddr common.Address) (*types.Transaction, error)

EmitRefundedTickets is a paid mutator transaction binding the contract method 0xca52055e.

Solidity: function emitRefundedTickets(uint256 _tripId, uint256 _tickets, address _buyerAddr) returns()

func (*TransportTransactorSession) EmitTripUpdateEvent

func (_Transport *TransportTransactorSession) EmitTripUpdateEvent(_tripId *big.Int, updateType string) (*types.Transaction, error)

EmitTripUpdateEvent is a paid mutator transaction binding the contract method 0x8e91e611.

Solidity: function emitTripUpdateEvent(uint256 _tripId, string updateType) returns()

func (*TransportTransactorSession) SetEnabled

func (_Transport *TransportTransactorSession) SetEnabled(_enabled bool) (*types.Transaction, error)

SetEnabled is a paid mutator transaction binding the contract method 0x328d8f72.

Solidity: function setEnabled(bool _enabled) returns()

type TransportTransportInitialized

type TransportTransportInitialized struct {
	VotingCarrier common.Address
	Carriers      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

TransportTransportInitialized represents a TransportInitialized event raised by the Transport contract.

type TransportTransportInitializedIterator

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

TransportTransportInitializedIterator is returned from FilterTransportInitialized and is used to iterate over the raw logs and unpacked data for TransportInitialized events raised by the Transport contract.

func (*TransportTransportInitializedIterator) Close

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

func (*TransportTransportInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type TransportTripEvent struct {
	Trip      common.Address
	TripId    *big.Int
	EventType string
	Raw       types.Log // Blockchain specific contextual infos
}

TransportTripEvent represents a TripEvent event raised by the Transport contract.

type TransportTripEventIterator

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

TransportTripEventIterator is returned from FilterTripEvent and is used to iterate over the raw logs and unpacked data for TripEvent events raised by the Transport contract.

func (*TransportTripEventIterator) Close

func (it *TransportTripEventIterator) Close() error

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

func (*TransportTripEventIterator) Error

func (it *TransportTripEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TransportTripEventIterator) Next

func (it *TransportTripEventIterator) 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.

Jump to

Keyboard shortcuts

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