Skip to content

Commit

Permalink
chore: Explicit EVM name
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Nov 17, 2023
1 parent 319979c commit aeec19d
Show file tree
Hide file tree
Showing 52 changed files with 78 additions and 78 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FROM base as builder

# The name of the package we're building here
#
# e.g. @layerzerolabs/ua-utils-hardhat
# e.g. @layerzerolabs/ua-utils-evm-hardhat
ARG PACKAGE

WORKDIR /app
Expand Down Expand Up @@ -108,7 +108,7 @@ FROM dependencies as build

# The name of the package we're building here
#
# e.g. @layerzerolabs/ua-utils-hardhat
# e.g. @layerzerolabs/ua-utils-evm-hardhat
ARG PACKAGE

WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
# Service that contains the whole project
#
# It requires the PACKAGE argument that specifies
# the target package it should build (e.g. @layerzerolabs/utils-hardhat)
# the target package it should build (e.g. @layerzerolabs/utils-evm-hardhat)
project:
build:
context: .
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions packages/ua-utils-evm-hardhat-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<p align="center">
<a href="https://layerzero.network">
<img alt="LayerZero" style="max-width: 500px" src="https://d3a2dpnnrypp5h.cloudfront.net/bridge-app/lz.png"/>
</a>
</p>

<h1 align="center">@layerzerolabs/utils-evm-hardhat</h1>

<!-- The badges section -->
<p align="center">
<!-- Shields.io NPM published package version -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="NPM Version" src="https://img.shields.io/npm/v/@layerzerolabs/utils-evm-hardhat"/></a>
<!-- Shields.io NPM downloads -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="Downloads" src="https://img.shields.io/npm/dm/@layerzerolabs/utils-evm-hardhat"/></a>
<!-- Shields.io license badge -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="NPM License" src="https://img.shields.io/npm/l/@layerzerolabs/utils-evm-hardhat"/></a>
</p>

## Installation

```bash
yarn add @layerzerolabs/utils-evm-hardhat

pnpm add @layerzerolabs/utils-evm-hardhat

npm install @layerzerolabs/utils-evm-hardhat
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ services:
package:
build:
args:
PACKAGE: "@layerzerolabs/ua-utils-hardhat-test"
PACKAGE: "@layerzerolabs/ua-utils-evm-hardhat-test"
extends:
file: ../../docker-compose.templates.yaml
service: project
working_dir: /app/packages/ua-utils-hardhat-test
working_dir: /app/packages/ua-utils-evm-hardhat-test
volumes:
- ./:/app/packages/ua-utils-hardhat-test
- ./:/app/packages/ua-utils-evm-hardhat-test

# Hardhat node started on port 8545
node:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "hardhat-deploy"
import { withLayerZeroArtifacts } from "../utils-hardhat/dist"
import { withLayerZeroArtifacts } from "../utils-evm-hardhat/dist"
import { EndpointId } from "@layerzerolabs/lz-definitions"
import { HardhatUserConfig } from "hardhat/types"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layerzerolabs/ua-utils-hardhat-test",
"description": "Integration tests for ua-utils-hardhat for V2",
"name": "@layerzerolabs/ua-utils-evm-hardhat-test",
"description": "Integration tests for ua-utils-evm-hardhat for V2",
"version": "0.0.1",
"license": "MIT",
"private": true,
Expand All @@ -11,7 +11,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/LayerZero-Labs/lz-utils.git",
"directory": "packages/ua-utils-hardhat-test"
"directory": "packages/ua-utils-evm-hardhat-test"
},
"devDependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
Expand All @@ -22,7 +22,7 @@
"@gnosis.pm/safe-core-sdk-types": "^1.0.0",
"@gnosis.pm/safe-ethers-lib": "^1.0.0",
"@gnosis.pm/safe-service-client": "1.1.1",
"@layerzerolabs/utils-hardhat": "~0.0.1",
"@layerzerolabs/utils-evm-hardhat": "~0.0.1",
"@layerzerolabs/lz-definitions": "~1.5.58",
"@layerzerolabs/lz-evm-sdk-v1": "~1.5.58",
"@layerzerolabs/lz-evm-sdk-v2": "~1.5.58",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import hre from "hardhat"
import { expect } from "chai"
import { describe } from "mocha"
import { NetworkEnvironment, createGetNetworkEnvironment } from "../../utils-hardhat/dist"
import { NetworkEnvironment, createGetNetworkEnvironment } from "../../utils-evm-hardhat/dist"

const NETWORK_NAMES = ["vengaboys", "britney"]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
</a>
</p>

<h1 align="center">@layerzerolabs/ua-utils-hardhat</h1>
<h1 align="center">@layerzerolabs/ua-utils-evm-hardhat</h1>

<!-- The badges section -->
<p align="center">
<!-- Shields.io NPM published package version -->
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-hardhat"><img alt="NPM Version" src="https://img.shields.io/npm/v/@layerzerolabs/ua-utils-hardhat"/></a>
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-evm-hardhat"><img alt="NPM Version" src="https://img.shields.io/npm/v/@layerzerolabs/ua-utils-evm-hardhat"/></a>
<!-- Shields.io NPM downloads -->
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-hardhat"><img alt="Downloads" src="https://img.shields.io/npm/dm/@layerzerolabs/ua-utils-hardhat"/></a>
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-evm-hardhat"><img alt="Downloads" src="https://img.shields.io/npm/dm/@layerzerolabs/ua-utils-evm-hardhat"/></a>
<!-- Shields.io license badge -->
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-hardhat"><img alt="NPM License" src="https://img.shields.io/npm/l/@layerzerolabs/ua-utils-hardhat"/></a>
<a href="https://www.npmjs.com/package/@layerzerolabs/ua-utils-evm-hardhat"><img alt="NPM License" src="https://img.shields.io/npm/l/@layerzerolabs/ua-utils-evm-hardhat"/></a>
</p>

## Installation

```sh
$ npm install @layerzerolabs/ua-utils-hardhat
$ npm install @layerzerolabs/ua-utils-evm-hardhat
```

The plugin depends on [`@nomiclabs/hardhat-ethers`](https://www.npmjs.com/package/@nomiclabs/hardhat-ethers), so you need to import both plugins in your `hardhat.config.js`:

```js
require("@nomiclabs/hardhat-ethers")
require("@layerzerolabs/ua-utils-hardhat")
require("@layerzerolabs/ua-utils-evm-hardhat")
```

Or if you are using TypeScript, in your `hardhat.config.ts`:

```ts
import "@nomiclabs/hardhat-ethers"
import "@layerzerolabs/ua-utils-hardhat"
import "@layerzerolabs/ua-utils-evm-hardhat"
```

Make sure that network names in your `hardhat.config.js` match the following [naming convention](https://github.com/LayerZero-Labs/sdk/blob/main/packages/lz-sdk/src/enums/ChainKey.ts).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@layerzerolabs/ua-utils-hardhat",
"name": "@layerzerolabs/ua-utils-evm-hardhat",
"description": "Hardhat utilities for working with LayerZero EVM contracts",
"version": "0.0.1",
"license": "MIT",
Expand Down Expand Up @@ -32,7 +32,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/LayerZero-Labs/lz-utils.git",
"directory": "packages/ua-utils-hardhat"
"directory": "packages/ua-utils-evm-hardhat"
},
"devDependencies": {
"@gnosis.pm/safe-core-sdk": "^2.0.0",
Expand Down
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions packages/ua-utils-hardhat-test/README.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @layerzerolabs/utils-hardhat
# @layerzerolabs/utils-evm-hardhat

## 0.0.2

Expand Down
27 changes: 27 additions & 0 deletions packages/utils-evm-hardhat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<p align="center">
<a href="https://layerzero.network">
<img alt="LayerZero" style="max-width: 500px" src="https://d3a2dpnnrypp5h.cloudfront.net/bridge-app/lz.png"/>
</a>
</p>

<h1 align="center">@layerzerolabs/utils-evm-hardhat</h1>

<!-- The badges section -->
<p align="center">
<!-- Shields.io NPM published package version -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="NPM Version" src="https://img.shields.io/npm/v/@layerzerolabs/utils-evm-hardhat"/></a>
<!-- Shields.io NPM downloads -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="Downloads" src="https://img.shields.io/npm/dm/@layerzerolabs/utils-evm-hardhat"/></a>
<!-- Shields.io license badge -->
<a href="https://www.npmjs.com/package/@layerzerolabs/utils-evm-hardhat"><img alt="NPM License" src="https://img.shields.io/npm/l/@layerzerolabs/utils-evm-hardhat"/></a>
</p>

## Installation

```bash
yarn add @layerzerolabs/utils-evm-hardhat

pnpm add @layerzerolabs/utils-evm-hardhat

npm install @layerzerolabs/utils-evm-hardhat
```
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@layerzerolabs/utils-hardhat",
"name": "@layerzerolabs/utils-evm-hardhat",
"description": "Hardhat utilities for LayerZero EVM projects",
"version": "0.0.2",
"license": "MIT",
Expand All @@ -26,7 +26,7 @@
"repository": {
"type": "git",
"url": "git+https://github.com/LayerZero-Labs/lz-utils.git",
"directory": "packages/utils-hardhat"
"directory": "packages/utils-evm-hardhat"
},
"devDependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions packages/utils-hardhat/README.md

This file was deleted.

0 comments on commit aeec19d

Please sign in to comment.