Closed chenyaoy closed 2 days ago
This update enhances the revenue sharing (revshare) functionality within dyDX protocol, specifically by introducing methods, message types, and functions for setting market mapper revenue share details for specific markets. This enables finer control over revenue allocations by market and includes both the implementation and the corresponding unit tests.
File | Change Summary |
---|---|
indexer/.../tx.rpc.msg.ts |
Added setMarketMapperRevShareDetailsForMarket method with request and response types for the Msg interface and MsgClientImpl class. |
indexer/.../tx.ts |
Introduced message interfaces MsgSetMarketMapperRevShareDetailsForMarket , MsgSetMarketMapperRevShareDetailsForMarketSDKType , and their response interfaces, with encoding and decoding functions. |
proto/.../tx.proto |
Added RPC SetMarketMapperRevShareDetailsForMarket in Msg service and corresponding message types. |
protocol/.../internal_msgs.go |
Added declarations for new message types related to revshare . |
protocol/.../msg_set_marketmapper_rev_share_details.go |
Introduced SetMarketMapperRevShareDetailsForMarket function to set revenue share details. |
protocol/.../internal_msgs_test.go |
Added new message types in internal messages test file. |
sequenceDiagram
participant User
participant Client
participant Server
participant Keeper
User->>Client: Call setMarketMapperRevShareDetailsForMarket with details
Client->>Server: Send MsgSetMarketMapperRevShareDetailsForMarket request
Server->>Keeper: Forward request with context and message
Keeper->>Server: Return MsgSetMarketMapperRevShareDetailsForMarketResponse
Server->>Client: Send response to the client
Client->>User: Return final response to the user
In lines of code, we weave our tale, Revenue sharing, set to scale. Markets mapped with utmost care, With details now beyond compare. Changes made, the code does sing, A brighter future we now bring. 🐇✨
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
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?
Changelist
[Describe or list the changes made in this PR]
Test Plan
[Describe how this PR was tested (if applicable)]
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
Documentation