gno.land/r/gnoswap/staker/v1
README.md assert.gno calculate_pool_position_reward.gno consts.gno doc.gno errors.gno event_info.gno external_deposit_fee.gno external_incentive.gno external_token_list.gno getter.gno gnomod.toml init.gno instance.gno manage_pool_tier_and_warmup.gno protocol_fee_unstaking.gno reward_calculation_incentives.gno reward_calculation_pool.gno reward_calculation_pool_tier.gno reward_calculation_tick.gno reward_calculation_types.gno reward_calculation_warmup.gno staker.gno type.gno utils.gno
[
{
"FuncName": "NewTickCrossEventInfo",
"Params": [
{
"Name": "tickID",
"Type": "int32",
"Value": ""
},
{
"Name": "stakedLiquidityGross",
"Type": "*gno.land/p/gnoswap/uint256.Uint",
"Value": ""
},
{
"Name": "stakedLiquidityDelta",
"Type": "*gno.land/p/gnoswap/int256.Int",
"Value": ""
},
{
"Name": "outsideAccumulation",
"Type": "*gno.land/p/gnoswap/uint256.Uint",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.tickCrossEventInfo",
"Value": ""
}
]
},
{
"FuncName": "NewStakerV1",
"Params": [
{
"Name": "stakerStore",
"Type": "interface {AddAllowedToken func(int, .uverse.realm, string) .uverse.error; GetAllowedTokens func() []string; GetCurrentSwapBatch func() *gno.land/r/gnoswap/staker.SwapBatchProcessor; GetDepositGnsAmount func() int64; GetDeposits func() *gno.land/p/nt/bptree/v0.BPTree; GetExternalIncentives func() *gno.land/p/nt/bptree/v0.BPTree; GetExternalIncentivesByCreationTime func() *gno.land/r/gnoswap/staker.UintTree; GetIncentiveCounter func() *gno.land/r/gnoswap/staker.Counter; GetMinimumRewardAmount func() int64; GetPendingProtocolFees func() map[string]int64; GetPoolTierCounts func() [4]uint64; GetPoolTierCurrentEmission func() int64; GetPoolTierGetEmission func() func() int64; GetPoolTierGetHalvingBlocksInRange func() func(int64, int64) ([]int64, []int64); GetPoolTierLastRewardCacheTimestamp func() int64; GetPoolTierMemberships func() *gno.land/p/nt/bptree/v0.BPTree; GetPoolTierRatio func() gno.land/r/gnoswap/staker.TierRatio; GetPools func() *gno.land/p/nt/bptree/v0.BPTree; GetTokenSpecificMinimumRewards func() map[string]int64; GetTotalEmissionSent func() int64; GetUnstakingFee func() uint64; GetWarmupTemplate func() []gno.land/r/gnoswap/staker.Warmup; HasAllowedTokensStoreKey func() bool; HasCurrentSwapBatchStoreKey func() bool; HasDepositGnsAmountStoreKey func() bool; HasDepositsStoreKey func() bool; HasExternalIncentivesByCreationTimeStoreKey func() bool; HasExternalIncentivesStoreKey func() bool; HasIncentiveCounterStoreKey func() bool; HasMinimumRewardAmountStoreKey func() bool; HasPendingProtocolFeesStoreKey func() bool; HasPoolTierCountsStoreKey func() bool; HasPoolTierCurrentEmissionStoreKey func() bool; HasPoolTierGetEmissionStoreKey func() bool; HasPoolTierGetHalvingBlocksInRangeStoreKey func() bool; HasPoolTierLastRewardCacheTimestampStoreKey func() bool; HasPoolTierMembershipsStoreKey func() bool; HasPoolTierRatioStoreKey func() bool; HasPoolsStoreKey func() bool; HasTokenSpecificMinimumRewardsStoreKey func() bool; HasTotalEmissionSentStoreKey func() bool; HasUnstakingFeeStoreKey func() bool; HasWarmupTemplateStoreKey func() bool; NextIncentiveID func(.uverse.address, int64) string; RemoveAllowedToken func(int, .uverse.realm, string) .uverse.error; RemoveTokenSpecificMinimumRewardItem func(int, .uverse.realm, string) .uverse.error; SetAllowedTokens func(int, .uverse.realm, []string) .uverse.error; SetCurrentSwapBatch func(int, .uverse.realm, *gno.land/r/gnoswap/staker.SwapBatchProcessor) .uverse.error; SetDepositGnsAmount func(int, .uverse.realm, int64) .uverse.error; SetDeposits func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error; SetExternalIncentives func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error; SetExternalIncentivesByCreationTime func(int, .uverse.realm, *gno.land/r/gnoswap/staker.UintTree) .uverse.error; SetIncentiveCounter func(int, .uverse.realm, *gno.land/r/gnoswap/staker.Counter) .uverse.error; SetMinimumRewardAmount func(int, .uverse.realm, int64) .uverse.error; SetPendingProtocolFees func(int, .uverse.realm, map[string]int64) .uverse.error; SetPoolTierCounts func(int, .uverse.realm, [4]uint64) .uverse.error; SetPoolTierCurrentEmission func(int, .uverse.realm, int64) .uverse.error; SetPoolTierGetEmission func(int, .uverse.realm, func() int64) .uverse.error; SetPoolTierGetHalvingBlocksInRange func(int, .uverse.realm, func(int64, int64) ([]int64, []int64)) .uverse.error; SetPoolTierLastRewardCacheTimestamp func(int, .uverse.realm, int64) .uverse.error; SetPoolTierMemberships func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error; SetPoolTierRatio func(int, .uverse.realm, gno.land/r/gnoswap/staker.TierRatio) .uverse.error; SetPools func(int, .uverse.realm, *gno.land/p/nt/bptree/v0.BPTree) .uverse.error; SetTokenSpecificMinimumRewardItem func(int, .uverse.realm, string, int64) .uverse.error; SetTokenSpecificMinimumRewards func(int, .uverse.realm, map[string]int64) .uverse.error; SetTotalEmissionSent func(int, .uverse.realm, int64) .uverse.error; SetUnstakingFee func(int, .uverse.realm, uint64) .uverse.error; SetWarmupTemplate func(int, .uverse.realm, []gno.land/r/gnoswap/staker.Warmup) .uverse.error}",
"Value": ""
},
{
"Name": "poolAccessor",
"Type": "interface {ExistsPoolPath func(string) bool; GetSlot0SqrtPriceX96 func(string) string; GetSlot0Tick func(string) int32; SetSwapEndHook func(int, .uverse.realm, func(int, .uverse.realm, string) .uverse.error); SetSwapStartHook func(int, .uverse.realm, func(int, .uverse.realm, string, int64)); SetTickCrossHook func(int, .uverse.realm, func(int, .uverse.realm, string, int32, bool, int64))}",
"Value": ""
},
{
"Name": "emissionAccessor",
"Type": "interface {GetStakerEmissionAmountPerSecond func() int64; GetStakerEmissionAmountPerSecondInRange func(int64, int64) ([]int64, []int64); MintAndDistributeGns func(int, .uverse.realm) (int64, bool); SetOnDistributionPctChangeCallback func(int, .uverse.realm, func(int, .uverse.realm, int64))}",
"Value": ""
},
{
"Name": "nftAccessor",
"Type": "interface {Approve func(int, .uverse.realm, .uverse.address, gno.land/p/gnoswap/deps/grc721.TokenID) .uverse.error; Burn func(int, .uverse.realm, gno.land/p/gnoswap/deps/grc721.TokenID); Exists func(gno.land/p/gnoswap/deps/grc721.TokenID) bool; Mint func(int, .uverse.realm, .uverse.address, gno.land/p/gnoswap/deps/grc721.TokenID) gno.land/p/gnoswap/deps/grc721.TokenID; MustOwnerOf func(gno.land/p/gnoswap/deps/grc721.TokenID) .uverse.address; OwnerOf func(gno.land/p/gnoswap/deps/grc721.TokenID) (.uverse.address, .uverse.error); TotalSupply func() int64; TransferFrom func(int, .uverse.realm, .uverse.address, .uverse.address, gno.land/p/gnoswap/deps/grc721.TokenID) .uverse.error}",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.stakerV1",
"Value": ""
}
]
},
{
"FuncName": "NewIncentivesResolver",
"Params": [
{
"Name": "incentives",
"Type": "*gno.land/r/gnoswap/staker.Incentives",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.IncentivesResolver",
"Value": ""
}
]
},
{
"FuncName": "NewPools",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.Pools",
"Value": ""
}
]
},
{
"FuncName": "NewPoolResolver",
"Params": [
{
"Name": "pool",
"Type": "*gno.land/r/gnoswap/staker.Pool",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.PoolResolver",
"Value": ""
}
]
},
{
"FuncName": "TierRatioFromCounts",
"Params": [
{
"Name": "tier1Count",
"Type": "uint64",
"Value": ""
},
{
"Name": "tier2Count",
"Type": "uint64",
"Value": ""
},
{
"Name": "tier3Count",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "struct{Tier1 uint64; Tier2 uint64; Tier3 uint64}",
"Value": ""
}
]
},
{
"FuncName": "NewPoolTier",
"Params": [
{
"Name": "pools",
"Type": "*gno.land/r/gnoswap/staker/v1.Pools",
"Value": ""
},
{
"Name": "currentTime",
"Type": "int64",
"Value": ""
},
{
"Name": "initialPoolPath",
"Type": "string",
"Value": ""
},
{
"Name": "getEmission",
"Type": "func() int64",
"Value": ""
},
{
"Name": "getHalvingBlocksInRange",
"Type": "func(int64, int64) ([]int64, []int64)",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.PoolTier",
"Value": ""
}
]
},
{
"FuncName": "NewPoolTierBy",
"Params": [
{
"Name": "membership",
"Type": "*gno.land/p/nt/bptree/v0.BPTree",
"Value": ""
},
{
"Name": "tierRatio",
"Type": "struct{Tier1 uint64; Tier2 uint64; Tier3 uint64}",
"Value": ""
},
{
"Name": "counts",
"Type": "[4]uint64",
"Value": ""
},
{
"Name": "lastRewardCacheTimestamp",
"Type": "int64",
"Value": ""
},
{
"Name": "currentEmission",
"Type": "int64",
"Value": ""
},
{
"Name": "getEmission",
"Type": "func() int64",
"Value": ""
},
{
"Name": "getHalvingBlocksInRange",
"Type": "func(int64, int64) ([]int64, []int64)",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.PoolTier",
"Value": ""
}
]
},
{
"FuncName": "NewTickResolver",
"Params": [
{
"Name": "tick",
"Type": "*gno.land/r/gnoswap/staker.Tick",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.TickResolver",
"Value": ""
}
]
},
{
"FuncName": "EncodeUint",
"Params": [
{
"Name": "num",
"Type": "uint64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "EncodeInt64",
"Params": [
{
"Name": "num",
"Type": "int64",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "string",
"Value": ""
}
]
},
{
"FuncName": "DecodeUint",
"Params": [
{
"Name": "s",
"Type": "string",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "uint64",
"Value": ""
}
]
},
{
"FuncName": "DecodeInt64",
"Params": [
{
"Name": "s",
"Type": "string",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "int64",
"Value": ""
}
]
},
{
"FuncName": "NewDeposits",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.Deposits",
"Value": ""
}
]
},
{
"FuncName": "NewExternalIncentives",
"Params": null,
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.ExternalIncentives",
"Value": ""
}
]
},
{
"FuncName": "NewExternalIncentiveResolver",
"Params": [
{
"Name": "externalIncentive",
"Type": "*gno.land/r/gnoswap/staker.ExternalIncentive",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.ExternalIncentiveResolver",
"Value": ""
}
]
},
{
"FuncName": "NewDepositResolver",
"Params": [
{
"Name": "deposit",
"Type": "*gno.land/r/gnoswap/staker.Deposit",
"Value": ""
}
],
"Results": [
{
"Name": ".res.0",
"Type": "*gno.land/r/gnoswap/staker/v1.DepositResolver",
"Value": ""
}
]
}
](empty)