@layerzerolabs/lz-contract-addresses 1.2.102 → 1.2.104

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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2026 - LayerZero Labs Ltd.
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+ The above copyright notice and this permission notice
13
+ shall be included in all copies or substantial portions
14
+ of the Software.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
19
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
22
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -5,4 +5,4 @@
5
5
  CI does not check it against the registry yet: that gate is step 3 of `apps/projects/deploy-wire-protocol-project-app/docs/cutover.md` (`export-address-snapshot --check` per environment). Until then, these tests guard it:
6
6
 
7
7
  - `tests/deploymentInfo.test.ts` compares the snapshot to the deploymentInfo files still committed under `deployments/layerzero/<env>` (the published Canton mainnet and testnet packages).
8
- - `tests/addressResolutionParity.test.ts` checks that every address main resolved still resolves the same, which covers the rest (EVM, Starknet, Stellar and the other VMs).
8
+ - `tests/addressResolutionParity.test.ts` checks that every address main resolved still resolves the same, which covers the rest (EVM, Starknet, Stellar and the other VMs). It allows only the DVN corrections, `ON_CHAIN_CORRECTIONS`, and `UNSEEDED_SANDBOX_LOOKUPS`: the 7 sandbox Tron lookups that only the dropped lz-evm-sdk-v1/v2 fallbacks answered. Sandbox is not seeded.
package/dist/index.d.ts CHANGED
@@ -9,10 +9,8 @@ export declare const listLZContractNames: () => string[];
9
9
  /** Address from the registry snapshot, else the frozen legacy table. */
10
10
  export declare const getLZContractAddressFromConfig: (contractName: string, chainName: ChainName, environment: Environment) => NormalizedHexString | undefined;
11
11
  /**
12
- * Address getter for `contractName`: the tables first, then `alternativeAddressGetter`
13
- * (an artifact package such as lz-evm-sdk-v2) for chains and contracts the registry does
14
- * not cover. It falls back whenever the tables have no address, including for a protocol
15
- * contract on a chain the registry snapshot covers.
12
+ * Address getter for `contractName` from the tables. Without `alternativeAddressGetter` it throws
13
+ * when the tables have no address; with one, it answers from it instead.
16
14
  */
17
- export declare const createLZContractAddressGetter: (contractName: string, alternativeAddressGetter: (chainName: ChainName, environment: Environment) => NormalizedHexString) => (chainName: ChainName, environment: Environment) => NormalizedHexString;
15
+ export declare const createLZContractAddressGetter: (contractName: string, alternativeAddressGetter?: (chainName: ChainName, environment: Environment) => NormalizedHexString) => (chainName: ChainName, environment: Environment) => NormalizedHexString;
18
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAuBxE,MAAM,MAAM,wBAAwB,GAC9B,iBAAiB,CAAC,WAAW,GAC7B,iBAAiB,CAAC,a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