Coder Social home page Coder Social logo

lens-examples's Introduction

lens-examples

Helpful info to implement Lens into your projects

Example Implementations:


Go.mod Setup

Note: This is only necessary if you are importing Lens into your project. These steps have already been taken in the above examples.

Because Lens replaces some modules in its mod file, manual steps are needed to properly import Lens into a project.

First, install lens to your GOPATH/pkg/mod directory. Run:

go install github.com/strangelove-ventures/lens@latest

Add the following lines to your mod file:

require github.com/gogo/protobuf v1.3.3
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4

Tidy your mod file. Run:

go mod tidy

Now you can properly import lens to your go file:

import (
	lens "github.com/strangelove-ventures/lens/client"
	registry "github.com/strangelove-ventures/lens/client/chain_registry"
)

lens-examples's People

Contributors

boojamya avatar jtieri avatar jackzampolin avatar

Stargazers

 avatar pratikbin avatar Mike Purvis avatar Andrew Margetts avatar  avatar  avatar

Watchers

jonathan berger avatar grepsuzette avatar Andrew Gouin avatar Tyler Schmidt avatar  avatar pratikbin avatar  avatar

lens-examples's Issues

exit code 0 after `starting block queries for`

Running #4 but indexer is exiting with code 0 after starting block queries for

sample_indexer-lens-1      | + sleep 3
sample_indexer-lens-1      | + indexer
sample_indexer-lens-1      | 2022/11/06 08:14:21 ignoring endpoint https://osmosis.validator.network:443/ due to error post failed: Post "https://osmosis.validator.network:443/": dial tcp: lookup osmosis.validator.network on 127.0.0.11:53: no such host
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc.osmosis.interbloc.org:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc-osmosis.ecostake.com:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://osmosis.nodejumper.io:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://osmosis-rpc.ibs.team:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc-osmosis-ia.cosmosia.notional.ventures:443/
sample_indexer-lens-1      | 2022/11/06 08:14:21 ignoring endpoint https://osmosis.rpc.stakin.com:443 due to error error unmarshalling: invalid character '<' looking for beginning of value
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://osmosis-rpc.polkachu.com:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://osmosis-rpc.lavenderfive.com:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 ignoring endpoint https://rpc-osmosis.whispernode.com:443 due to error post failed: Post "https://rpc-osmosis.whispernode.com:443": dial tcp 51.81.155.97:443: connect: connection refused
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://osmosis-rpc.quickapi.com:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc.osmosis.goldenratiostaking.net:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc.osmosis.silknodes.io:443
sample_indexer-lens-1      | 2022/11/06 08:14:21 verified healthy endpoint https://rpc.osmosis.zone:443/
sample_indexer-lens-1      | 2022/11/06 08:14:22 verified healthy endpoint https://rpc-osmosis.blockapsis.com:443
sample_indexer-lens-1      | 2022/11/06 08:14:22 failed to connect to database. err: failed to open db, ensure db server is running & check conn string. err: sql: unknown driver "postgres" (forgotten import?)
sample_indexer-lens-1 exited with code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.