WIP: [#272] Implement sample FA2 Indigo contract
Description
Implements a sample FA2 contract in Indigo with some tests as described in #272 (moved)
As of now, the implemented contract,
-
Could support multiple token types, (But for now token metadata only hold the metadata of a single token with id 0)
-
Permits owner or operator transfer
-
Owner hooks are optional
Some functionality was stripped from one of the suggested reference contract (stablecoin) and contract size as well as origination size obtained for both, and operation size was compared.
The modified stablecoin
contract's origination size and origination size of contract in this PR was approximately 5899
and 4664
bytes respectively.
Related issue(s)
Resolves #272 (moved)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Sandeep.C.R