@tonconnect/sdk 2.0.2 → 2.0.3
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.
package/lib/cjs/utils/address.js
CHANGED
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.toUserFriendlyAddress = void 0;
|
|
4
4
|
const errors_1 = require("../errors");
|
|
5
5
|
const protocol_1 = require("@tonconnect/protocol");
|
|
6
|
+
/**
|
|
7
|
+
* Converts raw TON address to bounceable user-friendly format. [See details]{@link https://ton.org/docs/learn/overviews/addresses}
|
|
8
|
+
* @param hexAddress raw TON address formatted as "0:<hex string without 0x>".
|
|
9
|
+
*/
|
|
6
10
|
function toUserFriendlyAddress(hexAddress) {
|
|
7
11
|
const { wc, hex } = parseHexAddress(hexAddress);
|
|
8
12
|
const bounceableTag = 0x11;
|
package/lib/esm/utils/address.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { WrongAddressError, ParseHexError } from "../errors";
|
|
2
2
|
import { Base64 } from '@tonconnect/protocol';
|
|
3
|
+
/**
|
|
4
|
+
* Converts raw TON address to bounceable user-friendly format. [See details]{@link https://ton.org/docs/learn/overviews/addresses}
|
|
5
|
+
* @param hexAddress raw TON address formatted as "0:<hex string without 0x>".
|
|
6
|
+
*/
|
|
3
7
|
export function toUserFriendlyAddress(hexAddress) {
|
|
4
8
|
const { wc, hex } = parseHexAddress(hexAddress);
|
|
5
9
|
const bounceableTag = 0x11;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts raw TON address to bounceable user-friendly format. [See details]{@link https://ton.org/docs/learn/overviews/addresses}
|
|
3
|
+
* @param hexAddress raw TON address formatted as "0:<hex string without 0x>".
|
|
4
|
+
*/
|
|
1
5
|
export declare function toUserFriendlyAddress(hexAddress: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonconnect/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npx rimraf lib && ttsc --outDir ./lib/cjs && ttsc --module esnext --outDir ./lib/esm && npx rimraf dist && webpack --mode development",
|
|
6
6
|
"build:production": "npx rimraf lib && ttsc --project tsconfig.cjs.json --sourceMap false && ttsc --project tsconfig.esm.json --sourceMap false && npx rimraf dist && webpack --mode production"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"tweetnacl": "^1.0.3",
|
|
29
29
|
"eventsource": "^2.0.2",
|
|
30
30
|
"node-fetch": "^2.6.7",
|
|
31
|
-
"@tonconnect/protocol": "^2.0.
|
|
31
|
+
"@tonconnect/protocol": "^2.0.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"lib",
|