Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 35 additions & 24 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,32 @@ import (
)

type Config struct {
Env string
Git string
LogLevel string
ZapLevel zapcore.Level
ReadDbUrl string
ReadDbReplicas []string
WriteDbUrl string
RunMigrations bool
EsUrl string
Nodes []Node
DeadNodes []string
DelegatePrivateKey string
AxiomToken string
AxiomDataset string
NetworkTakeRate float64
SolanaConfig SolanaConfig
AntiAbuseOracles []string
Rewards []rewards.Reward
AudiusdURL string
ChainId string
BirdeyeToken string
SolanaIndexerWorkers int
SolanaIndexerRetryInterval time.Duration
CommsMessagePush bool
Env string
Git string
LogLevel string
ZapLevel zapcore.Level
ReadDbUrl string
ReadDbReplicas []string
WriteDbUrl string
RunMigrations bool
EsUrl string
Nodes []Node
DeadNodes []string
DelegatePrivateKey string
AxiomToken string
AxiomDataset string
NetworkTakeRate float64
SolanaConfig SolanaConfig
AntiAbuseOracles []string
Rewards []rewards.Reward
AudiusdURL string
ChainId string
BirdeyeToken string
SolanaIndexerWorkers int
SolanaIndexerRetryInterval time.Duration
CommsMessagePush bool
AudiusdChainID uint
AudiusdEntityManagerAddress string
}

var Cfg = Config{
Expand Down Expand Up @@ -86,6 +88,9 @@ func init() {
Cfg.AudiusdURL = "http://audius-protocol-creator-node-1"
Cfg.ChainId = "audius-devnet"
Cfg.SolanaIndexerWorkers = 1

Cfg.AudiusdChainID = core_config.DevAcdcChainID
Cfg.AudiusdEntityManagerAddress = core_config.DevAcdcAddress
case "stage":
fallthrough
case "staging":
Expand All @@ -98,6 +103,9 @@ func init() {
Cfg.Rewards = core_config.MakeRewards(core_config.StageClaimAuthorities, core_config.StageRewardExtensions)
Cfg.AudiusdURL = "creatornode11.staging.audius.co"
Cfg.ChainId = "audius-testnet-alpha"

Cfg.AudiusdChainID = core_config.StageAcdcChainID
Cfg.AudiusdEntityManagerAddress = core_config.StageAcdcAddress
case "prod":
fallthrough
case "production":
Expand All @@ -112,6 +120,9 @@ func init() {
Cfg.Rewards = core_config.MakeRewards(core_config.ProdClaimAuthorities, core_config.ProdRewardExtensions)
Cfg.AudiusdURL = "creatornode.audius.co"
Cfg.ChainId = "audius-mainnet-alpha-beta"

Cfg.AudiusdChainID = core_config.ProdAcdcChainID
Cfg.AudiusdEntityManagerAddress = core_config.ProdAcdcAddress
default:
log.Fatalf("Unknown environment: %s", env)
}
Expand Down
9 changes: 9 additions & 0 deletions database/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,15 @@ var (
"created_at": time.Now(),
"updated_at": time.Now(),
},
"indexing_checkpoints": {
"tablename": nil,
"last_checkpoint": nil,
"signature": nil,
},
"user_pubkeys": {
"user_id": nil,
"pubkey_base64": nil,
},
}
)

Expand Down
30 changes: 27 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module api.audius.co
go 1.24.3

require (
github.com/AudiusProject/audiusd v0.0.0-20250604041839-b2c3c6c47a69
connectrpc.com/connect v1.18.1
github.com/AudiusProject/audiusd v0.0.0-20250929223156-971e493d9d95
github.com/Doist/unfurlist v0.0.0-20250409100812-515f2735f8e5
github.com/aquasecurity/esquery v0.2.0
github.com/axiomhq/axiom-go v0.23.0
Expand Down Expand Up @@ -44,9 +45,10 @@ require (
)

require (
connectrpc.com/connect v1.18.1 // indirect
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
github.com/DataDog/zstd v1.5.2 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
github.com/andybalholm/brotli v1.2.0 // indirect
github.com/artyom/autoflags v1.1.1 // indirect
Expand Down Expand Up @@ -74,13 +76,15 @@ require (
github.com/cosmos/gogoproto v1.7.0 // indirect
github.com/crate-crypto/go-ipa v0.0.0-20240724233137-53bbb0ceb27a // indirect
github.com/crate-crypto/go-kzg-4844 v1.1.0 // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
github.com/dgraph-io/badger/v4 v4.5.1 // indirect
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
github.com/dgryski/go-metro v0.0.0-20180109044635-280f6062b5bc // indirect
github.com/dolthub/maphash v0.1.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09 // indirect
github.com/ebitengine/purego v0.8.2 // indirect
github.com/elastic/elastic-transport-go/v8 v8.7.0 // indirect
github.com/elastic/go-elasticsearch/v7 v7.6.0 // indirect
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
Expand All @@ -89,14 +93,17 @@ require (
github.com/fatih/color v1.18.0 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
github.com/gagliardetto/anchor-go v1.0.0 // indirect
github.com/gammazero/deque v1.0.0 // indirect
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/errors v0.20.4 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
Expand All @@ -112,18 +119,24 @@ require (
github.com/gobwas/glob v0.2.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-migrate/migrate/v4 v4.18.3 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/btree v1.1.3 // indirect
github.com/google/flatbuffers v24.12.23+incompatible // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/rpc v1.2.0 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/holiman/uint256 v1.3.2 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
Expand All @@ -137,12 +150,15 @@ require (
github.com/labstack/echo/v4 v4.12.0 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/linxGnu/grocksdb v1.9.3 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/minio/highwayhash v1.0.3 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c // indirect
github.com/mmcloughlin/addchain v0.4.0 // indirect
Expand All @@ -155,25 +171,33 @@ require (
github.com/petermattis/goid v0.0.0-20250319124200-ccd6737f222a // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_golang v1.20.5 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.62.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/rubenv/sql-migrate v1.7.0 // indirect
github.com/sasha-s/go-deadlock v0.3.5 // indirect
github.com/savsgio/gotils v0.0.0-20250408102913-196191ec6287 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/shirou/gopsutil/v4 v4.25.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/supranational/blst v0.3.14 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.65.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
go.opencensus.io v0.24.0 // indirect
Expand All @@ -186,7 +210,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/ratelimit v0.2.0 // indirect
golang.org/x/crypto v0.41.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
golang.org/x/net v0.43.0 // indirect
golang.org/x/sys v0.35.0 // indirect
golang.org/x/term v0.34.0 // indirect
Expand Down
Loading
Loading