Skip to content

Latest commit

 

History

History
108 lines (78 loc) · 1.88 KB

README.md

File metadata and controls

108 lines (78 loc) · 1.88 KB

#Azulo Trust Subgraph

This subgraph tracks activity on trusts and transactions within Azulo's multi-sig wallets.

The purpose is show to show transparency of Azulo's trusts through usage data.

Built by the Azulo team.

Notes

Azulo is built using Gnosis Safe Contracts.

For more information see the Gnosis Safe docs and/or the docs for The Graph.

Networks:

Prerequiste

  • yarn
install yarn
  • graph-cli
yarn global add @graphprotocol/graph-cli

Getting started

  1. Get the source and install the dependencies
yarn install
  1. Build
yarn prepare:mainnet
yarn codegen
yarn build

Deployment

  1. Authenticate to a graph node
$ graph auth https://api.thegraph.com/deploy/ <token>
  1. Deploy
graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ <github username>/<project name>

Debugging

curl --location --request POST 'https://api.thegraph.com/index-node/graphql' --data-raw '{"query":"{ indexingStatusForPendingVersion(subgraphName: "<SUBGRAPH_USERNAME>/<SUBGRAPH_NAME>") { subgraph fatalError { message } nonFatalErrors { message } } }"}'

Model

  • Trust
    • Transaction

Query samples

Get Trust details

{
  trust(id: "0x12312312.....") {
    id
    creator
    network
    stamp
    hash
    factory
    owners
    threshold
    transactions {
      id
      stamp
      hash
      status
      value
      destination
      data
      signatures
      nonce
      operation
      estimatedSafeTxGas
      estimatedBaseGas
      estimatedGasPrice
      gasToken
      refundReceiver
      gasUsed
      gasPrice
    }
  }
}