services

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AftermarketDeviceAttributeSetData

type AftermarketDeviceAttributeSetData struct {
	TokenID   *big.Int
	Attribute string
	Info      string
}

type AftermarketDeviceClaimedData

type AftermarketDeviceClaimedData struct {
	AftermarketDeviceNode *big.Int
	Owner                 common.Address
}

type AftermarketDeviceNodeMintedData

type AftermarketDeviceNodeMintedData struct {
	ManufacturerID           *big.Int
	TokenID                  *big.Int
	AftermarketDeviceAddress common.Address
	Owner                    common.Address
}

type AftermarketDevicePairData

type AftermarketDevicePairData struct {
	AftermarketDeviceNode *big.Int
	VehicleNode           *big.Int
	Owner                 common.Address
}

type BeneficiarySetData

type BeneficiarySetData struct {
	IdProxyAddress common.Address
	NodeId         *big.Int
	Beneficiary    common.Address
}

type Block

type Block struct {
	Number *big.Int    `json:"number,omitempty"`
	Hash   common.Hash `json:"hash,omitempty"`
	Time   time.Time   `json:"time,omitempty"`
}

type ContractEventData

type ContractEventData struct {
	ChainID         int64           `json:"chainId"`
	EventName       string          `json:"eventName"`
	Block           Block           `json:"block,omitempty"`
	Contract        common.Address  `json:"contract"`
	TransactionHash common.Hash     `json:"transactionHash"`
	EventSignature  common.Hash     `json:"eventSignature"`
	Arguments       json.RawMessage `json:"arguments"`
}

type ContractsEventsConsumer

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

func NewContractsEventsConsumer

func NewContractsEventsConsumer(dbs db.Store, log *zerolog.Logger, settings *config.Settings) *ContractsEventsConsumer

func (*ContractsEventsConsumer) Process

func (c *ContractsEventsConsumer) Process(ctx context.Context, event *shared.CloudEvent[json.RawMessage]) error

type DCNNameChangedData

type DCNNameChangedData struct {
	Node []byte
	Name string `json:"_name"`
}

type DCNVehicleIdChangedData

type DCNVehicleIdChangedData struct {
	Node      []byte
	VehicleID *big.Int `json:"vehicleId_"`
}

type DeviceDefinition

type DeviceDefinition struct {
	Type struct {
		Make  string
		Model string
		Year  int
	}
}

type EventName

type EventName string
const (
	Transfer                      EventName = "Transfer"
	VehicleAttributeSet           EventName = "VehicleAttributeSet"
	ManufacturerNodeMinted        EventName = "ManufacturerNodeMinted"
	AftermarketDeviceAttributeSet EventName = "AftermarketDeviceAttributeSet"
	PrivilegeSet                  EventName = "PrivilegeSet"
	AftermarketDeviceClaimed      EventName = "AftermarketDeviceClaimed"
	AftermarketDevicePaired       EventName = "AftermarketDevicePaired"
	AftermarketDeviceUnpaired     EventName = "AftermarketDeviceUnpaired"
	BeneficiarySetEvent           EventName = "BeneficiarySet"
	VehicleNodeMinted             EventName = "VehicleNodeMinted"
	AftermarketDeviceNodeMinted   EventName = "AftermarketDeviceNodeMinted"
	SyntheticDeviceNodeMinted     EventName = "SyntheticDeviceNodeMinted"
	SyntheticDeviceNodeBurned     EventName = "SyntheticDeviceNodeBurned"
	NewNode                       EventName = "NewNode"
	NewExpiration                 EventName = "NewExpiration"
	NameChanged                   EventName = "NameChanged"
	VehicleIdChanged              EventName = "VehicleIdChanged"
)

func (EventName) String

func (r EventName) String() string

type ManufacturerNodeMintedData

type ManufacturerNodeMintedData struct {
	Name    string
	TokenID *big.Int
	Owner   common.Address
}

type NewDCNExpirationData

type NewDCNExpirationData struct {
	Node       []byte
	Expiration int
}

type NewDCNNodeData

type NewDCNNodeData struct {
	Node  []byte
	Owner common.Address
}

type PrivilegeSetData

type PrivilegeSetData struct {
	TokenId *big.Int
	PrivId  *big.Int
	User    common.Address
	Expires *big.Int
}

type SyntheticDeviceNodeBurnedData

type SyntheticDeviceNodeBurnedData struct {
	SyntheticDeviceNode *big.Int
	VehicleNode         *big.Int
	Owner               common.Address
}

type SyntheticDeviceNodeMintedData

type SyntheticDeviceNodeMintedData struct {
	IntegrationNode        *big.Int
	SyntheticDeviceNode    *big.Int
	VehicleNode            *big.Int
	SyntheticDeviceAddress common.Address
	Owner                  common.Address
}

type TransferData

type TransferData struct {
	From    common.Address
	To      common.Address
	TokenID *big.Int
}

type VehicleAttributeSetData

type VehicleAttributeSetData struct {
	TokenID   *big.Int
	Attribute string
	Info      string
}

type VehicleNodeMintedData

type VehicleNodeMintedData struct {
	ManufacturerNode *big.Int
	TokenID          *big.Int
	Owner            common.Address
}

Jump to

Keyboard shortcuts

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