instance.gno
0.43 Kb · 23 lines
1package pool
2
3import (
4 "gno.land/r/gnoswap/pool"
5)
6
7type poolV1 struct {
8 store pool.IPoolStore
9}
10
11// NewPoolV1 constructs the version-one pool implementation around shared
12// persistent storage.
13//
14// Parameters:
15// - store: pool-domain storage implementation used by the returned API.
16//
17// Returns:
18// - implementation: IPool backed by store.
19func NewPoolV1(store pool.IPoolStore) pool.IPool {
20 return &poolV1{
21 store: store,
22 }
23}