-
Notifications
You must be signed in to change notification settings - Fork 10
/
IStatBlock.sol
64 lines (53 loc) · 1.84 KB
/
IStatBlock.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/**
* Authors: Moonstream Engineering (engineering - at - moonstream.to)
* GitHub: https://github.com/moonstream-to/web3
*/
// Interface ID: 9a7d8aed
//
// Calculated by solface: https://github.com/moonstream-to/solface
// solface version: 0.1.0
//
// To recalculate from root directory of this repo:
// $ jq .abi build/contracts/IStatBlock.json | solface -name IStatBlock -annotations | grep "Interface ID:"
interface IStatBlock {
event StatCreated(uint256 statID);
event StatDescriptorUpdated(uint256 indexed statID, string descriptor);
event StatAssigned(
address indexed tokenAddress,
uint256 indexed tokenID,
uint256 indexed statID,
uint256 value
);
function statBlockVersion() external view returns (string memory);
function isAdministrator(address account) external view returns (bool);
function createStat(string memory descriptor) external returns (uint256);
function describeStat(uint256) external view returns (string memory);
function setStatDescriptor(
uint256 statID,
string memory descriptor
) external;
function assignStats(
address tokenAddress,
uint256 tokenID,
uint256[] memory statIDs,
uint256[] memory values
) external;
function batchAssignStats(
address[] memory tokenAddresses,
uint256[] memory tokenIDs,
uint256[][] memory statIDs,
uint256[][] memory values
) external;
function getStats(
address tokenAddress,
uint256 tokenID,
uint256[] memory statIDs
) external view returns (uint256[] memory);
function batchGetStats(
address[] memory tokenAddresses,
uint256[] memory tokenIDs,
uint256[] memory statIDs
) external view returns (uint256[][] memory);
}