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