@dynamic-labs-connectors/safe-evm
v4.5.0
Published
## Integrating with the Dynamic SDK
Downloads
1,944
Readme
safe-evm
Integrating with the Dynamic SDK
Install the connector
Make sure to install the connector with the correct version (@3 for sdk v3, @4 for sdk v4, etc...):
npm install @dynamic-labs-connectors/safe-evm@3Use the connector
To integrate with the Dynamic SDK, you just need to pass SafeEvmConnectors to the walletConnectors prop of the DynamicContextProvider component.
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-score';
import { SafeEvmConnectors } from '@dynamic-labs-connectors/safe-evm';
const App = () => {
return (
<DynamicContextProvider
settings={{
environmentId: 'REPLACE-WITH-YOUR-ENVIRONMENT-ID',
walletConnectors: [SafeEvmConnectors],
}}
>
<DynamicWidget />
</DynamicContextProvider>
);
};Building
Run nx build @dynamic-labs-connectors/safe-evm to build the library.
Running unit tests
Run nx test @dynamic-labs-connectors/safe-evm to execute the unit tests via Jest.
