@tonconnect/protocol
Advanced tools
Comparing version
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
53070
1.1%607
2.36%1
Infinity%