Closed teddyding closed 6 days ago
The changes introduce a new LCDQueryClient
class for querying affiliate-related information in the dydxprotocol
, with methods for fetching affiliate info, referred affiliates, affiliate tiers, and whitelists. Additionally, the bundle.ts
file has been updated to reflect new import paths for various modules, and the createLCDClient
function now includes a new affiliates
property. The query.proto
file has been modified to allow HTTP GET requests for affiliate-related RPC methods, and the RegisterGRPCGatewayRoutes
method in module.go
has been updated to register a gRPC query handler client.
File | Change Summary |
---|---|
indexer/packages/v4-protos/src/codegen/dydxprotocol/affiliates/query.lcd.ts |
Added LCDQueryClient class with methods for affiliate queries. |
indexer/packages/v4-protos/src/codegen/dydxprotocol/bundle.ts |
Updated import statements for various modules, including new paths for query and transaction modules. |
indexer/packages/v4-protos/src/codegen/dydxprotocol/lcd.ts |
Added affiliates property to createLCDClient , initialized with LCDQueryClient . |
proto/dydxprotocol/affiliates/query.proto |
Updated RPC methods to include HTTP GET options for affiliate-related endpoints. |
protocol/x/affiliates/module.go |
Modified RegisterGRPCGatewayRoutes to register a gRPC query handler client. |
LCDQueryClient
class introduced in the main PR, as both involve querying affiliate-related data.LCDQueryClient
methods for retrieving affiliate information.indexer
, protocol
, proto
, pml
🐰 In the world of code, so bright and new,
A client for queries, we built just for you!
With methods to fetch, and data to share,
Affiliates united, in the code we declare.
From bundles to routes, all neatly aligned,
In the garden of logic, our changes entwined! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@Mergifyio backport release/protocol/v7.x
backport release/protocol/v7.x
Changelist
[Describe or list the changes made in this PR]
Test Plan
Tested by visiting http://localhost:1317/dydxprotocol/affiliates/all_affiliate_tiers and http://localhost:1317/dydxprotocol/affiliates/affiliate_whitelist
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
LCDQueryClient
for querying affiliate-related information.affiliateInfo
,referredBy
,allAffiliateTiers
, andaffiliateWhitelist
.createLCDClient
to include anaffiliates
property.Improvements
query.proto
file to allow HTTP GET requests for affiliate-related RPC methods.Bug Fixes
bundle.ts
file to ensure proper module referencing.