mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
add hook execution
This commit is contained in:
@@ -29,6 +29,20 @@ export interface DeletedNode {
|
|||||||
|
|
||||||
export type Node = CreatedNode | ModifiedNode | DeletedNode
|
export type Node = CreatedNode | ModifiedNode | DeletedNode
|
||||||
|
|
||||||
|
export interface HookExecution {
|
||||||
|
HookExecution: {
|
||||||
|
HookAccount: string
|
||||||
|
HookEmitCount: number
|
||||||
|
HookExecutionIndex: number
|
||||||
|
HookHash: string
|
||||||
|
HookInstructionCount: string
|
||||||
|
HookResult: number
|
||||||
|
HookReturnCode: number
|
||||||
|
HookReturnString: string
|
||||||
|
HookStateChangeCount: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A typeguard to check if a node is a CreatedNode.
|
* A typeguard to check if a node is a CreatedNode.
|
||||||
*
|
*
|
||||||
@@ -63,6 +77,7 @@ export interface TransactionMetadata {
|
|||||||
AffectedNodes: Node[]
|
AffectedNodes: Node[]
|
||||||
DeliveredAmount?: Amount
|
DeliveredAmount?: Amount
|
||||||
// "unavailable" possible for transactions before 2014-01-20
|
// "unavailable" possible for transactions before 2014-01-20
|
||||||
|
HookExecutions: HookExecution[]
|
||||||
delivered_amount?: Amount | 'unavailable'
|
delivered_amount?: Amount | 'unavailable'
|
||||||
TransactionIndex: number
|
TransactionIndex: number
|
||||||
TransactionResult: string
|
TransactionResult: string
|
||||||
|
|||||||
Reference in New Issue
Block a user