mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-05 01:36:47 +00:00
fix types
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user