Skip to content

Commit

Permalink
ALL-7664 Rename delegation methods (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel authored Aug 14, 2024
1 parent 2c3d19f commit c355bdd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 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
2 changes: 1 addition & 1 deletion src/e2e/rpc/other/tatum.rpc.casper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { e2eUtil } from '../../e2e.util'

const getCasperRpc = async () => await TatumSDK.init<Casper>(e2eUtil.initConfig(Network.CASPER))

describe('Casper (%s)', () => {
describe.skip('Casper (%s)', () => {
it('info_get_status', async () => {
const casper = await getCasperRpc()
const result = await casper.rpc.infoGetStatus()
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 c355bdd

Please sign in to comment.