@layerzerolabs/protocol-v2-starknet-sdk 0.0.0-stage → 1.2.101

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 (111) hide show
  1. package/LICENSE +43 -0
  2. package/README.md +31 -2
  3. package/dist/3UUTAAI4.js +9 -0
  4. package/dist/3UUTAAI4.js.map +1 -0
  5. package/dist/5IPHVLYL.js +34 -0
  6. package/dist/5IPHVLYL.js.map +1 -0
  7. package/dist/77ZZJLOF.js +1243 -0
  8. package/dist/77ZZJLOF.js.map +1 -0
  9. package/dist/ACKG7HDD.js +58 -0
  10. package/dist/ACKG7HDD.js.map +1 -0
  11. package/dist/CU3OOWPK.js +1277 -0
  12. package/dist/CU3OOWPK.js.map +1 -0
  13. package/dist/F7HTFQNB.js +839 -0
  14. package/dist/F7HTFQNB.js.map +1 -0
  15. package/dist/JXI3BIRO.js +757 -0
  16. package/dist/JXI3BIRO.js.map +1 -0
  17. package/dist/L6LDHKAL.js +299 -0
  18. package/dist/L6LDHKAL.js.map +1 -0
  19. package/dist/LA77PTPC.js +497 -0
  20. package/dist/LA77PTPC.js.map +1 -0
  21. package/dist/MTEGVQNY.js +295 -0
  22. package/dist/MTEGVQNY.js.map +1 -0
  23. package/dist/OAAYXX72.js +1249 -0
  24. package/dist/OAAYXX72.js.map +1 -0
  25. package/dist/OUHF7FYP.js +12 -0
  26. package/dist/OUHF7FYP.js.map +1 -0
  27. package/dist/PTAS2VHT.js +58 -0
  28. package/dist/PTAS2VHT.js.map +1 -0
  29. package/dist/QL26J5ZZ.js +695 -0
  30. package/dist/QL26J5ZZ.js.map +1 -0
  31. package/dist/QXBNGZ57.js +329 -0
  32. package/dist/QXBNGZ57.js.map +1 -0
  33. package/dist/TECSILHK.js +2126 -0
  34. package/dist/TECSILHK.js.map +1 -0
  35. package/dist/VO7H47TG.js +1244 -0
  36. package/dist/VO7H47TG.js.map +1 -0
  37. package/dist/ZBWRU4IX.js +428 -0
  38. package/dist/ZBWRU4IX.js.map +1 -0
  39. package/dist/generated/abi/blocked-message-lib.d.ts +356 -0
  40. package/dist/generated/abi/blocked-message-lib.d.ts.map +1 -0
  41. package/dist/generated/abi/blocked-message-lib.js +4 -0
  42. package/dist/generated/abi/blocked-message-lib.js.map +1 -0
  43. package/dist/generated/abi/dvn-fee-lib.d.ts +214 -0
  44. package/dist/generated/abi/dvn-fee-lib.d.ts.map +1 -0
  45. package/dist/generated/abi/dvn-fee-lib.js +4 -0
  46. package/dist/generated/abi/dvn-fee-lib.js.map +1 -0
  47. package/dist/generated/abi/dvn.d.ts +915 -0
  48. package/dist/generated/abi/dvn.d.ts.map +1 -0
  49. package/dist/generated/abi/dvn.js +4 -0
  50. package/dist/generated/abi/dvn.js.map +1 -0
  51. package/dist/generated/abi/endpoint-v2.d.ts +1574 -0
  52. package/dist/generated/abi/endpoint-v2.d.ts.map +1 -0
  53. package/dist/generated/abi/endpoint-v2.js +4 -0
  54. package/dist/generated/abi/endpoint-v2.js.map +1 -0
  55. package/dist/generated/abi/executor-fee-lib.d.ts +217 -0
  56. package/dist/generated/abi/executor-fee-lib.d.ts.map +1 -0
  57. package/dist/generated/abi/executor-fee-lib.js +4 -0
  58. package/dist/generated/abi/executor-fee-lib.js.map +1 -0
  59. package/dist/generated/abi/executor.d.ts +923 -0
  60. package/dist/generated/abi/executor.d.ts.map +1 -0
  61. package/dist/generated/abi/executor.js +4 -0
  62. package/dist/generated/abi/executor.js.map +1 -0
  63. package/dist/generated/abi/o-app.d.ts +311 -0
  64. package/dist/generated/abi/o-app.d.ts.map +1 -0
  65. package/dist/generated/abi/o-app.js +4 -0
  66. package/dist/generated/abi/o-app.js.map +1 -0
  67. package/dist/generated/abi/omni-counter.d.ts +612 -0
  68. package/dist/generated/abi/omni-counter.d.ts.map +1 -0
  69. package/dist/generated/abi/omni-counter.js +4 -0
  70. package/dist/generated/abi/omni-counter.js.map +1 -0
  71. package/dist/generated/abi/price-feed.d.ts +505 -0
  72. package/dist/generated/abi/price-feed.d.ts.map +1 -0
  73. package/dist/generated/abi/price-feed.js +4 -0
  74. package/dist/generated/abi/price-feed.js.map +1 -0
  75. package/dist/generated/abi/simple-message-lib.d.ts +553 -0
  76. package/dist/generated/abi/simple-message-lib.d.ts.map +1 -0
  77. package/dist/generated/abi/simple-message-lib.js +4 -0
  78. package/dist/generated/abi/simple-message-lib.js.map +1 -0
  79. package/dist/generated/abi/treasury.d.ts +240 -0
  80. package/dist/generated/abi/treasury.d.ts.map +1 -0
  81. package/dist/generated/abi/treasury.js +4 -0
  82. package/dist/generated/abi/treasury.js.map +1 -0
  83. package/dist/generated/abi/ultra-light-node302.d.ts +913 -0
  84. package/dist/generated/abi/ultra-light-node302.d.ts.map +1 -0
  85. package/dist/generated/abi/ultra-light-node302.js +4 -0
  86. package/dist/generated/abi/ultra-light-node302.js.map +1 -0
  87. package/dist/generated/abi.d.ts +13 -0
  88. package/dist/generated/abi.d.ts.map +1 -0
  89. package/dist/generated/abi.js +16 -0
  90. package/dist/generated/abi.js.map +1 -0
  91. package/dist/generated/casm.d.ts +13 -0
  92. package/dist/generated/casm.d.ts.map +1 -0
  93. package/dist/generated/casm.js +4 -0
  94. package/dist/generated/casm.js.map +1 -0
  95. package/dist/generated/sierra.d.ts +13 -0
  96. package/dist/generated/sierra.d.ts.map +1 -0
  97. package/dist/generated/sierra.js +4 -0
  98. package/dist/generated/sierra.js.map +1 -0
  99. package/dist/generated/verification/index.d.ts +2 -0
  100. package/dist/generated/verification/index.d.ts.map +1 -0
  101. package/dist/generated/verification/index.js +5 -0
  102. package/dist/generated/verification/index.js.map +1 -0
  103. package/dist/generated/verification/layerzero.d.ts +4 -0
  104. package/dist/generated/verification/layerzero.d.ts.map +1 -0
  105. package/dist/generated/verification/layerzero.js +4 -0
  106. package/dist/generated/verification/layerzero.js.map +1 -0
  107. package/dist/index.d.ts +5 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +20 -0
  110. package/dist/index.js.map +1 -0
  111. package/package.json +48 -3
package/LICENSE ADDED
@@ -0,0 +1,43 @@
1
+ LayerZero Business License 1.3
2
+ LZBL-1.3
3
+
4
+ Notes
5
+
6
+ The LayerZero Business License (this "Agreement", or the "License") is not an open source license. However, the Licensed Work (as defined below) will eventually be made available under an open source license, as stated in this License, for Permissionless Applications. Permissioned Applications may not use the Licensed Work. The license parameters are: restrictions on usage, a Change Date, and the open source license that will govern usage of the Licensed Work after the Change Date.
7
+
8
+ Terms
9
+
10
+ Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make Non-Production Use of the Licensed Work.
11
+
12
+ On the Change Date (as defined below), this License shall convert into the Change License (as defined below), and the rights granted in the paragraph above terminate. You may not modify this License in any other way.
13
+
14
+ If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
15
+
16
+ All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
17
+
18
+ You must conspicuously display this License and the License Text (defined below) on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
19
+
20
+ Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
21
+
22
+ This License does not grant you any right in any trademark or logo of Licensor or its affiliates.
23
+
24
+ THE LICENSED WORK IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
25
+
26
+ Definitions
27
+ Change Date means, with respect to Permissionless Applications, the fourth (4th) anniversary of the first publicly available distribution of a specific version of the Licensed Work. Permissioned Applications shall not have a Change Date and may not use the Licensed Work.
28
+
29
+ Change License means the GPL Version 2.0 or any later version, or a license that is compatible with GPL Version 2.0 or a later version, where "compatible" means that software provided under the Change License can be included in a program with software provided under GPL Version 2.0 or a later version.
30
+
31
+ Licensor means LayerZero Labs Ltd.
32
+
33
+ License Text means:
34
+ LayerZero Business License 1.3
35
+ License text copyright © 2026 LayerZero Labs Ltd., All Rights Reserved.
36
+
37
+ Licensed Work means the software (including source code and object code) accompanying this Agreement, or the software specifically identified in the License Notice attached to such software, as well as any specific source code file, library, or script that contains a header or notice explicitly stating it is subject to this License, excluding any files or components that contain a notice expressly stating they are subject to a different license.
38
+
39
+ Non-Production Use means testing, development, and auditing, explicitly excluding any deployment on a live mainnet or any environment where the software processes, secures, or manages digital assets with real economic value.
40
+
41
+ Permissionless Applications means blockchain networks or applications that users can freely join, interact with, or participate in without first obtaining permission, approval, or authorization and excludes Permissioned Applications.
42
+
43
+ Permissioned Applications means blockchain networks or applications that are limited only to designated participants or that limit who is allowed to participate in financial (or other) activities, and excludes Permissionless Applications.
package/README.md CHANGED
@@ -1,3 +1,32 @@
1
- # Temporary Holding Version
1
+ # LayerZero Starknet SDK
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ TypeScript bindings — ABI, CASM, Sierra, and the verification artifact — for the Cairo contracts in `@layerzerolabs/protocol-v2-starknet-contracts`.
4
+
5
+ ## Usage
6
+
7
+ Four namespaces are exported:
8
+
9
+ ```typescript
10
+ import { abi, casm, sierra, verificationArtifact } from '@layerzerolabs/protocol-v2-starknet-sdk';
11
+
12
+ const declarePayload = { contract: sierra.dvn, casm: casm.dvn };
13
+ const endpoint = new Contract({ abi: abi.endpointV2, address, providerOrAccount: provider });
14
+ ```
15
+
16
+ `abi`, `casm`, and `sierra` come from the compiled classes and are keyed by camelCased contract name — `dvn`, `endpointV2`, `ultraLightNode302`, and so on. `verificationArtifact` is keyed by Scarb package rather than by contract, exposing `layerzeroVerificationArtifact`: the Cairo source snapshot submitted for explorer verification.
17
+
18
+ ## Building
19
+
20
+ This package compiles nothing. It generates from the contracts package's Scarb output and Cairo sources.
21
+
22
+ `artifacts:prepare` clears `artifacts/` and `src/generated`, then runs three steps:
23
+
24
+ - `artifacts:copy` runs the shared `copy-artifacts` tool against `src/artifactPackages.config.json`, copying the compiled classes named by the contracts package's Scarb artifact index into `artifacts/release`. Scarb also writes the full Sierra library and its incremental cache into `target/release`, so only the indexed classes are copied.
25
+ - `build:abi` generates the `abi`, `casm`, and `sierra` bindings from `artifacts/release`.
26
+ - `build:verification` snapshots the Cairo sources for explorer verification, reading them through the contracts package's `node_modules` link.
27
+
28
+ **The contracts package must be built first**, since `artifacts/release` comes from its Scarb output. Turbo guarantees it: `build` inherits `dependsOn: ["^build"]` and the contracts package is a `workspace:*` devDependency. Building this package directly after editing Cairo without rebuilding the contracts package will snapshot sources newer than the classes; the contract-verification activity submits both to Voyager, which recompiles and rejects the mismatch rather than attesting to it.
29
+
30
+ Clearing `src/generated` first means a contract removed upstream does not leave an orphaned binding behind.
31
+
32
+ These steps resolve only under a `workspace:*` link, since a Scarb `target` directory is a build output the contracts package does not publish. Registry consumers never run these steps: the published tarball ships only `dist`.
@@ -0,0 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export { __export };
8
+ //# sourceMappingURL=3UUTAAI4.js.map
9
+ //# sourceMappingURL=3UUTAAI4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"3UUTAAI4.js"}
@@ -0,0 +1,34 @@
1
+ import { omniCounter } from './F7HTFQNB.js';
2
+ import { priceFeed } from './QL26J5ZZ.js';
3
+ import { simpleMessageLib } from './JXI3BIRO.js';
4
+ import { treasury } from './QXBNGZ57.js';
5
+ import { ultraLightNode302 } from './OAAYXX72.js';
6
+ import { blockedMessageLib } from './LA77PTPC.js';
7
+ import { dvnFeeLib } from './MTEGVQNY.js';
8
+ import { dvn } from './77ZZJLOF.js';
9
+ import { endpointV2 } from './TECSILHK.js';
10
+ import { executorFeeLib } from './L6LDHKAL.js';
11
+ import { executor } from './VO7H47TG.js';
12
+ import { oApp } from './ZBWRU4IX.js';
13
+ import { __export } from './3UUTAAI4.js';
14
+
15
+ // src/generated/abi.ts
16
+ var abi_exports = {};
17
+ __export(abi_exports, {
18
+ blockedMessageLib: () => blockedMessageLib,
19
+ dvn: () => dvn,
20
+ dvnFeeLib: () => dvnFeeLib,
21
+ endpointV2: () => endpointV2,
22
+ executor: () => executor,
23
+ executorFeeLib: () => executorFeeLib,
24
+ oApp: () => oApp,
25
+ omniCounter: () => omniCounter,
26
+ priceFeed: () => priceFeed,
27
+ simpleMessageLib: () => simpleMessageLib,
28
+ treasury: () => treasury,
29
+ ultraLightNode302: () => ultraLightNode302
30
+ });
31
+
32
+ export { abi_exports };
33
+ //# sourceMappingURL=5IPHVLYL.js.map
34
+ //# sourceMappingURL=5IPHVLYL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/generated/abi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,IAAA,WAAA,GAAA","file":"5IPHVLYL.js","sourcesContent":["export * from \"./abi/price-feed.js\";\nexport * from \"./abi/blocked-message-lib.js\";\nexport * from \"./abi/omni-counter.js\";\nexport * from \"./abi/dvn.js\";\nexport * from \"./abi/treasury.js\";\nexport * from \"./abi/o-app.js\";\nexport * from \"./abi/endpoint-v2.js\";\nexport * from \"./abi/simple-message-lib.js\";\nexport * from \"./abi/executor.js\";\nexport * from \"./abi/ultra-light-node302.js\";\nexport * from \"./abi/executor-fee-lib.js\";\nexport * from \"./abi/dvn-fee-lib.js\";"]}