Skip to content

Commit

Permalink
chore: narrow return type for redelegate, undelegate
Browse files Browse the repository at this point in the history
spec called for no cosmjs types
  • Loading branch information
dckc committed May 13, 2024
1 parent 8d3ed35 commit 43b8c97
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/orchestration/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import type { Timestamp } from '@agoric/time';
import type { Invitation } from '@agoric/zoe/exported.js';
import type { Any } from '@agoric/cosmic-proto/google/protobuf/any';
import type { AnyJson } from '@agoric/cosmic-proto';
import type {
MsgBeginRedelegateResponse,
MsgUndelegateResponse,
} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
import type {
Delegation,
Redelegation,
Expand Down Expand Up @@ -351,14 +347,14 @@ export interface StakingAccountActions {
srcValidator: CosmosValidatorAddress,
dstValidator: CosmosValidatorAddress,
amount: AmountArg,
) => Promise<MsgBeginRedelegateResponse>;
) => Promise<void>;

/**
* Undelegate multiple delegations (concurrently). To delegate independently, pass an array with one item.
* Resolves when the undelegation is complete and the tokens are no longer bonded. Note it may take weeks.
* @param {Delegation[]} delegations - the delegation to undelegate
*/
undelegate: (delegations: Delegation[]) => Promise<MsgUndelegateResponse>;
undelegate: (delegations: Delegation[]) => Promise<void>;

/**
* Withdraw rewards from all validators. The promise settles when the rewards are withdrawn.
Expand Down

0 comments on commit 43b8c97

Please sign in to comment.