@@ -25,36 +25,36 @@ func InitBigtableSchema() error {
2525func InitBigtableSchemaIndexed () error {
2626 tables := make (map [string ]map [string ]gcp_bigtable.GCPolicy )
2727
28- tables ["beaconchain_validators" ] = map [string ]gcp_bigtable.GCPolicy {
28+ tables [utils . Config . Bigtable . TableNameValidators ] = map [string ]gcp_bigtable.GCPolicy {
2929 ATTESTATIONS_FAMILY : gcp_bigtable .MaxVersionsGCPolicy (1 ),
3030 }
31- tables ["beaconchain_validators_history" ] = map [string ]gcp_bigtable.GCPolicy {
31+ tables [utils . Config . Bigtable . TableNameValidatorsHistory ] = map [string ]gcp_bigtable.GCPolicy {
3232 VALIDATOR_BALANCES_FAMILY : nil ,
3333 VALIDATOR_HIGHEST_ACTIVE_INDEX_FAMILY : nil ,
3434 ATTESTATIONS_FAMILY : gcp_bigtable .MaxAgeGCPolicy (utils .Day * 31 ),
3535 SYNC_COMMITTEES_FAMILY : nil ,
3636 INCOME_DETAILS_COLUMN_FAMILY : gcp_bigtable .MaxAgeGCPolicy (utils .Day * 31 ),
3737 STATS_COLUMN_FAMILY : nil ,
3838 }
39- tables ["blocks" ] = map [string ]gcp_bigtable.GCPolicy {
39+ tables [utils . Config . Bigtable . TableNameBlocks ] = map [string ]gcp_bigtable.GCPolicy {
4040 DEFAULT_FAMILY_BLOCKS : gcp_bigtable .MaxVersionsGCPolicy (1 ),
4141 }
42- tables ["data" ] = map [string ]gcp_bigtable.GCPolicy {
42+ tables [utils . Config . Bigtable . TableNameData ] = map [string ]gcp_bigtable.GCPolicy {
4343 CONTRACT_METADATA_FAMILY : gcp_bigtable .MaxAgeGCPolicy (utils .Day ),
4444 DEFAULT_FAMILY : nil ,
4545 }
46- tables ["machine_metrics" ] = map [string ]gcp_bigtable.GCPolicy {
46+ tables [utils . Config . Bigtable . TableNameMachineMetrics ] = map [string ]gcp_bigtable.GCPolicy {
4747 MACHINE_METRICS_COLUMN_FAMILY : gcp_bigtable .MaxAgeGCPolicy (utils .Day * 31 ),
4848 }
49- tables ["metadata" ] = map [string ]gcp_bigtable.GCPolicy {
49+ tables [utils . Config . Bigtable . TableNameMetadata ] = map [string ]gcp_bigtable.GCPolicy {
5050 ACCOUNT_METADATA_FAMILY : nil ,
5151 CONTRACT_METADATA_FAMILY : nil ,
5252 ERC20_METADATA_FAMILY : nil ,
5353 ERC721_METADATA_FAMILY : nil ,
5454 ERC1155_METADATA_FAMILY : nil ,
5555 SERIES_FAMILY : gcp_bigtable .MaxVersionsGCPolicy (1 ),
5656 }
57- tables ["metadata_updates" ] = map [string ]gcp_bigtable.GCPolicy {
57+ tables [utils . Config . Bigtable . TableNameMetadataUpdates ] = map [string ]gcp_bigtable.GCPolicy {
5858 METADATA_UPDATES_FAMILY_BLOCKS : gcp_bigtable .MaxAgeGCPolicy (utils .Day ),
5959 DEFAULT_FAMILY : nil ,
6060 }
@@ -115,7 +115,7 @@ func InitBigtableSchemaRaw() error {
115115 tables := make (map [string ]map [string ]gcp_bigtable.GCPolicy )
116116
117117 // these are the families in current production-bigtable: b, v, r, a, s, t, u - not sure why some are missing in the raw-go-module
118- tables ["blocks-raw" ] = map [string ]gcp_bigtable.GCPolicy {
118+ tables [utils . Config . Bigtable . TableNameBlocksRaw ] = map [string ]gcp_bigtable.GCPolicy {
119119 raw .BT_COLUMNFAMILY_BLOCK : nil ,
120120 "v" : nil ,
121121 raw .BT_COLUMNFAMILY_RECEIPTS : nil ,
0 commit comments