New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postchain-client

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postchain-client - npm Package Versions

13
7

1.15.2

Diff

Changelog

Source

[1.15.2]

Fixed

  • promiEvent ts error in npm package
mimmicromsjo
published 1.15.1 •

Changelog

Source

[1.15.1]

Changed

  • Removed library dependency: web3-core-promievent.
  • The type Web3PromiEvent is now exported publicly.
mimmicromsjo
published 1.15.0 •

Changelog

Source

[1.15.0]

Changed

  • The types RawGtxBody and RawGtxOpare now exported publicly.
  • function getDigestToSignFromRawGtxBodyis now exported publicly.
  • Changes SignatureProvider type callback method sign() to provide a paramater of type rawGtxBody instead of a digest. This change is implemented to make it possible to review the content of a transaction before signing.
mimmicromsjo
published 1.14.0 •

Changelog

Source

[1.14.0]

Added

  • better input validation for blockChainClient

Fixed

  • logLevel=ERROR will now only logs errors
  • getConfirmationProof will now properly retrieve the transaction index
mimmicromsjo
published 1.13.0 •

Changelog

Source

[1.13.0]

Added

  • Both sendTransaction and signAndSendUniqueTransaction now takes a new flag parameter doStatusPolling which can be set to either true or false. Setting the flag to false will prevent any further automatic status polling requests from being sent for the transaction. The method will in this case return with a final transaction status of waiting.
  • logLevel can be enum with values: [DEBUG, INFO, WARNING, ERROR]
  • logger can be configured through node env i.e. LOG_LEVEL=DEBUG
  • add disable method to logger
  • Adds a createStubClient function returning an IClient. All methods returning a Promise return a rejected Promise, all methods which return Web3PromiEvent return a rejected Web3PromiEvent and other methods just throw an Error.

Fixed

  • bug in return type of getAnchoringTransactionForBlockRid.
  • enhanced the README by providing a more detailed guide on creating a client, including an expanded description of its configuration settings.
mimmicromsjo
published 1.12.0 •

Changelog

Source

[1.12.0]

Added

  • Node URLs in the pool will be marked as 'unreachable' if a request returns a 50* status. This feature, part of FailoverConfig, suspends a node's usage for a default duration of 30,000 milliseconds (5 minutes). Clients can be configure during initialization for tailored duration.
mimmicromsjo
published 1.11.0 •

Changelog

Source

[1.11.0]

Added

  • Adds client method getBlockInfo to enable the user to fetch the data for a single block by providing either height or txRid.
mimmicromsjo
published 1.10.0 •

Changelog

Source

[1.10.0]

Changed

  • pollingInterval has changed name to statusPollInterval in NetworkSettings. The reason is to easier understand what the polling interval is used for.
  • sendTransaction and signAndSendUniqueTransaction continue polling the status of the transaction if the last returned status was unknown. Previously only status waiting triggered new fetching. To avoid polling infinitely, a maximum number has been added. It is configurable when creating a client, see section Added.
  • remove index signature in exported type GTX.
export type GTX = {
  [x: string]: unknown;  // <---- removed
  blockchainRid: Buffer;
  operations: RellOperation[];
  signers: Buffer[];
  signatures?: Buffer[];
};

Added

  • possibility to configure the maximum number of times sendTransaction andsignAndSendUniqueTransaction should poll for the status before quitting. It is included in NetworkSettings and is called statusPollCount. Default value is 20.

Fixed

  • @types/node as devDependencies instead of dependencies.
mimmicromsjo
published 1.9.0 •

Changelog

Source

[1.9.0]

Added

  • add the package events as peer-dependency. Solves users issue of missing events when using the lib in a non Node environment.
  • function in IClient for fetching blocks info for a chain. It is called getBlocksInfo.

Fixed

  • correct small mistakes in README.
  • fix bug in function getDigestToSignFromBody. It should take an input as type RawGtxBody instead of GtxBody. The function is renamed to getDigestToSignFromRawGtxBody.
  • correct mistake in README in the instructions of a function called askUserBToSign.
mimmicromsjo
published 1.8.1 •

Changelog

Source

[1.8.1]

Fixed

  • export enum FailoverStrategy.
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