<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jason Win on Medium]]></title>
        <description><![CDATA[Stories by Jason Win on Medium]]></description>
        <link>https://medium.com/@dice40568?source=rss-2c431b813aa0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vbIscNhXSdWW1NwrEBvlhg.jpeg</url>
            <title>Stories by Jason Win on Medium</title>
            <link>https://medium.com/@dice40568?source=rss-2c431b813aa0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:51:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dice40568/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Running a Ciphernode Is More Than Installing Software: A Practical Guide to Operator Readiness]]></title>
            <link>https://dice40568.medium.com/running-a-ciphernode-is-more-than-installing-software-a-practical-guide-to-operator-readiness-fa0489c89271?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa0489c89271</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 09:18:05 GMT</pubDate>
            <atom:updated>2026-11-12T09:18:05.318Z</atom:updated>
            <content:encoded><![CDATA[<p>Running a Ciphernode is not simply a matter of installing software and keeping a server online.</p><p>To become a reliable Interfold operator, several independent pieces must work together: hardware, network connectivity, external services, installation configuration, key management, and on-chain registration.</p><p>Understanding how these pieces fit together is essential before operating a node.</p><p>This article walks through five areas that every prospective Ciphernode operator should understand.</p><p>1. Hardware and Network Readiness</p><p>The first step is making sure the machine can support the node’s workload.</p><p>Operators should verify the current hardware requirements, including:</p><p>- Available memory and CPU resources<br>- Storage capacity<br>- Supported operating system and architecture<br>- Network bandwidth<br>- Inbound connectivity, including the required QUIC port</p><p>These requirements should be checked against the current official documentation rather than assumed from older guides.</p><p>A machine that technically starts the software is not necessarily a machine that can reliably participate in protocol operations.</p><p>Network configuration matters just as much as hardware. Connectivity problems can prevent a node from receiving events, responding to protocol requests, or completing time-sensitive operations.</p><p>2. External Services: Ethereum and Avail</p><p>A Ciphernode depends on external infrastructure.</p><p>Two important components are:</p><p><strong>Ethereum WebSocket endpoint</strong></p><p>The node needs an Ethereum WebSocket connection. Operators should verify that the endpoint supports the required historical contract-log queries, not just a basic live connection.</p><p>A successful connection alone does not prove that the endpoint provides everything the node needs.</p><p><strong>Avail HTTP endpoint</strong></p><p>The node also requires access to an Avail HTTP endpoint. This connection should be tested according to the current setup instructions.</p><p>One important detail: an empty historical query result should not automatically be interpreted as proof that the service is working correctly. Operators need to follow the documented test procedure and verify that the endpoint returns the expected data.</p><p>The goal is to validate the actual functionality required by the protocol, not merely confirm that an endpoint responds.</p><p>3. Installation and Version Management</p><p>Interfold provides multiple installation paths, including:</p><p>- DAppNode<br>- CLI<br>- Docker</p><p>The right option depends on the operator’s infrastructure and technical preferences.</p><p>Regardless of the installation method, version management is important.</p><p>Operators should use a specific, documented release version rather than relying on a moving `latest` tag. This makes deployments more predictable and reduces the risk of unexpected changes during updates.</p><p>A reproducible installation is easier to troubleshoot, maintain, and audit.</p><p>Before moving forward, verify that the installed release is compatible with the current protocol instructions.</p><p>4. Key Management and On-Chain Registration</p><p>This is one of the most important parts of operator readiness.</p><p>Interfold distinguishes between two roles:</p><p><strong>Operator key</strong></p><p>The operator key is used to authorize protocol-related actions and sign relevant transactions.</p><p><strong>Bond owner wallet or Safe</strong></p><p>The bond owner provides the FOLD bond and ticket collateral and signs the corresponding on-chain transactions.</p><p>These roles can be assigned to separate keys. Keeping them separate is a sensible security practice because it reduces the need to expose the wallet holding the funds to routine operator activity.</p><p>The registration process follows a specific order:</p><p>1. The operator key authorizes or sets the bond owner.<br>2. The bond owner provides the required FOLD bond.<br>3. The bond owner registers the operator.<br>4. The bond owner adds the required ticket collateral.<br>5. The node runs and acknowledges the release when required.</p><p>The order matters. Registration requires the full bond, and ticket collateral is added after registration.</p><p>Operators should protect their keys carefully and understand which wallet is responsible for each transaction before signing anything.</p><p>5. Understanding What Active Status Actually Means</p><p>An operator should not confuse successful installation with active protocol status.</p><p>The `Active: true` condition depends on several requirements being satisfied, including:</p><p>- Successful operator registration<br>- Sufficient current bond<br>- Sufficient ticket collateral<br>- Required release acknowledgement and readiness<br>- No disqualifying ban or status condition</p><p>This distinction is important.</p><p>An operator can have a running node but still fail to meet the conditions required for active status.</p><p>At the same time, `Active: true` should not be interpreted as a permanent guarantee of uptime, successful committee selection, or flawless protocol participation.</p><p>It describes the operator’s activation conditions at that point in time.</p><p>Operational readiness is an ongoing responsibility. Operators should monitor node health, network connectivity, protocol events, tickets, and release acknowledgements rather than assuming that an initially successful setup will remain healthy indefinitely.</p><p>Readiness Is a Process, Not a Single Check</p><p>A reliable Ciphernode operator needs to think beyond installation.</p><p>Hardware and network configuration establish the foundation. Ethereum and Avail connectivity provide access to required services. Version management makes deployments predictable. Proper key separation protects operator funds and permissions. Finally, correct bonding, registration, ticket collateral, and release acknowledgement establish the conditions for active status.</p><p>Each layer matters.</p><p>There is also an important distinction between technical readiness and programme eligibility. Completing educational tasks or successfully installing a node does not automatically establish eligibility for a particular incentive programme or guarantee any allocation.</p><p>For example, programme-specific eligibility conditions and final allocations must be checked against the relevant official rules and epoch records. No operator should treat participation as a guaranteed source of income.</p><p>The best approach is to treat node operation as infrastructure responsibility: verify every dependency, follow the documented sequence, protect keys, and continuously monitor the system.</p><p>That is what turns a software installation into a properly prepared Ciphernode operation.</p><p>Official Resources</p><p>For current requirements and procedures, consult the official Interfold documentation:</p><p>- Interfold documentation: <a href="https://docs.interfold.network/">https://docs.interfold.network/</a></p><p>Always verify hardware specifications, supported releases, endpoint requirements, and registration conditions against the latest official operator instructions before deploying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa0489c89271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Does a Ciphernode Actually Do? Understanding Interfold Through Encrypted Voting]]></title>
            <link>https://dice40568.medium.com/what-does-a-ciphernode-actually-do-understanding-interfold-through-encrypted-voting-84e4a4d5a35f?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/84e4a4d5a35f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 07:08:09 GMT</pubDate>
            <atom:updated>2026-11-12T07:08:09.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine an online election where 100 people need to vote on an important decision.</p><p>Everyone should be able to trust the final result, but nobody should be able to see how an individual participant voted. Not the other voters, not the operators processing the data, and not the infrastructure running the computation.</p><p>This is a simple example of the problem Interfold is designed to address.</p><p>At the center of its architecture is the Encrypted Execution Environment (E3), supported by a network of independent ciphernodes.</p><p>But what exactly does a ciphernode do, and why does the system need multiple independent operators?</p><p>Let’s break it down.</p><h3>1. What Is an Encrypted Execution Environment?</h3><p>An E3 is a single, defined computation performed over encrypted inputs.</p><p>It is not a general-purpose computer or simply a place where encrypted files are stored. Each E3 is designed around a specific program, a specific set of inputs, and a specific result.</p><p>Think about our voting example:</p><ul><li>100 participants submit encrypted YES or NO votes.</li><li>The computation processes these encrypted inputs.</li><li>The result is an encrypted final tally.</li><li>The permitted output is decrypted through the protocol.</li></ul><p>The important distinction is that the system can compute over encrypted data without first revealing the individual inputs.</p><p>This separates the ability to process information from the ability to see that information.</p><h3>2. How Does a Ciphernode Participate?</h3><p>Interfold uses sortition to select a committee of ciphernodes for each E3.</p><p>These nodes are responsible for important cryptographic protocol operations.</p><p>Once selected, the committee performs Distributed Key Generation (DKG) and publishes a committee public key.</p><p>Each participating ciphernode holds only one share of the committee’s secret key.</p><p>This means the secret key is distributed across multiple participants rather than held by a single operator.</p><p>In our voting example, participants use the committee’s public key to encrypt their votes. The compute provider processes the encrypted inputs and produces an encrypted result.</p><p>The ciphernodes do not decide who wins the vote or calculate the application’s result themselves. Their role is to support the cryptographic infrastructure that makes the computation and controlled output decryption possible.</p><h3>3. Threshold Decryption: Why One Node Is Not Enough</h3><p>This is one of the most important parts of Interfold’s architecture.</p><p>After the compute provider publishes the encrypted output, the committee participates in threshold decryption.</p><p>To decrypt the output, the protocol requires T + 1 valid decryption shares.</p><p>No individual ciphernode can decrypt the result independently.</p><p>Returning to our example, the committee can collectively reveal the final voting tally without exposing each participant’s original vote.</p><p>The distinction matters:</p><ul><li>Individual inputs remain encrypted.</li><li>The compute provider performs the computation over ciphertexts.</li><li>The committee supports decryption of the permitted output.</li><li>A single operator cannot independently reveal that output.</li></ul><p>This creates a separation of responsibilities between computation and decryption.</p><h3>4. Why Independent Operators Matter</h3><p>Having multiple ciphernodes is not automatically the same as having a decentralized system.</p><p>Imagine five registered nodes, but all five are controlled by the same organization.</p><p>Technically, there are five registrations. In practice, control is still concentrated in one place.</p><p>This is why operator independence matters.</p><p>Independent operators distribute responsibility for key generation, protocol participation, and threshold decryption across separate parties.</p><p>Multiple registrations under common control do not establish genuine independence. Interfold’s published rules account for this by treating registrations under common control as one operator for the per-operator cap.</p><p>The objective is not simply to increase the number of nodes. It is to distribute control and reduce dependence on any single operator.</p><h3>5. Running a Ciphernode Is More Than Staying Online</h3><p>A ciphernode operator has ongoing responsibilities.</p><p>The node must monitor protocol events, submit sortition tickets, and participate in committee duties when selected.</p><p>Depending on the protocol stage, these responsibilities can include:</p><ul><li>Distributed Key Generation (DKG).</li><li>Proof-related work.</li><li>Decryption-share generation.</li><li>Acknowledging software releases on-chain.</li></ul><p>Key management is equally important.</p><p>Operators must protect their operator keys and key-store passwords. Backups should remain encrypted and access-controlled.</p><p>Failures or violations of protocol rules can expose an operator’s position to penalties.</p><p>In other words, being online is only one part of being a reliable ciphernode operator.</p><h3>6. The Bigger Picture</h3><p>The encrypted voting example illustrates a broader principle behind Interfold.</p><p>A system should not need unrestricted access to sensitive inputs just to perform useful computation.</p><p>The compute provider handles encrypted computation. Ciphernodes support distributed key generation and threshold decryption. Independent operators help prevent control from concentrating in a single party.</p><p>Each component has a defined responsibility.</p><p>For me, the most interesting aspect of this architecture is the separation between processing information and revealing information.</p><p>A network does not necessarily need to see private inputs to produce a useful result.</p><p>And when that result does need to be revealed, the protocol requires collective participation rather than trusting a single operator.</p><p>That is the core idea behind Interfold’s Encrypted Execution Environment.</p><p><strong>Learn more about Interfold:</strong></p><p><a href="https://docs.interfold.network/learn/what-is-e3">https://docs.interfold.network/learn/what-is-e3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84e4a4d5a35f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Trust-Based Decision Flow for a $100,000 Treasury Agent]]></title>
            <link>https://dice40568.medium.com/building-a-trust-based-decision-flow-for-a-100-000-treasury-agent-56f7d89d4f51?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/56f7d89d4f51</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 11:01:51 GMT</pubDate>
            <atom:updated>2026-11-05T11:01:51.224Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Scenario:</strong> An autonomous treasury agent manages $100,000 in assets and is considering swapping $40,000 worth of USDC into a target token.</p><p>Before execution, the agent queries three independent data sources. They disagree on both price and available liquidity.</p><p>The agent must determine whether the data is reliable enough to authorize execution. If confidence is insufficient, it must stop.</p><h3>1. INTENT PARSE — Understand the request</h3><p>The agent converts the instruction into a structured intent:</p><ul><li>Treasury value: $100,000</li><li>Trade size: $40,000 USDC</li><li>Action: Buy a target token</li><li>Maximum acceptable price impact: 1%</li><li>Maximum slippage: 0.5%</li><li>Risk tolerance: Conservative</li><li>Execution: Non-custodial, requiring explicit wallet authorization</li></ul><p><strong>Gate:</strong> If the token, chain, amount, or risk parameters are ambiguous, the agent asks for clarification. No routing or execution proceeds until intent is complete.</p><h3>2. ROUTE — Query independent sources</h3><p>The agent retrieves price and liquidity information from three independent sources:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSGqAoStEhRRbUNcSg_C7Q.png" /></figure><p>The agent does not assume that the majority is automatically correct.</p><p>It checks:</p><ul><li>Source independence and reliability.</li><li>Data timestamps and freshness.</li><li>Whether all sources refer to the same chain, token contract, and trading pair.</li><li>Whether liquidity represents actual executable depth or simply reported TVL.</li><li>Whether the sources include the same market venues.</li></ul><h3>3. NORMALIZE — Make the data comparable</h3><p>All responses are converted into a common schema:</p><ul><li>Identical token and contract identifiers.</li><li>USD-denominated prices.</li><li>Standardized decimal precision.</li><li>Unified timestamps.</li><li>Consistent liquidity definitions.</li><li>Comparable trading-pair and chain information.</li></ul><p>Stale, incomplete, duplicated, or incorrectly mapped responses are flagged.</p><p>A source reporting TVL cannot automatically be treated as equivalent to a source reporting executable liquidity.</p><h3>4. AGGREGATE — Calculate confidence</h3><p>The agent detects a significant discrepancy.</p><p>Price deviation between the lowest and highest sources is approximately 4%.</p><p>Liquidity also differs substantially: Source B reports only $280,000 compared with over $1.1 million from the other sources.</p><p>The agent must investigate the discrepancy rather than simply average the three values.</p><p><strong>Confidence score:</strong></p><p>The agent calculates a weighted score:</p><ul><li>Source reliability and independence: 25%</li><li>Data freshness: 20%</li><li>Cross-source price agreement: 25%</li><li>Liquidity verification and executable depth: 20%</li><li>Data completeness and consistency: 10%</li></ul><p>Each category receives a score from 0 to 100.</p><p><strong>Minimum execution confidence threshold: 90/100.</strong></p><p>Why 90?</p><p>A $40,000 transaction represents 40% of the treasury. Even a relatively small pricing or liquidity error can produce meaningful financial losses. A high threshold is therefore justified.</p><p>Importantly, the confidence score cannot override hard safety checks. A failed mandatory check means refusal regardless of the overall score.</p><h3>5. CONFIDENCE GATE — Decide whether to proceed</h3><p>The FlowAgent evaluates the normalized data and confidence score.</p><p>There are three possible outcomes:</p><p><strong>GREEN — Proceed to transaction preparation</strong></p><p>All mandatory checks pass, at least two independent sources agree within a 0.5% price deviation, executable liquidity is verified, and confidence is at least 90/100.</p><p><strong>YELLOW — Pause and investigate</strong></p><p>Sources disagree, data is incomplete, or confidence is between 75 and 89.</p><p>The agent requests additional data, queries more sources, or asks for human review. It does not prepare an executable transaction while uncertainty remains unresolved.</p><p><strong>RED — Refuse execution</strong></p><p>Confidence below 75, an unverified token contract, suspected manipulation, insufficient executable liquidity, or a failed safety condition.</p><p>The agent stops the workflow and explains the reason.</p><h3>6. OUTPUT &amp; EXECUTION — Prepare, never blindly execute</h3><p>If every mandatory check passes:</p><ol><li>The agent selects a verified execution route.</li><li>It simulates the transaction against current liquidity.</li><li>It checks expected output, price impact, slippage, fees, and minimum received amount.</li><li>It generates an unsigned transaction.</li><li>The user reviews and explicitly signs through their wallet.</li></ol><p>Dataline remains non-custodial. The agent never receives private keys or controls treasury funds.</p><p>If the wallet approval is not provided, the transaction is not executed.</p><h3>CONCRETE REFUSAL CONDITION</h3><p><strong>Example:</strong></p><p>After querying additional sources, the agent discovers that Source B’s lower liquidity figure reflects the actual executable pool depth, while Sources A and C report aggregated liquidity across multiple venues.</p><p>A transaction simulation reveals that buying $40,000 worth of the token would produce 2.3% price impact, exceeding the treasury’s 1% limit.</p><p>Even if the overall confidence score is 94/100, the agent MUST REFUSE execution.</p><p><strong>Reason:</strong> Verified executable liquidity is insufficient for the requested trade within the approved risk parameters.</p><p>The agent returns:</p><p>“EXECUTION REFUSED: Verified liquidity cannot support the requested transaction within the 1% price-impact limit. No transaction has been submitted. Reduce the trade size or request human review.”</p><p>It must not silently increase slippage, split the transaction into smaller trades, or bypass the risk limit.</p><h3>THE CORE PRINCIPLE</h3><p>DATA → CONTEXT → CONFIDENCE → DECISION → EXECUTION</p><p>A reliable treasury agent should not ask:</p><p>“Do I have enough data to execute?”</p><p>It should ask:</p><p>“Do I have enough verified evidence to justify executing?”</p><p><strong>When confidence is insufficient, refusing to act is the correct decision — not a system failure.</strong></p><p>That is the difference between an agent that simply executes instructions and an agent designed to protect capital.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56f7d89d4f51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[History of Terivarius]]></title>
            <link>https://dice40568.medium.com/history-of-mithraeum-80014982a9c?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/80014982a9c</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[p2e]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Sun, 18 Jun 2023 13:35:12 GMT</pubDate>
            <atom:updated>2023-07-07T07:39:27.421Z</atom:updated>
            <content:encoded><![CDATA[<p>After the destruction of Earth, humanity’s best minds found a new planet to live on, becoming the founding fathers of Terivarius.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLrhki3kTt99tuPGe0_-xw.jpeg" /></figure><p>The Terivarius became a splendor of human thought. Each city was a work of art, and the inhabitants settled according to their interests. There were cities — merchants, cities — craftsmen, cities-entertainment. Each city had its own settlements in which people lived and developed their economy.</p><p>Mindful of humanity’s mistakes, the founding fathers sought to fill each city with wealth and resources. The cities were equal and the people had no need for anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g94dVURl3c6WgTZWPaG-dw.jpeg" /></figure><p>Most people lived in happiness and harmony, but the worst manifestations of human qualities were the only thing the founding fathers failed to overcome. They created ideal conditions for life, but there were also those who were willing to rob, to not work and to use their power with the worst intentions.</p><p>Such people were few in number, but they were there. To maintain a thriving society, in each city the founders built temples — cultists — where they sent these people. The idea was simple: the bad people were isolated from each other, and for every bad person, there were 10 of the most honest and good people who surrounded him every day. They ate together, slept together, and worked in the temple. The goal was to re-educate people and get them back on track. Sometimes it worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYZxDV9vPSYO-nmx269Vrg.jpeg" /></figure><p>As the years passed, the Terivarius flourished, and people discovered more and more interests and hobbies. This is how alchemy developed. The extraordinary natural minerals and deposits of unexplored stones and metals of Terivarius attracted the attention of alchemists from all cities.</p><p>It was an amazing time of new, incredible discoveries.</p><p>Alchemy became very popular, with more and more cities of alchemists appearing every year. Millions of experiments and new scientific discoveries saw Terivarius.</p><p>Rejuvenating water, an ointment that instantly heals wounds, and many other amazing discoveries were made by alchemists. However, they believed they could do more. The effects on the physical body were only a small part of their abilities. Alchemists believed that they could destroy temples — cultists — overnight and make people better. A robber would be honest and a murderer would be righteous.</p><p>The work did not stop even at night, many became obsessed with the idea.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPaRe-Mmy2asZisnjTbdnw.png" /></figure><p>The founding fathers sincerely believed that the wizards of Terivarius, as the alchemists were nicknamed, could help people and make Terivarius even better. They allowed them to conduct experiments on cultists in the hope of a speedy “cure”.</p><p>And then one day it was found — the potion “Freedom” so called by its inventor, the best alchemist of Terivarius.</p><p>After drinking it, the cultists were instantly “cured” and returned to society. The first experiments were conducted with caution, the former cultists were carefully monitored, and only a few temples were allowed to use the potion.</p><p>However, time passed, and in the past, robbers and murderers led perfectly honest and decent lives. Once they were convinced that the potion was healing, they distributed it to all the temples.</p><p>Thousands of people filled the cities; it was a Great Feast in Terivarius, for the cultists were finally being reunited with their families.</p><p>The years went by, the temples were empty, and the Terivarius was bathed in abundance and harmony. To get rid of crime once and for all. The founders decided to give a “Freedom” potion to every newborn. The secret of the potion was revealed, now any alchemist could prepare it and exchange it for something useful for the new-born parents.</p><p>The children grew up completely normal, and it would seem that now nothing would interfere with the prosperity of Terivarius…</p><p>Thirty years later, after the invention of the “Freedom” potion, the Terivarius was once again plagued by murders and robberies. Everything happened unexpectedly. On a cold morning, a wave of brutal robberies and murders swept through the cities of Terivarius. People were unprepared for such atrocities, Terivarius had no army or warriors. For 30 years, people had forgotten what it meant to fight or defend themselves.</p><p>The situation was getting worse and worse. The number of crimes was getting higher and higher every day. People were thirsty for blood, as if the demon inside them woke up that had been sleeping soundly. The founders convened an urgent council of alchemists. The potion did not help; it only made the condition worse. The best alchemists of Terivarius tried to create a countermeasure that would stop this madness, but all was in vain.</p><p>The Terivarius was drowning in blood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TR8-8hCDDrCmjpRlVRL4vQ.jpeg" /></figure><p>People have taken to the path of war and murder to protect themselves and their loved ones, thereby creating more crime. The friendly and prosperous Terivarius turned overnight into a bloody and violent world.</p><p>The founding fathers were too old to change anything. They decided to find the creator of the Freedom Potion and seek answers from him.</p><p>They found him in the main temple - cultists. What he told them threw them into shock: “The Freedom Potion is a very delicate matter. Unfortunately, I realized it too late. When making a potion, it is very important to create it with good thoughts and intentions. The first batches of the potion were created by me, so they successfully accomplished their task. However, when you declassified the recipe, too many unscrupulous alchemists’ minds created it with lust for profit and greed, and as a result, the potion became “poisoned”. Millions of infants drank the poisoned potion, which worked gradually, year after year, poisoning their minds. Now there is no stopping them, they are not just driven by the worst of human behavior, but by the potion, and thus by the power of Terivarius.”</p><p>-What to do?</p><p>-As soon as the crimes began, I understood everything at once. Unfortunately, we cannot correct this monstrous mistake. For months now, I have been working on an absolutely horrifying thing, but it is the only thing that will help under the circumstances.</p><p>The old man went to the wall, pushed back the stone flap, behind which you could see a lever: “This is the lever of the “End of the World,” it will activate the irreversible alchemical mechanisms associated with the Terivarius. All living will perish, all cities will be wiped out, all that was created will be destroyed. This is the nullification that is needed now. However, there are only a few temples in which salvation can be found. One of them is where we are now. You must find 40 people who have not been poisoned by the potion and bring them here, they are the ones who will begin the new history of Terivarius.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZfZhgpG_YFjFVsf89MNR3A.jpeg" /></figure><p>The next few days passed in search of the right people, and when everything was ready, the founding fathers locked them in the temple and gave further instructions on how to activate the “End of the World” lever. The creator of the Freedom Potion stood beside the founders and watched as the temple door closed.</p><p>-You were supposed to be with them!</p><p>-I can’t. Alchemy has destroyed the Terivarius. This knowledge… It must be lost.</p><p>A momentary flash and the Terivarius was in darkness.</p><p>A few hours later, the doors of the main temple opened and people cautiously began to come out. Absolute emptiness. This was how the founding fathers of Terivarius had described it when they first came here. The people were unaccustomed to looking at what had once been a prosperous land. It was a terrifying sight. Suddenly, other temples began to open and people began to come out from there as well, the alchemist was right, some managed to escape in other temples and among them were still “poisoned” by the potion…</p><p>No one knows what will happen next.</p><p>Some will stay in the temples forever and become cultists. And some will create a settlement and try to revive the old prosperous land. But the “poisoned” will always want blood and war.</p><p>Only the lever of the “End of the World” will be able to stop them.</p><p>How will they all get on with their lives?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OLD9jvY6ePjkn9nFsiKcA.jpeg" /></figure><h3>It’s up to you!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80014982a9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diamond Wing Land — Just little Sidestory]]></title>
            <link>https://dice40568.medium.com/diamond-wing-land-just-little-sidestory-3a0798209d9a?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a0798209d9a</guid>
            <category><![CDATA[metaverse]]></category>
            <category><![CDATA[kanaria]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[rmrk]]></category>
            <category><![CDATA[kusama]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Mon, 25 Apr 2022 17:09:19 GMT</pubDate>
            <atom:updated>2022-04-26T02:25:49.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>Diamond Wing Land — Just little Sidestory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*IIL5Zd535LCax4vCC8xwZg.png" /></figure><p>He opened his eyes and saw an unfamiliar sky and flying Skylands.</p><p>“What happened?”</p><p>It looked like a man, middle-aged. At first glance it was hard to tell if he had gnome blood or blood from another race. He looked perfectly normal.</p><p>As he stood up, he looked around him. He was surrounded by a strange jungle, not at all tall and as if it had been cut down by someone. He staggered a few steps and collapsed exhausted. The last thing he remembered were voices. Human voices.</p><p>When he woke up again, he was sitting in a big chair and wearing clean clothes.</p><p>Opposite him sat a man whose face was partly composed of metal inserts, and under his arms flaunted a holster, as if merging with him. He looked like a robot, but he was human.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kx0HPE4btwcPctX95A0dAg.jpeg" /></figure><p>- My name is Maghaizen, I am the head of this land. You are in the territory of the Diamond Wing land and if you can’t explain to me how you got here, you will die.</p><p>But the Man was not afraid of this ultimatum and proudly looked at his interlocutor and said:</p><p>- Now I’ll tell you everything I remember. If after that you think I shouldn’t live, so be it.</p><p>He pulled the memories of Jord, of the Last Spell and the last minutes before it all happened, out of his mind with a heavy persistence.</p><p>Maghaizen listened very attentively and never interrupted once.</p><p>- Good. You passed the test. I just got your tests back on my internal memory. You’re a human being of pure blood. However, we still need to figure out how you got here.</p><p>Maghaizen was very interested in this man. After all, over decades of evolution, humans have greatly transformed and now look more like living robots.</p><p>They spent many weeks together. The Man was interested in everything and proved to be very smart. Walking in the central district, he suddenly heard the hum of a siren, which was interrupted by the noise of the activation of an electric dome above the land. It was a breathtaking sight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSWd_mCPzmx7W7tgqJT5HQ.jpeg" /></figure><p>He saw large flying beasts that looked like dragons trying in vain to penetrate the dome’s defenses. The human-like dwarves that attacked the Diamond Wing were beating on the protective dome to no avail. He did not hear Maghaizen appear behind him.</p><p>- They are orcs. Once upon a time humans mixed their blood with dwarves and began to live in caves.</p><p>- But why are you at war with them?</p><p>- It’s a long story. I came to this land when it was still just a jungle. There weren’t these technological structures and all the life support. All I remember is the fanciful red trees along the trail where water ran down, a few drops fell on me and burned my skin. It was poisonous water.</p><p>He showed some scars on his arm.</p><p>Since then I began to create life here. Later I met my friend Novak. We worked together on the sustenance of this land. But it just so happened that we fell in love with the same girl. She was a dwarves. One day he stole her and took her to another Skyland. They mixed blood, created offspring. I don’t remember who started that war anymore. But now they are orcs and they are against us. Let me show you something.</p><p>They walked into a large, bizarre building. They walked for a long time through the various corridors, constantly sinking lower and lower underground. Finally, Maghaizen opened the last door, and they entered.</p><p>The Man saw a huge mechanical structure in the center of the room. It was a mixture of technology and magic. Undoubtedly, magic was present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IR6ESirMd0-o_6vmOQCsuQ.jpeg" /></figure><p>- But you said magic was forbidden!</p><p>- Yes, but as you can see, I have some powers. It’s a time machine. I used to know a Kanaria named Diamond Wing. He was very fond of people, and we became friends. Sometimes he would share his secrets with me. This time machine we created together to make life on our land better. We had a rule not to interfere in the course of human life, only to correct the mistakes of nature. Before he died, I promised him that I would never break that rule. But the time machine doesn’t work now. It needs mana, it needs a spell, which I have no way of getting right. Usually Diamond Wing did it, and I thought I could do it again easily, but I was wrong.</p><p>Maghaizen, started pacing the room nervously. It was as if he was trying to remember him. He kept saying the same phrase over and over in a different way.</p><p>Capturing the notes and intonation of the phrase, it was as if the Man was remembering something distant, something familiar. The longer Maghaizen continued to say it, the clearer it became in the Man’s mind.</p><p>Suddenly the Man uttered this phrase, and the time machine began to play with new colors, as if the engine had started. Maghaizen looked at him in surprise. And the Man, feeling inspired, uttered another phrase.</p><p>He opened his eyes again. It was the jungle again. He looked around, trying to figure out where Maghaizen had gone, the time machine, or was it all a dream?</p><p>He was walking along a path lined with red trees. Suddenly something burned his hand, and he saw water droplets dripping from his arm, leaving scars. Exactly the same scars he’d seen on Maghaizen.</p><p>But how? Suddenly he understood everything. Maghaizen is him in the future. The man who had become the leader and founder of this land. Now he had to go through it all over again. The main question remained to be decided: to keep his word to Kanaria by allowing the war to happen again, or to intervene by keeping his friend.</p><p>Maghaizen was walking down the path toward a new or old future.</p><p>Shall we start building?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a0798209d9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons & Data — 1INCH…]]></title>
            <link>https://medium.com/covalent-hq/overview-of-covalent-api-features-solving-the-puzzle-paladin-the-part-of-dungeons-data-1inch-7ef46f7508ac?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef46f7508ac</guid>
            <category><![CDATA[covalent]]></category>
            <category><![CDATA[cryptoenglish]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[1inch]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Sun, 30 May 2021 10:21:23 GMT</pubDate>
            <atom:updated>2021-05-30T10:21:23.799Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons &amp; Data — 1INCH Network hackaton as a case study — Round 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*B_LktZgie_9UFKkw-cG0jw.gif" /></figure><p>The last round of this series of puzzles was ambiguous for me. I completed one part of the task fairly quickly, but I had to tinker with the second part.</p><p>The peculiarity of this series is that we work on the Ethereum network, where a huge amount of data has accumulated. A couple of times my computer froze and gave a critical error when processing a Covalent API request.</p><p>But I still did it, and in today’s review I will show my solution.</p><pre>Main Task <br>Find the average swap amount for swaps with ETH as the source token. Find the referrer referenced in the most swaps event.</pre><p>The task is again divided into steps, with a detailed explanation.</p><pre>Step 1: Find the average swap amount for swaps with ETH as the source token.</pre><pre>1. Find the `1inch Network v2` contract address<br>2. Find the topic hash for event `Swapped`.<br>3. Find the average swap amount for swaps with ETH as the source token (data between 24th April and 1st May) (Unit is ETH and precision is 10^-4 ).</pre><p>First of all, we find the address of 1inch Network v2, all this is easily done in the search bar <a href="https://etherscan.io/">https://etherscan.io/</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pEEabotGFj4TskvfMrq9DA.jpeg" /></figure><blockquote>Address found:</blockquote><blockquote>0x111111125434b319222CdBf8C261674aDB56F3ae</blockquote><p>Now find the Topic Hash for the “Swapped” event. To do this, use one of the Covalent API tools — Topic Calculator.</p><p>Go here <a href="https://www.covalenthq.com/docs/tools/topic-calculator">https://www.covalenthq.com/docs/tools/topic-calculator</a><br>in the search bar, enter our address from the previous step and click “Get Events”.</p><p>Just below, you will see the Topic Hash we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJWGSdsQC87pgD3EMIWihQ.jpeg" /></figure><blockquote>Copy it and save it in your notes.<br>0x76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e</blockquote><p>Now we need to collect data using the Covalent API.</p><p>Go here: <a href="https://www.covalenthq.com/docs/api/#overview">https://www.covalenthq.com/docs/api/#overview</a></p><p>and we find the familiar section <strong>Get Log events by topic hast (es).</strong></p><p>Please note that we are given a period in which to search for information. From April 24 — May 1. As in previous quests, we search for dates by blocks in the network. In the Ethereum blockchain, you can find it here: <a href="https://etherscan.io/blocks">https://etherscan.io/blocks</a></p><blockquote>I found the right blocks:</blockquote><blockquote>12299579 — April 24<br>12344944 — May 1</blockquote><p>The request in the Covalent API will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HScLKh8lxsEeciS9vMLFFA.jpeg" /></figure><p>As you can see, I used all the data that was found in the previous steps.</p><p>After copying the resulting data to Excel, I ordered it by columns and got 75,373 rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8qGaJrRPAkv5V2tSA60WQ.jpeg" /></figure><pre>Task 3, in step 1, reads:</pre><pre>Find the average swap amount for swaps with ETH as the source token (data between 24th April and 1st May) (Unit is ETH and precision is 10^-4 )</pre><p>And as usual, you had to be very careful to filter out all the conditions correctly. In this case, I had to first filter out all the swap amounts, and then make a selection only for ETH. <strong>Source Token is the SrcToken</strong> data in my table and it was impossible to ignore this condition. After a while, I finally found the right path.</p><p>First, we filter the data by the value “amount” and copy it to a separate sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7KQp79FXN-_G8X9ua-NqFQ.jpeg" /></figure><p>We get 6852 results. However, this is not all. Now we need to select from this data array the ones that were made with ETH.</p><p>To do this, filter the data in the main table by the value “src Token”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ExxnDpOuW7759DeWXCIE2w.jpeg" /></figure><p>And copy this data to a separate sheet, next to the previous ones. It should look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*ekwyKX4cEEEecA0qhCS6LA.jpeg" /></figure><p>The last step remains. You need to filter the numeric values by the ETH address. To do this, select filter by <strong>0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*A1YItOj9bZCz0FAYkMPr1w.jpeg" /></figure><p>Finally, we got the necessary data, I got 3457 lines. Now it remains to find the average value for this data. You can do it in different ways, but the easiest way is to use the AVERAGE formula.</p><p>I found this value and according to the conditions, I have to use 4 decimal places. It turned out like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*0L1pBs4PPSDA4qBhxwBVwg.jpeg" /></figure><blockquote>We found the first part.</blockquote><blockquote>25626</blockquote><pre>Step 2: Find the referrer referenced in the most swaps. 1inch offers a referral system. The referrer address is a parameter of the `Swap` event.</pre><pre>1. Find the `1inch Network v2` contract address<br>2. Find the topic hash for event `Swapped`.<br>3. Find the referrer address which appear the most between 24th April and 1st May. Enter the number of transactions which this referrer address appear.</pre><p>The second part of the code, we need to look in the same data array that we already have. Since we can see that all the data is the same, there is no need to make a new request to the Covalent API, we can work with our data in Excel.</p><p>In the second step, we need to find the referrer address that appears most often in the transaction history. To do this, we filter the data again, but this time by the value “referrer”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84da6Z6xA_fpW7ThWIhVKA.jpeg" /></figure><blockquote>If you quickly run your eyes over the first hundred data, it becomes obvious that the address <strong>0x382ffce2287252f930e1c8dc9328dac5bf282ba1</strong> appears most often in transactions.</blockquote><p>It remains to make sure of this. To do this, we search for this address throughout the document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*QWC-D_0iw3iT087KwSniIA.jpeg" /></figure><p>You need to wait a little while until the program finds all the cells with this address. As a result, I see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJqWy0ciBYVEsymVUpXJJw.jpeg" /></figure><blockquote>We found the second part of code<br>4480</blockquote><p>In the last step, we have another instruction:</p><pre>Your secret room with the next task will be unlocked at the website: https:// dnd.covalenthq.com/{ethValue}{numberOfTransactions}<br>e.g If your answer is 1.6543 and 4321 the url will be `<a href="https://dnd.covalenthq.com/165434321%60">https://dnd.covalenthq.com/165434321`</a></pre><p>And so we check our solution:</p><blockquote><a href="https://dnd.covalenthq.com/256264480">https://dnd.covalenthq.com/256264480</a></blockquote><blockquote>I always get excited when I see the secret room page open! Amazing feeling!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wo97n7yIe8u48jDaPKEb8w.jpeg" /></figure><p>At the end, you will find a simple puzzle on the knowledge of people from Covalent and 1inch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z0YmmCdzyHUMULyyAEuJZQ.jpeg" /></figure><p>You need to put the portrait and the correct inscription in front of it. If you did it correctly, the picture will turn green.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUMAG9v8mPHRjMTAkHJUxw.jpeg" /></figure><p>The page is still available, test your knowledge!</p><p>The next series of puzzles has come to an end. As always, it was very interesting and very informative!</p><p>I would like to say thank you to Covalent and 1inch for this hackathon, and also thank the author of this quest separately!</p><p>I look forward to new activities and interesting events!</p><blockquote>Friends, learn the Covalent API, this is the future of blockchain analytics!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ef46f7508ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/covalent-hq/overview-of-covalent-api-features-solving-the-puzzle-paladin-the-part-of-dungeons-data-1inch-7ef46f7508ac">Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons &amp; Data — 1INCH…</a> was originally published in <a href="https://medium.com/covalent-hq">Covalent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons & Data — 1INCH…]]></title>
            <link>https://medium.com/covalent-hq/overview-of-covalent-api-features-solving-the-puzzle-paladin-the-part-of-dungeons-data-1inch-950fe4a84bee?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/950fe4a84bee</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[covalent]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[cryptoenglish]]></category>
            <category><![CDATA[1inch]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Fri, 28 May 2021 06:21:00 GMT</pubDate>
            <atom:updated>2021-05-28T06:21:00.269Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons &amp; Data — 1INCH Network hackaton as a case study — Round 2.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQyh0C6IExWOotPyBcPq1Q.jpeg" /></figure><p><em>Hello everybody!</em></p><p><em>The next Covalent hackathon is coming to an end, which means that you are waiting for reviews of new puzzles and their solutions!</em></p><p>If you’re interested, you can check out the reviews for past rounds:</p><p>#OneMillionWallets Avalanche Wallet Puzzle Challenge:</p><p><a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-12dc44eb271?source=your_stories_page-------------------------------------">Part 1</a>.</p><p><a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-544f2b289210?source=your_stories_page-------------------------------------">Part 2</a>.</p><p><a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-e554b4427250?source=your_stories_page-------------------------------------">Part 3</a>.</p><blockquote>This time, Covalent’s partner is the most popular DEX aggregator — 1inch!</blockquote><p>I want to note that this stage also consists of three puzzles, but I have managed to solve only one so far.</p><p>I started the first one too late and didn’t have enough time to figure it all out. The second I managed to solve, though not without difficulty, and the third I have not yet started, but I will try to do it in the near future.</p><p>In general, I can note that this stage of the puzzles looks a little more complicated. In addition to working with the Covalent API, you need to connect logic and some analytics. However, this is of particular interest to me, because it is in the right hands that the Covalent API becomes particularly valuable and necessary.</p><h4>So, today’s review of the second round of Puzzle Paladin.</h4><pre>Main Task.</pre><pre>Calculate the fee percentage (weighted average) using the`DefaultFeeVoteUpdate` events on the 1inch default DAO for the month of April. Important note : We will use data from 1st April to 1st May for this puzzle.</pre><pre>Resources:</pre><pre>- [Covalent API Docs](https://www.covalenthq.com/docs/api/#overview)</pre><pre>- [1Inch Website DAO](<a href="https://app.1inch.io/#/1/dao/governance?action=stake">https://app.1inch.io/#/1/dao/governance?action=stake</a>)</pre><p>At first glance, as usual, everything looks confusing and incomprehensible. But the author of the puzzle, left us small hints in the form of steps.</p><pre>Step 1.</pre><pre>Find the 1INCH contract address that has all default DAO methods.</pre><p>Find a 1inch contract? What could be easier?</p><p>I also thought so and first looked for the address of the 1inch token, but it turned out to be the wrong solution. Once again, I was let down by inattentive reading of the task. It is not for nothing that we are told about the DAO methods in this contract and even specify a link.</p><p>By clicking on the link <a href="https://app.1inch.io/#/1/dao/governance?action=stake">https://app.1inch.io/#/1/dao/governance?action=stake</a> I carefully read the description of how it works and realized that in this case I am interested in the <strong>1 INCH liquidity protocol contract</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0CRYVBOGnhLZlbh9Pw51A.jpeg" /></figure><p>Go to <a href="https://etherscan.io/">https://etherscan.io</a> and in the search bar, we look for “1INCH liquidity protocol”. Everything is very fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNs_FsHsRUo5W66Jp2FrIA.jpeg" /></figure><p>When I got to the right page, I finally managed the first step.</p><blockquote>Contract address: 0xbAF9A5d4b0052359326A6CDAb54BABAa3a3A9643</blockquote><pre>Step 2</pre><pre>Get all the <strong>DefaultFeeVoteUpdate</strong> events using the contract address from step 1. These are events which happen when someone votes for a fee percentage to apply to a swap. Most of the calls are made when a user stakes/unstakes.</pre><pre>Note the following:</pre><pre>The amount parameter corresponds to the new amount staked by a user. And the `fee` parameter is the fee percentage that the user votes for.So for example, on an `Unstake` transaction where the user completely removes all the previously staked tokens, the `amount` parameter will be 0 because the user doesn’t have any tokens.The fee percentage is a weighted average of the `fee` parameter with `amount` as weight.</pre><pre>Using only the `<strong>DefaultFeeVoteUpdate</strong>` events during April, calculate the weighted average of the fee percentage. To do this, multiply the ‘amount’ * ‘fee percentage’ and sum that across all events. Divide that by the sum of all amounts and you will have your answer.</pre><p>This is the main step in which we have to do all the basic work. First of all, we need to understand <strong>which class of endpoints we will use</strong>. Based on the fact that in the second step, we need to make a selection by contract events, it is logical to assume that we will need to use <strong>Get Log events by topic hash(es)</strong>.</p><p>If you’ve read my previous reviews, you’ll understand why. In short, each operation has its own class or event, which is denoted by a unique <strong>Topic Hash</strong>. That’s right, using the Covalent API, we can easily make a selection for specific events.</p><p>In the second step, we have the name of the event — <strong>Default Fee Vote Update</strong>. And then the Covalent API functionality comes to our aid again. Under the Get Log events by topic hast(es) subsection, we see a link to a <a href="https://www.covalenthq.com/docs/tools/topic-calculator">calculator</a> that will easily show us all the events for any contract.</p><p>Go to: <a href="https://www.covalenthq.com/docs/tools/topic-calculator">https://www.covalenthq.com/docs/tools/topic-calculator</a><br>Enter our contract address and click “ Get Events»</p><p>We find the Topic Hash we need called “Default Free Vote Update” and copy the address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JV5FASZGlWJIVTFLEPWxA.jpeg" /></figure><blockquote>Now we have a Topic Hash 0x28eed64d01e23014333abef902958309592b3cf9ce9da390f224467cfcaaf5b2</blockquote><p>And we can make a Covalent API call.</p><p>In previous reviews, I’ve covered every tab in the Get Log events by topic hast(es) section in detail, so there’s nothing new here. However, we must remember that by the condition we are looking for information in the period from April 1 to May 1, so we need to find the blocks corresponding to these dates.</p><p>You can find this information here: <a href="https://etherscan.io/blocks">https://etherscan.io/blocks</a></p><p>In previous quests, we have already found blocks for these dates, so you can use the old data.</p><blockquote>12150245 — April 1<br>12344944 — May 1</blockquote><p>So our query will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_csJuf8RG-Ko7mubchGazA.jpeg" /></figure><p>Copy the data to Excel and arrange them in columns. I got a large array of data on 7906 lines, which looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FHYDwIWpFlZF9QLz6LwYQ.png" /></figure><p>I admit, after that, I couldn’t figure out what to do next for a while. It would seem that everything is written in the task, but I did not immediately realize that first I need to sort all the data from the “Fee” and “Amount” columns.</p><p>Thanks to the alchemist @sergey|Alchemist#4069 I finally found the right path!</p><p>First I sorted the “Fee” data and copied it to a separate sheet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmPOiccmHvEp4gUKjrBWYQ.jpeg" /></figure><p>I did the same for “Amount”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2s2-iZySw8eEOFPQkYJbRw.jpeg" /></figure><p>After that, follow the instructions from step 2. Namely, we multiply this data array for all values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5D_nbFVhBa0KSKBwJSex8g.jpeg" /></figure><p>There’s not much left. To find the weighted average value of the commission percentage, the resulting amount of “Fee*Amount” is divided by the amount of “Amount”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lb5vofBYa3B8g542dZEcuA.jpeg" /></figure><p>After I found this value, I was completely unsure if I had done everything right.</p><blockquote>1,981503272371830000000000000</blockquote><p>We have one last step left.</p><pre>Step 3.<br>Once you have calculated the fee percentage, copy the first 6 decimal places.Your secret room with the next task will be unlocked at the website: https:// dnd.covalenthq.com/{6decimalplaces} e.g If your answer is 0.654321 the url will be `<a href="https://dnd.covalenthq.com/654321%60">https://dnd.covalenthq.com/654321`</a></pre><p>I tried to use the numbers 981503 as stated in the task, but the page was not found. Thanks to my experience in quests, I know that sometimes it is worth playing with the numbers found, sometimes the answer can be very close. In the end, I tried the numbers 198150 and HOORAY! I did it!</p><blockquote>Correct link:<br><a href="https://dnd.covalenthq.com/198150">https://dnd.covalenthq.com/198150</a></blockquote><p>It’s probably because of these huge numbers that were converted as a result of copying to Excel.</p><p><strong>Well, I’m back in the secret room!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVh5cEbZyWIV-jtDuchoqQ.jpeg" /></figure><p>And this time I was waiting for a crossword puzzle on the knowledge of the Covalent and 1inch projects.</p><p>The crossword puzzle was very interesting and I had to Google the answers to some questions, but in the end I managed it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gOKaBFVb__sUSweBcFTjg.jpeg" /></figure><blockquote>I saw the cherished inscription again!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2R5vzEGZzOmuj4-bWgAG7Q.jpeg" /></figure><p>The link is still available, test your knowledge!</p><p>Perhaps, this was the most difficult quest of all the past ones. After all, this time, in addition to collecting data, it was necessary to sort them and perform small calculations.</p><p>But it is this ultimate difficulty that makes this quest so interesting!</p><blockquote>Learn the Covalent API, it’s very entertaining!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=950fe4a84bee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/covalent-hq/overview-of-covalent-api-features-solving-the-puzzle-paladin-the-part-of-dungeons-data-1inch-950fe4a84bee">Overview of Covalent API features: Solving the Puzzle Paladin -the part of Dungeons &amp; Data — 1INCH…</a> was originally published in <a href="https://medium.com/covalent-hq">Covalent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge.]]></title>
            <link>https://medium.com/covalent-hq/%D0%BE%D0%B1%D0%B7%D0%BE%D1%80-%D0%B2%D0%BE%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82%D0%B5%D0%B9-covalent-%D0%BD%D0%B0-%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%B5-avalanche-%D0%B2-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%BD%D0%BE%D0%BC-%D0%BA%D0%B2%D0%B5%D1%81%D1%82%D0%B5-wallet-puzzle-challenge-f49103f0a825?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f49103f0a825</guid>
            <category><![CDATA[инвестиции]]></category>
            <category><![CDATA[криптовалюты]]></category>
            <category><![CDATA[блокчейн]]></category>
            <category><![CDATA[covalent]]></category>
            <category><![CDATA[avalanche]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 16:05:53 GMT</pubDate>
            <atom:updated>2021-04-29T16:05:53.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge. Часть 3.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1gobqBOIzW3b6hbo4b3wA.jpeg" /></figure><p><em>Сегодня я разберу заключительную, третью часть квеста Wallet Puzzle Challenge и подведу личные итоги этого соревнования!</em></p><p><em>Третий раунд был самым легким и быстрым для меня. Я думаю мне понадобилось не больше 20 минут, чтобы пройти квест целиком. Хоть я и не пытался решить это на время, но тем ни менее приятно чувствовать себя уверенно.</em></p><p><em>Начнем разбор.</em></p><p>В этом квесте, автор даёт нам шаги, пройдя которые мы сможем найти правильную ссылку к секретной комнате.</p><pre>Шаг 1. </pre><pre>Найдите адрес контракта (0xabc…) токена CryptoSeal (SEAL) NFT в сети Avalanche C-Chain.</pre><p>Найти контракт в сети Avalanche C-Chain? Что может быть проще, ведь я уже профессионал по поиску контрактов в этой сети. Переходим: <a href="https://cchain.explorer.avax.network/">https://cchain.explorer.avax.network/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v6GuoF2crZ7PsPR3Za4v8A.jpeg" /></figure><blockquote>Наш контракт</blockquote><blockquote><strong>0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9</strong></blockquote><pre>Шаг 2. </pre><pre>Определите token_id этого токена <a href="https://www.cryptoseals.art/seal/2514">NFT</a>. Это значение понадобится вам для создания URL-адреса секретной комнаты.</pre><p>Это очень важный шаг, т.к. результат понадобится для вхождения в секретную комнату.</p><p>После того, как я перешел по ссылке. Я оказался на странице, которая абсолютно четко даёт понять, о том, что если хочешь получить информацию дальше, необходимо подключиться к сети C-Chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SuaZTInN1WHsiw0aRmyCQ.jpeg" /></figure><p>Что ж, выхода нет, пришлось искать инструкцию по подключению к сети C-Chain в метамаск. Синяя надпись — ссылка на твит - инструкция. Вот прямая ссылка — <a href="https://tradingtoolcrypto.medium.com/how-to-use-metamask-with-avalanche-avax-e5db94d749b">https://tradingtoolcrypto.medium.com/how-to-use-metamask-with-avalanche-avax-e5db94d749b</a></p><p>После этого у меня открылась страница с нужной информацией.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4scABaCGLGkFXQYf3nFTQ.jpeg" /></figure><p>Итак, у нас есть первая часть загадки.</p><blockquote>token_id — 2514</blockquote><p>Согласитесь, это все довольно просто.</p><pre>Шаг 3. </pre><pre>Определите высоту блока, когда NFT с шага 2 был передан текущему владельцу.</pre><p>Итак, как же найти этот блок?</p><p>Ну для начала логично, что нам нужно найти эту транзакцию, где токен был передан последнему владельцу. Соответственно нам нужно найти все транзакции для этого токена и посмотреть последнюю передачу. Я зашел в эксплорер, пытался как-то «поиграть» с поиском, но все было безуспешно.</p><p>Внезапно, до меня дошел один вариант.</p><p>У нас есть адрес контракта, который мы нашли на 1 шаге. Перейдя на страницу контракта, мы видим примерно такое.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9lgaOf_ZL3JgFQHdjWvjA.jpeg" /></figure><p>Однако, если присмотреться повнимательнее, то снизу мы можем увидеть транзакции для определенных TokenID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVJuNhpHHA7_c77o7li36w.jpeg" /></figure><p>Я нажимаю на номер любого TokenID и у меня открывается окно с транзакцией для этого токена.</p><p>Допустим я выбрал TokenID 4583. Однако нам ведь нужен другой. Для этого, я меняю в браузерной строке номер 4583 на нужный нам 2514 и теперь мы видим транзакции для нужного нам токена.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhxS-wL2oItaxDEj6iv5Yw.jpeg" /></figure><p>Вот прямая ссылка на транзакции токена:</p><p><a href="https://cchain.explorer.avax.network/tokens/0x0540e4ee0c5cdba347c2f0e011acf8651bb70eb9/instance/2514/token-transfers">https://cchain.explorer.avax.network/tokens/0x0540e4ee0c5cdba347c2f0e011acf8651bb70eb9/instance/2514/token-transfers</a></p><p>Как видите, там всего одна транзакция на высоте блока:</p><blockquote>#717770</blockquote><pre>Шаг 4. </pre><pre>NFT можно продавать на рынках, при этом происходит специальное событие, запускаемое смарт-контрактом. В случае CryptoSeals событие, возникающее при размещении NFT на рынке для продажи, называется “ForSale”, которое имеет определенный Топик Хэш. Найдите количество CryptoSeal NFT, которые были размещены на рынке для продажи между высотой блока, выбранной на шаге 3, до 1 апреля 2021 года 0:00 утра по UTC. Вам понадобится это значение, nfts_for_sale, чтобы создать URL-адрес.</pre><p>Начинается веселье! На этом шаге, мы снова возвращаемся к интерфейсу Covalent API, где и будут проходить главные события!</p><p>Прочитав задание несколько раз, я понял, что здесь нам вновь придется искать данные по Топик Хэшу.</p><blockquote>Благодаря опыту прошлого раунда, сделать это было довольно просто.</blockquote><p>В первую очередь мне необходимо найти, Топик Хэш, который соответствует транзакции «For Sale». Все это я делал в предыдущем раунде.</p><p>Здесь вы можете найти обзор на второй раунд:</p><p><a href="https://link.medium.com/IW35MWqUIfb">Обзор возможностей Covalent на примере Avalanche в совместном квесте - Wallet Puzzle Challenge.</a></p><p>Я перехожу на страницу контракта с логами: <a href="https://cchain.explorer.avax.network/address/0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9/logs">https://cchain.explorer.avax.network/address/0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9/logs</a></p><p>И ищу нужный Топик Хэш.</p><p>Я нашел пару транзакций, убедился, что они входят в категорию «For Sale» и вижу их общий Топик Хэш:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F9swrnxJAKdh7n2JSbNoXw.jpeg" /></figure><blockquote>0x454a59b1e51b1685e697faeca2a404382f4dcb9970aece78299147857e150393</blockquote><p>Теперь у нас есть все данные, для запроса в Covalent API.</p><p>Переходим в знакомый раздел <a href="https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/"><strong>Get Log events by topic hash(es)</strong></a>, на странице Covalent API:</p><p><a href="https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/">https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/</a></p><p>И вводим данные.</p><p>Я не буду расписывать каждую вкладку, все это мы уже проходили в прошлых раундах. Если вы читаете об этом впервые, вернитесь к предыдущим обзорам.</p><p>Round 1: <a href="https://link.medium.com/GX7cyvT5Cfb">https://link.medium.com/GX7cyvT5Cfb</a></p><p>Round 2: <a href="https://link.medium.com/IW35MWqUIfb">https://link.medium.com/IW35MWqUIfb</a></p><blockquote>Отмечу только, то что во вкладке <strong>sender address</strong> мы впишем адрес контракта SEAL: <strong>0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9</strong></blockquote><blockquote><strong>starting-block </strong>— по условию, блок, который мы нашли на шаге 3, то есть<strong> #717770</strong></blockquote><blockquote><strong>ending-block </strong>— <strong>April 1, 2021 0:00AM UTC</strong>. Этот блок также можно найти в эксплорере. И этот шаг, также описан в прошлом раунде, то есть <strong>#875518</strong></blockquote><p><a href="https://avascan.info/blockchain/c/block/875518">https://avascan.info/blockchain/c/block/875518</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4JFu0L7gK5W_k94TfwydQ.jpeg" /></figure><p>В результате, мой запрос выглядит следующим образом:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFmL32vK6OMFk8yPQaaRSA.jpeg" /></figure><p>Я скопировал данные в Excel и получил следующий результат:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dryaEbWiAycs2IaAZ6nRuw.jpeg" /></figure><p>Я получил 4487 строчек, однако 1 строчка — это описание позиций. Поэтому, у нас 4486 операций. Благодаря тому, что запрос сразу подразумевал поиск конечного результата, нам не нужно делать здесь дальнейшую выборку. Мы нашли верное число.</p><blockquote>4486</blockquote><pre>Шаг 5.</pre><pre>При покупке NFT генерируется событие “Bought”, которое имеет свой собственный Топик Хэш. На этом шаге найдите количество CryptoSeal NFT, которые были куплены между высотой блока, полученной на шаге 3, до 1 апреля 2021 года в 0:00 по UTC. Вам понадобится значение, nfts_bought, чтобы найти URL-адрес.</pre><p>Думаю, вы догадались, что этот шаг идентичен предыдущему, нужно лишь поменять Топик Хэш. Находим Топик Хэш для события «Bought». Пришлось немного поискать в логах, но в итоге я нашел.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RNDGcNjfAevltP3FWTcvA.jpeg" /></figure><blockquote>0x3ccb2ab6980b218b1dd4974b07365cd90a191e170c611da46262fecc208bd661</blockquote><p>Теперь необходимо вновь сделать запрос к Covalent API. Все как в прошлый раз, меняем лишь Топик Хэш.</p><p>Результат копируем в Excel. Как видно ниже, у нас 543 строчки. Убираем верхнюю с описанием и получаем 542 строчки, а значит 542 транзакции, которые удовлетворяют условиям задачи.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHyq-djfUHU6HjUEsYcwiA.jpeg" /></figure><blockquote>Найденное число</blockquote><blockquote>542</blockquote><pre>Шаг 6. </pre><pre>В том же диапазоне блоков, что и на последнем шаге, определите адрес кошелька последнего покупателя CryptoSeal (т. Е. NFT, купленный ближе всего к 1 апреля 2021 года в 0:00 по UTC). Вам понадобится значение, buyer_address, чтобы найти URL-адрес.</pre><p>Теперь нам необходимо покопаться в последней транзакции, чтобы найти адрес последнего покупателя. Я изучил последнюю транзакцию, но там не оказалось адреса, однако там оказался Хэш транзакции.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsvrcM0t3NNABaHGuq1Gsw.jpeg" /></figure><p>Как же это все удобно и быстро! Зная хэш, транзакцию найти не сложно.</p><p>Забив в поисковую строку номер хэша, мы получаем транзакцию с нужной информацией.</p><p><a href="https://cchain.explorer.avax.network/tx/0xbd7658c64fa894e0fa00872fdecec785ab9dabb4b3b5a27a9f831cea41add0c7/token-transfers">https://cchain.explorer.avax.network/tx/0xbd7658c64fa894e0fa00872fdecec785ab9dabb4b3b5a27a9f831cea41add0c7/token-transfers</a></p><p>В самом конце можно увидеть детали, а именно на какой адрес был отправлен токен.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Isr21WrUh8IGqZnEzs_RmQ.jpeg" /></figure><blockquote>В результате получаем нужный адрес:</blockquote><blockquote>0x8De3990D94691CaB1DE6EC00142D9aA2415D41EC</blockquote><pre>Шаг 7. </pre><pre>Собрав все ваши данные вместе, ваша секретная комната со следующим заданием будет разблокирована на веб-сайте: <a href="http://www.onemillionwallets.com/%7Btoken_id%7D-%7Bnfts_for_sale%7D-%7Bnfts_bought%7D-%7Bbuyer_address">www.onemillionwallets.com/{token_id}-{nfts_for_sale}-{nfts_bought}-{buyer_address</a>}</pre><pre>Например, если у вас есть:</pre><pre>token_id с шага 2: 1 </pre><pre>nfts_for_sale с шага 4: 100</pre><pre>nfts_bought с шага 5: 100</pre><pre>buyer_address с шага 6: 0xc43ee4634Aed3796971ccE43e64b696D4de4ca83</pre><pre>Тогда ваш URL будет:</pre><pre><a href="http://www.onemillionwallets.com/1-100-100-0xc43ee4634Aed3796971ccE43e64b696D4de4ca83">www.onemillionwallets.com/1-100-100-0xc43ee4634Aed3796971ccE43e64b696D4de4ca83</a></pre><p>По сути это просто полное описание, в какой последовательности и как, мы должны использовать найденные значения, чтобы получилась правильная ссылка тайной комнаты. Что же получилось у нас:</p><blockquote>token_id из шага 2: 2514</blockquote><blockquote>nfts_for_sale из шага 4: 4486</blockquote><blockquote>nfts_bought из шага 5: 542</blockquote><blockquote>buyer_address из шага 6: 0x8de3990d94691cab1de6ec00142d9aa2415d41ec</blockquote><blockquote>В итоге получаем нашу ссылку:</blockquote><blockquote><a href="http://www.onemillionwallets.com/2514-4486-542-0x8de3990d94691cab1de6ec00142d9aa2415d41ec">www.onemillionwallets.com/2514-4486-542-0x8de3990d94691cab1de6ec00142d9aa2415d41ec</a></blockquote><blockquote>Дааа!</blockquote><blockquote>Я сделал это в третий раз!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTRIlDZOCwcf47C7B29ctw.jpeg" /></figure><p>Была особая радость, потому что в этот раунде, все получилось без подсказок и с первого раза.</p><p>В секретной комнате, меня ждал интересный паззл!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJyBvLtHEyTPPevhgsErDA.jpeg" /></figure><p>Комната, все еще доступна, и вы можете попробовать собрать его!</p><p>А вот что получилось в самом конце:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jDreVakyrUMOnlts7Mxlw.jpeg" /></figure><p>С последним паззлом закончилась, и эта удивительная, крутая и познавательная серия квестов!</p><p>Мой твит:</p><p><a href="https://twitter.com/Raptor2799/status/1383308473962668044">https://twitter.com/Raptor2799/status/1383308473962668044</a></p><p>Поставьте лайк и сделайте ретвит! Ведь это было действительно классно!</p><p>В завершении, хочется сказать о том, что я участвовал в этой серии не из-за призов и наград. На сегодня уже объявлены результаты и мне удалось выиграть $100, чему я конечно рад, но главное для меня было не это!</p><p>Я принял участие, потому что люблю и знаю Avalanche. Я принял участие, потому что вижу в Covalent огромный потенциал, который сложно оценить в полной мере. Мне очень хотелось стать частью этой истории и изнутри попробовать продукт под названием Covalent API.</p><p>Хочу вас уверить, друзья, в этом нет ничего сложного. Я решил написать этот обзор, потому что хочу через несколько лет, глядя на Covalent в TOP 10 маркет кап, вспоминать с чего все начиналось!</p><p>Спасибо, если прочитали до конца!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f49103f0a825" width="1" height="1" alt=""><hr><p><a href="https://medium.com/covalent-hq/%D0%BE%D0%B1%D0%B7%D0%BE%D1%80-%D0%B2%D0%BE%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82%D0%B5%D0%B9-covalent-%D0%BD%D0%B0-%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%B5-avalanche-%D0%B2-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%BD%D0%BE%D0%BC-%D0%BA%D0%B2%D0%B5%D1%81%D1%82%D0%B5-wallet-puzzle-challenge-f49103f0a825">Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge.</a> was originally published in <a href="https://medium.com/covalent-hq">Covalent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview of Covalent features on the example of Avalanche in a joint quest — Wallet Puzzle…]]></title>
            <link>https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-e554b4427250?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e554b4427250</guid>
            <category><![CDATA[avalanche]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[covalent]]></category>
            <category><![CDATA[cryptoenglish]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 15:07:11 GMT</pubDate>
            <atom:updated>2021-05-12T15:37:07.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview of Covalent API features: Solving the #OneMillionWallets Avalanche Wallet Puzzle Challenge as a case study— Part 3.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1gobqBOIzW3b6hbo4b3wA.jpeg" /></figure><p><em>Today I will analyze the final, third part of the Wallet Puzzle Challenge quest and sum up the personal results of this competition!</em></p><blockquote>Read <a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-12dc44eb271">Part 1</a> and <a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-544f2b289210">Part 2</a>.</blockquote><p><em>The third round was the easiest and fastest for me. I think it took me no more than 20 minutes to complete the entire quest. Although I did not try to do it quickly, nevertheless it is nice to feel confident.</em></p><p><em>Let’s start the analysis.</em></p><h4><a href="https://replit.com/@OMWAvalanche/Problem-Wallet-Puzzle-Challenge-Round-3#README.md">The Wallet Puzzle Challenge 3</a>.</h4><p>In this quest, the Wallet challenge gives us the steps by which we can find the correct link to the secret room.</p><pre>Step 1.</pre><pre>Find the contract address (0xabc…) of the CryptoSeal (SEAL) NFT token on the Avalanche C-Chain.</pre><p>Find a contract on the Avalanche C-Chain network? What could be easier, because I am already a professional in finding contracts in this network. Click on the link: <a href="https://cchain.explorer.avax.network/">https://cchain.explorer.avax.network/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v6GuoF2crZ7PsPR3Za4v8A.jpeg" /></figure><blockquote>Our contract <strong>0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9</strong></blockquote><pre>Step 2. </pre><pre>Determine the token_id of this <a href="https://www.cryptoseals.art/seal/2514">NFT</a> token. You will need this value to build the secret room URL.</pre><p>This is a very important step because you will need the result to enter the secret room.</p><p>After I clicked on the link. I found myself on a page that makes it absolutely clear that if you want to get further information, you need to connect to the C-Chain network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SuaZTInN1WHsiw0aRmyCQ.jpeg" /></figure><p>Well, there is no way out, I had to look for instructions on connecting to the C-Chain network using Metamask.</p><p>The blue writing is a link to the tweet — instructions. Here is the direct link -<a href="https://tradingtoolcrypto.medium.com/how-to-use-metamask-with-avalanche-avax-e5db94d749b">https://tradingtoolcrypto.medium.com/how-to-use-metamask-with-avalanche-avax-e5db94d749b</a></p><p>After that, I opened a page with the necessary information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R4scABaCGLGkFXQYf3nFTQ.jpeg" /></figure><p>So, we have the first part of the puzzle.</p><blockquote>token_id — 2514</blockquote><p>Agree, it’s all quite simple.</p><pre>Step 3. </pre><pre>Determine the block_height when the NFT from step 2 was transferred to the current owner.</pre><p>So, how do I find this block?</p><p>Well, to begin with, it makes sense that we need to find this transaction where the token was transferred to the last owner. Accordingly, we need to find all transactions for this token and see the last transfer. I went to the explorer, tried to somehow “play” with the search, but everything was unsuccessful.</p><p>Suddenly, I had an idea!</p><p>We have the contract address that we found in step 1. Going to the contract page, we see something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9lgaOf_ZL3JgFQHdjWvjA.jpeg" /></figure><p>However, if we look more closely, we can see transactions for certain TokenID from below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVJuNhpHHA7_c77o7li36w.jpeg" /></figure><p>I click on the number of any TokenID and a window opens with a transaction for that token.</p><p>Let’s say I chose TokenID 4583. However, we need another. To do this, I change the number 4583 in the browser line to the 2514 which we need in this instance, and now we see the transactions for the token we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhxS-wL2oItaxDEj6iv5Yw.jpeg" /></figure><p>Here is a direct link to the token transactions: <a href="https://cchain.explorer.avax.network/tokens/0x0540e4ee0c5cdba347c2f0e011acf8651bb70eb9/instance/2514/token-transfers">https://cchain.explorer.avax.network/tokens/0x0540e4ee0c5cdba347c2f0e011acf8651bb70eb9/instance/2514/token-transfers</a></p><p>As you can see, there is only one transaction at the block height:</p><blockquote>#717770</blockquote><pre>Step 4. </pre><pre>NFTs can be sold in marketplaces and when doing so,there is a special event emitted by the smart contract. In the case of CryptoSeals, the event emitted when placing an NFT in their marketplace for sale is called ForSale which has a specific topic hash. Find the number of NFT CryptoSeal NFTs which have been placed in the marketplace ForSale between the block_height fetched in step 3 until April 1, 2021 0:00AM UTC. You will need this value, nfts_for_sale to build your URL.</pre><p>The fun begins! At this step, we return to the Covalent API interface, where the main events will take place!</p><p>After reading the task several times, I realized that here we will again have to search for data on the Topic Hash.</p><blockquote>Thanks to the experience of the last round, it was quite easy to do this.</blockquote><p>First of all, I need to find the Topic Hash that corresponds to the transaction “For sale”. I did all this in the previous round.</p><p>Here you can find an overview of the second round: <a href="https://dice40568.medium.com/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-544f2b289210">https://dice40568.medium.com/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-544f2b289210</a></p><p>I then proceed to the contract page with the logs: <a href="https://cchain.explorer.avax.network/address/0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9/logs">https://cchain.explorer.avax.network/address/0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9/logs</a></p><p>And I’m looking for the right Topic Hash.</p><p>I found a couple of transactions, made sure that they are included in the “For Sale” category and see their general Topic Hash:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F9swrnxJAKdh7n2JSbNoXw.jpeg" /></figure><blockquote>0x454a59b1e51b1685e697faeca2a404382f4dcb9970aece78299147857e150393</blockquote><p>Now we have all the data to request in the Covalent API.</p><p>Go to the familiar section <a href="https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/"><strong><em>Get Log events by topic hash(es)</em></strong></a>, on the Covalent API page: <a href="https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/">https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/</a></p><p>And enter the data.</p><p>I will not describe each tab, we have already gone through all this in the previous rounds. If you are reading about this for the first time, go back to the previous reviews.</p><p>Round 1: <a href="https://link.medium.com/8yU1RY55Cfb">https://link.medium.com/8yU1RY55Cfb</a></p><p>Round 2: <a href="https://link.medium.com/7ogRD99OIfb">https://link.medium.com/7ogRD99OIfb</a></p><blockquote>I will only note that in the <strong>sender address</strong> tab, we will enter the address of the SEAL contract: <strong>0x0540E4EE0C5CdBA347C2f0E011ACF8651bB70Eb9</strong></blockquote><blockquote><strong>starting block </strong>— by condition, the block that we found in step 3, i.e. <strong>#717770</strong></blockquote><blockquote><strong>ending-block </strong>— <strong>April 1, 2021 0:00AM UTC</strong>. This block can also be found in the explorer. And this step is also described in the last round, i.e. <strong>#875518</strong></blockquote><p><a href="https://avascan.info/blockchain/c/block/875518">https://avascan.info/blockchain/c/block/875518</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4JFu0L7gK5W_k94TfwydQ.jpeg" /></figure><p>As a result, my query looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFmL32vK6OMFk8yPQaaRSA.jpeg" /></figure><p>I copied the data to Excel and got the following result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dryaEbWiAycs2IaAZ6nRuw.jpeg" /></figure><p>I got 4487 lines, but 1 line is a description of the positions. Therefore, we have 4486 operations. Due to the fact that the query immediately implied a search for the final result, we do not need to make a further selection here. We found the right number.</p><blockquote>4486</blockquote><pre>Step 5. </pre><pre>When an NFT is bought, a Bought event is emitted,which has its own specific topic hash. For this step, find the number of CryptoSeal NFTs which have been bought between the block_height fetched in step 3 until April 1, 2021 0:00AM UTC. You will need this value, nfts_bought to build your URL.</pre><p>I think you guessed that this step is identical to the previous one, you just need to change the Topic Hash. Finding the Topic Hash for the “Bought” event. I had to search a little in the logs, but in the end, I found it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RNDGcNjfAevltP3FWTcvA.jpeg" /></figure><blockquote>0x3ccb2ab6980b218b1dd4974b07365cd90a191e170c611da46262fecc208bd661</blockquote><p>Now you need to make a request to the Covalent API again. Everything is the same as last time, we only change the Topic Hash.</p><p>The result is copied to Excel. As you can see below, we have 543 lines. We remove the top one with the description and get 542 lines, which means 542 transactions that meet the conditions of the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHyq-djfUHU6HjUEsYcwiA.jpeg" /></figure><blockquote>The found number is<br>542</blockquote><pre>Step 6. </pre><pre>Within the same block range as the latest step, determine the wallet address of the last buyer of a CryptoSeal (i.e the NFT purchased closest to April 1, 2021 0:00AM UTC). You will need this value, buyer_address to build your URL.</pre><p>Now we need to dig into the last transaction to find the address of the last buyer. I looked at the last transaction, but there was no address, but there was a Hash of the transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FsvrcM0t3NNABaHGuq1Gsw.jpeg" /></figure><p>How convenient and fast it all is! Knowing the hash, the transaction is not difficult to find.</p><p>By entering the Hash number in the search bar, we get a transaction with the necessary information.</p><p><a href="https://cchain.explorer.avax.network/tx/0xbd7658c64fa894e0fa00872fdecec785ab9dabb4b3b5a27a9f831cea41add0c7/token-transfers">https://cchain.explorer.avax.network/tx/0xbd7658c64fa894e0fa00872fdecec785ab9dabb4b3b5a27a9f831cea41add0c7/token-transfers</a></p><p>At the very end, you can see the details, namely, to which address the token was sent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Isr21WrUh8IGqZnEzs_RmQ.jpeg" /></figure><blockquote>As a result, we get the desired address:<br>0x8De3990D94691CaB1DE6EC00142D9aA2415D41EC</blockquote><pre>Step 7.</pre><pre>Putting all your values together, your secret room with the next task will be unlocked at the website: <a href="http://www.onemillionwallets.com/%7Btoken_id%7D-%7Bnfts_for_sale%7D-%7Bnfts_bought%7D-%7Bbuyer_address%7D">www.onemillionwallets.com/{token_id}-{nfts_for_sale}-{nfts_bought}-{buyer_address}</a></pre><pre>For example, if you have:</pre><pre>token_id from step 2: 1</pre><pre>nfts_for_sale from step 4: 100</pre><pre>nfts_bought from step 5: 100</pre><pre>buyer_address from step 6: 0xc43ee4634Aed3796971ccE43e64b696D4de4ca83</pre><pre>Then your URL will be:</pre><pre><a href="http://www.onemillionwallets.com/1-100-100-0xc43ee4634Aed3796971ccE43e64b696D4de4ca83">www.onemillionwallets.com/1-100-100-0xc43ee4634Aed3796971ccE43e64b696D4de4ca83</a></pre><p>In fact, this is just a complete description, in what order and how we should use the found values to get the correct link of the secret room.</p><p>What we have:</p><blockquote>token_id from step 2: 2514</blockquote><blockquote>nfts_for_sale from step 4: 4486</blockquote><blockquote>nfts_bought from step 5: 542</blockquote><blockquote>buyer_address from step 6: 0x8de3990d94691cab1de6ec00142d9aa2415d41ec</blockquote><blockquote>As a result, we get our link:</blockquote><blockquote><a href="http://www.onemillionwallets.com/2514-4486-542-0x8de3990d94691cab1de6ec00142d9aa2415d41ec">www.onemillionwallets.com/2514-4486-542-0x8de3990d94691cab1de6ec00142d9aa2415d41ec</a></blockquote><blockquote>Yeah!</blockquote><blockquote>I did it for the third time!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTRIlDZOCwcf47C7B29ctw.jpeg" /></figure><p>There was a special joy, because in this round, everything turned out without hints and from the first time.</p><p>In the secret room, I was waiting for an interesting puzzle!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJyBvLtHEyTPPevhgsErDA.jpeg" /></figure><p>The room is still available, and you can try to collect it!</p><p>And here’s what happened at the very end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jDreVakyrUMOnlts7Mxlw.jpeg" /></figure><p>With the last puzzle, over and this amazing, cool and informative series of quests is over!</p><p>My tweet: <a href="https://twitter.com/Raptor2799/status/1383308473962668044">https://twitter.com/Raptor2799/status/1383308473962668044</a></p><p>Please like and retweet! It was really cool!</p><p>In conclusion, I would like to say that I participated in this series, not because of the prizes and awards. For today, the results have already been announced and I managed to win $100, which I am certainly happy about, but the main thing for me was not this!</p><p>I took part because I love and know Avalanche. I took part because I see a huge potential in Covalent, which is difficult to fully assess. I really wanted to be a part of this story and try out a product called Covalent API from the inside.</p><p>I want to assure you, friends, there is nothing complicated in this. I decided to write this review, because in a few years, looking at Covalent in the TOP 10 market cap, I want to remember where it all started!</p><p>Thank you if you read it to the end!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e554b4427250" width="1" height="1" alt=""><hr><p><a href="https://medium.com/covalent-hq/overview-of-covalent-features-on-the-example-of-avalanche-in-a-joint-quest-wallet-puzzle-e554b4427250">Overview of Covalent features on the example of Avalanche in a joint quest — Wallet Puzzle…</a> was originally published in <a href="https://medium.com/covalent-hq">Covalent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge.]]></title>
            <link>https://medium.com/covalent-hq/%D0%BE%D0%B1%D0%B7%D0%BE%D1%80-%D0%B2%D0%BE%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82%D0%B5%D0%B9-covalent-%D0%BD%D0%B0-%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%B5-avalanche-%D0%B2-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%BD%D0%BE%D0%BC-%D0%BA%D0%B2%D0%B5%D1%81%D1%82%D0%B5-wallet-puzzle-challenge-e87fb5db3daa?source=rss-2c431b813aa0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e87fb5db3daa</guid>
            <category><![CDATA[криптовалюты]]></category>
            <category><![CDATA[covalentalchemist]]></category>
            <category><![CDATA[avalanche]]></category>
            <category><![CDATA[covalent]]></category>
            <category><![CDATA[блокчейн]]></category>
            <dc:creator><![CDATA[Jason Win]]></dc:creator>
            <pubDate>Sat, 24 Apr 2021 18:29:31 GMT</pubDate>
            <atom:updated>2021-04-24T18:29:31.593Z</atom:updated>
            <content:encoded><![CDATA[<h3>Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge. Часть 2.</h3><p><em>Привет всем!</em></p><p><em>Прежде чем, я продолжу свой рассказ о втором раунде крутейшего квеста — Wallet Puzzle Challenge, я бы хотел поделиться кое-какими мыслями, которые появились у меня после прохождения этапа.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nukPbChzuQH8Q2hEG-agyQ.jpeg" /></figure><h4>Аналитика данных — очередная область прорыва Криптопространства</h4><p>Последний год криптовалютный рынок, принес большому количеству участников хороший профит и практически все мои знакомые, которые пережили 2018–2019 год, сейчас имеют отличный капитал, относительно среднего дохода человека. Однако, он все равно у всех отличается довольно сильно. Речь идет о десятках и даже сотнях тысяч долларов, но почему так получается?</p><blockquote>Все дело в навыках, знаниях и информации.</blockquote><p>Есть категория участников рынка, которые зарабатывают большие деньги в тестнетах. Они обладают уникальными знаниями и навыками, позволяющие им запускать ноды и участвовать на ранних этапах, получая за это в дальнейшем, приличные дивиденды.</p><p>Есть люди, которые специализируются на мультиаккаунтах и имеют огромные фермы, я это не одобряю, но это факт.</p><p>Также я знаю людей, которые успешно зарабатывают огромные деньги, анализируя смарт-контракты, транзакции, свапы и прочую информацию.</p><p>Здесь я бы хотел остановиться подробнее. С развитием DEX, у любого участника рынка появилась возможность отслеживать абсолютно каждую деталь и иметь точную информацию по объемам торгов, ликвидности и т.д. Существует целый пласт аналитических данных, который при грамотной обработке, может показать совершенно удивительный результат и можно сказать, эксклюзивную информацию. В действительности собирать и обрабатывать такую информацию, это огромный труд, который под силу далеко не каждому, возвращаемся опять же к вопросу навыков.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vzlgq55kuQC35VeWf1xUlw.jpeg" /></figure><p><strong>Однако с появлением таких инструментов как Covalent API, все становится в десятки раз легче.</strong> Ведь использование простого и понятного UI, существенно облегчает задачу. Я уверен, что в будущем появятся целый ряд аналитических компаний, которые используя в частности Covalent API, будут предлагать своим пользователям обработанную аналитическую информацию.</p><p>Если говорить в общем, всех успешных участников рынка, объединяет наличие полезных навыков и вовремя полученная информация.</p><p>Чем собственно мы сейчас и занимаемся в этом квесте — получаем навык работы с Covalent API, получая уникальную информацию!</p><h4>Wallet Puzzle Challenge Round 2</h4><p>В этом раунде я опять столкнулся с проблемами, которые возникли из-за невнимательного чтения задания. Могу оправдаться лишь тем, что я делал все это поздно ночью, после работы и хотел спать :)</p><p>Но давайте по порядку.</p><p>В отличие от первого раунда, это задание было расписано очень подробно и каждый шаг, был максимально объяснен в руководстве.</p><pre>Главное задание. </pre><pre>1. Найдите общее количество СВАПОВ на Pangolin, для 2 лучших пар(по общему количеству) в первую неделю апреля 2021 года с 1 апреля 00:00:00 UTC до 7 апреля 23:59:59 UTC.</pre><pre>2. Преобразуйте эту сумму в шестнадцатеричную систему и вы откроете секретную комнату для следующего задания по адресу URL:</pre><pre><a href="http://www.onemillionwallets.com/%7bhexadecimal_number%7d">www.onemillionwallets.com/{hexadecimal_number}</a></pre><p>Главное задание разбивается на шаги, которые создатель квеста описал очень подробно.</p><pre>Шаг 1. </pre><pre>Перейдите в Твиттер Covalent AlphaAlarm : <a href="https://twitter.com/AlphaAlarm_HQ">https://twitter.com/AlphaAlarm_HQ</a>. Найдите твит, в котором изучались самые популярные свапы на <a href="http://twitter.com/pangolindex">@pangolindex</a>. Определите 2 лучшие пары свапов (по общему количеству), которые содержат врапнутый AVAX (WAVAX). WAVAX-это совместимая с ERC-20 версия собственного токена AVAX Avalanche. </pre><p>Здесь все очень просто, мы открываем нужный аккаунт в твиттере и ищем нужный твит с описанием самых популярных торговых пар на Pangolin DEX.</p><p>Я нашел этот твит. Это было не сложно.</p><h3>Alpha Alarm | Powered by Covalent on Twitter: &quot;1/🚨Happy Wednesday!🚨Today we&#39;re looking into the most popular swaps on @pangolindex. The top 5 swap pairs (by overall count) all include Wrapped AVAX (WAVAX), which is the ERC-20 compatible version of Avalanche&#39;s native token➡️ AVAX. pic.twitter.com/UD2lpSqMOr / Twitter&quot;</h3><p>1/🚨Happy Wednesday!🚨Today we&#39;re looking into the most popular swaps on @pangolindex. The top 5 swap pairs (by overall count) all include Wrapped AVAX (WAVAX), which is the ERC-20 compatible version of Avalanche&#39;s native token➡️ AVAX. pic.twitter.com/UD2lpSqMOr</p><p>Как видите, две самые популярные пары это</p><blockquote>PNG/ WAVAX</blockquote><blockquote>USDT/ WAVAX</blockquote><p>Запомним это.</p><pre>Шаг 2. </pre><pre>С информацией из шага 1 перейдите по ссылке <a href="https://info.pangolin.exchange/">https://info.pangolin.exchange</a> Найдите адрес контракта пары токенов, для каждого из двух лучших токенов из шага 1. Например, если одна из лучших пар токенов SUSHI/WAVAX, выполните поиск SUSHI-WAVAX по адресу <a href="https://info.pangolin.exchange/">https://info.pangolin.exchange</a> чтобы получить адрес контракта 0xd8B262C0676E13100B33590F10564b46eeF652AD, который показан в верхней части пары → SUSHI-WAVAX (0xd8b262…f652ad) на следующем рисунке:</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxqPTqYwCb9vJWx_14lJxg.png" /></figure><p>На втором шаге, нам нужно найти адреса контрактов для выбранных пар из шага 1. В описание к шагу указано даже место, где искать. Это тоже очень легкий шаг. Переходим на данному адресу <a href="https://info.pangolin.exchange/">https://info.pangolin.exchange/</a>, переходим во вкладку «Pairs».</p><p>И находим в списке нужные пары, открыв каждую из них, мы найдем адрес контракта, как показано в руководстве к шагу 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6d1I8Hiat6-prQJIbl50Q.jpeg" /></figure><p>Два нужных адреса:</p><blockquote>PNG/ WAVAX : 0xd7538cabbf8605bde1f4901b47b8d42c61de0367</blockquote><blockquote>USDT/ WAVAX : 0x9ee0a4e21bd333a6bb2ab298194320b8daa26516</blockquote><pre>Шаг 3. </pre><pre>Каждый раз, когда в контракте происходит СВАП, событие, называемое свапом, генерируется контрактом и классифицируется по Топик Хэшу. Именно так пользователи могут найти все события свапа, связанные с любым конкретным контрактом.<br>Взгляните на журнал событий для нашего примера контракта SUSHI-WAVAX: <a href="https://cchain.explorer.avax.network/address/0xd8B262C0676E13100B33590F10564b46eeF652AD/logs">https://cchain.explorer.avax.network/address/0xd8B262C0676E13100B33590F10564b46eeF652AD/logs</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4ZkeNTYP8gRadvYbWmPng.png" /></figure><pre>Вы найдете Топик Хэш в качестве первого хэш-значения, указанного в разделе Темы (Topics). Примечание — Топик Хэш будет одинаковым для всех событий свапа, выпускаемых ВСЕМИ контрактами пары токенов Pangolin!</pre><pre>Дважды проверьте, что Топик Хэш СВАПА для каждой из 5 пар токенов действительно один и тот же.</pre><p>На этом шаге, автор квеста рассказывает нам, о том, что в сети все операции классифицируется и помечаются определенным хэшем. Надеюсь вы не забыли, что в задании нам нужно было <strong>найти именно СВАПЫ</strong>, поэтому будем искать Топик Хэш для свапов.</p><p>Перейдя по ссылке из шага 3, видно, что Топик Хэш свапов идентифицируется как <strong>0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822</strong></p><p>Однако, я в первый раз использовал все эти данные. Поэтому нужно было убедиться, что это верный хэш. Я открыл контракты других пар, это PNG/ WAVAX:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJCchsI2geWWLx3eSeTWHg.jpeg" /></figure><p>А это USDT/ WAVAX:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6Nmrx-inZRk3oEHNau1HA.jpeg" /></figure><blockquote>Как видите, хэш везде одинаковый, значит я не ошибся. Топик Хэш для свапов из шага 3 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822</blockquote><pre>Шаг 4. </pre><pre>Используйте Топик Хэш, чтобы найти общее количество СВАПОВ, для каждой из двух лучших пар токенов, за первую неделю апреля 2021 года.<br>Используйте раздел “<strong>Get Log events by topic hash(es)” конечных точек Covalent </strong><a href="https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/">https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/topics/{topic}/</a>.</pre><pre>С точки зрения параметров вашего запроса:</pre><pre>- topic — это Топик Хэш из предыдущей подсказки.<br>- sender -address спросите, какой адрес генерирует событие свапа<br>- Используйте большое значение размера страницы (например, 99999) только для того, чтобы убедиться, что вы получите все данные. </pre><blockquote>Мы почти у цели, осталось дособирать информацию и сделать запрос Covalent API.</blockquote><p>В самом начале, в задании давались четкие сроки — April 2021 from April 1, 00:00:00 UTC until April 7, 23:59:59 UTC.</p><p>Сейчас нам необходимо найти блоки для этих дат, чтобы искать необходимую информацию в пределах этих блоков. Если вы помните, мы уже делали подобное в Раунде 1.</p><p>Как и в прошлый раз мы переходим <a href="https://avascan.info/blockchain/c/blocks">https://avascan.info/blockchain/c/blocks</a> и ищем необходимые даты.</p><p>Я нашел первый блок от начала апреля — <a href="https://avascan.info/blockchain/c/block/875518">https://avascan.info/blockchain/c/block/875518</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4JFu0L7gK5W_k94TfwydQ.jpeg" /></figure><p>И второй блок, который необходим по условию. <a href="https://avascan.info/blockchain/c/block/1009864">https://avascan.info/blockchain/c/block/1009864</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*614ZcFm5P2KNQgPweJ6j3g.jpeg" /></figure><p>Итак, у нас есть два блока:</p><blockquote>875 518</blockquote><blockquote>1 009 864</blockquote><p>И вот, казалось бы, что еще? Ах да, в строке запроса у нас есть некий <strong>sender-address.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8u9Pl8EOdlhxxz8r6Gving.jpeg" /></figure><p>Изначально, я был уверен, что это адрес, указанный в логах. Именно из-за этого мой запрос постоянно прерывался и был неправильным. И снова, благодаря помощи в дискорде, я наконец-то понял, что в данной строке должен быть адрес контракта нужной нам пары. Когда до меня дошла вся логика, я почувствовал себя идиотом! Это ведь так очевидно :)</p><p>Сначала вставил адрес PNG/ WAVAX и как обычно скопировал в формате для Excel — csv. Запрос получился тяжелый, поэтому пришлось немного подождать.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkXPiNLBRVQzJqHaF7nzIA.jpeg" /></figure><p>Скопировав в Excel, я торопился быстрее решить задание и поэтому опять совершил ошибку, посчитав каждую строку новым свапом, однако если присмотреться внимательнее, можно увидеть, что один свап это несколько строчек. В итоге, я заметил, что каждый свап уникален уже знакомым нам топик хешем, поэтому я выполнил поиск в Excel именно по этому показателю и получил число <strong>6833.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yuqsAKI33D-1I6O8UmykjQ.jpeg" /></figure><p>Теперь нужно было сделать тоже самое, только для адреса USDT/ WAVAX. После идентичных действий, я получил второе число — <strong>5346</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-_OdFbqQ8aZ6TB-UvhKxQ.jpeg" /></figure><p>Итак, самое сложное позади. У нас есть два числа.</p><blockquote>6833</blockquote><blockquote>5346</blockquote><p>Нас ждет последний, пятый шаг.</p><pre>Шаг 5. </pre><pre>Как только вы найдете общее количество свапов, преобразуйте число в шестнадцатеричную систему<br>Ваша секретная комната со следующим заданием будет разблокирована на сайте: <a href="http://www.onemillionwallets.com/%7Bhexadecimal_number">www.onemillionwallets.com/{hexadecimal_number</a>}</pre><p>В задании говорилось о том, что сумму этих чисел необходимо преобразовать в шестнадцатеричную систему. С этой задачей справится любой онлайн конвертер.</p><blockquote>6833+5346=12179</blockquote><blockquote>В результате получаем 2f93.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWVTDjyWsb69DKj0OUtszA.jpeg" /></figure><blockquote>И у нас есть правильная ссылка!</blockquote><blockquote><a href="https://www.onemillionwallets.com/2f93">https://www.onemillionwallets.com/2f93</a></blockquote><blockquote>Урааааа! Я снова в секретной комнате!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6yEUHf8BajtHRJjBWUAR5A.jpeg" /></figure><p>После такого сложного испытания, задание секретной комнаты показалось мне детской разминкой.</p><p>Найти указанные слова, не составляет никаких проблем.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3iVi8mVnJMq7qreoEU1qng.jpeg" /></figure><p>Задание все еще доступно по ссылке, переходите и попытайтесь это сделать как можно быстрее!</p><p>По традиции, я написал твит об этом событии!</p><h3>Dice on Twitter: &quot;Every time it&#39;s harder and harder! 🧠 Great quest!But still a victory!👏👏👏#OneMillionWallets #CovalentAPI #AVAX pic.twitter.com/faO43kDV8k / Twitter&quot;</h3><p>Every time it&#39;s harder and harder! 🧠 Great quest!But still a victory!👏👏👏#OneMillionWallets #CovalentAPI #AVAX pic.twitter.com/faO43kDV8k</p><p>Вы знаете, что делать :)</p><p>Это был самый сложный раунд, который был бы легче, будь я внимательнее. Однако, самое ценное это навыки и знания, которые у меня появились, решая этот квест.</p><p><strong>Благодаря Covalent API извлечение данных из блокчейна для последующей аналитики, становится проще простого и доступно абсолютно любому пользователю.</strong></p><p>Просто попробуйте!</p><p>У нас остался еще один, последний раунд, в котором я чувствовал себя уже намного увереннее, очень скоро я расскажу о нем.</p><p>Увидимся!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e87fb5db3daa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/covalent-hq/%D0%BE%D0%B1%D0%B7%D0%BE%D1%80-%D0%B2%D0%BE%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82%D0%B5%D0%B9-covalent-%D0%BD%D0%B0-%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D0%B5-avalanche-%D0%B2-%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%BD%D0%BE%D0%BC-%D0%BA%D0%B2%D0%B5%D1%81%D1%82%D0%B5-wallet-puzzle-challenge-e87fb5db3daa">Обзор возможностей Covalent на примере Avalanche в совместном квесте — Wallet Puzzle Challenge.</a> was originally published in <a href="https://medium.com/covalent-hq">Covalent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>