@curvefi/api 2.46.0 → 2.46.2

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.
package/README.md CHANGED
@@ -1652,6 +1652,7 @@ import curve from "@curvefi/api";
1652
1652
  console.log(curve.tricryptoFactory.gaugeImplementation());
1653
1653
  // 0x5fC124a161d888893529f67580ef94C2784e9233
1654
1654
 
1655
+ //For mainnet
1655
1656
  const deployGaugeTx = await curve.tricryptoFactory.deployGauge(poolAddress);
1656
1657
  // ContractTransactionResponse {
1657
1658
  // provider: JsonRpcProvider {},
@@ -1661,7 +1662,22 @@ import curve from "@curvefi/api";
1661
1662
  // }
1662
1663
  const gaugeAddress = await curve.factory.getDeployedGaugeAddress(deployGaugeTx);
1663
1664
  // 0x60d3d7ebbc44dc810a743703184f062d00e6db7e
1664
-
1665
+
1666
+ //For sidechain
1667
+ const salt = '15'
1668
+ //salt - unical random string
1669
+ const deployGaugeSidechain = await curve.tricryptoFactory.deployGaugeSidechain(poolAddress, salt);
1670
+ // ContractTransactionResponse {
1671
+ // provider: JsonRpcProvider {},
1672
+ // blockNumber: 17393463,
1673
+ // blockHash: '0x7f393493d7eb30b39aeef3118b51925426946eb83b72b18946f0da8c7bec40a0',
1674
+ // ...
1675
+ // }
1676
+ const gaugeSidechainAddress = await curve.factory.getDeployedGaugeAddress(deployGaugeSidechain);
1677
+ // 0x60d3d7ebbc44dc810a743703184f062d00e6db7e
1678
+ //After that should be deployed mirror gauge on mainnet with same salt
1679
+ //await curve.tricryptoFactory.deployGaugeMirror(sidechainId, salt);
1680
+
1665
1681
  // Deposit & Stake
1666
1682
 
1667
1683
  const poolId = await curve.tricryptoFactory.fetchRecentlyDeployedPool(poolAddress);