Add getEvents backed by DB #66
Annotations
10 errors and 1 warning
golangci-lint:
cmd/soroban-rpc/internal/db/event.go#L157
use of `errors.New` forbidden because "Do not use stellar/go/support/errors, use the standard 'errors' package and fmt.Errorf()." (forbidigo)
|
golangci-lint:
cmd/soroban-rpc/internal/db/mocks.go#L55
`if contractIds != nil` has complex nested blocks (complexity: 5) (nestif)
|
golangci-lint:
cmd/soroban-rpc/internal/methods/get_events.go#L383
Consider pre-allocating `results` (prealloc)
|
golangci-lint:
cmd/soroban-rpc/internal/db/mocks.go#L44
unexported-return: exported func NewMockEventStore returns unexported type *db.mockEventHandler, which can be annoying to use (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/event.go#L28
var-naming: interface method parameter contractIds should be contractIDs (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/mocks.go#L38
var-naming: struct field contractIdToMeta should be contractIDToMeta (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/mocks.go#L40
var-naming: struct field eventIdToTx should be eventIDToTx (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/event.go#L137
var-naming: struct field EventCursorId should be EventCursorID (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/event.go#L161
var-naming: var eventCursorId should be eventCursorID (revive)
|
golangci-lint:
cmd/soroban-rpc/internal/db/mocks.go#L56
var-naming: range var contractId should be contractID (revive)
|
golangci-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|