@layerzerolabs/lz-contract-addresses 1.2.90 → 1.2.92
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 +8 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12877 -10
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
- package/dist/3VSGWXJ7.js +0 -174
- package/dist/3VSGWXJ7.js.map +0 -1
- package/dist/NXBCZZWM.js +0 -5014
- package/dist/NXBCZZWM.js.map +0 -1
- package/dist/OJCD4R67.js +0 -6105
- package/dist/OJCD4R67.js.map +0 -1
- package/dist/VUOMXK5T.js +0 -6
- package/dist/VUOMXK5T.js.map +0 -1
- package/dist/deploymentConfig/mainnet/deploymentConfig.d.ts +0 -3
- package/dist/deploymentConfig/mainnet/deploymentConfig.d.ts.map +0 -1
- package/dist/deploymentConfig/mainnet/deploymentConfig.js +0 -4
- package/dist/deploymentConfig/mainnet/deploymentConfig.js.map +0 -1
- package/dist/deploymentConfig/sandbox/deploymentConfig.d.ts +0 -3
- package/dist/deploymentConfig/sandbox/deploymentConfig.d.ts.map +0 -1
- package/dist/deploymentConfig/sandbox/deploymentConfig.js +0 -4
- package/dist/deploymentConfig/sandbox/deploymentConfig.js.map +0 -1
- package/dist/deploymentConfig/testnet/deploymentConfig.d.ts +0 -3
- package/dist/deploymentConfig/testnet/deploymentConfig.d.ts.map +0 -1
- package/dist/deploymentConfig/testnet/deploymentConfig.js +0 -4
- package/dist/deploymentConfig/testnet/deploymentConfig.js.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Protocol address snapshot
|
|
2
|
+
|
|
3
|
+
`src/generated/<env>.json` holds the protocol contract addresses owned by the deploy & wire registry. Generate it from the registry with `export-address-snapshot` (`apps/projects/deploy-wire-protocol-project-app/scripts`); don't edit it by hand.
|
|
4
|
+
|
|
5
|
+
CI does not check it against the registry yet: that gate is step 2 of `apps/projects/deploy-wire-protocol-project-app/docs/cutover.md` (`export-address-snapshot --check` per environment). Until then, these tests guard it:
|
|
6
|
+
|
|
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).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { NormalizedHexString } from '@layerzerolabs/common-chain-model';
|
|
2
2
|
import type { ChainName } from '@layerzerolabs/layerzero-definitions';
|
|
3
3
|
import { Environment } from '@layerzerolabs/layerzero-definitions';
|
|
4
|
+
import { ProtocolContracts } from '@layerzerolabs/protocol-model';
|
|
5
|
+
export type ProtocolSnapshotContract = ProtocolContracts.ENDPOINT_V2 | ProtocolContracts.ULN_V302_SEND | ProtocolContracts.ULN_V302_RECEIVE | ProtocolContracts.DVN | ProtocolContracts.EXECUTOR | ProtocolContracts.PRICE_FEED | ProtocolContracts.TREASURY | ProtocolContracts.EXECUTOR_FEELIB | ProtocolContracts.DVN_FEELIB | ProtocolContracts.BLOCKED_MESSAGE_LIB | ProtocolContracts.SIMPLE_MESSAGE_LIB | ProtocolContracts.OMNI_COUNTER;
|
|
6
|
+
export declare const PROTOCOL_CONTRACT_SNAPSHOT_NAMES: Record<ProtocolSnapshotContract, string>;
|
|
7
|
+
export declare const getProtocolSnapshotAddress: (contractName: string, chainName: ChainName, environment: Environment) => NormalizedHexString;
|
|
8
|
+
export declare const listLZContractNames: () => string[];
|
|
9
|
+
/** Address from the registry snapshot, else the frozen legacy table. */
|
|
4
10
|
export declare const getLZContractAddressFromConfig: (contractName: string, chainName: ChainName, environment: Environment) => NormalizedHexString | undefined;
|
|
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.
|
|
16
|
+
*/
|
|
5
17
|
export declare const createLZContractAddressGetter: (contractName: string, alternativeAddressGetter: (chainName: ChainName, environment: Environment) => NormalizedHexString) => (chainName: ChainName, environment: Environment) => NormalizedHexString;
|
|
6
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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,+BAA+B,CAAC;AAuBlE,MAAM,MAAM,wBAAwB,GAC9B,iBAAiB,CAAC,WAAW,GAC7B,iBAAiB,CAAC,aAAa,GAC/B,iBAAiB,CAAC,gBAAgB,GAClC,iBAAiB,CAAC,GAAG,GACrB,iBAAiB,CAAC,QAAQ,GAC1B,iBAAiB,CAAC,UAAU,GAC5B,iBAAiB,CAAC,QAAQ,GAC1B,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,UAAU,GAC5B,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,kBAAkB,GACpC,iBAAiB,CAAC,YAAY,CAAC;AAErC,eAAO,M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