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 SafeAppProvider references in README.md #132

Merged
merged 3 commits into from
Apr 9, 2021
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jobs:
path-to-signatures: 'signatures/version1/cla.json'
path-to-cla-document: 'https://gnosis-safe.io/cla/'
branch: 'cla-signatures'
allowlist: germartinez,mikheevm,rmeissner,Uxio0,dasanra,davidalbela,luarx,giacomolicari,lukasschor,tschubotz,gnosis-info,bot*,katspaugh
allowlist: germartinez,mikheevm,rmeissner,Uxio0,dasanra,davidalbela,luarx,giacomolicari,lukasschor,tschubotz,gnosis-info,bot*,katspaugh,fmrsabino
empty-commit-flag: false
blockchain-storage-flag: false
10 changes: 5 additions & 5 deletions packages/safe-apps-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ yarn add @gnosis.pm/safe-apps-provider
npm i @gnosis.pm/safe-apps-provider
```

### SafeAppsProvider
### SafeAppProvider

The provider can be used with the [safe-apps-react-sdk](https://github.com/gnosis/safe-apps-sdk/tree/master/packages/safe-apps-react-sdk) and common web3 libraries.

Expand All @@ -26,11 +26,11 @@ The provider can be used with the [safe-apps-react-sdk](https://github.com/gnosi
import React, { useMemo } from 'react';
import { ethers } from 'ethers';
import { useSafeAppsSDK } from '@gnosis.pm/safe-apps-react-sdk';
import { SafeAppsProvider } from '@gnosis.pm/safe-apps-provider';
import { SafeAppProvider } from '@gnosis.pm/safe-apps-provider';

const App = () => {
const { sdk, safe } = useSafeAppsSDK();
const web3Provider = useMemo(() => ethers.providers.Web3Provider(new SafeAppsProvider(safe, sdk)), [sdk, safe]);
const web3Provider = useMemo(() => ethers.providers.Web3Provider(new SafeAppProvider(safe, sdk)), [sdk, safe]);

// use provider with contracts

Expand All @@ -48,11 +48,11 @@ export default App;
import React, { useMemo } from 'react';
import Web3 from 'web3';
import { useSafeAppsSDK } from '@gnosis.pm/safe-apps-react-sdk';
import { SafeAppsProvider } from '@gnosis.pm/safe-apps-provider';
import { SafeAppProvider } from '@gnosis.pm/safe-apps-provider';

const App = () => {
const { sdk, safe } = useSafeAppsSDK();
const web3Provider = useMemo(() => new Web3(new SafeAppsProvider(safe, sdk)), [sdk, safe]);
const web3Provider = useMemo(() => new Web3(new SafeAppProvider(safe, sdk)), [sdk, safe]);

// use provider with contracts

Expand Down