Theseus provides Furya community off-chain functionality.
| CLI param | Environment var | Default | Required | Description |
|---|---|---|---|---|
| http.host | HTTP_HOST | 0.0.0.0 | true | host to bind server |
| http.port | HTTP_PORT | 8080 | true | port to listen |
| http.request-timeout | HTTP_REQUEST_TIMEOUT | 45s | false | request processing timeout |
| postgres | POSTGRES | host=localhost port=5432 user=postgres password=root sslmode=disable | true | postgres dsn |
| postgres.max_open_connections | POSTGRES_MAX_OPEN_CONNECTIONS | 0 | true | postgres maximal open connections count, 0 means unlimited |
| postgres.max_idle_connections | POSTGRES_MAX_IDLE_CONNECTIONS | 5 | true | postgres maximal idle connections count |
| postgres.migrations | POSTGRES_MIGRATIONS | /migrations/postgres | true | postgres migrations directory |
| log.level | LOG_LEVEL | info | false | level of logger (debug,info,warn,error) |
| sentry.dsn | SENTRY_DSN | false | sentry dsn |
| CLI param | Environment var | Default | Required | Description |
|---|---|---|---|---|
| http.host | HTTP_HOST | 0.0.0.0 | true | host to bind server used to health checking purposes |
| http.port | HTTP_PORT | 8080 | true | port to listen |
| postgres | POSTGRES | host=localhost port=5432 user=postgres password=root sslmode=disable | true | postgres dsn |
| postgres.max_open_connections | POSTGRES_MAX_OPEN_CONNECTIONS | 0 | true | postgres maximal open connections count, 0 means unlimited |
| postgres.max_idle_connections | POSTGRES_MAX_IDLE_CONNECTIONS | 5 | true | postgres maximal idle connections count |
| postgres.migrations | POSTGRES_MIGRATIONS | /migrations/postgres | true | postgres migrations directory |
| blockchain.node | BLOCKCHAIN_NODE | zeus.testnet.furya.xyz:9090 | true | furya grpc node address |
| blockchain.timeout | BLOCKCHAIN_TIMEOUT | 5s | true | timeout for requests to blockchain node |
| blockchain.retry_interval | BLOCKCHAIN_RETRY_INTERVAL | 2s | true | interval to be waited on error before retry |
| blockchain.last_block_retry_interval | BLOCKCHAIN_LAST_BLOCK_RETRY_INTERVAL | 1s | true | duration to be waited when new block isn't produced before retry |
| log.level | LOG_LEVEL | info | false | level of logger (debug,info,warn,error) |
| sentry.dsn | SENTRY_DSN | false | sentry dsn |
go run scripts/genesis2db/main.go --genesis.json /path/to/genesis.json --postgres "host=localhost port=5432 user=postgres password=root sslmode=disable" --postgres.migrations "scripts/migrations/postgres"
Use make vendor
You can check all tools existence with make check-all or force installing them with make install-all
Use make install-linter
Use make install-swagger
Use make install-mockgen
Use make image to build local docker image named theseus-local
Use make build to build for your OS or use make linux to build for linux(used in make image)
Use make test to run tests. Also you can run tests with integration tag with make fulltest