Skip to content
Verified contractPartialGPL-3.0-only

RocketNodeStaking

Address0xa73ec45fe405b5bfcdc0bf4cbc9014bb32a01cd2
Balance

0 ETH

 

Transactions

3,650

 

Compiler

solc 0.7.6

 

Same code

Only this contract

 

Details

Compiler
solc 0.7.6+commit.7338295f
Language
solidity
Optimization
Yes, 15,000 runs
EVM version
istanbul
License
GPL-3.0-only
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
15,342,691
Creation transaction
0x421db42d83…86d2cd247d

Read10

  • calculateTotalEffectiveRPLStake(uint256,uint256,uint256) → (uint256)
  • getNodeEffectiveRPLStake(address) → (uint256)
  • getNodeMaximumRPLStake(address) → (uint256)
  • getNodeMinimumRPLStake(address) → (uint256)
  • getNodeMinipoolLimit(address) → (uint256)
  • getNodeRPLStake(address) → (uint256)
  • getNodeRPLStakedTime(address) → (uint256)
  • getTotalEffectiveRPLStake() → (uint256)
  • getTotalRPLStake() → (uint256)
  • version() → (uint8)

Write4

  • slashRPL(address,uint256)
  • stakeRPL(uint256)
  • stakeRPLFor(address,uint256)
  • withdrawRPL(uint256)

Events3

  • RPLSlashed(address,uint256,uint256,uint256)
  • RPLStaked(address,uint256,uint256)
  • RPLWithdrawn(address,uint256,uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_rocketStorageAddress",
        "type": "address",
        "internalType": "contract RocketStorageInterface"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "RPLSlashed",
    "type": "event",
    "inputs": [
      {
        "name": "node",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "ethValue",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "time",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "RPLStaked",
    "type": "event",
    "inputs": [
      {
        "name": "from",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "time",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "RPLWithdrawn",
    "type": "event",
    "inputs": [
      {
        "name": "to",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "time",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "calculateTotalEffectiveRPLStake",
    "type": "function",
    "inputs": [
      {
        "name": "offset",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "limit",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "rplPrice",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeEffectiveRPLStake",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeMaximumRPLStake",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeMinimumRPLStake",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeMinipoolLimit",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeRPLStake",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getNodeRPLStakedTime",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getTotalEffectiveRPLStake",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getTotalRPLStake",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "slashRPL",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_ethSlashAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "stakeRPL",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "stakeRPLFor",
    "type": "function",
    "inputs": [
      {
        "name": "_nodeAddress",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "version",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint8",
        "internalType": "uint8"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "withdrawRPL",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.