link donde le explican como es el proceso para la fauce de ChainLink:
https://docs.chain.link/resources/acquire-link?parent=gettingStarted
link de la fauce de ChainLink:
https://faucets.chain.link/
Prepárate para programar un contrato inteligente
Avanza en el desarrollo de contratos inteligentes
Cómo estructurar un contrato inteligente
Configurando tu entorno de desarrollo
Desarrolla el contrato inteligente de un juego
Desarrollando un juego simple
Completando la lógica del contrato
Definiendo al ganador de la partida
Obtener un achievement
Agregar un token play to earn
Ampliado las capacidades del contrato
Crear un market place de achievements
Resolviendo el modelo de subasta
Agregar aleatoriedad al juego con Chainlink
Revisando la seguridad del contrato
Aleatoriedad: Funcionamiento con Chainlink y Metamask.
Revisión de seguridad
Correcciones y buenas prácticas
Continúa desarrollando contratos inteligentes
Continúa desarrollando contratos inteligentes
You don't have access to this class
Keep learning! Join and start boosting your career
Deploying and managing smart contracts requires certain specific inputs and steps. Here, the instructor provides a complete guide to interact with the Sepolia test network and use the Chainlink network. Through these instructions, you will acquire the ability to manage contracts and handle random numbers efficiently.
To work on the Sepolia network and interact with existing contracts, you need funds in your wallet, specifically Chainlink LINK tokens. These tokens are used to cover the cost of random number queries, but remember that in a testnet the cost is fictitious.
Creating a subscription on Chainlink is essential for implementing contracts that handle random numbers. Here's how to do it:
Create the subscription: Follow the process provided to generate a subscription. You will be assigned a subscription ID, important for future implementations.
Verify the network: Make sure you are connected to the correct network, Sepolia in this case.
Add Consumers: Once you deploy the contract, add it as a 'consumer' so it can interact with the data received through the subscription.
Add LINK balance: Make sure to load a sufficient LINK balance to perform the queries. This is done through the "Add Funds" option.
Having prepared the subscription and having funds, the next step is to deploy the contract using Remix:
Configure Remix: Make sure that the network is configured correctly in Remix. Use 'Injected Provider' with Metamask if you are using Metamask.
Builder Data: Provide the necessary data to the contract builder during implementation of the contract, including the subscription ID created.
Confirm transaction: Perform the transaction and wait for confirmation to ensure that the contract is implemented correctly.
With the contract already deployed and added as a consumer, it is time to make use of its functionalities:
Start games: You can start a game with two addresses. Check interactions to ensure the correct draw when generating moves.
Confirm randomness: Verify that the assignment of turns follows the expected logic by testing various actions within the contract.
Event handling in smart contracts is an excellent practice for recording valuable information. Consider using logs to verify the issuance and receipt of random numbers, which provides transparency and insight into how random outcomes occur.
Don't forget to take on the challenge of creating more complexity in your contracts, such as offering random rewards to the winning user - these types of challenges will help you consolidate your developing understanding and skills with Solidity!
With this guide, you already have the tools and knowledge needed to work with random numbers in Solidity with Chainlink in a testnet. Keep practicing, face new challenges and expand your horizons in the fascinating world of smart contracts and blockchain technology!
Contributions 3
Questions 0
link donde le explican como es el proceso para la fauce de ChainLink:
https://docs.chain.link/resources/acquire-link?parent=gettingStarted
link de la fauce de ChainLink:
https://faucets.chain.link/
aca les dejo el link para la suscription a mi me costo un poco conseguirla,
https://vrf.chain.link/
Want to see more contributions, questions and answers from the community?