Events
This section covers the events emitted by the SpaceManager contract. These events are useful when indexing usage of the protocol, allowing for efficient tracking and analysis of contract interactions.
We expose a public GraphQL API at https://api.coveprotocol.xyz that can be used to query these events and other contract data.
SpaceCreated
Emitted when a new space is created.
event SpaceCreated(
uint256 indexed spaceId,
address sender,
address indexed owner,
string name,
uint256 maxMembers,
uint256 joinFee,
address token
);
BalanceSet
Emitted when the balance for a specific user in a space is set.
event BalanceSet(
uint256 indexed spaceId,
address indexed user,
uint256 previousBalance,
uint256 newBalance
);
Deposit
Emitted when a user deposits funds into a space.
event Deposit(
uint256 indexed spaceId,
address indexed user,
uint256 amount
);
Withdrew
Emitted when a user withdraws funds from a space.
event Withdrew(
uint256 indexed spaceId,
address indexed user,
uint256 amount
);
WithdrawalEnabledSet
Emitted when the withdrawal enabled flag for a space is set.
event WithdrawalEnabledSet(uint256 indexed spaceId, bool enabled);
WithdrawalEnabledSetForUser
Emitted when the withdrawal enabled flag for a user in a space is set.
event WithdrawalEnabledSetForUser(
uint256 indexed spaceId,
address indexed user,
bool enabled
);