Skip to content

Commit

Permalink
Try storing the synthetic device mint payload here
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs committed Jun 25, 2024
1 parent 55c6b38 commit bf3e070
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions event/sdmint/sdmint.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package sdmint

import "github.com/ethereum/go-ethereum/common"

var Type = "com.dimo.zone.device.synthetic.mint"

type Data struct {
Integration Integration `json:"integration"`
Vehicle Vehicle `json:"vehicle"`
Device Device `json:"device"`
}

type Integration struct {
TokenID int `json:"tokenId"`
IntegrationID string `json:"integrationId"`
}

type Vehicle struct {
TokenID int `json:"tokenId"`
UserDeviceID string `json:"userDeviceId"`
}

type Device struct {
TokenID int `json:"tokenId"`
ExternalID string `json:"externalId"`
Address common.Address `json:"address"`
WalletChildNumber uint32 `json:"walletChildNumber"`
}

0 comments on commit bf3e070

Please sign in to comment.