@open-wallet-standard/core 0.3.7 → 0.3.8
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/index.d.ts +2 -0
- package/index.js +2 -1
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -58,5 +58,7 @@ export declare function renameWallet(nameOrId: string, newName: string, vaultPat
|
|
|
58
58
|
export declare function signTransaction(wallet: string, chain: string, txHex: string, passphrase?: string | undefined | null, index?: number | undefined | null, vaultPathOpt?: string | undefined | null): SignResult
|
|
59
59
|
/** Sign a message. Returns hex-encoded signature. */
|
|
60
60
|
export declare function signMessage(wallet: string, chain: string, message: string, passphrase?: string | undefined | null, encoding?: string | undefined | null, index?: number | undefined | null, vaultPathOpt?: string | undefined | null): SignResult
|
|
61
|
+
/** Sign EIP-712 typed structured data (EVM only). Returns hex-encoded signature. */
|
|
62
|
+
export declare function signTypedData(wallet: string, chain: string, typedDataJson: string, passphrase?: string | undefined | null, index?: number | undefined | null, vaultPathOpt?: string | undefined | null): SignResult
|
|
61
63
|
/** Sign and broadcast a transaction. Returns the transaction hash. */
|
|
62
64
|
export declare function signAndSend(wallet: string, chain: string, txHex: string, passphrase?: string | undefined | null, index?: number | undefined | null, rpcUrl?: string | undefined | null, vaultPathOpt?: string | undefined | null): SendResult
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { generateMnemonic, deriveAddress, createWallet, importWalletMnemonic, importWalletPrivateKey, listWallets, getWallet, deleteWallet, exportWallet, renameWallet, signTransaction, signMessage, signAndSend } = nativeBinding
|
|
313
|
+
const { generateMnemonic, deriveAddress, createWallet, importWalletMnemonic, importWalletPrivateKey, listWallets, getWallet, deleteWallet, exportWallet, renameWallet, signTransaction, signMessage, signTypedData, signAndSend } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.generateMnemonic = generateMnemonic
|
|
316
316
|
module.exports.deriveAddress = deriveAddress
|
|
@@ -324,4 +324,5 @@ module.exports.exportWallet = exportWallet
|
|
|
324
324
|
module.exports.renameWallet = renameWallet
|
|
325
325
|
module.exports.signTransaction = signTransaction
|
|
326
326
|
module.exports.signMessage = signMessage
|
|
327
|
+
module.exports.signTypedData = signTypedData
|
|
327
328
|
module.exports.signAndSend = signAndSend
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wallet-standard/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "Node.js native bindings for the Open Wallet Standard",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"@napi-rs/cli": "^2.18.0"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@open-wallet-standard/core-linux-x64-gnu": "0.3.
|
|
35
|
-
"@open-wallet-standard/core-linux-arm64-gnu": "0.3.
|
|
36
|
-
"@open-wallet-standard/core-darwin-x64": "0.3.
|
|
37
|
-
"@open-wallet-standard/core-darwin-arm64": "0.3.
|
|
34
|
+
"@open-wallet-standard/core-linux-x64-gnu": "0.3.8",
|
|
35
|
+
"@open-wallet-standard/core-linux-arm64-gnu": "0.3.8",
|
|
36
|
+
"@open-wallet-standard/core-darwin-x64": "0.3.8",
|
|
37
|
+
"@open-wallet-standard/core-darwin-arm64": "0.3.8"
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"files": [
|