@stargatefinance/stg-evm-v2 8.0.4 → 9.0.0

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
@@ -138,57 +138,12 @@ transfer.
138
138
 
139
139
  ## Unwiring messaging paths or an asset mesh
140
140
 
141
- This repo supports two YAML-driven unwire flows:
142
- - **Messaging path unwire**: disable specific TokenMessaging/CreditMessaging paths between chains.
143
- - **Asset mesh unwire**: remove a single asset from the mesh on specific chains by disabling OFT paths and clearing its
144
- assetId on messaging contracts.
145
-
146
- ### YAML schemas and templates
147
- Templates live in:
148
- - `devtools/config/mainnet/01/chainsConfig/unwire/0-template-asset.unwire.yml`
149
- - `devtools/config/mainnet/01/chainsConfig/unwire/0-template-messaging.unwire.yml`
150
-
151
- Copy these templates to `asset.unwire.yml` and `messaging.unwire.yml` (in the same directory) for use by the unwire flows.
152
- Asset unwire YAML example (mainnet):
153
- ```
154
- asset: eurc
155
- disconnect_chains:
156
- - avalanche-mainnet
157
- - base-mainnet
158
- remaining_chains:
159
- - ethereum-mainnet
160
- - bera-mainnet
161
- - plumephoenix-mainnet
162
- ```
163
-
164
- Messaging unwire YAML example (mainnet):
165
- ```
166
- rules:
167
- - chain: avalanche-mainnet
168
- allowed_peers:
169
- - avalanche-mainnet
170
- ```
171
-
172
- Note: `allowed_peers` must be non-empty. Use the same chain name to effectively remove all external paths for that chain.
173
-
174
- ### What it does
175
- - **Messaging path unwire**:
176
- - `token-messaging.unwire.config.ts` and `credit-messaging.unwire.config.ts` disable messaging paths based on
177
- `messaging.unwire.yml` rules.
178
- - **Asset mesh unwire**:
179
- - `asset.unwire.config.ts` sets `setOFTPath(dstEid, false)` for all edges between `disconnect_chains` and
180
- `remaining_chains`, bidirectionally.
181
- - `token-messaging-asset.unwire.config.ts` and `credit-messaging-asset.unwire.config.ts` call
182
- `setAssetId(address(0), assetId)` for `disconnect_chains` on TokenMessaging and CreditMessaging.
183
-
184
- ### Run the unwire flows
185
- Makefile targets:
186
- ```
187
- make unwire-messaging-mainnet
188
- make unwire-asset-mainnet
189
- ```
190
-
191
- Notes:
192
- - `setOFTPath(false)` only resets OFT paths; messaging asset removal is required to fully disable routing on-chain.
193
- - Only `disconnect_chains` are removed from messaging; `remaining_chains` remain active for the asset mesh.
194
- - Credits for pool paths should be set to zero by the planner
141
+ The detailed unwiring process is documented in
142
+ the [protocol unwiring runbook](../../docs/chain-deprecation/protocol-unwiring.md).
143
+
144
+ That runbook covers:
145
+ - Asset mesh unwire.
146
+ - Messaging unwire with `direction: from | to | both`.
147
+ - Make targets that pass the selected chain with `UNWIRE_CHAIN=<chain>`.
148
+ - `stg:check::messaging:disconnected`.
149
+ - Transaction review expectations and file cleanup order.
package/dist/index.cjs CHANGED
@@ -17,7 +17,7 @@ var require_package = __commonJS({
17
17
  "package.json"(exports, module) {
18
18
  module.exports = {
19
19
  name: "@stargatefinance/stg-evm-v2",
20
- version: "8.0.4",
20
+ version: "9.0.0",
21
21
  license: "BUSL-1.1",
22
22
  exports: {
23
23
  ".": {
@@ -101,7 +101,7 @@ var require_package = __commonJS({
101
101
  "@layerzerolabs/lz-v2-utilities": "~3.0.30",
102
102
  "@layerzerolabs/onesig-core": "0.1.0",
103
103
  "@layerzerolabs/onesig-evm": "0.0.12",
104
- "@stargatefinance/stg-definitions-v2": "~7.0.7",
104
+ "@stargatefinance/stg-definitions-v2": "~8.0.0",
105
105
  "@stargatefinance/stg-evm-v1": "~1.0.31",
106
106
  "@types/sinon": "~17.0.3",
107
107
  ethers: "^5.7.2"
@@ -145,8 +145,8 @@ var require_package = __commonJS({
145
145
  "@safe-global/api-kit": "^1.3.0",
146
146
  "@safe-global/protocol-kit": "^1.3.0",
147
147
  "@safe-global/safe-core-sdk-types": "^2.3.0",
148
- "@stargatefinance/stg-devtools-evm-hardhat-v2": "~11.0.4",
149
- "@stargatefinance/stg-devtools-v2": "~10.0.5",
148
+ "@stargatefinance/stg-devtools-evm-hardhat-v2": "~12.0.0",
149
+ "@stargatefinance/stg-devtools-v2": "~11.0.0",
150
150
  "@typechain/ethers-v5": "~11.1.2",
151
151
  "@typechain/hardhat": "~9.1.0",
152
152
  "@types/js-yaml": "^4.0.9",