From d387ed06721843fc298f80bc692db7a9a29b930d Mon Sep 17 00:00:00 2001 From: Thomas Jay Rush Date: Thu, 28 Nov 2024 05:06:33 -0500 Subject: [PATCH] Cleanings --- code_gen/generated/codebase.json | 1 + code_gen/templates/classDefinitions/project.toml | 1 + pkg/types/types_containerproject.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code_gen/generated/codebase.json b/code_gen/generated/codebase.json index 30fef802..3978b9ca 100644 --- a/code_gen/generated/codebase.json +++ b/code_gen/generated/codebase.json @@ -8,6 +8,7 @@ "cache_by": "range", "cache_type": "cacheable", "attributes": "wantsSearch|wantsEnter|wantsModify", + "sorts": "address+Asc", "members": [ { "name": "nMonitors", diff --git a/code_gen/templates/classDefinitions/project.toml b/code_gen/templates/classDefinitions/project.toml index d194edd9..3b9f6d9e 100644 --- a/code_gen/templates/classDefinitions/project.toml +++ b/code_gen/templates/classDefinitions/project.toml @@ -5,6 +5,7 @@ doc_route = "0000-containers" ui_route = "0000-project-1" attributes = "wantsSearch|wantsEnter|wantsModify" + sorts = "address+Asc" # produced_by = "blocks" # contains = "transaction, withdrawal" cache_type = "cacheable" diff --git a/pkg/types/types_containerproject.go b/pkg/types/types_containerproject.go index 25db7a33..5e993aa9 100644 --- a/pkg/types/types_containerproject.go +++ b/pkg/types/types_containerproject.go @@ -40,7 +40,7 @@ func NewProjectContainer(chain string, itemsIn []HistoryContainer) ProjectContai NItems: uint64(len(itemsIn)), Sorts: sdk.SortSpec{ Fields: []string{"address"}, - Order: []sdk.SortOrder{"Asc}, + Order: []sdk.SortOrder{sdk.Asc}, }, Updater: NewProjectUpdater(chain, itemsIn), }