[−][src]Struct cw_controllers::Claims
Implementations
impl<'a> Claims<'a>
[src]
pub const fn new(storage_key: &'a str) -> Self
[src]
pub fn create_claim(
&self,
storage: &mut dyn Storage,
addr: &CanonicalAddr,
amount: Uint128,
release_at: Expiration
) -> StdResult<()>
[src]
&self,
storage: &mut dyn Storage,
addr: &CanonicalAddr,
amount: Uint128,
release_at: Expiration
) -> StdResult<()>
This creates a claim, such that the given address can claim an amount of tokens after the release date.
pub fn claim_tokens(
&self,
storage: &mut dyn Storage,
addr: &CanonicalAddr,
block: &BlockInfo,
cap: Option<Uint128>
) -> StdResult<Uint128>
[src]
&self,
storage: &mut dyn Storage,
addr: &CanonicalAddr,
block: &BlockInfo,
cap: Option<Uint128>
) -> StdResult<Uint128>
This iterates over all mature claims for the address, and removes them, up to an optional cap. it removes the finished claims and returns the total amount of tokens to be released.
pub fn query_claims(
&self,
deps: Deps<'_>,
address: HumanAddr
) -> StdResult<ClaimsResponse>
[src]
&self,
deps: Deps<'_>,
address: HumanAddr
) -> StdResult<ClaimsResponse>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Claims<'a>
[src]
impl<'a> Send for Claims<'a>
[src]
impl<'a> Sync for Claims<'a>
[src]
impl<'a> Unpin for Claims<'a>
[src]
impl<'a> UnwindSafe for Claims<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,