Skip to content

Commit 8841b16

Browse files
committed
fix: add missing signature context param for getters
1 parent 16c2147 commit 8841b16

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "everscale-inpage-provider",
3-
"version": "0.6.4",
3+
"version": "0.6.5",
44
"description": "Web3-like interface to the Everscale blockchain",
55
"repository": "https://github.com/broxus/everscale-inpage-provider",
66
"main": "dist/index.js",

src/api.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,32 @@ export type ProviderApi<Addr = Address> = {
462462
* - If `true`, uses the signature id of the selected network (if the capability is enabled).
463463
* - If `false`, forces signature check to ignore any signature id.
464464
* - If `number`, uses the specified number as a signature id.
465+
* @deprecated
466+
* Use `withSignatureContext` instead.
465467
*/
466468
withSignatureId?: boolean | number;
467469

470+
/**
471+
* Optional advanced signature configuration.
472+
*
473+
* In most cases you **do not need to set this manually**.
474+
* The wallet or network configuration will choose the correct mode.
475+
*
476+
* This field controls how the data is prepared before signing:
477+
*
478+
* - `empty` — signs the data as-is.
479+
* Use for simple or legacy signing.
480+
*
481+
* - `signatureId` — signs the data together with a network-specific id.
482+
* Prevents signatures from being reused on another network.
483+
*
484+
* - `signatureDomainL2` — same as signature id but with a different prefix.
485+
* This should be used where the `SignatureComain` capability is enabled.
486+
*
487+
* If provided, this field overrides `withSignatureId`.
488+
*/
489+
withSignatureContext?: SignatureContext;
490+
468491
/**
469492
* Optional libraries map
470493
**/
@@ -1792,8 +1815,31 @@ export type ProviderApi<Addr = Address> = {
17921815
* - If `true`, uses the signature id of the selected network (if the capability is enabled).
17931816
* - If `false`, forces signature check to ignore any signature id.
17941817
* - If `number`, uses the specified number as a signature id.
1818+
* @deprecated
1819+
* Use `withSignatureContext` instead.
17951820
*/
17961821
withSignatureId?: boolean | number;
1822+
1823+
/**
1824+
* Optional advanced signature configuration.
1825+
*
1826+
* In most cases you **do not need to set this manually**.
1827+
* The wallet or network configuration will choose the correct mode.
1828+
*
1829+
* This field controls how the data is prepared before signing:
1830+
*
1831+
* - `empty` — signs the data as-is.
1832+
* Use for simple or legacy signing.
1833+
*
1834+
* - `signatureId` — signs the data together with a network-specific id.
1835+
* Prevents signatures from being reused on another network.
1836+
*
1837+
* - `signatureDomainL2` — same as signature id but with a different prefix.
1838+
* This should be used where the `SignatureComain` capability is enabled.
1839+
*
1840+
* If provided, this field overrides `withSignatureId`.
1841+
*/
1842+
withSignatureContext?: SignatureContext;
17971843
/**
17981844
* Optional libraries map
17991845
**/

0 commit comments

Comments
 (0)