CHO
Address
0xB6be11F0A788014C1F68C92F8D6CcC1AbF78F2aBCode
[
{
"inputs": [
{
"internalType": "address",
"name": "VoidAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "address",
"name": "what",
"type": "address"
},
{
"internalType": "uint256",
"name": "allowance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "needed",
"type": "uint256"
}
],
"name": "DysnomiaInsufficientAllowance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "address",
"name": "what",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "needed",
"type": "uint256"
}
],
"name": "DysnomiaInsufficientBalance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "UserToken",
"type": "address"
},
{
"internalType": "address",
"name": "User",
"type": "address"
}
],
"name": "InvalidOwnership",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUser",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "Asset",
"type": "address"
}
],
"name": "InvalidUserToken",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
}
],
"name": "MarketRateNotFound",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "what",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "address",
"name": "what",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
}
],
"name": "SoulNotEntered",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "Address",
"type": "address"
},
{
"internalType": "string",
"name": "Alias",
"type": "string"
}
],
"name": "SystemAddress",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "User",
"type": "address"
}
],
"name": "UserNotEntered",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "bool",
"name": "state",
"type": "bool"
}
],
"name": "OwnershipUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "Contract",
"type": "address"
},
{
"internalType": "address",
"name": "Owner",
"type": "address"
}
],
"name": "AddContractOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "what",
"type": "string"
}
],
"name": "AddLibraryOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "Alias",
"type": "string"
},
{
"internalType": "address",
"name": "Address",
"type": "address"
}
],
"name": "AddSystemAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "Addresses",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "Aliases",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "UserToken",
"type": "address"
}
],
"name": "Enter",
"outputs": [
{
"components": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
},
{
"components": [
{
"internalType": "address",
"name": "Phi",
"type": "address"
},
{
"internalType": "contract SHA",
"name": "Mu",
"type": "address"
},
{
"internalType": "uint64",
"name": "Xi",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Pi",
"type": "uint64"
},
{
"internalType": "contract SHIO",
"name": "Shio",
"type": "address"
},
{
"internalType": "uint64",
"name": "Ring",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omega",
"type": "uint64"
}
],
"internalType": "struct Bao",
"name": "On",
"type": "tuple"
},
{
"internalType": "string",
"name": "Username",
"type": "string"
},
{
"internalType": "uint64",
"name": "Entropy",
"type": "uint64"
}
],
"internalType": "struct User",
"name": "",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "Entropy",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "soul",
"type": "uint64"
}
],
"name": "GetAddressBySoul",
"outputs": [
{
"internalType": "address",
"name": "UserAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_a",
"type": "address"
}
],
"name": "GetMarketRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GetUser",
"outputs": [
{
"components": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
},
{
"components": [
{
"internalType": "address",
"name": "Phi",
"type": "address"
},
{
"internalType": "contract SHA",
"name": "Mu",
"type": "address"
},
{
"internalType": "uint64",
"name": "Xi",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Pi",
"type": "uint64"
},
{
"internalType": "contract SHIO",
"name": "Shio",
"type": "address"
},
{
"internalType": "uint64",
"name": "Ring",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omega",
"type": "uint64"
}
],
"internalType": "struct Bao",
"name": "On",
"type": "tuple"
},
{
"internalType": "string",
"name": "Username",
"type": "string"
},
{
"internalType": "uint64",
"name": "Entropy",
"type": "uint64"
}
],
"internalType": "struct User",
"name": "Alpha",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
}
],
"name": "GetUserBySoul",
"outputs": [
{
"components": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
},
{
"components": [
{
"internalType": "address",
"name": "Phi",
"type": "address"
},
{
"internalType": "contract SHA",
"name": "Mu",
"type": "address"
},
{
"internalType": "uint64",
"name": "Xi",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Pi",
"type": "uint64"
},
{
"internalType": "contract SHIO",
"name": "Shio",
"type": "address"
},
{
"internalType": "uint64",
"name": "Ring",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omega",
"type": "uint64"
}
],
"internalType": "struct Bao",
"name": "On",
"type": "tuple"
},
{
"internalType": "string",
"name": "Username",
"type": "string"
},
{
"internalType": "uint64",
"name": "Entropy",
"type": "uint64"
}
],
"internalType": "struct User",
"name": "Alpha",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "GetUserSoul",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "wallet",
"type": "address"
}
],
"name": "GetUserTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "UserToken",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Gua",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Luo",
"outputs": [
{
"internalType": "uint256",
"name": "De",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "MotzkinPrime",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "On",
"outputs": [
{
"internalType": "address",
"name": "Phi",
"type": "address"
},
{
"internalType": "contract SHA",
"name": "Mu",
"type": "address"
},
{
"internalType": "uint64",
"name": "Xi",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Pi",
"type": "uint64"
},
{
"internalType": "contract SHIO",
"name": "Shio",
"type": "address"
},
{
"internalType": "uint64",
"name": "Ring",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omega",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_t",
"type": "address"
},
{
"internalType": "uint256",
"name": "_a",
"type": "uint256"
}
],
"name": "Purchase",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "Qu",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "Eta",
"type": "uint64"
}
],
"name": "React",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Epsilon",
"type": "uint64"
}
],
"name": "ReactUser",
"outputs": [
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "Reactor",
"outputs": [
{
"internalType": "contract LIBCOREREACTIONS",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint64",
"name": "Soul",
"type": "uint64"
},
{
"components": [
{
"internalType": "address",
"name": "Phi",
"type": "address"
},
{
"internalType": "contract SHA",
"name": "Mu",
"type": "address"
},
{
"internalType": "uint64",
"name": "Xi",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Pi",
"type": "uint64"
},
{
"internalType": "contract SHIO",
"name": "Shio",
"type": "address"
},
{
"internalType": "uint64",
"name": "Ring",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omicron",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "Omega",
"type": "uint64"
}
],
"internalType": "struct Bao",
"name": "On",
"type": "tuple"
},
{
"internalType": "string",
"name": "Username",
"type": "string"
},
{
"internalType": "uint64",
"name": "Entropy",
"type": "uint64"
}
],
"internalType": "struct User",
"name": "Alpha",
"type": "tuple"
}
],
"name": "Recall",
"outputs": [
{
"internalType": "uint64",
"name": "UserEntropy",
"type": "uint64"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_t",
"type": "address"
},
{
"internalType": "uint256",
"name": "_a",
"type": "uint256"
}
],
"name": "Redeem",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "newName",
"type": "string"
},
{
"internalType": "string",
"name": "newSymbol",
"type": "string"
}
],
"name": "Rename",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "Saat",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Type",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "UserToken",
"type": "address"
}
],
"name": "VerifyUserTokenPermissions",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "Void",
"outputs": [
{
"internalType": "contract VOID",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Xiao",
"outputs": [
{
"internalType": "contract atropaMath",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "addOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_contract",
"type": "address"
},
{
"internalType": "string",
"name": "what",
"type": "string"
}
],
"name": "has",
"outputs": [
{
"internalType": "bool",
"name": "does",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "mintToCap",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "cOwner",
"type": "address"
}
],
"name": "owner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "toRemove",
"type": "address"
}
],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]// SPDX-License-Identifier: Sharia
pragma solidity ^0.8.21;
import "../../include/user.sol";
import "../../01_dysnomia_v2.sol";
import "../../interfaces/11b_lauinterface.sol";
import "../../interfaces/libstrings.sol";
import "../../interfaces/libcorereactions.sol";
contract CHO is DYSNOMIA {
string public constant Type = "CHO";
uint256 constant public Gua = 1652929763764148448182513644633101239607891671119935657884642;
VOID public Void;
uint64[3] public Saat;
Bao public On;
uint64 public Entropy;
mapping(address => User) private Delegates;
mapping(uint64 => address) private DelegateAddresses;
mapping(string => address) public Addresses;
mapping(uint256 => address) public Qu;
string[] public Aliases;
constructor(address VoidAddress) DYSNOMIA("Dysnomia Cho", "CHO", address(DYSNOMIA(VoidAddress).Xiao())) {
Void = VOID(VoidAddress);
Void.addOwner(address(this));
addOwner(tx.origin);
(Saat, On) = Void.Enter(__name, __symbol);
On.Phi = address(this);
On.Shio.addOwner(address(this));
On.Shio.Rho().Rod.addOwner(address(this));
Entropy = Reactor().Entropy(On);
React(Void.Nu().Psi().Rho().Bang.Omicron);
(On.Omega, On.Omicron) = Reactor().ReactLai(On.Omega);
React(Void.Nu().Psi().Rho().Le.Omicron);
uint256 originMint = Xiao.Random() % maxSupply / 10;
_mint(tx.origin, originMint * 10 ** decimals());
_addMarketRate(AFFECTIONContract, 1 * 10 ** decimals());
_addMarketRate(VoidAddress, 1 * 10 ** decimals());
_addMarketRate(address(On.Shio), 1 * 10 ** decimals());
_addMarketRate(address(On.Shio.Rod()), 1 * 10 ** decimals());
_addMarketRate(address(On.Shio.Cone()), 1 * 10 ** decimals());
_mintToCap();
}
function AddContractOwner(address Contract, address Owner) public onlyOwners {
DYSNOMIA(Contract).addOwner(Owner);
}
function has(address _contract, string memory what) public view returns (bool does) {
bytes4 selector = bytes4(keccak256(bytes(what)));
bytes memory data = abi.encodeWithSelector(selector);
assembly { does := staticcall(gas(), _contract, add(data, 32), mload(data), 0, 0) }
}
error SystemAddress(address Address, string Alias);
function AddSystemAddress(string memory Alias, address Address) public onlyOwners {
if(Addresses[Alias] != address(0x0)) revert SystemAddress(Addresses[Alias], Alias);
Addresses[Alias] = Address;
Aliases.push(Alias);
}
function AddLibraryOwner(string memory what) public onlyOwners {
_addLibraryOwner(Void, what);
}
function Reactor() public view returns(LIBCOREREACTIONS) {
return LIBCOREREACTIONS(Void.GetLibraryAddress("corereactions"));
}
function Luo() public onlyOwners returns (uint256 De) {
De = 0;
while(De == 0 || Qu[De] != address(0x0)) {
React(On.Omicron);
De = Xiao.modExp(On.Omega, On.Omicron, Gua);
}
Qu[De] = msg.sender;
_mintToCap();
}
error InvalidUserToken(address Asset);
function VerifyUserTokenPermissions(address UserToken) public {
assert((DYSNOMIA(WITHOUTContract).balanceOf(tx.origin) == 0));
Bao memory _on = Void.Nu().Psi().Mu().Tau().Upsilon().GetRodByIdx(LAU(UserToken).Saat(1));
if(!_on.Shio.owner(UserToken) || !_on.Shio.Rod().owner(UserToken)) revert InvalidUserToken(UserToken);
}
error InvalidOwnership(address UserToken, address User);
function Enter(address UserToken) public returns(User memory) {
_mintToCap();
VerifyUserTokenPermissions(UserToken);
LAU UserLau = LAU(UserToken);
if(!UserLau.owner(tx.origin)) revert InvalidOwnership(UserToken, tx.origin);
User memory Alpha;
Alpha.Soul = UserLau.Saat(1);
Alpha.On = UserLau.On();
Alpha.On.Phi = UserToken;
Alpha.Username = LAU(Alpha.On.Phi).Username();
Delegates[tx.origin] = Alpha;
DelegateAddresses[Alpha.Soul] = tx.origin;
Alpha.Entropy = Recall(Alpha);
Delegates[tx.origin].Entropy = Alpha.Entropy;
return Alpha;
}
function Recall(User memory Alpha) public returns (uint64 UserEntropy) {
(On.Omicron, On.Omega) = Reactor().ReactToLai(On, Entropy ^ Alpha.On.Omicron, Entropy ^ Alpha.On.Omega);
Entropy = On.Omega;
return On.Omicron;
}
error UserNotEntered(address User);
error SoulNotEntered(uint64 Soul);
error InvalidUser();
function GetUser() public returns(User memory Alpha) {
if(Delegates[tx.origin].Soul == 0) revert UserNotEntered(tx.origin);
Delegates[tx.origin].Entropy = Recall(Alpha);
return Delegates[tx.origin];
}
function GetUserSoul() public view returns(uint64) {
if(Delegates[tx.origin].Soul == 0) revert UserNotEntered(tx.origin);
return Delegates[tx.origin].Soul;
}
function React(uint64 Eta) public returns (uint64, uint64) {
_mintToCap();
(On.Omicron, On.Omega) = Reactor().ReactShioRod(On.Shio, Entropy ^ Eta);
Entropy = On.Omega;
return (On.Omicron, On.Omega);
}
function ReactUser(uint64 Soul, uint64 Epsilon) public returns (uint64 Omicron) {
if(DelegateAddresses[Soul] == address(0x0)) revert SoulNotEntered(Soul);
_mintToCap();
User memory Alpha = Delegates[DelegateAddresses[Soul]];
Epsilon = Recall(Alpha) ^ Epsilon ^ Alpha.Entropy;
(Alpha.On.Omicron, Alpha.On.Omega) = Reactor().ReactShioCone(Alpha.On.Shio, Epsilon);
Entropy = Alpha.On.Omega;
Alpha.Entropy = Alpha.On.Omicron;
Delegates[DelegateAddresses[Soul]] = Alpha;
return (Alpha.On.Omicron);
}
function GetUserBySoul(uint64 Soul) public returns (User memory Alpha) {
address _a = GetAddressBySoul(Soul);
if(Delegates[_a].Soul == 0) revert UserNotEntered(_a);
Delegates[_a].Entropy = Recall(Delegates[_a]);
return Delegates[_a];
}
function GetAddressBySoul(uint64 soul) public view returns(address UserAddress) {
if(DelegateAddresses[soul] == address(0x0)) revert SoulNotEntered(soul);
return DelegateAddresses[soul];
}
function GetUserTokenAddress(address wallet) public view returns(address UserToken) {
return Delegates[wallet].On.Phi;
}
}Last updated