-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocgen-custom-markdown-extend.js
More file actions
84 lines (83 loc) · 4.64 KB
/
docgen-custom-markdown-extend.js
File metadata and controls
84 lines (83 loc) · 4.64 KB
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
82
83
84
module.exports = function dataExtend() {
return {
'contracts/CommunityCoin.sol': {
'description': [
'This it ERC777 contract "CommunityCoins".',
'Providing a functionality to create CommunityStakingPool and way to redeem CommunityCoins from this pools where user can stake own tokens.'
].join("<br>"),
//'constructor':{'custom:shortd': 'part of ERC20'},
'exclude': [
'ADMIN_ROLE', 'DEFAULT_ADMIN_ROLE', 'REDEEM_ROLE', 'CIRCULATION_ROLE', 'CIRCULATION_DEFAULT',
'authorizeOperator',
'decimals',
'defaultOperators',
'tokensReceived',
'supportsInterface',
],
'fix': {
'allowance': {'custom:shortd': 'part of ERC20'},
'approve': {'custom:shortd': 'part of ERC20'},
'balanceOf': {'custom:shortd': 'part of ERC777'},
'burn': {'custom:shortd': 'part of ERC777'},
'discountSensitivity': {'custom:shortd': 'view fraction of discount applied in redeem groups'},
'getInstance': {'custom:shortd': 'instances list'},
'getRoleAdmin': {'custom:shortd': 'returns the admin role that controls `role`.'},
'getRoleMember': {'custom:shortd': 'returns one of the accounts that have `role`'},
'getRoleMemberCount': {'custom:shortd': 'returns the number of accounts that have `role`'},
'grantRole': {'custom:shortd': 'grants `role` to `account`'},
'granularity': {'custom:shortd': 'part of ERC777'},
'hasRole': {'custom:shortd': 'returns `true` if `account` has been granted `role`'},
'hook': {'custom:shortd': 'view address of hook contract'},
'implementation': {'custom:shortd': 'view address of pool implementation'},
'instances': {'custom:shortd': 'public list of created instances'},
'isOperatorFor': {'custom:shortd': 'part of ERC777'},
'operatorBurn': {'custom:shortd': 'part of ERC777'},
'operatorSend': {'custom:shortd': 'part of ERC777'},
'name': {'custom:shortd': 'name of WalletToken'},
'owner': {'custom:shortd': 'contract factory\'s owner '},
'renounceOwnership': {'custom:calledby': 'owner', 'custom:shortd': 'leaves the contract without owner and owner role'},
'renounceRole': {'custom:calledby': 'owner','custom:shortd': 'revokes `role` from the calling account.'},
'revokeOperator': {'custom:shortd': 'part of ERC777'},
'revokeRole': {'custom:calledby': 'owner','custom:shortd': 'evokes `role` from `account`'},
'send': {'custom:shortd': 'part of ERC777'},
'symbol': {'custom:shortd': 'symbol of WalletToken'},
'totalSupply': {'custom:shortd': 'total amount of WalletToken'},
'transfer': {'custom:shortd': 'part of ERC777'},
'transferFrom': {'custom:shortd': 'part of ERC777'},
'transferOwnership': {'custom:shortd': 'transfer ownership contract to newOwner'},
},
},
'contracts/CommunityStakingPool.sol': {
'description': [
'This is pool contract.',
'Can be created by CommunityCoin contract.',
'Provide a functionality to buy and stake liquidity and getting in return Community Coins(See CommunityCoin contract).'
].join("<br>"),
'exclude': [
'authorizeOperator',
'decimals',
'defaultOperators',
'tokensReceived',
'supportsInterface',
],
'fix': {
'name': {'custom:shortd': 'name of LP token'},
'symbol': {'custom:shortd': 'symbol of LP token'},
}
},
'contracts/CommunityCoinFactory.sol': {
'description': [
'This is factory contract.',
'Provide a functionality to create CommunityCoin'
].join("<br>"),
'exclude': [],
'fix': {
'getInstance': {'custom:shortd': 'instances list'},
'instances': {'custom:shortd': 'public list of created instances'},
'owner': {'custom:shortd': 'owner of staking contract. Part of `Ownable` contract'},
'renounceOwnership': {'custom:shortd': 'Part of `Ownable` contract'},
'transferOwnership': {'custom:shortd': 'Part of `Ownable` contract'},
},
},
};
}