ETH Price: $2,134.91 (+3.03%)

Contract

0xae6Ce391e8CaAd54f56C28E05c9da28c4f3EDE5E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InitSiloEvents

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
/*
 SPDX-License-Identifier: MIT
*/

pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;

/**
 * @author Publius
 * @title InitSiloEvents emits missing Stalk/Seed events
 * This script will be called after BIP-24 has been executed.
 * `siloEvents` will contain a list of accounts that transferred at least 1 Deposit before BIP-24.
 * Stalk, Roots and Seeds will contain the values of the balances that were not emitted in Deposit transfers.
**/

contract InitSiloEvents {

    struct SiloEvents {
        address account;
        int256 stalk;
        int256 roots;
        int256 seeds;
    }

    event SeedsBalanceChanged(
        address indexed account,
        int256 delta
    );

    event StalkBalanceChanged(
        address indexed account,
        int256 delta,
        int256 deltaRoots
    );

    function init(SiloEvents[] memory siloEvents) external {
        uint256 n = siloEvents.length;
        for (uint i; i < n; ++i) {
            emit SeedsBalanceChanged(siloEvents[i].account, siloEvents[i].seeds);
            emit StalkBalanceChanged(siloEvents[i].account, siloEvents[i].stalk, siloEvents[i].roots);
        }

    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"int256","name":"delta","type":"int256"}],"name":"SeedsBalanceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"int256","name":"delta","type":"int256"},{"indexed":false,"internalType":"int256","name":"deltaRoots","type":"int256"}],"name":"StalkBalanceChanged","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"int256","name":"stalk","type":"int256"},{"internalType":"int256","name":"roots","type":"int256"},{"internalType":"int256","name":"seeds","type":"int256"}],"internalType":"struct InitSiloEvents.SiloEvents[]","name":"siloEvents","type":"tuple[]"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506102ec806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80637426510f14610030575b600080fd5b61004361003e366004610170565b610045565b005b805160005b8181101561016b5782818151811061005e57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff167f8a9b067b02389729b43ff012ea79fec02744ec108317c48accb631af39a86a3c8483815181106100ad57fe5b6020026020010151606001516040516100c6919061027b565b60405180910390a28281815181106100da57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff167fb2d61db64b8ad7535308d2111c78934bc32baf9b7cd3a2e58cba25730003cd5884838151811061012957fe5b60200260200101516020015185848151811061014157fe5b60200260200101516040015160405161015b929190610284565b60405180910390a260010161004a565b505050565b60006020808385031215610182578182fd5b823567ffffffffffffffff80821115610199578384fd5b818501915085601f8301126101ac578384fd5b8135818111156101b857fe5b6101c58485830201610292565b818152848101908486016080808502870188018b10156101e3578889fd5b8896505b8487101561026c5780828c0312156101fd578889fd5b60408051828101818110898211171561021257fe5b8252833573ffffffffffffffffffffffffffffffffffffffff81168114610237578b8cfd5b8152838a01358a82015281840135918101919091526060808401359082015284526001969096019592870192908101906101e7565b50909998505050505050505050565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff811182821017156102ae57fe5b60405291905056fea2646970667358221220dacb1c064c7f1fe90405bc957a7bb4f2781efece7a704b6bf5e674ceb6b916a664736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80637426510f14610030575b600080fd5b61004361003e366004610170565b610045565b005b805160005b8181101561016b5782818151811061005e57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff167f8a9b067b02389729b43ff012ea79fec02744ec108317c48accb631af39a86a3c8483815181106100ad57fe5b6020026020010151606001516040516100c6919061027b565b60405180910390a28281815181106100da57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff167fb2d61db64b8ad7535308d2111c78934bc32baf9b7cd3a2e58cba25730003cd5884838151811061012957fe5b60200260200101516020015185848151811061014157fe5b60200260200101516040015160405161015b929190610284565b60405180910390a260010161004a565b505050565b60006020808385031215610182578182fd5b823567ffffffffffffffff80821115610199578384fd5b818501915085601f8301126101ac578384fd5b8135818111156101b857fe5b6101c58485830201610292565b818152848101908486016080808502870188018b10156101e3578889fd5b8896505b8487101561026c5780828c0312156101fd578889fd5b60408051828101818110898211171561021257fe5b8252833573ffffffffffffffffffffffffffffffffffffffff81168114610237578b8cfd5b8152838a01358a82015281840135918101919091526060808401359082015284526001969096019592870192908101906101e7565b50909998505050505050505050565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff811182821017156102ae57fe5b60405291905056fea2646970667358221220dacb1c064c7f1fe90405bc957a7bb4f2781efece7a704b6bf5e674ceb6b916a664736f6c63430007060033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.