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

v0 source pure

Package whitelist holds the pool membership state used by the GnoSwap order whitelist realm.

Overview

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.

Functions 1

Types 1

type State

struct
1type State struct {
2	pools *bptree.BPTree
3}
source

State holds one independently managed pool whitelist.

Methods on State

func AddPool

method on State
1func (s *State) AddPool(poolPath string)
source

func HasPool

method on State
1func (s *State) HasPool(poolPath string) bool
source

func Pools

method on State
1func (s *State) Pools() *rotree.ReadOnlyTree
source

Pools exposes membership and iteration without mutable tree access.

func RemovePool

method on State
1func (s *State) RemovePool(poolPath string)
source

Dependencies

Source Files 3