From 3ada916976fcb4350f18ca18443e8783ca724210 Mon Sep 17 00:00:00 2001 From: Filippo Costa Date: Mon, 3 Jun 2024 01:39:43 +0200 Subject: [PATCH] Bruno collection --- ... a human-readable name to a deployment.bru | 28 ++++++++++++ .../Delete a network and all related data.bru | 23 ++++++++++ ...etch a divergence investigation report.bru | 21 +++++++++ bruno/Launch a divergence investigation.bru | 42 ++++++++++++++++++ ...larity -a-k-a- -PoI agreement ratios--.bru | 30 +++++++++++++ bruno/Query PoIs.bru | 38 ++++++++++++++++ bruno/Query deployments.bru | 33 ++++++++++++++ bruno/Query indexers.bru | 30 +++++++++++++ bruno/bruno.json | 9 ++++ ops/compose/grafana/data/grafana.db | Bin 1576960 -> 1576960 bytes 10 files changed, 254 insertions(+) create mode 100644 bruno/Assign a human-readable name to a deployment.bru create mode 100644 bruno/Delete a network and all related data.bru create mode 100644 bruno/Fetch a divergence investigation report.bru create mode 100644 bruno/Launch a divergence investigation.bru create mode 100644 bruno/Poll indexer-s PoIs popularity -a-k-a- -PoI agreement ratios--.bru create mode 100644 bruno/Query PoIs.bru create mode 100644 bruno/Query deployments.bru create mode 100644 bruno/Query indexers.bru create mode 100644 bruno/bruno.json diff --git a/bruno/Assign a human-readable name to a deployment.bru b/bruno/Assign a human-readable name to a deployment.bru new file mode 100644 index 0000000..3c189c0 --- /dev/null +++ b/bruno/Assign a human-readable name to a deployment.bru @@ -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 + } + } + +} diff --git a/bruno/Delete a network and all related data.bru b/bruno/Delete a network and all related data.bru new file mode 100644 index 0000000..e4b5c93 --- /dev/null +++ b/bruno/Delete a network and all related data.bru @@ -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") + } + +} diff --git a/bruno/Fetch a divergence investigation report.bru b/bruno/Fetch a divergence investigation report.bru new file mode 100644 index 0000000..79d218b --- /dev/null +++ b/bruno/Fetch a divergence investigation report.bru @@ -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") + } +} diff --git a/bruno/Launch a divergence investigation.bru b/bruno/Launch a divergence investigation.bru new file mode 100644 index 0000000..16a688e --- /dev/null +++ b/bruno/Launch a divergence investigation.bru @@ -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 + } + } + } + } + } + +} diff --git a/bruno/Poll indexer-s PoIs popularity -a-k-a- -PoI agreement ratios--.bru b/bruno/Poll indexer-s PoIs popularity -a-k-a- -PoI agreement ratios--.bru new file mode 100644 index 0000000..e29bb5e --- /dev/null +++ b/bruno/Poll indexer-s PoIs popularity -a-k-a- -PoI agreement ratios--.bru @@ -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 + } + } +} diff --git a/bruno/Query PoIs.bru b/bruno/Query PoIs.bru new file mode 100644 index 0000000..ae5dafd --- /dev/null +++ b/bruno/Query PoIs.bru @@ -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 + } + } + } +} diff --git a/bruno/Query deployments.bru b/bruno/Query deployments.bru new file mode 100644 index 0000000..9be4d93 --- /dev/null +++ b/bruno/Query deployments.bru @@ -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 + } + } + +} diff --git a/bruno/Query indexers.bru b/bruno/Query indexers.bru new file mode 100644 index 0000000..a7f2223 --- /dev/null +++ b/bruno/Query indexers.bru @@ -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 + } + } + +} diff --git a/bruno/bruno.json b/bruno/bruno.json new file mode 100644 index 0000000..a1de707 --- /dev/null +++ b/bruno/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "Graphix", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/ops/compose/grafana/data/grafana.db b/ops/compose/grafana/data/grafana.db index ee312035be05265b7a73e7c1d363d54fe13d3a60..d1fc6cee8c5fac85c53f8c336542ac826a11de23 100644 GIT binary patch delta 649 zcmZwCO=uHA6bJB`&F*B9rg_;9ZL5;3v_+wiq+XOzG*S;@Lse*-4-r=o!HeKYM2ra% z;-!9Fwu;auU=h45v|)m$9u&M)5X6gE74hOBUJ4?p|607sVWhP|B2yq@Q(+g(F5;7)>NFnF8 z_G7bua|Q#2|0*SN;s#5`zhIoZHSWoFse&uUX@usP$tN4K@9pK4g?7>)ylec(mjm7Vl0k# zW*`lFAqD4P7wmyCI1e5S!w8JRKJ`(zI9J|7=e4F57tCXtpTBM&P-`#EYmrsk2#ipQ zg;M_bar=_*J~fB@#2w4>dtKA?gPxi6gTjEVHhT6EO{Ipd&oQN~*;-a=B4ClLBJja(jP9^{f&cVxDR*m&R3bJIr}sr0wE72xKJ##r`MJ5ynAw;DP*0= zY7s%DPMTSX2=+?Evpvh7oH)PpV`gd1gNR5M;zjl#KE#i7BY;SVY%i@Tr!*Id*o{&k zMVfV`(Y>tlb)K$rbk!aiR-Vzrt$~7%!wZoZ@mq@rM2~3bMto3@4Mr1MG@gt{ld-7% z;j1c(w)9BZbTRXt9H98)LQh_*R2K-{;OGX6o=}TSdnoT?(oIESTPw26>RWO@tEYQa zdwolF(NGIAyIoy=YvGbe`A(NHXc$^Fk<^W3jEw}9=d9Z3X|buIPiH?T