Transaction
39CF47C8AFA227…6F4ACD547134
Block 1,651,926 · index 0 · indexed
Summary
- Hash
- 39CF47C8AFA2276599A035A6DE683E8DBA4069141AF2211CEC866F4ACD547134
- Block
- 1,651,926
- Size
- 1621 bytes
- Gas used
- 7,690,917 / 9,229,077
- Fee
- 9230 ugnot
- Status
- success
Messages
Arguments · 9
- #1whitelist
- #2doc.gno
- #3// 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. package whitelist
- #4gnomod.toml
- #5module = "gno.land/p/gnoswap/order/whitelist/v1" gno = "0.9"
- #6state.gno
- #7package whitelist import ( rotree "gno.land/p/nt/bptree/rotree/v0" bptree "gno.land/p/nt/bptree/v0" ) // State holds one independently managed pool whitelist. type State struct { pools *bptree.BPTree } func NewState() State { return State{pools: bptree.NewBPTreeN(16)} } func (s *State) AddPool(poolPath string) { s.pools.Set(poolPath, true) } func (s *State) RemovePool(poolPath string) { s.pools.Remove(poolPath) } func (s *State) HasPool(poolPath string) bool { return s.pools.Has(poolPath) } // Pools exposes membership and iteration without mutable tree access. func (s *State) Pools() *rotree.ReadOnlyTree { return rotree.Wrap(s.pools, nil) }
- #8/gno.MemPackageType
- #9 MPUserAll
Result log
msg:0,success:true,log:,events:[]