Skip to main content

Objects

_Block_

Fields

NameDescription

hash
Bytes

The hash of the block

number
Int!

The block number

timestamp
Int

Integer representation of the timestamp stored in blocks for the chain

parentHash
Bytes

The hash of the parent block

_Meta_

The type for the top-level _meta field

Fields

NameDescription

block
Block!

Information about a specific subgraph block. The hash of the block will be null if the _meta field has a block constraint that asks for a block number. It will be filled if the _meta field has no block constraint and therefore asks for the latest block

deployment
String!

The deployment ID

hasIndexingErrors
Boolean!

If true, the subgraph encountered indexing errors at some past block

AuctionCleared

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

auctionId
BigInt!

soldAuctioningTokens
BigInt!

soldBiddingTokens
BigInt!

clearingPriceOrder
Bytes!

AuctionDetail

Fields

NameDescription

id
ID!

auctionId
BigInt!

exactOrder
Order!

highestPriceBidOrder
Order

order with highest price

lowestPriceBidOrder
Order

order with lowest price

activeOrders
[Order!]

orders which are not cancelled or claimed

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

auctioningToken
Token!

biddingToken
Token!

auctionEndDate
BigInt!

orderCancellationEndDate
BigInt!

startingTimeStamp
BigInt!

minimumBiddingAmountPerOrder
BigInt!

minFundingThreshold
BigInt!

minBuyAmount
BigInt!

auctionSupply
BigInt!

allowListManager
Bytes!

allowListSigner
Bytes!

currentVolume
BigDecimal!

volumeClearingPriceOrder
BigInt!

currentClearingOrderSellAmount
BigInt!

currentClearingOrderBuyAmount
BigInt!

currentClearingOrderUserId
BigDecimal!

currentClearingPrice
BigDecimal!

price of auctioningToken in terms of bidding token

currentBiddingAmount
BigInt!

Total sell amount of all orders in the auction

currentSubjectTokenBidAmount
BigInt!

Total subjectTokens bid for in the auction by active orders

isAtomicClosureAllowed
Boolean!

isPrivateAuction
Boolean!

interestScore
BigDecimal!

uniqueBidders
BigInt!

number of unique users who have placed orders in the auction

isCleared
Boolean!

set true when AuctionCleared is emitted

totalOrders
BigInt!

totalOrders involved in the auction cancelled or claimed or active

activeOrderCount
BigInt!

number of active bids

txHash
Bytes!

transaction hash of the auction creation

blockInfo
BlockInfo!

block information of auction creation

minimumPriceInMoxie
BigDecimal!

minimum price in moxie to purchase one subject token

BlockInfo

Fields

NameDescription

id
ID!

hash
Bytes!

blockNumber
BigInt!

timestamp
BigInt!

CancellationSellOrder

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

auctionId
BigInt!

userId
BigInt!

buyAmount
BigInt!

sellAmount
BigInt!

ClaimedFromOrder

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

auctionId
BigInt!

userId
BigInt!

buyAmount
BigInt!

sellAmount
BigInt!

NewAuction

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

auctionId
BigInt!

auctioningToken
Bytes!

biddingToken
Bytes!

orderCancellationEndDate
BigInt!

auctionEndDate
BigInt!

userId
BigInt!

auctionedSellAmount
BigInt!

minBuyAmount
BigInt!

minimumBiddingAmountPerOrder
BigInt!

minFundingThreshold
BigInt!

allowListContract
Bytes!

allowListData
Bytes!

NewSellOrder

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

auctionId
BigInt!

userId
BigInt!

buyAmount
BigInt!

sellAmount
BigInt!

NewUser

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

userId
BigInt!

userAddress
Bytes!

Order

Fields

NameDescription

id
ID!

sellAmount
BigInt!

buyAmount
BigInt!

price
BigDecimal!

sellAmount / buyAmount

volume
BigDecimal!

sellAmount * 10 ^ -decimalsSellToken

timestamp
BigInt!

timestamp of the order

auctionId
BigInt!

auction
AuctionDetail

user
User!

userWalletAddress
Bytes!

added to easiness on querying user's orders by address

status
Status!

txHash
Bytes!

transaction hash of the order

blockInfo
BlockInfo!

block information of the order transaction

orderTxns
[OrderTxn!]!

order transactions

Arguments

NameDescription

skip
Int

first
Int

orderBy
OrderTxn_orderBy

orderDirection
OrderDirection

where
OrderTxn_filter

isExactOrder
Boolean!

exactOrder gets created when auction is created

encodedOrderId
String!

encoded orderId representing userId,buyAmount,sellAmount

lastUpdatedIndex
BigInt!

finalizedBuyAmount
BigInt!

amount of buyAmount claimed after auction is claimed

finalizedSellAmount
BigInt!

amount of sellAmount actually used in auction

refundAmount
BigInt!

amount of sellAmount returned back after auction is claimed

finalTxHash
Bytes

transaction hash of auction claimed not cancelled

OrderCounter

Fields

NameDescription

id
ID!

counter
BigInt!

OrderTxn

Fields

NameDescription

id
ID!

txhash+-+logIndex

txHash
Bytes!

blockInfo
BlockInfo!

order
Order!

newStatus
Status!

OwnershipTransferred

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

previousOwner
Bytes!

newOwner
Bytes!

Summary

Fields

NameDescription

id
ID!

hardcoded id: SUMMARY

totalBiddingValue
BigInt!

total bidding value (combining all orders) in the system

totalOrders
BigInt!

total orders in the system

totalAuctions
BigInt!

total auctions in the system

Token

Fields

NameDescription

id
ID!

symbol
String!

decimals
BigInt!

auctionsAsAuctioningToken
[AuctionDetail!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionDetail_orderBy

orderDirection
OrderDirection

where
AuctionDetail_filter

auctionsAsBiddingToken
[AuctionDetail!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionDetail_orderBy

orderDirection
OrderDirection

where
AuctionDetail_filter

User

Fields

NameDescription

id
ID!

address
Bytes!

createdAuctions
[AuctionDetail!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionDetail_orderBy

orderDirection
OrderDirection

where
AuctionDetail_filter

participatedAuctions
[AuctionDetail!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionDetail_orderBy

orderDirection
OrderDirection

where
AuctionDetail_filter

orders
[Order!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

UserRegistration

Fields

NameDescription

id
ID!

txhash+-+logIndex

blockInfo
BlockInfo!

user
Bytes!

userId
BigInt!