@hirosystems/orchestra-types
Advanced tools
Comparing version 1.0.1-beta.1 to 1.0.1-beta.2
{ | ||
"name": "@hirosystems/orchestra-types", | ||
"version": "1.0.1-beta.1", | ||
"version": "1.0.1-beta.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,3 +1,63 @@ | ||
/** | ||
* BitcoinChainUpdate provide informations about new blocks and confirmed blocks. | ||
* @export | ||
* @interface BitcoinChainUpdate | ||
*/ | ||
export interface BitcoinChainUpdate { | ||
/** | ||
* @type {Array<Block>} | ||
* @memberof ChainUpdate | ||
*/ | ||
new_blocks: Array<Block>; | ||
/** | ||
* @type {Array<Block>} | ||
* @memberof ChainUpdate | ||
*/ | ||
confirmed_blocks: Array<Block>; | ||
} | ||
/** | ||
* StacksChainUpdate provide informations about new blocks and confirmed blocks. | ||
* @export | ||
* @interface StacksChainUpdate | ||
*/ | ||
export interface StacksChainUpdate { | ||
/** | ||
* @type {Array<StacksBlockUpdate>} | ||
* @memberof StacksChainUpdate | ||
*/ | ||
new_blocks: Array<StacksBlockUpdate>; | ||
/** | ||
* @type {Array<StacksBlockUpdate>} | ||
* @memberof StacksChainUpdate | ||
*/ | ||
confirmed_blocks: Array<Block>; | ||
} | ||
/** | ||
* StacksBlockUpdate provide informations about new blocks and confirmed blocks. | ||
* @export | ||
* @interface StacksBlockUpdate | ||
*/ | ||
export interface StacksBlockUpdate { | ||
/** | ||
* @type {Array<Block>} | ||
* @memberof StacksBlockUpdate | ||
*/ | ||
new_blocks: Array<Block>; | ||
/** | ||
* @type {Array<Block>} | ||
* @memberof StacksBlockUpdate | ||
*/ | ||
parent_microblocks_to_rollback: Array<Block>; | ||
/** | ||
* @type {Array<Block>} | ||
* @memberof StacksBlockUpdate | ||
*/ | ||
parent_microblocks_to_apply: Array<Block>; | ||
} | ||
export interface BitcoinChainEvent { | ||
apply: BitcoinApply[]; | ||
rollback: BitcoinRollback[]; | ||
chainhook: { | ||
@@ -11,2 +71,3 @@ uuid: string; | ||
apply: StacksApply[]; | ||
rollback: StacksRollback; | ||
chainhook: { | ||
@@ -25,2 +86,7 @@ uuid: string; | ||
export interface BitcoinRollback { | ||
transaction: BitcoinTransaction; | ||
block_identifier: BlockIdentifier; | ||
} | ||
export interface StacksApply { | ||
@@ -33,2 +99,7 @@ transaction: StacksTransaction; | ||
export interface StacksRollback { | ||
transaction: BitcoinTransaction; | ||
block_identifier: BlockIdentifier; | ||
} | ||
export interface StacksChainhook { | ||
@@ -272,2 +343,7 @@ uuid: string; | ||
execution_cost?: StacksTransactionExecutionCost; | ||
/** | ||
* @type {number|any} | ||
* @memberof StacksTransactionMetadata | ||
*/ | ||
position: number | any; | ||
} | ||
@@ -593,2 +669,7 @@ | ||
/** | ||
* @type {BlockIdentifier} | ||
* @memberof StacksBlockMetadata | ||
*/ | ||
confirm_microblock_identifier?: BlockIdentifier; | ||
/** | ||
* @type {number} | ||
@@ -595,0 +676,0 @@ * @memberof StacksBlockMetadata |
38715
3
1071