Socket
Socket
Sign inDemoInstall

@ckb-lumos/config-manager

Package Overview
Dependencies
27
Maintainers
3
Versions
158
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ckb-lumos/config-manager

Config manager for lumos


Version published
Maintainers
3
Install size
3.69 MB
Created

Readme

Source

@ckb-lumos/config-manager

Example

import { initializeConfig, predefined } from "@ckb-lumos/config-manager"
// or import from the entry package
import { initializeConfig, predefined } from "@ckb-lumos/lumos/config"
import { encodeToAddress } from '@ckb-lumos/helper'

initializeConfig(predefined.AGGRON);
encodeToAddress({...}) // ckt1...


initializeConfig(predefined.LINA);
encodeToAddress({...}) // ckb1...

Refreshing Config

import { refreshScriptConfigs } from "@ckb-lumos/config-manager"
// or import from the entry package
import { refreshScriptConfigs } from "@ckb-lumos/lumos/config"
import { RPC } from "@ckb-lumos/rpc";

const rpc = new RPC("http://localhost:8114");

const refreshed = await refreshScriptConfigs(predefined.AGGRON4.SCRIPTS, {
  resolve: createRpcResolver(rpc),
});

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc