Skip to content

Commit

Permalink
chore: Rename ua-utils to ua-utils-hardhat
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Nov 17, 2023
1 parent be8e7ef commit 87faed2
Show file tree
Hide file tree
Showing 31 changed files with 17 additions and 17 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
# e.g. @layerzerolabs/ua-utils-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
# e.g. @layerzerolabs/ua-utils-hardhat
ARG PACKAGE

WORKDIR /app
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ services:
package:
build:
args:
PACKAGE: "@layerzerolabs/ua-utils-test-v2"
PACKAGE: "@layerzerolabs/ua-utils-hardhat-test"
extends:
file: ../../docker-compose.templates.yaml
service: project
working_dir: /app/packages/ua-utils-test-v2
working_dir: /app/packages/ua-utils-hardhat-test
volumes:
- ./:/app/packages/ua-utils-test-v2
- ./:/app/packages/ua-utils-hardhat-test

# Hardhat node started on port 8545
node:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layerzerolabs/ua-utils-test-v2",
"description": "Integration tests for ua-utils for V2",
"name": "@layerzerolabs/ua-utils-hardhat-test",
"description": "Integration tests for ua-utils-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-test"
"directory": "packages/ua-utils-hardhat-test"
},
"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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
</a>
</p>

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

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

## Installation

```sh
$ npm install @layerzerolabs/ua-utils
$ npm install @layerzerolabs/ua-utils-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")
require("@layerzerolabs/ua-utils-hardhat")
```

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

```ts
import "@nomiclabs/hardhat-ethers"
import "@layerzerolabs/ua-utils"
import "@layerzerolabs/ua-utils-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",
"name": "@layerzerolabs/ua-utils-hardhat",
"description": "Utilities for working with LayerZero EVM contracts",
"version": "0.0.15",
"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"
"directory": "packages/ua-utils-hardhat"
},
"devDependencies": {
"@gnosis.pm/safe-core-sdk": "^2.0.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.

0 comments on commit 87faed2

Please sign in to comment.