@layer-drone/protocol 0.1.2 → 0.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/dist/index.d.mts +690 -12
- package/dist/index.d.ts +690 -12
- package/dist/index.js +324 -1
- package/dist/index.mjs +309 -1
- package/package.json +5 -4
- package/src/client/sdk.gen.ts +464 -0
- package/src/client/transformers.gen.ts +102 -0
- package/src/client/types.gen.ts +779 -32
- package/src/event/types.gen.ts +11 -0
package/src/event/types.gen.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const Event = z.union([
|
|
|
17
17
|
timestamp: z.string(),
|
|
18
18
|
data: z
|
|
19
19
|
.object({
|
|
20
|
+
version: z.literal(1),
|
|
20
21
|
id: z
|
|
21
22
|
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
22
23
|
.transform((wire) => BigInt(wire.value)),
|
|
@@ -31,7 +32,13 @@ export const Event = z.union([
|
|
|
31
32
|
campaigns: z.array(z.string()),
|
|
32
33
|
captureStartTime: z.string().datetime({ offset: true }),
|
|
33
34
|
captureEndTime: z.string().datetime({ offset: true }),
|
|
35
|
+
isReservable: z.boolean(),
|
|
34
36
|
requestor: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
37
|
+
collateralTokenAddress: z
|
|
38
|
+
.string()
|
|
39
|
+
.regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
40
|
+
chainId: z.number(),
|
|
41
|
+
tags: z.record(z.string()),
|
|
35
42
|
})
|
|
36
43
|
.catchall(z.any()),
|
|
37
44
|
})
|
|
@@ -43,6 +50,7 @@ export const Event = z.union([
|
|
|
43
50
|
timestamp: z.string(),
|
|
44
51
|
data: z
|
|
45
52
|
.object({
|
|
53
|
+
version: z.literal(1),
|
|
46
54
|
id: z
|
|
47
55
|
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
48
56
|
.transform((wire) => BigInt(wire.value)),
|
|
@@ -63,6 +71,7 @@ export const Event = z.union([
|
|
|
63
71
|
timestamp: z.string(),
|
|
64
72
|
data: z
|
|
65
73
|
.object({
|
|
74
|
+
version: z.literal(1),
|
|
66
75
|
recipient: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
67
76
|
flightId: z
|
|
68
77
|
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
@@ -88,6 +97,7 @@ export const Event = z.union([
|
|
|
88
97
|
timestamp: z.string(),
|
|
89
98
|
data: z
|
|
90
99
|
.object({
|
|
100
|
+
version: z.literal(1),
|
|
91
101
|
storageKey: z.string(),
|
|
92
102
|
pilotAddress: z.string(),
|
|
93
103
|
flightManifestUri: z.string(),
|
|
@@ -105,6 +115,7 @@ export const Event = z.union([
|
|
|
105
115
|
timestamp: z.string(),
|
|
106
116
|
data: z
|
|
107
117
|
.object({
|
|
118
|
+
version: z.literal(1),
|
|
108
119
|
flightId: z
|
|
109
120
|
.object({ __type: z.literal("bigint"), value: z.string() })
|
|
110
121
|
.transform((wire) => BigInt(wire.value)),
|