Skip to content

Instantly share code, notes, and snippets.

Avatar

Julien Genestoux julien51

View GitHub Profile
View create-lock-web3js.js
// ABI for the Unlock contract (partial)
// You can also get it from the package '@unlock-protocol/contracts'
const UNLOCK_ABI = [
{
inputs: [
{
internalType: "bytes",
name: "data",
type: "bytes",
},
View inputs.md

Invalid Input:

0x3381899700000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000f8b0a10e47000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a949daf5a5d0d77169785b3f5aae4592a4572e100000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a949daf5a5d0d77169785b3f5aae4592a4572e1000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000
View attestation.txt
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 88
Hash: 8f996cb2 e0b08298 0ff33fb9 0eef636a
cf86f79e a5489639 4bc3cbc8 9101463d
47791ceb df47aa05 79049d1c d9881805
446a88ad 3cf84e05 b432d7d7 1e290745
View did
did:3:kjzl6cwe1jw14agld7sf72cva37djnrq5l8u6qlxcna6xoakw71gx7cqi9lmkhe
View attestation.txt
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 751
Hash: undefined
Circuit: batchUst 32
Contributor # 842
Hash: undefined
View unlock-protocol.tokenlist.json
{
"name": "Unlock Token list",
"logoURI": "ipfs://QmYeu5fxHrXLkWsH2tXW5cDhiCyfAjH2w7Aich2wz7q8u1",
"keywords": [],
"timestamp": "2021-05-24T00:00:00+00:00",
"tags": {
"unlock": {
"name": "Unlock Protocol",
"description": "Tokens for Unlock Protocol"
},
View unlock-protocol.tokenlist.json
{
"name": "Unlock Token list",
"logoURI": "ipfs://QmYeu5fxHrXLkWsH2tXW5cDhiCyfAjH2w7Aich2wz7q8u1",
"keywords": [],
"timestamp": "2021-05-24T00:00:00+00:00",
"tags": {
"unlock-protocol": {
"name": "Unlock Protocol",
"description": "Tokens for Unlock Protocol"
},
View unlock-vue.js
<template>
<div>
<div v-if="unlockState === 'locked'">locked</div>
<div v-if="unlockState === 'pending'">pending</div>
<div v-if="unlockState === 'unlocked'">unlocked</div>
<button @click="checkout()">checkout</button>
</div>
</template>
<script>
View config.js
var unlockProtocolConfig = {
locks: {
'0xabc...': {
name: 'One Week',
},
'0xdef...': {
name: 'One Month',
},
'0xghi...': {
name: 'One Year',
View wordpress.html
<!-- wp:unlock/unlock-box {"unlockState":"unlocked"} -->
<div class="wp-block-unlock-unlock-box unlock-protocol__unlocked">
<!-- wp:paragraph -->
<p>This is content is for members</p>
<!-- /wp:paragraph -->
<!-- wp:latest-posts /-->
</div>
<!-- /wp:unlock/unlock-box -->
<!-- wp:unlock/unlock-box -->