Skip to content

Commit

Permalink
SI-2471-burn-vehicle (#271)
Browse files Browse the repository at this point in the history
* burn vehicle endpoints

* rename mint_request_id to transaction_request_id

* add burn req id column to vehicle nft table

---------

Co-authored-by: Kevin Joiner <[email protected]>
  • Loading branch information
Allyson-English and KevinJoiner authored Mar 21, 2024
1 parent 96ab582 commit 9436598
Show file tree
Hide file tree
Showing 19 changed files with 4,846 additions and 1,023 deletions.
4 changes: 4 additions & 0 deletions cmd/devices-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ func startWebAPI(logger zerolog.Logger, settings *config.Settings, pdb db.Store,

vehicleAddr := common.HexToAddress(settings.VehicleNFTAddress)

// vehicle token actions
vPriv.Get("/commands/burn", userDeviceController.GetBurnDevice)
vPriv.Post("/commands/burn", userDeviceController.PostBurnDevice)

// vehicle command privileges
vPriv.Get("/status", privTokenWare.OneOf(vehicleAddr,
[]privileges.Privilege{privileges.VehicleNonLocationData, privileges.VehicleCurrentLocation, privileges.VehicleAllTimeLocation}), nftController.GetVehicleStatus)
Expand Down
1,607 changes: 1,351 additions & 256 deletions docs/docs.go

Large diffs are not rendered by default.

1,600 changes: 1,348 additions & 252 deletions docs/swagger.json

Large diffs are not rendered by default.

Loading

0 comments on commit 9436598

Please sign in to comment.