111 |
112 | Sponsor your favorite GitHub creators with Chainlink Functions
113 |
114 |
115 | Contribute to GitHub creators who meet the goals you define.
116 |
117 |
118 | Define a threshold goal for the creator to reach and execute a
119 | one-time donation based on your criteria.
120 |
121 |
122 |
126 | Add your wallet address to the Functions beta preview list to use
127 | this app.
128 |
129 |
130 |
131 | {breakdown.map(({ icon, text }, breakdownIndex) => (
132 |
133 | ))}
134 |
135 |
138 | {state === 'success' || state === 'fail' ? (
139 |
{
142 | setState('uninitialized');
143 | setMetric(0);
144 | setRepo(undefined);
145 | setMatic(0);
146 | }}
147 | content={content}
148 | />
149 | ) : (
150 | <>
151 | {state === 'initialized' ? (
152 |
158 | ) : (
159 | <>
160 |
161 | setRepo(value.slice(19))}
167 | />
168 |
169 |
170 | setMetricType(value)}
174 | />
175 | setMetric(+value)}
179 | />
180 |
181 |
182 | setMatic(+value)}
187 | />
188 |
189 |
190 | 0 &&
197 | metric > 0 &&
198 | repo &&
199 | state === 'uninitialized' &&
200 | metaMaskState.wallet
201 | )
202 | }
203 | />
204 |
205 | >
206 | )}
207 | >
208 | )}
209 |