@towns-labs/relayer 7.0.0 → 7.2.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/README.md +37 -2
- package/dist/README.md +1 -1
- package/dist/index.js +76489 -31013
- package/dist/index.js.map +4 -4
- package/package.json +4 -3
- package/src/rpc/schema/getCallsHistory.ts +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-labs/relayer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
"@scure/bip32": "2.0.1",
|
|
39
39
|
"@scure/bip39": "2.0.1",
|
|
40
40
|
"@slicekit/erc8128": "^0.1.0",
|
|
41
|
-
"@towns-labs/contracts": "^7.
|
|
41
|
+
"@towns-labs/contracts": "^7.2.0",
|
|
42
42
|
"hono": "^4.11.7",
|
|
43
43
|
"oxlint": "^1.41.0",
|
|
44
44
|
"pino": "^10.3.1",
|
|
45
45
|
"viem": "2.45.1",
|
|
46
|
-
"zod": "^4.3.6"
|
|
46
|
+
"zod": "^4.3.6",
|
|
47
|
+
"@privy-io/server-auth": "^1.9.1"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@cloudflare/vitest-pool-workers": "^0.12.18",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Address } from 'viem'
|
|
2
|
+
|
|
3
|
+
export interface GetCallsHistoryParams {
|
|
4
|
+
address: Address
|
|
5
|
+
chainIds?: string[] // hex format, e.g. ['0x2105']
|
|
6
|
+
limit?: number // default 20, max 100
|
|
7
|
+
offset?: number // default 0
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CallHistoryItem {
|
|
11
|
+
id: string // bundle_id
|
|
12
|
+
chain_id: string // hex chain ID
|
|
13
|
+
created_at: number // unix ms
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface GetCallsHistoryResult {
|
|
17
|
+
items: CallHistoryItem[]
|
|
18
|
+
total: number
|
|
19
|
+
}
|