Static Method Summary
Static Public Methods | ||
public static |
create(balance: number, blockHeight: number, transaction: Transaction): * |
|
public static |
dataToPlain(data: Uint8Array): object |
|
public static |
fromPlain(plain: object): * |
|
public static |
proofToPlain(proof: Uint8Array): object |
|
public static |
|
|
public static |
verifyIncomingTransaction(transaction: Transaction): boolean |
|
public static |
verifyOutgoingTransaction(transaction: Transaction): boolean |
Constructor Summary
Public Constructor | ||
public |
constructor(balance: number, owner: Address, vestingStart: number, vestingStepBlocks: number, vestingStepAmount: number, vestingTotalAmount: number) |
Member Summary
Public Members | ||
public get |
|
|
public get |
serializedSize: number: * |
|
public get |
vestingStart: number |
|
public get |
vestingStepAmount: number |
|
public get |
vestingStepBlocks: number |
|
public get |
vestingTotalAmount: number |
Method Summary
Public Methods | ||
public |
Check if two Accounts are the same. |
|
public |
getMinCap(blockHeight: number): number |
|
public |
serialize(buf: SerialBuffer): SerialBuffer Serialize this VestingContract object into binary form. |
|
public |
toPlain(): object |
|
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 |
dataToPlain(data: Uint8Array): object |
|
public static |
|
|
public static |
|
|
public static |
proofToPlain(proof: Uint8Array): object |
|
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 |
toPlain(): object |
|
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 dataToPlain(data: Uint8Array): object source
Override:
Account#dataToPlainParams:
Name | Type | Attribute | Description |
data | Uint8Array |
Return:
object |
public static fromPlain(plain: object): * source
Override:
Account#fromPlainParams:
Name | Type | Attribute | Description |
plain | object |
Return:
* |
public static proofToPlain(proof: Uint8Array): object source
Override:
Account#proofToPlainParams:
Name | Type | Attribute | Description |
proof | Uint8Array |
Return:
object |
public static unserialize(buf: SerialBuffer): VestingContract 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, owner: Address, vestingStart: number, vestingStepBlocks: number, vestingStepAmount: number, vestingTotalAmount: number) source
Override:
Contract#constructorParams:
Name | Type | Attribute | Description |
balance | number |
|
|
owner | Address |
|
|
vestingStart | number |
|
|
vestingStepBlocks | number |
|
|
vestingStepAmount | number |
|
|
vestingTotalAmount | number |
|
Public Members
public get vestingStart: number source
public get vestingStepAmount: number source
public get vestingStepBlocks: number source
public get vestingTotalAmount: 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 getMinCap(blockHeight: number): number source
Params:
Name | Type | Attribute | Description |
blockHeight | number |
Return:
number |
public serialize(buf: SerialBuffer): SerialBuffer source
Serialize this VestingContract 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 |
|