Being great developer has nothing to do with passing interview, because most interviews are about weird questions, like what are your weaknesses and question about the legacy feature of a language which nobody hasn’t used in 10 years. Nevertheless, we have to play the game by the rules.
What is the output in the console?
The answer is
30.25. The trick is, if you put parentheses with arguments immediately after function declaration, that will be considered a function call.
What is the output in the console?
The answer is
1. The trick is that due to duplicate declaration…
Azure Application Insights is a great tool for monitoring and analyzing your website. And quite easy to install. Just add client and server-side integrations and you are set. Right?
There are many things App Insights does right, but one thing it does wrong out of the box is page views tracking. By default App Insights use page title as page view name. Most websites have page names, like: “AppName PageName SomeId”, which would result in having multiple versions of the same page in your stats. Example:
Which could literally…
Spoiler alert. Do not read below if you want to solve it on your own. The text below contains a full solution.
The goal of the level is to claim ownership of the contract. AlienCodex is inherited from Ownable so in order to do that we want to override
_owner variable in the contract's storage with our address.
The entire solution can be split into two parts. …
IDEX smart contract is present on Etherscan. Let’s dive into it.
The entire smart contract is only 184 lines. Why so small one might ask?
The reason behind this is that IDEX is not full capacity exchange on the blockchain. It doesn’t store its order book on the blockchain, neither it uses smart contract for order matching. That all is delegated to their private servers.
Then their code has to be open-source in case something happens to them, right?
Nope. Their source code is private. In other words, if their website is taken down by hacker/regulators, the entire exchange would…
Decentralization is a wide term and ranges from true decentralization, where smart contact on Ethereum neither can’t be changed neither can’t be stopped to some joke decentralization, like USDC, where owners of contract can pause, blacklist and swap entire contract with anything they want.
We are going to analyze EtherDelta Ethereum source code to give the precise picture of how truly decentralized EtherDelta and what options SEC and other law enforcement agencies have to control or shut down EtherDelta.
EtherDelta smart contract is present on EtherScan and only 312 lines of code. Moreover, it has classes like SafeMath, Token, StandardToken…
Coinbase adds its first stablecoin tied to the US Dollar. We have entered a new era of legitimate stablecoins. USDC issued by Circle, which is backed by Goldman Sachs. Making it as official and legal as it can be compared to shady Tether.
Contrary to Tether, which is implemented on Bitcoin’s Omni layer, USDC implements on Ethereum as an ERC-20 Token.
On November 2nd MetaMask and other dapp browsers will stop exposing user accounts by default. This will make some code from this paper to break. I will publish updated version with web3 1.0 and new MetaMask interface.
We are going to use Web3 0.20 version, not Web3 1.0. The code for Web3 1.0 would be different.
Every dApp has its mission, but the way they interact with Metamask is similar. …
Hang on tight and you will be surprised.
There is no such thing as typical dApp. dApps vary from games to decentralized exchanges. We are going to focus on such stats as monthly unique users and transactions per user per months. They are important to estimate costs to run dApp.
Only about 20 dApps have more than 1000 unique users per months. Let’s say your dApp is going to be one of successful and it is going to have 1000 users per month. On average active user makes 6 transactions per day. Let’s say for the sake of mental experiment…
ERC-20 token is a de facto standard in Ethereum world. It is supported by all wallets, exchanges and applications. Yet, ERC-20 token is a standard, and there are a few different implementations with their own nuances.
EOSIO.Token is a standard for a token and concrete implementation at EOS blockchain. EOS token itself is a prime example of EOSIO.Token contract.
ERC-20 token standard defines the following interface:
name – Returns the name of the token - e.g. "MyToken". symbol – Returns the symbol of the token. E.g. "HIX". decimals – Returns the number of decimals the token uses - e.g. 8…
EOS contrary to Ethereum comes with the token smart contract out of the box. As Ethereum has ERC20 smart contract, EOS has eosio.token smart contract. Eosio.token smart contract allows you to create your own token by providing maximum supply and token’s literal, issue tokens to an account and transfer tokens between accounts. EOS tokens on EOS blockchain are issued using the same contract.
The `url` parameter specifies to witch node you connect. You can checkout more API endpoints on the official website.
Cleos is a command line tool that interfaces with the REST API exposed by nodeos. We need…