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

@multiversx/sdk-core

Package Overview
Dependencies
Maintainers
10
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multiversx/sdk-core - npm Package Compare versions

Comparing version 13.1.0 to 13.2.0-beta.1

41

out/address.d.ts

@@ -10,26 +10,38 @@ /// <reference types="node" />

export declare class Address {
private valueHex;
private readonly publicKey;
private readonly hrp;
/**
* Creates an address object, given a raw string (whether a hex pubkey or a Bech32 address), a sequence of bytes, or another Address object.
*/
constructor(value: Address | Buffer | Uint8Array | string);
constructor(value: Address | Uint8Array | string, hrp?: string);
/**
* Creates an address object from another address object
* Creates an address object from a bech32-encoded string
*/
static newFromBech32(value: string): Address;
/**
* Use {@link newFromBech32} instead.
*/
static fromBech32(value: string): Address;
/**
* Creates an address object from a hex-encoded string
*/
static newFromHex(value: string, hrp?: string): Address;
/**
* Use {@link newFromHex} instead.
*/
static fromHex(value: string, hrp?: string): Address;
/**
* @deprecated Constructing an address object from another object is deprecated.
*/
static fromAddress(address: Address): Address;
private static fromValidHex;
/**
* Creates an address object from a Buffer
* @deprecated Use the constructor, instead.
*/
static fromBuffer(buffer: Buffer): Address;
static fromBuffer(buffer: Buffer, hrp?: string): Address;
/**
* Creates an address object from a string (hex or bech32)
* @deprecated Use {@link newFromBech32} or {@link newFromHex}.
*/
static fromString(value: string): Address;
static fromString(value: string, hrp?: string): Address;
private static isValidHex;
/**
* Creates an address object from a hex-encoded string
*/
static fromHex(value: string): Address;
/**
* Creates an empty address object.

@@ -40,6 +52,2 @@ * Generally speaking, this should not be used by client code (internal use only).

/**
* Creates an address object from a bech32-encoded string
*/
static fromBech32(value: string): Address;
/**
* Performs address validation without throwing errors

@@ -74,3 +82,2 @@ */

* Returns the human-readable-part of the bech32 addresses.
* The HRP is currently hardcoded to "erd".
*/

@@ -77,0 +84,0 @@ getHrp(): string;

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

/**
* The human-readable-part of the bech32 addresses.
*/
const HRP = "erd";
/**
* The length (in bytes) of a public key (from which a bech32 address can be obtained).

@@ -49,16 +45,42 @@ */

*/
constructor(value) {
// We keep a hex-encoded string as the "backing" value
this.valueHex = "";
constructor(value, hrp) {
// Legacy flow.
if (!value) {
this.publicKey = Buffer.from([]);
this.hrp = hrp || constants_1.DEFAULT_HRP;
return;
}
// The only flow that's following the specs.
if (ArrayBuffer.isView(value)) {
if (value.length != PUBKEY_LENGTH) {
throw new errors.ErrAddressCannotCreate(value);
}
this.publicKey = Buffer.from(value);
this.hrp = hrp || constants_1.DEFAULT_HRP;
return;
}
// Legacy flow.
if (value instanceof Address) {
return Address.fromAddress(value);
if (hrp) {
throw new errors.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");
}
this.publicKey = value.publicKey;
this.hrp = value.hrp;
return;
}
if (ArrayBuffer.isView(value)) {
return Address.fromBuffer(Buffer.from(value));
}
// Legacy flow.
if (typeof value === "string") {
return Address.fromString(value);
if (Address.isValidHex(value)) {
this.publicKey = Buffer.from(value, "hex");
this.hrp = hrp || constants_1.DEFAULT_HRP;
return;
}
if (hrp) {
throw new errors.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");
}
// On this legacy flow, we do not accept addresses with custom hrp (in order to avoid behavioral breaking changes).
const { hrp: decodedHrp, pubkey } = decodeFromBech32({ value, allowCustomHrp: false });
this.publicKey = pubkey;
this.hrp = decodedHrp;
return;
}

@@ -68,43 +90,53 @@ throw new errors.ErrAddressCannotCreate(value);

/**
* Creates an address object from another address object
* Creates an address object from a bech32-encoded string
*/
static fromAddress(address) {
return Address.fromValidHex(address.valueHex);
static newFromBech32(value) {
const { hrp, pubkey } = decodeFromBech32({ value, allowCustomHrp: true });
return new Address(pubkey, hrp);
}
static fromValidHex(value) {
let result = Address.empty();
result.valueHex = value;
return result;
/**
* Use {@link newFromBech32} instead.
*/
static fromBech32(value) {
// On this legacy flow, we do not accept addresses with custom hrp (in order to avoid behavioral breaking changes).
const { hrp, pubkey } = decodeFromBech32({ value, allowCustomHrp: false });
return new Address(pubkey, hrp);
}
/**
* Creates an address object from a Buffer
* Creates an address object from a hex-encoded string
*/
static fromBuffer(buffer) {
if (buffer.length != PUBKEY_LENGTH) {
throw new errors.ErrAddressCannotCreate(buffer);
static newFromHex(value, hrp) {
if (!Address.isValidHex(value)) {
throw new errors.ErrAddressCannotCreate(value);
}
return Address.fromValidHex(buffer.toString("hex"));
return new Address(Buffer.from(value, "hex"), hrp);
}
/**
* Creates an address object from a string (hex or bech32)
* Use {@link newFromHex} instead.
*/
static fromString(value) {
if (Address.isValidHex(value)) {
return Address.fromValidHex(value);
}
return Address.fromBech32(value);
static fromHex(value, hrp) {
return Address.newFromHex(value, hrp);
}
static isValidHex(value) {
return Buffer.from(value, "hex").length == PUBKEY_LENGTH;
/**
* @deprecated Constructing an address object from another object is deprecated.
*/
static fromAddress(address) {
return new Address(address);
}
/**
* Creates an address object from a hex-encoded string
* @deprecated Use the constructor, instead.
*/
static fromHex(value) {
if (!Address.isValidHex(value)) {
throw new errors.ErrAddressCannotCreate(value);
}
return Address.fromValidHex(value);
static fromBuffer(buffer, hrp) {
return new Address(buffer, hrp);
}
/**
* @deprecated Use {@link newFromBech32} or {@link newFromHex}.
*/
static fromString(value, hrp) {
return new Address(value, hrp);
}
static isValidHex(value) {
return Buffer.from(value, "hex").length == PUBKEY_LENGTH;
}
/**
* Creates an empty address object.

@@ -117,23 +149,2 @@ * Generally speaking, this should not be used by client code (internal use only).

/**
* Creates an address object from a bech32-encoded string
*/
static fromBech32(value) {
let decoded;
try {
decoded = bech32.decode(value);
}
catch (err) {
throw new errors.ErrAddressCannotCreate(value, err);
}
const prefix = decoded.prefix;
if (prefix != HRP) {
throw new errors.ErrAddressBadHrp(HRP, prefix);
}
const pubkey = Buffer.from(bech32.fromWords(decoded.words));
if (pubkey.length != PUBKEY_LENGTH) {
throw new errors.ErrAddressCannotCreate(value);
}
return Address.fromValidHex(pubkey.toString("hex"));
}
/**
* Performs address validation without throwing errors

@@ -145,3 +156,3 @@ */

const pubkey = decoded ? Buffer.from(bech32.fromWords(decoded.words)) : undefined;
if (prefix !== HRP || pubkey?.length !== PUBKEY_LENGTH) {
if (prefix !== constants_1.DEFAULT_HRP || pubkey?.length !== PUBKEY_LENGTH) {
return false;

@@ -164,3 +175,3 @@ }

}
return this.valueHex;
return this.publicKey.toString("hex");
}

@@ -181,3 +192,3 @@ /**

let words = bech32.toWords(this.pubkey());
let address = bech32.encode(HRP, words);
let address = bech32.encode(this.hrp, words);
return address;

@@ -195,13 +206,9 @@ }

getPublicKey() {
if (this.isEmpty()) {
return Buffer.from([]);
}
return Buffer.from(this.valueHex, "hex");
return this.publicKey;
}
/**
* Returns the human-readable-part of the bech32 addresses.
* The HRP is currently hardcoded to "erd".
*/
getHrp() {
return HRP;
return this.hrp;
}

@@ -212,3 +219,3 @@ /**

isEmpty() {
return !this.valueHex;
return this.publicKey.length == 0;
}

@@ -222,3 +229,3 @@ /**

}
return this.valueHex == other.valueHex;
return this.publicKey.toString() == other.publicKey.toString();
}

@@ -311,2 +318,22 @@ /**

exports.AddressComputer = AddressComputer;
function decodeFromBech32(options) {
const value = options.value;
const allowCustomHrp = options.allowCustomHrp;
let hrp;
let pubkey;
try {
const decoded = bech32.decode(value);
hrp = decoded.prefix;
pubkey = Buffer.from(bech32.fromWords(decoded.words));
}
catch (err) {
throw new errors.ErrAddressCannotCreate(value, err);
}
// Workaround, in order to avoid behavioral breaking changes on legacy flows.
// In a future major release, we should drop this constraint (not exactly useful, validation should be performed in other ways)
if (!allowCustomHrp && hrp != constants_1.DEFAULT_HRP) {
throw new errors.ErrAddressBadHrp(constants_1.DEFAULT_HRP, hrp);
}
return { hrp, pubkey };
}
//# sourceMappingURL=address.js.map

@@ -14,10 +14,9 @@ export declare const TRANSACTION_MIN_GAS_PRICE = 1000000000;

export declare const VM_TYPE_WASM_VM: Uint8Array;
export declare const CONTRACT_DEPLOY_ADDRESS = "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu";
export declare const DELEGATION_MANAGER_SC_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6";
export declare const DEFAULT_HRP = "erd";
export declare const ESDT_CONTRACT_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u";
export declare const CONTRACT_DEPLOY_ADDRESS_HEX = "0000000000000000000000000000000000000000000000000000000000000000";
export declare const DELEGATION_MANAGER_SC_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000004ffff";
export declare const ESDT_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000002ffff";
export declare const DEFAULT_MESSAGE_VERSION = 1;
export declare const MESSAGE_PREFIX = "\u0017Elrond Signed Message:\n";
export declare const HEX_TRANSACTION_HASH_LENGTH = 64;
export declare const BECH32_ADDRESS_LENGTH = 62;
export declare const CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = 3;

@@ -28,1 +27,17 @@ export declare const WasmVirtualMachine = "0500";

export declare const UNKNOWN_SIGNER = "unknown";
/**
* @deprecated
*/
export declare const BECH32_ADDRESS_LENGTH = 62;
/**
* @deprecated Use {@link CONTRACT_DEPLOY_ADDRESS_HEX} instead.
*/
export declare const CONTRACT_DEPLOY_ADDRESS = "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu";
/**
* @deprecated Use {@link DELEGATION_MANAGER_SC_ADDRESS_HEX} instead.
*/
export declare const DELEGATION_MANAGER_SC_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6";
/**
* @deprecated Use {@link 000000000000000000010000000000000000000000000000000000000002ffff} instead.
*/
export declare const ESDT_CONTRACT_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UNKNOWN_SIGNER = exports.SDK_JS_SIGNER = exports.METACHAIN_ID = exports.WasmVirtualMachine = exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = exports.BECH32_ADDRESS_LENGTH = exports.HEX_TRANSACTION_HASH_LENGTH = exports.MESSAGE_PREFIX = exports.DEFAULT_MESSAGE_VERSION = exports.ESDT_CONTRACT_ADDRESS = exports.DEFAULT_HRP = exports.DELEGATION_MANAGER_SC_ADDRESS = exports.CONTRACT_DEPLOY_ADDRESS = exports.VM_TYPE_WASM_VM = exports.ARGUMENTS_SEPARATOR = exports.ESDT_TRANSFER_VALUE = exports.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME = exports.ESDTNFT_TRANSFER_FUNCTION_NAME = exports.ESDT_TRANSFER_FUNCTION_NAME = exports.ESDT_TRANSFER_GAS_LIMIT = exports.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = exports.TRANSACTION_VERSION_DEFAULT = exports.TRANSACTION_OPTIONS_TX_GUARDED = exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = exports.TRANSACTION_OPTIONS_DEFAULT = exports.TRANSACTION_MIN_GAS_PRICE = void 0;
exports.ESDT_CONTRACT_ADDRESS = exports.DELEGATION_MANAGER_SC_ADDRESS = exports.CONTRACT_DEPLOY_ADDRESS = exports.BECH32_ADDRESS_LENGTH = exports.UNKNOWN_SIGNER = exports.SDK_JS_SIGNER = exports.METACHAIN_ID = exports.WasmVirtualMachine = exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = exports.HEX_TRANSACTION_HASH_LENGTH = exports.MESSAGE_PREFIX = exports.DEFAULT_MESSAGE_VERSION = exports.ESDT_CONTRACT_ADDRESS_HEX = exports.DELEGATION_MANAGER_SC_ADDRESS_HEX = exports.CONTRACT_DEPLOY_ADDRESS_HEX = exports.DEFAULT_HRP = exports.VM_TYPE_WASM_VM = exports.ARGUMENTS_SEPARATOR = exports.ESDT_TRANSFER_VALUE = exports.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME = exports.ESDTNFT_TRANSFER_FUNCTION_NAME = exports.ESDT_TRANSFER_FUNCTION_NAME = exports.ESDT_TRANSFER_GAS_LIMIT = exports.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS = exports.TRANSACTION_VERSION_DEFAULT = exports.TRANSACTION_OPTIONS_TX_GUARDED = exports.TRANSACTION_OPTIONS_TX_HASH_SIGN = exports.TRANSACTION_OPTIONS_DEFAULT = exports.TRANSACTION_MIN_GAS_PRICE = void 0;
exports.TRANSACTION_MIN_GAS_PRICE = 1000000000;

@@ -17,10 +17,9 @@ exports.TRANSACTION_OPTIONS_DEFAULT = 0;

exports.VM_TYPE_WASM_VM = new Uint8Array([0x05, 0x00]);
exports.CONTRACT_DEPLOY_ADDRESS = "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu";
exports.DELEGATION_MANAGER_SC_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6";
exports.DEFAULT_HRP = "erd";
exports.ESDT_CONTRACT_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u";
exports.CONTRACT_DEPLOY_ADDRESS_HEX = "0000000000000000000000000000000000000000000000000000000000000000";
exports.DELEGATION_MANAGER_SC_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000004ffff";
exports.ESDT_CONTRACT_ADDRESS_HEX = "000000000000000000010000000000000000000000000000000000000002ffff";
exports.DEFAULT_MESSAGE_VERSION = 1;
exports.MESSAGE_PREFIX = "\x17Elrond Signed Message:\n";
exports.HEX_TRANSACTION_HASH_LENGTH = 64;
exports.BECH32_ADDRESS_LENGTH = 62;
exports.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META = 3;

@@ -31,2 +30,18 @@ exports.WasmVirtualMachine = "0500";

exports.UNKNOWN_SIGNER = "unknown";
/**
* @deprecated
*/
exports.BECH32_ADDRESS_LENGTH = 62;
/**
* @deprecated Use {@link CONTRACT_DEPLOY_ADDRESS_HEX} instead.
*/
exports.CONTRACT_DEPLOY_ADDRESS = "erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu";
/**
* @deprecated Use {@link DELEGATION_MANAGER_SC_ADDRESS_HEX} instead.
*/
exports.DELEGATION_MANAGER_SC_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6";
/**
* @deprecated Use {@link 000000000000000000010000000000000000000000000000000000000002ffff} instead.
*/
exports.ESDT_CONTRACT_ADDRESS = "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u";
//# sourceMappingURL=constants.js.map

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

import { ITransaction } from "./interface";
import { INetworkConfig } from "./interfaceOfNetwork";
import { ITransaction } from "./interface";
/**

@@ -4,0 +4,0 @@ * An utilitary class meant to work together with the {@link Transaction} class.

@@ -26,7 +26,7 @@ "use strict";

exports.TransactionComputer = void 0;
const bignumber_js_1 = __importDefault(require("bignumber.js"));
const constants_1 = require("./constants");
const errors = __importStar(require("./errors"));
const bignumber_js_1 = __importDefault(require("bignumber.js"));
const proto_1 = require("./proto");
const transaction_1 = require("./transaction");
const constants_1 = require("./constants");
const createTransactionHasher = require("blake2b");

@@ -119,8 +119,2 @@ const createKeccakHash = require("keccak");

ensureValidTransactionFields(transaction) {
if (transaction.sender.length !== constants_1.BECH32_ADDRESS_LENGTH) {
throw new errors.ErrBadUsage("Invalid `sender` field. Should be the bech32 address of the sender.");
}
if (transaction.receiver.length !== constants_1.BECH32_ADDRESS_LENGTH) {
throw new errors.ErrBadUsage("Invalid `receiver` field. Should be the bech32 address of the receiver.");
}
if (!transaction.chainID.length) {

@@ -127,0 +121,0 @@ throw new errors.ErrBadUsage("The `chainID` field is not set");

@@ -5,2 +5,3 @@ import { IAddress } from "../interface";

chainID: string;
addressHrp: string;
minGasLimit: bigint;

@@ -25,2 +26,3 @@ gasLimitPerByte: bigint;

private readonly argSerializer;
private readonly delegationManagerAddress;
constructor(options: {

@@ -27,0 +29,0 @@ config: IConfig;

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

this.argSerializer = new smartcontracts_1.ArgSerializer();
this.delegationManagerAddress = address_1.Address.fromHex(constants_1.DELEGATION_MANAGER_SC_ADDRESS_HEX, this.config.addressHrp);
}

@@ -30,3 +31,3 @@ createTransactionForNewDelegationContract(options) {

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.DELEGATION_MANAGER_SC_ADDRESS),
receiver: this.delegationManagerAddress,
dataParts: dataParts,

@@ -33,0 +34,0 @@ gasLimit: executionGasLimit,

@@ -7,2 +7,3 @@ import { IAddress } from "../interface";

chainID: string;
addressHrp: string;
minGasLimit: bigint;

@@ -25,2 +26,3 @@ gasLimitPerByte: bigint;

private readonly dataArgsBuilder;
private readonly contractDeployAddress;
constructor(options: {

@@ -27,0 +29,0 @@ config: IConfig;

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

this.dataArgsBuilder = new tokenTransfersDataBuilder_1.TokenTransfersDataBuilder();
this.contractDeployAddress = address_1.Address.fromHex(constants_1.CONTRACT_DEPLOY_ADDRESS_HEX, this.config.addressHrp);
}

@@ -40,3 +41,3 @@ createTransactionForDeploy(options) {

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.CONTRACT_DEPLOY_ADDRESS),
receiver: this.contractDeployAddress,
dataParts: dataParts,

@@ -43,0 +44,0 @@ gasLimit: options.gasLimit,

@@ -5,2 +5,3 @@ import { IAddress } from "../interface";

chainID: string;
addressHrp: string;
minGasLimit: bigint;

@@ -32,2 +33,3 @@ gasLimitPerByte: bigint;

private readonly falseAsString;
private readonly esdtContractAddress;
constructor(options: {

@@ -34,0 +36,0 @@ config: IConfig;

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

this.falseAsString = "false";
this.esdtContractAddress = address_1.Address.fromHex(constants_1.ESDT_CONTRACT_ADDRESS_HEX, this.config.addressHrp);
}

@@ -44,3 +45,3 @@ createTransactionForIssuingFungible(options) {

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: address_1.Address.fromHex(constants_1.ESDT_CONTRACT_ADDRESS_HEX, this.config.addressHrp),
dataParts: dataParts,

@@ -76,3 +77,3 @@ gasLimit: this.config.gasLimitIssue,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -108,3 +109,3 @@ gasLimit: this.config.gasLimitIssue,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -141,3 +142,3 @@ gasLimit: this.config.gasLimitIssue,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -163,3 +164,3 @@ gasLimit: this.config.gasLimitIssue,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -179,3 +180,3 @@ gasLimit: this.config.gasLimitIssue,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -194,3 +195,3 @@ gasLimit: this.config.gasLimitToggleBurnRoleGlobally,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -210,3 +211,3 @@ gasLimit: this.config.gasLimitToggleBurnRoleGlobally,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -227,3 +228,3 @@ gasLimit: this.config.gasLimitSetSpecialRole,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -248,3 +249,3 @@ gasLimit: this.config.gasLimitSetSpecialRole,

sender: options.sender,
receiver: address_1.Address.fromBech32(constants_1.ESDT_CONTRACT_ADDRESS),
receiver: this.esdtContractAddress,
dataParts: dataParts,

@@ -251,0 +252,0 @@ gasLimit: this.config.gasLimitSetSpecialRole,

{
"name": "@multiversx/sdk-core",
"version": "13.1.0",
"version": "13.2.0-beta.1",
"description": "MultiversX SDK for JavaScript and TypeScript",

@@ -37,4 +37,4 @@ "main": "out/index.js",

"devDependencies": {
"@multiversx/sdk-network-providers": "2.4.1",
"@multiversx/sdk-wallet": "4.4.0",
"@multiversx/sdk-network-providers": "2.4.3",
"@multiversx/sdk-wallet": "4.5.0-beta.0",
"@types/assert": "1.4.6",

@@ -41,0 +41,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

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