gno.land/r/gnoswap/position
README.md errors.gno getter.gno getter_utils.gno gnomod.toml position.gno proxy.gno state.gno store.gno types.gno upgrade.gno
[
{
"FuncName": "GetPositionCount",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "int",
"Value": ""
}
]
},
{
"FuncName": "GetPositionIDs",
"Params": [
{
"Name": "offset",
"Type": "int",
"Value": ""
},
{
"Name": "count",
"Type": "int",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "[]uint64",
"Value": ""
}
]
},
{
"FuncName": "GetPosition",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "struct{operator .uverse.address; poolKey string; tickLower int32; tickUpper int32; liquidity string; feeGrowthInside0LastX128 string; feeGrowthInside1LastX128 string; tokensOwed0 int64; tokensOwed1 int64; burned bool}",
"Value": ""
},
{
"Name": ".res.1",
"Type": "interface {Error func() string}",
"Value": ""
}
]
},
{
"FuncName": "IsBurned",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "bool",
"Value": ""
}
]
},
{
"FuncName": "IsInRange",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "bool",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTokenBalances",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetPositionToken0Balance",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetPositionToken1Balance",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetPositionFeeGrowthInside0LastX128",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionFeeGrowthInside1LastX128",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionFeeGrowthInsideLastX128",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionLiquidity",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionOperator",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionPoolKey",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTickLower",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int32",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTickUpper",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int32",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTicks",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int32",
"Value": ""
},
{
"Name": ".res.1",
"Type": "int32",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTokensOwed0",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTokensOwed1",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetPositionTokensOwed",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "GetUnclaimedFee",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "GetPositionOwner",
"Params": [
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "NewPosition",
"Params": [
{
"Name": "poolKey",
"Type": "string",
"Value": ""
},
{
"Name": "tickLower",
"Type": "int32",
"Value": ""
},
{
"Name": "tickUpper",
"Type": "int32",
"Value": ""
},
{
"Name": "liquidity",
"Type": "string",
"Value": ""
},
{
"Name": "feeGrowthInside0LastX128",
"Type": "string",
"Value": ""
},
{
"Name": "feeGrowthInside1LastX128",
"Type": "string",
"Value": ""
},
{
"Name": "tokensOwed0",
"Type": "int64",
"Value": ""
},
{
"Name": "tokensOwed1",
"Type": "int64",
"Value": ""
},
{
"Name": "burned",
"Type": "bool",
"Value": ""
},
{
"Name": "operator",
"Type": "string",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/position.Position",
"Value": ""
}
]
},
{
"FuncName": "NewPositionsTree",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/p/nt/bptree/v0.BPTree",
"Value": ""
}
]
},
{
"FuncName": "Mint",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "token0",
"Type": "string",
"Value": ""
},
{
"Name": "token1",
"Type": "string",
"Value": ""
},
{
"Name": "fee",
"Type": "uint32",
"Value": ""
},
{
"Name": "tickLower",
"Type": "int32",
"Value": ""
},
{
"Name": "tickUpper",
"Type": "int32",
"Value": ""
},
{
"Name": "amount0Desired",
"Type": "string",
"Value": ""
},
{
"Name": "amount1Desired",
"Type": "string",
"Value": ""
},
{
"Name": "amount0Min",
"Type": "string",
"Value": ""
},
{
"Name": "amount1Min",
"Type": "string",
"Value": ""
},
{
"Name": "deadline",
"Type": "int64",
"Value": ""
},
{
"Name": "mintTo",
"Type": "string",
"Value": ""
},
{
"Name": "referrer",
"Type": "string",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
},
{
"Name": ".res.2",
"Type": "string",
"Value": ""
},
{
"Name": ".res.3",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "IncreaseLiquidity",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
},
{
"Name": "amount0DesiredStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount1DesiredStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount0MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount1MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "deadline",
"Type": "int64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
},
{
"Name": ".res.2",
"Type": "string",
"Value": ""
},
{
"Name": ".res.3",
"Type": "string",
"Value": ""
},
{
"Name": ".res.4",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "DecreaseLiquidity",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
},
{
"Name": "liquidityStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount0MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount1MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "deadline",
"Type": "int64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
},
{
"Name": ".res.2",
"Type": "string",
"Value": ""
},
{
"Name": ".res.3",
"Type": "string",
"Value": ""
},
{
"Name": ".res.4",
"Type": "string",
"Value": ""
},
{
"Name": ".res.5",
"Type": "string",
"Value": ""
},
{
"Name": ".res.6",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "Reposition",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
},
{
"Name": "tickLower",
"Type": "int32",
"Value": ""
},
{
"Name": "tickUpper",
"Type": "int32",
"Value": ""
},
{
"Name": "amount0DesiredStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount1DesiredStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount0MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "amount1MinStr",
"Type": "string",
"Value": ""
},
{
"Name": "deadline",
"Type": "int64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
},
{
"Name": ".res.2",
"Type": "int32",
"Value": ""
},
{
"Name": ".res.3",
"Type": "int32",
"Value": ""
},
{
"Name": ".res.4",
"Type": "string",
"Value": ""
},
{
"Name": ".res.5",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "CollectFee",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
},
{
"Name": ".res.1",
"Type": "string",
"Value": ""
},
{
"Name": ".res.2",
"Type": "string",
"Value": ""
},
{
"Name": ".res.3",
"Type": "string",
"Value": ""
},
{
"Name": ".res.4",
"Type": "string",
"Value": ""
},
{
"Name": ".res.5",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "SetPositionOperator",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "positionId",
"Type": "uint64",
"Value": ""
},
{
"Name": "operator",
"Type": "string",
"Value": ""
}
],
"Results": null
},
{
"FuncName": "NewPositionStore",
"Params": [
{
"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": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "interface {GetPosition func(uint64) (gno.land/r/gnoswap/position.Position, bool); GetPositionNextID func() uint64; GetPositions func() *gno.land/p/nt/bptree/v0.BPTree; HasPosition func(uint64) bool; HasPositionNextIDStoreKey func() bool; HasPositionsStoreKey func() bool; RemovePosition func(int, .uverse.realm, uint64) .uverse.error; SetPosition func(int, .uverse.realm, uint64, gno.land/r/gnoswap/position.Position) .uverse.error; SetPositionNextID func(int, .uverse.realm, uint64) .uverse.error; SetPositions func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error}",
"Value": ""
}
]
},
{
"FuncName": "RegisterInitializer",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "initializer",
"Type": "func(int, .uverse.realm, gno.land/r/gnoswap/position.IPositionStore) gno.land/r/gnoswap/position.IPosition",
"Value": ""
}
],
"Results": null
},
{
"FuncName": "UpgradeImpl",
"Params": [
{
"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}",
"Value": ""
},
{
"Name": "packagePath",
"Type": "string",
"Value": ""
}
],
"Results": null
},
{
"FuncName": "GetImplementationPackagePath",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
}
](empty)