@openfort/openfort-node 0.8.2 → 0.8.3

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.
@@ -9,9 +9,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
9
9
  });
10
10
 
11
11
  // Create an EVM backend account
12
- const account = await openfort.accounts.evm.backend.create({
13
- name: `MyWallet-${Date.now()}`,
14
- });
12
+ const account = await openfort.accounts.evm.backend.create();
15
13
 
16
14
  console.log("Created EVM account:");
17
15
  console.log(" ID:", account.id);
@@ -18,7 +18,6 @@ console.log("Original address:", originalAccount.address);
18
18
 
19
19
  const account = await openfort.accounts.evm.backend.import({
20
20
  privateKey: originalPrivateKey,
21
- name: "ExportTestWallet",
22
21
  });
23
22
 
24
23
  console.log("\nImported account ID:", account.id);
@@ -14,9 +14,7 @@ const player = await openfort.players.create({
14
14
  });
15
15
  console.log("Created player:", player.id);
16
16
 
17
- const account = await openfort.accounts.evm.backend.create({
18
- name: `MyWallet-${Date.now()}`,
19
- });
17
+ const account = await openfort.accounts.evm.backend.create();
20
18
  console.log("Created account:", account.address);
21
19
 
22
20
  // Retrieve account by ID
@@ -19,7 +19,6 @@ console.log("Expected address:", localAccount.address);
19
19
  // Import the account to Openfort
20
20
  const account = await openfort.accounts.evm.backend.import({
21
21
  privateKey,
22
- name: "ImportedWallet",
23
22
  });
24
23
 
25
24
  console.log("\nImported account:");
@@ -17,8 +17,8 @@ for (const account of result.accounts) {
17
17
  }
18
18
 
19
19
  // Create a few more accounts
20
- await openfort.accounts.evm.backend.create({ name: `Wallet-${Date.now()}-1` });
21
- await openfort.accounts.evm.backend.create({ name: `Wallet-${Date.now()}-2` });
20
+ await openfort.accounts.evm.backend.create();
21
+ await openfort.accounts.evm.backend.create();
22
22
 
23
23
  // List accounts with pagination
24
24
  const moreAccounts = await openfort.accounts.evm.backend.list({
@@ -24,7 +24,7 @@ const result = await openfort.accounts.evm.embedded.pregenerate(
24
24
 
25
25
  console.log("Pre-generated user with embedded wallet:");
26
26
  console.log(" Account ID:", result.id);
27
- console.log(" User ID:", result.user);
27
+ console.log(" Wallet ID:", result.wallet);
28
28
  console.log(" Address:", result.address);
29
29
  console.log(" Owner Address:", result.ownerAddress);
30
30
  console.log(" Account Type:", result.accountType);
@@ -10,9 +10,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
10
10
  });
11
11
 
12
12
  // Create a backend account
13
- const account = await openfort.accounts.evm.backend.create({
14
- name: `Wallet-${Date.now()}`,
15
- });
13
+ const account = await openfort.accounts.evm.backend.create();
16
14
  console.log("Created account:", account.address);
17
15
 
18
16
  // Create a hash to sign
@@ -10,9 +10,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
10
10
  });
11
11
 
12
12
  // Create a backend account
13
- const account = await openfort.accounts.evm.backend.create({
14
- name: `Wallet-${Date.now()}`,
15
- });
13
+ const account = await openfort.accounts.evm.backend.create();
16
14
  console.log("Created account:", account.address);
17
15
 
18
16
  // Sign a message
@@ -10,9 +10,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
10
10
  });
11
11
 
12
12
  // Create a backend account
13
- const account = await openfort.accounts.evm.backend.create({
14
- name: `Wallet-${Date.now()}`,
15
- });
13
+ const account = await openfort.accounts.evm.backend.create();
16
14
  console.log("Created account:", account.address);
17
15
 
18
16
  // Define a transaction to sign
@@ -10,9 +10,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
10
10
  });
11
11
 
12
12
  // Create a backend account
13
- const account = await openfort.accounts.evm.backend.create({
14
- name: `Wallet-${Date.now()}`,
15
- });
13
+ const account = await openfort.accounts.evm.backend.create();
16
14
  console.log("Created account:", account.address);
17
15
 
18
16
  // Define EIP-712 typed data
@@ -15,9 +15,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
15
15
  });
16
16
 
17
17
  // Create an EVM backend wallet to attach the policy to
18
- const account = await openfort.accounts.evm.backend.create({
19
- name: `PolicyAccount-${Date.now()}`,
20
- });
18
+ const account = await openfort.accounts.evm.backend.create();
21
19
  console.log("Created account:", account.id);
22
20
 
23
21
  // ---------------------------------------------------------------------------
@@ -9,9 +9,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
9
9
  });
10
10
 
11
11
  // Create a Solana backend account
12
- const account = await openfort.accounts.solana.backend.create({
13
- name: `SolanaWallet-${Date.now()}`,
14
- });
12
+ const account = await openfort.accounts.solana.backend.create();
15
13
 
16
14
  console.log("Created Solana account:");
17
15
  console.log(" ID:", account.id);
@@ -9,9 +9,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
9
9
  });
10
10
 
11
11
  // Create a Solana backend account
12
- const account = await openfort.accounts.solana.backend.create({
13
- name: "ExportTestSolanaWallet",
14
- });
12
+ const account = await openfort.accounts.solana.backend.create();
15
13
 
16
14
  console.log("Created Solana account:");
17
15
  console.log(" ID:", account.id);
@@ -8,9 +8,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
8
8
  });
9
9
 
10
10
  // Create a Solana backend account
11
- const account = await openfort.accounts.solana.backend.create({
12
- name: `MySolanaWallet-${Date.now()}`,
13
- });
11
+ const account = await openfort.accounts.solana.backend.create();
14
12
  console.log("Created account:", account.address);
15
13
 
16
14
  // Retrieve account by ID
@@ -20,7 +20,6 @@ console.log("Private key (hex):", privateKeyHex);
20
20
  // Openfort accepts both base58 and hex format for Solana keys
21
21
  const account = await openfort.accounts.solana.backend.import({
22
22
  privateKey: privateKeyHex, // Can also be base58 format
23
- name: "ImportedSolanaWallet",
24
23
  });
25
24
 
26
25
  console.log("\nImported Solana account:");
@@ -17,8 +17,8 @@ for (const account of result.accounts) {
17
17
  }
18
18
 
19
19
  // Create a few more accounts
20
- await openfort.accounts.solana.backend.create({ name: `SolanaWallet-${Date.now()}-1` });
21
- await openfort.accounts.solana.backend.create({ name: `SolanaWallet-${Date.now()}-2` });
20
+ await openfort.accounts.solana.backend.create();
21
+ await openfort.accounts.solana.backend.create();
22
22
 
23
23
  // List accounts with pagination
24
24
  const moreAccounts = await openfort.accounts.solana.backend.list({
@@ -9,9 +9,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
9
9
  });
10
10
 
11
11
  // Create a Solana backend account
12
- const account = await openfort.accounts.solana.backend.create({
13
- name: `SolanaWallet-${Date.now()}`,
14
- });
12
+ const account = await openfort.accounts.solana.backend.create();
15
13
  console.log("Created Solana account:", account.address);
16
14
 
17
15
  // Sign a message
@@ -9,9 +9,7 @@ const openfort = new Openfort(process.env.OPENFORT_API_KEY!, {
9
9
  });
10
10
 
11
11
  // Create a Solana backend account
12
- const account = await openfort.accounts.solana.backend.create({
13
- name: `SolanaWallet-${Date.now()}`,
14
- });
12
+ const account = await openfort.accounts.solana.backend.create();
15
13
  console.log("Created Solana account:", account.address);
16
14
 
17
15
  // Create a sample transaction (base64 encoded)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-node",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Openfort Node SDK",
5
5
  "author": "Openfort",
6
6
  "repository": {
@@ -4,5 +4,8 @@ overrides:
4
4
  '@orval/core@>=8.0.0-rc.0 <8.0.2': '>=8.0.2'
5
5
  '@orval/mcp@<7.18.0': '>=7.18.0'
6
6
  '@orval/mock@<7.20.0': '>=7.20.0'
7
+ ajv@>=7.0.0-alpha.0 <8.18.0: '>=8.18.0'
7
8
  axios@<=1.13.4: '>=1.13.5'
8
9
  lodash@>=4.0.0 <=4.17.22: '>=4.17.23'
10
+ minimatch@>=5.0.0 <5.1.7: '>=5.1.7'
11
+ minimatch@>=9.0.0 <9.0.6: '>=9.0.6'