@evolutionland/evolution-js
Version:
evolution evolution-js evolutionland evolution-js-sdk evolution-land metaverse
674 lines (673 loc) • 17.1 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "obj_id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rarity",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "prefer",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "Crafted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint8",
"name": "class",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "Disenchanted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint8",
"name": "class",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "Enchanced",
"type": "event"
},
{
"anonymous": true,
"inputs": [
{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
},
{
"indexed": true,
"internalType": "address",
"name": "guy",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "foo",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "bar",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "fax",
"type": "bytes"
}
],
"name": "LogNote",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "authority",
"type": "address"
}
],
"name": "LogSetAuthority",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "LogSetOwner",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "attrs",
"outputs": [
{
"internalType": "uint8",
"name": "obj_id",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "rarity",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "class",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "prefer",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "authority",
"outputs": [
{
"internalType": "contract DSAuthority",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "_obj_id",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "_rarity",
"type": "uint8"
},
{
"internalType": "address",
"name": "_element",
"type": "address"
}
],
"name": "craft",
"outputs": [
{
"internalType": "bool",
"name": "crafted",
"type": "bool"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_obj_ids",
"type": "uint8[]"
},
{
"internalType": "uint8[]",
"name": "_raritys",
"type": "uint8[]"
},
{
"internalType": "address[]",
"name": "_elements",
"type": "address[]"
}
],
"name": "craft_batch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "disenchant",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "_token",
"type": "address"
}
],
"name": "enchant",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "getMetaData",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_obj_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_class",
"type": "uint256"
}
],
"name": "get_formula",
"outputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "minor",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "cost",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "srate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lrate",
"type": "uint256"
}
],
"internalType": "struct ICodexEquipment.formula",
"name": "_f",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_obj_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_rarity",
"type": "uint256"
}
],
"name": "get_obj",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "materials",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "mcosts",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "ecost",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "srate",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"internalType": "struct ICodexEquipment.equipment",
"name": "_e",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_registry",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_obj_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_rarity",
"type": "uint256"
}
],
"name": "isValid",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "class",
"type": "uint256"
}
],
"name": "isValidClass",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "lastEquipmentId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC1155BatchReceived",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC1155Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "registry",
"outputs": [
{
"internalType": "contract ISettingsRegistry",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract DSAuthority",
"name": "authority_",
"type": "address"
}
],
"name": "setAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner_",
"type": "address"
}
],
"name": "setOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "start",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "stop",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "stopped",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]