New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@klayr/chain-connector-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klayr/chain-connector-plugin

A plugin used by a relayer node to automatically create and submit Cross Chain Transaction by aggregating off-chain information of a chain

  • 0.2.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-35.71%
Maintainers
1
Weekly downloads
 
Created
Source

@klayr/chain-connector-plugin

@klayr/chain-connector-plugin is a plugin for creating and sending Cross-Chain-Update (CCU) Transactions.

Cross-chain update transactions are the carriers of the information transmitted between chains. By posting a cross-chain update, the receiving chain gets the information required about the advancement of the sending chain. The transaction can also include cross-chain messages and thus serves as an envelope for messages from one chain to another.

Installation

$ npm install --save @klayr/chain-connector-plugin

Config Options

{
	receivingChainID: string,
	receivingChainWsURL?: string,
	receivingChainIPCPath?: string,
	ccuFrequency: number,
	encryptedPrivateKey: string,
	ccuFee: string,
	isSaveCCU: boolean,
	maxCCUSize: number,
	registrationHeight: number,
	ccuSaveLimit: number
	noFeeHeight: number
}

Parameters

ParamRequired?Description
receivingChainIDYChain ID of the receiving chain
receivingChainWsURLNThe WS url of a receiving node
receivingChainIPCPathNThe IPC path of a receiving node
ccuFrequencyYNumber of blocks after which a CCU should be created
encryptedPrivateKeyYEncrypted privateKey of the relayer
ccuFeeYFee to be paid for each CCU transaction
isSaveCCUYFlag for the user to either save or send a CCU on creation. Send is by default
maxCCUSizeYMaximum size of CCU to be allowed
registrationHeightYHeight at the time of registration on the receiving chain
ccuSaveLimitYNumber of CCUs to save
noFeeHeightNHeight until no fee is paid on receiving chain

Usage

Start your Klayr SDK with --enable-chain-connector-plugin flag, i.e.

    $ ./bin/run start --enable-chain-connector-plugin

Documentation

Setting up a relayer node: Details SDK Doc for setting up node with Chain Connector Plugin.

LIP-53 # CCU Properties: Explaination of CCU Properties from LIP-53.

Interoperability Example: Example of Interoperability with 2 sidechains and 1 mainchain, Chain Connector Plugin enabled.

License

Copyright 2024 Klayr Labs Copyright 2016-2023 Lisk Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc