While going through the deprecated markers in the codebase I noticed the whole get_transaction chain is dead code — nothing in production calls it anymore:
StarknetData.Transaction() (starknetdata/starknetdata.go) — declared on the interface but never called
Feeder.Transaction() (starknetdata/feeder/feeder.go) — only implements the above
Client.Transaction() (clients/feeder/feeder.go) — hits the legacy get_transaction feeder gateway endpoint
starknet.DeprecatedTransactionStatus (starknet/transaction.go) — only used by the method above
The only remaining references are the interface declarations, generated mocks, and a few tests that exercise the chain directly. On top of being unused, this is the last code path touching the legacy get_transaction endpoint, and it carries a //nolint:staticcheck escape in the feeder client.
Proposal: remove the method from both interfaces, drop the implementations and the DeprecatedTransactionStatus type, regenerate mocks, and clean up the tests. Happy to send a PR for this.
While going through the deprecated markers in the codebase I noticed the whole
get_transactionchain is dead code — nothing in production calls it anymore:StarknetData.Transaction()(starknetdata/starknetdata.go) — declared on the interface but never calledFeeder.Transaction()(starknetdata/feeder/feeder.go) — only implements the aboveClient.Transaction()(clients/feeder/feeder.go) — hits the legacyget_transactionfeeder gateway endpointstarknet.DeprecatedTransactionStatus(starknet/transaction.go) — only used by the method aboveThe only remaining references are the interface declarations, generated mocks, and a few tests that exercise the chain directly. On top of being unused, this is the last code path touching the legacy
get_transactionendpoint, and it carries a//nolint:staticcheckescape in the feeder client.Proposal: remove the method from both interfaces, drop the implementations and the
DeprecatedTransactionStatustype, regenerate mocks, and clean up the tests. Happy to send a PR for this.