@getpara/viem-v1-integration 3.5.1 → 3.6.0

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/dist/cjs/index.js CHANGED
@@ -12,9 +12,9 @@ var __copyProps = (to, from, except, desc) => {
12
12
  };
13
13
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var src_exports = {};
16
- module.exports = __toCommonJS(src_exports);
17
- __reExport(src_exports, require("./viemWalletClient.js"), module.exports);
15
+ var index_exports = {};
16
+ module.exports = __toCommonJS(index_exports);
17
+ __reExport(index_exports, require("./viemWalletClient.js"), module.exports);
18
18
  // Annotate the CommonJS export names for ESM import in node:
19
19
  0 && (module.exports = {
20
20
  ...require("./viemWalletClient.js")
@@ -82,13 +82,13 @@ function createParaAccount(para, walletAddress) {
82
82
  publicKey: currentWallet.publicKey || "0x",
83
83
  source: "custom",
84
84
  type: "local",
85
- signMessage: (_0) => __async(this, [_0], function* ({ message }) {
85
+ signMessage: (_0) => __async(null, [_0], function* ({ message }) {
86
86
  const hashedMessage = (0, import_viem.hashMessage)(message);
87
87
  const res = yield para.signMessage({ walletId: currentWallet.id, messageBase64: (0, import_core_sdk.hexStringToBase64)(hashedMessage) });
88
88
  const signature = res.signature;
89
89
  return `0x${signature}`;
90
90
  }),
91
- signTransaction: (transaction, args) => __async(this, null, function* () {
91
+ signTransaction: (transaction, args) => __async(null, null, function* () {
92
92
  let { serializer } = args || {};
93
93
  if (!serializer) {
94
94
  serializer = import_viem.serializeTransaction;
@@ -108,7 +108,7 @@ function createParaAccount(para, walletAddress) {
108
108
  formattedSig.v += BigInt(27);
109
109
  return serializer(transaction, formattedSig);
110
110
  }),
111
- signTypedData: (typedData) => __async(this, null, function* () {
111
+ signTypedData: (typedData) => __async(null, null, function* () {
112
112
  const res = yield para.signMessage({
113
113
  walletId: currentWallet.id,
114
114
  messageBase64: (0, import_core_sdk.hexStringToBase64)((0, import_viem.hashTypedData)(typedData))
@@ -55,13 +55,13 @@ function createParaAccount(para, walletAddress) {
55
55
  publicKey: currentWallet.publicKey || "0x",
56
56
  source: "custom",
57
57
  type: "local",
58
- signMessage: (_0) => __async(this, [_0], function* ({ message }) {
58
+ signMessage: (_0) => __async(null, [_0], function* ({ message }) {
59
59
  const hashedMessage = hashMessage(message);
60
60
  const res = yield para.signMessage({ walletId: currentWallet.id, messageBase64: hexStringToBase64(hashedMessage) });
61
61
  const signature = res.signature;
62
62
  return `0x${signature}`;
63
63
  }),
64
- signTransaction: (transaction, args) => __async(this, null, function* () {
64
+ signTransaction: (transaction, args) => __async(null, null, function* () {
65
65
  let { serializer } = args || {};
66
66
  if (!serializer) {
67
67
  serializer = serializeTransaction;
@@ -81,7 +81,7 @@ function createParaAccount(para, walletAddress) {
81
81
  formattedSig.v += BigInt(27);
82
82
  return serializer(transaction, formattedSig);
83
83
  }),
84
- signTypedData: (typedData) => __async(this, null, function* () {
84
+ signTypedData: (typedData) => __async(null, null, function* () {
85
85
  const res = yield para.signMessage({
86
86
  walletId: currentWallet.id,
87
87
  messageBase64: hexStringToBase64(hashTypedData(typedData))
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@getpara/viem-v1-integration",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "dependencies": {
5
- "@getpara/core-sdk": "3.5.1"
5
+ "@getpara/core-sdk": "3.6.0"
6
6
  },
7
7
  "devDependencies": {
8
8
  "typescript": "^5.8.3",
@@ -19,7 +19,7 @@
19
19
  "dist",
20
20
  "package.json"
21
21
  ],
22
- "gitHead": "362fc377edf3cca5f743679498ff4908921c8468",
22
+ "gitHead": "565535ab0cf38d65f6996fc9f1ede52d133ddac0",
23
23
  "main": "dist/cjs/index.js",
24
24
  "module": "dist/esm/index.js",
25
25
  "peerDependencies": {