Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contract that call on-chain views and keep the result in storage.
This is like contractConsumer
, but it is
_active_ - you call it, not the contract containing the view, in order to
access the view.
TODO [#708]: mention that calling views directly should be preferred.
Synopsis
- contractRequester :: forall name arg ret vd cp st. (NiceParameterFull cp, NiceStorage cp, NiceParameterFull arg, NiceStorageFull [ret], NiceViewable arg, NiceViewable ret, HasView vd name arg ret, Typeable vd, KnownSymbol name) => ContractHandle cp st vd -> Contract arg [ret] ()
Documentation
contractRequester :: forall name arg ret vd cp st. (NiceParameterFull cp, NiceStorage cp, NiceParameterFull arg, NiceStorageFull [ret], NiceViewable arg, NiceViewable ret, HasView vd name arg ret, Typeable vd, KnownSymbol name) => ContractHandle cp st vd -> Contract arg [ret] () Source #
Allows calling a view multiple times, remembering results in last-goes-first order.
contractRequester @"viewName" contractWithView