skka3134

skka3134

email
telegram

Chain Game Company Interview Question

  1. It is said to be a chain game company, but the main questions are not about games, but about contracts.
  2. Interview: Simple self-introduction + projects on the resume + chainlink vrf principle + proxy contract principle.
  3. Chainlink vrf principle: Chainlink Oracle is a decentralized network with many oracle nodes in the network. Each oracle node can obtain data through its own channel and reach consensus on the obtained data in the decentralized network. The consensus method used is the median. The user passes a seed to the VRF contract, and the oracle VRF node uses its private key and seed to generate a random number and proof, which are returned to the VRF contract. The VRF contract verifies the legitimacy of the proof of the random number. If the verification passes, the random number will be returned to the user.
  4. Proxy contract principle: The user interacts with contract A, and contract A calls contract B. Contract A is a proxy contract, and contract B is a logic contract. If you want to upgrade, just change the content of contract A, but during the upgrade process, you cannot change the memory layout of contract A, you can only add, not delete or modify.
    image
  5. Written test: Permission control + ownership transfer + modifier + event switch + IERC20 transfer + whitelist (bonus) + EOA (bonus)
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.