stellar-plus
Version:
beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain
45 lines (44 loc) • 1.42 kB
TypeScript
import { FeeBumpTransaction, Operation, Transaction } from '@stellar/stellar-sdk';
import { AccountHandler } from '../../../stellar-plus/account/account-handler/types';
import { EnvelopeHeader, FeeBumpHeader } from '../../../stellar-plus/core/types';
export type TransactionInvocationMeta = string | {
header?: {
fee: string;
source: string;
timeout: number;
};
signers?: string[];
feebump?: FeeBumpHeaderMeta;
};
type FeeBumpHeaderMeta = {
header?: {
fee: string;
source: string;
timeout: number;
};
signers?: string[];
};
export declare const extractTransactionInvocationMeta: (txInvocationArgs: {
header?: EnvelopeHeader;
signers?: AccountHandler[];
feeBump?: FeeBumpHeader;
}, stringfy: boolean) => TransactionInvocationMeta;
export type TransactionData = FeeBumpTransactionData & {
source: string;
fee: string;
sequence: string;
minTime?: string;
maxTime?: string;
operations?: OperationData[] | string;
};
export type OperationData = {
type: string;
source?: string;
};
export type FeeBumpTransactionData = {
feeSource: string;
feeBumpFee: string;
};
export declare const extractTransactionData: (envelope: Transaction | FeeBumpTransaction) => TransactionData;
export declare const extractOperationsData: (operations: Operation[], stringfy: boolean) => OperationData[] | string;
export {};