{"repo":"debridge-finance/desdk","free":true,"listed":false,"github":"https://github.com/debridge-finance/desdk","clone":"git clone https://github.com/debridge-finance/desdk.git","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","language":"TypeScript","stars":32,"topics":["blockchain","ethereum","evm"],"license":"LGPL-3.0","category":"blockchain-web3","readme_excerpt":"deBridge SDK Send, track and claim arbitrary cross-chain messages programmatically with the deBridge protocol . deSDK is a framework-agnostic software development kit focused on handling typed messages routed by deBridge, a generic messaging and cross-chain interoperability protocol that enables anyone to build powerful cross-chain applications where value and messages flow seamlessly. Installation Install the package: Import the evm namespace: Sending messages directly evm.Message is a high-level typed interface to the send() method of the deBridgeGate contract. This is the only method needed to submit a new cross-chain call. The evm.Message object takes raw scalar values and typed structs to avoid possible hassles with encoding complex nested structs. Its toSendArgs() method returns a tuple of scalar args (containing encoded values) ready to be passed to the deBridgeGate 's send() method in an unopinionated manner. Here’s an example: Tracking submissions After the submission has been successfully submitted (by calling the deBridgeGate.send() method either off-chain or on-chain), its status can be tracked using the evm.Submission helper methods. To start, prepare the context deSDK should work within: you need to provide a URL to EVM RPC node of the origin chain (where the cross-chain call has been started): Then pass this context to the evm.Submission initialization: Tracking and executing claims After the submission has been confirmed, each elected validator verifies and si","default_branch":null,"files":null,"tree":[],"storefront":"/r/debridge-finance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/debridge-finance/desdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}