Technical Reference

Whitelist

Source updated:
Last updated:
Source Revision 0x28c90d3a…b1da08
Property Value
Source Revision 0x28c90d3a2b2dc7f838c6d3d91d459f074d823a49435cb725f3211a9416b1da08
Source URL https://raw.githubusercontent.com/busytoby/atropa_pulsechain/c8d29f39af79e8f8c399fe7971f2dba4546a1864/whitelist.sol
Source commit c8d29f39af79e8f8c399fe7971f2dba4546a1864
Source Status Archived source snapshot; this does not establish deployed bytecode equivalence.
Compiler solc 0.8.21; optimizer enabled with 200 runs
Compiler Configuration {"evmVersion":"compiler-default","optimizer":{"enabled":true,"runs":200},"version":"0.8.25+commit.b61c2a91.Linux.g++"}
Compilation Closure Hash 0xd7dffacac5fd5bd0a8706ac5bb791c0d69af5ac94975a7512afe67b044561426
Compilation Closure Files 1
Hash Generated 2026-08-22T00:06:01Z
  • Kind: Abstract Contract
  • License: Sharia
  • Solidity: ^0.8.25
  • Source: whitelist.sol

No base contracts; this contract has no parents.

None (root of its hierarchy).

Variable Type Visibility Mutability Initial Value NatSpec
_whitelist address[] internal mutable ``
AddToWhitelistfunction
function AddToWhitelist(address _wl) public
  • Visibility: public
  • Parameters: address _wl
AssertWhitelistedfunction
function AssertWhitelisted(address _wl) public view
  • Visibility: public
  • State Mutability: view
  • Parameters: address _wl
RemoveFromWhitelistfunction
function RemoveFromWhitelist(address _wl) public
  • Visibility: public
  • Parameters: address _wl
GetWhitelistByIndexfunction
function GetWhitelistByIndex(uint256 i) public view returns (address)
  • Visibility: public
  • State Mutability: view
  • Parameters: uint256 i
  • Returns: address
WhitelistCountfunction
function WhitelistCount() public view returns (uint256)
  • Visibility: public
  • State Mutability: view
  • Returns: uint256
_addfunction
function _add(address _wl) internal
  • Visibility: internal
  • Parameters: address _wl
_removefunction
function _remove(uint256 v) private
  • Visibility: private
  • Parameters: uint256 v

The compiled ABI below is produced by solc 0.8.21 from the exact source bytes recorded in Source details. Consumers can paste it directly into ethers/web3/viem.

Click to expand JSON ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "_wl",
"type": "address"
}
],
"name": "AddToWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_wl",
"type": "address"
}
],
"name": "AssertWhitelisted",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "i",
"type": "uint256"
}
],
"name": "GetWhitelistByIndex",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_wl",
"type": "address"
}
],
"name": "RemoveFromWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "WhitelistCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]