Socket
Socket
Sign inDemoInstall

casper-js-sdk

Package Overview
Dependencies
57
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.13.0 to 2.13.1

dist/config.d.ts

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Changelog

## 2.13.1
### Added
- New method `makeDeployWithAutoTimestamp` that fetches timestamp and then uses it to create deploy header. Recommended to use it in browsers env.
## 2.13.0

@@ -9,0 +15,0 @@

12

dist/lib/DeployUtil.d.ts

@@ -515,3 +515,3 @@ /**

* @param dependencies Hex-encoded `Deploy` hashes of deploys which must be executed before this one.
* @param timestamp If `timestamp` is empty, the current time will be used. Note that timestamp is UTC, not local.
* @param timestamp Note that timestamp is UTC, not local.
*/

@@ -529,2 +529,12 @@ constructor(accountPublicKey: CLPublicKey, chainName: string, gasPrice?: number, ttl?: number, dependencies?: Uint8Array[], timestamp?: number | undefined);

/**
* Builds a `Deploy` object from `DeployParams`, session logic, and payment logic.
* If there is no timestamp in `DeployParams` it fetches it from the TimeService.
* Recommened to use in browser environment.
* @param deployParam The parameters of the deploy, see [DeployParams](#L1323)
* @param session The session logic of the deploy
* @param payment The payment logic of the deploy
* @returns A new `Deploy` object
*/
export declare function makeDeployWithAutoTimestamp(deployParam: DeployParams, session: ExecutableDeployItem, payment: ExecutableDeployItem): Promise<Deploy>;
/**
* Uses the provided key pair to sign the Deploy message

@@ -531,0 +541,0 @@ * @param deploy Either an unsigned `Deploy` object or one with other signatures

4

package.json
{
"name": "casper-js-sdk",
"version": "2.13.0",
"version": "2.13.1",
"license": "Apache 2.0",

@@ -61,2 +61,3 @@ "description": "SDK to interact with the Casper blockchain",

"@types/node": "^14.14.31",
"@types/node-fetch": "^2.6.4",
"@types/sinon": "^10.0.13",

@@ -127,2 +128,3 @@ "@typescript-eslint/eslint-plugin": "^5.52.0",

"lodash": "^4.17.21",
"node-fetch": "^2.6.11",
"reflect-metadata": "^0.1.13",

@@ -129,0 +131,0 @@ "ts-results": "npm:@casperlabs/ts-results@^3.3.4",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc