TransactionStore
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
getPersistent(jdb: JungleDB): TransactionStore |
|
public static |
initPersistent(jdb: JungleDB) |
Constructor Summary
Public Constructor | ||
public |
constructor(store: IObjectStore) |
Member Summary
Public Members | ||
public get |
|
Method Summary
Public Methods | ||
public |
abort(): Promise |
|
public |
commit(): Promise<boolean> |
|
public |
async get(transactionHash: Hash): Promise<TransactionStoreEntry> |
|
public |
async getByRecipient(recipient: Address, limit: number): Promise<Array<TransactionStoreEntry>> |
|
public |
async getBySender(sender: Address, limit: number): Promise<Array<TransactionStoreEntry>> |
|
public |
|
|
public |
|
|
public |
|
|
public |
transaction(enableWatchdog: boolean): TransactionStore |
|
public |
truncate(): Promise |
Static Public Methods
public static getPersistent(jdb: JungleDB): TransactionStore source
Params:
Name | Type | Attribute | Description |
jdb | JungleDB |
public static initPersistent(jdb: JungleDB) source
Params:
Name | Type | Attribute | Description |
jdb | JungleDB |
Public Constructors
public constructor(store: IObjectStore) source
Params:
Name | Type | Attribute | Description |
store | IObjectStore |
Public Members
public get tx: Transaction source
Public Methods
public async get(transactionHash: Hash): Promise<TransactionStoreEntry> source
Params:
Name | Type | Attribute | Description |
transactionHash | Hash |
public async getByRecipient(recipient: Address, limit: number): Promise<Array<TransactionStoreEntry>> source
Params:
Name | Type | Attribute | Description |
recipient | Address | ||
limit | number |
|
public async getBySender(sender: Address, limit: number): Promise<Array<TransactionStoreEntry>> source
Params:
Name | Type | Attribute | Description |
sender | Address | ||
limit | number |
|
public async put(block: Block): Promise source
Params:
Name | Type | Attribute | Description |
block | Block |
Return:
Promise |
public async remove(block: Block): Promise source
Params:
Name | Type | Attribute | Description |
block | Block |
Return:
Promise |
public snapshot(tx: TransactionStore): TransactionStore source
Params:
Name | Type | Attribute | Description |
tx | TransactionStore |
|
public transaction(enableWatchdog: boolean): TransactionStore source
Params:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|