Static Method Summary
Static Public Methods | ||
public static |
create(balance: number, blockHeight: number, transaction: Transaction): * |
|
public static |
|
|
public static |
verifyIncomingTransaction(transaction: Transaction): boolean |
|
public static |
verifyOutgoingTransaction(transaction: Transaction): boolean |
Constructor Summary
Public Constructor | ||
public |
constructor(balance: number, sender: Address, recipient: Address, hashRoot: Hash, hashCount: number, timeout: number, totalAmount: number) |
Member Summary
Public Members | ||
public get |
hashCount: number |
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
serializedSize: number: * |
|
public get |
timeout: number |
|
public get |
totalAmount: number |
Method Summary
Public Methods | ||
public |
Check if two Accounts are the same. |
|
public |
serialize(buf: SerialBuffer): SerialBuffer Serialize this HTLC object into binary form. |
|
public |
toString(): string |
|
public |
withBalance(balance: number): Account | * |
|
public |
withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withOutgoingTransaction(transaction: Transaction, blockHeight: number, transactionsCache: TransactionCache, revert: boolean): Account | * |
Inherited Summary
From class Account | ||
public static |
unserialize(buf: SerialBuffer): Account Create Account object from binary form. |
|
public get |
balance: number |
|
public get |
serializedSize: number: * |
|
public get |
type: Account.Type |
|
public |
Check if two Accounts are the same. |
|
public |
isInitial(): boolean |
|
public |
isToBePruned(): boolean |
|
public |
serialize(buf: SerialBuffer): SerialBuffer Serialize this Account object into binary form. |
|
public |
toString(): string |
|
public |
withBalance(balance: number): Account | * |
|
public |
withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withOutgoingTransaction(transaction: Transaction, blockHeight: number, transactionsCache: TransactionCache, revert: boolean): Account |
From class Contract | ||
public static |
verifyIncomingTransaction(transaction: Transaction): boolean |
|
public |
withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account |
Static Public Methods
public static create(balance: number, blockHeight: number, transaction: Transaction): * source
Params:
Name | Type | Attribute | Description |
balance | number | ||
blockHeight | number | ||
transaction | Transaction |
Return:
* |
public static unserialize(buf: SerialBuffer): HashedTimeLockedContract source
Create Account object from binary form.
Override:
Account#unserializeParams:
Name | Type | Attribute | Description |
buf | SerialBuffer |
public static verifyIncomingTransaction(transaction: Transaction): boolean source
Override:
Contract#verifyIncomingTransactionParams:
Name | Type | Attribute | Description |
transaction | Transaction |
Return:
boolean |
public static verifyOutgoingTransaction(transaction: Transaction): boolean source
Params:
Name | Type | Attribute | Description |
transaction | Transaction |
Return:
boolean |
Public Constructors
public constructor(balance: number, sender: Address, recipient: Address, hashRoot: Hash, hashCount: number, timeout: number, totalAmount: number) source
Override:
Contract#constructorPublic Members
public get hashCount: number source
public get timeout: number source
public get totalAmount: number source
Public Methods
public equals(o: Account): boolean source
Check if two Accounts are the same.
Override:
Account#equalsParams:
Name | Type | Attribute | Description |
o | Account | Object to compare with. |
Return:
boolean | Set if both objects describe the same data. |
public serialize(buf: SerialBuffer): SerialBuffer source
Serialize this HTLC object into binary form.
Override:
Account#serializeParams:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
Buffer to write to. |
public withBalance(balance: number): Account | * source
Override:
Account#withBalanceParams:
Name | Type | Attribute | Description |
balance | number |
public withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account source
Override:
Contract#withIncomingTransactionParams:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
revert | boolean |
|
public withOutgoingTransaction(transaction: Transaction, blockHeight: number, transactionsCache: TransactionCache, revert: boolean): Account | * source
Override:
Account#withOutgoingTransactionParams:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
transactionsCache | TransactionCache | ||
revert | boolean |
|