@layerzerolabs/layerzero-definitions 0.2.68 → 0.2.70

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 (55) hide show
  1. package/dist/{BZRGE5YS.js → 27DOHIW3.js} +6 -2
  2. package/dist/27DOHIW3.js.map +1 -0
  3. package/dist/{H3DPKS5Y.js → 6N6LTXMT.js} +3 -3
  4. package/dist/{H3DPKS5Y.js.map → 6N6LTXMT.js.map} +1 -1
  5. package/dist/{OBMJYHTN.cjs → INU6U3VI.cjs} +4 -4
  6. package/dist/{OBMJYHTN.cjs.map → INU6U3VI.cjs.map} +1 -1
  7. package/dist/KCYVOVQK.cjs +3692 -0
  8. package/dist/KCYVOVQK.cjs.map +1 -0
  9. package/dist/{G74I6RAD.js → MYC7SAIL.js} +3 -3
  10. package/dist/{G74I6RAD.js.map → MYC7SAIL.js.map} +1 -1
  11. package/dist/{PGXOXTR4.js → MZS26G2H.js} +35 -3
  12. package/dist/MZS26G2H.js.map +1 -0
  13. package/dist/{H4SA3OVR.cjs → NRJCM3LH.cjs} +4 -4
  14. package/dist/{H4SA3OVR.cjs.map → NRJCM3LH.cjs.map} +1 -1
  15. package/dist/{STETWTPI.js → NVZPUHQU.js} +3 -3
  16. package/dist/{STETWTPI.js.map → NVZPUHQU.js.map} +1 -1
  17. package/dist/{F2575SRT.cjs → UWL2SDPX.cjs} +6 -2
  18. package/dist/UWL2SDPX.cjs.map +1 -0
  19. package/dist/{RMFVNS3Z.cjs → WQJEO2C5.cjs} +8 -8
  20. package/dist/{RMFVNS3Z.cjs.map → WQJEO2C5.cjs.map} +1 -1
  21. package/dist/chainKeys.cjs +5 -5
  22. package/dist/chainKeys.d.ts +24 -0
  23. package/dist/chainKeys.d.ts.map +1 -1
  24. package/dist/chainKeys.js +2 -2
  25. package/dist/enums.cjs +12 -12
  26. package/dist/enums.d.ts +4 -0
  27. package/dist/enums.d.ts.map +1 -1
  28. package/dist/enums.js +1 -1
  29. package/dist/environmentDefinition.cjs +5 -5
  30. package/dist/environmentDefinition.js +3 -3
  31. package/dist/environmentInstanceDefinition.cjs +5 -5
  32. package/dist/environmentInstanceDefinition.js +3 -3
  33. package/dist/index.cjs +29 -29
  34. package/dist/index.js +5 -5
  35. package/dist/schema.cjs +8 -8
  36. package/dist/schema.js +2 -2
  37. package/package.json +9 -6
  38. package/.turbo/turbo-build.log +0 -81
  39. package/.turbo/turbo-lint.log +0 -8
  40. package/.turbo/turbo-test.log +0 -16
  41. package/dist/BZRGE5YS.js.map +0 -1
  42. package/dist/F2575SRT.cjs.map +0 -1
  43. package/dist/PGXOXTR4.js.map +0 -1
  44. package/dist/VHWJSZOJ.cjs +0 -3660
  45. package/dist/VHWJSZOJ.cjs.map +0 -1
  46. package/src/address.ts +0 -50
  47. package/src/chainKeys.ts +0 -3659
  48. package/src/enums.ts +0 -1363
  49. package/src/environmentDefinition.ts +0 -15
  50. package/src/environmentInstanceDefinition.ts +0 -15
  51. package/src/index.ts +0 -7
  52. package/src/protocol.ts +0 -38
  53. package/src/schema.ts +0 -28
  54. package/tsconfig.json +0 -20
  55. package/tsup.config.ts +0 -8
@@ -1,15 +0,0 @@
1
- import { ContextDefinition } from '@layerzerolabs/context-node';
2
- export type { ContextDefinition } from '@layerzerolabs/context-node';
3
-
4
- import type { Identity } from '@layerzerolabs/typescript-utils';
5
-
6
- import { environmentSchema } from './schema';
7
-
8
- export const _environmentDefinition = new ContextDefinition({
9
- name: 'Environment',
10
- schema: environmentSchema,
11
- });
12
-
13
- export interface EnvironmentDefinition extends Identity<typeof _environmentDefinition> {}
14
-
15
- export const environmentDefinition: EnvironmentDefinition = _environmentDefinition;
@@ -1,15 +0,0 @@
1
- import { ContextDefinition } from '@layerzerolabs/context-node';
2
- import type { Identity } from '@layerzerolabs/typescript-utils';
3
-
4
- import { environmentInstanceSchema } from './schema';
5
-
6
- export const _environmentInstanceDefinition = new ContextDefinition({
7
- name: 'EnvironmentInstance',
8
- schema: environmentInstanceSchema,
9
- });
10
-
11
- export interface EnvironmentInstanceDefinition
12
- extends Identity<typeof _environmentInstanceDefinition> {}
13
-
14
- export const environmentInstanceDefinition: EnvironmentInstanceDefinition =
15
- _environmentInstanceDefinition;
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './address';
2
- export * from './chainKeys';
3
- export * from './enums';
4
- export * from './environmentDefinition';
5
- export * from './environmentInstanceDefinition';
6
- export * from './protocol';
7
- export * from './schema';
package/src/protocol.ts DELETED
@@ -1,38 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export enum UlnVersion {
4
- V1 = 'V1',
5
- V2 = 'V2',
6
- V300 = 'V300', // simpleMessageLib
7
- V301 = 'V301',
8
- V302 = 'V302',
9
- ReadV1002 = 'ReadV1002',
10
- }
11
-
12
- export const ulnVersionSchema = z.enum(UlnVersion);
13
-
14
- export enum EndpointVersion {
15
- V1 = 'v1',
16
- V2 = 'v2',
17
- }
18
-
19
- export const endpointVersionSchema = z.enum(EndpointVersion);
20
-
21
- export enum ProtocolContracts {
22
- ENDPOINT_V2 = 'EndpointV2',
23
- EXECUTOR = 'Executor',
24
- EXECUTOR_FEELIB = 'ExecutorFeeLib',
25
- DVN = 'DVN',
26
- DVN_FEELIB = 'DVNFeeLib',
27
- PRICE_FEED = 'PriceFeed',
28
- SIMPLE_MESSAGE_LIB = 'SimpleMessageLib',
29
- TREASURY = 'Treasury',
30
- ULN_V301_SEND = 'UltraLightNodeV301Send',
31
- ULN_V301_RECEIVE = 'UltraLightNodeV301Receive',
32
- ULN_V302_SEND = 'UltraLightNodeV302Send',
33
- ULN_V302_RECEIVE = 'UltraLightNodeV302Receive',
34
- ULN_READ_V1002 = 'ReadLib1002',
35
- OAPP = 'OApp',
36
- OMNI_COUNTER = 'OmniCounter',
37
- BLOCKED_MESSAGE_LIB = 'BlockedMessageLib',
38
- }
package/src/schema.ts DELETED
@@ -1,28 +0,0 @@
1
- import z from 'zod';
2
-
3
- import { brandSchema } from '@layerzerolabs/zod-utils';
4
-
5
- import { ChainKey, ChainName, ChainType, Environment, EnvironmentInstance } from './enums';
6
-
7
- export const chainNameSchema = brandSchema(z.enum(ChainName), 'ChainNameSchema');
8
-
9
- export const chainTypeSchema = brandSchema(z.enum(ChainType), 'ChainTypeSchema');
10
-
11
- export const chainKeySchema = brandSchema(z.enum(ChainKey), 'ChainKeySchema');
12
-
13
- export const environmentSchema = brandSchema(z.enum(Environment), 'EnvironmentSchema');
14
-
15
- export const environmentInstanceSchema = brandSchema(
16
- z.enum(EnvironmentInstance),
17
- 'EnvironmentInstanceSchema',
18
- );
19
-
20
- export const nativeAddressSchema = brandSchema(
21
- z.object({
22
- nativeAddress: z.string(),
23
- chainName: chainNameSchema,
24
- }),
25
- 'NativeAddressSchema',
26
- );
27
-
28
- export type NativeAddress = z.infer<typeof nativeAddressSchema>;
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json",
3
- "compilerOptions": {
4
- "rootDir": "./src",
5
- "outDir": "./dist",
6
- "strictPropertyInitialization": false,
7
- "noUnusedLocals": false,
8
- "noUnusedParameters": false,
9
- "jsx": "react-jsx"
10
- },
11
- "exclude": [
12
- "node_modules",
13
- "**/__mocks__/*",
14
- "**/__tests__/*",
15
- "**/*.spec.ts",
16
- "**/*.test.ts",
17
- "dist"
18
- ],
19
- "include": ["src/**/*"]
20
- }
package/tsup.config.ts DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- import { createPackageTsupConfig } from '@layerzerolabs/tsup-configuration';
4
-
5
- export default defineConfig(({ watch }) => ({
6
- ...createPackageTsupConfig(),
7
- clean: !watch,
8
- }));