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

@ton/ton

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ton/ton - npm Package Compare versions

Comparing version 14.0.0 to 15.0.0

4

dist/wallets/v5beta/WalletContractV5Beta.js

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

networkGlobalId: args.walletId?.networkGlobalId ?? -239,
workChain: args?.walletId?.workChain ?? 0,
workchain: args?.walletId?.workchain ?? 0,
subwalletNumber: args?.walletId?.subwalletNumber ?? 0,

@@ -42,3 +42,3 @@ walletVersion: args?.walletId?.walletVersion ?? 'v5'

this.init = { code, data };
this.address = (0, core_1.contractAddress)(this.walletId.workChain, { code, data });
this.address = (0, core_1.contractAddress)(this.walletId.workchain, { code, data });
}

@@ -45,0 +45,0 @@ /**

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

const extensionKey = (0, randomTestKey_1.randomTestKey)('v5-treasure-extension');
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workChain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workchain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
let seqno = await wallet.getSeqno();

@@ -147,3 +147,3 @@ const extensions = await getExtensionsArray(wallet);

const extensionKey = (0, randomTestKey_1.randomTestKey)('v5-treasure-extension');
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workChain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workchain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
const seqno = await wallet.getSeqno();

@@ -162,3 +162,3 @@ const extensions = await getExtensionsArray(wallet);

const relaerKey = (0, randomTestKey_1.randomTestKey)('v5-treasure-relayer');
const relayerContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workChain: 0, networkGlobalId: -3 }, publicKey: relaerKey.publicKey }));
const relayerContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workchain: 0, networkGlobalId: -3 }, publicKey: relaerKey.publicKey }));
const seqno = await wallet.getSeqno();

@@ -191,3 +191,3 @@ const relayerSeqno = await relayerContract.getSeqno();

const extensionKey = (0, randomTestKey_1.randomTestKey)('v5-treasure-extension');
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workChain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
const extensionContract = client.open(WalletContractV5Beta_1.WalletContractV5Beta.create({ walletId: { workchain: 0, networkGlobalId: -3 }, publicKey: extensionKey.publicKey }));
let seqno = await wallet.getSeqno();

@@ -194,0 +194,0 @@ const extensions = await getExtensionsArray(wallet);

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

readonly networkGlobalId: number;
readonly workChain: number;
readonly workchain: number;
readonly subwalletNumber: number;

@@ -12,0 +12,0 @@ }

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

const networkGlobalId = bitReader.loadInt(32);
const workChain = bitReader.loadInt(8);
const workchain = bitReader.loadInt(8);
const walletVersionRaw = bitReader.loadUint(8);

@@ -21,3 +21,3 @@ const subwalletNumber = bitReader.loadUint(32);

}
return { networkGlobalId, workChain, walletVersion, subwalletNumber };
return { networkGlobalId, workchain, walletVersion, subwalletNumber };
}

@@ -28,3 +28,3 @@ exports.loadWalletIdV5Beta = loadWalletIdV5Beta;

builder.storeInt(walletId.networkGlobalId, 32);
builder.storeInt(walletId.workChain, 8);
builder.storeInt(walletId.workchain, 8);
builder.storeUint(walletV5BetaVersionsSerialisation[walletId.walletVersion], 8);

@@ -31,0 +31,0 @@ builder.storeUint(walletId.subwalletNumber, 32);

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

networkGlobalId: -239,
workChain: 0,
workchain: 0,
subwalletNumber: 0

@@ -17,3 +17,3 @@ };

.storeInt(walletId.networkGlobalId, 32)
.storeInt(walletId.workChain, 8)
.storeInt(walletId.workchain, 8)
.storeUint(0, 8)

@@ -28,3 +28,3 @@ .storeUint(walletId.subwalletNumber, 32)

networkGlobalId: -239,
workChain: 0,
workchain: 0,
subwalletNumber: 0

@@ -34,3 +34,3 @@ };

.storeInt(expected.networkGlobalId, 32)
.storeInt(expected.workChain, 8)
.storeInt(expected.workchain, 8)
.storeUint(0, 8)

@@ -45,3 +45,3 @@ .storeUint(expected.subwalletNumber, 32)

networkGlobalId: -3,
workChain: -1,
workchain: -1,
subwalletNumber: 1234

@@ -52,3 +52,3 @@ };

.storeInt(walletId.networkGlobalId, 32)
.storeInt(walletId.workChain, 8)
.storeInt(walletId.workchain, 8)
.storeUint(0, 8)

@@ -63,3 +63,3 @@ .storeUint(walletId.subwalletNumber, 32)

networkGlobalId: -239,
workChain: -1,
workchain: -1,
subwalletNumber: 1

@@ -69,3 +69,3 @@ };

.storeInt(expected.networkGlobalId, 32)
.storeInt(expected.workChain, 8)
.storeInt(expected.workchain, 8)
.storeUint(0, 8)

@@ -72,0 +72,0 @@ .storeUint(expected.subwalletNumber, 32)

@@ -42,3 +42,3 @@ /**

} : {
workChain?: number;
workchain?: number;
publicKey: Buffer;

@@ -45,0 +45,0 @@ walletId?: Maybe<Partial<WalletIdV5R1<C>>>;

@@ -16,13 +16,13 @@ "use strict";

static create(args) {
let workChain = 0;
if ('workChain' in args && args.workChain != undefined) {
workChain = args.workChain;
let workchain = 0;
if ('workchain' in args && args.workchain != undefined) {
workchain = args.workchain;
}
if (args.walletId?.context && (0, WalletV5R1WalletId_1.isWalletIdV5R1ClientContext)(args.walletId.context) && args.walletId.context.workChain != undefined) {
workChain = args.walletId.context.workChain;
if (args.walletId?.context && (0, WalletV5R1WalletId_1.isWalletIdV5R1ClientContext)(args.walletId.context) && args.walletId.context.workchain != undefined) {
workchain = args.walletId.context.workchain;
}
return new WalletContractV5R1(workChain, args.publicKey, {
return new WalletContractV5R1(workchain, args.publicKey, {
networkGlobalId: args.walletId?.networkGlobalId ?? -239,
context: args.walletId?.context ?? {
workChain: 0,
workchain: 0,
walletVersion: 'v5r1',

@@ -33,3 +33,3 @@ subwalletNumber: 0

}
constructor(workChain, publicKey, walletId) {
constructor(workchain, publicKey, walletId) {
this.publicKey = publicKey;

@@ -48,3 +48,3 @@ this.walletId = walletId;

this.init = { code, data };
this.address = (0, core_1.contractAddress)(workChain, { code, data });
this.address = (0, core_1.contractAddress)(workchain, { code, data });
}

@@ -51,0 +51,0 @@ /**

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

readonly walletVersion: 'v5r1';
readonly workChain: number;
readonly workchain: number;
readonly subwalletNumber: number;

@@ -37,0 +37,0 @@ }

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

if (isClientContext) {
const workChain = bitReader.loadInt(8);
const workchain = bitReader.loadInt(8);
const walletVersionRaw = bitReader.loadUint(8);

@@ -36,3 +36,3 @@ const subwalletNumber = bitReader.loadUint(15);

walletVersion,
workChain,
workchain,
subwalletNumber

@@ -57,3 +57,3 @@ }

.storeUint(1, 1)
.storeInt(walletId.context.workChain, 8)
.storeInt(walletId.context.workchain, 8)
.storeUint(walletV5R1VersionsSerialisation[walletId.context.walletVersion], 8)

@@ -60,0 +60,0 @@ .storeUint(walletId.context.subwalletNumber, 15)

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

walletVersion: 'v5r1',
workChain: 0,
workchain: 0,
subwalletNumber: 0

@@ -19,3 +19,3 @@ }

.storeUint(1, 1)
.storeInt(walletId.context.workChain, 8)
.storeInt(walletId.context.workchain, 8)
.storeUint(0, 8)

@@ -32,3 +32,3 @@ .storeUint(walletId.context.subwalletNumber, 15)

walletVersion: 'v5r1',
workChain: 0,
workchain: 0,
subwalletNumber: 0

@@ -39,3 +39,3 @@ }

.storeUint(1, 1)
.storeInt(expected.context.workChain, 8)
.storeInt(expected.context.workchain, 8)
.storeUint(0, 8)

@@ -42,0 +42,0 @@ .storeUint(expected.context.subwalletNumber, 15)

{
"name": "@ton/ton",
"version": "14.0.0",
"version": "15.0.0",
"repository": "https://github.com/ton-org/ton.git",

@@ -5,0 +5,0 @@ "author": "Whales Corp. <developers@whalescorp.com>",

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