Skip to Content
Open SourceHydraSDKs@exodus/argo

@exodus/argo

The inversion of control setup that powers the Exodus wallet SDK

Install

npm i @exodus/argo

Usage

import createIOC from '@exodus/argo';
import geolocation from '@exodus/geolocation';
import potter from './potter';
 
// 1. Set up adapters to include a logger
const adapters = {
  createLogger: (prefix) => ({
    debug: (...args) => console.log(prefix, ...args),
  }),
};
 
// 2. Create ioc container
const ioc = createIOC({ adapters });
 
// 3. Use one of ExodusOSS features and/or your own features
ioc.use(geolocation());
ioc.use(potter({ glasses: true }));
 
// 5. Resolve instance
const instance = ioc.resolve();
Last updated on

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right