Technical Reference

LIBYAI

Source updated:
Last updated:
Source Revision 0x07969936…91cb60
Property Value
Source Revision 0x07969936d8097c4a90afc99c36a0c19da1a4760df7e84dc6791bd6b30791cb60
Source URL https://raw.githubusercontent.com/busytoby/atropa_pulsechain/e6ce2d7ace8d5e5a059701dce8c82c62705306f4/solidity/dysnomia/interfaces/libyai.sol
Source commit e6ce2d7ace8d5e5a059701dce8c82c62705306f4
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.21+commit.d9974bed.Linux.g++"}
Compilation Closure Hash 0x88eb93407a40017f70bbd006deb809a10027ea3c467c1a182e79bf0e192bb247
Compilation Closure Files 23
Hash Generated 2026-08-22T00:06:01Z
  • Kind: Interface
  • License: Sharia
  • Solidity: ^0.8.21
  • Source: solidity/dysnomia/interfaces/libyai.sol

No base contracts; this contract has no parents.

None (root of its hierarchy).

maxSupplyfunction
function maxSupply() external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: uint256
Renamefunction
function Rename(string memory newName, string memory newSymbol) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: string memory newName, string memory newSymbol
GetMarketRatefunction
function GetMarketRate(address _a) external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: address _a
  • Returns: uint256
Purchasefunction
function Purchase(address _t, uint256 _a) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address _t, uint256 _a
Redeemfunction
function Redeem(address _t, uint256 _a) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address _t, uint256 _a
namefunction
function name() external view returns (string memory)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: string memory
symbolfunction
function symbol() external view returns (string memory)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: string memory
decimalsfunction
function decimals() external view returns (uint8)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: uint8
totalSupplyfunction
function totalSupply() external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: uint256
balanceOffunction
function balanceOf(address account) external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: address account
  • Returns: uint256
transferfunction
function transfer(address to, uint256 value) external returns (bool)
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address to, uint256 value
  • Returns: bool
allowancefunction
function allowance(address owner, address spender) external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: address owner, address spender
  • Returns: uint256
approvefunction
function approve(address spender, uint256 value) external returns (bool)
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address spender, uint256 value
  • Returns: bool
transferFromfunction
function transferFrom(address from, address to, uint256 value) external returns (bool)
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address from, address to, uint256 value
  • Returns: bool
addOwnerfunction
function addOwner(address newOwner) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address newOwner
renounceOwnershipfunction
function renounceOwnership(address toRemove) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address toRemove
mintToCapfunction
function mintToCap() external
  • Visibility: external
  • Body: abstract / interface function — no implementation
Typefunction
function Type() external view returns (string memory)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: string memory
hasfunction
function has(address _contract, string memory what) external view returns (bool does)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: address _contract, string memory what
  • Returns: bool does
Voidfunction
function Void() external view returns (VOID)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Returns: VOID
QingChatfunction
function QingChat(QIN memory Player, LAU UserToken, string memory MSG) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: QIN memory Player, LAU UserToken, string memory MSG
Forbidfunction
function Forbid(address what) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address what
Unforbidfunction
function Unforbid(address what) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: address what
IsForbiddenfunction
function IsForbidden(address Token) external view returns (bool)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: address Token
  • Returns: bool
GetAliasCountfunction
function GetAliasCount(uint256 Waat) external view returns (uint256)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: uint256 Waat
  • Returns: uint256
GetAliasfunction
function GetAlias(uint256 Waat, uint256 idx) external view returns (string memory)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: uint256 Waat, uint256 idx
  • Returns: string memory
Removefunction
function Remove(uint256 Waat, string memory name) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: uint256 Waat, string memory name
Aliasfunction
function Alias(uint256 Waat, string memory name, address token) external
  • Visibility: external
  • Body: abstract / interface function — no implementation
  • Parameters: uint256 Waat, string memory name, address token
Aliasfunction
function Alias(uint256 Waat, string memory name) external view returns (address _a)
  • Visibility: external
  • State Mutability: view
  • Body: abstract / interface function — no implementation
  • Parameters: uint256 Waat, string memory name
  • Returns: address _a

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": "uint256",
"name": "Waat",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "Alias",
"outputs": [
{
"internalType": "address",
"name": "_a",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "Waat",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "Alias",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "what",
"type": "address"
}
],
"name": "Forbid",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "Waat",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "idx",
"type": "uint256"
}
],
"name": "GetAlias",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "Waat",
"type": "uint256"
}
],
"name": "GetAliasCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_a",
"type": "address"
}
],
"name": "GetMarketRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "Token",
"type": "address"
}
],
"name": "IsForbidden",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"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": [
{
"components": [
{
"internalType": "uint256",
"name": "Maat",
"type": "uint256"
},
{
"internalType": "contract QINGINTERFACE",
"name": "Location",
"type": "address"
},
{
"internalType": "uint256",
"name": "lastMove",
"type": "uint256"
}
],
"internalType": "struct QIN",
"name": "Player",
"type": "tuple"
},
{
"internalType": "contract LAU",
"name": "UserToken",
"type": "address"
},
{
"internalType": "string",
"name": "MSG",
"type": "string"
}
],
"name": "QingChat",
"outputs": [],
"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": "uint256",
"name": "Waat",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "Remove",
"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": [],
"name": "Type",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "what",
"type": "address"
}
],
"name": "Unforbid",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "Void",
"outputs": [
{
"internalType": "contract VOID",
"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": "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"
}
]