HomeOverviewValsValidatorsGovGovernanceIBCRelayersN/AInfraInfra
/
powered by GATA HUB

r/gnoswap/gov/governance

Gno.land

Realm
Files21
Lines of code3,647excluding tests
Functions64exported
Storage185.9 KB18.59 GNOT deposit
DeployedSep 16, 2026block 77,261

Realm

Pathgno.land/r/gnoswap/gov/governance
Accountg109hw2sc704…8rhp4l8w
Deployerg1q5tjjv3kks…h8xfsk04
Transaction3BA1F3D0E0…4344D8E6
accessor.gno44 lines
1package governance
2
3import (
4 "gno.land/r/gnoswap/gov/staker"
5)
6
7type govStakerAccessor struct{}
8
9// GetTotalDelegationAmountAtSnapshot forwards an aggregate delegation-history lookup.
10//
11// Parameters:
12// - snapshotTime: Unix timestamp at or before which to select the latest total-delegation entry.
13//
14// Returns:
15// - int64: aggregate delegated amount at or before snapshotTime.
16// - bool: true when a qualifying history entry exists; false otherwise.
17func (g *govStakerAccessor) GetTotalDelegationAmountAtSnapshot(snapshotTime int64) (int64, bool) {
18 return staker.GetTotalDelegationAmountAtSnapshot(snapshotTime)
19}
20
21// GetUserDelegationAmountAtSnapshot forwards a user's delegation-history lookup.
22//
23// Parameters:
24// - userAddr: Delegator address whose historical amount is queried.
25// - snapshotTime: Unix timestamp at or before which to select the latest user entry.
26//
27// Returns:
28// - int64: user's delegated amount at or before snapshotTime.
29// - bool: true when a qualifying history entry exists; false otherwise.
30func (g *govStakerAccessor) GetUserDelegationAmountAtSnapshot(userAddr address, snapshotTime int64) (int64, bool) {
31 return staker.GetUserDelegationAmountAtSnapshot(userAddr, snapshotTime)
32}
33
34// GetTotalxGnsSupply returns the total xGNS supply reported by the staker realm.
35//
36// Returns:
37// - int64: total xGNS supply, including launchpad-held xGNS.
38func (g *govStakerAccessor) GetTotalxGnsSupply() int64 {
39 return staker.GetTotalxGnsSupply()
40}
41
42func newGovStakerAccessor() GovStakerAccessor {
43 return &govStakerAccessor{}
44}
FunctionParametersReturnsKind
NewConfig(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64)struct{VotingStartDelay int64; VotingPeriod int64; VotingWeightSmoothingDuration int64; Quorum int64; ProposalCreationThreshold int64; ExecutionDelay int64; ExecutionWindow int64}-
NewConfigPtr(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64)*Config-
NewDefaultConfig()struct{VotingStartDelay int64; VotingPeriod int64; VotingWeightSmoothingDuration int64; Quorum int64; ProposalCreationThreshold int64; ExecutionDelay int64; ExecutionWindow int64}-
NewConfigTree()*gno.land/p/nt/bptree/v0.BPTree-
NewCounter()*Counter-
GetLatestConfigVersion()int64-
GetCurrentProposalID()int64-
GetMaxSmoothingPeriod()int64-
GetLatestConfig()struct{VotingStartDelay int64; VotingPeriod int64; VotingWeightSmoothingDuration int64; Quorum int64; ProposalCreationThreshold int64; ExecutionDelay int64; ExecutionWindow int64}, error-
GetConfig(configVersion int64)struct{VotingStartDelay int64; VotingPeriod int64; VotingWeightSmoothingDuration int64; Quorum int64; ProposalCreationThreshold int64; ExecutionDelay int64; ExecutionWindow int64}, error-
GetProposals()*gno.land/p/nt/bptree/rotree/v0.ReadOnlyTree-
ExistsProposal(proposalID int64)bool-
1–12 of 641/6

Gnoswap Governance

Governance configuration

| Field | Value | | --- | --- | | Active implementation | gno\.land/r/gnoswap/gov/governance/v1 | | Latest configuration version | 1 | | Current proposal ID | 1 | | Maximum smoothing period | 2592000 |

Loading calls…
Calls48from 47 accounts
FunctionCallerStatusBlockAge
Voteg14m0n55…rgjt4jSuccess591,5289d ago
Voteg1zt5nr6…uv4s95Success580,8829d ago
Voteg1tprmc9…vf9nvpSuccess580,8739d ago
Voteg1setpjm…d7ygjsSuccess580,8609d ago
Voteg1fmyf2y…ldwk3tSuccess580,8549d ago
Voteg1zq2pve…sanljgSuccess580,8489d ago
Voteg1pt7qxx…jf33ldSuccess580,8399d ago
Voteg1pq6j5q…xeyx2pSuccess580,8319d ago
Voteg15a7jks…ccnsxwSuccess580,7859d ago
Voteg153vdrj…9x2g2kSuccess553,57211d ago
Voteg1vq438r…g3fgs6Success553,47611d ago
Voteg1v7c9pd…nz2frrSuccess553,42111d ago
1–12 of 481/4