Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Casmir Patterson
    @casmirconsensys
    being a novice in setting up a local geth
    via chainlink
    I have a go-ethereum running in the back groud
    but not exactly sure why they are not talking to each other
    really need to be working on my oracle and adapter
    but need this node to be running to get it running
    Thomas
    @thodges-gh
    @casmirconsensys If you're using Docker, localhost of the container is not the same as your local machine. You should check out the Discord to receive more help.
    Muhammad Yahya
    @m-yahya
    Hi folks, chainlink noob here.
    with reference to the following link:
    https://docs.chain.link/docs/fulfilling-requests
    I'm trying to deploy ATestnetConsumer.sol in remix connected to Volta RPC (https://volta-rpc.energyweb.org).
    I have selected the compiler version 0.4.24+commit.e67f0147.Emscripten.clang.
    I'm getting the following error:
    Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? "message" must be a nonempty string.
    I tried to increase gas to 8000000 but still getting the same error.
    any help please? thanks
    Thomas
    @thodges-gh
    @m-yahya You're getting the error when you try to deploy or when you try to create a request?
    Muhammad Yahya
    @m-yahya
    I'm just trying to deploy.
    Thomas
    @thodges-gh
    I was just able to deploy the same contract without an error.
    Is Volta its own chain?
    Muhammad Yahya
    @m-yahya
    it is "Volta Test Network by Energy Web Foundation".
    I tried with JavaScript VM and even with ganache, but no luck.
    Thomas
    @thodges-gh
    So, yes? If so, there's no LINK token deployed to that network. Please use an Ethereum testnet for the docs (Ropsten, Rinkeby, or Kovan).
    Muhammad Yahya
    @m-yahya
    LINK token is deployed on volta. the deployed address is 0xe76d478383327b83eE0FE6b3F0ec675315340E18.
    I passed this address to the constructor of Oracle.sol
    Thomas
    @thodges-gh
    That's fine, but setPublicChainlinkToken() is not going to automatically pick up your LINK token address.
    Muhammad Yahya
    @m-yahya
    so should I call setPublicChainlinkToken(0xe76d478383327b83eE0FE6b3F0ec675315340E18) before proceed?
    Thomas
    @thodges-gh
    You're going to have to call setChainlinkToken(<LINK token address>); instead.
    Muhammad Yahya
    @m-yahya
    can you please give me a hint where to find this function? I can't see it in deployed Oracle.sol
    Thomas
    @thodges-gh
    It's in ChainlinkClient.sol.
    Muhammad Yahya
    @m-yahya
    so first I need to deploy ChainlinkClient.sol and call setChainlinkToken(<LINK token address>)?
    Thomas
    @thodges-gh
    No, your ATestnetConsumer contract inherits ChainlinkClient. The method is already present in ATestnetConsumer, you just need to modify your constructor.
    Muhammad Yahya
    @m-yahya
    I changed the constructor to setChainlinkToken(0xe76d478383327b83eE0FE6b3F0ec675315340E18); and its deployed.
    thank you very much for your quick help, thanks alot.
    Alkhara
    @Alkhara
    Does the parity client need to be fully synced before the chainlink node can connect to it?
    I am getting the following verifyEthereumChainID failed: Ethereum ChainID doesn't match chainlink config.ChainID: config ID=1, eth RPC ID=0
    my chainlink env file has ETH_CHAIN_ID=1
    Thomas
    @thodges-gh
    @Alkhara Yes, it needs to be synced first.
    Alkhara
    @Alkhara
    @thodges-gh Ok thanks!
    atif-konasl
    @atif-konasl
    Hi guys. I am in trouble to fetch data from https://fixer.io/documentation#convertcurrency site using honeycomb api. I have got oracle address("0x4a3fbbb385b5efeb4bc84a25aaadcd644bd09721") and jobId("cb36e84d9f4947988030886160798dcc") for this api but when i send request through smart contract, i do not get any response.
    atif-konasl
    @atif-konasl
    function requestEthereumPrice(address _oracle, string _jobId)
    public
    onlyOwner
    {
    Chainlink.Request memory req = buildChainlinkRequest(stringToBytes32(_jobId), this, this.fulfillEthereumPrice.selector);
    req.add("get", "https://data.fixer.io/api/latest?base=USD");
    req.add("path", "rates.EUR");
    req.addInt("times", 100);
    sendChainlinkRequestTo(_oracle, req, ORACLE_PAYMENT);
    }
    Eric Badiere
    @ebadiere
    Hi All. Newbie here. I am running a node with the goal of developing an adapter. When I bring my node down I seem to lose all of the jobs I created. I originally thought it must have been using the sqlite in memory DB, but not sure, so I tried connecting to a local postgres server, and now I am getting the following:
    2019-11-27T03:39:41Z [FATAL] Unable to initialize ORM: unable to lock ORM: the following errors occurred:
    - postgres advisory locking strategy failed, timeout set to indefinite
    - dial tcp: address tcp/$PORT: unknown port
    initializeORM#NewORM
    github.com/smartcontractkit/chainlink/core/store.initializeORM
    /chainlink/core/store/store.go:223
    github.com/smartcontractkit/chainlink/core/store.NewStoreWithDialer
    /chainlink/core/store/store.go:139
    github.com/smartcontractkit/chainlink/core/store.NewStore
    /chainlink/core/store/store.go:130
    github.com/smartcontractkit/chainlink/core/services.NewApplication
    /chainlink/core/services/application.go:49
    github.com/smartcontractkit/chainlink/core/cmd.ChainlinkAppFactory.NewApplication
    /chainlink/core/cmd/client.go:67
    github.com/smartcontractkit/chainlink/core/cmd.(*Client).RunN
    The URL is correct
    Any suggestions?
    Thomas
    @thodges-gh
    @ebadiere What are the environment variables logged when the CL node starts, and can you access your database manually by using the psql -h command?
    Eric Badiere
    @ebadiere
    @thodges-gh I can access my database locally using: psql -h 127.0.0.1 -p 5432 -U postgres
    where do I see the env vars logged when the CL node starts?
    Thomas
    @thodges-gh
    It'll log in the console output.
    Eric Badiere
    @ebadiere
    Here is my console output:
    ericbadiere@Erics-MacBook-Pro-3 .chainlink-ropsten % cd ~/.chainlink-ropsten && docker run -p 6688:6688 -v ~/.chainlink-ropsten:/chainlink -it --env-file=.env smartcontract/chainlink local n
    2019-11-27T03:39:41Z [INFO] Starting Chainlink Node 0.6.9 at commit 0f41bad0bba11d65a5ff45cdf6f82f5fdde9d494 cmd/local_client.go:26
    2019-11-27T03:39:41Z [INFO] SGX enclave NOT loaded cmd/enclave.go:11
    2019-11-27T03:39:41Z [INFO] This version of chainlink was not built with support for SGX tasks cmd/enclave.go:12
    2019-11-27T03:39:41Z [INFO] Locking postgres for exclusive access with indefinite timeout orm/orm.go:63
    2019-11-27T03:39:41Z [FATAL] Unable to initialize ORM: unable to lock ORM: the following errors occurred:
    The only thing I can think of the $PORT
    but it's defined in the .env
    Thomas
    @thodges-gh
    What is in the .env file?
    Eric Badiere
    @ebadiere
    USERNAME=postgres
    PASSWORD=password
    PORT=5432
    SERVER=127.0.0.1
    DATABASE=chainlink
    DATABASE_TIMEOUT=0
    DATABASE_URL=postgresql://$USERNAME:$PASSWORD@$SERVER:$PORT/$DATABASE
    ~
    Thomas
    @thodges-gh
    Oh, you need to change the $ values in the DATABASE_URL value to the actual values, not define them above.
    Eric Badiere
    @ebadiere
    oh shoot
    okay thanks
    Thomas
    @thodges-gh
    No problem. It'd be cool if that worked with Docker, though.