@towns-labs/relayer 2.1.1 → 3.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towns-labs/relayer",
3
- "version": "2.1.1",
3
+ "version": "3.1.0",
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.1",
40
+ "@towns-labs/contracts": "^3.1.0",
41
41
  "hono": "^4.11.7",
42
42
  "oxlint": "^1.41.0",
43
43
  "pino": "10.2.0",
@@ -1,4 +1,4 @@
1
- import type { Address, Hex } from 'viem'
1
+ import type { Address, Hex, TypedDataDomain } from 'viem'
2
2
 
3
3
  /**
4
4
  * Call object in JSON-RPC format
@@ -6,7 +6,7 @@ import type { Address, Hex } from 'viem'
6
6
  export interface RpcCall {
7
7
  to: Address
8
8
  data?: Hex
9
- value?: string // hex
9
+ value?: Hex
10
10
  }
11
11
 
12
12
  /**
@@ -142,8 +142,6 @@ export type PrepareCallsContext = {
142
142
  * Capabilities in the prepareCalls response
143
143
  */
144
144
  export interface PrepareCallsCapabilities {
145
- authorizeKeys: unknown[]
146
- revokeKeys: unknown[]
147
145
  feeTotals: Record<string, AssetPrice>
148
146
  assetDiffs: Record<string, Array<[Address, AssetDiff[]]>>
149
147
  }
@@ -155,8 +153,8 @@ export interface PrepareCallsResult {
155
153
  context: PrepareCallsContext
156
154
  digest: Hex
157
155
  typedData: {
158
- domain: Record<string, unknown>
159
- types: Record<string, unknown>
156
+ domain: TypedDataDomain
157
+ types: Record<string, ReadonlyArray<{ name: string; type: string }>>
160
158
  primaryType: string
161
159
  message: Record<string, unknown>
162
160
  }
@@ -1,4 +1,4 @@
1
- import type { Address, Hex } from 'viem'
1
+ import type { Address, Hex, TypedDataDomain } from 'viem'
2
2
 
3
3
  /**
4
4
  * Key types supported for authorization
@@ -131,8 +131,8 @@ export interface PrepareUpgradeResult {
131
131
  digests: UpgradeAccountDigests
132
132
  /** EIP-712 typed data for the exec signature */
133
133
  typedData: {
134
- domain: Record<string, unknown>
135
- types: Record<string, unknown>
134
+ domain: TypedDataDomain
135
+ types: Record<string, ReadonlyArray<{ name: string; type: string }>>
136
136
  primaryType: string
137
137
  message: Record<string, unknown>
138
138
  }