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

1
7

1.1.1

Diff

mimmicromsjo
published 1.1.0 •

Changelog

Source

[1.1.0] - 2023-02-17

Added

  • signatureProvider interface and newSignatureProvider()

Removed

  • RestClient.getConfirmationProof function

Changed

  • ITransaction.sign now can be used with a single argument, which can implement the signatureProvider interface or be the privKey. This function is now async
  • GTX.sign now has two overloads, both of which are async. The GTX is now passed as first parameter.
  • RestClient.queryand GtxClient.query now has two overloads, the new signature takes the query name and query arguments as separate inputs. The old signature is marked as depricated an will be removed in the future.

Fixed

  • gtx is now correctly typed in both GTX.sign and GTX.addSignature
mimmicromsjo
published 1.0.3 •

Changelog

Source

[1.0.3] - 2023-02-03

Added

  • Compatible with ESM, CommonJS and UMD
  • Boolean support

Changed

  • A query uses postchain endpoint called query_gtv which means that data is sent and recieved in GTV-encoded format.
  • Release notes now in changelog file.
  • Node 18 required when using this library in a Node environment.
mimmicromsjo
published 1.0.2 •

Changelog

Source

[1.0.2] - 2022-12-23

Added

  • DecodeValueGtx ensures type of RawGtx before return. (commit missed in last release)

Changed

  • Rename export from chromiaClientProvider to chromiaClient.
mimmicromsjo
published 1.0.1 •

Changelog

Source

[1.0.1] - 2022-12-21

Changed

  • Update types of input parameters and return types of the following functions:

    • encodeValue (serialization.ts)
    • decodeValue (serialization.ts)
    • gtvHash (src/gtv/index.ts)
  • Set default logging to be less verbose

Fixed

  • Bug in function blockchainConnection (chromiaClientProvider.ts)
mimmicromsjo
published 1.0.0 •

Changelog

Source

[1.0.0] - 2022-12-09

Added

  • New logger accessible in index.ts.
  • Enable the client to connect to a blockchain through multiple nodes running the blockchain.
  • Load balancing by randomly distributing transactions and queries between nodes.
  • Retry policy added for request to the blockchain.
  • Enables you to discover the nodes running your blockchain by querying D1 with your dapp´s blockchain RID. Read more in the Chromia client providers Readme.

Changed

  • Previously a rest client was initialized with one string containing the address of the node running your blockchain. Now an instance of the rest client is initiated with a list of strings representing the addresses of the nodes where your dapp is running.
  • Previously a rest client query was called with two parameters; queryName and queryObject. Now this call only takes one parameter called queryObject, which is defined as:
{
    type: string;
    [Arg
:
    string
]:
    RawGtv;
}

where type is what previously was called query name.

[0.*.*]

Early version of the postchain-client written in javascript.

killerstorm
published 0.10.5 •

killerstorm
published 0.10.4 •

killerstorm
published 0.10.3 •

killerstorm
published 0.10.2 •

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