Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

instance.gno

0.47 Kb · 20 lines
 1package staker
 2
 3import (
 4	"gno.land/r/gnoswap/gov/staker"
 5)
 6
 7type govStakerV1 struct {
 8	store staker.IGovStakerStore
 9}
10
11// NewGovStakerV1 creates the governance staker v1 implementation backed by store.
12//
13// Parameters:
14//   - store: governance-staker storage interface used by the implementation.
15//
16// Returns:
17//   - staker.IGovStaker: governance staker API backed by store.
18func NewGovStakerV1(store staker.IGovStakerStore) staker.IGovStaker {
19	return &govStakerV1{store}
20}