Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages and use amoy instead of mumbai #156

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PK=YOUR_PK
MUMBAI_RPC_URL=https://rpc-mumbai.matic.today
AMOY_RPC_URL=https://rpc-amoy.polygon.technology
PROFILE_ID=PROFILE_ID
LENS_API=https://api-mumbai.lens.dev/
LENS_API=https://api-v2-amoy.lens.dev

# Check the address provided here : https://docs.lens.dev/docs/testnet-addresses
LENS_HUB_CONTRACT=0xC1E77eE73403B8a7478884915aA599932A677870
LENS_TOKEN_HANDLE_REGISTRY_CONTRACT=0xc3a1fabd7f8d290f7b0C45AA88af6e9c9E267843
LENS_HUB_CONTRACT=0xA2574D9DdB6A325Ad2Be838Bd854228B80215148
LENS_TOKEN_HANDLE_REGISTRY_CONTRACT=0x24360dc6Af3c0b37baA8B0aaDD5BcA11C1a1389A

INFURA_PROJECT_ID=YOUR_PROJECT_ID
INFURA_SECRET=YOUR_SECRET
LENS_API_WEBSOCKET=
LENS_API_WEBSOCKET=
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@ This repo has running code which you can execute to help you understand how to i

Lens API is beta at the moment and can change without warning!

Full documentation is available at [https://docs.lens.dev/docs/introduction](https://docs.lens.dev/docs/introduction).
Full documentation is available at [https://docs.lens.xyz/docs/introduction](https://docs.lens.xyz/docs/introduction).

## Setup

for the scripts to run you need to create a `.env` (or copy the template `cp .env.template .env`) file with these variables:

```
```bash
PK=YOUR_PK
MUMBAI_RPC_URL=https://rpc-mumbai.matic.today
AMOY_RPC_URL=https://rpc-amoy.polygon.technology
PROFILE_ID=PROFILE_ID
LENS_API=https://api-mumbai.lens.dev/
LENS_HUB_CONTRACT=0xC1E77eE73403B8a7478884915aA599932A677870
LENS_PERIPHERY_CONTRACT=0xc3a1fabd7f8d290f7b0C45AA88af6e9c9E267843
USE_GASLESS=false #
ORIGIN= # supply the ORIGIN env var when USE_GASLESS is enabled
LENS_API=https://api-v2-amoy.lens.dev
LENS_HUB_CONTRACT=0xA2574D9DdB6A325Ad2Be838Bd854228B80215148
LENS_TOKEN_HANDLE_REGISTRY_CONTRACT=0x24360dc6Af3c0b37baA8B0aaDD5BcA11C1a1389A
INFURA_PROJECT_ID=YOUR_INFURA_PROJECT_ID
INFURA_SECRET=YOUR_INFURA_SECRET
```

- `PROFILE_ID` is optional but required on some endpoints! Also, make sure to insert the `PROFILE_ID` in hexadecimal format.
- Highly advised to create an API key and use the Alchemy RPC provider for Mumbai to avoid rate limiting. -`PK` represents Private key here.
- Highly advised to create an API key and use the Alchemy RPC provider for Amoy to avoid rate limiting. -`PK` represents Private key here.
- This project uses infura ipfs to pin content which now is API keys only so you have to create an API key on their side. You can also use another storage provider or pinning service if you which, feel free to do a PR with that service and we can change the .env to include option to pick.

## How to run
Expand All @@ -34,7 +36,7 @@ look in the `package.json` file for the `scripts` section you see all the script
example running:

```bash
$ npm run authentication:login
npm run authentication:login
```

## Issues
Expand Down
3 changes: 1 addition & 2 deletions codegen.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# schema: 'https://api-v2-mumbai.lens.dev/graphql'
schema: 'http://localhost:4000/'
schema: 'https://api-v2-amoy.lens.dev/graphql'
documents: './src/**/*.graphql'
generates:
./src/graphql/generated.ts:
Expand Down
Loading