Realm

gno.land/r/gnoswap/pool

Render

this realm has no Render() output

Query (read-only)

non-crossing functions · no tx, no wallet needed
DecodeTickKey(s string) → int32
DrySwap(token0Path string, token1Path string, fee uint32, zeroForOne bool, amountSpecified string, sqrtPriceLimitX96 string) → string, string, bool
EncodePositionKey(tickLower int32, tickUpper int32) → string
EncodeTickKey(tick int32) → string
ExistsPoolPath(poolPath string) → bool
GetBalances(poolPath string) → int64, int64
GetBalanceToken0(poolPath string) → int64
GetBalanceToken1(poolPath string) → int64
GetFee(poolPath string) → uint32
GetFeeAmountTickSpacing(fee uint32) → int32
GetFeeAmountTickSpacings() → map[uint32]int32
GetFeeGrowthGlobal0X128(poolPath string) → string
GetFeeGrowthGlobal1X128(poolPath string) → string
GetFeeGrowthGlobalX128(poolPath string) → string, string
GetImplementationPackagePath() → string
GetInitializedTicksInRange(poolPath string, tickLower int32, tickUpper int32) → []int32
GetLiquidity(poolPath string) → string
GetObservation(poolPath string, secondsAgo int64) → int64, string, string, int64
GetObservationState(poolPath string) → *gno.land/r/gnoswap/pool.ObservationState, interface {Error func() string}
GetPool(token0Path string, token1Path string, fee uint32) → *gno.land/r/gnoswap/pool.Pool, interface {Error func() string}
GetPoolCount() → int
GetPoolCreationFee() → int64
GetPoolPath(token0Path string, token1Path string, fee uint32) → string
GetPoolPaths(offset int, count int) → []string
GetPoolPositionCount(poolPath string) → int
GetPoolPositionKeys(poolPath string, offset int, count int) → []string
GetPosition(poolPath string, key string) → struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}, interface {Error func() string}
GetPositionFeeGrowthInside0LastX128(poolPath string, key string) → string
GetPositionFeeGrowthInside1LastX128(poolPath string, key string) → string
GetPositionFeeGrowthInsideLastX128(poolPath string, key string) → string, string
GetPositionLiquidity(poolPath string, key string) → string
GetPositionTokensOwed(poolPath string, key string) → int64, int64
GetPositionTokensOwed0(poolPath string, key string) → int64
GetPositionTokensOwed1(poolPath string, key string) → int64
GetProtocolFeesToken0(poolPath string) → int64
GetProtocolFeesToken1(poolPath string) → int64
GetProtocolFeesTokens(poolPath string) → int64, int64
GetSlot0FeeProtocol(poolPath string) → uint8
GetSlot0SqrtPriceX96(poolPath string) → string
GetSlot0Tick(poolPath string) → int32
GetSlot0Unlocked(poolPath string) → bool
GetTickBitmaps(poolPath string, wordPos int16) → string, interface {Error func() string}
GetTickCumulativeOutside(poolPath string, tick int32) → int64
GetTickFeeGrowthOutside0X128(poolPath string, tick int32) → string
GetTickFeeGrowthOutside1X128(poolPath string, tick int32) → string
GetTickFeeGrowthOutsideX128(poolPath string, tick int32) → string, string
GetTickInfo(poolPath string, tick int32) → struct{liquidityGross string; liquidityNet string; feeGrowthOutside0X128 string; feeGrowthOutside1X128 string; tickCumulativeOutside int64; secondsPerLiquidityOutsideX128 string; secondsOutside uint32; initialized bool}, interface {Error func() string}
GetTickInitialized(poolPath string, tick int32) → bool
GetTickLiquidityGross(poolPath string, tick int32) → string
GetTickLiquidityNet(poolPath string, tick int32) → string
GetTickSecondsOutside(poolPath string, tick int32) → uint32
GetTickSecondsPerLiquidityOutsideX128(poolPath string, tick int32) → string
GetTickSpacing(poolPath string) → int32
GetToken0Path(poolPath string) → string
GetToken1Path(poolPath string) → string
GetTWAP(poolPath string, secondsAgo uint32) → int32, string, interface {Error func() string}
GetWithdrawalFee() → uint64
NewCallbackMarker() → *gno.land/r/gnoswap/pool.CallbackMarker
NewDefaultFeeAmountTickSpacing() → map[uint32]int32
NewDefaultObservation() → *gno.land/r/gnoswap/pool.Observation
NewDefaultPositionInfo() → struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}
NewObservation(blockTimestamp int64, tickCumulative int64, liquidityCumulative string, secondsPerLiquidityCumulativeX128 string, initialized bool) → *gno.land/r/gnoswap/pool.Observation
NewObservationState(currentTime int64) → *gno.land/r/gnoswap/pool.ObservationState
NewPool(token0Path string, token1Path string, fee uint32, sqrtPriceX96 *gno.land/p/gnoswap/uint256.Uint, tickSpacing int32, tick int32, slot0FeeProtocol uint8) → *gno.land/r/gnoswap/pool.Pool
NewPoolPositionsTree() → *gno.land/p/nt/bptree/v0.BPTree
NewPoolsTree() → *gno.land/p/nt/bptree/v0.BPTree
NewPoolTicksTree() → *gno.land/p/nt/bptree/v0.BPTree
NewPositionInfo() → struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}
NewSlot0(sqrtPriceX96 *gno.land/p/gnoswap/uint256.Uint, tick int32, feeProtocol uint8, unlocked bool) → struct{sqrtPriceX96 *gno.land/p/gnoswap/uint256.Uint; tick int32; feeProtocol uint8; unlocked bool}
NewTickInfo() → struct{liquidityGross string; liquidityNet string; feeGrowthOutside0X128 string; feeGrowthOutside1X128 string; tickCumulativeOutside int64; secondsPerLiquidityOutsideX128 string; secondsOutside uint32; initialized bool}
NewTokenPair() → struct{token0 int64; token1 int64}

Call functions (state-changing)

signs a tx via Adena
Burn(token0Path string, token1Path string, fee uint32, tickLower int32, tickUpper int32, liquidityAmount string, positionCaller string)
Collect(token0Path string, token1Path string, fee uint32, recipient string, tickLower int32, tickUpper int32, amount0Requested string, amount1Requested string)
CollectProtocol(token0Path string, token1Path string, fee uint32, recipient string, amount0Requested string, amount1Requested string)
CreatePool(token0Path string, token1Path string, fee uint32, sqrtPriceX96 string)
HandleWithdrawalFee(token0Path string, amount0 string, token1Path string, amount1 string, positionCaller string)
IncreaseObservationCardinalityNext(token0Path string, token1Path string, fee uint32, cardinalityNext uint16)
Mint(token0Path string, token1Path string, fee uint32, tickLower int32, tickUpper int32, liquidityAmount string, positionCaller string)
RegisterInitializer(initializer func(int, .uverse.realm, gno.land/r/gnoswap/pool.IPoolStore) gno.land/r/gnoswap/pool.IPool)
SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8)
SetPoolCreationFee(fee int64)
SetSwapEndHook(hook func(.uverse.realm, string) .uverse.error)
SetSwapStartHook(hook func(.uverse.realm, string, int64))
SetTickCrossHook(hook func(.uverse.realm, string, int32, bool, int64))
SetWithdrawalFee(fee uint64)
Swap(token0Path string, token1Path string, fee uint32, recipient string, zeroForOne bool, amountSpecified string, sqrtPriceLimitX96 string, payer string, swapCallback func(.uverse.realm, int64, int64, *gno.land/r/gnoswap/pool.CallbackMarker) .uverse.error)
UpgradeImpl(packagePath string)

All exported functions (88)

show raw signatures
NameParamsReturns
GetPoolCount [{"Name": ".res.0", "Type": "int", "Value": ""}]
GetPoolPaths [{"Name": "offset", "Type": "int", "Value": ""}, {"Name": "count", "Type": "int", "Value": ""}] [{"Name": ".res.0", "Type": "[]string", "Value": ""}]
ExistsPoolPath [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetBalances [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}, {"Name": ".res.1", "Type": "int64", "Value": ""}]
GetBalanceToken0 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetBalanceToken1 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetFee [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "uint32", "Value": ""}]
GetFeeAmountTickSpacings [{"Name": ".res.0", "Type": "map[uint32]int32", "Value": ""}]
GetFeeAmountTickSpacing [{"Name": "fee", "Type": "uint32", "Value": ""}] [{"Name": "spacing", "Type": "int32", "Value": ""}]
GetFeeGrowthGlobal0X128 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetFeeGrowthGlobal1X128 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetFeeGrowthGlobalX128 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
GetLiquidity [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetObservation [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "secondsAgo", "Type": "int64", "Value": ""}] [{"Name": "tickCumulative", "Type": "int64", "Value": ""}, {"Name": "liquidityCumulative", "Type": "string", "Value": ""}, {"Name": "secondsPerLiquidityCumulativeX128", "Type": "string", "Value": ""}, {"Name": "blockTimestamp", "Type": "int64", "Value": ""}]
GetPoolCreationFee [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetPositionFeeGrowthInside0LastX128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetPositionFeeGrowthInside1LastX128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetPositionFeeGrowthInsideLastX128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
GetPoolPositionCount [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int", "Value": ""}]
GetPoolPositionKeys [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "offset", "Type": "int", "Value": ""}, {"Name": "count", "Type": "int", "Value": ""}] [{"Name": ".res.0", "Type": "[]string", "Value": ""}]
GetPositionLiquidity [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetPositionTokensOwed0 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetPositionTokensOwed1 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetPositionTokensOwed [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}, {"Name": ".res.1", "Type": "int64", "Value": ""}]
GetProtocolFeesToken0 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProtocolFeesToken1 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetProtocolFeesTokens [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}, {"Name": ".res.1", "Type": "int64", "Value": ""}]
GetSlot0FeeProtocol [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "uint8", "Value": ""}]
GetSlot0SqrtPriceX96 [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetSlot0Tick [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int32", "Value": ""}]
GetSlot0Unlocked [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetTickCumulativeOutside [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "int64", "Value": ""}]
GetTickFeeGrowthOutside0X128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetTickFeeGrowthOutside1X128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetTickFeeGrowthOutsideX128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
GetTickInitialized [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "bool", "Value": ""}]
GetInitializedTicksInRange [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tickLower", "Type": "int32", "Value": ""}, {"Name": "tickUpper", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "[]int32", "Value": ""}]
GetTickLiquidityGross [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetTickLiquidityNet [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetTickSecondsOutside [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "uint32", "Value": ""}]
GetTickSecondsPerLiquidityOutsideX128 [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetTickSpacing [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int32", "Value": ""}]
GetToken0Path [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetToken1Path [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetWithdrawalFee [{"Name": ".res.0", "Type": "uint64", "Value": ""}]
GetTWAP [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "secondsAgo", "Type": "uint32", "Value": ""}] [{"Name": ".res.0", "Type": "int32", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}, {"Name": ".res.2", "Type": "interface {Error func() string}", "Value": ""}]
GetPool [{"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}] [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.Pool", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]
GetTickInfo [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "struct{liquidityGross string; liquidityNet string; feeGrowthOutside0X128 string; feeGrowthOutside1X128 string; tickCumulativeOutside int64; secondsPerLiquidityOutsideX128 string; secondsOutside uint32; initialized bool}", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]
GetTickBitmaps [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "wordPos", "Type": "int16", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]
GetPosition [{"Name": "poolPath", "Type": "string", "Value": ""}, {"Name": "key", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]
GetObservationState [{"Name": "poolPath", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.ObservationState", "Value": ""}, {"Name": ".res.1", "Type": "interface {Error func() string}", "Value": ""}]
NewDefaultPositionInfo [{"Name": ".res.0", "Type": "struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}", "Value": ""}]
NewObservationState [{"Name": "currentTime", "Type": "int64", "Value": ""}] [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.ObservationState", "Value": ""}]
NewObservation [{"Name": "blockTimestamp", "Type": "int64", "Value": ""}, {"Name": "tickCumulative", "Type": "int64", "Value": ""}, {"Name": "liquidityCumulative", "Type": "string", "Value": ""}, {"Name": "secondsPerLiquidityCumulativeX128", "Type": "string", "Value": ""}, {"Name": "initialized", "Type": "bool", "Value": ""}] [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.Observation", "Value": ""}]
NewDefaultObservation [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.Observation", "Value": ""}]
NewPool [{"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "sqrtPriceX96", "Type": "*gno.land/p/gnoswap/uint256.Uint", "Value": ""}, {"Name": "tickSpacing", "Type": "int32", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}, {"Name": "slot0FeeProtocol", "Type": "uint8", "Value": ""}] [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.Pool", "Value": ""}]
NewPoolsTree [{"Name": ".res.0", "Type": "*gno.land/p/nt/bptree/v0.BPTree", "Value": ""}]
NewPoolTicksTree [{"Name": ".res.0", "Type": "*gno.land/p/nt/bptree/v0.BPTree", "Value": ""}]
NewPoolPositionsTree [{"Name": ".res.0", "Type": "*gno.land/p/nt/bptree/v0.BPTree", "Value": ""}]
NewTokenPair [{"Name": ".res.0", "Type": "struct{token0 int64; token1 int64}", "Value": ""}]
NewSlot0 [{"Name": "sqrtPriceX96", "Type": "*gno.land/p/gnoswap/uint256.Uint", "Value": ""}, {"Name": "tick", "Type": "int32", "Value": ""}, {"Name": "feeProtocol", "Type": "uint8", "Value": ""}, {"Name": "unlocked", "Type": "bool", "Value": ""}] [{"Name": ".res.0", "Type": "struct{sqrtPriceX96 *gno.land/p/gnoswap/uint256.Uint; tick int32; feeProtocol uint8; unlocked bool}", "Value": ""}]
NewTickInfo [{"Name": ".res.0", "Type": "struct{liquidityGross string; liquidityNet string; feeGrowthOutside0X128 string; feeGrowthOutside1X128 string; tickCumulativeOutside int64; secondsPerLiquidityOutsideX128 string; secondsOutside uint32; initialized bool}", "Value": ""}]
NewPositionInfo [{"Name": ".res.0", "Type": "struct{liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64}", "Value": ""}]
NewDefaultFeeAmountTickSpacing [{"Name": ".res.0", "Type": "map[uint32]int32", "Value": ""}]
CreatePool [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "sqrtPriceX96", "Type": "string", "Value": ""}]
SetPoolCreationFee [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "fee", "Type": "int64", "Value": ""}]
IncreaseObservationCardinalityNext [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "cardinalityNext", "Type": "uint16", "Value": ""}]
Mint [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "tickLower", "Type": "int32", "Value": ""}, {"Name": "tickUpper", "Type": "int32", "Value": ""}, {"Name": "liquidityAmount", "Type": "string", "Value": ""}, {"Name": "positionCaller", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
Burn [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "tickLower", "Type": "int32", "Value": ""}, {"Name": "tickUpper", "Type": "int32", "Value": ""}, {"Name": "liquidityAmount", "Type": "string", "Value": ""}, {"Name": "positionCaller", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
Collect [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "recipient", "Type": "string", "Value": ""}, {"Name": "tickLower", "Type": "int32", "Value": ""}, {"Name": "tickUpper", "Type": "int32", "Value": ""}, {"Name": "amount0Requested", "Type": "string", "Value": ""}, {"Name": "amount1Requested", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
SetWithdrawalFee [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "fee", "Type": "uint64", "Value": ""}]
HandleWithdrawalFee [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "amount0", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "amount1", "Type": "string", "Value": ""}, {"Name": "positionCaller", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}, {"Name": ".res.2", "Type": "string", "Value": ""}, {"Name": ".res.3", "Type": "string", "Value": ""}]
Swap [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "recipient", "Type": "string", "Value": ""}, {"Name": "zeroForOne", "Type": "bool", "Value": ""}, {"Name": "amountSpecified", "Type": "string", "Value": ""}, {"Name": "sqrtPriceLimitX96", "Type": "string", "Value": ""}, {"Name": "payer", "Type": "string", "Value": ""}, {"Name": "swapCallback", "Type": "func(.uverse.realm, int64, int64, *gno.land/r/gnoswap/pool.CallbackMarker) .uverse.error", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
DrySwap [{"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "zeroForOne", "Type": "bool", "Value": ""}, {"Name": "amountSpecified", "Type": "string", "Value": ""}, {"Name": "sqrtPriceLimitX96", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}, {"Name": ".res.2", "Type": "bool", "Value": ""}]
SetSwapEndHook [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "hook", "Type": "func(.uverse.realm, string) .uverse.error", "Value": ""}]
SetSwapStartHook [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "hook", "Type": "func(.uverse.realm, string, int64)", "Value": ""}]
SetTickCrossHook [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "hook", "Type": "func(.uverse.realm, string, int32, bool, int64)", "Value": ""}]
CollectProtocol [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}, {"Name": "recipient", "Type": "string", "Value": ""}, {"Name": "amount0Requested", "Type": "string", "Value": ""}, {"Name": "amount1Requested", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}, {"Name": ".res.1", "Type": "string", "Value": ""}]
SetFeeProtocol [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "feeProtocol0", "Type": "uint8", "Value": ""}, {"Name": "feeProtocol1", "Type": "uint8", "Value": ""}]
NewPoolStore [{"Name": "kvStore", "Type": "interface {AddAuthorizedCaller func(int, .uverse.realm, .uverse.address, gno.land/p/gnoswap/store.Permission) .uverse.error; Delete func(int, .uverse.realm, string) .uverse.error; Get func(string) (interface {}, .uverse.error); GetAddress func(string) (.uverse.address, .uverse.error); GetAllKeys func() ([]string, .uverse.error); GetAuthorizedCallers func() (map[.uverse.address]gno.land/p/gnoswap/store.Permission, .uverse.error); GetBPTree func(string) (*gno.land/p/nt/bptree/v0.BPTree, .uverse.error); GetBool func(string) (bool, .uverse.error); GetDomainAddress func() .uverse.address; GetInt64 func(string) (int64, .uverse.error); GetString func(string) (string, .uverse.error); GetUint64 func(string) (uint64, .uverse.error); Has func(string) bool; IsWriteAuthorized func(.uverse.address) bool; RemoveAuthorizedCaller func(int, .uverse.realm, .uverse.address) .uverse.error; Set func(int, .uverse.realm, string, interface {}) .uverse.error; UpdateAuthorizedCaller func(int, .uverse.realm, .uverse.address, gno.land/p/gnoswap/store.Permission) .uverse.error}", "Value": ""}] [{"Name": ".res.0", "Type": "interface {GetFeeAmountTickSpacing func() map[uint32]int32; GetPendingProtocolFees func() map[string]int64; GetPoolCreationFee func() int64; GetPools func() *gno.land/p/nt/bptree/v0.BPTree; GetSlot0FeeProtocol func() uint8; GetSwapEndHook func() func(.uverse.realm, string) .uverse.error; GetSwapStartHook func() func(.uverse.realm, string, int64); GetTickCrossHook func() func(.uverse.realm, string, int32, bool, int64); GetUnlocked func() bool; GetWithdrawalFeeBPS func() uint64; HasFeeAmountTickSpacing func() bool; HasPendingProtocolFees func() bool; HasPoolCreationFee func() bool; HasPools func() bool; HasSlot0FeeProtocol func() bool; HasSwapEndHook func() bool; HasSwapStartHook func() bool; HasTickCrossHook func() bool; HasUnlocked func() bool; HasWithdrawalFeeBPS func() bool; SetFeeAmountTickSpacing func(int, .uverse.realm, map[uint32]int32) .uverse.error; SetPendingProtocolFees func(int, .uverse.realm, map[string]int64) .uverse.error; SetPoolCreationFee func(int, .uverse.realm, int64) .uverse.error; SetPools func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error; SetSlot0FeeProtocol func(int, .uverse.realm, uint8) .uverse.error; SetSwapEndHook func(int, .uverse.realm, func(.uverse.realm, string) .uverse.error) .uverse.error; SetSwapStartHook func(int, .uverse.realm, func(.uverse.realm, string, int64)) .uverse.error; SetTickCrossHook func(int, .uverse.realm, func(.uverse.realm, string, int32, bool, int64)) .uverse.error; SetUnlocked func(int, .uverse.realm, bool) .uverse.error; SetWithdrawalFeeBPS func(int, .uverse.realm, uint64) .uverse.error}", "Value": ""}]
NewCallbackMarker [{"Name": ".res.0", "Type": "*gno.land/r/gnoswap/pool.CallbackMarker", "Value": ""}]
RegisterInitializer [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "initializer", "Type": "func(int, .uverse.realm, gno.land/r/gnoswap/pool.IPoolStore) gno.land/r/gnoswap/pool.IPool", "Value": ""}]
UpgradeImpl [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "packagePath", "Type": "string", "Value": ""}]
GetImplementationPackagePath [{"Name": ".res.0", "Type": "string", "Value": ""}]
GetPoolPath [{"Name": "token0Path", "Type": "string", "Value": ""}, {"Name": "token1Path", "Type": "string", "Value": ""}, {"Name": "fee", "Type": "uint32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
EncodeTickKey [{"Name": "tick", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
EncodePositionKey [{"Name": "tickLower", "Type": "int32", "Value": ""}, {"Name": "tickUpper", "Type": "int32", "Value": ""}] [{"Name": ".res.0", "Type": "string", "Value": ""}]
DecodeTickKey [{"Name": "s", "Type": "string", "Value": ""}] [{"Name": ".res.0", "Type": "int32", "Value": ""}]

Files

Storage

{
  "raw": "storage: 1617720, deposit: 161772000"
}