-
Notifications
You must be signed in to change notification settings - Fork 0
/
nft.yaml
81 lines (81 loc) · 1.7 KB
/
nft.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cidl: "0.8"
info:
name: nft
title: RiseIn NFT
version: 0.0.1
license:
name: Unlicense
identifier: Unlicense
types:
GemMetadata:
solana:
seeds:
- name: "gem"
- name: mint
type: sol:pubkey
fields:
- name: color
type: string
solana:
attributes: [ cap:16 ]
- name: rarity
type: string
solana:
attributes: [ cap:16 ]
- name: short_description
type: string
solana:
attributes: [ cap:255 ]
- name: mint
type: sol:pubkey
- name: assoc_account
type: rs:option<sol:pubkey>
methods:
- name: mint
uses:
- csl_spl_token.initialize_mint2
- csl_spl_assoc_token.create
- csl_spl_token.mint_to
- csl_spl_token.set_authority
inputs:
- name: mint
type: csl_spl_token.Mint
solana:
attributes: [ init ]
- name: gem
type: GemMetadata
solana:
attributes: [ init ]
seeds:
mint: mint
- name: color
type: string
- name: rarity
type: string
- name: short_description
type: string
- name: transfer
uses:
- csl_spl_assoc_token.create
- csl_spl_token.transfer_checked
inputs:
- name: mint
type: csl_spl_token.Mint
- name: gem
type: GemMetadata
solana:
attributes: [ mut ]
seeds:
mint: mint
- name: burn
uses:
- csl_spl_token.burn
inputs:
- name: mint
type: csl_spl_token.Mint
- name: gem
type: GemMetadata
solana:
attributes: [ mut ]
seeds:
mint: mint