mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
add hook execution
This commit is contained in:
@@ -29,6 +29,20 @@ export interface 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.
|
||||
*
|
||||
@@ -63,6 +77,7 @@ export interface TransactionMetadata {
|
||||
AffectedNodes: Node[]
|
||||
DeliveredAmount?: Amount
|
||||
// "unavailable" possible for transactions before 2014-01-20
|
||||
HookExecutions: HookExecution[]
|
||||
delivered_amount?: Amount | 'unavailable'
|
||||
TransactionIndex: number
|
||||
TransactionResult: string
|
||||
|
||||
Reference in New Issue
Block a user