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

ton

Package Overview
Dependencies
Maintainers
3
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ton - npm Package Compare versions

Comparing version 4.6.0 to 4.7.0

dist/utils/ConfigStore.d.ts

1

dist/contracts/sources/ContractSource.d.ts

@@ -7,3 +7,4 @@ import { Address, Cell } from "../..";

type: string;
backup(): string;
}
export declare function contractAddress(source: ContractSource): Promise<Address>;

@@ -9,2 +9,3 @@ import { Cell } from "../..";

constructor(type: string, workchain: number);
backup: () => never;
}

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

}
backup = () => {
throw Error('Unknown');
};
}
exports.UnknownContractSource = UnknownContractSource;

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

}): WalletV1R1Source;
static restore(backup: string): WalletV1R1Source;
readonly publicKey: Buffer;

@@ -17,2 +18,3 @@ readonly initialCode: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV1R1Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc') });
}
publicKey;

@@ -31,3 +35,9 @@ initialCode;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV1R1Source = WalletV1R1Source;

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

}): WalletV1R2Source;
static restore(backup: string): WalletV1R2Source;
readonly publicKey: Buffer;

@@ -17,2 +18,3 @@ readonly initialCode: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV1R2Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc') });
}
publicKey;

@@ -31,3 +35,9 @@ initialCode;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV1R2Source = WalletV1R2Source;

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

}): WalletV1R3Source;
static restore(backup: string): WalletV1R3Source;
readonly publicKey: Buffer;

@@ -17,2 +18,3 @@ readonly initialCode: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV1R3Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc') });
}
publicKey;

@@ -31,3 +35,9 @@ initialCode;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV1R3Source = WalletV1R3Source;

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

}): WalletV2R1Source;
static restore(backup: string): WalletV2R1Source;
readonly publicKey: Buffer;

@@ -17,2 +18,3 @@ readonly initialCode: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV2R1Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc') });
}
publicKey;

@@ -31,3 +35,9 @@ initialCode;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV2R1Source = WalletV2R1Source;

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

}): WalletV2R2Source;
static restore(backup: string): WalletV2R2Source;
readonly publicKey: Buffer;

@@ -17,2 +18,3 @@ readonly initialCode: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV2R2Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc') });
}
publicKey;

@@ -31,3 +35,9 @@ initialCode;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV2R2Source = WalletV2R2Source;

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

}): WalletV3R1Source;
static restore(backup: string): WalletV3R1Source;
readonly initialCode: Cell;

@@ -20,2 +21,3 @@ readonly initialData: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV3R1Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc'), walletId: store.getInt('walletId') });
}
initialCode;

@@ -48,3 +52,10 @@ initialData;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setInt('walletId', this.walletId);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV3R1Source = WalletV3R1Source;

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

}): WalletV3R2Source;
static restore(backup: string): WalletV3R2Source;
readonly initialCode: Cell;

@@ -20,2 +21,3 @@ readonly initialData: Cell;

private constructor();
backup: () => string;
}

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

}
static restore(backup) {
const store = new __1.ConfigStore(backup);
return WalletV3R2Source.create({ publicKey: store.getBuffer('pk'), workchain: store.getInt('wc'), walletId: store.getInt('walletId') });
}
initialCode;

@@ -48,3 +52,10 @@ initialData;

}
backup = () => {
const store = new __1.ConfigStore();
store.setInt('wc', this.workchain);
store.setInt('walletId', this.walletId);
store.setBuffer('pk', this.publicKey);
return store.save();
};
}
exports.WalletV3R2Source = WalletV3R2Source;

@@ -30,1 +30,2 @@ export { BitString } from './boc/BitString';

export { WalletV3R2Source } from './contracts/sources/WalletV3R2Source';
export { ConfigStore } from './utils/ConfigStore';

5

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WalletV3R2Source = exports.WalletV3R1Source = exports.WalletV2R2Source = exports.WalletV2R1Source = exports.WalletV1R3Source = exports.WalletV1R2Source = exports.WalletV1R1Source = exports.UnknownContractSource = exports.createWalletTransferV3 = exports.createWalletTransferV2 = exports.createWalletTransferV1 = exports.WalletContract = exports.ElectorContract = exports.CommonMessageInfo = exports.StateInit = exports.EmptyMessage = exports.ExternalMessage = exports.InternalMessage = exports.RawMessage = exports.KeyStore = exports.fromNano = exports.toNano = exports.Address = exports.validateWalletType = exports.Wallet = exports.TonClient = exports.Cell = exports.BitString = void 0;
exports.ConfigStore = exports.WalletV3R2Source = exports.WalletV3R1Source = exports.WalletV2R2Source = exports.WalletV2R1Source = exports.WalletV1R3Source = exports.WalletV1R2Source = exports.WalletV1R1Source = exports.UnknownContractSource = exports.createWalletTransferV3 = exports.createWalletTransferV2 = exports.createWalletTransferV1 = exports.WalletContract = exports.ElectorContract = exports.CommonMessageInfo = exports.StateInit = exports.EmptyMessage = exports.ExternalMessage = exports.InternalMessage = exports.RawMessage = exports.KeyStore = exports.fromNano = exports.toNano = exports.Address = exports.validateWalletType = exports.Wallet = exports.TonClient = exports.Cell = exports.BitString = void 0;
var BitString_1 = require("./boc/BitString");

@@ -56,1 +56,4 @@ Object.defineProperty(exports, "BitString", { enumerable: true, get: function () { return BitString_1.BitString; } });

Object.defineProperty(exports, "WalletV3R2Source", { enumerable: true, get: function () { return WalletV3R2Source_1.WalletV3R2Source; } });
// Utils
var ConfigStore_1 = require("./utils/ConfigStore");
Object.defineProperty(exports, "ConfigStore", { enumerable: true, get: function () { return ConfigStore_1.ConfigStore; } });
{
"name": "ton",
"version": "4.6.0",
"version": "4.7.0",
"repository": "https://github.com/ex3ndr/ton.git",

@@ -12,3 +12,3 @@ "author": "Steve Korshakov <steve@korshakov.com>",

"scripts": {
"build": "rm -fr build && tsc --declaration",
"build": "rm -fr dist && tsc --declaration",
"test": "jest --verbose --runInBand",

@@ -15,0 +15,0 @@ "release": "yarn build && yarn test && yarn publish"

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