Skip to content

Commit

Permalink
fix: add sdk exports (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk authored Aug 18, 2024
1 parent f416f05 commit 6bfdb27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ export * from './escrow-factory'
export {SupportedChains, SupportedChain} from './chains'
export * from './immutables'
export * from './deployments'
export * from './sdk'
6 changes: 3 additions & 3 deletions src/sdk/sdk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Web3Like,
Web3ProviderConnector
} from '@1inch/fusion-sdk'
import {FusionSDK} from './sdk'
import {SDK} from './sdk'

function createHttpProviderFake<T>(mock: T): HttpProviderConnector {
return {
Expand Down Expand Up @@ -62,7 +62,7 @@ describe(__filename, () => {
}

const httpProvider = createHttpProviderFake(expected)
const sdk = new FusionSDK({
const sdk = new SDK({
url,
httpProvider,
blockchainProvider: web3ProviderConnector
Expand All @@ -80,7 +80,7 @@ describe(__filename, () => {

const expected = undefined
const httpProvider = createHttpProviderFake(expected)
const sdk = new FusionSDK({
const sdk = new SDK({
url,
httpProvider,
blockchainProvider: web3ProviderConnector
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from '../api/orders'
import {CrossChainOrder} from '../cross-chain-order'

export class FusionSDK {
export class SDK {
public readonly api: FusionApi

constructor(private readonly config: CrossChainSDKConfigParams) {
Expand Down

0 comments on commit 6bfdb27

Please sign in to comment.