forked from DXgovernance/DAVI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
richContracts.json
93 lines (93 loc) · 2.9 KB
/
richContracts.json
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
85
86
87
88
89
90
91
92
93
[
{
"title": "Vesting contract for DXD token",
"tags": ["DXD", "DXdao", "factory"],
"networks": {
"5": "0x0000000000000000000000000000000000000000",
"1337": "0x0000000000000000000000000000000000000000"
},
"functions": [
{
"title": "Create vesting contract",
"functionName": "create",
"params": [
{
"type": "address",
"component": "address",
"name": "beneficiary",
"defaultValue": "",
"description": "Receiving address of tokens"
},
{
"type": "uint256",
"component": "date",
"name": "start",
"defaultValue": "",
"description": "Starting time for contract"
},
{
"type": "uint256",
"component": "time",
"name": "cliffDuration",
"defaultValue": "",
"description": "How long before cliff"
},
{
"type": "uint256",
"component": "time",
"name": "duration",
"defaultValue": "",
"description": "How long before contract finishes fully"
},
{
"type": "uint256",
"component": "tokenAmount",
"name": "value",
"defaultValue": "",
"description": "Number of tokens to vest"
}
],
"shortDescription": "Creates DXD vesting contracts for worker proposals",
"longDescription": "Factory contract to create new vesting contracts for the ERC20 token DXD with owenership then passed to the DXdao",
"spendsTokens": true,
"templateLiteral": "Vest ${value} ${approvalTokenSymbol} for ${duration} with ${cliffDuration} cliff for ${beneficiary}"
}
]
},
{
"title": "Swapr fees",
"tags": ["DXgov", "Guilds", "permissions"],
"networks": {
"5": "0x885b28d6b93087623483af5e5f7362bd6d8a0a6b",
"1337": "0x0000000000000000000000000000000000000000"
},
"functions": [
{
"title": "Set fee for a pool",
"functionName": "setSwapFee",
"params": [
{
"type": "address",
"component": "swaprPicker",
"name": "pair",
"title": "Pool",
"defaultValue": "",
"description": "Pool pair to set fee on"
},
{
"type": "uint32",
"component": "integer",
"name": "swapFee",
"title": "Swap Fee %",
"defaultValue": "",
"description": "Fee to be set for pair (10 = 0.1%)"
}
],
"shortDescription": "Sets the swap fee for a given pool on swapr",
"longDescription": "Sets the overall fee taken from a specific pool in swapr on this chain",
"templateLiteral": "Set fee for ${pair} to ${swapFee}",
"spendsTokens": false
}
]
}
]