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

@stacks/transactions

Package Overview
Dependencies
Maintainers
6
Versions
662
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacks/transactions - npm Package Compare versions

Comparing version 1.0.0-beta.8 to 1.0.0-beta.9

5

dist/index.esm.js

@@ -16,6 +16,7 @@ export { AddressHashMode, AddressVersion, AnchorMode, AssetType, AuthType, CLARITY_INT_SIZE, COINBASE_BUFFER_LENGTH_BYTES, COMPRESSED_PUBKEY_LENGTH_BYTES, ChainID, DEFAULT_CHAIN_ID, DEFAULT_CORE_NODE_API_URL, DEFAULT_TRANSACTION_VERSION, FungibleConditionCode, MAX_STRING_LENGTH_BYTES, MEMO_MAX_LENGTH_BYTES, NonFungibleConditionCode, PayloadType, PostConditionMode, PostConditionPrincipalID, PostConditionType, PubKeyEncoding, RECOVERABLE_ECDSA_SIG_LENGTH_BYTES, StacksMessageType, TransactionVersion, TxRejectedReason, UNCOMPRESSED_PUBKEY_LENGTH_BYTES } from './constants.esm.js';

export { serializeCV } from './clarity/serialize.esm.js';
export { BufferReader } from './bufferReader.esm.js';
export { default as deserializeCV } from './clarity/deserialize.esm.js';
export { cvToHex, hexToCV, parseReadOnlyResponse } from './utils.esm.js';
export { Authorization, SponsoredAuthorization, StandardAuthorization } from './authorization.esm.js';
export { StacksTransaction } from './transaction.esm.js';
export { Authorization, SponsoredAuthorization, StandardAuthorization, createMessageSignature, emptyMessageSignature, isSingleSig } from './authorization.esm.js';
export { StacksTransaction, deserializeTransaction } from './transaction.esm.js';
export { TransactionSigner } from './signer.esm.js';

@@ -22,0 +23,0 @@ export { ClarityAbiTypeId, abiFunctionToString, encodeClarityValue, getTypeString, getTypeUnion, isClarityAbiBuffer, isClarityAbiList, isClarityAbiOptional, isClarityAbiPrimitive, isClarityAbiResponse, isClarityAbiStringAscii, isClarityAbiStringUtf8, isClarityAbiTuple, parseToCV, validateContractCall } from './contract-abi.esm.js';

26

dist/transaction.esm.js

@@ -1,7 +0,7 @@

import { AuthType, DEFAULT_CHAIN_ID, PostConditionMode, PayloadType, AnchorMode } from './constants.esm.js';
import { AuthType, TransactionVersion, AnchorMode, PostConditionMode, StacksMessageType, DEFAULT_CHAIN_ID, PayloadType } from './constants.esm.js';
import { SigningError, SerializationError } from './errors.esm.js';
import { serializePayload } from './payload.esm.js';
import { serializeLPList, createLPList } from './types.esm.js';
import { serializePayload, deserializePayload } from './payload.esm.js';
import { serializeLPList, deserializeLPList, createLPList } from './types.esm.js';
import { cloneDeep, txidFromData, BufferArray } from './utils.esm.js';
import { createMessageSignature, isSingleSig, createTransactionAuthField, nextSignature } from './authorization.esm.js';
import { createMessageSignature, isSingleSig, createTransactionAuthField, nextSignature, Authorization } from './authorization.esm.js';

@@ -178,4 +178,20 @@ var StacksTransaction = /*#__PURE__*/function () {

}();
function deserializeTransaction(bufferReader) {
var version = bufferReader.readUInt8Enum(TransactionVersion, function (n) {
throw new Error("Could not parse " + n + " as TransactionVersion");
});
var chainId = bufferReader.readUInt32BE();
var auth = Authorization.deserialize(bufferReader);
var anchorMode = bufferReader.readUInt8Enum(AnchorMode, function (n) {
throw new Error("Could not parse " + n + " as AnchorMode");
});
var postConditionMode = bufferReader.readUInt8Enum(PostConditionMode, function (n) {
throw new Error("Could not parse " + n + " as PostConditionMode");
});
var postConditions = deserializeLPList(bufferReader, StacksMessageType.PostCondition);
var payload = deserializePayload(bufferReader);
return new StacksTransaction(version, auth, payload, postConditions, postConditionMode, anchorMode, chainId);
}
export { StacksTransaction };
export { StacksTransaction, deserializeTransaction };
//# sourceMappingURL=transaction.esm.js.map

@@ -1,3 +0,4 @@

export { StacksTransaction } from './transaction';
export { Authorization, StandardAuthorization, SponsoredAuthorization, SpendingCondition, } from './authorization';
export { StacksTransaction, deserializeTransaction } from './transaction';
export { BufferReader } from './bufferReader';
export { Authorization, StandardAuthorization, SponsoredAuthorization, SpendingCondition, MessageSignature, createMessageSignature, emptyMessageSignature, isSingleSig, } from './authorization';
export { TokenTransferPayload, ContractCallPayload, SmartContractPayload, PoisonPayload, CoinbasePayload, } from './payload';

@@ -4,0 +5,0 @@ export { PostCondition, createFungiblePostCondition, createNonFungiblePostCondition, createSTXPostCondition, } from './postcondition';

{
"name": "@stacks/transactions",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "Javascript library for constructing transactions on the Stacks blockchain.",

@@ -58,4 +58,4 @@ "homepage": "https://blockstack.org",

"dependencies": {
"@stacks/common": "^1.0.0-beta.8",
"@stacks/network": "^1.0.0-beta.8",
"@stacks/common": "^1.0.0-beta.9",
"@stacks/network": "^1.0.0-beta.9",
"@types/bn.js": "^4.11.6",

@@ -62,0 +62,0 @@ "@types/elliptic": "^6.4.12",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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