mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
minor changes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
4ac408de51
commit
82fd689144
@ -89,7 +89,7 @@ type Pool @entity {
|
|||||||
spotPrice: BigDecimal!
|
spotPrice: BigDecimal!
|
||||||
consumePrice: BigDecimal! # TODO: still need?
|
consumePrice: BigDecimal! # TODO: still need?
|
||||||
|
|
||||||
// what is the point of the counts, we never used them => remove
|
# what is the point of the counts, we never used them => remove
|
||||||
joinCount: BigInt! # liquidity has been added
|
joinCount: BigInt! # liquidity has been added
|
||||||
exitCount: BigInt! # liquidity has been removed
|
exitCount: BigInt! # liquidity has been removed
|
||||||
swapCount: BigInt!
|
swapCount: BigInt!
|
||||||
@ -192,6 +192,7 @@ type FixedRateExchange @entity {
|
|||||||
baseToken: Token!
|
baseToken: Token!
|
||||||
rate: BigDecimal!
|
rate: BigDecimal!
|
||||||
active: Boolean!
|
active: Boolean!
|
||||||
|
suppy: Int!
|
||||||
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
|
updates: [FixedRateExchangeUpdate!] @derivedFrom(field: "exchangeId")
|
||||||
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")
|
swaps: [FixedRateExchangeSwap!] @derivedFrom(field: "exchangeId")
|
||||||
}
|
}
|
||||||
@ -220,13 +221,13 @@ type FixedRateExchangeSwap @entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Dispenser @entity {
|
type Dispenser @entity {
|
||||||
id: ID! # dispenser datatoken
|
id: ID! # it's the datatoken address
|
||||||
active: Boolean!
|
active: Boolean!
|
||||||
owner: User!
|
owner: User!
|
||||||
minterApproved: Boolean!
|
minterApproved: Boolean!
|
||||||
isTrueMinter: Boolean!
|
isTrueMinter: Boolean!
|
||||||
maxTokens: BigDecimal!
|
maxTokens: BigDecimal! # max tokens that can be dispensed
|
||||||
maxBalance: BigDecimal!
|
maxBalance: BigDecimal! # max balance of requester. If the balance is higher, the dispense is rejected
|
||||||
balance: BigDecimal!
|
balance: BigDecimal!
|
||||||
datatoken: Datatoken!
|
datatoken: Datatoken!
|
||||||
dispenses: [DispenserTransaction!] @derivedFrom(field: "dispenserId")
|
dispenses: [DispenserTransaction!] @derivedFrom(field: "dispenserId")
|
||||||
@ -268,7 +269,7 @@ type PoolSnapshot @entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// shouldn't we move this to aquarius?
|
# shouldn't we move this to aquarius?
|
||||||
type MetadataUpdate @entity {
|
type MetadataUpdate @entity {
|
||||||
id: ID! # update tx + datatokenAddress
|
id: ID! # update tx + datatokenAddress
|
||||||
datatokenId: Datatoken!
|
datatokenId: Datatoken!
|
||||||
|
Loading…
Reference in New Issue
Block a user