Compare commits

...

5 Commits

Author SHA1 Message Date
Denis Angell
ab34fbeced Publish
- @transia/xrpl@2.7.3-alpha.14
2023-09-27 08:17:01 +02:00
Denis Angell
254ac23893 fixup ledger entries 2023-09-27 08:16:41 +02:00
Denis Angell
68cfcac284 Publish
- @transia/xrpl@2.7.3-alpha.13
2023-09-27 07:38:08 +02:00
Denis Angell
7550476b1a update ledger entries 2023-09-27 07:37:41 +02:00
Denis Angell
39d0a04c22 Update accountObjects.ts 2023-09-26 09:18:57 +02:00
9 changed files with 88 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@transia/xrpl",
"version": "2.7.3-alpha.12",
"version": "2.7.3-alpha.14",
"license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [

View File

@@ -72,6 +72,10 @@ export default interface AccountRoot extends BaseLedgerEntry {
* account to each other.
*/
TransferRate?: number
ImportSequence?: string
GovernanceFlags?: string
GovernanceMarks?: string
AccountIndex?: number
}
/**

View File

@@ -24,4 +24,6 @@ export default interface FeeSettings extends BaseLedgerEntry {
* type.
*/
Flags: number
XahauActivationLgrSeq?: number
AccountCount?: number
}

View File

@@ -0,0 +1,19 @@
import BaseLedgerEntry from './BaseLedgerEntry'
/**
*
*
*
* @category Ledger Entries
*/
export default interface ImportVLSequence extends BaseLedgerEntry {
LedgerEntryType: 'ImportVLSequence'
/**
*
*/
PublicKey: string
/**
*
*/
ImportSequence: string
}

View File

@@ -9,6 +9,7 @@ import FeeSettings from './FeeSettings'
import Hook from './Hook'
import HookDefinition from './HookDefinition'
import HookState from './HookState'
import ImportVLSequence from './ImportVLSequence'
import LedgerHashes from './LedgerHashes'
import NegativeUNL from './NegativeUNL'
import Offer from './Offer'
@@ -16,6 +17,8 @@ import PayChannel from './PayChannel'
import RippleState from './RippleState'
import SignerList from './SignerList'
import Ticket from './Ticket'
import UNLReport from './UNLReport'
import URIToken from './URIToken'
type LedgerEntry =
| AccountRoot
@@ -29,6 +32,7 @@ type LedgerEntry =
| Hook
| HookDefinition
| HookState
| ImportVLSequence
| LedgerHashes
| NegativeUNL
| Offer
@@ -36,5 +40,7 @@ type LedgerEntry =
| RippleState
| SignerList
| Ticket
| UNLReport
| URIToken
export default LedgerEntry

View File

@@ -0,0 +1,38 @@
import BaseLedgerEntry from './BaseLedgerEntry'
interface ImportVLKey {
PublicKey: string
Account?: string
}
interface ActiveValidators {
PublicKey: string
Account?: string
}
/**
*
*
*
* @category Ledger Entries
*/
export default interface UNLReport extends BaseLedgerEntry {
LedgerEntryType: 'UNLReport'
/**
*
*/
ImportVLKeys?: ImportVLKey[]
/**
*
*/
ActiveValidators?: ActiveValidators[]
/**
* 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

@@ -12,6 +12,7 @@ import FeeSettings from './FeeSettings'
import Hook from './Hook'
import HookDefinition from './HookDefinition'
import HookState from './HookState'
import ImportVLSequence from './ImportVLSequence'
import Ledger from './Ledger'
import LedgerEntry from './LedgerEntry'
import LedgerHashes from './LedgerHashes'
@@ -21,6 +22,7 @@ import PayChannel from './PayChannel'
import RippleState, { RippleStateFlags } from './RippleState'
import SignerList, { SignerListFlags } from './SignerList'
import Ticket from './Ticket'
import UNLReport from './UNLReport'
import URIToken from './URIToken'
export {
@@ -37,6 +39,7 @@ export {
Hook,
HookDefinition,
HookState,
ImportVLSequence,
Ledger,
LedgerEntry,
LedgerHashes,
@@ -49,5 +52,6 @@ export {
SignerList,
SignerListFlags,
Ticket,
UNLReport,
URIToken,
}

View File

@@ -3,6 +3,7 @@ import {
Check,
DepositPreauth,
Escrow,
Hook,
Offer,
PayChannel,
RippleState,
@@ -17,6 +18,7 @@ type AccountObjectType =
| 'check'
| 'deposit_preauth'
| 'escrow'
| 'hook'
| 'nft_offer'
| 'offer'
| 'payment_channel'
@@ -75,6 +77,7 @@ type AccountObject =
| Check
| DepositPreauth
| Escrow
| Hook
| Offer
| PayChannel
| SignerList

View File

@@ -127,6 +127,17 @@ export interface LedgerEntryRequest extends BaseRequest {
namespace_id: string
}
/**
* The Import VL Sequence object to retrieve. If a string, must be the object ID of the VLSequence.
* If an object, requires `public_key` sub-field.
*/
import_vlseq?:
| {
/** The public_key of the Import VL Sequence object. */
public_key: string
}
| string
/**
* The Offer object to retrieve. If a string, interpret as the unique object
* ID to the Offer. If an object, requires the sub-fields `account` and `seq`