@@ -8356,6 +8356,32 @@ export enum _SubgraphErrorPolicy_ {
83568356 Deny = 'deny'
83578357}
83588358
8359+ export type AppDealsQueryVariables = Exact < {
8360+ length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8361+ skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8362+ appAddress : Scalars [ 'ID' ] [ 'input' ] ;
8363+ } > ;
8364+
8365+
8366+ export type AppDealsQuery = { __typename ?: 'Query' , app ?: { __typename ?: 'App' , address : string , deals : Array < { __typename ?: 'Deal' , timestamp : any , startTime : any , appPrice : any , datasetPrice : any , workerpoolPrice : any , botSize : any , trust : any , completedTasksCount : any , claimedTasksCount : any , dealid : string , requester : { __typename ?: 'Account' , address : string } , beneficiary : { __typename ?: 'Account' , address : string } , callback : { __typename ?: 'Account' , address : string } , app : { __typename ?: 'App' , name : string , address : string } , dataset ?: { __typename ?: 'Dataset' , name : string , address : string } | null , workerpool : { __typename ?: 'Workerpool' , description : string , address : string } , category : { __typename ?: 'Category' , workClockTimeRef : any , catid : string } } > } | null } ;
8367+
8368+ export type AppQueryVariables = Exact < {
8369+ appAddress : Scalars [ 'ID' ] [ 'input' ] ;
8370+ appAddressString : Scalars [ 'String' ] [ 'input' ] ;
8371+ } > ;
8372+
8373+
8374+ export type AppQuery = { __typename ?: 'Query' , app ?: { __typename ?: 'App' , name : string , multiaddr : any , mrenclave : any , checksum : any , address : string , owner : { __typename ?: 'Account' , address : string } , transfers : Array < { __typename ?: 'AppTransfer' , app : { __typename ?: 'App' , address : string } , from : { __typename ?: 'Account' , address : string } , to : { __typename ?: 'Account' , address : string } , transaction : { __typename ?: 'Transaction' , timestamp : any , blockNumber : any , txHash : string } } > } | null } ;
8375+
8376+ export type NextAppDealsQueryVariables = Exact < {
8377+ length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8378+ skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8379+ appAddress : Scalars [ 'ID' ] [ 'input' ] ;
8380+ } > ;
8381+
8382+
8383+ export type NextAppDealsQuery = { __typename ?: 'Query' , app ?: { __typename ?: 'App' , address : string , deals : Array < { __typename ?: 'Deal' , dealid : string } > } | null } ;
8384+
83598385export type AppsQueryVariables = Exact < {
83608386 length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
83618387 skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
@@ -8521,6 +8547,104 @@ export class TypedDocumentString<TResult, TVariables>
85218547 }
85228548}
85238549
8550+ export const AppDealsDocument = new TypedDocumentString ( `
8551+ query AppDeals($length: Int = 20, $skip: Int = 0, $appAddress: ID!) {
8552+ app(id: $appAddress) {
8553+ address: id
8554+ deals: usages(
8555+ orderBy: timestamp
8556+ orderDirection: desc
8557+ first: $length
8558+ skip: $skip
8559+ ) {
8560+ dealid: id
8561+ timestamp
8562+ requester {
8563+ address: id
8564+ }
8565+ beneficiary {
8566+ address: id
8567+ }
8568+ callback {
8569+ address: id
8570+ }
8571+ app {
8572+ address: id
8573+ name
8574+ }
8575+ dataset {
8576+ address: id
8577+ name
8578+ }
8579+ workerpool {
8580+ address: id
8581+ description
8582+ }
8583+ category {
8584+ catid: id
8585+ workClockTimeRef
8586+ }
8587+ startTime
8588+ appPrice
8589+ datasetPrice
8590+ workerpoolPrice
8591+ botSize
8592+ trust
8593+ completedTasksCount
8594+ claimedTasksCount
8595+ }
8596+ }
8597+ }
8598+ ` ) as unknown as TypedDocumentString < AppDealsQuery , AppDealsQueryVariables > ;
8599+ export const AppDocument = new TypedDocumentString ( `
8600+ query App($appAddress: ID!, $appAddressString: String!) {
8601+ app(id: $appAddress) {
8602+ address: id
8603+ name
8604+ owner {
8605+ address: id
8606+ }
8607+ multiaddr
8608+ mrenclave
8609+ checksum
8610+ transfers(
8611+ where: {app: $appAddressString}
8612+ orderBy: timestamp
8613+ orderDirection: asc
8614+ ) {
8615+ app {
8616+ address: id
8617+ }
8618+ from {
8619+ address: id
8620+ }
8621+ to {
8622+ address: id
8623+ }
8624+ transaction {
8625+ txHash: id
8626+ timestamp
8627+ blockNumber
8628+ }
8629+ }
8630+ }
8631+ }
8632+ ` ) as unknown as TypedDocumentString < AppQuery , AppQueryVariables > ;
8633+ export const NextAppDealsDocument = new TypedDocumentString ( `
8634+ query NextAppDeals($length: Int = 20, $skip: Int = 0, $appAddress: ID!) {
8635+ app(id: $appAddress) {
8636+ address: id
8637+ deals: usages(
8638+ orderBy: timestamp
8639+ orderDirection: desc
8640+ first: $length
8641+ skip: $skip
8642+ ) {
8643+ dealid: id
8644+ }
8645+ }
8646+ }
8647+ ` ) as unknown as TypedDocumentString < NextAppDealsQuery , NextAppDealsQueryVariables > ;
85248648export const AppsDocument = new TypedDocumentString ( `
85258649 query Apps($length: Int = 20, $skip: Int = 0) {
85268650 apps(first: $length, skip: $skip, orderBy: timestamp, orderDirection: desc) {
0 commit comments