diff --git a/packages/xrpl/src/models/ledger/Bridge.ts b/packages/xrpl/src/models/ledger/Bridge.ts new file mode 100644 index 00000000..b5d25bf4 --- /dev/null +++ b/packages/xrpl/src/models/ledger/Bridge.ts @@ -0,0 +1,36 @@ +import { Amount, XChainBridge } from '../common' + +import BaseLedgerEntry from './BaseLedgerEntry' + +export default interface Bridge extends BaseLedgerEntry { + LedgerEntryType: 'Bridge' + + Account: string + + SignatureReward: Amount + + MinAccountCreateAmount?: string + + XChainBridge: XChainBridge + + XChainClaimID: string + + XChainAccountCreateCount: number + + XChainAccountClaimCount: Amount + /** + * 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 +} diff --git a/packages/xrpl/src/models/ledger/index.ts b/packages/xrpl/src/models/ledger/index.ts index fbb31d40..4df0a8a9 100644 --- a/packages/xrpl/src/models/ledger/index.ts +++ b/packages/xrpl/src/models/ledger/index.ts @@ -3,6 +3,7 @@ import AccountRoot, { AccountRootFlagsInterface, } from './AccountRoot' import Amendments from './Amendments' +import Bridge from './Bridge' import Check from './Check' import DepositPreauth from './DepositPreauth' import DirectoryNode from './DirectoryNode' @@ -23,6 +24,7 @@ export { AccountRootFlags, AccountRootFlagsInterface, Amendments, + Bridge, Check, DepositPreauth, DirectoryNode,