Skip to content

Commit ebdcd30

Browse files
authored
Merge pull request #38 from rnsdomains/reverse-resolution
Reverse resolution implementartion
2 parents dbb7e23 + 7405491 commit ebdcd30

32 files changed

+756
-107
lines changed

src/app/notifications/selectors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export default strings => (params) => {
101101
case txTypes.SET_ADDR: return displaySetTx(strings.notifications_new_addr, params.value);
102102
case txTypes.SET_CONTENT: return displaySetTx(strings.notifications_new_content, params.value);
103103
case txTypes.SET_CHAIN_ADDR: return displaySetTx(strings.notifications_new_chain_addr, `${params.chainId} - ${params.value}`);
104+
case txTypes.SET_REVERSE_RESOLUTION: return displaySetTx(
105+
strings.notifications_new_reverse_resolution,
106+
);
104107
default: return null;
105108
}
106109
};

src/app/notifications/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const txTypes = {
1212

1313
SET_OWNER: 'SET_OWNER',
1414
SET_RESOLVER: 'SET_RESOLVER',
15+
SET_REVERSE_RESOLUTION: 'SET_REVERSE_RESOLUTION',
1516
SET_TTL: 'SET_TTL',
1617
SET_SUBNODE_OWNER: 'SET_SUBNODE_OWNER',
1718

src/app/tabs/admin/abi.json

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/app/tabs/admin/abis.json

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
{
2+
"rnsAbi": [
3+
{
4+
"constant": true,
5+
"inputs": [
6+
{ "name": "node", "type": "bytes32" }
7+
],
8+
"name": "owner",
9+
"outputs": [
10+
{ "name": "", "type": "address" }
11+
],
12+
"payable": false,
13+
"stateMutability": "view",
14+
"type": "function"
15+
},
16+
{
17+
"constant": true,
18+
"inputs": [
19+
{ "name": "node", "type": "bytes32" }
20+
],
21+
"name": "resolver",
22+
"outputs": [
23+
{ "name": "", "type": "address" }
24+
],
25+
"payable": false,
26+
"stateMutability": "view",
27+
"type": "function"
28+
},
29+
{
30+
"constant": true,
31+
"inputs": [
32+
{ "name": "node", "type": "bytes32" }
33+
],
34+
"name": "ttl",
35+
"outputs": [
36+
{ "name": "", "type": "uint64" }
37+
],
38+
"payable": false,
39+
"stateMutability": "view",
40+
"type": "function"
41+
},
42+
{
43+
"constant": false,
44+
"inputs": [
45+
{ "name": "node", "type": "bytes32" },
46+
{ "name": "ownerAddress", "type": "address" }
47+
],
48+
"name": "setOwner",
49+
"outputs": [],
50+
"payable": false,
51+
"stateMutability": "nonpayable",
52+
"type": "function"
53+
},
54+
{
55+
"constant": false,
56+
"inputs": [
57+
{ "name": "node", "type": "bytes32" },
58+
{ "name": "resolverAddress", "type": "address" }
59+
],
60+
"name": "setResolver",
61+
"outputs": [],
62+
"payable": false,
63+
"stateMutability": "nonpayable",
64+
"type": "function"
65+
},
66+
{
67+
"constant": false,
68+
"inputs": [
69+
{ "name": "node", "type": "bytes32" },
70+
{ "name": "ttl", "type": "uint64" }
71+
],
72+
"name": "setTTL",
73+
"outputs": [],
74+
"payable": false,
75+
"stateMutability": "nonpayable",
76+
"type": "function"
77+
},
78+
{
79+
"constant": false,
80+
"inputs": [
81+
{ "name": "node", "type": "bytes32" },
82+
{ "name": "label", "type": "bytes32" },
83+
{ "name": "ownerAddress", "type": "address" }
84+
],
85+
"name": "setSubnodeOwner",
86+
"outputs": [],
87+
"payable": false,
88+
"stateMutability": "nonpayable",
89+
"type": "function"
90+
}
91+
],
92+
"reverseAbi": [
93+
{
94+
"constant": false,
95+
"inputs": [
96+
{
97+
"name": "name",
98+
"type": "string"
99+
}
100+
],
101+
"name": "setName",
102+
"outputs": [
103+
{
104+
"name": "node",
105+
"type": "bytes32"
106+
}
107+
],
108+
"payable": false,
109+
"stateMutability": "nonpayable",
110+
"type": "function"
111+
},
112+
{
113+
"constant": false,
114+
"inputs": [
115+
{
116+
"name": "owner",
117+
"type": "address"
118+
}
119+
],
120+
"name": "claim",
121+
"outputs": [
122+
{
123+
"name": "node",
124+
"type": "bytes32"
125+
}
126+
],
127+
"payable": false,
128+
"stateMutability": "nonpayable",
129+
"type": "function"
130+
},
131+
{
132+
"constant": false,
133+
"inputs": [
134+
{
135+
"name": "owner",
136+
"type": "address"
137+
},
138+
{
139+
"name": "resolver",
140+
"type": "address"
141+
}
142+
],
143+
"name": "claimWithResolver",
144+
"outputs": [
145+
{
146+
"name": "node",
147+
"type": "bytes32"
148+
}
149+
],
150+
"payable": false,
151+
"stateMutability": "nonpayable",
152+
"type": "function"
153+
},
154+
{
155+
"constant": true,
156+
"inputs": [
157+
{
158+
"name": "addr",
159+
"type": "address"
160+
}
161+
],
162+
"name": "node",
163+
"outputs": [
164+
{
165+
"name": "",
166+
"type": "bytes32"
167+
}
168+
],
169+
"payable": false,
170+
"stateMutability": "pure",
171+
"type": "function"
172+
}
173+
],
174+
"nameResolverAbi": [
175+
{
176+
"inputs": [
177+
{
178+
"name": "_rns",
179+
"type": "address"
180+
}
181+
],
182+
"payable": false,
183+
"stateMutability": "nonpayable",
184+
"type": "constructor"
185+
},
186+
{
187+
"anonymous": false,
188+
"inputs": [
189+
{
190+
"indexed": true,
191+
"name": "node",
192+
"type": "bytes32"
193+
},
194+
{
195+
"indexed": false,
196+
"name": "name",
197+
"type": "string"
198+
}
199+
],
200+
"name": "NameChanged",
201+
"type": "event"
202+
},
203+
{
204+
"constant": false,
205+
"inputs": [
206+
{
207+
"name": "node",
208+
"type": "bytes32"
209+
},
210+
{
211+
"name": "name",
212+
"type": "string"
213+
}
214+
],
215+
"name": "setName",
216+
"outputs": [],
217+
"payable": false,
218+
"stateMutability": "nonpayable",
219+
"type": "function"
220+
},
221+
{
222+
"constant": true,
223+
"inputs": [
224+
{
225+
"name": "node",
226+
"type": "bytes32"
227+
}
228+
],
229+
"name": "name",
230+
"outputs": [
231+
{
232+
"name": "",
233+
"type": "string"
234+
}
235+
],
236+
"payable": false,
237+
"stateMutability": "view",
238+
"type": "function"
239+
},
240+
{
241+
"constant": true,
242+
"inputs": [
243+
{
244+
"name": "interfaceID",
245+
"type": "bytes4"
246+
}
247+
],
248+
"name": "supportsInterface",
249+
"outputs": [
250+
{
251+
"name": "",
252+
"type": "bool"
253+
}
254+
],
255+
"payable": false,
256+
"stateMutability": "pure",
257+
"type": "function"
258+
}
259+
]
260+
}

0 commit comments

Comments
 (0)