Questions tagged [off-chain-views]
The off-chain-views tag has no usage guidance.
3
questions
0
votes
1
answer
48
views
What are the differences between the chain view decorators in SmartPy?
Considering the following SmartPy decorators:
@sp.utils.view
@sp.onchain_view
@sp.offchain_view
What are the differences in use between them?
1
vote
2
answers
37
views
When generating contract metadata with `sp.init_metadata` do you include or exclude on-chain views in the `views` array in the metadata?
When performing
self.init_metadata("metadata", some_metadata)
on contract metadata inside smartpy, should the list of views inside the TZIP-16 metadata only contain off-chain views, or must ...
1
vote
2
answers
80
views
Can off-chain views call on-chain views?
Is it possible to call and process the result of an on-chain view inside an off-chain view that is stored inside contract metadata?