Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stacks/stacks-blockchain-api-types

Package Overview
Dependencies
Maintainers
9
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacks/stacks-blockchain-api-types - npm Package Compare versions

Comparing version 6.2.2-beta.1 to 7.0.0-stacks-2.1.1

4

api/info/get-status.schema.json

@@ -18,2 +18,6 @@ {

},
"pox_v1_unlock_height": {
"type": "integer",
"nullable": true
},
"chain_tip": {

@@ -20,0 +24,0 @@ "$ref": "../../entities/info/chain-tip.schema.json"

@@ -9,3 +9,4 @@ {

"block_hash",
"index_block_hash"
"index_block_hash",
"burn_block_height"
],

@@ -32,4 +33,8 @@ "properties": {

"description": "the current microblock sequence number"
},
"burn_block_height": {
"type": "integer",
"description": "the current burn chain block height"
}
}
}

@@ -23,4 +23,7 @@ {

"type": "string"
},
"memo": {
"type": "string"
}
}
}

@@ -17,2 +17,7 @@ {

"properties": {
"clarity_version": {
"type": "number",
"description": "The Clarity version of the contract, only specified for versioned contract transactions, otherwise null",
"nullable": true
},
"contract_id": {

@@ -19,0 +24,0 @@ "type": "string",

@@ -20,2 +20,7 @@ {

"description": "Hex encoded 32-byte scratch space for block leader's use"
},
"alt_recipient": {
"type": "string",
"nullable": true,
"description": "A principal that will receive the miner rewards for this coinbase transaction. Can be either a standard principal or contract principal. Only specified for `coinbase-to-alt-recipient` transaction types, otherwise null."
}

@@ -22,0 +27,0 @@ }

2

entities/transfers/inbound-stx-transfer.schema.json

@@ -30,3 +30,3 @@ {

"type": "string",
"enum": ["bulk-send", "stx-transfer"],
"enum": ["bulk-send", "stx-transfer", "stx-transfer-memo"],
"description": "Indicates if the transfer is from a stx-transfer transaction or a contract-call transaction"

@@ -33,0 +33,0 @@ },

{
"name": "@stacks/stacks-blockchain-api-types",
"version": "6.2.2-beta.1",
"version": "7.0.0-stacks-2.1.1",
"access": "public",

@@ -41,3 +41,2 @@ "description": "TypeScript descriptions of Stacks 2.0 blockchain API entities",

"@types/json-schema-merge-allof": "0.6.0",
"@types/node": "16.18.3",
"ajv": "6.12.6",

@@ -44,0 +43,0 @@ "chalk": "4.1.1",

@@ -27,6 +27,2 @@ import type {

// Allows timeout callbacks for messages. See
// https://socket.io/docs/v4/typescript/#emitting-with-a-timeout
type WithTimeoutAck<isSender extends boolean, args extends any[]> = isSender extends true ? [Error, ...args] : args;
export interface ClientToServerMessages {

@@ -37,27 +33,27 @@ subscribe: (topic: Topic | Topic[], callback: (error: string | null) => void) => void;

export interface ServerToClientMessages<isSender extends boolean = false> {
block: (block: Block, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
microblock: (microblock: Microblock, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
mempool: (transaction: MempoolTransaction, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
transaction: (transaction: Transaction | MempoolTransaction, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
export interface ServerToClientMessages {
block: (block: Block) => void;
microblock: (microblock: Microblock) => void;
mempool: (transaction: MempoolTransaction) => void;
transaction: (transaction: Transaction | MempoolTransaction) => void;
// @ts-ignore scheduled for support in TS v4.3 https://github.com/microsoft/TypeScript/pull/26797
[key: 'nft-event']: (event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
'nft-event': (event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
[key: 'nft-event']: (event: NftEvent) => void;
'nft-event': (event: NftEvent) => void;
// @ts-ignore scheduled for support in TS v4.3 https://github.com/microsoft/TypeScript/pull/26797
[key: NftAssetEventTopic]: (assetIdentifier: string, value: string, event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
'nft-asset-event': (assetIdentifier: string, value: string, event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
[key: NftAssetEventTopic]: (assetIdentifier: string, value: string, event: NftEvent) => void;
'nft-asset-event': (assetIdentifier: string, value: string, event: NftEvent) => void;
// @ts-ignore scheduled for support in TS v4.3 https://github.com/microsoft/TypeScript/pull/26797
[key: NftCollectionEventTopic]: (assetIdentifier: string, event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
'nft-collection-event': (assetIdentifier: string, event: NftEvent, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
[key: NftCollectionEventTopic]: (assetIdentifier: string, event: NftEvent) => void;
'nft-collection-event': (assetIdentifier: string, event: NftEvent) => void;
// @ts-ignore scheduled for support in TS v4.3 https://github.com/microsoft/TypeScript/pull/26797
[key: AddressTransactionTopic]: (address: string, stxBalance: AddressTransactionWithTransfers, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
'address-transaction': (address: string, tx: AddressTransactionWithTransfers, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
[key: AddressTransactionTopic]: (address: string, stxBalance: AddressTransactionWithTransfers) => void;
'address-transaction': (address: string, tx: AddressTransactionWithTransfers) => void;
// @ts-ignore scheduled for support in TS v4.3 https://github.com/microsoft/TypeScript/pull/26797
[key: AddressStxBalanceTopic]: (address: string, stxBalance: AddressStxBalanceResponse, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
'address-stx-balance': (address: string, stxBalance: AddressStxBalanceResponse, callback: (...args: WithTimeoutAck<isSender, [string]>) => void) => void;
[key: AddressStxBalanceTopic]: (address: string, stxBalance: AddressStxBalanceResponse) => void;
'address-stx-balance': (address: string, stxBalance: AddressStxBalanceResponse) => void;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc