🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@tonconnect/protocol

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonconnect/protocol - npm Package Compare versions

Comparing version

to
2.3.0-beta.0

38

lib/types/index.d.ts

@@ -122,2 +122,4 @@ export declare type AppMessage = ConnectRequest | AppRequest<keyof RpcRequests>;

export declare type FeatureName = Exclude<Feature, 'SendTransaction'>['name'];
export declare function hexToByteArray(hexString: string): Uint8Array;

@@ -214,12 +216,26 @@

name: 'SignData';
types: SignDataType[];
};
export declare type SignDataPayload = SignDataPayloadText | SignDataPayloadBinary | SignDataPayloadCell;
export declare type SignDataPayloadBinary = {
type: 'binary';
bytes: string;
};
export declare type SignDataPayloadCell = {
type: 'cell';
schema: string;
cell: string;
};
export declare type SignDataPayloadText = {
type: 'text';
text: string;
};
export declare interface SignDataRpcRequest {
method: 'signData';
params: [
{
schema_crc: number;
cell: string;
}
];
params: [string];
id: string;

@@ -234,3 +250,2 @@ }

message: string;
data?: unknown;
};

@@ -241,9 +256,14 @@ id: string;

export declare interface SignDataRpcResponseSuccess {
id: string;
result: {
signature: string;
timestamp: string;
address: string;
timestamp: number;
domain: string;
payload: SignDataPayload;
};
id: string;
}
export declare type SignDataType = 'text' | 'binary' | 'cell';
export declare function splitToUint8Arrays(array: Uint8Array, index: number): [Uint8Array, Uint8Array];

@@ -250,0 +270,0 @@

{
"name": "@tonconnect/protocol",
"version": "2.2.7",
"version": "2.3.0-beta.0",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet