add XChainOwnedClaimID ledger object

This commit is contained in:
Mayukha Vadari
2023-02-14 14:53:10 -05:00
parent c3bb4d9b72
commit 218ca41df3
3 changed files with 47 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ export default interface Bridge extends BaseLedgerEntry {
XChainAccountCreateCount: number
XChainAccountClaimCount: Amount
/**
* A bit-map of boolean flags. No flags are defined for Bridges, so this value
* is always 0.
*/
Flags: 0
/**
* A hint indicating which page of the sender's owner directory links to this
* object, in case the directory consists of multiple pages.

View File

@@ -0,0 +1,40 @@
import { XChainBridge } from '../common'
import BaseLedgerEntry from './BaseLedgerEntry'
export default interface XChainOwnedClaimID extends BaseLedgerEntry {
LedgerEntryType: 'XChainOwnedClaimID'
Account: string
XChainBridge: XChainBridge
XChainClaimID: string
OtherChainSource: string
// TODO: type this better
XChainClaimAttestations: object[]
SignatureReward: string
/**
* A bit-map of boolean flags. No flags are defined for XChainOwnedClaimIDs,
* so this value is always 0.
*/
Flags: 0
/**
* A hint indicating which page of the sender's owner directory links to this
* object, in case the directory consists of multiple pages.
*/
OwnerNode: string
/**
* The identifying hash of the transaction that most recently modified this
* object.
*/
PreviousTxnID: string
/**
* The index of the ledger that contains the transaction that most recently
* modified this object.
*/
PreviousTxnLgrSeq: number
}

View File

@@ -18,6 +18,7 @@ import PayChannel from './PayChannel'
import RippleState, { RippleStateFlags } from './RippleState'
import SignerList, { SignerListFlags } from './SignerList'
import Ticket from './Ticket'
import XChainOwnedClaimID from './XChainOwnedClaimID'
export {
AccountRoot,
@@ -42,4 +43,5 @@ export {
SignerList,
SignerListFlags,
Ticket,
XChainOwnedClaimID,
}