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

ton-core

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ton-core - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

dist/address/Address.spec.d.ts

6

dist/address/Address.js

@@ -20,4 +20,4 @@ "use strict";

// Prepare data
const addr = data.slice(0, 34);
const crc = data.slice(34, 36);
const addr = data.subarray(0, 34);
const crc = data.subarray(34, 36);
const calcedCrc = (0, crc16_1.crc16)(addr);

@@ -45,3 +45,3 @@ if (!(calcedCrc[0] === crc[0] && calcedCrc[1] === crc[1])) {

}
const hashPart = addr.slice(2, 34);
const hashPart = addr.subarray(2, 34);
return { isTestOnly, isBounceable, workchain, hashPart };

@@ -48,0 +48,0 @@ }

export { Address } from './address/Address';
export { ExternalAddress } from './address/ExternalAddress';
export { ADNLAddress } from './address/ADNLAddress';
export { BitString } from './boc/BitString';
export { BitReader } from './boc/BitReader';
export { BitBuilder } from './boc/BitBuilder';
export { Builder, beginCell } from './boc/Builder';
export { Slice } from './boc/Slice';
export { CellType } from './boc/CellType';
export { Cell } from './boc/Cell';
export { exoticMerkleProof } from './boc/cell/exoticMerkleProof';
export { exoticMerkleUpdate } from './boc/cell/exoticMerkleUpdate';
export { exoticPruned } from './boc/cell/exoticPruned';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Address = void 0;
exports.exoticPruned = exports.exoticMerkleUpdate = exports.exoticMerkleProof = exports.Cell = exports.CellType = exports.Slice = exports.beginCell = exports.Builder = exports.BitBuilder = exports.BitReader = exports.BitString = exports.ADNLAddress = exports.ExternalAddress = exports.Address = void 0;
// Address
var Address_1 = require("./address/Address");
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return Address_1.Address; } });
var ExternalAddress_1 = require("./address/ExternalAddress");
Object.defineProperty(exports, "ExternalAddress", { enumerable: true, get: function () { return ExternalAddress_1.ExternalAddress; } });
var ADNLAddress_1 = require("./address/ADNLAddress");
Object.defineProperty(exports, "ADNLAddress", { enumerable: true, get: function () { return ADNLAddress_1.ADNLAddress; } });
// BitString
var BitString_1 = require("./boc/BitString");
Object.defineProperty(exports, "BitString", { enumerable: true, get: function () { return BitString_1.BitString; } });
var BitReader_1 = require("./boc/BitReader");
Object.defineProperty(exports, "BitReader", { enumerable: true, get: function () { return BitReader_1.BitReader; } });
var BitBuilder_1 = require("./boc/BitBuilder");
Object.defineProperty(exports, "BitBuilder", { enumerable: true, get: function () { return BitBuilder_1.BitBuilder; } });
// Cell
var Builder_1 = require("./boc/Builder");
Object.defineProperty(exports, "Builder", { enumerable: true, get: function () { return Builder_1.Builder; } });
Object.defineProperty(exports, "beginCell", { enumerable: true, get: function () { return Builder_1.beginCell; } });
var Slice_1 = require("./boc/Slice");
Object.defineProperty(exports, "Slice", { enumerable: true, get: function () { return Slice_1.Slice; } });
var CellType_1 = require("./boc/CellType");
Object.defineProperty(exports, "CellType", { enumerable: true, get: function () { return CellType_1.CellType; } });
var Cell_1 = require("./boc/Cell");
Object.defineProperty(exports, "Cell", { enumerable: true, get: function () { return Cell_1.Cell; } });
// Exotics
var exoticMerkleProof_1 = require("./boc/cell/exoticMerkleProof");
Object.defineProperty(exports, "exoticMerkleProof", { enumerable: true, get: function () { return exoticMerkleProof_1.exoticMerkleProof; } });
var exoticMerkleUpdate_1 = require("./boc/cell/exoticMerkleUpdate");
Object.defineProperty(exports, "exoticMerkleUpdate", { enumerable: true, get: function () { return exoticMerkleUpdate_1.exoticMerkleUpdate; } });
var exoticPruned_1 = require("./boc/cell/exoticPruned");
Object.defineProperty(exports, "exoticPruned", { enumerable: true, get: function () { return exoticPruned_1.exoticPruned; } });
{
"name": "ton-core",
"version": "0.0.2",
"version": "0.1.0",
"main": "dist/index.js",

@@ -15,14 +15,21 @@ "repository": "https://github.com/ton-community/ton-core.git",

"test": "jest --verbose --runInBand",
"release": "yarn build && yarn release-it --npm.yarn1"
"release": "yarn build && yarn test && yarn release-it --npm.yarn1"
},
"devDependencies": {
"@release-it/keep-a-changelog": "^3.1.0",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.17",
"jest": "^29.3.1",
"prando": "^6.0.1",
"release-it": "^15.5.1",
"ton-crypto": "^3.2.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"@release-it/keep-a-changelog": "^3.1.0"
"ton3-core": "^0.0.20"
},
"peerDependencies": {
"prando": "^6.0.1",
"ton-crypto": ">=3.2.0"
},
"dependencies": {

@@ -38,4 +45,9 @@ "symbol.inspect": "1.0.1"

"release": true
},
"plugins": {
"@release-it/keep-a-changelog": {
"filename": "CHANGELOG.md"
}
}
}
}

@@ -1,7 +0,17 @@

# TON.js core
# 💎 ton-core
Core library that implements low level primitives of TON blockchain.
## How to install
```bash
yarn install ton-core
```
## Address
`Address` represents address in TON and allows conversion from different address formats.
# License
MIT

@@ -17,4 +17,4 @@ import inspectSymbol from 'symbol.inspect';

// Prepare data
const addr = data.slice(0, 34);
const crc = data.slice(34, 36);
const addr = data.subarray(0, 34);
const crc = data.subarray(34, 36);
const calcedCrc = crc16(addr);

@@ -45,3 +45,3 @@ if (!(calcedCrc[0] === crc[0] && calcedCrc[1] === crc[1])) {

const hashPart = addr.slice(2, 34);
const hashPart = addr.subarray(2, 34);

@@ -48,0 +48,0 @@ return { isTestOnly, isBounceable, workchain, hashPart };

@@ -1,1 +0,20 @@

export { Address } from './address/Address';
// Address
export { Address } from './address/Address';
export { ExternalAddress } from './address/ExternalAddress';
export { ADNLAddress } from './address/ADNLAddress';
// BitString
export { BitString } from './boc/BitString';
export { BitReader } from './boc/BitReader';
export { BitBuilder } from './boc/BitBuilder';
// Cell
export { Builder, beginCell } from './boc/Builder';
export { Slice } from './boc/Slice';
export { CellType } from './boc/CellType';
export { Cell } from './boc/Cell';
// Exotics
export { exoticMerkleProof } from './boc/cell/exoticMerkleProof';
export { exoticMerkleUpdate } from './boc/cell/exoticMerkleUpdate';
export { exoticPruned } from './boc/cell/exoticPruned';
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