Skip to content

Commit

Permalink
updated community lock
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Dec 13, 2022
1 parent c223812 commit ee0692c
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .unlock-protocol.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"locks": {
"0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894": {
"0xb77030a7e47a5eb942a4748000125e70be598632": {
"name": "Unlock Community",
"network": 100
"network": 137
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infras
Thank you to all the Members of our lock as well!
You can easily join this list by clicking on the ❤️ Sponsor button (it's free!) at the top of this page too.

![Members](https://member-wall.unlock-protocol.com/api/members?network=100&locks=0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894&maxHeight=300)
![Members](https://member-wall.unlock-protocol.com/api/members?network=137&locks=0xb77030a7e47a5eb942a4748000125e70be598632&maxHeight=300)
2 changes: 1 addition & 1 deletion scripts/production-pull-request-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Reviewing code for this Pull Request is not practical, however, you are asked to
* [ ] In the purchase URL, configure metadata collection to collect an email address (\`\"metadataInputs\": [ { name: 'Name', type: 'text', required: true } ],\`)
* [ ] By using a recent lock, enable multiple purchase in the URL (\`\"maxRecipients\": 6\`)
* [ ] Go through the checkout flow and ensure that it works as expected (data is collected for 2 users + and 2 keys are minted)
* [ ] Use a v9 lock and check if multiple purchase is successful for compatibility. Use lock address: `0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894` on network `100` gnosis.
* [ ] Use a v9 lock and check if multiple purchase is successful for compatibility. Use lock address: `0xb77030a7e47a5eb942a4748000125e70be598632` on network `100` gnosis.
## Credit Card flow for Unlock User accounts
* [ ] Open the demo for a lock that has credit card enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ const LockListItem = ({
<LockImage lockAddress={address} />
<span className="text-base font-semibold">{name || 'Default'}</span>
</div>
<span className="ml-auto">{addressMinify(address)}</span>
<span className="ml-auto">{address}</span>
</div>
<div className="flex gap-2 item-center">
<Tooltip label="Edit" tip="Edit" side="bottom">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ const LockManagerCard = ({
/>
<div className="flex items-center justify-between px-4 py-2 border border-gray-200 rounded-lg">
<div className="flex flex-col gap-2 ">
<span className="text-base text-brand-dark">
{addressMinify(manager)}
</span>
<span className="text-base text-brand-dark">{manager}</span>
{isLoggedUser && (
<span className="text-sm font-semibold text-brand-ui-primary">
{`That's you`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const VerifierCard = ({
return (
<div className="flex flex-col items-center justify-between px-4 py-2 border border-gray-200 rounded-lg md:flex-row">
<div className="flex flex-col gap-2 ">
<span className="text-base text-brand-dark">
{addressMinify(address)}
</span>
<span className="text-base text-brand-dark">{address}</span>
{isCurrentAccount && (
<span className="text-sm font-semibold text-brand-ui-primary">
{`That's you`}
Expand Down
4 changes: 2 additions & 2 deletions unlock-protocol-com/blog/integratating-unlock-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ The snippet inserted above needs to know which lock are used on this page. For t
<script>
var unlockProtocolConfig = {
locks: {
'0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894': {
'0xb77030a7e47a5eb942a4748000125e70be598632': {
name: 'The Unlock Members lock',
network: 100,
network: 137,
},
},
icon: 'https://unlock-protocol.com/images/svg/unlock-word-mark.svg'
Expand Down
4 changes: 2 additions & 2 deletions unlock-protocol-com/blog/locking-glitch.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ sc.parentNode.insertBefore(js, sc)
// Configure Unlock
var unlockProtocolConfig = {
locks: {
'0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894': {
network: 100,
'0xb77030a7e47a5eb942a4748000125e70be598632': {
network: 137,
},
},
}
Expand Down
6 changes: 3 additions & 3 deletions unlock-protocol-com/blog/member-wall.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ subTitle: Showing a list of members has never been easier!
authorName: Julien Genestoux
publishDate: November 12, 2019
description: Showing a list of members has never been easier!
image: https://member-wall.unlock-protocol.com/api/members?network=100&locks=0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894&maxWidth=1000
image: https://member-wall.unlock-protocol.com/api/members?network=137&locks=0xb77030a7e47a5eb942a4748000125e70be598632&maxWidth=1000
---

The Unlock team spent the week-end in Waterloo, Canada [hacking on Ethereum](https://unlock-protocol.com/blog/ethwaterloo-tickets/).
Expand All @@ -17,7 +17,7 @@ It's a very simple application which generates a large SVG image which lists all

The great thing about using images is that they can be embedded on almost any webpage. For example, below is the list of all members to our lock and that image is dynamically refreshed when new members are added!

<object data="https://member-wall.unlock-protocol.com/api/members?network=100&locks=0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894&maxHeight=300" type="image/svg+xml"/>
<object data="https://member-wall.unlock-protocol.com/api/members?network=137&locks=0xb77030a7e47a5eb942a4748000125e70be598632&maxHeight=300" type="image/svg+xml"/>

Each of the members is clickable and will link to the corresponding page on [Etherscan](https://etherscan.io/)!

Expand All @@ -31,7 +31,7 @@ From there, we use [React](https://reactjs.org/) to generate a SVG image. This i

The wall's size is "fixed" but can be customized and the size of each member is based on the number of members. Here's the list of our blog's members on a 30px height!

![Members](https://member-wall.unlock-protocol.com/api/members?network=100&locks=0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894&maxHeight=30)
![Members](https://member-wall.unlock-protocol.com/api/members?network=137&locks=0xb77030a7e47a5eb942a4748000125e70be598632&maxHeight=30)

Of couse, this is all [completely open source](https://github.com/unlock-protocol/member-wall), so you could easily run that on your own server, or maybe even host it on IPFS?

Expand Down
4 changes: 2 additions & 2 deletions unlock-protocol-com/blog/multichain-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The configuration for these is simple: just pass the network as part of the lock
```
{
locks: {
"0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894": {
"0xb77030a7e47a5eb942a4748000125e70be598632": {
name: "Unlock Community",
network: 100,
network: 137,
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion unlock-protocol-com/blog/open-api-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main() {
// Get keys metadata on goerli.
const keysResponse = await service.keysMetadata(
5,
'0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894',
'0xb77030a7e47a5eb942a4748000125e70be598632',
'1'
)
console.log(keysResponse)
Expand Down
4 changes: 2 additions & 2 deletions unlock-protocol-com/src/config/paywallConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export const paywallConfig = {
network: 1,
pessimistic: true,
locks: {
'0xCE62D71c768aeD7EA034c72a1bc4CF58830D9894': {
'0xb77030a7e47a5eb942a4748000125e70be598632': {
name: 'Unlock Community',
network: 100,
network: 137,
},
},
icon: 'https://raw.githubusercontent.com/unlock-protocol/unlock/master/design/brand/1808-Unlock-Identity_Unlock-WordMark.svg',
Expand Down

0 comments on commit ee0692c

Please sign in to comment.