From f07d47c4bfede2387802fd304b1c2b44482386fe Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Wed, 1 Jun 2022 18:31:19 -0400 Subject: [PATCH] fix types --- packages/xrpl/src/models/common/index.ts | 7 +++++++ packages/xrpl/src/models/transactions/xChainClaim.ts | 10 ++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/xrpl/src/models/common/index.ts b/packages/xrpl/src/models/common/index.ts index 1cbc95d6..3683551d 100644 --- a/packages/xrpl/src/models/common/index.ts +++ b/packages/xrpl/src/models/common/index.ts @@ -75,6 +75,13 @@ export interface Sidechain { src_chain_issue: Currency } +export interface XChainProofSig { + XChainProofSig: { + Signature: string + PublicKey: string + } +} + /** * This information is added to Transactions in request responses, but is not part * of the canonical Transaction information on ledger. These fields are denoted with diff --git a/packages/xrpl/src/models/transactions/xChainClaim.ts b/packages/xrpl/src/models/transactions/xChainClaim.ts index ff60ed5e..26a8ab9f 100644 --- a/packages/xrpl/src/models/transactions/xChainClaim.ts +++ b/packages/xrpl/src/models/transactions/xChainClaim.ts @@ -1,14 +1,8 @@ import { ValidationError } from '../../errors' -import { Sidechain } from '../common' +import { Sidechain, XChainProofSig } from '../common' import { BaseTransaction, validateBaseTransaction } from './common' -interface Signature { - signature: string - - signing_key: string -} - /** * A XChainClaim transaction assigns, changes, or removes the regular key * pair associated with an account. @@ -23,7 +17,7 @@ export interface XChainClaim extends BaseTransaction { sidechain: Sidechain - signatures: Signature[] + signatures: XChainProofSig[] was_src_chain_send: boolean