@towns-labs/relayer 2.1.0 → 2.1.1
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/README.md +1 -1
- package/dist/index.js +112 -120
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/rpc/schema/prepareCalls.ts +2 -20
- package/src/rpc/schema/sendPreparedCalls.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-labs/relayer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@scure/bip32": "2.0.1",
|
|
38
38
|
"@scure/bip39": "2.0.1",
|
|
39
39
|
"@slicekit/erc8128": "^0.1.0",
|
|
40
|
-
"@towns-labs/contracts": "^2.1.
|
|
40
|
+
"@towns-labs/contracts": "^2.1.1",
|
|
41
41
|
"hono": "^4.11.7",
|
|
42
42
|
"oxlint": "^1.41.0",
|
|
43
43
|
"pino": "10.2.0",
|
|
@@ -9,20 +9,6 @@ export interface RpcCall {
|
|
|
9
9
|
value?: string // hex
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* Key type for signing
|
|
14
|
-
*/
|
|
15
|
-
export type KeyType = 'secp256k1'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Call key for signing
|
|
19
|
-
*/
|
|
20
|
-
export interface CallKey {
|
|
21
|
-
type: KeyType
|
|
22
|
-
publicKey: Hex
|
|
23
|
-
prehash: boolean
|
|
24
|
-
}
|
|
25
|
-
|
|
26
12
|
/**
|
|
27
13
|
* Parameters for wallet_prepareCalls
|
|
28
14
|
*/
|
|
@@ -30,11 +16,8 @@ export interface PrepareCallsParams {
|
|
|
30
16
|
from?: Address
|
|
31
17
|
chain_id: string // hex
|
|
32
18
|
calls: RpcCall[]
|
|
33
|
-
key
|
|
34
|
-
|
|
35
|
-
public_key: Hex
|
|
36
|
-
prehash?: boolean
|
|
37
|
-
}
|
|
19
|
+
/** Session key public key for gas simulation accuracy */
|
|
20
|
+
session_key?: Hex
|
|
38
21
|
capabilities?: {
|
|
39
22
|
meta?: {
|
|
40
23
|
fee_payer?: Address
|
|
@@ -178,6 +161,5 @@ export interface PrepareCallsResult {
|
|
|
178
161
|
message: Record<string, unknown>
|
|
179
162
|
}
|
|
180
163
|
capabilities: PrepareCallsCapabilities
|
|
181
|
-
key?: CallKey
|
|
182
164
|
signature: Hex
|
|
183
165
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hex } from 'viem'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PrepareCallsContext } from './prepareCalls'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for wallet_sendPreparedCalls (spec-compliant)
|
|
@@ -7,7 +7,6 @@ import type { CallKey, PrepareCallsContext } from './prepareCalls'
|
|
|
7
7
|
export interface SendPreparedCallsParams {
|
|
8
8
|
context: PrepareCallsContext
|
|
9
9
|
signature: Hex
|
|
10
|
-
key?: CallKey
|
|
11
10
|
/** Payment signature for third-party sponsorship (when payer != sender) */
|
|
12
11
|
paymentSignature?: Hex
|
|
13
12
|
capabilities?: {
|