Skip to content

Commit

Permalink
Bruno collection
Browse files Browse the repository at this point in the history
  • Loading branch information
neysofu committed Jun 2, 2024
1 parent c35256b commit 3ada916
Show file tree
Hide file tree
Showing 10 changed files with 254 additions and 0 deletions.
28 changes: 28 additions & 0 deletions bruno/Assign a human-readable name to a deployment.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
meta {
name: Assign a human-readable name to a deployment
type: graphql
seq: 5
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
User-Agent: Insomnia/2023.5.7
Content-Type: application/json
}

body:graphql {
mutation {
setDeploymentName(
deploymentIpfsCid: "Qmadj8x9km1YEyKmRnJ6EkC2zpJZFCfTyTZpuqC3j6e1QH"
name: "premia.eth/premia-mainnet"
) {
id
}
}

}
23 changes: 23 additions & 0 deletions bruno/Delete a network and all related data.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Delete a network and all related data
type: graphql
seq: 6
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
User-Agent: Insomnia/2023.5.7
Content-Type: application/json
}

body:graphql {
mutation {
deleteNetwork(network: "testnet")
}

}
21 changes: 21 additions & 0 deletions bruno/Fetch a divergence investigation report.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Fetch a divergence investigation report
type: graphql
seq: 8
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
{
poiCrossCheckReport(requestId: "9b587618-9f25-4f96-b435-a3b9f94dc9f2")
}
}
42 changes: 42 additions & 0 deletions bruno/Launch a divergence investigation.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
meta {
name: Launch a divergence investigation
type: graphql
seq: 7
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
mutation {
launchDivergenceInvestigation(
req: {
pois: ["foo", "bar"]
queryBlockCaches: true
queryEthCallCaches: false
queryEntityChanges: true
}
) {
uuid
status
bisectionRuns {
divergenceBlockBounds {
lowerBound {
number
}
upperBound {
number
}
}
}
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
meta {
name: Poll indexer-s PoIs popularity -a-k-a- -PoI agreement ratios--
type: graphql
seq: 4
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
{
poiAgreementRatios(indexerName: "testnet-indexer-03") {
poi
deployment {
id
}
nAgreeingIndexers
nDisagreeingIndexers
hasConsensus
inConsensus
}
}
}
38 changes: 38 additions & 0 deletions bruno/Query PoIs.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
meta {
name: Query PoIs
type: graphql
seq: 3
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
{
proofsOfIndexing(request: {
deployments: ["Qmadj8x9km1YEyKmRnJ6EkC2zpJZFCfTyTZpuqC3j6e1QH"],
blockRange: {start: 1000},
limit: 100
}) {
hash
block {
hash
number
}
allocatedTokens
deployment {
id
}
indexer {
id
}
}
}
}
33 changes: 33 additions & 0 deletions bruno/Query deployments.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
meta {
name: Query deployments
type: graphql
seq: 1
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
{
deployments(
filter: {
network: "mainnet"
ipfsCid: "Qmadj8x9km1YEyKmRnJ6EkC2zpJZFCfTyTZpuqC3j6e1QH"
#name: "premia.eth/premia-mainnet"
limit: 100
}
) {
id
name
networkName
}
}

}
30 changes: 30 additions & 0 deletions bruno/Query indexers.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
meta {
name: Query indexers
type: graphql
seq: 2
}

post {
url: {{ _.url }}
body: graphql
auth: none
}

headers {
Content-Type: application/json
}

body:graphql {
{
indexers(
filter: {
address: "0x87eba079059b75504c734820d6cf828476754b83"
limit: 100
}
) {
id
allocatedTokens
}
}

}
9 changes: 9 additions & 0 deletions bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Graphix",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
Binary file modified ops/compose/grafana/data/grafana.db
Binary file not shown.

0 comments on commit 3ada916

Please sign in to comment.