diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index 3f963ab18d..3189dcd809 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stellar-sdk 0.8 +// Type definitions for stellar-sdk 0.10 // Project: https://github.com/stellar/js-stellar-sdk // Definitions by: Carl Foster // Triston Jones @@ -298,6 +298,11 @@ export interface ManageDataOperationRecord extends BaseOperationRecord { value: string; } +export interface BumpSequenceOperationRecord extends BaseOperationRecord { + type: 'bump_sequence'; + bump_to: string; +} + export type OperationRecord = CreateAccountOperationRecord | PaymentOperationRecord | PathPaymentOperationRecord @@ -308,7 +313,8 @@ export type OperationRecord = CreateAccountOperationRecord | AllowTrustOperationRecord | AccountMergeOperationRecord | InflationOperationRecord - | ManageDataOperationRecord; + | ManageDataOperationRecord + | BumpSequenceOperationRecord; export interface OrderbookRecord extends Record { bids: Array<{ price_r: {}, price: number, amount: string }>; @@ -553,7 +559,8 @@ export type TransactionOperation = | Operation.AllowTrust | Operation.AccountMerge | Operation.Inflation - | Operation.ManageData; + | Operation.ManageData + | Operation.BumpSequence; export enum OperationType { createAccount = 'createAccount', @@ -567,6 +574,7 @@ export enum OperationType { accountMerge = 'accountMerge', inflation = 'inflation', manageData = 'manageData', + bumpSequence = 'bumpSequence', } export namespace Operation { @@ -745,6 +753,16 @@ export namespace Operation { } function setOptions(options: SetOptionsOptions): xdr.Operation; + interface BumpSequence extends Operation { + type: OperationType.bumpSequence; + bumpTo: string; + } + interface BumpSequenceOptions { + bumpTo: string; + source?: string; + } + function bumpSequence(options: BumpSequenceOptions): xdr.Operation; + function fromXDRObject(xdrOperation: xdr.Operation): T; }