@seams/wallet-server 0.21.0 → 0.23.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.
@@ -5,7 +5,7 @@ distributed Seams Wallet SDK, server runtime, Wasm, strict Workers, and CLI.
5
5
  Dependency license expressions come from their package metadata. Packaged
6
6
  license and notice wording is reproduced below with normalized whitespace.
7
7
 
8
- Inventory: 450 dependency records (41 npm, 409 Cargo).
8
+ Inventory: 451 dependency records (42 npm, 409 Cargo).
9
9
 
10
10
  ## Dependency inventory
11
11
 
@@ -446,6 +446,7 @@ Inventory: 450 dependency records (41 npm, 409 Cargo).
446
446
  | npm | abitype | 1.2.3 | MIT | awkweb.eth <t@wevm.dev>; jxom.eth <j@wevm.dev> |
447
447
  | npm | asn1js | 3.0.7 | BSD-3-Clause | Ryan Hurst rmh@unmitigatedrisk.com; Yury Strozhevsky yury@strozhevsky.com |
448
448
  | npm | base-x | 5.0.1 | MIT | Daniel Cousens |
449
+ | npm | borsh | 1.0.0 | Apache-2.0 | Near Inc |
449
450
  | npm | bs58 | 6.0.0 | MIT | |
450
451
  | npm | eventemitter3 | 5.0.1 | MIT | Arnout Kazemier |
451
452
  | npm | idb | 8.0.3 | ISC | Jake Archibald |
@@ -2767,7 +2768,7 @@ Applies to:
2767
2768
 
2768
2769
  ### 23f18e03dc49df91
2769
2770
 
2770
- Packaged as: LICENSE, LICENSE-MIT
2771
+ Packaged as: LICENSE, LICENSE-MIT, LICENSE-MIT.txt
2771
2772
 
2772
2773
  Applies to:
2773
2774
 
@@ -2837,6 +2838,7 @@ Applies to:
2837
2838
  - cargo:zmij@1.0.21
2838
2839
  - cargo:zmij@1.0.23
2839
2840
  - npm:@near-js/types@2.4.0
2841
+ - npm:borsh@1.0.0
2840
2842
 
2841
2843
  Permission is hereby granted, free of charge, to any
2842
2844
  person obtaining a copy of this software and associated
@@ -7353,6 +7355,7 @@ Applies to:
7353
7355
  - cargo:borsh@1.6.1
7354
7356
  - cargo:borsh@1.8.0
7355
7357
  - cargo:borsh@1.8.1
7358
+ - npm:borsh@1.0.0
7356
7359
 
7357
7360
  Apache License
7358
7361
  Version 2.0, January 2004
@@ -3,17 +3,17 @@
3
3
  "walletSecurityPolicy": "scoped_seals_and_owner_proofs_v1",
4
4
  "package": {
5
5
  "name": "@seams/wallet-server",
6
- "version": "0.21.0"
6
+ "version": "0.23.0"
7
7
  },
8
8
  "workers": {
9
9
  "router": {
10
10
  "entry": "cloudflare-router-ab/build/router/worker/shim.mjs",
11
- "fingerprint": "7504013e18e9117eedc2820b13d178c646a16d88f2f8f8164b3c3bef646cd737",
11
+ "fingerprint": "16d69ea116b33d19df58a2ea30d0fe59277bfe07b856986b576e45f983f81515",
12
12
  "files": [
13
13
  {
14
14
  "path": "cloudflare-router-ab/build/router/build-stamp.json",
15
15
  "bytes": 119,
16
- "sha256": "d6fa58fdc7a570c5f20ccfe8baaf20aacc016c1d798941f606000e113cb6d74a"
16
+ "sha256": "bdd9dc10a334a0733d8e973a127a49f06a5513f28959874239354ef3727411ed"
17
17
  },
18
18
  {
19
19
  "path": "cloudflare-router-ab/build/router/index.js",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  {
24
24
  "path": "cloudflare-router-ab/build/router/index_bg.wasm",
25
- "bytes": 7108921,
26
- "sha256": "96785cb00bccf9bf8085817fb8048fd4f95f7ccabccc1d4d0a17a8b75d4fa5e3"
25
+ "bytes": 7109033,
26
+ "sha256": "a791cedbd5df0cb84c0680c08339f58ebdeb76845759437d81f675cf1d92539a"
27
27
  },
28
28
  {
29
29
  "path": "cloudflare-router-ab/build/router/package.json",
@@ -39,12 +39,12 @@
39
39
  },
40
40
  "deriver-a": {
41
41
  "entry": "cloudflare-router-ab/build/deriver-a/worker/shim.mjs",
42
- "fingerprint": "0df2c964230d23ccb8e2961b52f4f3b568cd9292d7da821dc43a710f5920c202",
42
+ "fingerprint": "4e9035611a026dacf58afd85fc245fdcd1803c4dc66d1dceb568430857992279",
43
43
  "files": [
44
44
  {
45
45
  "path": "cloudflare-router-ab/build/deriver-a/build-stamp.json",
46
46
  "bytes": 122,
47
- "sha256": "56c496286ed0c9dea46b57a4c5f5d5213b07a4e1f4fc5edff7db76fa4f859109"
47
+ "sha256": "855ad07fa9c2d03db626e064bc9393fa684f5deda016eda7a1dc1bff2cec4c95"
48
48
  },
49
49
  {
50
50
  "path": "cloudflare-router-ab/build/deriver-a/index.js",
@@ -53,8 +53,8 @@
53
53
  },
54
54
  {
55
55
  "path": "cloudflare-router-ab/build/deriver-a/index_bg.wasm",
56
- "bytes": 11184408,
57
- "sha256": "a83707a63ec0c3891b817b6c517b79dfcea9ffd9877ea28baffa9de4360e4529"
56
+ "bytes": 11184432,
57
+ "sha256": "5e7510c28ca56ca06022f09f1be153aef591c3bdad52cde837294c2974c220a1"
58
58
  },
59
59
  {
60
60
  "path": "cloudflare-router-ab/build/deriver-a/package.json",
@@ -70,12 +70,12 @@
70
70
  },
71
71
  "deriver-b": {
72
72
  "entry": "cloudflare-router-ab/build/deriver-b/worker/shim.mjs",
73
- "fingerprint": "18b5c1cd6c0e26bf84a12f5aced8dcc9138ee9b04b4dd61417c3d6a1c4ee9832",
73
+ "fingerprint": "703f4d5d38c2f7fee97a8718e4cc210fd7717fed03fa0689e2845679798104c8",
74
74
  "files": [
75
75
  {
76
76
  "path": "cloudflare-router-ab/build/deriver-b/build-stamp.json",
77
77
  "bytes": 122,
78
- "sha256": "e62763547313770890a6a0f35986b53daba0a92d246102e078a3e6c794d3168f"
78
+ "sha256": "6b18f22e35eb238db007c34f0583e0931f7f10760f2aa39254ce1c5cfa5673c9"
79
79
  },
80
80
  {
81
81
  "path": "cloudflare-router-ab/build/deriver-b/index.js",
@@ -84,8 +84,8 @@
84
84
  },
85
85
  {
86
86
  "path": "cloudflare-router-ab/build/deriver-b/index_bg.wasm",
87
- "bytes": 11217089,
88
- "sha256": "ae54a0a774eeeed51efbda67045f80f3dbad90bde38333ca08d4828ecee2fdf6"
87
+ "bytes": 11217121,
88
+ "sha256": "275f543ea48ab9e16b781cc76f888b0a5e850d42e4fba5e7f95480de38f7b151"
89
89
  },
90
90
  {
91
91
  "path": "cloudflare-router-ab/build/deriver-b/package.json",
@@ -101,12 +101,12 @@
101
101
  },
102
102
  "signing-worker": {
103
103
  "entry": "cloudflare-router-ab/build/signing-worker/worker/shim.mjs",
104
- "fingerprint": "f2118c5d850f42eb0fab6080166e0cad480ed482bd35790ca70cc3934a70658e",
104
+ "fingerprint": "6e63cf05a9d08e8931d281d854eabecd7af6b92bf14cd00db241b3e5b5190222",
105
105
  "files": [
106
106
  {
107
107
  "path": "cloudflare-router-ab/build/signing-worker/build-stamp.json",
108
108
  "bytes": 127,
109
- "sha256": "85bca0f87604272f2284a10e3ab8430f7f5551c697666d4f1f6bb8e6fdefcc5c"
109
+ "sha256": "891e92be77c5591a57d9f33dab4cfe0d044f8370e5a14c2c4ba5af8169d81b8d"
110
110
  },
111
111
  {
112
112
  "path": "cloudflare-router-ab/build/signing-worker/index.js",
@@ -115,8 +115,8 @@
115
115
  },
116
116
  {
117
117
  "path": "cloudflare-router-ab/build/signing-worker/index_bg.wasm",
118
- "bytes": 6778025,
119
- "sha256": "131db67f1e3998349fa00ae1b7d3aa13bd933d0c02bc492102b7fb2e48fa6242"
118
+ "bytes": 6778203,
119
+ "sha256": "878a8ae2a4df685eebf0a5445bc57279183f5683b98abf541f31d40591904dab"
120
120
  },
121
121
  {
122
122
  "path": "cloudflare-router-ab/build/signing-worker/package.json",
@@ -132,12 +132,12 @@
132
132
  },
133
133
  "tenant-root-control-plane": {
134
134
  "entry": "cloudflare-router-ab/build/tenant-root-control-plane/worker/shim.mjs",
135
- "fingerprint": "4e09f4ad191b83652856aa95f7ee9e861679bd82cefd8a56956bd4f264d6ec1d",
135
+ "fingerprint": "980fbb6afc822438491809374d9aad90120602b9a432137d30e763aee9361f1d",
136
136
  "files": [
137
137
  {
138
138
  "path": "cloudflare-router-ab/build/tenant-root-control-plane/build-stamp.json",
139
139
  "bytes": 139,
140
- "sha256": "abf05118601597131933c05641b0d6572e2865a0f792ef8395773208b2e47d00"
140
+ "sha256": "d233922e8336065c6184d083c1f68dba56e4a6296ab3e3f45553f202b089da1b"
141
141
  },
142
142
  {
143
143
  "path": "cloudflare-router-ab/build/tenant-root-control-plane/index.js",
@@ -1 +1 @@
1
- {"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-a-entrypoint","started_at_ms":1792718870662}
1
+ {"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-a-entrypoint","started_at_ms":1793011431381}
@@ -1 +1 @@
1
- {"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-b-entrypoint","started_at_ms":1792719030234}
1
+ {"profile":"release","wallet_objects":true,"features":"strict-worker-deriver-b-entrypoint","started_at_ms":1793011576933}
@@ -1 +1 @@
1
- {"profile":"release","wallet_objects":true,"features":"strict-worker-router-entrypoint","started_at_ms":1792719177930}
1
+ {"profile":"release","wallet_objects":true,"features":"strict-worker-router-entrypoint","started_at_ms":1793011707465}
@@ -1 +1 @@
1
- {"profile":"release","wallet_objects":true,"features":"strict-worker-signing-worker-entrypoint","started_at_ms":1792718636986}
1
+ {"profile":"release","wallet_objects":true,"features":"strict-worker-signing-worker-entrypoint","started_at_ms":1793011221295}
@@ -1 +1 @@
1
- {"profile":"release","wallet_objects":false,"features":"strict-worker-tenant-root-control-plane-entrypoint","started_at_ms":1792719340529}
1
+ {"profile":"release","wallet_objects":false,"features":"strict-worker-tenant-root-control-plane-entrypoint","started_at_ms":1793011841902}
@@ -140,11 +140,9 @@ function validateNamedAccountCreationInput(input) {
140
140
  };
141
141
  }
142
142
  async function fetchRelayerTxContext(input) {
143
- const accessKey = await input.nearClient.viewAccessKey(input.relayerAccount, input.relayerPublicKey);
144
- const nonce = BigInt(accessKey.nonce);
145
- const block = await input.nearClient.viewBlock({ finality: "final" });
143
+ const [accessKey, block] = await Promise.all([input.nearClient.viewAccessKey(input.relayerAccount, input.relayerPublicKey), input.nearClient.viewBlock({ finality: "final" })]);
146
144
  return {
147
- nextNonce: (nonce + 1n).toString(),
145
+ nextNonce: (BigInt(accessKey.nonce) + 1n).toString(),
148
146
  blockHash: block.header.hash
149
147
  };
150
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seams/wallet-server",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "description": "Seams server TypeScript SDK for NEAR and EVM-family wallets",
6
6
  "main": "./dist/esm/index.js",