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

[DO NOT MERGE] Add Ethers.js #130

Closed
wants to merge 34 commits into from
Closed

[DO NOT MERGE] Add Ethers.js #130

wants to merge 34 commits into from

Conversation

evgenykuzyakov
Copy link
Contributor

Adding ethers.js library. The UI is temporary.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 6, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 75ae732
Status: ✅  Deploy successful!
Preview URL: https://52b96f14.viewer-xlt.pages.dev
Branch Preview URL: https://add-ethers-js.viewer-xlt.pages.dev

View logs

@evgenykuzyakov evgenykuzyakov changed the title Add Ethers.js [DO NOT MERGE] Add Ethers.js Feb 14, 2023
evgenykuzyakov pushed a commit to NearSocial/VM that referenced this pull request Apr 24, 2023
- Support `ethers.js` based on NearSocial/viewer#130
  - Expose `Ethers` and `ethers` in the global scope.
  - Add custom `Web3Connect` component that renders Web3 connect/disconnect button. Currently, the API is heavily influenced by Web3Onboard API.
  - VM now exports `EthersProviderContext` React context type. A gateway that wants to support Ethers.js should wrap the app with `EthersProviderContext.Provider` component with the object value `{provider}`. Provider is Web3 provider that can be used to create an Ethers.js provider.
evgenykuzyakov pushed a commit to NearSocial/VM that referenced this pull request Apr 24, 2023
## 1.3.0

- Support `ethers.js` based on NearSocial/viewer#130
  - Expose `Ethers` and `ethers` in the global scope.
  - Add custom `Web3Connect` component that renders Web3 connect/disconnect button. Currently, the API is heavily influenced by Web3Onboard API.
  - VM now exports `EthersProviderContext` React context type. A gateway that wants to support Ethers.js should wrap the app with `EthersProviderContext.Provider` component with the object value `{provider}`. Provider is Web3 provider that can be used to create an Ethers.js provider.
- Fix `initNear` logic to assign provided `config` values on top of the default values, instead of reverse.
- Update `near-api-js` dependency to ^2.1.0
- Fix `elliptic` library by doing a lazy `deepClone` when it's first requested a VM instance.
- Update VM to reflect `0.10.0` SocialDB changes. NearSocial/social-db#8
  - Assume the permission to write is granted by default when `set` is called on the current account.
  - Use `get_account_storage` to account for the shared storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants