@@ -8468,6 +8468,32 @@ export type NextWorkerpoolsQueryVariables = Exact<{
84688468
84698469export type NextWorkerpoolsQuery = { __typename ?: 'Query' , workerpools : Array < { __typename ?: 'Workerpool' , address : string } > } ;
84708470
8471+ export type NextWorkerpoolDealsQueryVariables = Exact < {
8472+ length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8473+ skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8474+ workerpoolAddress : Scalars [ 'ID' ] [ 'input' ] ;
8475+ } > ;
8476+
8477+
8478+ export type NextWorkerpoolDealsQuery = { __typename ?: 'Query' , workerpool ?: { __typename ?: 'Workerpool' , address : string , deals : Array < { __typename ?: 'Deal' , dealid : string } > } | null } ;
8479+
8480+ export type WorkerpoolDealsQueryVariables = Exact < {
8481+ length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8482+ skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
8483+ workerpoolAddress : Scalars [ 'ID' ] [ 'input' ] ;
8484+ } > ;
8485+
8486+
8487+ export type WorkerpoolDealsQuery = { __typename ?: 'Query' , workerpool ?: { __typename ?: 'Workerpool' , 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 } ;
8488+
8489+ export type WorkerpoolQueryVariables = Exact < {
8490+ workerpoolAddress : Scalars [ 'ID' ] [ 'input' ] ;
8491+ workerpoolAddressString : Scalars [ 'String' ] [ 'input' ] ;
8492+ } > ;
8493+
8494+
8495+ export type WorkerpoolQuery = { __typename ?: 'Query' , workerpool ?: { __typename ?: 'Workerpool' , description : string , address : string , owner : { __typename ?: 'Account' , address : string } , transfers : Array < { __typename ?: 'WorkerpoolTransfer' , workerpool : { __typename ?: 'Workerpool' , address : string } , from : { __typename ?: 'Account' , address : string } , to : { __typename ?: 'Account' , address : string } , transaction : { __typename ?: 'Transaction' , timestamp : any , blockNumber : any , txHash : string } } > } | null } ;
8496+
84718497export type WorkerpoolsQueryVariables = Exact < {
84728498 length ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
84738499 skip ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
@@ -8812,6 +8838,101 @@ export const NextWorkerpoolsDocument = new TypedDocumentString(`
88128838 }
88138839}
88148840 ` ) as unknown as TypedDocumentString < NextWorkerpoolsQuery , NextWorkerpoolsQueryVariables > ;
8841+ export const NextWorkerpoolDealsDocument = new TypedDocumentString ( `
8842+ query NextWorkerpoolDeals($length: Int = 20, $skip: Int = 0, $workerpoolAddress: ID!) {
8843+ workerpool(id: $workerpoolAddress) {
8844+ address: id
8845+ deals: usages(
8846+ first: $length
8847+ skip: $skip
8848+ orderBy: timestamp
8849+ orderDirection: desc
8850+ ) {
8851+ dealid: id
8852+ }
8853+ }
8854+ }
8855+ ` ) as unknown as TypedDocumentString < NextWorkerpoolDealsQuery , NextWorkerpoolDealsQueryVariables > ;
8856+ export const WorkerpoolDealsDocument = new TypedDocumentString ( `
8857+ query WorkerpoolDeals($length: Int = 20, $skip: Int = 0, $workerpoolAddress: ID!) {
8858+ workerpool(id: $workerpoolAddress) {
8859+ address: id
8860+ deals: usages(
8861+ orderBy: timestamp
8862+ orderDirection: desc
8863+ first: $length
8864+ skip: $skip
8865+ ) {
8866+ dealid: id
8867+ timestamp
8868+ requester {
8869+ address: id
8870+ }
8871+ beneficiary {
8872+ address: id
8873+ }
8874+ callback {
8875+ address: id
8876+ }
8877+ app {
8878+ address: id
8879+ name
8880+ }
8881+ dataset {
8882+ address: id
8883+ name
8884+ }
8885+ workerpool {
8886+ address: id
8887+ description
8888+ }
8889+ category {
8890+ catid: id
8891+ workClockTimeRef
8892+ }
8893+ startTime
8894+ appPrice
8895+ datasetPrice
8896+ workerpoolPrice
8897+ botSize
8898+ trust
8899+ completedTasksCount
8900+ claimedTasksCount
8901+ }
8902+ }
8903+ }
8904+ ` ) as unknown as TypedDocumentString < WorkerpoolDealsQuery , WorkerpoolDealsQueryVariables > ;
8905+ export const WorkerpoolDocument = new TypedDocumentString ( `
8906+ query Workerpool($workerpoolAddress: ID!, $workerpoolAddressString: String!) {
8907+ workerpool(id: $workerpoolAddress) {
8908+ address: id
8909+ owner {
8910+ address: id
8911+ }
8912+ description
8913+ transfers(
8914+ where: {workerpool: $workerpoolAddressString}
8915+ orderBy: timestamp
8916+ orderDirection: asc
8917+ ) {
8918+ workerpool {
8919+ address: id
8920+ }
8921+ from {
8922+ address: id
8923+ }
8924+ to {
8925+ address: id
8926+ }
8927+ transaction {
8928+ txHash: id
8929+ timestamp
8930+ blockNumber
8931+ }
8932+ }
8933+ }
8934+ }
8935+ ` ) as unknown as TypedDocumentString < WorkerpoolQuery , WorkerpoolQueryVariables > ;
88158936export const WorkerpoolsDocument = new TypedDocumentString ( `
88168937 query Workerpools($length: Int = 20, $skip: Int = 0) {
88178938 workerpools(
0 commit comments