mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-06 05:45:48 +00:00
Compare commits
5 Commits
@transia/x
...
@transia/x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab34fbeced | ||
|
|
254ac23893 | ||
|
|
68cfcac284 | ||
|
|
7550476b1a | ||
|
|
39d0a04c22 |
@@ -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": [
|
||||
|
||||
@@ -72,6 +72,10 @@ export default interface AccountRoot extends BaseLedgerEntry {
|
||||
* account to each other.
|
||||
*/
|
||||
TransferRate?: number
|
||||
ImportSequence?: string
|
||||
GovernanceFlags?: string
|
||||
GovernanceMarks?: string
|
||||
AccountIndex?: number
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,4 +24,6 @@ export default interface FeeSettings extends BaseLedgerEntry {
|
||||
* type.
|
||||
*/
|
||||
Flags: number
|
||||
XahauActivationLgrSeq?: number
|
||||
AccountCount?: number
|
||||
}
|
||||
|
||||
19
packages/xrpl/src/models/ledger/ImportVLSequence.ts
Normal file
19
packages/xrpl/src/models/ledger/ImportVLSequence.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import BaseLedgerEntry from './BaseLedgerEntry'
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
* @category Ledger Entries
|
||||
*/
|
||||
export default interface ImportVLSequence extends BaseLedgerEntry {
|
||||
LedgerEntryType: 'ImportVLSequence'
|
||||
/**
|
||||
*
|
||||
*/
|
||||
PublicKey: string
|
||||
/**
|
||||
*
|
||||
*/
|
||||
ImportSequence: string
|
||||
}
|
||||
@@ -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
|
||||
|
||||
38
packages/xrpl/src/models/ledger/UNLReport.ts
Normal file
38
packages/xrpl/src/models/ledger/UNLReport.ts
Normal 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
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user