Tortuga Finance Docs
  • Overview
    • Liquid Staking on Aptos
  • Stake APT
    • Tutorial: Stake APT via Tortuga
    • Tutorial: Buy tAPT from DEX
    • Use tAPT
    • Fees
    • Before You Stake
  • For Validators
    • How It Works
    • How to Join
  • For Developers
    • Integration Resources
    • Tortuga <> Pyth
  • Protocol
    • Overview
    • Whitepaper
    • Governance
    • Tokenomics
    • Reference
      • helpers::circular_buffer
      • helpers::math
      • helpers::pool
      • helpers::stake_pool_helpers
      • helpers::iterable_table_custom
      • oracle::validator_states
      • delegation::delegation_state
      • delegation::delegation_service
      • tortuga::validator_router
      • tortuga::stake_router
      • governance::permissions
      • governance::utils
      • tortuga_governance::staked_aptos
      • tortuga_governance::tortuga_governance
    • Security Audits
Powered by GitBook
On this page
  • Module 0xc0ded0c1::utils
  • module governance::utils
  • Function governance_address
  1. Protocol
  2. Reference

governance::utils

Previousgovernance::permissionsNexttortuga_governance::staked_aptos

Last updated 2 years ago

Module 0xc0ded0c1::utils

module governance::utils

This module contains utilities for the governance module.

use 0x1::type_info;

Function governance_address

Extracts the address where the struct for GovernanceType is stored.

public fun governance_address<GovernanceType>(): address
Implementation
public fun governance_address<GovernanceType>(): address {
    let type_info = type_info::type_of<GovernanceType>();
    type_info::account_address(&type_info)
}
module governance::utils
Function governance_address