-
Notifications
You must be signed in to change notification settings - Fork 29
/
DIAGRAM.txt
53 lines (50 loc) · 1.24 KB
/
DIAGRAM.txt
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
Table token_manager {
pubkey pubkey [pk]
version int
bump int
count int
num_invalidators int
issuer pubkey
mint pubkey
amount int
kind int
state int
state_changed_at int
invalidation_type int
recipient_token_account pubkey
receipt_mint Opt(pubkey)
claim_approver Opt(pubkey)
transfer_authority Opt(pubkey)
invalidators [pubkey]
}
Table time_invalidator {
pubkey string [pk, ref: > token_manager.invalidators]
bump int
expiration Opt(int)
token_manager pubkey [ref: > token_manager.pubkey]
duration_seconds Opt(int)
extension_payment_amount Opt(int)
extension_duration_seconds Opt(int)
extension_payment_mint Opt(pubkey)
max_expiration Opt(int)
disable_partial_extension Opt(bool)
}
Table use_invalidator {
pubkey string [pk, ref: > token_manager.invalidators]
bump int
usages int
token_manager pubkey [ref: > token_manager.pubkey]
use_authority Opt(pubkey)
total_usages Opt(int)
extension_payment_amount Opt(int)
extension_payment_mint Opt(pubkey)
extension_usages Opt(int)
max_usages Opt(int)
}
Table paid_claim_approver {
pubkey string [pk, ref: > token_manager.claim_approver]
bump int
payment_amount int
payment_mint pubkey
token_manager pubkey [ref: > token_manager.pubkey]
}