Versailles Heroes
Search…
⌃K

GuildController

Querying Guild and Type Weights

GuildController.guild_types(_addr: address) -> int128: view
GuildController.guild_effective_weight(addr: address, time: uint256 = block.timestamp) -> uint256: view
GuildController.guild_relative_weight(addr: address, time: uint256 = block.timestamp) -> uint256: view
GuildController.get_type_weight(type_id) -> uint256: view
GuildController.get_total_weight() -> uint256: view
GuildController.get_weights_sum_per_type(type_id: int128) -> uint256: view
GuildController.belong_to_guild(user_addr: address, guild_addr: address) -> bool: view

Querying User Vote

GuildController.vote_user_slope(user:address, guild: address) -> uint256: view
GuildController.last_user_vote(user: address) -> uint256:view

Create New Guild and Add Types

GuildController.add_type(_name: String[64], _symbol: String[32], gas_addr: address, weight: uint256 = 0)
GuildController.create_guild(owner: address, guild_type: int128, rate: uint256) -> address

Add, remove members and transfer guild ownership

GuildController.add_member(guild_address: address, user addr: address)
GuildController.remove_member(user_addr: address):
GuildController.transfer_guild_ownership(new_owner: address):

Toggle Pause

GuildController.toggle_pause(guild_addr: address):

Change guild and GasEscrow template

GuildController.change_guild_contract(new_addr: address):
GuildController.change_gas_escrow_contract(new_addr: address):

Guild Voting

GuildController.refresh_guild_votes(user_addr: address, guild_addr: address):