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

@elrondnetwork/erdjs

Package Overview
Dependencies
Maintainers
9
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elrondnetwork/erdjs - npm Package Compare versions

Comparing version 10.2.7 to 11.0.0

1

out/relayedTransactionV2Builder.js

@@ -62,2 +62,3 @@ "use strict";

return new transaction_1.Transaction({
sender: this.innerTransaction.getSender(),
receiver: this.innerTransaction.getSender(),

@@ -64,0 +65,0 @@ value: 0,

@@ -107,2 +107,3 @@ "use strict";

receiver: address_1.Address.Zero(),
sender: address_1.Address.Zero(),
value: value,

@@ -130,2 +131,3 @@ gasLimit: gasLimit,

let transaction = new transaction_1.Transaction({
sender: address_1.Address.Zero(),
receiver: this.getAddress(),

@@ -152,2 +154,3 @@ value: value,

let transaction = new transaction_1.Transaction({
sender: address_1.Address.Zero(),
receiver: receiver ? receiver : this.getAddress(),

@@ -154,0 +157,0 @@ value: value,

2

out/transaction.d.ts

@@ -66,3 +66,3 @@ /// <reference types="node" />

receiver: IAddress;
sender?: IAddress;
sender: IAddress;
gasPrice?: IGasPrice;

@@ -69,0 +69,0 @@ gasLimit: IGasLimit;

@@ -45,3 +45,3 @@ "use strict";

this.value = value || 0;
this.sender = sender || address_1.Address.Zero();
this.sender = sender;
this.receiver = receiver;

@@ -159,5 +159,6 @@ this.gasPrice = gasPrice || constants_1.TRANSACTION_MIN_GAS_PRICE;

receiver: address_1.Address.fromString(plainObjectTransaction.receiver),
sender: address_1.Address.fromString(plainObjectTransaction.sender),
gasPrice: Number(plainObjectTransaction.gasPrice),
gasLimit: Number(plainObjectTransaction.gasLimit),
data: new transactionPayload_1.TransactionPayload(atob(plainObjectTransaction.data || "")),
data: new transactionPayload_1.TransactionPayload(Buffer.from(plainObjectTransaction.data || "", "base64")),
chainID: String(plainObjectTransaction.chainID),

@@ -164,0 +165,0 @@ version: new networkParams_1.TransactionVersion(plainObjectTransaction.version),

@@ -6,2 +6,3 @@ "use strict";

const transaction_1 = require("./transaction");
const address_1 = require("./address");
class TransactionFactory {

@@ -19,3 +20,3 @@ constructor(gasEstimator) {

receiver: args.receiver,
sender: args.sender,
sender: args.sender || address_1.Address.Zero(),
gasPrice: args.gasPrice,

@@ -36,3 +37,3 @@ gasLimit: args.gasLimit || estimatedGasLimit,

receiver: args.receiver,
sender: args.sender,
sender: args.sender || address_1.Address.Zero(),
gasPrice: args.gasPrice,

@@ -39,0 +40,0 @@ gasLimit: args.gasLimit || estimatedGasLimit,

{
"name": "@elrondnetwork/erdjs",
"version": "10.2.7",
"version": "11.0.0",
"description": "Smart Contracts interaction framework",

@@ -27,5 +27,5 @@ "main": "out/index.js",

"author": "ElrondNetwork",
"license": "GPL-3.0-or-later",
"license": "MIT",
"dependencies": {
"@elrondnetwork/transaction-decoder": "0.1.0",
"@elrondnetwork/transaction-decoder": "1.0.0",
"bech32": "1.1.4",

@@ -40,4 +40,4 @@ "bignumber.js": "9.0.1",

"devDependencies": {
"@elrondnetwork/erdjs-network-providers": "0.1.4",
"@elrondnetwork/erdjs-walletcore": "1.0.0",
"@elrondnetwork/erdjs-network-providers": "1.0.0",
"@elrondnetwork/erdjs-walletcore": "2.0.0",
"@types/assert": "1.4.6",

@@ -44,0 +44,0 @@ "@types/chai": "4.2.11",

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 not supported yet

Sorry, the diff of this file is not supported yet

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