mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
[@types/stellar-sdk] Add bumpSequence operation (#29554)
This commit is contained in:
Vendored
+21
-3
@@ -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 <https://github.com/carl-foster>
|
||||
// Triston Jones <https://github.com/tristonj>
|
||||
@@ -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<SetOptions>;
|
||||
|
||||
interface BumpSequence extends Operation {
|
||||
type: OperationType.bumpSequence;
|
||||
bumpTo: string;
|
||||
}
|
||||
interface BumpSequenceOptions {
|
||||
bumpTo: string;
|
||||
source?: string;
|
||||
}
|
||||
function bumpSequence(options: BumpSequenceOptions): xdr.Operation<BumpSequence>;
|
||||
|
||||
function fromXDRObject<T extends Operation>(xdrOperation: xdr.Operation<T>): T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user