Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 7efeb89

Browse files
Merge pull request #35 from decentraland/feat/add-polygon-logic
Feat/add polygon logic
2 parents 03ae62b + a5bb76c commit 7efeb89

File tree

107 files changed

+18643
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+18643
-498
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ COPY --from=builder /squid/squid.yaml squid.yaml
3535
ADD commands.json .
3636
RUN echo -e "loglevel=silent\\nupdate-notifier=false" > /squid/.npmrc
3737
RUN npm i -g @subsquid/cli@latest && mv $(which sqd) /usr/local/bin/sqd
38-
ENV PROMETHEUS_PORT 3000
38+
ENV ETH_PROMETHEUS_PORT 3000
39+
ENV POLYGON_PROMETHEUS_PORT 3001
3940
ENV GQL_PORT 5000
4041

4142
RUN apk update && apk add --no-cache tini postgresql-client curl

abi/polygon/CollectionFactory.json

+238
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "address",
6+
"name": "_implementation",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "address",
11+
"name": "_owner",
12+
"type": "address"
13+
}
14+
],
15+
"stateMutability": "nonpayable",
16+
"type": "constructor"
17+
},
18+
{
19+
"anonymous": false,
20+
"inputs": [
21+
{
22+
"indexed": true,
23+
"internalType": "address",
24+
"name": "_implementation",
25+
"type": "address"
26+
},
27+
{
28+
"indexed": false,
29+
"internalType": "bytes32",
30+
"name": "_codeHash",
31+
"type": "bytes32"
32+
},
33+
{
34+
"indexed": false,
35+
"internalType": "bytes",
36+
"name": "_code",
37+
"type": "bytes"
38+
}
39+
],
40+
"name": "ImplementationChanged",
41+
"type": "event"
42+
},
43+
{
44+
"anonymous": false,
45+
"inputs": [
46+
{
47+
"indexed": true,
48+
"internalType": "address",
49+
"name": "previousOwner",
50+
"type": "address"
51+
},
52+
{
53+
"indexed": true,
54+
"internalType": "address",
55+
"name": "newOwner",
56+
"type": "address"
57+
}
58+
],
59+
"name": "OwnershipTransferred",
60+
"type": "event"
61+
},
62+
{
63+
"anonymous": false,
64+
"inputs": [
65+
{
66+
"indexed": true,
67+
"internalType": "address",
68+
"name": "_address",
69+
"type": "address"
70+
},
71+
{
72+
"indexed": false,
73+
"internalType": "bytes32",
74+
"name": "_salt",
75+
"type": "bytes32"
76+
}
77+
],
78+
"name": "ProxyCreated",
79+
"type": "event"
80+
},
81+
{
82+
"inputs": [],
83+
"name": "code",
84+
"outputs": [
85+
{
86+
"internalType": "bytes",
87+
"name": "",
88+
"type": "bytes"
89+
}
90+
],
91+
"stateMutability": "view",
92+
"type": "function"
93+
},
94+
{
95+
"inputs": [],
96+
"name": "codeHash",
97+
"outputs": [
98+
{
99+
"internalType": "bytes32",
100+
"name": "",
101+
"type": "bytes32"
102+
}
103+
],
104+
"stateMutability": "view",
105+
"type": "function"
106+
},
107+
{
108+
"inputs": [
109+
{
110+
"internalType": "bytes32",
111+
"name": "_salt",
112+
"type": "bytes32"
113+
},
114+
{
115+
"internalType": "bytes",
116+
"name": "_data",
117+
"type": "bytes"
118+
}
119+
],
120+
"name": "createCollection",
121+
"outputs": [
122+
{
123+
"internalType": "address",
124+
"name": "addr",
125+
"type": "address"
126+
}
127+
],
128+
"stateMutability": "nonpayable",
129+
"type": "function"
130+
},
131+
{
132+
"inputs": [
133+
{
134+
"internalType": "bytes32",
135+
"name": "_salt",
136+
"type": "bytes32"
137+
},
138+
{
139+
"internalType": "bytes",
140+
"name": "_data",
141+
"type": "bytes"
142+
}
143+
],
144+
"name": "createProxy",
145+
"outputs": [
146+
{
147+
"internalType": "address",
148+
"name": "addr",
149+
"type": "address"
150+
}
151+
],
152+
"stateMutability": "nonpayable",
153+
"type": "function"
154+
},
155+
{
156+
"inputs": [
157+
{
158+
"internalType": "bytes32",
159+
"name": "_salt",
160+
"type": "bytes32"
161+
},
162+
{
163+
"internalType": "address",
164+
"name": "_address",
165+
"type": "address"
166+
}
167+
],
168+
"name": "getAddress",
169+
"outputs": [
170+
{
171+
"internalType": "address",
172+
"name": "",
173+
"type": "address"
174+
}
175+
],
176+
"stateMutability": "view",
177+
"type": "function"
178+
},
179+
{
180+
"inputs": [],
181+
"name": "implementation",
182+
"outputs": [
183+
{
184+
"internalType": "address",
185+
"name": "",
186+
"type": "address"
187+
}
188+
],
189+
"stateMutability": "view",
190+
"type": "function"
191+
},
192+
{
193+
"inputs": [],
194+
"name": "owner",
195+
"outputs": [
196+
{
197+
"internalType": "address",
198+
"name": "",
199+
"type": "address"
200+
}
201+
],
202+
"stateMutability": "view",
203+
"type": "function"
204+
},
205+
{
206+
"inputs": [],
207+
"name": "renounceOwnership",
208+
"outputs": [],
209+
"stateMutability": "nonpayable",
210+
"type": "function"
211+
},
212+
{
213+
"inputs": [
214+
{
215+
"internalType": "address",
216+
"name": "_implementation",
217+
"type": "address"
218+
}
219+
],
220+
"name": "setImplementation",
221+
"outputs": [],
222+
"stateMutability": "nonpayable",
223+
"type": "function"
224+
},
225+
{
226+
"inputs": [
227+
{
228+
"internalType": "address",
229+
"name": "newOwner",
230+
"type": "address"
231+
}
232+
],
233+
"name": "transferOwnership",
234+
"outputs": [],
235+
"stateMutability": "nonpayable",
236+
"type": "function"
237+
}
238+
]

0 commit comments

Comments
 (0)