@ledgerhq/coin-framework
Advanced tools
Comparing version 0.21.0-nightly.4 to 0.21.0-nightly.5
@@ -26,2 +26,6 @@ export type BlockInfo = { | ||
}; | ||
export type Pagination = { | ||
limit: number; | ||
start?: number; | ||
}; | ||
export type Api = { | ||
@@ -34,4 +38,12 @@ broadcast: (tx: string) => Promise<string>; | ||
lastBlock: () => Promise<BlockInfo>; | ||
listOperations: (address: string, blockHeight: number) => Promise<Operation[]>; | ||
/** | ||
* | ||
* @param address | ||
* @param pagination The max number of operation to receive and the "id" or "index" to start from (see returns value). | ||
* @returns Operations found and the next "id" or "index" to use for pagination (i.e. `start` property).\ | ||
* If `0` is returns, no pagination needed. | ||
* This "id" or "index" value, thus it has functional meaning, is different for each blockchain. | ||
*/ | ||
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], number]>; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -26,2 +26,6 @@ export type BlockInfo = { | ||
}; | ||
export type Pagination = { | ||
limit: number; | ||
start?: number; | ||
}; | ||
export type Api = { | ||
@@ -34,4 +38,12 @@ broadcast: (tx: string) => Promise<string>; | ||
lastBlock: () => Promise<BlockInfo>; | ||
listOperations: (address: string, blockHeight: number) => Promise<Operation[]>; | ||
/** | ||
* | ||
* @param address | ||
* @param pagination The max number of operation to receive and the "id" or "index" to start from (see returns value). | ||
* @returns Operations found and the next "id" or "index" to use for pagination (i.e. `start` property).\ | ||
* If `0` is returns, no pagination needed. | ||
* This "id" or "index" value, thus it has functional meaning, is different for each blockchain. | ||
*/ | ||
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], number]>; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@ledgerhq/coin-framework", | ||
"version": "0.21.0-nightly.4", | ||
"version": "0.21.0-nightly.5", | ||
"description": "Ledger framework for Coin integration", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -30,2 +30,3 @@ export type BlockInfo = { | ||
export type Pagination = { limit: number; start?: number }; | ||
export type Api = { | ||
@@ -38,3 +39,11 @@ broadcast: (tx: string) => Promise<string>; | ||
lastBlock: () => Promise<BlockInfo>; | ||
listOperations: (address: string, blockHeight: number) => Promise<Operation[]>; | ||
/** | ||
* | ||
* @param address | ||
* @param pagination The max number of operation to receive and the "id" or "index" to start from (see returns value). | ||
* @returns Operations found and the next "id" or "index" to use for pagination (i.e. `start` property).\ | ||
* If `0` is returns, no pagination needed. | ||
* This "id" or "index" value, thus it has functional meaning, is different for each blockchain. | ||
*/ | ||
listOperations: (address: string, pagination: Pagination) => Promise<[Operation[], number]>; | ||
}; |
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
1699240
18611