@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
336 lines • 14.6 kB
TypeScript
declare const _default: {
algorand: {
options: ({
name: string;
type: StringConstructor;
desc: string;
alias?: undefined;
multiple?: undefined;
} | {
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: {
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-algorand/lib/types").AlgorandTransaction;
}[], opts: Record<string, any>, { inferAmount }: any) => import("@ledgerhq/coin-algorand/lib/types").AlgorandTransaction[];
};
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: {
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?: undefined;
multiple?: undefined;
} | {
name: string;
alias: string;
type: StringConstructor;
multiple: boolean;
desc: string;
} | {
name: string;
type: BooleanConstructor;
desc: string;
alias?: undefined;
multiple?: undefined;
})[];
inferTransactions: (transactions: {
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").TokenAccount[] | import("@ledgerhq/types-live").Account[];
inferTransactions: (transactions: {
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: {
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: {
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-canton/lib/index").Transaction;
}[], opts: {
tag?: number | null | undefined;
fee?: string | undefined;
}, { inferAmount, }: {
inferAmount: (account: import("@ledgerhq/types-live").AccountLike, fee?: string | undefined) => 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: {
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>;
};
};
};
cosmos: {
options: ({
name: string;
type: StringConstructor;
desc: string;
multiple?: undefined;
} | {
name: string;
type: StringConstructor;
multiple: boolean;
desc: string;
})[];
inferTransactions: (transactions: {
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: {};
hedera: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: {
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: {
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: {
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: {
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: {
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: {
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: {
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: {
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>>) => import("@ledgerhq/coin-solana/lib/types").Transaction[];
};
stacks: {
options: never[];
inferAccounts: (account: import("@ledgerhq/types-live").Account) => import("@ledgerhq/types-live").AccountLikeArray;
inferTransactions: (transactions: {
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: {
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-stellar/lib/types/bridge").Transaction;
}[], opts: Record<string, any>) => import("@ledgerhq/coin-stellar/lib/types/bridge").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: {
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: {
name: string;
type: any;
desc: string;
}[];
inferTransactions: (transactions: {
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: {
account: import("@ledgerhq/types-live").AccountLike;
transaction: import("@ledgerhq/coin-xrp/lib/types/bridge").Transaction;
}[], opts: {
tag?: number | null | undefined;
fee?: string | undefined;
}, { inferAmount, }: {
inferAmount: (account: import("@ledgerhq/types-live").AccountLike, fee?: string | undefined) => import("bignumber.js").BigNumber | null | undefined;
}) => import("@ledgerhq/coin-xrp/lib/types/bridge").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: {
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