Closed aarmoa closed 7 months ago
The recent update brings significant enhancements to the ChainClient
interface, expanding it to include methods for the distribution module. This update enables interactions with various distribution-related information within blockchain networks, such as validator distribution, rewards, commissions, slashes, and community pool details. Practical examples demonstrate setting withdrawal addresses, withdrawing validator commissions, funding the community pool, and querying distribution-related information.
Files | Change Summary |
---|---|
client/chain/chain.go , client/chain/chain_test_support.go |
Expanded ChainClient interface to include distribution module methods. Added distributionQueryClient field. |
examples/chain/distribution/1_SetWithdrawAddress/example.go |
Introduces setting withdrawal addresses for delegators using the Injective Labs SDK. |
examples/chain/distribution/3_WithdrawValidatorCommission/example.go |
Presents a program to withdraw validator commission in a blockchain network using the InjectiveLabs SDK. |
examples/chain/distribution/4_FundCommunityPool/example.go |
Adds functionality to fund the community pool in a blockchain network using the InjectiveLabs SDK. |
examples/chain/distribution/query/4_ValidatorSlashes/example.go |
Introduces a program to fetch validator slash information in a blockchain network using the InjectiveLabs SDK. |
"In the realm of code, where logic intertwines,
A rabbit hopped in, with changes so fine.
🌟 From yaml to chain, it leaped with ease,
Unveiling treasures, for developers to seize.
🚀 To the cosmos and beyond, it whispered in the night,
'Let your code flourish, in the blockchain's light.'"
Attention: Patch coverage is 1.51515%
with 65 lines
in your changes are missing coverage. Please review.
Project coverage is 29.01%. Comparing base (
bd9ffbe
) to head (d64bc93
).
Files | Patch % | Lines |
---|---|---|
client/chain/chain.go | 2.08% | 47 Missing :warning: |
client/chain/chain_test_support.go | 0.00% | 18 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
distribution
module.Summary by CodeRabbit
ChainClient
interface to include distribution module methods for blockchain interactions.