diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 65430e58..ac0c3a8c 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Updated `SignedDelegateAction` types in accordance to near-docs (#90) ## [3.1.1] - 2023-11-30 ### Changed diff --git a/packages/types/src/interfaces.ts b/packages/types/src/interfaces.ts index 20eed2e7..8744e1a6 100644 --- a/packages/types/src/interfaces.ts +++ b/packages/types/src/interfaces.ts @@ -99,16 +99,18 @@ export interface DeleteAccount { export interface SignedDelegate { delegate_action: DelegateAction; - signature: {signature: Uint8Array; public_key: string}; + signature: string; } +export type NonDelegateAction = Record, Exclude>; + export interface DelegateAction { /// Signer of the delegated actions sender_id: string; /// Receiver of the delegated actions. receiver_id: string; /// List of actions to be executed. - actions: NearAction[]; + actions: NonDelegateAction[]; /// Nonce to ensure that the same delegate action is not sent twice by a relayer and should match for given account's `public_key`. /// After this action is processed it will increment. nonce: BN;