LayerZero-Labs / LayerZero-v1

An Omnichain Interoperability Protocol
Other
1.96k stars 1.25k forks source link

Cannot import library #1

Open deltakilomilo opened 2 years ago

deltakilomilo commented 2 years ago

Hi I'm trying to follow the instructions to import the library "@layerzerolabs/contracts": "latest", in my package.json, but it says it cannot be found. Here is the error trace when running npm install / yarn:

yarn install v1.22.17
warning package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] 🔍  Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@layerzerolabs%2fcontracts: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/<redacted>/app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
fmhall commented 2 years ago

Also running into this!

mediavrog commented 2 years ago

same here

ihorbond commented 2 years ago

such a package doesn't exist on npm

0xlxy commented 2 years ago

same error

Akira-Taniguchi commented 2 years ago

me too

fmhall commented 2 years ago

The packages are currently private - the team will publicly release them soon. In the meantime, you can copy the actual interfaces and libraries into your contracts folder.

traitmeta commented 2 years ago

Also running into this!

swimmiee commented 2 years ago

same here

JeonghwanH commented 2 years ago

Also running into this..!

witwiki commented 2 years ago

same here.

I place "@layerzerolabs/contracts": "latest", just above openzeppelin dependency and I run yarn install and get the same error.

Is there an npm version in the pipeline (like OZ does)?

stavalfi commented 1 year ago

2023.. is layer zero not maintained any more?

calebbanister commented 1 year ago

Yes it is still very much maintained but the contracts havent changed at all. This repo really just meant to show the contract code.

If you want to build on LayerZero , probably best to check out the solidity examples / tests here:

https://github.com/LayerZero-Labs/solidity-examples/tree/main/contracts

tylerpashigian commented 1 year ago

Yes it is still very much maintained but the contracts havent changed at all. This repo really just meant to show the contract code.

If you want to build on LayerZero , probably best to check out the solidity examples / tests here:

https://github.com/LayerZero-Labs/solidity-examples/tree/main/contracts

In the main docs there are instructions to be able to download the LZ contracts by adding "@layerzerolabs/contracts": "latest", to package.json and installing the package. This resulted in a 404 for me. Is this package private, or am I doing something wrong? I downloaded the contracts manually, but would like to follow "best practice". Thanks!