fix types

This commit is contained in:
Mayukha Vadari
2022-06-01 18:31:19 -04:00
parent d6df030eaa
commit f07d47c4bf
2 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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