@cityofzion/blockchain-service 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces.d.ts +3 -1
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export interface BlockchainService<BSCustomName extends string = string, BSAvail
|
|
|
39
39
|
blockchainDataService: BlockchainDataService;
|
|
40
40
|
tokens: Token[];
|
|
41
41
|
network: Network<BSAvailableNetworks>;
|
|
42
|
+
clone: () => BlockchainService<BSCustomName, BSAvailableNetworks>;
|
|
42
43
|
setNetwork: (partialNetwork: Network<BSAvailableNetworks>) => void;
|
|
43
44
|
generateAccountFromMnemonic(mnemonic: string | string, index: number): Account;
|
|
44
45
|
generateAccountFromKey(key: string): Account;
|
|
@@ -221,9 +222,10 @@ export type LedgerServiceEmitter = TypedEmitter<{
|
|
|
221
222
|
getSignatureStart(): void | Promise<void>;
|
|
222
223
|
getSignatureEnd(): void | Promise<void>;
|
|
223
224
|
}>;
|
|
225
|
+
export type GetLedgerTransport = (account: Account) => Promise<Transport>;
|
|
224
226
|
export interface LedgerService {
|
|
225
227
|
emitter: LedgerServiceEmitter;
|
|
226
|
-
getLedgerTransport?:
|
|
228
|
+
getLedgerTransport?: GetLedgerTransport;
|
|
227
229
|
getAccounts(transport: Transport): Promise<Account[]>;
|
|
228
230
|
getAccount(transport: Transport, index: number): Promise<Account>;
|
|
229
231
|
}
|