@gearbox-protocol/deploy-tools 5.45.18 → 5.45.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +13 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -440275,6 +440275,9 @@ function isDeployTransaction(t) {
440275
440275
  function isCallExternalTransaction(t) {
440276
440276
  return t.contract === "CREATE2_FACTORY" && (t.method === "callExternal(address,bytes)" || t.method === "callExternalWithValue(address,bytes)");
440277
440277
  }
440278
+ function isCrossChainCallTransaction(t) {
440279
+ return t.contract === "CROSS_CHAIN_MULTISIG" && t.method === "submitBatch(string,(uint256,address,bytes)[],bytes32)";
440280
+ }
440278
440281
 
440279
440282
  // ../../packages/node/dist/helpers/VyperCompiler.js
440280
440283
  var VyperCompiler = class {
@@ -450629,6 +450632,15 @@ var UpdateParser = class extends ProviderBase {
450629
450632
  if (isDeployTransaction(tx)) {
450630
450633
  this.#collectCreate2Addresses(tx.constructorTransaction);
450631
450634
  }
450635
+ if (isCrossChainCallTransaction(tx)) {
450636
+ for (const call2 of tx.calls) {
450637
+ const addr = container.addressTree.getContract(call2.to);
450638
+ if (!addr) {
450639
+ throw new Error(`address ${call2.to} for cross chain call is not found in tree`);
450640
+ }
450641
+ this.#output.addresses[call2.to.toLowerCase()] = addr;
450642
+ }
450643
+ }
450632
450644
  for (const p of tx.parameters) {
450633
450645
  if (p.type === "gearbox_address") {
450634
450646
  const pAddr = container.addressTree.getContract(p.value);
@@ -452371,7 +452383,7 @@ function getRenderer(opts) {
452371
452383
  var package_default = {
452372
452384
  name: "@gearbox-protocol/deploy-tools",
452373
452385
  description: "Gearbox deploy tools",
452374
- version: "5.45.18",
452386
+ version: "5.45.19",
452375
452387
  homepage: "https://gearbox.fi",
452376
452388
  keywords: [
452377
452389
  "gearbox"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.45.18",
4
+ "version": "5.45.19",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"