@openfort/openfort-node 0.8.2 → 0.8.4
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/CHANGELOG.md +12 -0
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -16
- package/dist/index.mjs.map +1 -1
- package/examples/evm/accounts/createAccount.ts +1 -3
- package/examples/evm/accounts/exportAccount.ts +0 -1
- package/examples/evm/accounts/getAccount.ts +1 -3
- package/examples/evm/accounts/importAccount.ts +0 -1
- package/examples/evm/accounts/listAccounts.ts +2 -2
- package/examples/evm/embedded/pregenerate.ts +1 -1
- package/examples/evm/signing/signHash.ts +1 -3
- package/examples/evm/signing/signMessage.ts +1 -3
- package/examples/evm/signing/signTransaction.ts +1 -3
- package/examples/evm/signing/signTypedData.ts +1 -3
- package/examples/policies/createAccountPolicy.ts +1 -3
- package/examples/solana/accounts/createAccount.ts +1 -3
- package/examples/solana/accounts/exportAccount.ts +1 -3
- package/examples/solana/accounts/getAccount.ts +1 -3
- package/examples/solana/accounts/importAccount.ts +0 -1
- package/examples/solana/accounts/listAccounts.ts +2 -2
- package/examples/solana/signing/signMessage.ts +1 -3
- package/examples/solana/signing/signTransaction.ts +1 -3
- package/package.json +1 -1
- package/pnpm-workspace.yaml +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72](https://github.com/openfort-xyz/openfort-node/pull/72) [`f6e6bbd249644bdb9fe287d3b363c06dabb2d77b`](https://github.com/openfort-xyz/openfort-node/commit/f6e6bbd249644bdb9fe287d3b363c06dabb2d77b) Thanks [@jamalavedra](https://github.com/jamalavedra)! - update backend wallet interactions
|
|
8
|
+
|
|
9
|
+
## 0.8.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#70](https://github.com/openfort-xyz/openfort-node/pull/70) [`2d6969484811e40f39f98a7e5883b7ea21a8a681`](https://github.com/openfort-xyz/openfort-node/commit/2d6969484811e40f39f98a7e5883b7ea21a8a681) Thanks [@jamalavedra](https://github.com/jamalavedra)! - update deps
|
|
14
|
+
|
|
3
15
|
## 0.8.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -830,7 +830,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
// src/version.ts
|
|
833
|
-
var VERSION = "0.8.
|
|
833
|
+
var VERSION = "0.8.4";
|
|
834
834
|
var PACKAGE = "@openfort/openfort-node";
|
|
835
835
|
|
|
836
836
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -1172,7 +1172,7 @@ var openfortApiClient = async (config, options) => {
|
|
|
1172
1172
|
);
|
|
1173
1173
|
}
|
|
1174
1174
|
throw new UnknownError(
|
|
1175
|
-
"Something went wrong. Please contact support at
|
|
1175
|
+
"Something went wrong. Please contact support at support@openfort.xyz",
|
|
1176
1176
|
error instanceof Error ? error : void 0
|
|
1177
1177
|
);
|
|
1178
1178
|
}
|
|
@@ -4232,19 +4232,13 @@ function toEvmAccount(data) {
|
|
|
4232
4232
|
},
|
|
4233
4233
|
async signMessage(parameters) {
|
|
4234
4234
|
const { message } = parameters;
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
const result2 = await sign(id, { data: hash2 });
|
|
4238
|
-
return result2.signature;
|
|
4239
|
-
}
|
|
4240
|
-
const hash = (0, import_viem.hashMessage)(message);
|
|
4241
|
-
const result = await sign(id, { data: hash });
|
|
4235
|
+
const preimage = (0, import_viem.toPrefixedMessage)(message);
|
|
4236
|
+
const result = await sign(id, { data: preimage });
|
|
4242
4237
|
return result.signature;
|
|
4243
4238
|
},
|
|
4244
4239
|
async signTransaction(transaction) {
|
|
4245
4240
|
const serialized = (0, import_viem.serializeTransaction)(transaction);
|
|
4246
|
-
const
|
|
4247
|
-
const response = await sign(id, { data: hash });
|
|
4241
|
+
const response = await sign(id, { data: serialized });
|
|
4248
4242
|
const signature2 = (0, import_viem.parseSignature)(response.signature);
|
|
4249
4243
|
const signedTransaction = (0, import_viem.serializeTransaction)(
|
|
4250
4244
|
transaction,
|