@armadura/providers
v0.1.5
Published
Centralized provider exports for the Arc ecosystem. This package allows you to import all providers from a single location:
Readme
@connectorkit/providers
Centralized provider exports for the Arc ecosystem. This package allows you to import all providers from a single location:
import { createJupiter, createKamino } from 'arc/providers'Current Providers
- Jupiter (
createJupiter) - Swap provider for Jupiter aggregator- Configuration:
JupiterConfig - Types:
JupiterQuoteResponse,JupiterSwapResponse - Utilities:
getJupiterTokens()
- Configuration:
Usage
Individual Provider
import { createJupiter } from 'arc/providers'
const jupiter = createJupiter({
apiUrl: 'https://quote-api.jup.ag/v6',
slippageBps: 50
})Multiple Providers
import { createProviders } from 'arc/providers'
const providers = createProviders({
jupiter: {
apiUrl: 'https://quote-api.jup.ag/v6',
slippageBps: 100
}
// kamino: { ... } // Future providers
})Adding New Providers
See src/templates/provider-template.md for a complete guide on adding new providers.
Architecture
This package serves as a centralized re-export hub:
- Re-exports all provider factories and types
- Provides type-safe provider registry
- Enables bulk provider creation
- Maintains forward compatibility for new providers
Next Steps
- Add Kamino Provider - Create
@arc/kaminopackage following the template - Add Raydium Provider - Create
@arc/raydiumpackage - Add Orca Provider - Create
@arc/orcapackage - Enhanced Provider Registry - Add runtime provider discovery
- Provider Configuration Validation - Add schema validation for configs
