Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[250 SigmaUSD] Implement Option.map, filter methods #360

Closed
greenhat opened this issue Aug 2, 2021 · 3 comments
Closed

[250 SigmaUSD] Implement Option.map, filter methods #360

greenhat opened this issue Aug 2, 2021 · 3 comments
Labels
bounty Bounty for resolving the issue good first issue Good for newcomers

Comments

@greenhat
Copy link
Member

greenhat commented Aug 2, 2021

Create ergotree_ir::types::soption module, add STypeCompanion and SMethod instances (see sgroup_elem module for examples).
Add EvalFn in ertotree-interpreter::eval::soption and include it in ergotree-interpreter::eval::smethod_eval_fn

See existing method implementations in sgroup_elem, scoll and sbox for examples;

Reference Scala version:
https://github.com/ScorexFoundation/sigmastate-interpreter/blob/0c5c5b515ccb452536e440469b56d763d5ba30ec/sigmastate/src/main/scala/sigmastate/types.scala#L1283-L1298

@greenhat greenhat added good first issue Good for newcomers bounty Bounty for resolving the issue labels Aug 2, 2021
@ApexTheory
Copy link
Contributor

ApexTheory commented Aug 26, 2021

I have started on this issue.

PR open https://github.com/ergoplatform/sigma-rust/pull/388/files

@greenhat
Copy link
Member Author

greenhat commented Sep 7, 2021

Done in #388.

@greenhat greenhat closed this as completed Sep 7, 2021
@greenhat
Copy link
Member Author

greenhat commented Sep 7, 2021

Bounty is sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty Bounty for resolving the issue good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants