diff --git a/.changeset/small-dancers-fail.md b/.changeset/small-dancers-fail.md new file mode 100644 index 00000000..8950972b --- /dev/null +++ b/.changeset/small-dancers-fail.md @@ -0,0 +1,6 @@ +--- +"@axis-finance/subgraph-client": patch +"@axis-finance/sdk": patch +--- + +add support for fetching auctions by base token address diff --git a/packages/subgraph-client/queries/get-auctions.graphql b/packages/subgraph-client/queries/get-auctions.graphql index abd076fe..08223b2b 100644 --- a/packages/subgraph-client/queries/get-auctions.graphql +++ b/packages/subgraph-client/queries/get-auctions.graphql @@ -152,6 +152,11 @@ query getBatchAuctionLotsByBaseTokenAddress($baseTokenAddress: String!) { batchAuctionLots(where: { baseToken: $baseTokenAddress }) { ...BatchCommonFields ...BatchAuctionFields + info { + allowlist { + values + } + } } } diff --git a/packages/subgraph-client/src/generated/index.ts b/packages/subgraph-client/src/generated/index.ts index 3a5071c8..a6193c57 100644 --- a/packages/subgraph-client/src/generated/index.ts +++ b/packages/subgraph-client/src/generated/index.ts @@ -7534,15 +7534,16 @@ export type GetBatchAuctionLotsByBaseTokenAddressQuery = { lastUpdatedDate: string; lastUpdatedTransactionHash: string; maxBidId: string; - aborted?: { date: string } | null; - cancelled?: { date: string } | null; info?: { key?: string | null; name?: string | null; description?: string | null; tagline?: string | null; + allowlist: Array<{ values: Array }>; links: Array<{ linkId: string; url: string }>; } | null; + aborted?: { date: string } | null; + cancelled?: { date: string } | null; linearVesting?: { id: string; startDate: string; @@ -7855,6 +7856,11 @@ export const GetBatchAuctionLotsByBaseTokenAddressDocument = ` batchAuctionLots(where: {baseToken: $baseTokenAddress}) { ...BatchCommonFields ...BatchAuctionFields + info { + allowlist { + values + } + } } } ${BatchCommonFieldsFragmentDoc}