Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.02 KB

File metadata and controls

43 lines (29 loc) · 1.02 KB

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@3

Use 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.