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.56 Kb · 22 lines
 1package launchpad
 2
 3import (
 4	"gno.land/r/gnoswap/launchpad"
 5)
 6
 7type launchpadV1 struct {
 8	store launchpad.ILaunchpadStore
 9}
10
11// NewLaunchpadV1 constructs a version-one launchpad implementation backed by launchpadStore.
12//
13// Parameters:
14//   - launchpadStore: store implementation used for all launchpad state reads and writes.
15//
16// Returns:
17//   - launchpad: launchpad implementation that delegates persistence to launchpadStore.
18func NewLaunchpadV1(launchpadStore launchpad.ILaunchpadStore) launchpad.ILaunchpad {
19	return &launchpadV1{
20		store: launchpadStore,
21	}
22}