unpack

command module
v0.0.0-...-21db6d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 6 Imported by: 0

README

(Un)pack Monolith

Discord

Set of tools to help decoding unpack, transactions, blocks, receipts and logs for Ethereum based chains.

WARNING

Work In Progress!

I am on a weekly basis implementing different aspects, rearranging existing packages and working towards something that will be useful for txpull overall and wider audiences.

Supported Networks

  • Ethereum
  • Binance Smart Chain
  • Polygon

GraphQL Notes

Networks
{
  networks {
    canonical_name
    created_at
    maintenance
    name
    network_id
    suspended
    symbol
    updated_at
    uuid
    website
  }
}
Contracts
List All Contracts
{
  listContracts(limit: 5, offset: 29, network_id: 56) {
    pagination {
      limit
      offset
      total
    }
    contracts {
      name
      address
      block_hash
      block_number
      contract_types
      audit {
        uuid
        completed
        safe
        high_impact_vulnerabilities
        medium_impact_vulnerabilities
        low_impact_vulnerabilities
        informational_impact_vulnerabilities
        vulnerabilities {
          check
          check_id
          confidence
          created_at
          description
          engine
          impact
          updated_at
          uuid
        }
      }
      network {
        id
        name
        canonical_name
        network_id
      }
      standards {
        name
        confidence_level
      }
      token {
        name
        symbol
        decimals
        total_supply
      }
    }
  }
}
Get Specific Contract/s
{
  contracts(network_id: 56, addresses: ["0x473b8E0B451FAfF65A657a6c5C54AC4a52703681"]) {
    uuid
    name
    abi
    address
    block_hash
    block_number
    corrupted
    corrupted_reason
    created_at
    current_processing_state
    next_processing_state
    partial
    processing_completed
    transaction_hash
    updated_at
    network {
      canonical_name
      created_at
      maintenance
      name
      network_id
      suspended
      symbol
      updated_at
      uuid
      website
    }
    constructor {
      created_at
      signature
      updated_at
      uuid
      arguments {
        index
        name
        type
        value
      }
    }
    metadata {
      bzzr0
      bzzr1
      cbor
      cbor_length
      compiler_version
      created_at
      experimental
      ipfs
      language
      optimization_runs
      optimized
      provider
      updated_at
      uuid
    }
    sources {
      abi
      pragma_solidity_version
      created_at
      is_entry_point
      kind
      language
      license
      name
      source_code
      updated_at
      uuid
    }
    standards {
      confidence_level
      confidence_points
      created_at
      discovered_tokens
      maximum_tokens
      name
      threshold
      updated_at
      uuid
    }
    audit {
      created_at
      updated_at
      vulnerabilities {
        check
        check_id
        confidence
        created_at
        description
        engine
        impact
        updated_at
        uuid
        elements {
          name
          type
        }
      }
      uuid
    }
    bytecode_validation {
      bytecode_verified
      compiler_version
      constructor_verified
      created_at
      fully_verified
      metadata_verified
      solgo_version
      supports_constructor
      supports_metadata
      updated_at
      uuid
      compiler_errors {
        component
        formatted
        message
        severity
        type
      }
    }
    token {
      created_at
      decimals
      name
      symbol
      total_supply
      updated_at
      uuid
    }
  }
}
Signatures
List all signatures
{
  listSignatures(limit: 20, offset: 10) {
    pagination {
      limit
      offset
      total
    }
    signatures {
      function_name
      signature
      signature_hash
      signature_raw
      network {
        canonical_name
        name
        symbol
        network_id
      }
      contract {
        block_hash
        block_number
      }
    }
  }
}
Disover information about specific signature
{
  signatures(signature: "0xb642fe57") {
    signature
    signature_raw
    function_name
    network {
      id
      canonical_name
      created_at
      maintenance
      name
      network_id
      suspended
      symbol
    }
    contract {
      address
      block_hash
      block_number
      transaction_hash
      token {
        name
        symbol
        total_supply
        decimals
      }
      contract_types
    }
    parameters {
      name
      type
      type_description {
        type_string
        type_identifier
      }
    }
    return_parameters {
      name
      type
      type_description {
        type_string
        type_identifier
      }
    }
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
core
db
gql
options
Package options provides a way to manage global options settings.
Package options provides a way to manage global options settings.
orm
rpc
Package schema contains all of the Schema Definition Files (abbreviated SDL) which define (Un)pack API.
Package schema contains all of the Schema Definition Files (abbreviated SDL) which define (Un)pack API.
services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL