@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
28 lines • 1.83 kB
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { Account as StellarSdkAccount, TransactionBuilder } from "@stellar/stellar-sdk";
export declare function buildTransactionBuilder(source: StellarSdkAccount, fee: bigint): TransactionBuilder;
export declare function buildChangeTrustOperation(assetCode: string, assetIssuer: string): {
sourceAccount(value?: import("@stellar/stellar-sdk").xdr.MuxedAccount | null | undefined): import("@stellar/stellar-sdk").xdr.MuxedAccount | null;
body(value?: import("@stellar/stellar-sdk").xdr.OperationBody | undefined): import("@stellar/stellar-sdk").xdr.OperationBody;
toXDR(format?: "raw" | undefined): Buffer;
toXDR(format: "base64" | "hex"): string;
};
export declare function buildCreateAccountOperation(destination: string, amount: bigint): {
sourceAccount(value?: import("@stellar/stellar-sdk").xdr.MuxedAccount | null | undefined): import("@stellar/stellar-sdk").xdr.MuxedAccount | null;
body(value?: import("@stellar/stellar-sdk").xdr.OperationBody | undefined): import("@stellar/stellar-sdk").xdr.OperationBody;
toXDR(format?: "raw" | undefined): Buffer;
toXDR(format: "base64" | "hex"): string;
};
export declare function buildPaymentOperation({ destination, amount, assetCode, assetIssuer, }: {
destination: string;
amount: bigint;
assetCode: string | undefined;
assetIssuer: string | undefined;
}): {
sourceAccount(value?: import("@stellar/stellar-sdk").xdr.MuxedAccount | null | undefined): import("@stellar/stellar-sdk").xdr.MuxedAccount | null;
body(value?: import("@stellar/stellar-sdk").xdr.OperationBody | undefined): import("@stellar/stellar-sdk").xdr.OperationBody;
toXDR(format?: "raw" | undefined): Buffer;
toXDR(format: "base64" | "hex"): string;
};
//# sourceMappingURL=sdkWrapper.d.ts.map