Skip to content

Commit

Permalink
ALL-7664 Rename delegation methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Aug 14, 2024
1 parent 2c3d19f commit 63df5ed
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.2.39] - 2024.8.14

### Updated

- Rename delegation methods

## [4.2.38] - 2024.7.23

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "4.2.38",
"version": "4.2.39",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
4 changes: 2 additions & 2 deletions src/dto/rpc/CosmosRpcSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1346,9 +1346,9 @@ export interface CosmosRpcSuite extends CardanoRpcSuite {

getCommunityPool(): Promise<GetCommunityPoolResponse>

getDelegateTotalRewards(params: GetDelegationTotalRewardsRequest): Promise<GetDelegationTotalRewardsResponse>
getDelegationTotalRewards(params: GetDelegationTotalRewardsRequest): Promise<GetDelegationTotalRewardsResponse>

getDelegateRewards(params: GetDelegationRewardsRequest): Promise<GetDelegationRewardsResponse>
getDelegationRewards(params: GetDelegationRewardsRequest): Promise<GetDelegationRewardsResponse>

getDelegatorValidators(params: GetDelegatorValidatorsRequest): Promise<GetDelegatorValidatorsResponse>

Expand Down
4 changes: 2 additions & 2 deletions src/service/rpc/other/AbstractCosmosRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ export abstract class AbstractCosmosRpc extends AbstractCardanoRpc implements Co
});
}

getDelegateTotalRewards(params: GetDelegationTotalRewardsRequest): Promise<GetDelegationTotalRewardsResponse> {
getDelegationTotalRewards(params: GetDelegationTotalRewardsRequest): Promise<GetDelegationTotalRewardsResponse> {
const { delegator_address } = params;
return this.sendGet({
path: `/api/cosmos/distribution/v1beta1/delegators/${delegator_address}/rewards`,
});
}

getDelegateRewards(params: GetDelegationRewardsRequest): Promise<GetDelegationRewardsResponse> {
getDelegationRewards(params: GetDelegationRewardsRequest): Promise<GetDelegationRewardsResponse> {
const { delegator_address, validator_address } = params;
return this.sendGet({
path: `/api/cosmos/distribution/v1beta1/delegators/${delegator_address}/rewards/${validator_address}`,
Expand Down

0 comments on commit 63df5ed

Please sign in to comment.