@ledgerhq/types-live
Advanced tools
Comparing version 6.55.0-nightly.2 to 6.55.0-nightly.3
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { BigNumber } from "bignumber.js"; | ||
@@ -91,3 +92,3 @@ import type { Observable } from "rxjs"; | ||
*/ | ||
export interface AccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> { | ||
interface SendReceiveAccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> { | ||
sync(initialAccount: A, syncConfig: SyncConfig): Observable<(arg0: A) => A>; | ||
@@ -143,2 +144,6 @@ receive(account: A, arg1: { | ||
} | ||
type AccountBridgeWithExchange<A extends Account = Account> = { | ||
getSerializedAddressParameters: (account: A, addressFormat?: string) => Buffer; | ||
}; | ||
export type AccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> = SendReceiveAccountBridge<T, A, U, R> & AccountBridgeWithExchange<A>; | ||
type ExpectFn = (...args: Array<any>) => any; | ||
@@ -145,0 +150,0 @@ type CurrencyTransaction<T extends TransactionCommon> = { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { BigNumber } from "bignumber.js"; | ||
@@ -91,3 +92,3 @@ import type { Observable } from "rxjs"; | ||
*/ | ||
export interface AccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> { | ||
interface SendReceiveAccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> { | ||
sync(initialAccount: A, syncConfig: SyncConfig): Observable<(arg0: A) => A>; | ||
@@ -143,2 +144,6 @@ receive(account: A, arg1: { | ||
} | ||
type AccountBridgeWithExchange<A extends Account = Account> = { | ||
getSerializedAddressParameters: (account: A, addressFormat?: string) => Buffer; | ||
}; | ||
export type AccountBridge<T extends TransactionCommon, A extends Account = Account, U extends TransactionStatusCommon = TransactionStatusCommon, R extends AccountRaw = AccountRaw> = SendReceiveAccountBridge<T, A, U, R> & AccountBridgeWithExchange<A>; | ||
type ExpectFn = (...args: Array<any>) => any; | ||
@@ -145,0 +150,0 @@ type CurrencyTransaction<T extends TransactionCommon> = { |
{ | ||
"name": "@ledgerhq/types-live", | ||
"version": "6.55.0-nightly.2", | ||
"version": "6.55.0-nightly.3", | ||
"description": "Ledger Live main types.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -135,3 +135,3 @@ // NB this new "bridge" is a re-take of live-desktop bridge ideas | ||
*/ | ||
export interface AccountBridge< | ||
interface SendReceiveAccountBridge< | ||
T extends TransactionCommon, | ||
@@ -224,2 +224,13 @@ A extends Account = Account, | ||
type AccountBridgeWithExchange<A extends Account = Account> = { | ||
getSerializedAddressParameters: (account: A, addressFormat?: string) => Buffer; | ||
}; | ||
export type AccountBridge< | ||
T extends TransactionCommon, | ||
A extends Account = Account, | ||
U extends TransactionStatusCommon = TransactionStatusCommon, | ||
R extends AccountRaw = AccountRaw, | ||
> = SendReceiveAccountBridge<T, A, U, R> & AccountBridgeWithExchange<A>; | ||
type ExpectFn = (...args: Array<any>) => any; | ||
@@ -226,0 +237,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
396853
6291