Skip to content

Commit

Permalink
Go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Dec 4, 2024
1 parent 91bfc90 commit f25c799
Show file tree
Hide file tree
Showing 8 changed files with 714 additions and 715 deletions.
2 changes: 1 addition & 1 deletion backend/cmd/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
indexer.InitIndexerRoutes()
routes.InitWebsocketRoutes()
routes.InitNFTStaticRoutes()
routes.InitWorldsStaticRoutes()
routes.InitWorldsStaticRoutes()
indexer.StartMessageProcessor()

core.ArtPeaceBackend.Start(core.ArtPeaceBackend.BackendConfig.ConsumerPort)
Expand Down
20 changes: 10 additions & 10 deletions backend/config/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ type BackendScriptsConfig struct {
CreateCanvasDevnet string `json:"create_canvas_devnet"`
FavoriteWorldDevnet string `json:"favorite_world_devnet"`
UnfavoriteWorldDevnet string `json:"unfavorite_world_devnet"`
PlaceWorldPixelDevnet string `json:"place_world_pixel_devnet"`
AddStencilDevnet string `json:"add_stencil_devnet"`
RemoveStencilDevnet string `json:"remove_stencil_devnet"`
FavoriteStencilDevnet string `json:"favorite_stencil_devnet"`
UnfavoriteStencilDevnet string `json:"unfavorite_stencil_devnet"`
PlaceWorldPixelDevnet string `json:"place_world_pixel_devnet"`
AddStencilDevnet string `json:"add_stencil_devnet"`
RemoveStencilDevnet string `json:"remove_stencil_devnet"`
FavoriteStencilDevnet string `json:"favorite_stencil_devnet"`
UnfavoriteStencilDevnet string `json:"unfavorite_stencil_devnet"`
}

type WebSocketConfig struct {
Expand Down Expand Up @@ -77,11 +77,11 @@ var DefaultBackendConfig = BackendConfig{
CreateCanvasDevnet: "../scripts/create_canvas.sh",
FavoriteWorldDevnet: "../scripts/favorite_world.sh",
UnfavoriteWorldDevnet: "../scripts/unfavorite_world.sh",
PlaceWorldPixelDevnet: "../scripts/place_world_pixel.sh",
AddStencilDevnet: "../scripts/add_stencil.sh",
RemoveStencilDevnet: "../scripts/remove_stencil.sh",
FavoriteStencilDevnet: "../scripts/favorite_stencil.sh",
UnfavoriteStencilDevnet: "../scripts/unfavorite_stencil.sh",
PlaceWorldPixelDevnet: "../scripts/place_world_pixel.sh",
AddStencilDevnet: "../scripts/add_stencil.sh",
RemoveStencilDevnet: "../scripts/remove_stencil.sh",
FavoriteStencilDevnet: "../scripts/favorite_stencil.sh",
UnfavoriteStencilDevnet: "../scripts/unfavorite_stencil.sh",
},
Production: false,
WebSocket: WebSocketConfig{
Expand Down
48 changes: 24 additions & 24 deletions backend/routes/indexer/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ const (
canvasBasicPixelPlacedEvent = "0x03066baa9c37a42082799e6bc6426ff7d4dc8a635ed9dfc444d0d3c51e605a6b"
canvasExtraPixelsPlacedEvent = "0x01e42e4d6ca5843bfd4e86e344db6c418b295c23bed38831a7ec9b4a83148830"
canvasHostAwardedUserEvent = "0x01bf6ede8c6c232cee1830a5227fd638383f5af669701289d113492b1d41fda5"
canvasFavoritedEvent = "0x032105bd4f21a32bc92e45a49b30eab9355f7f89619d87e9801628e3acc5b502"
canvasUnfavoritedEvent = "0x014ee6480f95acb4b7286d3a7f95b6033299e66e502cfb4b207ccf088b5f601d"
stencilAddedEvent = "0x03384fcf8ff5c539c31feec6626511aa15ae53dba7459fd3a3c67af615ef6b5d"
stencilRemovedEvent = "0x023c933ed3ee3f94b5b82f8e2e570c8354e6f5036c3a079092ceeed15979e7fa"
stencilFavoritedEvent = "0x007cb4ae927fb597834e194e2c950a2d813461c72f372f78d0610ea246f53017"
stencilUnfavoritedEvent = "0x00a5477c7df6522316b652e56317e69e52429ab43a6772fb6f6c2a574f7e196f"
canvasFavoritedEvent = "0x032105bd4f21a32bc92e45a49b30eab9355f7f89619d87e9801628e3acc5b502"
canvasUnfavoritedEvent = "0x014ee6480f95acb4b7286d3a7f95b6033299e66e502cfb4b207ccf088b5f601d"
stencilAddedEvent = "0x03384fcf8ff5c539c31feec6626511aa15ae53dba7459fd3a3c67af615ef6b5d"
stencilRemovedEvent = "0x023c933ed3ee3f94b5b82f8e2e570c8354e6f5036c3a079092ceeed15979e7fa"
stencilFavoritedEvent = "0x007cb4ae927fb597834e194e2c950a2d813461c72f372f78d0610ea246f53017"
stencilUnfavoritedEvent = "0x00a5477c7df6522316b652e56317e69e52429ab43a6772fb6f6c2a574f7e196f"
)

var eventProcessors = map[string](func(IndexerEvent)){
Expand Down Expand Up @@ -135,12 +135,12 @@ var eventProcessors = map[string](func(IndexerEvent)){
canvasBasicPixelPlacedEvent: processCanvasBasicPixelPlacedEvent,
canvasExtraPixelsPlacedEvent: processCanvasExtraPixelsPlacedEvent,
canvasHostAwardedUserEvent: processCanvasHostAwardedUserEvent,
canvasFavoritedEvent: processCanvasFavoritedEvent,
canvasUnfavoritedEvent: processCanvasUnfavoritedEvent,
stencilAddedEvent: processStencilAddedEvent,
stencilRemovedEvent: processStencilRemovedEvent,
stencilFavoritedEvent: processStencilFavoritedEvent,
stencilUnfavoritedEvent: processStencilUnfavoritedEvent,
canvasFavoritedEvent: processCanvasFavoritedEvent,
canvasUnfavoritedEvent: processCanvasUnfavoritedEvent,
stencilAddedEvent: processStencilAddedEvent,
stencilRemovedEvent: processStencilRemovedEvent,
stencilFavoritedEvent: processStencilFavoritedEvent,
stencilUnfavoritedEvent: processStencilUnfavoritedEvent,
}

var eventReverters = map[string](func(IndexerEvent)){
Expand Down Expand Up @@ -180,12 +180,12 @@ var eventReverters = map[string](func(IndexerEvent)){
canvasBasicPixelPlacedEvent: revertCanvasBasicPixelPlacedEvent,
canvasExtraPixelsPlacedEvent: revertCanvasExtraPixelsPlacedEvent,
canvasHostAwardedUserEvent: revertCanvasHostAwardedUserEvent,
canvasFavoritedEvent: revertCanvasFavoritedEvent,
canvasUnfavoritedEvent: revertCanvasUnfavoritedEvent,
stencilAddedEvent: revertStencilAddedEvent,
stencilRemovedEvent: revertStencilRemovedEvent,
stencilFavoritedEvent: revertStencilFavoritedEvent,
stencilUnfavoritedEvent: revertStencilUnfavoritedEvent,
canvasFavoritedEvent: revertCanvasFavoritedEvent,
canvasUnfavoritedEvent: revertCanvasUnfavoritedEvent,
stencilAddedEvent: revertStencilAddedEvent,
stencilRemovedEvent: revertStencilRemovedEvent,
stencilFavoritedEvent: revertStencilFavoritedEvent,
stencilUnfavoritedEvent: revertStencilUnfavoritedEvent,
}

// TODO: Rethink this ( & look at values before multicanvas PR )
Expand Down Expand Up @@ -226,12 +226,12 @@ var eventRequiresOrdering = map[string]bool{
canvasBasicPixelPlacedEvent: true,
canvasExtraPixelsPlacedEvent: true,
canvasHostAwardedUserEvent: true,
canvasFavoritedEvent: true,
canvasUnfavoritedEvent: true,
stencilAddedEvent: true,
stencilRemovedEvent: true,
stencilFavoritedEvent: true,
stencilUnfavoritedEvent: true,
canvasFavoritedEvent: true,
canvasUnfavoritedEvent: true,
stencilAddedEvent: true,
stencilRemovedEvent: true,
stencilFavoritedEvent: true,
stencilUnfavoritedEvent: true,
}

const (
Expand Down
Loading

0 comments on commit f25c799

Please sign in to comment.