Account
Direct Subclass:
Indirect Subclass:
Static Method Summary
Static Public Methods | ||
public static |
unserialize(buf: SerialBuffer): Account Create Account object from binary form. |
Constructor Summary
Public Constructor | ||
public |
constructor(type: Account.Type, balance: number) |
Member Summary
Public Members | ||
public get |
balance: number |
|
public get |
serializedSize: number: * |
|
public get |
type: Account.Type |
Method Summary
Public Methods | ||
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 |
Static Public Methods
public static unserialize(buf: SerialBuffer): Account source
Create Account object from binary form.
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer | Buffer to read from. |
Public Constructors
public constructor(type: Account.Type, balance: number) source
Params:
Name | Type | Attribute | Description |
type | Account.Type | ||
balance | number |
Public Methods
public equals(o: Account): boolean source
Check if two Accounts are the same.
Params:
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 Account object into binary form.
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
Buffer to write to. |
public withBalance(balance: number): Account | * source
Params:
Name | Type | Attribute | Description |
balance | number |
public withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account source
Params:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
revert | boolean |
|
public withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account source
Params:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
revert | boolean |
|
public withOutgoingTransaction(transaction: Transaction, blockHeight: number, transactionsCache: TransactionCache, revert: boolean): Account source
Params:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
transactionsCache | TransactionCache | ||
revert | boolean |
|