forked from oxheadalpha/composed-fa2-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase_ft_contract.mligo
38 lines (24 loc) · 922 Bytes
/
base_ft_contract.mligo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(** Assemble different modules into a single FA2 contract implementation *)
(* Choose one of the admin modules implementation *)
(* #define USE_SIMPLE_ADMIN *)
#define USE_PAUSABLE_SIMPLE_ADMIN
(* #define USE_MULTI_ADMIN *)
(* #define USE_NO_ADMIN *)
(* Choose one of the minter admin modules implementation *)
#define USE_NULL_MINTER_ADMIN
(* #define USE_ADMIN_AS_MINTER *)
(* #define USE_MULTI_MINTER_ADMIN *)
(*
Choose minter functionality to plug-in.
You can choose multiple options independently, although "CAN_FREEZE" does not
make sense if at least one of "CAN_MINT", "CAN_BURN" is selected.
*)
(* #define CAN_MINT *)
(* #define CAN_BURN *)
(* #define CAN_FREEZE *)
(* Choose one of the FA2 core implementations *)
(* #define USE_NFT_TOKEN *)
#define USE_FUNGIBLE_TOKEN
(* #define USE_MULTI_FUNGIBLE_TOKEN *)
(** Contract entry point is "Asset.main" function *)
#include "../fa2_lib/fa2_asset.mligo"