Skip to content

Commit 9d9d4fb

Browse files
authored
Adding DxDAO Token Registry GenericScheme (#1620)
* Added dxDAO Token Registry Generic Schemes * Added DXTokenRegistry Multi-Registry GenericSchema which replaces Omen, Mix and Exchange Schemes * Formatting
1 parent 192d2d4 commit 9d9d4fb

File tree

2 files changed

+118
-0
lines changed

2 files changed

+118
-0
lines changed

src/genericSchemeRegistry/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const ensRegistryInfo = require("./schemes/ENSRegistry.json");
1212
const ensPublicResolverInfo = require("./schemes/ENSPublicResolver.json");
1313
const registryLookupInfo = require("./schemes/RegistryLookup.json");
1414
const co2kenInfo = require("./schemes/CO2ken.json");
15+
const dXTokenRegistry = require("./schemes/dXTokenRegistry.json");
1516

1617
const KNOWNSCHEMES = [
1718
dutchXInfo,
@@ -22,6 +23,7 @@ const KNOWNSCHEMES = [
2223
ensPublicResolverInfo,
2324
gpInfo,
2425
registryLookupInfo,
26+
dXTokenRegistry,
2527
];
2628

2729
const SCHEMEADDRESSES: {[network: string]: { [address: string]: any}} = {
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"name": "Token Registry",
3+
"addresses": {
4+
"main": [
5+
"0x93DB90445B76329e9ed96ECd74e76D8fbf2590d8"
6+
],
7+
"rinkeby": [
8+
"0x03165DF66d9448E45c2f5137486af3E7e752a352"
9+
],
10+
"kovan": [
11+
"0x2C337c91A7FA83273F6D13721a2324c8B324f46e"
12+
],
13+
"private": [
14+
"0xAB8278343a98b50D7eca37c97CcB53393B82D049"
15+
]
16+
},
17+
"actions": [
18+
{
19+
"id": "addTokens",
20+
"label": "Add tokens",
21+
"description": "Add tokens to the Token Registry",
22+
"notes": "A list of available ListIds can be found <a target=\"_blank\" href=\"https://www.notion.so/DxDAO-Token-Registry-Lists-220e1411482342c4a7e47a641a676fcb\">here</a>",
23+
"fields": [
24+
{
25+
"label": "ListId",
26+
"name": "_listId"
27+
},
28+
{
29+
"label": "Tokens",
30+
"name": "_tokens",
31+
"placeholder":"Address (0x0000…)"
32+
}
33+
],
34+
"abi": {
35+
"inputs": [
36+
{
37+
"internalType": "uint256",
38+
"name": "_listId",
39+
"type": "uint256"
40+
},
41+
{
42+
"internalType": "address[]",
43+
"name": "_tokens",
44+
"type": "address[]"
45+
}
46+
],
47+
"name": "addTokens",
48+
"outputs": [],
49+
"stateMutability": "nonpayable",
50+
"type": "function"
51+
}
52+
},
53+
{
54+
"id": "removeTokens",
55+
"label": "Remove tokens",
56+
"description": "Remove tokens from the Token Registry",
57+
"notes": "A list of available ListIds can be found <a target=\"_blank\" href=\"https://www.notion.so/DxDAO-Token-Registry-Lists-220e1411482342c4a7e47a641a676fcb\">here</a>",
58+
"fields": [
59+
{
60+
"label": "ListId",
61+
"name": "_listId"
62+
},
63+
{
64+
"label": "Tokens",
65+
"name": "_tokens",
66+
"placeholder":"Address (0x0000…)"
67+
}
68+
],
69+
"abi": {
70+
"inputs": [
71+
{
72+
"internalType": "uint256",
73+
"name": "_listId",
74+
"type": "uint256"
75+
},
76+
{
77+
"internalType": "address[]",
78+
"name": "_tokens",
79+
"type": "address[]"
80+
}
81+
],
82+
"name": "removeTokens",
83+
"outputs": [],
84+
"stateMutability": "nonpayable",
85+
"type": "function"
86+
}
87+
},
88+
{
89+
"id": "transferOwnership",
90+
"label": "Transfer Ownership",
91+
"description": "Transfer ownership of the registry contract",
92+
"notes": "",
93+
"fields": [
94+
{
95+
"label": "New owner",
96+
"name": "newOwner",
97+
"placeholder": "Address (0x0000…)"
98+
}
99+
],
100+
"abi": {
101+
"constant": false,
102+
"inputs": [
103+
{
104+
"name": "newOwner",
105+
"type": "address"
106+
}
107+
],
108+
"name": "transferOwnership",
109+
"outputs": [],
110+
"payable": false,
111+
"stateMutability": "nonpayable",
112+
"type": "function"
113+
}
114+
}
115+
]
116+
}

0 commit comments

Comments
 (0)