Skip to content

Commit

Permalink
version packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Jul 22, 2024
1 parent 0391b8e commit 62a0480
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 34 deletions.
5 changes: 0 additions & 5 deletions .changeset/khaki-humans-rush.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-phones-happen.md

This file was deleted.

6 changes: 3 additions & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ runs:
- name: Npm audit
shell: bash
run: npm audit --audit-level=moderate
# - name: Test
# shell: bash
# run: npm run test:ci
- name: Test
shell: bash
run: npm run test:ci
- name: Build
shell: bash
run: |
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# niljs

## 0.11.0

### Minor Changes

- [#97](https://github.com/NilFoundation/nil.js/pull/97) [`7d2ac80`](https://github.com/NilFoundation/nil.js/commit/7d2ac80d5ed1822e1633d498b761f65694aa5f48) Thanks [@KlonD90](https://github.com/KlonD90)! - fix number to hex in integration tests

- [#98](https://github.com/NilFoundation/nil.js/pull/98) [`6945f6c`](https://github.com/NilFoundation/nil.js/commit/6945f6c1dc3ffe8afd4fccfd273afa55706ec6f0) Thanks [@shermike](https://github.com/shermike)! - Breaking changes! Fee credit instead of gas

## 0.10.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nilfoundation/niljs",
"author": "=nil; Foundation",
"version": "0.10.1",
"version": "0.11.0",
"repository": {
"type": "git",
"url": "git+https://github.com/NilFoundation/nil.js.git"
Expand All @@ -28,9 +28,9 @@
"sideEffects": false,
"description": "Typescript library to interact with the Nil blockchain. Can be used in the browser or in Node.js.",
"scripts": {
"test": "vitest -c ./test/vitest.config.ts",
"test:unit": "vitest -c ./test/vitest.config.ts",
"test:ci": "CI=true vitest -c ./test/vitest.config.ts",
"integration-test": "CI=true vitest -c ./test/vitest.integration.config.ts --isolate false",
"test:integration": "CI=true vitest -c ./test/vitest.integration.config.ts --isolate false",
"test:coverage": "npm run test:ci -- --coverage",
"build": "rimraf dist && rollup -c ./rollup/rollup.config.js --bundleConfigAsCjs",
"prepare": "npx simple-git-hooks",
Expand Down
3 changes: 2 additions & 1 deletion src/encoding/fromBytes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Hex, toHex } from "../index.js";
import type { Hex } from "../index.js";
import { toHex } from "./toHex.js";

const decoder = new TextDecoder("utf8");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { bytesToHex, encodeFunctionData } from "viem";
import { testEnv } from "../../test/testEnv.js";
import {
Faucet,
HttpTransport,
Expand All @@ -9,7 +8,8 @@ import {
convertEthToWei,
generateRandomPrivateKey,
waitTillCompleted,
} from "../index.js";
} from "../../src/index.js";
import { testEnv } from "../testEnv.js";
const client = new PublicClient({
transport: new HttpTransport({
endpoint: testEnv.endpoint,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { testEnv } from "../../test/testEnv.js";
import {
Faucet,
HttpTransport,
Expand All @@ -9,7 +8,8 @@ import {
convertEthToWei,
generateRandomPrivateKey,
waitTillCompleted,
} from "../index.js";
} from "../../src/index.js";
import { testEnv } from "../testEnv.js";
const client = new PublicClient({
transport: new HttpTransport({
endpoint: testEnv.endpoint,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Abi } from "abitype";
import { testEnv } from "../../test/testEnv.js";
import {
Faucet,
HttpTransport,
Expand All @@ -11,7 +10,8 @@ import {
externalDeploymentMessage,
generateRandomPrivateKey,
waitTillCompleted,
} from "../index.js";
} from "../../src/index.js";
import { testEnv } from "../testEnv.js";
const client = new PublicClient({
transport: new HttpTransport({
endpoint: testEnv.endpoint,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { testEnv } from "../../test/testEnv.js";
import { Faucet, WalletV1 } from "../contracts/index.js";
import {
Faucet,
HttpTransport,
LocalECDSAKeySigner,
PublicClient,
WalletV1,
convertEthToWei,
generateRandomPrivateKey,
waitTillCompleted,
} from "../index.js";
import { LocalECDSAKeySigner } from "../signers/LocalECDSAKeySigner.js";
import { generateRandomPrivateKey } from "../signers/privateKey.js";
} from "../../src/index.js";
import { testEnv } from "../../test/testEnv.js";

const client = new PublicClient({
transport: new HttpTransport({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { encodeFunctionData } from "viem";
import { testEnv } from "../../test/testEnv.js";
import {
Faucet,
HttpTransport,
Expand All @@ -14,7 +13,8 @@ import {
hexToBigInt,
toHex,
waitTillCompleted,
} from "../index.js";
} from "../../src/index.js";
import { testEnv } from "../testEnv.js";
const client = new PublicClient({
transport: new HttpTransport({
endpoint: testEnv.endpoint,
Expand Down
3 changes: 0 additions & 3 deletions test/testEnv.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const defaultRpcEndpoint = "http://127.0.0.1:8529";
const defaultPrivateKey =
"41285f03e8692676bf80a98e4052a008026427a7302ca97cb06edcd60689850b";

const testEnv = {
localPrivKey: process.env.LOCAL_PRIV_KEY ?? defaultPrivateKey,
endpoint: process.env.RPC_ENDPOINT ?? defaultRpcEndpoint,
} as const;

Expand Down
2 changes: 1 addition & 1 deletion test/vitest.integration.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
include: ["src/integrations/*.test.ts"],
include: ["test/integration/*.test.ts"],
hookTimeout: 20_000,
testTimeout: 40_000,
globals: true,
Expand Down

0 comments on commit 62a0480

Please sign in to comment.