@sentientdogs/flip-indexer-orpc 0.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/dist/client.d.ts +21 -0
- package/dist/client.js +10 -0
- package/dist/contract.d.ts +848 -0
- package/dist/contracts/bets-by-commitment.d.ts +65 -0
- package/dist/contracts/bets-history.d.ts +146 -0
- package/dist/contracts/bets-pending.d.ts +59 -0
- package/dist/contracts/bettor-summary.d.ts +89 -0
- package/dist/contracts/bodges.d.ts +54 -0
- package/dist/contracts/leaderboard.d.ts +102 -0
- package/dist/contracts/markets.d.ts +718 -0
- package/dist/contracts/protocol-config.d.ts +265 -0
- package/dist/contracts/registry-config.d.ts +20 -0
- package/dist/contracts/resolver.d.ts +123 -0
- package/dist/contracts/stats.d.ts +46 -0
- package/dist/contracts/tx-payouts.d.ts +63 -0
- package/dist/primitives.d.ts +6 -0
- package/package.json +34 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const ProtocolConfigItemParamSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
+
minBetPrincipal: "minBetPrincipal";
|
|
4
|
+
defaultPagingMaxIterations: "defaultPagingMaxIterations";
|
|
5
|
+
maxFlipsPerVRFCallback: "maxFlipsPerVRFCallback";
|
|
6
|
+
escrow: "escrow";
|
|
7
|
+
lpFee: "lpFee";
|
|
8
|
+
maxUserPayout: "maxUserPayout";
|
|
9
|
+
maxFlipsPerTx: "maxFlipsPerTx";
|
|
10
|
+
}>, z.ZodEnum<{
|
|
11
|
+
MinBetPrincipal: "MinBetPrincipal";
|
|
12
|
+
DefaultPagingMaxIterations: "DefaultPagingMaxIterations";
|
|
13
|
+
MaxFlipsPerVRFCallback: "MaxFlipsPerVRFCallback";
|
|
14
|
+
Escrow: "Escrow";
|
|
15
|
+
LpFee: "LpFee";
|
|
16
|
+
MaxUserPayout: "MaxUserPayout";
|
|
17
|
+
MaxFlipsPerTx: "MaxFlipsPerTx";
|
|
18
|
+
}>, z.ZodString]>;
|
|
19
|
+
export declare const ProtocolConfigRequestSchema: z.ZodObject<{}, z.core.$strip>;
|
|
20
|
+
export type ProtocolConfigRequest = z.input<typeof ProtocolConfigRequestSchema>;
|
|
21
|
+
export declare const ProtocolConfigResponseSchema: z.ZodObject<{
|
|
22
|
+
items: z.ZodArray<z.ZodObject<{
|
|
23
|
+
item: z.ZodNumber;
|
|
24
|
+
itemName: z.ZodString;
|
|
25
|
+
enumName: z.ZodString;
|
|
26
|
+
valueType: z.ZodString;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
decodedValue: z.ZodString;
|
|
29
|
+
admin: z.ZodString;
|
|
30
|
+
timestamp: z.ZodNumber;
|
|
31
|
+
blockNumber: z.ZodNumber;
|
|
32
|
+
txHash: z.ZodString;
|
|
33
|
+
logIndex: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
completeness: z.ZodObject<{
|
|
36
|
+
expectedItems: z.ZodArray<z.ZodObject<{
|
|
37
|
+
item: z.ZodNumber;
|
|
38
|
+
itemName: z.ZodString;
|
|
39
|
+
enumName: z.ZodString;
|
|
40
|
+
valueType: z.ZodEnum<{
|
|
41
|
+
address: "address";
|
|
42
|
+
fixedWidth: "fixedWidth";
|
|
43
|
+
uint16: "uint16";
|
|
44
|
+
uint256: "uint256";
|
|
45
|
+
bytes32: "bytes32";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
observedItems: z.ZodArray<z.ZodString>;
|
|
49
|
+
missingItems: z.ZodArray<z.ZodObject<{
|
|
50
|
+
item: z.ZodNumber;
|
|
51
|
+
itemName: z.ZodString;
|
|
52
|
+
enumName: z.ZodString;
|
|
53
|
+
valueType: z.ZodEnum<{
|
|
54
|
+
address: "address";
|
|
55
|
+
fixedWidth: "fixedWidth";
|
|
56
|
+
uint16: "uint16";
|
|
57
|
+
uint256: "uint256";
|
|
58
|
+
bytes32: "bytes32";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type ProtocolConfigResponse = z.infer<typeof ProtocolConfigResponseSchema>;
|
|
64
|
+
export declare const protocolConfigProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
items: z.ZodArray<z.ZodObject<{
|
|
66
|
+
item: z.ZodNumber;
|
|
67
|
+
itemName: z.ZodString;
|
|
68
|
+
enumName: z.ZodString;
|
|
69
|
+
valueType: z.ZodString;
|
|
70
|
+
value: z.ZodString;
|
|
71
|
+
decodedValue: z.ZodString;
|
|
72
|
+
admin: z.ZodString;
|
|
73
|
+
timestamp: z.ZodNumber;
|
|
74
|
+
blockNumber: z.ZodNumber;
|
|
75
|
+
txHash: z.ZodString;
|
|
76
|
+
logIndex: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
completeness: z.ZodObject<{
|
|
79
|
+
expectedItems: z.ZodArray<z.ZodObject<{
|
|
80
|
+
item: z.ZodNumber;
|
|
81
|
+
itemName: z.ZodString;
|
|
82
|
+
enumName: z.ZodString;
|
|
83
|
+
valueType: z.ZodEnum<{
|
|
84
|
+
address: "address";
|
|
85
|
+
fixedWidth: "fixedWidth";
|
|
86
|
+
uint16: "uint16";
|
|
87
|
+
uint256: "uint256";
|
|
88
|
+
bytes32: "bytes32";
|
|
89
|
+
}>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
observedItems: z.ZodArray<z.ZodString>;
|
|
92
|
+
missingItems: z.ZodArray<z.ZodObject<{
|
|
93
|
+
item: z.ZodNumber;
|
|
94
|
+
itemName: z.ZodString;
|
|
95
|
+
enumName: z.ZodString;
|
|
96
|
+
valueType: z.ZodEnum<{
|
|
97
|
+
address: "address";
|
|
98
|
+
fixedWidth: "fixedWidth";
|
|
99
|
+
uint16: "uint16";
|
|
100
|
+
uint256: "uint256";
|
|
101
|
+
bytes32: "bytes32";
|
|
102
|
+
}>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
106
|
+
export declare const ProtocolConfigItemRequestSchema: z.ZodObject<{
|
|
107
|
+
item: z.ZodUnion<readonly [z.ZodEnum<{
|
|
108
|
+
minBetPrincipal: "minBetPrincipal";
|
|
109
|
+
defaultPagingMaxIterations: "defaultPagingMaxIterations";
|
|
110
|
+
maxFlipsPerVRFCallback: "maxFlipsPerVRFCallback";
|
|
111
|
+
escrow: "escrow";
|
|
112
|
+
lpFee: "lpFee";
|
|
113
|
+
maxUserPayout: "maxUserPayout";
|
|
114
|
+
maxFlipsPerTx: "maxFlipsPerTx";
|
|
115
|
+
}>, z.ZodEnum<{
|
|
116
|
+
MinBetPrincipal: "MinBetPrincipal";
|
|
117
|
+
DefaultPagingMaxIterations: "DefaultPagingMaxIterations";
|
|
118
|
+
MaxFlipsPerVRFCallback: "MaxFlipsPerVRFCallback";
|
|
119
|
+
Escrow: "Escrow";
|
|
120
|
+
LpFee: "LpFee";
|
|
121
|
+
MaxUserPayout: "MaxUserPayout";
|
|
122
|
+
MaxFlipsPerTx: "MaxFlipsPerTx";
|
|
123
|
+
}>, z.ZodString]>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type ProtocolConfigItemRequest = z.input<typeof ProtocolConfigItemRequestSchema>;
|
|
126
|
+
export type ProtocolConfigItemInput = z.infer<typeof ProtocolConfigItemRequestSchema>;
|
|
127
|
+
export declare const ProtocolConfigItemResponseSchema: z.ZodObject<{
|
|
128
|
+
item: z.ZodNumber;
|
|
129
|
+
itemName: z.ZodString;
|
|
130
|
+
enumName: z.ZodString;
|
|
131
|
+
valueType: z.ZodString;
|
|
132
|
+
value: z.ZodString;
|
|
133
|
+
decodedValue: z.ZodString;
|
|
134
|
+
admin: z.ZodString;
|
|
135
|
+
timestamp: z.ZodNumber;
|
|
136
|
+
blockNumber: z.ZodNumber;
|
|
137
|
+
txHash: z.ZodString;
|
|
138
|
+
logIndex: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type ProtocolConfigItemResponse = z.infer<typeof ProtocolConfigItemResponseSchema>;
|
|
141
|
+
export declare const protocolConfigItemProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
142
|
+
item: z.ZodUnion<readonly [z.ZodEnum<{
|
|
143
|
+
minBetPrincipal: "minBetPrincipal";
|
|
144
|
+
defaultPagingMaxIterations: "defaultPagingMaxIterations";
|
|
145
|
+
maxFlipsPerVRFCallback: "maxFlipsPerVRFCallback";
|
|
146
|
+
escrow: "escrow";
|
|
147
|
+
lpFee: "lpFee";
|
|
148
|
+
maxUserPayout: "maxUserPayout";
|
|
149
|
+
maxFlipsPerTx: "maxFlipsPerTx";
|
|
150
|
+
}>, z.ZodEnum<{
|
|
151
|
+
MinBetPrincipal: "MinBetPrincipal";
|
|
152
|
+
DefaultPagingMaxIterations: "DefaultPagingMaxIterations";
|
|
153
|
+
MaxFlipsPerVRFCallback: "MaxFlipsPerVRFCallback";
|
|
154
|
+
Escrow: "Escrow";
|
|
155
|
+
LpFee: "LpFee";
|
|
156
|
+
MaxUserPayout: "MaxUserPayout";
|
|
157
|
+
MaxFlipsPerTx: "MaxFlipsPerTx";
|
|
158
|
+
}>, z.ZodString]>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
item: z.ZodNumber;
|
|
161
|
+
itemName: z.ZodString;
|
|
162
|
+
enumName: z.ZodString;
|
|
163
|
+
valueType: z.ZodString;
|
|
164
|
+
value: z.ZodString;
|
|
165
|
+
decodedValue: z.ZodString;
|
|
166
|
+
admin: z.ZodString;
|
|
167
|
+
timestamp: z.ZodNumber;
|
|
168
|
+
blockNumber: z.ZodNumber;
|
|
169
|
+
txHash: z.ZodString;
|
|
170
|
+
logIndex: z.ZodNumber;
|
|
171
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
172
|
+
export declare const ProtocolConfigChangesRequestSchema: z.ZodObject<{
|
|
173
|
+
item: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
174
|
+
minBetPrincipal: "minBetPrincipal";
|
|
175
|
+
defaultPagingMaxIterations: "defaultPagingMaxIterations";
|
|
176
|
+
maxFlipsPerVRFCallback: "maxFlipsPerVRFCallback";
|
|
177
|
+
escrow: "escrow";
|
|
178
|
+
lpFee: "lpFee";
|
|
179
|
+
maxUserPayout: "maxUserPayout";
|
|
180
|
+
maxFlipsPerTx: "maxFlipsPerTx";
|
|
181
|
+
}>, z.ZodEnum<{
|
|
182
|
+
MinBetPrincipal: "MinBetPrincipal";
|
|
183
|
+
DefaultPagingMaxIterations: "DefaultPagingMaxIterations";
|
|
184
|
+
MaxFlipsPerVRFCallback: "MaxFlipsPerVRFCallback";
|
|
185
|
+
Escrow: "Escrow";
|
|
186
|
+
LpFee: "LpFee";
|
|
187
|
+
MaxUserPayout: "MaxUserPayout";
|
|
188
|
+
MaxFlipsPerTx: "MaxFlipsPerTx";
|
|
189
|
+
}>, z.ZodString]>>;
|
|
190
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
beforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
beforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
export type ProtocolConfigChangesRequest = z.input<typeof ProtocolConfigChangesRequestSchema>;
|
|
195
|
+
export type ProtocolConfigChangesInput = z.infer<typeof ProtocolConfigChangesRequestSchema>;
|
|
196
|
+
export declare const ProtocolConfigChangesResponseSchema: z.ZodObject<{
|
|
197
|
+
items: z.ZodArray<z.ZodObject<{
|
|
198
|
+
item: z.ZodNumber;
|
|
199
|
+
itemName: z.ZodString;
|
|
200
|
+
enumName: z.ZodString;
|
|
201
|
+
valueType: z.ZodString;
|
|
202
|
+
oldValue: z.ZodString;
|
|
203
|
+
newValue: z.ZodString;
|
|
204
|
+
oldDecodedValue: z.ZodString;
|
|
205
|
+
newDecodedValue: z.ZodString;
|
|
206
|
+
admin: z.ZodString;
|
|
207
|
+
timestamp: z.ZodNumber;
|
|
208
|
+
blockNumber: z.ZodNumber;
|
|
209
|
+
txHash: z.ZodString;
|
|
210
|
+
logIndex: z.ZodNumber;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
pagination: z.ZodObject<{
|
|
213
|
+
limit: z.ZodNumber;
|
|
214
|
+
totalCount: z.ZodNumber;
|
|
215
|
+
hasMore: z.ZodBoolean;
|
|
216
|
+
nextBeforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
nextBeforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export type ProtocolConfigChangesResponse = z.infer<typeof ProtocolConfigChangesResponseSchema>;
|
|
221
|
+
export declare const protocolConfigChangesProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
222
|
+
item: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
223
|
+
minBetPrincipal: "minBetPrincipal";
|
|
224
|
+
defaultPagingMaxIterations: "defaultPagingMaxIterations";
|
|
225
|
+
maxFlipsPerVRFCallback: "maxFlipsPerVRFCallback";
|
|
226
|
+
escrow: "escrow";
|
|
227
|
+
lpFee: "lpFee";
|
|
228
|
+
maxUserPayout: "maxUserPayout";
|
|
229
|
+
maxFlipsPerTx: "maxFlipsPerTx";
|
|
230
|
+
}>, z.ZodEnum<{
|
|
231
|
+
MinBetPrincipal: "MinBetPrincipal";
|
|
232
|
+
DefaultPagingMaxIterations: "DefaultPagingMaxIterations";
|
|
233
|
+
MaxFlipsPerVRFCallback: "MaxFlipsPerVRFCallback";
|
|
234
|
+
Escrow: "Escrow";
|
|
235
|
+
LpFee: "LpFee";
|
|
236
|
+
MaxUserPayout: "MaxUserPayout";
|
|
237
|
+
MaxFlipsPerTx: "MaxFlipsPerTx";
|
|
238
|
+
}>, z.ZodString]>>;
|
|
239
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
240
|
+
beforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
beforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
items: z.ZodArray<z.ZodObject<{
|
|
244
|
+
item: z.ZodNumber;
|
|
245
|
+
itemName: z.ZodString;
|
|
246
|
+
enumName: z.ZodString;
|
|
247
|
+
valueType: z.ZodString;
|
|
248
|
+
oldValue: z.ZodString;
|
|
249
|
+
newValue: z.ZodString;
|
|
250
|
+
oldDecodedValue: z.ZodString;
|
|
251
|
+
newDecodedValue: z.ZodString;
|
|
252
|
+
admin: z.ZodString;
|
|
253
|
+
timestamp: z.ZodNumber;
|
|
254
|
+
blockNumber: z.ZodNumber;
|
|
255
|
+
txHash: z.ZodString;
|
|
256
|
+
logIndex: z.ZodNumber;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
pagination: z.ZodObject<{
|
|
259
|
+
limit: z.ZodNumber;
|
|
260
|
+
totalCount: z.ZodNumber;
|
|
261
|
+
hasMore: z.ZodBoolean;
|
|
262
|
+
nextBeforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
nextBeforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const RegistryConfigRequestSchema: z.ZodObject<{}, z.core.$strip>;
|
|
3
|
+
export type RegistryConfigRequest = z.input<typeof RegistryConfigRequestSchema>;
|
|
4
|
+
export declare const RegistryConfigResponseSchema: z.ZodObject<{
|
|
5
|
+
blockNumber: z.ZodNumber;
|
|
6
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
7
|
+
logIndex: z.ZodNumber;
|
|
8
|
+
timestamp: z.ZodNumber;
|
|
9
|
+
configJson: z.ZodString;
|
|
10
|
+
lambdaParser: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type RegistryConfigResponse = z.infer<typeof RegistryConfigResponseSchema>;
|
|
13
|
+
export declare const registryConfigProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
blockNumber: z.ZodNumber;
|
|
15
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
16
|
+
logIndex: z.ZodNumber;
|
|
17
|
+
timestamp: z.ZodNumber;
|
|
18
|
+
configJson: z.ZodString;
|
|
19
|
+
lambdaParser: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const ResolverConfigRequestSchema: z.ZodObject<{
|
|
3
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type ResolverConfigRequest = z.input<typeof ResolverConfigRequestSchema>;
|
|
6
|
+
export type ResolverConfigInput = z.infer<typeof ResolverConfigRequestSchema>;
|
|
7
|
+
export declare const ResolverConfigResponseSchema: z.ZodObject<{
|
|
8
|
+
blockNumber: z.ZodNumber;
|
|
9
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
10
|
+
logIndex: z.ZodNumber;
|
|
11
|
+
timestamp: z.ZodNumber;
|
|
12
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
13
|
+
changeType: z.ZodNumber;
|
|
14
|
+
details: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type ResolverConfigResponse = z.infer<typeof ResolverConfigResponseSchema>;
|
|
17
|
+
export declare const resolverConfigProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
18
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
blockNumber: z.ZodNumber;
|
|
21
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
22
|
+
logIndex: z.ZodNumber;
|
|
23
|
+
timestamp: z.ZodNumber;
|
|
24
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
25
|
+
changeType: z.ZodNumber;
|
|
26
|
+
details: z.ZodString;
|
|
27
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
28
|
+
export declare const ResolverConfigChangesRequestSchema: z.ZodObject<{
|
|
29
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
30
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
beforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
beforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type ResolverConfigChangesRequest = z.input<typeof ResolverConfigChangesRequestSchema>;
|
|
35
|
+
export type ResolverConfigChangesInput = z.infer<typeof ResolverConfigChangesRequestSchema>;
|
|
36
|
+
export declare const ResolverConfigChangesResponseSchema: z.ZodObject<{
|
|
37
|
+
items: z.ZodArray<z.ZodObject<{
|
|
38
|
+
blockNumber: z.ZodNumber;
|
|
39
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
40
|
+
logIndex: z.ZodNumber;
|
|
41
|
+
timestamp: z.ZodNumber;
|
|
42
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
43
|
+
changeType: z.ZodNumber;
|
|
44
|
+
details: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
pagination: z.ZodObject<{
|
|
47
|
+
limit: z.ZodNumber;
|
|
48
|
+
totalCount: z.ZodNumber;
|
|
49
|
+
hasMore: z.ZodBoolean;
|
|
50
|
+
nextBeforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
nextBeforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type ResolverConfigChangesResponse = z.infer<typeof ResolverConfigChangesResponseSchema>;
|
|
55
|
+
export declare const resolverConfigChangesProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
56
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
57
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
58
|
+
beforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
beforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
items: z.ZodArray<z.ZodObject<{
|
|
62
|
+
blockNumber: z.ZodNumber;
|
|
63
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
64
|
+
logIndex: z.ZodNumber;
|
|
65
|
+
timestamp: z.ZodNumber;
|
|
66
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
67
|
+
changeType: z.ZodNumber;
|
|
68
|
+
details: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
pagination: z.ZodObject<{
|
|
71
|
+
limit: z.ZodNumber;
|
|
72
|
+
totalCount: z.ZodNumber;
|
|
73
|
+
hasMore: z.ZodBoolean;
|
|
74
|
+
nextBeforeBlock: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
nextBeforeLogIndex: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
78
|
+
export declare const ResolverConfigurationRequestSchema: z.ZodObject<{
|
|
79
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ResolverConfigurationRequest = z.input<typeof ResolverConfigurationRequestSchema>;
|
|
82
|
+
export type ResolverConfigurationInput = z.infer<typeof ResolverConfigurationRequestSchema>;
|
|
83
|
+
export declare const ResolverConfigurationResponseSchema: z.ZodObject<{
|
|
84
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
85
|
+
eventKind: z.ZodNullable<z.ZodString>;
|
|
86
|
+
isActive: z.ZodBoolean;
|
|
87
|
+
stateUpdated: z.ZodObject<{
|
|
88
|
+
timestamp: z.ZodNumber;
|
|
89
|
+
blockNumber: z.ZodNumber;
|
|
90
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
91
|
+
logIndex: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
configurations: z.ZodArray<z.ZodObject<{
|
|
94
|
+
exposureAlg: z.ZodNumber;
|
|
95
|
+
updatedTimestamp: z.ZodNumber;
|
|
96
|
+
updatedBlockNumber: z.ZodNumber;
|
|
97
|
+
updatedTxHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
98
|
+
updatedLogIndex: z.ZodNumber;
|
|
99
|
+
payload: z.ZodNullable<z.ZodUnknown>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type ResolverConfigurationResponse = z.infer<typeof ResolverConfigurationResponseSchema>;
|
|
103
|
+
export declare const resolverConfigurationProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
104
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
resolverId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
107
|
+
eventKind: z.ZodNullable<z.ZodString>;
|
|
108
|
+
isActive: z.ZodBoolean;
|
|
109
|
+
stateUpdated: z.ZodObject<{
|
|
110
|
+
timestamp: z.ZodNumber;
|
|
111
|
+
blockNumber: z.ZodNumber;
|
|
112
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
113
|
+
logIndex: z.ZodNumber;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
configurations: z.ZodArray<z.ZodObject<{
|
|
116
|
+
exposureAlg: z.ZodNumber;
|
|
117
|
+
updatedTimestamp: z.ZodNumber;
|
|
118
|
+
updatedBlockNumber: z.ZodNumber;
|
|
119
|
+
updatedTxHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
120
|
+
updatedLogIndex: z.ZodNumber;
|
|
121
|
+
payload: z.ZodNullable<z.ZodUnknown>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
declare const MarketStatusNameSchema: z.ZodEnum<{
|
|
3
|
+
undefined: "undefined";
|
|
4
|
+
created: "created";
|
|
5
|
+
open: "open";
|
|
6
|
+
resolved: "resolved";
|
|
7
|
+
resolving: "resolving";
|
|
8
|
+
refunding: "refunding";
|
|
9
|
+
refunded: "refunded";
|
|
10
|
+
}>;
|
|
11
|
+
export type MarketStatusName = z.infer<typeof MarketStatusNameSchema>;
|
|
12
|
+
export declare const StatsEventsBySportRequestSchema: z.ZodObject<{
|
|
13
|
+
resolverId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
14
|
+
marketKeySalt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
finishDueAfter: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
startDueBefore: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
undefined: "undefined";
|
|
19
|
+
created: "created";
|
|
20
|
+
open: "open";
|
|
21
|
+
resolved: "resolved";
|
|
22
|
+
resolving: "resolving";
|
|
23
|
+
refunding: "refunding";
|
|
24
|
+
refunded: "refunded";
|
|
25
|
+
}>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type StatsEventsBySportRequest = z.input<typeof StatsEventsBySportRequestSchema>;
|
|
28
|
+
export type StatsEventsBySportInput = z.infer<typeof StatsEventsBySportRequestSchema>;
|
|
29
|
+
export declare const StatsEventsBySportResponseSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
30
|
+
export type StatsEventsBySportResponse = z.infer<typeof StatsEventsBySportResponseSchema>;
|
|
31
|
+
export declare const statsEventsBySportProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
32
|
+
resolverId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
33
|
+
marketKeySalt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
finishDueAfter: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
startDueBefore: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
undefined: "undefined";
|
|
38
|
+
created: "created";
|
|
39
|
+
open: "open";
|
|
40
|
+
resolved: "resolved";
|
|
41
|
+
resolving: "resolving";
|
|
42
|
+
refunding: "refunding";
|
|
43
|
+
refunded: "refunded";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodNumber>, Record<never, never>, Record<never, never>>;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const TxPayoutsRequestSchema: z.ZodObject<{
|
|
3
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type TxPayoutsRequest = z.input<typeof TxPayoutsRequestSchema>;
|
|
6
|
+
declare const PayoutItemSchema: z.ZodObject<{
|
|
7
|
+
betId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
8
|
+
marketId: z.ZodBigInt;
|
|
9
|
+
bettor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
10
|
+
payout: z.ZodBigInt;
|
|
11
|
+
status: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const TxPayoutsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
15
|
+
isPayoutTx: z.ZodLiteral<false>;
|
|
16
|
+
payouts: z.ZodArray<z.ZodObject<{
|
|
17
|
+
betId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
18
|
+
marketId: z.ZodBigInt;
|
|
19
|
+
bettor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
20
|
+
payout: z.ZodBigInt;
|
|
21
|
+
status: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
25
|
+
isPayoutTx: z.ZodLiteral<true>;
|
|
26
|
+
payoutCount: z.ZodNumber;
|
|
27
|
+
totalPayout: z.ZodBigInt;
|
|
28
|
+
payouts: z.ZodArray<z.ZodObject<{
|
|
29
|
+
betId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
30
|
+
marketId: z.ZodBigInt;
|
|
31
|
+
bettor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
32
|
+
payout: z.ZodBigInt;
|
|
33
|
+
status: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>], "isPayoutTx">;
|
|
36
|
+
export type TxPayoutsResponse = z.infer<typeof TxPayoutsResponseSchema>;
|
|
37
|
+
export type PayoutItem = z.infer<typeof PayoutItemSchema>;
|
|
38
|
+
export declare const txPayoutsProcedure: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
39
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
42
|
+
isPayoutTx: z.ZodLiteral<false>;
|
|
43
|
+
payouts: z.ZodArray<z.ZodObject<{
|
|
44
|
+
betId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
45
|
+
marketId: z.ZodBigInt;
|
|
46
|
+
bettor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
47
|
+
payout: z.ZodBigInt;
|
|
48
|
+
status: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
52
|
+
isPayoutTx: z.ZodLiteral<true>;
|
|
53
|
+
payoutCount: z.ZodNumber;
|
|
54
|
+
totalPayout: z.ZodBigInt;
|
|
55
|
+
payouts: z.ZodArray<z.ZodObject<{
|
|
56
|
+
betId: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
57
|
+
marketId: z.ZodBigInt;
|
|
58
|
+
bettor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
59
|
+
payout: z.ZodBigInt;
|
|
60
|
+
status: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>], "isPayoutTx">, Record<never, never>, Record<never, never>>;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const TxHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
3
|
+
export declare const BetIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
4
|
+
export declare const AddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
5
|
+
export declare const MarketKeySchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
6
|
+
export declare const HexFilterSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sentientdogs/flip-indexer-orpc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "oRPC client SDK for flip-indexer.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/SentientDogs/flip-indexer.git"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"registry": "https://registry.npmjs.org"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/client.d.ts",
|
|
18
|
+
"import": "./dist/client.js",
|
|
19
|
+
"default": "./dist/client.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@orpc/client": "1.14.3",
|
|
27
|
+
"@orpc/contract": "1.14.3",
|
|
28
|
+
"viem": "2.45.0",
|
|
29
|
+
"zod": "4.4.3"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=24"
|
|
33
|
+
}
|
|
34
|
+
}
|