Skip to content

Commit

Permalink
fix signDelegateAction params
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsonevv committed Nov 11, 2024
1 parent 1fd5864 commit e5aa0c5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/core/src/lib/wallet/wallet.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import type { ReadOnlyStore } from "../store.types";
import type { Transaction, Action } from "./transactions.types";
import type { Modify, Optional } from "../utils.types";
import type { FinalExecutionOutcome } from "near-api-js/lib/providers";
import type {
SignedTransaction,
Signature,
} from "near-api-js/lib/transaction";
import type { SignedTransaction, Signature } from "near-api-js/lib/transaction";
import type { PublicKey } from "near-api-js/lib/utils";

interface BaseWalletMetadata {
Expand Down Expand Up @@ -146,6 +143,13 @@ interface SignTransactionParams {
callbackUrl?: string;
}

interface SignDelegateActionParams {
senderId: string;
receiverId: string;
actions: Array<Action>;
callbackUrl?: string;
}

interface DelegateAction {
/**
* Account ID for the intended signer of the delegate action
Expand Down Expand Up @@ -232,10 +236,7 @@ interface BaseWalletBehaviour {
* Composes and signs a SignedDelegate action to be executed in a transaction
*/
signDelegateAction?(
senderId: string,
receiverId: string,
actions: Array<Action>,
callbackUrl?: string
params: SignDelegateActionParams
): Promise<SignedDelegateWithHash | void>;
}

Expand Down

0 comments on commit e5aa0c5

Please sign in to comment.