@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
360 lines • 15.7 kB
TypeScript
declare const _default: {
aleo: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-aleo/lib/types/bridge").Transaction;
}>) => import("@ledgerhq/coin-aleo/lib/types/bridge").Transaction[];
};
algorand: {
options: ({
name: string;
type: StringConstructor;
desc: string;
alias?: never;
multiple?: never;
} | {
name: string;
alias: string;
type: StringConstructor;
desc: string;
multiple: boolean;
})[];
inferAccounts: (account: import("@ledgerhq/types-live").Account, opts: Record<string, any>) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-algorand/lib/types").Transaction;
}>, opts: Record<string, any>, { inferAmount }: any) => import("@ledgerhq/coin-algorand/lib/types").Transaction[];
};
aptos: {
options: {
name: string;
alias: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (account: import("@ledgerhq/types-live").Account, opts: Record<string, any>) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-aptos/lib/types/index").Transaction;
}>) => import("@ledgerhq/coin-aptos/lib/types/index").Transaction[];
};
bitcoin: {
options: ({
name: string;
type: StringConstructor;
desc: string;
alias?: never;
multiple?: never;
} | {
name: string;
alias: string;
type: StringConstructor;
multiple: boolean;
desc: string;
} | {
name: string;
type: BooleanConstructor;
desc: string;
alias?: never;
multiple?: never;
})[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-bitcoin/lib/types").Transaction;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-bitcoin/lib/types").Transaction[];
};
cardano: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (account: import("@ledgerhq/types-live").Account, opts: Record<string, any>) => import("@ledgerhq/types-live").Account[] | import("@ledgerhq/types-live").TokenAccount[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-cardano/lib/types").Transaction;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-cardano/lib/types").Transaction[];
};
casper: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-casper/lib/types/common").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>) => import("@ledgerhq/coin-casper/lib/types/common").Transaction[];
};
canton: {
options: ({
name: string;
type: StringConstructor;
desc: string;
} | {
name: string;
type: NumberConstructor;
desc: string;
})[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-canton/lib/index").Transaction;
}>, opts: {
tag?: number | null | undefined;
fee?: string;
}, { inferAmount, }: {
inferAmount: (account: import("@ledgerhq/types-live").AccountLike, fee?: string) => import("bignumber.js").BigNumber | null | undefined;
}) => import("@ledgerhq/coin-canton/lib/index").Transaction[];
};
celo: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-celo/lib/types/types").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-celo/lib/types/types").Transaction[];
commands: {
celoValidatorGroups: {
args: never[];
job: () => import("rxjs").Observable<string>;
};
};
};
concordium: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-concordium/lib/index").Transaction;
}>, opts: {
memo?: string | null | undefined;
fee?: string;
}, { inferAmount, }: {
inferAmount: (account: import("@ledgerhq/types-live").AccountLike, fee?: string) => import("bignumber.js").BigNumber | null | undefined;
}) => import("@ledgerhq/coin-concordium/lib/index").Transaction[];
};
cosmos: {
options: ({
name: string;
type: StringConstructor;
desc: string;
multiple?: never;
} | {
name: string;
type: StringConstructor;
multiple: boolean;
desc: string;
})[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-cosmos/lib/types/index").Transaction;
}>, opts: Record<string, any>, { inferAmount }: any) => import("@ledgerhq/coin-cosmos/lib/types/index").Transaction[];
commands: {
cosmosValidators: {
args: {
name: string;
desc: string;
type: StringConstructor;
}[];
job: ({ format, }: Partial<{
format: string;
}>) => import("rxjs").Observable<string>;
};
};
};
evm: object;
hedera: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-hedera/lib/types/bridge").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>) => import("@ledgerhq/coin-hedera/lib/types/bridge").Transaction[];
};
filecoin: {
options: {
name: string;
alias: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (account: import("@ledgerhq/types-live").Account, opts: Record<string, any>) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-filecoin/lib/types/bridge").Transaction;
}>) => import("@ledgerhq/coin-filecoin/lib/types/bridge").Transaction[];
};
internet_computer: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-internet_computer/lib/types/common").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>) => import("@ledgerhq/coin-internet_computer/lib/types/common").Transaction[];
};
icon: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-icon/lib/types/index").Transaction;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-icon/lib/types/index").Transaction[];
};
kaspa: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-kaspa/lib/types/bridge").Transaction;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-kaspa/lib/types/bridge").Transaction[];
};
multiversx: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-multiversx/lib/types").Transaction;
}>, _opts: Record<string, any>) => import("@ledgerhq/coin-multiversx/lib/types").Transaction[];
};
near: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-near/lib/types").Transaction;
}>, opts: Record<string, string>) => import("@ledgerhq/coin-near/lib/types").Transaction[];
};
polkadot: import("@ledgerhq/coin-polkadot/lib/test/cli").CliTools;
solana: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (mainAccount: import("@ledgerhq/types-live").Account, opts: Record<string, string>) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
mainAccount: import("@ledgerhq/types-live").Account;
transaction: import("@ledgerhq/coin-solana/lib/types").Transaction;
}>, opts: Partial<Record<string, string>>) => Promise<import("@ledgerhq/coin-solana/lib/types").Transaction[]>;
};
stacks: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-stacks/lib/index").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>) => import("@ledgerhq/coin-stacks/lib/index").Transaction[];
};
stellar: {
options: readonly [{
readonly name: "fee";
readonly type: StringConstructor;
readonly desc: "how much fee";
}, {
readonly name: "memoType";
readonly type: StringConstructor;
readonly desc: "stellar memo type";
}, {
readonly name: "memoValue";
readonly type: StringConstructor;
readonly desc: "stellar memo value";
}, {
readonly name: "mode";
readonly type: StringConstructor;
readonly desc: "change operation type";
}, {
readonly name: "assetIssuer";
readonly type: StringConstructor;
readonly desc: "Asset issuer";
}, {
readonly name: "assetCode";
readonly type: StringConstructor;
readonly desc: "Same as token";
}];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("../families/stellar/types").Transaction;
}>, opts: Record<string, any>) => import("../families/stellar/types").Transaction[];
inferAccounts: (account: import("@ledgerhq/types-live").Account, opts: Record<string, any>) => import("@ledgerhq/types-live").AccountLikeArray;
};
tezos: import("@ledgerhq/coin-tezos/lib/test/cli").CliTools;
ton: {
options: never[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-ton/lib/types").Transaction;
}>, opts: Record<string, string>) => import("@ledgerhq/coin-ton/lib/types").Transaction[];
};
tron: import("@ledgerhq/coin-tron/lib/test/cli").CliTools;
vechain: {
options: Array<{
name: string;
type: any;
desc: string;
}>;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-vechain/lib/types/bridge").Transaction;
mainAccount: import("@ledgerhq/types-live").Account;
}>, opts: Record<string, any>) => import("@ledgerhq/coin-vechain/lib/types/bridge").Transaction[];
};
xrp: {
options: ({
name: string;
type: StringConstructor;
desc: string;
} | {
name: string;
type: NumberConstructor;
desc: string;
})[];
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("../families/xrp/types").Transaction;
}>, opts: {
tag?: number | null | undefined;
fee?: string;
}, { inferAmount, }: {
inferAmount: (account: import("@ledgerhq/types-live").AccountLike, fee?: string) => import("bignumber.js").BigNumber | null | undefined;
}) => import("../families/xrp/types").Transaction[];
};
sui: import("@ledgerhq/coin-sui/lib/test/cli").CliTools;
mina: {
options: {
name: string;
type: StringConstructor;
desc: string;
}[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: Array<{
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-mina/lib/types/common").Transaction;
}>, opts: Record<string, string>) => import("@ledgerhq/coin-mina/lib/types/common").Transaction[];
};
};
export default _default;
//# sourceMappingURL=cli-transaction.d.ts.map