Graph-cli
and mustache
is being used for genearting the Assemblyscript and subgraph yam specifiication
In the project directory, you can run:
Install dependencies.
Generates subgraph.yaml based on subgraph template for the specific env and network configuration
Generates AssemblyScript types for smart contract ABIs and the subgraph schema.
Compiles a subgraph to WebAssembly.
Use the access token from the The Graph to allow the deployments.
Deploys a subgraph to a Graph Node.
The link to the Graph playground: https://thegraph.com/legacy-explorer/subgraph/onomyprotocol/ograph-devnet The link to the Graph playground: https://thegraph.com/legacy-explorer/subgraph/onomyprotocol/ograph-tevnet The link to the Graph playground: https://thegraph.com/legacy-explorer/subgraph/onomyprotocol/ograph-mainnet
The BNOMTransaction entity is the reflection of the BondingNOM Transaction event emitted by the contract.
{
bnomtransactions(
first: 1000,
skip: 0,
orderBy: timestamp,
orderDirection: desc
) {
id
senderAddress
amountNOM
amountETH
price
supply
buyOrSell
slippage
timestamp
}
}
BNOMHistoricalFrame is aggregated price change entities within the supported frames (Min, Hour, Day and etc). The aggregation is based on BondingNOM Transaction event emitted by the contract, so in case there are no events within the frame, the frame won't exist.
{
bnomhistoricalFrames(
first: 1000,
skip: 0,
where: { type: Minute },
orderBy: startTime,
orderDirection:desc
) {
id
type
updateTime
startTime
startPrice
endTime
endPrice
minPrice
maxPrice
transactionsCount
}
}
The repo supports the CI processes on the PR or merge to the 'dev', 'testnet', 'main' branches. Ans CD proces on the merge to the 'dev', 'testnet', 'main' branches with the deployment to the corresponding envs.