v0 source pure
Package whitelist holds the pool membership state used by the GnoSwap order whitelist realm.
Package whitelist holds the pool membership state used by the GnoSwap order whitelist realm.
Files:
- state.gno: State, a poolPath -> true B+tree with membership updates and queries
Each NewState creates an independent whitelist. Pools exposes membership and iteration through a read-only tree, without mutable tree access. This package does not validate pool existence or authorize callers; those checks and the separately managed DCA and Limit states live in gno.land/r/gnoswap/order/whitelist.
1
1
type State
structState holds one independently managed pool whitelist.
Methods on State
func AddPool
method on Statefunc HasPool
method on Statefunc Pools
method on StatePools exposes membership and iteration without mutable tree access.
func RemovePool
method on StateImports 2
/p/gnoswap/order/whitelist/v0