New answers tagged

0

I am using WebStorm IDE. Solidity plugin is working, you can try.


0

what I did wrong, in case it helps others: jobs are highly specific pipelines, in tutorials make sure your job correlates to the smart contract the contract may require to be funded with LINK, make sure the contract is funded if it's required


4

A common problem in the traditional web2 art and trading card world is the transparency of randomness and scarcity. If you buy a trading card, like a Pokémon card for example, you have no way of knowing how rare it really is without talking to the company that printed it. There is a centralized component to the scarcity of the card. They could have printed ...


0

The feed is actually a Chainlink official feed, it's just not published yet in the docs. Market.link monitors and automatically adds any new feeds it finds, hence why all details (nodes etc) aren't updated yet. Any multi-oracle feed you find on market.link that uses the 'Offchain Aggregator' (as can be seen in the feed header details) would be a Chainlink ...


1

What you are seeing are warnings, not errors. They do not prevent the contract from compiling. In addition to this, your code isn't the same as the VRF code sample in the Chainlink docs. The version in the docs doesn't read immutable variables in the constructor, everything is hardcoded. Finally, as previously stated, if you change your compiler to v0.8.8, ...


1

You can read immutable variables in the constructor in Solidity v0.8.8 and above: Compiler Features ... Immutable variables can be read at construction time once they are initialized.


0

run your project outside of home directory. in my case my home directory C:/Users/nyamgavaa.g path inporter require there is no home directory with ".". this way fix my issue


0

The first way is the most secure way to request a random number. The first way send a request specifically to the Chainlink VRF (Verifiable Randomness Function). The VRF provides cryptographic proof that the number was generated in a truly random way. The second way is meant for sending and receiving generalized API data through a Chainlink node. This still ...


0

In case an oracle node does not respond, it may be necessary to retrieve the LINK used to pay for the unfulfilled request. The cancelChainlinkRequest will send the cancel request to the address used for the request, which transfers the amount of LINK back to the requesting contract and deletes it from the tracked requests. The default expiration for a ...


1

You have two options: Contact Chainlink in order to get them to deploy your price feed and they'll give you a quote for the feed deployment and maintenance. This is the typical route of how projects get their tokens listed. Implement your own price feed contract using the Chainlink feed interface. You could create a contract that calculates current price by ...


0

Try putting double quotes around your bridge name name="twitter-username-verification"


0

Assuming that your initial "deck of cards" is [0, 1, ..., N-1], the following should roughly work. I've made basically no attempt to compile or check this, but the underlying algorithm should be sound. Roughly, the approach is this: You start with a sorted "deck of cards", [0, ..., N-1]. This deck is implicit. To pick a random card, you: ...


0

The latest code snippets in the docs use the v0.8 contracts


0

it looks like you're doing 2 requests there in your code. Can you try do only 1 call to sendChainlinkRequestTo. eg have your first line there, but change the second one to 'return queries;'


Top 50 recent answers are included