Skip to content

Commit

Permalink
chore(release): 3.0.0-alpha.32
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Nov 9, 2023
1 parent 767144e commit 3dd0c7b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/sdk",
"version": "3.0.0-alpha.31",
"version": "3.0.0-alpha.32",
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
"keywords": [
"bridge",
Expand Down
8 changes: 6 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ChainId, ExtendedChain } from '@lifi/types'
import type { SDKProvider } from './core/types.js'
import type { SDKConfig, SDKOptions } from './types/index.js'

export const config = (() => {
Expand Down Expand Up @@ -36,12 +37,15 @@ export const config = (() => {
}
return chain
},
get() {
return _config
},
set(options: SDKOptions) {
Object.assign(_config, options)
return _config
},
get() {
return _config
setProviders(providers: SDKProvider[]) {
_config.providers = providers
},
}
})()
5 changes: 1 addition & 4 deletions src/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,5 @@ export async function createChainsConfig() {
export function createConfig(options: SDKOptions) {
createBaseConfig(options)
createChainsConfig()
return {
set: config.set,
get: config.get,
}
return config
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from '@lifi/types'
export { config } from './config.js'
export { EVM } from './core/EVM/EVM.js'
export { Solana } from './core/Solana/Solana.js'
export * from './core/index.js'
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@lifi/sdk'
export const version = '3.0.0-alpha.31'
export const version = '3.0.0-alpha.32'

0 comments on commit 3dd0c7b

Please sign in to comment.