Contract 0xBe1EA104dA8732Dfdf153a334AcED9E402c0fEa0

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x261b6f0dc1eae68819a018bc2e56d3a579ec3fc1077ca060d7091f75d57832630x6080604013198142023-12-04 21:00:3086 days 21 hrs ago0xe2bae51d63549a577729c4f6b94c2c0cf82cb799 IN  Create: Amaryllis0 ETH0.0001122268
[ Download CSV Export 
Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Amaryllis

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 1 : Amaryllis.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

contract Amaryllis {
   address public owner;

  constructor() {
    owner = msg.sender; // Initialize the owner with the address of the contract deployer
  }

  function addAndMultiply(uint a, uint b, uint c) public pure returns (uint) {uint result = a + b;result = result * c; return result;}

  function subtractAndDivide(uint a, uint b, uint c) public pure returns (uint) {uint result = a - b;result = result / c;return result;}

  function sqrtAndAbsolute(int num) public pure returns (int, uint) {int absNum = num < 0 ? -num : num; uint squareRoot = sqrt(uint(absNum));return (absNum, squareRoot);} function sqrt(uint y) internal pure returns (uint z) {if (y > 3) {z = y;uint x = y / 2 + 1;while (x < z) {z = x;x = (y / x + x) / 2;}} else if (y != 0) {z = 1;}}

  function bitwiseAndOr(uint a, uint b) public pure returns (uint, uint) {uint andResult = a & b;uint orResult = a | b;return (andResult, orResult);}

  function factorialAndFibonacci(uint n) public pure returns (uint, uint) {uint fact = 1;for (uint i = 1; i <= n; i++) {fact *= i;}uint fib1 = 0;uint fib2 = 1;uint fibN = 0;for (uint i = 2; i <= n; i++) {fibN = fib1 + fib2;fib1 = fib2;fib2 = fibN;} return (fact, fibN); }

}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"},{"internalType":"uint256","name":"c","type":"uint256"}],"name":"addAndMultiply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"bitwiseAndOr","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"factorialAndFibonacci","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"num","type":"int256"}],"name":"sqrtAndAbsolute","outputs":[{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"},{"internalType":"uint256","name":"c","type":"uint256"}],"name":"subtractAndDivide","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556103b5806100326000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806317699f22146100675780638da5cb5b1461008d5780639a7038cd146100b8578063b47ae8b7146100e0578063c23c7753146100f7578063d6670f5c1461010a575b600080fd5b61007a610075366004610268565b61011d565b6040519081526020015b60405180910390f35b6000546100a0906001600160a01b031681565b6040516001600160a01b039091168152602001610084565b6100cb6100c6366004610294565b61013f565b60408051928352602083019190915201610084565b6100cb6100ee3660046102ad565b80821692911790565b6100cb610105366004610294565b6101ab565b61007a610118366004610268565b6101df565b60008061012a84866102e5565b905061013683826102fe565b95945050505050565b6000806001805b84811161016b5761015781836102fe565b91508061016381610315565b915050610146565b50600060018160025b87811161019d5761018583856102e5565b9293508291508061019581610315565b915050610174565b509296929550919350505050565b60008060008084126101bd57836101c6565b6101c68461032e565b905060006101d3826101f8565b91959194509092505050565b6000806101ec848661034a565b9050610136838261035d565b60006003821115610259575080600061021260028361035d565b61021d9060016102e5565b90505b8181101561025357905080600281610238818661035d565b61024291906102e5565b61024c919061035d565b9050610220565b50919050565b8115610263575060015b919050565b60008060006060848603121561027d57600080fd5b505081359360208301359350604090920135919050565b6000602082840312156102a657600080fd5b5035919050565b600080604083850312156102c057600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b808201808211156102f8576102f86102cf565b92915050565b80820281158282048414176102f8576102f86102cf565b600060018201610327576103276102cf565b5060010190565b6000600160ff1b8201610343576103436102cf565b5060000390565b818103818111156102f8576102f86102cf565b60008261037a57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220743f901d39b5d5a2e99a63979658b8a8134b8d2032e5891260951e1d20ee3b7b64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c806317699f22146100675780638da5cb5b1461008d5780639a7038cd146100b8578063b47ae8b7146100e0578063c23c7753146100f7578063d6670f5c1461010a575b600080fd5b61007a610075366004610268565b61011d565b6040519081526020015b60405180910390f35b6000546100a0906001600160a01b031681565b6040516001600160a01b039091168152602001610084565b6100cb6100c6366004610294565b61013f565b60408051928352602083019190915201610084565b6100cb6100ee3660046102ad565b80821692911790565b6100cb610105366004610294565b6101ab565b61007a610118366004610268565b6101df565b60008061012a84866102e5565b905061013683826102fe565b95945050505050565b6000806001805b84811161016b5761015781836102fe565b91508061016381610315565b915050610146565b50600060018160025b87811161019d5761018583856102e5565b9293508291508061019581610315565b915050610174565b509296929550919350505050565b60008060008084126101bd57836101c6565b6101c68461032e565b905060006101d3826101f8565b91959194509092505050565b6000806101ec848661034a565b9050610136838261035d565b60006003821115610259575080600061021260028361035d565b61021d9060016102e5565b90505b8181101561025357905080600281610238818661035d565b61024291906102e5565b61024c919061035d565b9050610220565b50919050565b8115610263575060015b919050565b60008060006060848603121561027d57600080fd5b505081359360208301359350604090920135919050565b6000602082840312156102a657600080fd5b5035919050565b600080604083850312156102c057600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b808201808211156102f8576102f86102cf565b92915050565b80820281158282048414176102f8576102f86102cf565b600060018201610327576103276102cf565b5060010190565b6000600160ff1b8201610343576103436102cf565b5060000390565b818103818111156102f8576102f86102cf565b60008261037a57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220743f901d39b5d5a2e99a63979658b8a8134b8d2032e5891260951e1d20ee3b7b64736f6c63430008110033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.