{"_id":"@debridge-finance/desdk","_rev":"11-0fb75de8e5debcb1ca22f2b96f9b0e66","name":"@debridge-finance/desdk","dist-tags":{"latest":"2.0.0-rc.0"},"versions":{"0.0.1":{"name":"@debridge-finance/desdk","version":"0.0.1","keywords":["bridge","deBridge","ethereum"],"author":{"name":"deBridge"},"license":"LGPL-3.0-only","_id":"@debridge-finance/desdk@0.0.1","maintainers":[{"name":"alexeychr","email":"alx.churkin@gmail.com"}],"homepage":"https://debridge.finance","bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"dist":{"shasum":"365986537fa0449c31d3c6119f073e58d4ca4211","tarball":"https://registry.npmjs.org/@debridge-finance/desdk/-/desdk-0.0.1.tgz","fileCount":1251,"integrity":"sha512-FREzmWKc1UxPLHTj1ld6SshSBRj37plBDBA05E6Y+cA6ISbaBAz9itk6AqiUEGLDQtNbJ5d8RrghQbEMrQrAqA==","signatures":[{"sig":"MEQCIDXoHMtd3SqOlOT/DT+24suj3NsOJ4yOl+0KHDEWMNChAiAOCyQj8MCHmy6RlCPPkO+4i14xTU1sahBy7h9zA5O/Qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4057954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86gIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooDw//ZPuyqKgjXoqWcF6vT1fTYjVYhyOZsNFBLZn4jzaKCgY51hUg\r\nrxE/RDHM08VYhpacfsrC0KisqylgBiKikr2bqbxv70UDzdpIGbVJyShY4523\r\n93BnvFkd2hYeDHGLgufWPHXZaCqJt+YzPR50FpV9US33gZ0Xzu+H7Rz7QfLx\r\ngwb3DuDy+JHyZi9aMNmBU3KD9CkNGT/YkfhsPqDrz9N1RKqo7f/kW9V4itLw\r\n7dlPKcA60CdenBPZttOWbdJpcZftvn3FFex7JHz1y6aTwMYsVaGPKxxNKr6+\r\ntT8A4ad3k4JH8a2RzRemeQqCDmhbCejSXf45rQg8mgHKTBY57meCstzQWLOb\r\nIFBiawidB3cofr+EM86vzLVB/hightaByNz1hFBAPK3xsrOZsq3oIsJJPjt1\r\ndpQ0shdjhkoX8qExvn2Wg9bJzgNnAsVxc6NbFOnqkO2XMeqKyaN9Vd4YIrKH\r\nK9Ie36TItm3n6BUCihVza1CUgG5JulzsiMvrHe6t3hw7UymaEqo2HST7TO+s\r\nXw375NCwp7gmu9I7+IsuUnslRgC95tfBLr9bH7+cRGZG027TXettOgbFPYbS\r\n3CzVJyhTd/eWrTBprYJJJrKrch0GsStvuR/HLywaMbv6xgI34P4UxGgrCluT\r\nXUWHjc85+bk+3K0Nz/7k8mt/3QxxaYNa3IU=\r\n=PwJe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","module":"lib.esm/index.js","gitHead":"628810c64e912d5251f7983db0bfdb8912cdd74a","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json","test":"mocha --exit --recursive 'test/**/*.test.ts'","build":"npm-run-all clean build-*","clean":"rm -rf build","prepare":"npm run build","lint:fix":"prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json","build-cjs":"tsc --build tsconfig.json","build-esm":"tsc --build tsconfig-esm.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexeychr","email":"alx.churkin@gmail.com"},"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"_npmVersion":"8.15.0","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","directories":{},"_nodeVersion":"18.7.0","dependencies":{"ethers":"^5.1.3","@ethersproject/abi":"^5.0.0","@ethersproject/bytes":"^5.0.0","@ethersproject/providers":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","tslint":"^6.1.3","hardhat":"^2.10.1","ts-node":"^10.9.1","prettier":"2.7.1","typescript":">=4.3.0","@types/chai":"^4.3.1","@types/node":"^18.6.2","npm-run-all":"^4.1.5","@types/mocha":"^9.1.1","ethereum-waffle":"^3.4.4","@typechain/hardhat":"^6.1.2","@typechain/ethers-v5":"^10.1.0","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","@nomiclabs/hardhat-ethers":"^2.0.6","@nomiclabs/hardhat-waffle":"^2.0.3","@debridge-finance/contracts":"github:debridge-finance/debridge-contracts-v1#8c6f3845288d8e0596fb2700beb2ee2725d802fb","@openzeppelin/hardhat-upgrades":"^1.19.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/desdk_0.0.1_1660135432662_0.1886164636417178","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@debridge-finance/desdk","version":"1.0.0","keywords":["bridge","deBridge","ethereum"],"author":{"name":"deBridge"},"license":"LGPL-3.0-only","_id":"@debridge-finance/desdk@1.0.0","maintainers":[{"name":"artyukh","email":"yaroslav@debridge.finance"},{"name":"alexeychr","email":"alx.churkin@gmail.com"}],"homepage":"https://debridge.finance","bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"dist":{"shasum":"085756678fe051997b96b118b11f0e18481c4f40","tarball":"https://registry.npmjs.org/@debridge-finance/desdk/-/desdk-1.0.0.tgz","fileCount":1251,"integrity":"sha512-HGt64ia5XLsFMa06RjnG0y6GE1w1SJm79/fU6HOuH+BKmhUu6WQlrG+AQ55kzqDNXGHIAgMGuNWgv1miCye3GA==","signatures":[{"sig":"MEUCIQCwxPlU7jlWfpUnP3/t+spFeqYnnHPmjxt6LLDnk06b1gIgDmXjsDhe9ZNTj2sk0m4LK8f1E/Fx1LRqFxwUU5nwcmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4058086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBgVkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIFxAAmwI9sqVpOn6V0y6OH9+bFJeSjyPjFo99d+ZwnAP0eEHaqCAT\r\n2x1LZQRc4RIM5TbKYFYE5nd3RHsRC3Is3EvIqVhHGHRDIZdBX4+Eu2QDWgx2\r\ncd9FjA0FU3AKxUPob3VWQvGGiEmT3mCWgCeM9n9SoBQGeZG3IA6QgEc0WQqn\r\ns/sYDNeRbM0UpG0M+gOtMKgc25y/CbXnqCsv9ulx+8D8GDq8cVo4cs7VzeMA\r\nF19fLvcpBpG1xfYmpZcFmXR5to4PDQUw+P6evvbaMh8pmDWIwutO4RJFL5ci\r\nK5AiHodOg88peJa6I76OXfGAeH3hJPY5GT3zRzAxq3B74ez0I2fR92+I4+oU\r\nmEg4lU8qRcHnRQGvWUL5sLIvKWNgn3xw5EDPE5xHcIyRH7k5MwOUWCcdIedg\r\n8vx0jDrnTjhFxuWGyXP/DjtcYxknWHwW6tIWmJKCTV9o+aY5YKdeWdfaBzj0\r\nfvUpHTbnVKG5/TkB3F3Lwb1DpVGUbrO2dvA6DxIKzpBsfSfpxGIKTsfB8sTL\r\nRkk2Xwh/jO1jxGQxLkmc9TzyKub1A4RZS0LkCnDdpA1Lg29pNyANhh2Bjisb\r\nYFIMb+rqTMtCbtWBTGq8sWmVMUDX80XzxCmSXqQ99zSVMU7K5PFdLWGkqArk\r\n0fNnDITSTNYlV4inOR+LLH1SEUTBA37g8FQ=\r\n=jEFI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","module":"lib.esm/index.js","gitHead":"70197c6597ada07a5e1ade63df61f49131a725c7","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json","test":"mocha --exit --recursive 'test/**/*.test.ts'","build":"npm-run-all clean build-*","clean":"rm -rf build","prepare":"npm run build","lint:fix":"prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json","build-cjs":"tsc --build tsconfig.json","build-esm":"tsc --build tsconfig-esm.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexeychr","email":"alx.churkin@gmail.com"},"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"_npmVersion":"8.15.0","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","directories":{},"_nodeVersion":"18.7.0","dependencies":{"ethers":"^5.1.3","@ethersproject/abi":"^5.0.0","@ethersproject/bytes":"^5.0.0","@ethersproject/providers":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","tslint":"^6.1.3","hardhat":"^2.10.1","ts-node":"^10.9.1","prettier":"2.7.1","typescript":">=4.3.0","@types/chai":"^4.3.1","@types/node":"^18.6.2","npm-run-all":"^4.1.5","@types/mocha":"^9.1.1","ethereum-waffle":"^3.4.4","@typechain/hardhat":"^6.1.2","@typechain/ethers-v5":"^10.1.0","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","@nomiclabs/hardhat-ethers":"^2.0.6","@nomiclabs/hardhat-waffle":"^2.0.3","@debridge-finance/contracts":"github:debridge-finance/debridge-contracts-v1#8c6f3845288d8e0596fb2700beb2ee2725d802fb","@openzeppelin/hardhat-upgrades":"^1.19.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/desdk_1.0.0_1661338980383_0.6739292209933214","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@debridge-finance/desdk","version":"1.0.1","keywords":["bridge","deBridge","ethereum"],"author":{"name":"deBridge"},"license":"LGPL-3.0-only","_id":"@debridge-finance/desdk@1.0.1","maintainers":[{"name":"alexsmirnov","email":"alekseissmirnov@gmail.com"},{"name":"artyukh","email":"yaroslav@debridge.finance"},{"name":"alexeychr","email":"alx.churkin@gmail.com"}],"homepage":"https://debridge.finance","bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"dist":{"shasum":"70a0a71e5be4bbe7f0cfeeab1f1a4e368c3cedaf","tarball":"https://registry.npmjs.org/@debridge-finance/desdk/-/desdk-1.0.1.tgz","fileCount":1251,"integrity":"sha512-oXcVCqUxDW4Ey8mqsPcWi4Kvv8cLChFxVLBXPmYeStpf77shiaiTt0IONZjMVYLSbiSVQlC8lm/SUoZtQzePHg==","signatures":[{"sig":"MEUCIQCTkiXM9bhI9fbyYbBwN43rZw4Q3Ix1QBSc4obWjh/G/wIgTr3VfdFXaY+z4tTFq7O/df8m92znbJS5SVPdYyoBwZ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4059238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgN2MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroiA/8DtCg8gzN7wp4kw5XSgthTKjMzNNazAGdOe3i/b3YLYa1RVUq\r\n0Xg7ybqOcSztmH0DxPupG8Gu8X83lVUKgLaMQEleENAiSaFningl2oTwCGGZ\r\n67ZD8X/i09jLSoPYPqn1iO4+TaK+NB82Hw8bMRY6v0ckMIZPKJJztUZhtJxn\r\nsZkRobYQzuBvFpIL4tIXOEwFAsj96GVY9MIYn6xWnsxiVk1MWJQxR4mkhXX4\r\nk+49E6hj5QZYnnvnTxLN45g5N/eAtCdftoj/2wWNHekiU+keFH0QH5inMon4\r\nZL3wjnNovcc+ztCSg49k6DuvT6/RGD7u2xKFgPqAkRlxWB5QbhAxdwRPdZc+\r\nVCwX7tq8IKElazqcpzYb9UrbhsmL47oRuBtSZBQB79WBqZsBWdvHUeWWs2od\r\nWq27xUCnx3yCSZg3wrwC0b01NX9BF213UEaW0MMVFc8ySpFoaJrrkzuAosd8\r\nyBO7xkPobb8UewGvKRPaLPAMo5PpyXEoz58FoYCDTecOEAtyufTYFEcBxiLP\r\n3iedftR6Of7XWTgvcH/Yu1i5bN5a4R+YOmUlMpoLO9jO1KQFxMRzjcvP9Ux1\r\nTkMJmMXhqdGyrzx12FExlLsJbxXHbeRzu2+zv2E7ZfTr2IeloYs8p66tOxpw\r\n/Q//H1Uc4cB2wLUy8iIuvBDUTFoM/maKYPc=\r\n=lFP4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","module":"lib.esm/index.js","gitHead":"1c44fbd012b11b64e82386354d7d686e0a7f15ea","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json","test":"mocha --exit --recursive 'test/**/*.test.ts'","build":"npm-run-all clean build-*","clean":"rm -rf build","prepare":"npm run build","lint:fix":"prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json","build-cjs":"tsc --build tsconfig.json","build-esm":"tsc --build tsconfig-esm.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexeychr","email":"alx.churkin@gmail.com"},"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"_npmVersion":"8.19.1","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","directories":{},"_nodeVersion":"18.9.0","dependencies":{"ethers":"^5.1.3","@ethersproject/abi":"^5.0.0","@ethersproject/bytes":"^5.0.0","@ethersproject/providers":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","tslint":"^6.1.3","hardhat":"^2.10.1","ts-node":"^10.9.1","prettier":"2.7.1","typescript":">=4.3.0","@types/chai":"^4.3.1","@types/node":"^18.6.2","npm-run-all":"^4.1.5","@types/mocha":"^9.1.1","ethereum-waffle":"^3.4.4","@typechain/hardhat":"^6.1.2","@typechain/ethers-v5":"^10.1.0","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","@nomiclabs/hardhat-ethers":"^2.0.6","@nomiclabs/hardhat-waffle":"^2.0.3","@debridge-finance/contracts":"github:debridge-finance/debridge-contracts-v1#8c6f3845288d8e0596fb2700beb2ee2725d802fb","@openzeppelin/hardhat-upgrades":"^1.19.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/desdk_1.0.1_1669389708184_0.8683857163334934","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@debridge-finance/desdk","version":"1.0.2","keywords":["bridge","deBridge","ethereum"],"author":{"name":"deBridge"},"license":"LGPL-3.0-only","_id":"@debridge-finance/desdk@1.0.2","maintainers":[{"name":"alexsmirnov","email":"alekseissmirnov@gmail.com"},{"name":"artyukh","email":"yaroslav@debridge.finance"},{"name":"alexeychr","email":"alx.churkin@gmail.com"}],"homepage":"https://debridge.finance","bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"dist":{"shasum":"e7ee5a414c9604938cb11a6bd425f4d793572b3d","tarball":"https://registry.npmjs.org/@debridge-finance/desdk/-/desdk-1.0.2.tgz","fileCount":1251,"integrity":"sha512-CFlRAn+sZhlQH9jOueR1KbhCsvr31DsMcGXeowxi2DhUat5ImLBYeFUoH0K/5PHY+2KFIscSpW3YnBlEOTPxfw==","signatures":[{"sig":"MEUCIQDD0k6Xkd7plMbpX/TjJG0aRMMFck04r8iu66GIc68q6QIgadvDcfRT2p8mOXjCKjjlIz1nLwDYWBGzYQp4QPEDgeQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4062202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkmf3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3eg//QevPogd0faD330B9dzFwnu/Z/PDlyPkzPGV/Ogu0nW/II5vT\r\nNEp4LfHmWN+rmzyr23OhCbQ+2aeXPeY80cMJBiWYtMc27YjTuJaO767fnn7R\r\nwbt8hpuohUu+oMWivZLRSI6AIpaf+Yo+tKs/aAeu59aHEKCEyd72zhAQ7Gv2\r\n6tUDV150d5NV7xbRV2EotidUpLU0RDYBR4xpE9MmzWcikrsVN1dJzz1XIkg+\r\nM9URwFS166hSPwPDq2/Hhu1WlQ1eAp0mUciuhUM/F0NhexyIVd860I7JLdDo\r\nS1eSA0ovrEQ4P+MliRGYA6ubVlOjWeFbIil9xSzeP1bCqcOszq31efVAgPdp\r\nNGD8SPOMbgLjqI8t0geRRKZxZjduS7iaH+FxvPRTQlopUxdl61PLgVFuYqRc\r\nV0E+WT18bbcAucTzKqnxcK9joZeOLiFCSa9oaV052b1FXscBC0SMlDYda5CY\r\nSTn9qoE/tEeQFeh3z0suHMnH/UySXmfR4oP7cZx6Z4XkcX+Rz4yrWtnTjCD6\r\nBbGScs3CYIokeQjCaersoBU3r2xurqG4l9/6u0+pnyvWwpIyGLEDH9iW34Dv\r\nqDQlTlv+g3IUgSC6zMGVQsdh7e1r8wZyGEFp66G3KuncvgrwNbD62UoekJ8Y\r\nHppXdCNbUJG4mc5KPf3/xrRuTEmoMV+yfsg=\r\n=o5mY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","module":"lib.esm/index.js","gitHead":"a76258dfc29ef42de6ca372f97b35e8fe5056806","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json","test":"mocha --exit --recursive 'test/**/*.test.ts'","build":"npm-run-all clean build-*","clean":"rm -rf build","prepare":"npm run build","lint:fix":"prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json","build-cjs":"tsc --build tsconfig.json","build-esm":"tsc --build tsconfig-esm.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexeychr","email":"alx.churkin@gmail.com"},"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"_npmVersion":"8.19.1","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","directories":{},"_nodeVersion":"18.9.0","dependencies":{"ethers":"^5.1.3","@ethersproject/abi":"^5.0.0","@ethersproject/bytes":"^5.0.0","@ethersproject/providers":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","tslint":"^6.1.3","hardhat":"^2.10.1","ts-node":"^10.9.1","prettier":"2.7.1","typescript":">=4.3.0","@types/chai":"^4.3.1","@types/node":"^18.6.2","npm-run-all":"^4.1.5","@types/mocha":"^9.1.1","ethereum-waffle":"^3.4.4","@typechain/hardhat":"^6.1.2","@typechain/ethers-v5":"^10.1.0","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","@nomiclabs/hardhat-ethers":"^2.0.6","@nomiclabs/hardhat-waffle":"^2.0.3","@debridge-finance/contracts":"github:debridge-finance/debridge-contracts-v1#8c6f3845288d8e0596fb2700beb2ee2725d802fb","@openzeppelin/hardhat-upgrades":"^1.19.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/desdk_1.0.2_1670539255154_0.991722435435644","host":"s3://npm-registry-packages"}},"2.0.0-rc.0":{"name":"@debridge-finance/desdk","version":"2.0.0-rc.0","keywords":["bridge","deBridge","ethereum"],"author":{"name":"deBridge"},"license":"LGPL-3.0-only","_id":"@debridge-finance/desdk@2.0.0-rc.0","maintainers":[{"name":"alexeychr","email":"alx.churkin@gmail.com"},{"name":"artyukh","email":"yaroslav@debridge.finance"},{"name":"alexsmirnov","email":"alekseissmirnov@gmail.com"}],"homepage":"https://debridge.finance","bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"dist":{"shasum":"4bf46d895b6278101b6dba10edf2f0571ca4e7c3","tarball":"https://registry.npmjs.org/@debridge-finance/desdk/-/desdk-2.0.0-rc.0.tgz","fileCount":2181,"integrity":"sha512-l7WMBSlE53Ke9fLcbAUXGCkJRgyFQqz1PANev2ngJsRXXyvlyIAom2xOiVuQbsU2SKqT5uKritx8Eseyp0S4dw==","signatures":[{"sig":"MEQCICt94qFfrIf2myItQ7mdhPgGHHoLglqUGg5Wze4NXtrGAiBbXnkufZ1DA9+gy1Sdc+gBDU6cAKb25o4+xcmwzqemlQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11004406},"main":"lib/index.js","types":"lib/index.d.ts","module":"lib.esm/index.js","gitHead":"4a37a25cf847150593d667b1379229de4f3b1bc1","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json","test":"mocha --exit --recursive 'test/**/*.test.ts'","build":"npm-run-all build-*","clean":"npm run test:clean && npm run build:clean","prepare":"npm run build","pretest":"npm-run-all test:clean build test:build","lint:fix":"prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json","prebuild":"npm-run-all build:clean && hardhat compile","build-cjs":"tsc --build tsconfig.json","build-esm":"tsc --build tsconfig-esm.json","test:build":"cd test/fixture && hardhat compile","test:clean":"cd test/fixture && hardhat clean","build:clean":"rm -rf build && hardhat clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexeychr","email":"alx.churkin@gmail.com"},"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"_npmVersion":"10.8.1","description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","directories":{},"_nodeVersion":"22.4.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tslint":"^6.1.3","ts-node":"^10.9.1","prettier":"2.7.1","typescript":"^5.8.0","npm-run-all":"^4.1.5","tslint-config-prettier":"^1.18.0","tslint-plugin-prettier":"^2.3.0","@openzeppelin/contracts":"4.8.2","@openzeppelin/hardhat-upgrades":"3.6.0","@nomicfoundation/hardhat-toolbox":"5.0.0","@openzeppelin/contracts-upgradeable":"4.8.2"},"peerDependencies":{"ethers":"^6.11.1"},"_npmOperationalInternal":{"tmp":"tmp/desdk_2.0.0-rc.0_1748974067551_0.8713215394282425","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2022-08-10T12:43:52.597Z","modified":"2026-01-28T16:10:03.753Z","0.0.1":"2022-08-10T12:43:52.926Z","1.0.0":"2022-08-24T11:03:00.714Z","1.0.1":"2022-11-25T15:21:48.534Z","1.0.2":"2022-12-08T22:40:55.357Z","2.0.0-rc.0":"2025-06-03T18:07:47.851Z"},"bugs":{"url":"https://github.com/debridge-finance/desdk/issues"},"author":{"name":"deBridge"},"license":"LGPL-3.0-only","homepage":"https://debridge.finance","keywords":["bridge","deBridge","ethereum"],"repository":{"url":"git+https://github.com/debridge-finance/desdk.git","type":"git"},"description":"Send, track and claim arbitrary cross-chain messages over the deBridge protocol programmatically","maintainers":[{"email":"alexey.ezhov@debridge.finance","name":"alexey.ezhov"},{"email":"alx.churkin@gmail.com","name":"alexeychr"},{"email":"yaroslav@debridge.finance","name":"artyukh"}],"readme":"# deBridge SDK\n\n**Send, track and claim arbitrary cross-chain messages programmatically with the [deBridge protocol](https://debridge.finance)**. 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.\n\n## Installation\n\nInstall the package:\n\n```bash\nnpm i --save @debridge-finance/desdk\n```\n\nImport the `evm` namespace:\n\n```ts\nimport { evm } from \"@debridge-finance/desdk\";\n```\n\n## Sending messages directly\n\n`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:\n\n```ts\n// the address on the BNB Chain where deETH should be sent to\nconst BNB_receiver = \"0x...\";\n\n// send 1 ether from Ethereum to BNB\nconst message = new evm.Message({\n    tokenAddress: \"0x0000000000000000000000000000000000000000\",\n    amount: \"1000000000000000000\",\n    chainIdTo: \"56\",\n    receiver: BNB_receiver,\n    autoParams: new evm.SendAutoParams({\n        executionFee: \"0\",\n        fallbackAddress: BNB_receiver,\n        flags: new Flags(),\n        data: \"0x\", // nothing to call on the dst chain, just bridge wrapped ether\n    })\n});\n\n// the resulting tuple of args to be then passed to the deBridgeGate.send() method\nconst argsForSend = message.getEncodedArgs();\n\n// argsForSend may now be passed to the deBridgeGate.send() call\n// via web3.js, ethers.js, or passed to your smart contract which will call\n// deBridgeGate onchain\n\n// example using hardhat-ethers:\n// const deBridgeGate = await ethers.getContractAt('DeBridgeGate', '0x43dE2d77BF8027e25dBD179B491e8d64f38398aA);\n// const fee = await deBridgeGate.globalFixedNativeFee();\n// const etherToSend = fee.add(parseEther('1))\n// const tx = await deBridgeGate.send(\n//     ...argsForSend,\n//     { value: etherToSend }\n// )\n```\n\n## Tracking submissions\n\nAfter 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.\n\nTo 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):\n\n```ts\nconst evmOriginContext: evm.Context = {\n    // provide a URL to the RPC node of the 🛫origin chain\n    provider: \"https://mainnet.infura.io/v3/...\",\n}\n```\n\nThen pass this context to the `evm.Submission` initialization:\n\n```ts\n// find all submissions submitted in your transaction by its hash\n// Obviously, a single transaction may contain multiple submissions:\n// a contract may call deBridgeGate.send() multiple times, e.g. to submit data\n// to different chains simultaneously - that's why Submission.findAll()\n// returns an array of Submission objects\nconst submissions = await evm.Submission.findAll(transactionHash, evmOriginContext);\n\n// take the first submission.\n// DO YOUR OWN SANITY CHECKS TO ENSURE IT CONTAINS THE EXPECTED NUMBER OF SUBMISSIONS\nconst [submission] = submissions;\n\n// check if submission if confirmed: validator nodes wait a specific block\n// confirmations before sign the message. Currently, 12 blocks is expected\n// for most supported EVM chains (256 for Polygon).\nconst isConfirmed = await submission.hasRequiredBlockConfirmations();\n\n// there is also a bunch of useful properties that describe the submission, e.g.\nconsole.log(\"cross-chain asset ID transferred: \", submission.debridgeId)\nconsole.log(\"amount transferred to\", submission.amount, submission.receiver)\n```\n\n## Tracking and executing claims\n\nAfter the submission has been confirmed, each elected validator verifies and signs it with its own private key and publishes the signature to the publicly available storage. After enough signatures have been published, a call to `deBridgeGate.claim()` method may be made on the destination chain to finalize the submission and execute the message.\n\nThe `claim()` methods expects a variety of args, including the contents of the submission and the signatures. To handle this step, an `evm.Claim` object exists, providing handy methods to check the status of the claim and craft a tuple of scalar args (containing encoded values) ready to be passed to the `deBridgeGate`'s `claim()` method in an unopinionated manner.\n\nAgain, the first thing to do is to construct a context with the destination chain:\n\n```ts\nconst evmDestinationContext: evm.Context = {\n    // provide a URL to the RPC node of the 🛬destination chain\n    provider: \"https://mainnet.infura.io/v3/...\",\n}\n```\n\nPass this context while accessing the `Claim` object of the particular submission:\n\n```ts\nif (isConfirmed) {\n    const claim = await submission.toEVMClaim(evmDestinationContext);\n\n    // check if claim has been signed by enough validators\n    await isSigned = await claim.isSigned();\n\n    // check if this claim has been already executed\n    await isExecuted = await claim.isExecuted();\n\n    // get claim args\n    if (isSigned && !isExecuted) {\n        // the resulting tuple of args to be then passed to the deBridgeGate.claim() method\n        const claimArgs = await claim.getEncodedArgs();\n\n        // e.g. using ethers.js:\n        // await deBridgeGate.claim(...claimArgs, { gasLimit: 8_000_000 });\n    }\n}\n```\n\n## Works with a `hardhat-debridge` emulated environment!\n\n[`hardhat-debridge`](https://github.com/debridge-finance/hardhat-debridge) is a plugin for Hardhat that provides the toolkit to test and emulate dApps built on top of deBridge protocol, and it is confirmed to be deSDK-compatible. This means that you can develop automated tests to validate how your deSDK-based scripts work with the deBridge infrastructure. After all, the [`hardhat-debridge`](https://github.com/debridge-finance/hardhat-debridge) itself uses deSDK under the hood and is covered with extensive tests which use the plugin and deSDK simultaneously.\n\nBy default, deSDK internals are configured to run against production environments (mainnets for all supported networks: Ethereum, Polygon, etc). To make it work against local emulated environment, craft a special `evmContext` object:\n\n```ts\n// craft the context deSDK shall work within\nconst evmLocalContext: evm.Context = {\n    // pass the current hardhat network. deSDK is ready to accept it\n    provider: hre,\n\n    // pass the custom address of the gate we are interacting with\n    deBridgeGateAddress: gate.address,\n\n    // emulated gate works without signatures, so pass a dummy\n    signatureStorage: new evm.DummySignatureStorage()\n}\n```\n\nThen pass this object as an optional param every time you communicate with deSDK classes:\n\n```ts\nconst message = new evm.Message(messageParams, evmLocalContext);\nconst submissions = await evm.Submission.findAll(transactionHash, evmLocalContext);\nconst claim = await submission.toEVMClaim(evmLocalContext);\n```\n\n##\n\nReach out to us on Discord if you have any questions or some feedback on the npm package. We are looking forward to seeing what type of cross-chain applications and primitives will be built with the SDK moving forward.","readmeFilename":"README.md"}