diff --git a/Resources/totem-common-files b/Resources/totem-common-files deleted file mode 160000 index 30641f6..0000000 --- a/Resources/totem-common-files +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 30641f61211e1cb065f05b84b03ac283b05e13e0 diff --git a/Resources/totem-common-files/ABI.meta b/Resources/totem-common-files/ABI.meta new file mode 100644 index 0000000..3d4f785 --- /dev/null +++ b/Resources/totem-common-files/ABI.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 352a7b18fae32894f82c86fbc1c21c35 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/assets_abi.json b/Resources/totem-common-files/ABI/assets_abi.json new file mode 100644 index 0000000..fb563b8 --- /dev/null +++ b/Resources/totem-common-files/ABI/assets_abi.json @@ -0,0 +1,487 @@ +[ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "approved", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "ApprovalForAll", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getApproved", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "isApprovedForAll", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "ownerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "string", + "name": "uri", + "type": "string" + } + ], + "name": "safeMint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "safeTransferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "approved", + "type": "bool" + } + ], + "name": "setApprovalForAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "tokenByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "tokenOfOwnerByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "tokenURI", + "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": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } +] \ No newline at end of file diff --git a/Resources/totem-common-files/ABI/assets_abi.json.meta b/Resources/totem-common-files/ABI/assets_abi.json.meta new file mode 100644 index 0000000..1747cc4 --- /dev/null +++ b/Resources/totem-common-files/ABI/assets_abi.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bb397727b3d470a4082c1f355589c16d +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/fullName.meta b/Resources/totem-common-files/ABI/fullName.meta new file mode 100644 index 0000000..6e6aeca --- /dev/null +++ b/Resources/totem-common-files/ABI/fullName.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a1406d4c1f83f4f4bb999f2f42efd4f1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json b/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json new file mode 100644 index 0000000..b5567b2 --- /dev/null +++ b/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json @@ -0,0 +1,33 @@ +[ + "constructor()", + "event GameCreate(uint256 indexed gameId, address indexed owner, address indexed createdBy)", + "event GameStatusChange(uint256 indexed gameId, uint8 indexed status)", + "event GameUpdate(uint256 indexed gameId, address indexed updatedBy)", + "event Paused(address account)", + "event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)", + "event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)", + "event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)", + "event Unpaused(address account)", + "function DEFAULT_ADMIN_ROLE() view returns (bytes32)", + "function GAME_MANAGER_ROLE() view returns (bytes32)", + "function PAUSER_ROLE() view returns (bytes32)", + "function changeStatus(uint256 index, uint8 status)", + "function create(string name, string author, string renderer_uri, string filters_uri)", + "function createByManager(address owner, string name, string author, string renderer_uri, string filters_uri, uint8 status)", + "function gameByIndex(uint256 index) view returns (address owner, string name, string author, string renderer_uri, string filters_uri, uint8 status)", + "function gameOfOwnerByIndex(address owner, uint256 index) view returns (string name, string author, string renderer_uri, string filters_uri, uint8 status)", + "function getRoleAdmin(bytes32 role) view returns (bytes32)", + "function getRoleMember(bytes32 role, uint256 index) view returns (address)", + "function getRoleMemberCount(bytes32 role) view returns (uint256)", + "function grantRole(bytes32 role, address account)", + "function hasRole(bytes32 role, address account) view returns (bool)", + "function ownerTotalSupply(address owner) view returns (uint256)", + "function pause()", + "function paused() view returns (bool)", + "function renounceRole(bytes32 role, address account)", + "function revokeRole(bytes32 role, address account)", + "function supportsInterface(bytes4 interfaceId) view returns (bool)", + "function totalSupply() view returns (uint256)", + "function unpause()", + "function update(uint256 index, string name, string author, string renderer_uri, string filters_uri)" +] diff --git a/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json.meta b/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json.meta new file mode 100644 index 0000000..74694da --- /dev/null +++ b/Resources/totem-common-files/ABI/fullName/TotemGameDirectory.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a1f17d4ffbfb28b478142e744597f4d0 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/fullName/TotemLegacy.json b/Resources/totem-common-files/ABI/fullName/TotemLegacy.json new file mode 100644 index 0000000..24261b6 --- /dev/null +++ b/Resources/totem-common-files/ABI/fullName/TotemLegacy.json @@ -0,0 +1,39 @@ +[ + "constructor()", + "event AssetLegacyRecord(uint256 indexed assetId, bytes32 indexed assetType, uint256 indexed gameId, uint256 recordId)", + "event GameLegacyRecord(uint256 indexed gameId, uint256 recordId)", + "event Paused(address account)", + "event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)", + "event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)", + "event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)", + "event Unpaused(address account)", + "function AVATAR_ASSET() view returns (bytes32)", + "function DEFAULT_ADMIN_ROLE() view returns (bytes32)", + "function GEM_ASSET() view returns (bytes32)", + "function ITEM_ASSET() view returns (bytes32)", + "function MANAGER_ROLE() view returns (bytes32)", + "function PAUSER_ROLE() view returns (bytes32)", + "function assetLegaciesOfAssetTotalSupply(uint256 assetId, bytes32 assetType) view returns (uint256 recordsCount)", + "function assetLegaciesOfGameTotalSupply(uint256 gameId, bytes32 assetType) view returns (uint256 recordsCount)", + "function assetLegaciesTotalSupply(bytes32 assetType) view returns (uint256 recordsCount)", + "function assetLegacyByIndex(uint256 index, bytes32 assetType) view returns (uint256 gameId, uint256 assetId, uint256 timestamp, string data)", + "function assetLegacyOfAssetByIndex(uint256 assetId_, uint256 index, bytes32 assetType) view returns (uint256 gameId, uint256 assetId, uint256 timestamp, string data)", + "function assetLegacyOfGameByIndex(uint256 gameId_, uint256 index, bytes32 assetType) view returns (uint256 gameId, uint256 assetId, uint256 timestamp, string data)", + "function createAssetLegacy(uint256 gameId, uint256 assetId, bytes32 assetType, string data)", + "function createGameLegacy(uint256 gameId, string data)", + "function gameLegaciesOfGameTotalSupply(uint256 gameId) view returns (uint256)", + "function gameLegaciesTotalSupply() view returns (uint256)", + "function gameLegacyByIndex(uint256 recordId) view returns (uint256 gameId, uint256 timestamp, string data)", + "function gameLegacyOfGameByIndex(uint256 gameId_, uint256 index) view returns (uint256 gameId, uint256 timestamp, string data)", + "function getRoleAdmin(bytes32 role) view returns (bytes32)", + "function getRoleMember(bytes32 role, uint256 index) view returns (address)", + "function getRoleMemberCount(bytes32 role) view returns (uint256)", + "function grantRole(bytes32 role, address account)", + "function hasRole(bytes32 role, address account) view returns (bool)", + "function pause()", + "function paused() view returns (bool)", + "function renounceRole(bytes32 role, address account)", + "function revokeRole(bytes32 role, address account)", + "function supportsInterface(bytes4 interfaceId) view returns (bool)", + "function unpause()" +] diff --git a/Resources/totem-common-files/ABI/fullName/TotemLegacy.json.meta b/Resources/totem-common-files/ABI/fullName/TotemLegacy.json.meta new file mode 100644 index 0000000..1998ebe --- /dev/null +++ b/Resources/totem-common-files/ABI/fullName/TotemLegacy.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f1e08c18b611377449831fe0ac90703b +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/json.meta b/Resources/totem-common-files/ABI/json.meta new file mode 100644 index 0000000..7335ab7 --- /dev/null +++ b/Resources/totem-common-files/ABI/json.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8ba78bf16e17a2342ac48c755425c4fd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/json/TotemGameDirectory.json b/Resources/totem-common-files/ABI/json/TotemGameDirectory.json new file mode 100644 index 0000000..3fa61d7 --- /dev/null +++ b/Resources/totem-common-files/ABI/json/TotemGameDirectory.json @@ -0,0 +1,633 @@ +[ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "createdBy", + "type": "address" + } + ], + "name": "GameCreate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "enum Status", + "name": "status", + "type": "uint8" + } + ], + "name": "GameStatusChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "updatedBy", + "type": "address" + } + ], + "name": "GameUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GAME_MANAGER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "PAUSER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "enum Status", + "name": "status", + "type": "uint8" + } + ], + "name": "changeStatus", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "string", + "name": "renderer_uri", + "type": "string" + }, + { + "internalType": "string", + "name": "filters_uri", + "type": "string" + } + ], + "name": "create", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "string", + "name": "renderer_uri", + "type": "string" + }, + { + "internalType": "string", + "name": "filters_uri", + "type": "string" + }, + { + "internalType": "enum Status", + "name": "status", + "type": "uint8" + } + ], + "name": "createByManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "gameByIndex", + "outputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "string", + "name": "renderer_uri", + "type": "string" + }, + { + "internalType": "string", + "name": "filters_uri", + "type": "string" + }, + { + "internalType": "enum Status", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "gameOfOwnerByIndex", + "outputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "string", + "name": "renderer_uri", + "type": "string" + }, + { + "internalType": "string", + "name": "filters_uri", + "type": "string" + }, + { + "internalType": "enum Status", + "name": "status", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getRoleMember", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleMemberCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "ownerTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "author", + "type": "string" + }, + { + "internalType": "string", + "name": "renderer_uri", + "type": "string" + }, + { + "internalType": "string", + "name": "filters_uri", + "type": "string" + } + ], + "name": "update", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/Resources/totem-common-files/ABI/json/TotemGameDirectory.json.meta b/Resources/totem-common-files/ABI/json/TotemGameDirectory.json.meta new file mode 100644 index 0000000..4969cc6 --- /dev/null +++ b/Resources/totem-common-files/ABI/json/TotemGameDirectory.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7fbe18ed47a63534a80cf93a39e679ed +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/ABI/json/TotemLegacy.json b/Resources/totem-common-files/ABI/json/TotemLegacy.json new file mode 100644 index 0000000..fd7a2dc --- /dev/null +++ b/Resources/totem-common-files/ABI/json/TotemLegacy.json @@ -0,0 +1,757 @@ +[ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "recordId", + "type": "uint256" + } + ], + "name": "AssetLegacyRecord", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "recordId", + "type": "uint256" + } + ], + "name": "GameLegacyRecord", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "AVATAR_ASSET", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "GEM_ASSET", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "ITEM_ASSET", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MANAGER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "PAUSER_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegaciesOfAssetTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "recordsCount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegaciesOfGameTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "recordsCount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegaciesTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "recordsCount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegacyByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "assetId_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegacyOfAssetByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + } + ], + "name": "assetLegacyOfGameByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "assetId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "assetType", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "name": "createAssetLegacy", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "name": "createGameLegacy", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + } + ], + "name": "gameLegaciesOfGameTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "gameLegaciesTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "recordId", + "type": "uint256" + } + ], + "name": "gameLegacyByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "gameId_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "gameLegacyOfGameByIndex", + "outputs": [ + { + "internalType": "uint256", + "name": "gameId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "string", + "name": "data", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getRoleMember", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleMemberCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } +] diff --git a/Resources/totem-common-files/ABI/json/TotemLegacy.json.meta b/Resources/totem-common-files/ABI/json/TotemLegacy.json.meta new file mode 100644 index 0000000..3e12e1c --- /dev/null +++ b/Resources/totem-common-files/ABI/json/TotemLegacy.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5f0c88aebae84cb439a98f7afd2667d5 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/LICENSE b/Resources/totem-common-files/LICENSE new file mode 100644 index 0000000..1335bfc --- /dev/null +++ b/Resources/totem-common-files/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Totem + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Resources/totem-common-files/LICENSE.meta b/Resources/totem-common-files/LICENSE.meta new file mode 100644 index 0000000..71ad5fe --- /dev/null +++ b/Resources/totem-common-files/LICENSE.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: be5dde33b1656c84f9de705b51f21567 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/README.md b/Resources/totem-common-files/README.md new file mode 100644 index 0000000..c9b8a51 --- /dev/null +++ b/Resources/totem-common-files/README.md @@ -0,0 +1,2 @@ +# totem-common-files +This repository contains the common static files, like filters and ABI of the smart contracts, that are required for several Totem system's components. diff --git a/Resources/totem-common-files/README.md.meta b/Resources/totem-common-files/README.md.meta new file mode 100644 index 0000000..5bcaf2d --- /dev/null +++ b/Resources/totem-common-files/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a31b864c35d320342be4edb72e985d4f +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters.meta b/Resources/totem-common-files/filters.meta new file mode 100644 index 0000000..e605520 --- /dev/null +++ b/Resources/totem-common-files/filters.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4643df08dc54fea48b19e032b6a928eb +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters/monk-vs-robots-avatar.json b/Resources/totem-common-files/filters/monk-vs-robots-avatar.json new file mode 100644 index 0000000..4749d50 --- /dev/null +++ b/Resources/totem-common-files/filters/monk-vs-robots-avatar.json @@ -0,0 +1,182 @@ +[ + {"description": "Sex", "id": "sex_bio", "type": "bool", "gene": 0, "start": 12, "length": 1}, + {"description": "Body Strength", "id": "body_strength", "type": "bool", "gene": 0, "start": 13, "length": 1}, + {"description": "Body Type", "id": "body_type", "type": "bool", "gene": 0, "start": 14, "length": 1}, + {"description": "Human Skin Color", "id": "human_skin_color", "type": "map", "gene": 1, "start": 0, "length": 4, + "values": [ + { + "value": 0, + "key": "#f9d4ab" + }, + { + "value": 1, + "key": "#efd2c4" + }, + { + "value": 2, + "key": "#e2c6c2" + }, + { + "value": 3, + "key": "#e0d0bb" + }, + { + "value": 4, + "key": "#ebb77d" + }, + { + "value": 5, + "key": "#dca788" + }, + { + "value": 6, + "key": "#cda093" + }, + { + "value": 7, + "key": "#ccab80" + }, + { + "value": 8, + "key": "#c58351" + }, + { + "value": 9, + "key": "#b37652" + }, + { + "value": 10, + "key": "#81574b" + }, + { + "value": 11, + "key": "#8a6743" + }, + { + "value": 12, + "key": "#7a3e10" + }, + { + "value": 13, + "key": "#5c2a19" + }, + { + "value": 14, + "key": "#472422" + }, + { + "value": 15, + "key": "#362714" + } + ]}, + {"description": "Human Hair Color", "id": "human_hair_color", "type": "map", "gene": 1, "start": 4, "length": 3, + "values": [ + { + "value": 0, + "key": "#b1b1b1" + }, + { + "value": 1, + "key": "#070504" + }, + { + "value": 2, + "key": "#341c0d" + }, + { + "value": 3, + "key": "#62422e" + }, + { + "value": 4, + "key": "#914329" + }, + { + "value": 5, + "key": "#cd622b" + }, + { + "value": 6, + "key": "#ad7b41" + }, + { + "value": 7, + "key": "#e4b877" + } + ] + }, + {"description": "Human Eye Color", "id": "human_eye_color", "type": "map", "gene": 1, "start": 7, "length": 3, + "values": [ + { + "value": 0, + "key": "#b5d6e0" + }, + { + "value": 1, + "key": "#90b4ca" + }, + { + "value": 2, + "key": "#a7ad7f" + }, + { + "value": 3, + "key": "#7c8b4f" + }, + { + "value": 4, + "key": "#c4a05f" + }, + { + "value": 5, + "key": "#a97e33" + }, + { + "value": 6, + "key": "#7a3411" + }, + { + "value": 7, + "key": "#3d0d04" + } + ] + }, + {"description": "Hair Style", "id": "hair_styles", "type": "map", "gene": 1, "start": 10, "length": 3, + "values": [ + { + "value": 0, + "key": "Afro" + }, + { + "value": 1, + "key": "Bang" + }, + { + "value": 2, + "key": "BigTail" + }, + { + "value": 3, + "key": "Curls" + }, + { + "value": 4, + "key": "Dreadlocks" + }, + { + "value": 5, + "key": "Mohawk" + }, + { + "value": 6, + "key": "MohawkWithTail" + }, + { + "value": 7, + "key": "Short" + } + ] + }, + {"description": "Primary Color", "id": "primary_color", "type": "Color", "gene": 2, "start": 0, "length": 24} + +] diff --git a/Resources/totem-common-files/filters/monk-vs-robots-avatar.json.meta b/Resources/totem-common-files/filters/monk-vs-robots-avatar.json.meta new file mode 100644 index 0000000..36d3ceb --- /dev/null +++ b/Resources/totem-common-files/filters/monk-vs-robots-avatar.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a9be90449e8e76442afa08f96e2e7878 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json b/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json new file mode 100644 index 0000000..d3e94ec --- /dev/null +++ b/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json @@ -0,0 +1,181 @@ +[ + {"description": "Body Strength", "id": "body_strength", "type": "bool", "gene": 0, "start": 13, "length": 1}, + {"description": "Body Type", "id": "body_type", "type": "bool", "gene": 0, "start": 14, "length": 1}, + {"description": "Human Skin Color", "id": "human_skin_color", "type": "map", "gene": 1, "start": 0, "length": 4, + "values": [ + { + "value": 0, + "key": "#f9d4ab" + }, + { + "value": 1, + "key": "#efd2c4" + }, + { + "value": 2, + "key": "#e2c6c2" + }, + { + "value": 3, + "key": "#e0d0bb" + }, + { + "value": 4, + "key": "#ebb77d" + }, + { + "value": 5, + "key": "#dca788" + }, + { + "value": 6, + "key": "#cda093" + }, + { + "value": 7, + "key": "#ccab80" + }, + { + "value": 8, + "key": "#c58351" + }, + { + "value": 9, + "key": "#b37652" + }, + { + "value": 10, + "key": "#81574b" + }, + { + "value": 11, + "key": "#8a6743" + }, + { + "value": 12, + "key": "#7a3e10" + }, + { + "value": 13, + "key": "#5c2a19" + }, + { + "value": 14, + "key": "#472422" + }, + { + "value": 15, + "key": "#362714" + } + ]}, + {"description": "Human Hair Color", "id": "human_hair_color", "type": "map", "gene": 1, "start": 4, "length": 3, + "values": [ + { + "value": 0, + "key": "#b1b1b1" + }, + { + "value": 1, + "key": "#070504" + }, + { + "value": 2, + "key": "#341c0d" + }, + { + "value": 3, + "key": "#62422e" + }, + { + "value": 4, + "key": "#914329" + }, + { + "value": 5, + "key": "#cd622b" + }, + { + "value": 6, + "key": "#ad7b41" + }, + { + "value": 7, + "key": "#e4b877" + } + ] + }, + {"description": "Human Eye Color", "id": "human_eye_color", "type": "map", "gene": 1, "start": 7, "length": 3, + "values": [ + { + "value": 0, + "key": "#b5d6e0" + }, + { + "value": 1, + "key": "#90b4ca" + }, + { + "value": 2, + "key": "#a7ad7f" + }, + { + "value": 3, + "key": "#7c8b4f" + }, + { + "value": 4, + "key": "#c4a05f" + }, + { + "value": 5, + "key": "#a97e33" + }, + { + "value": 6, + "key": "#7a3411" + }, + { + "value": 7, + "key": "#3d0d04" + } + ] + }, + {"description": "Hair Style", "id": "hair_styles", "type": "map", "gene": 1, "start": 10, "length": 3, + "values": [ + { + "value": 0, + "key": "afro" + }, + { + "value": 1, + "key": "asymmetrical" + }, + { + "value": 2, + "key": "braids" + }, + { + "value": 3, + "key": "buzz cut" + }, + { + "value": 4, + "key": "dreadlocks" + }, + { + "value": 5, + "key": "long" + }, + { + "value": 6, + "key": "ponytail" + }, + { + "value": 7, + "key": "short" + } + ] + }, + {"description": "Primary Color", "id": "primary_color", "type": "Color", "gene": 2, "start": 0, "length": 24} + +] diff --git a/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json.meta b/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json.meta new file mode 100644 index 0000000..ee23b37 --- /dev/null +++ b/Resources/totem-common-files/filters/totem-avatar-dreadstone-keep.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b9013f878adec5249aa07f0093b323b4 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters/totem-avatar.json b/Resources/totem-common-files/filters/totem-avatar.json new file mode 100644 index 0000000..5d77feb --- /dev/null +++ b/Resources/totem-common-files/filters/totem-avatar.json @@ -0,0 +1,182 @@ +[ + {"description": "Sex", "id": "sex_bio", "type": "bool", "gene": 0, "start": 12, "length": 1}, + {"description": "Body Strength", "id": "body_strength", "type": "bool", "gene": 0, "start": 13, "length": 1}, + {"description": "Body Type", "id": "body_type", "type": "bool", "gene": 0, "start": 14, "length": 1}, + {"description": "Human Skin Color", "id": "human_skin_color", "type": "map", "gene": 1, "start": 0, "length": 4, + "values": [ + { + "value": 0, + "key": "#f9d4ab" + }, + { + "value": 1, + "key": "#efd2c4" + }, + { + "value": 2, + "key": "#e2c6c2" + }, + { + "value": 3, + "key": "#e0d0bb" + }, + { + "value": 4, + "key": "#ebb77d" + }, + { + "value": 5, + "key": "#dca788" + }, + { + "value": 6, + "key": "#cda093" + }, + { + "value": 7, + "key": "#ccab80" + }, + { + "value": 8, + "key": "#c58351" + }, + { + "value": 9, + "key": "#b37652" + }, + { + "value": 10, + "key": "#81574b" + }, + { + "value": 11, + "key": "#8a6743" + }, + { + "value": 12, + "key": "#7a3e10" + }, + { + "value": 13, + "key": "#5c2a19" + }, + { + "value": 14, + "key": "#472422" + }, + { + "value": 15, + "key": "#362714" + } + ]}, + {"description": "Human Hair Color", "id": "human_hair_color", "type": "map", "gene": 1, "start": 4, "length": 3, + "values": [ + { + "value": 0, + "key": "#b1b1b1" + }, + { + "value": 1, + "key": "#070504" + }, + { + "value": 2, + "key": "#341c0d" + }, + { + "value": 3, + "key": "#62422e" + }, + { + "value": 4, + "key": "#914329" + }, + { + "value": 5, + "key": "#cd622b" + }, + { + "value": 6, + "key": "#ad7b41" + }, + { + "value": 7, + "key": "#e4b877" + } + ] + }, + {"description": "Human Eye Color", "id": "human_eye_color", "type": "map", "gene": 1, "start": 7, "length": 3, + "values": [ + { + "value": 0, + "key": "#b5d6e0" + }, + { + "value": 1, + "key": "#90b4ca" + }, + { + "value": 2, + "key": "#a7ad7f" + }, + { + "value": 3, + "key": "#7c8b4f" + }, + { + "value": 4, + "key": "#c4a05f" + }, + { + "value": 5, + "key": "#a97e33" + }, + { + "value": 6, + "key": "#7a3411" + }, + { + "value": 7, + "key": "#3d0d04" + } + ] + }, + {"description": "Hair Style", "id": "hair_styles", "type": "map", "gene": 1, "start": 10, "length": 3, + "values": [ + { + "value": 0, + "key": "afro" + }, + { + "value": 1, + "key": "asymmetrical" + }, + { + "value": 2, + "key": "braids" + }, + { + "value": 3, + "key": "buzz cut" + }, + { + "value": 4, + "key": "dreadlocks" + }, + { + "value": 5, + "key": "long" + }, + { + "value": 6, + "key": "ponytail" + }, + { + "value": 7, + "key": "short" + } + ] + }, + {"description": "Primary Color", "id": "primary_color", "type": "Color", "gene": 2, "start": 0, "length": 24} + +] diff --git a/Resources/totem-common-files/filters/totem-avatar.json.meta b/Resources/totem-common-files/filters/totem-avatar.json.meta new file mode 100644 index 0000000..631f1d3 --- /dev/null +++ b/Resources/totem-common-files/filters/totem-avatar.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ff4d7410a0c36f041bfdc76b5a79cfac +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json b/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json new file mode 100644 index 0000000..80fb773 --- /dev/null +++ b/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json @@ -0,0 +1,72 @@ +[ + { + "description": "Element", + "id": "classical_element", + "type": "map", + "gene": 0, + "start": 10, + "length": 2, + "values": [ + { + "key": "Air", + "value": 0 + }, + { + "key": "Earth", + "value": 1 + }, + { + "key": "Water", + "value": 2 + }, + { + "key": "Fire", + "value": 3 + } + ] + }, + { + "description": "Weapon Material", + "id": "weapon_material", + "type": "map", + "gene": 3, + "start": 0, + "length": 2, + "values": [ + { + "value": 0, + "key": "Bone" + }, + { + "value": 1, + "key": "Flint" + }, + { + "value": 2, + "key": "Obsidian" + }, + { + "value": 3, + "key": "Wood" + } + ] + }, + { + "description": "Weapon Type", + "id": "weapon_type", + "type": "range", + "gene": 3, + "start": 3, + "length": 7, + "values": [ + { + "key": "Axe", + "value": [0, 50] + }, + { + "key": "Dagger", + "value": [51, 100] + } + ] + } +] diff --git a/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json.meta b/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json.meta new file mode 100644 index 0000000..24bfd00 --- /dev/null +++ b/Resources/totem-common-files/filters/totem-item-dreadstone-keep.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 37bdb25acdf162541a5bbfe5c6d13d12 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/filters/totem-item.json b/Resources/totem-common-files/filters/totem-item.json new file mode 100644 index 0000000..edd3983 --- /dev/null +++ b/Resources/totem-common-files/filters/totem-item.json @@ -0,0 +1,21 @@ +[ + {"description": "Primary Color", "id": "primary_color", "type": "Color", "gene": 2, "start": 0, "length": 24}, + + {"description": "Element", "id": "classical_element", "type": "map", "gene": 0, "start": 10, "length": 2, + "values": [{"key": "Air", "value": 0}, {"key": "Earth", "value": 1}, {"key": "Water", "value": 2}, {"key": "Fire", "value": 3}] + }, + {"description": "Damage", "id": "damage_nd", "type": "int", "gene": 9, "start": 0, "length": 32}, + {"description": "Range", "id": "range_nd", "type": "int", "gene": 8, "start": 0, "length": 32}, + {"description": "Power", "id": "power_nd", "type": "int", "gene": 11, "start": 0, "length": 32}, + {"description": "Magical Power", "id": "magical_exp", "type": "int", "gene": 12, "start": 0, "length": 16}, + {"description": "Weapon Material", "id": "weapon_material", "type": "range", "gene": 4, "start": 0, "length": 4, + "values": [ + {"key": "Bone", "value": [0, 7]}, + {"key": "Flint", "value": [8, 11]}, + {"key": "Obsidian", "value": [12, 14]}, + {"key": "Wood", "value": [15, 15]} + ] + } + + +] diff --git a/Resources/totem-common-files/filters/totem-item.json.meta b/Resources/totem-common-files/filters/totem-item.json.meta new file mode 100644 index 0000000..76bcc2f --- /dev/null +++ b/Resources/totem-common-files/filters/totem-item.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4bb949f44c81f5b4889c79443370f88e +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/index.js b/Resources/totem-common-files/index.js new file mode 100644 index 0000000..1b1f791 --- /dev/null +++ b/Resources/totem-common-files/index.js @@ -0,0 +1,8 @@ +exports.itemFilterJson = require('./filters/totem-item.json') +exports.avatarFilterJson = require('./filters/totem-avatar.json') +exports.assets_abi = require('./ABI/assets_abi.json') +exports.game_directory_abi = require('./ABI/json/TotemGameDirectory.json') +exports.legacy_abi = require('./ABI/json/TotemLegacy.json') +exports.totemAvatarDreadstoneKeepFilterJson = require('./filters/totem-avatar-dreadstone-keep.json') +exports.monkVsRobotsAvatarFilterJson = require('./filters/monk-vs-robots-avatar.json') + diff --git a/Resources/totem-common-files/index.js.meta b/Resources/totem-common-files/index.js.meta new file mode 100644 index 0000000..eb66529 --- /dev/null +++ b/Resources/totem-common-files/index.js.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7657077c3c677a643ab0964bd251741a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Resources/totem-common-files/package.json b/Resources/totem-common-files/package.json new file mode 100644 index 0000000..95f5c46 --- /dev/null +++ b/Resources/totem-common-files/package.json @@ -0,0 +1,23 @@ +{ + "name": "totem-common-files", + "version": "1.0.0", + "description": "Totem common files", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Totem-gdn/totem-common-files.git" + }, + "author": "", + "license": "MIT", + "bugs": { + "url": "https://github.com/Totem-gdn/totem-common-files/issues" + }, + "homepage": "https://github.com/Totem-gdn/totem-common-files#readme", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } +} diff --git a/Resources/totem-common-files/package.json.meta b/Resources/totem-common-files/package.json.meta new file mode 100644 index 0000000..3d9311c --- /dev/null +++ b/Resources/totem-common-files/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7db2374c07b7e154e85c5f2ddbb25f5d +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/package.json b/package.json index 1577da0..f405ac1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.totem.totemcore", - "version": "4.0.0", + "version": "4.1.0", "displayName": "Totem Core for Unity", "description": "Totem plugin that enables interaction with Totem services and assets", "unity": "2019.4",