Skip to content

WIP: [#272] Implement sample FA2 Indigo contract

Sandeep.C.R requested to merge sras/#272-sample-indigo-fa2 into master

Description

Implements a sample FA2 contract in Indigo with some tests as described in #272 (moved)

As of now, the implemented contract,

  1. Could support multiple token types, (But for now token metadata only hold the metadata of a single token with id 0)

  2. Permits owner or operator transfer

  3. 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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Sandeep.C.R

Merge request reports