Instantiation โ
Basic instantiation โ
Fa2Nft
โ
python
ExampleFa2Nft(
metadata = sp.utils.metadata_of_url("http://example.com")
)
Fa2Fungible
โ
python
ExampleFa2Fungible(
metadata = sp.utils.metadata_of_url("http://example.com")
)
Fa2SingleAsset
โ
python
ExampleFa2SingleAsset(
metadata = sp.utils.metadata_of_url("http://example.com")
)
Optional arguments โ
The base classes accept optional entrypoints.
- policy: policies
- metadata_base: contract metadata
- ledger and token_metadata: see pre-minted tokens