Skip to content

Commit 276a4c3

Browse files
committed
chore: update reader ABI
1 parent 770c1fd commit 276a4c3

File tree

1 file changed

+258
-0
lines changed

1 file changed

+258
-0
lines changed

blockchain/Reader.ts

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,173 @@ export const ReaderAbi = [
212212
stateMutability: 'view',
213213
type: 'function',
214214
},
215+
{
216+
inputs: [
217+
{
218+
internalType: 'uint256',
219+
name: 'epochDelta',
220+
type: 'uint256',
221+
},
222+
],
223+
name: 'getJobsByLastExecutionEpochDelta',
224+
outputs: [
225+
{
226+
components: [
227+
{
228+
internalType: 'uint256',
229+
name: 'id',
230+
type: 'uint256',
231+
},
232+
{
233+
internalType: 'bytes32',
234+
name: 'projectHash',
235+
type: 'bytes32',
236+
},
237+
{
238+
internalType: 'uint256',
239+
name: 'requestTimestamp',
240+
type: 'uint256',
241+
},
242+
{
243+
internalType: 'uint256',
244+
name: 'startTimestamp',
245+
type: 'uint256',
246+
},
247+
{
248+
internalType: 'uint256',
249+
name: 'lastNodesChangeTimestamp',
250+
type: 'uint256',
251+
},
252+
{
253+
internalType: 'uint256',
254+
name: 'jobType',
255+
type: 'uint256',
256+
},
257+
{
258+
internalType: 'uint256',
259+
name: 'pricePerEpoch',
260+
type: 'uint256',
261+
},
262+
{
263+
internalType: 'uint256',
264+
name: 'lastExecutionEpoch',
265+
type: 'uint256',
266+
},
267+
{
268+
internalType: 'uint256',
269+
name: 'numberOfNodesRequested',
270+
type: 'uint256',
271+
},
272+
{
273+
internalType: 'int256',
274+
name: 'balance',
275+
type: 'int256',
276+
},
277+
{
278+
internalType: 'uint256',
279+
name: 'lastAllocatedEpoch',
280+
type: 'uint256',
281+
},
282+
{
283+
internalType: 'address[]',
284+
name: 'activeNodes',
285+
type: 'address[]',
286+
},
287+
{
288+
internalType: 'address',
289+
name: 'escrowAddress',
290+
type: 'address',
291+
},
292+
{
293+
internalType: 'address',
294+
name: 'escrowOwner',
295+
type: 'address',
296+
},
297+
],
298+
internalType: 'struct JobWithAllDetails[]',
299+
name: '',
300+
type: 'tuple[]',
301+
},
302+
],
303+
stateMutability: 'view',
304+
type: 'function',
305+
},
306+
{
307+
inputs: [
308+
{
309+
internalType: 'uint256',
310+
name: 'offset',
311+
type: 'uint256',
312+
},
313+
{
314+
internalType: 'uint256',
315+
name: 'limit',
316+
type: 'uint256',
317+
},
318+
],
319+
name: 'getLicensesPage',
320+
outputs: [
321+
{
322+
internalType: 'uint256',
323+
name: 'mndSupply',
324+
type: 'uint256',
325+
},
326+
{
327+
internalType: 'uint256',
328+
name: 'ndSupply',
329+
type: 'uint256',
330+
},
331+
{
332+
components: [
333+
{
334+
internalType: 'enum LicenseType',
335+
name: 'licenseType',
336+
type: 'uint8',
337+
},
338+
{
339+
internalType: 'uint256',
340+
name: 'licenseId',
341+
type: 'uint256',
342+
},
343+
{
344+
internalType: 'address',
345+
name: 'owner',
346+
type: 'address',
347+
},
348+
{
349+
internalType: 'address',
350+
name: 'nodeAddress',
351+
type: 'address',
352+
},
353+
{
354+
internalType: 'uint256',
355+
name: 'totalAssignedAmount',
356+
type: 'uint256',
357+
},
358+
{
359+
internalType: 'uint256',
360+
name: 'totalClaimedAmount',
361+
type: 'uint256',
362+
},
363+
{
364+
internalType: 'uint256',
365+
name: 'assignTimestamp',
366+
type: 'uint256',
367+
},
368+
{
369+
internalType: 'bool',
370+
name: 'isBanned',
371+
type: 'bool',
372+
},
373+
],
374+
internalType: 'struct LicenseListItem[]',
375+
name: 'licenses',
376+
type: 'tuple[]',
377+
},
378+
],
379+
stateMutability: 'view',
380+
type: 'function',
381+
},
215382
{
216383
inputs: [],
217384
name: 'getLicensesTotalSupply',
@@ -392,6 +559,37 @@ export const ReaderAbi = [
392559
stateMutability: 'view',
393560
type: 'function',
394561
},
562+
{
563+
inputs: [
564+
{
565+
internalType: 'address[]',
566+
name: 'nodeAddresses',
567+
type: 'address[]',
568+
},
569+
],
570+
name: 'getNdNodesOwners',
571+
outputs: [
572+
{
573+
components: [
574+
{
575+
internalType: 'address',
576+
name: 'nodeAddress',
577+
type: 'address',
578+
},
579+
{
580+
internalType: 'address',
581+
name: 'owner',
582+
type: 'address',
583+
},
584+
],
585+
internalType: 'struct NdNodeOwner[]',
586+
name: 'nodesOwners',
587+
type: 'tuple[]',
588+
},
589+
],
590+
stateMutability: 'view',
591+
type: 'function',
592+
},
395593
{
396594
inputs: [
397595
{
@@ -532,6 +730,47 @@ export const ReaderAbi = [
532730
stateMutability: 'view',
533731
type: 'function',
534732
},
733+
{
734+
inputs: [
735+
{
736+
internalType: 'address',
737+
name: 'user',
738+
type: 'address',
739+
},
740+
],
741+
name: 'getUserEscrowDetails',
742+
outputs: [
743+
{
744+
components: [
745+
{
746+
internalType: 'bool',
747+
name: 'isActive',
748+
type: 'bool',
749+
},
750+
{
751+
internalType: 'address',
752+
name: 'escrowAddress',
753+
type: 'address',
754+
},
755+
{
756+
internalType: 'address',
757+
name: 'escrowOwner',
758+
type: 'address',
759+
},
760+
{
761+
internalType: 'uint256',
762+
name: 'permissions',
763+
type: 'uint256',
764+
},
765+
],
766+
internalType: 'struct UserEscrowDetails',
767+
name: '',
768+
type: 'tuple',
769+
},
770+
],
771+
stateMutability: 'view',
772+
type: 'function',
773+
},
535774
{
536775
inputs: [
537776
{
@@ -684,6 +923,25 @@ export const ReaderAbi = [
684923
stateMutability: 'nonpayable',
685924
type: 'function',
686925
},
926+
{
927+
inputs: [
928+
{
929+
internalType: 'address[]',
930+
name: 'nodeAddresses',
931+
type: 'address[]',
932+
},
933+
],
934+
name: 'isMultiNodeAlreadyLinked',
935+
outputs: [
936+
{
937+
internalType: 'bool[]',
938+
name: 'linked',
939+
type: 'bool[]',
940+
},
941+
],
942+
stateMutability: 'view',
943+
type: 'function',
944+
},
687945
{
688946
inputs: [],
689947
name: 'mndContract',

0 commit comments

Comments
 (0)