Skip to content

Commit

Permalink
Fixed npm vulnerabilities and renamed public library references to ve…
Browse files Browse the repository at this point in the history
…nin (and derivatives).
  • Loading branch information
3Nigma committed Nov 22, 2022
1 parent 205e80a commit 817e543
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"cSpell.customDictionaries": {
"custom-dictionary-workspace": {
"name": "custom-dictionary-workspace",
"path": "${workspaceFolder:hedera-strato-js}/.cspell/custom-dictionary-workspace.txt",
"path": "${workspaceFolder:hedera-venin-js}/.cspell/custom-dictionary-workspace.txt",
"addWords": true,
"scope": "workspace"
}
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Hedera Strato JS
# Hedera Venin JS

![NodeJS/JsDOM/Browser tests](https://img.shields.io/github/workflow/status/buidler-labs/hedera-strato-js/test-nodejs-jsdom-browser?style=flat-square&label=tests&color=yellowgreen)
[![codecov](https://img.shields.io/codecov/c/github/buidler-labs/hedera-strato-js?style=flat-square)](https://codecov.io/gh/buidler-labs/hedera-strato-js)
![NodeJS/JsDOM/Browser tests](https://img.shields.io/github/workflow/status/buidler-labs/hedera-venin-js/test-nodejs-jsdom-browser?style=flat-square&label=tests&color=yellowgreen)
[![codecov](https://img.shields.io/codecov/c/github/buidler-labs/hedera-venin-js?style=flat-square)](https://codecov.io/gh/buidler-labs/hedera-venin-js)

[![Discord support channel](https://img.shields.io/discord/949250301792239686?style=flat-square)](https://discord.com/invite/4mYCre869F)
![contributions](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)
![license](https://img.shields.io/github/license/buidler-labs/hedera-strato-js.svg?colorB=ff0000&style=flat-square)
![license](https://img.shields.io/github/license/buidler-labs/hedera-venin-js.svg?colorB=ff0000&style=flat-square)

![node version](https://img.shields.io/badge/Node.js-%3E%3D14.8.0-orange.svg?style=flat-square)
![npm version](https://img.shields.io/npm/v/@buidlerlabs/hedera-strato-js.svg?style=flat-square)
![npm version](https://img.shields.io/npm/v/@buidlerlabs/hedera-venin-js.svg?style=flat-square)

[![NPM](https://nodei.co/npm/@buidlerlabs/hedera-strato-js.png?mini=true)](https://nodei.co/npm/@buidlerlabs/hedera-strato-js/)
[![NPM](https://nodei.co/npm/@buidlerlabs/hedera-venin-js.png?mini=true)](https://nodei.co/npm/@buidlerlabs/hedera-venin-js/)

Write Web3 [Hedera](https://hedera.com/) smart-contract dApps frictionless and with ease, without having to deal with the hustle and bustle of [Hedera's verbose, underlying services](https://docs.hedera.com/guides/docs/sdks).

Expand All @@ -22,14 +22,14 @@ Write Web3 [Hedera](https://hedera.com/) smart-contract dApps frictionless and w
## Features

Strato already is packed with a lot of stuff:
Venin already is packed with a lot of stuff:
✔️ Compile a Solidity contract to obtain its Hedera accepted ABI directly from within the library (no external compiler required)
✔️ Deploy a contract to the network
✔️ Use a fluent API to interact with deployed, _live entities_ such as contracts
✔️ Pubsub for contract emitted events
✔️ Pubsub for transaction receipts
✔️ Fine grained cost-control
✔️ Browser bundle-able via a custom made Rollup plugin ([webpack pending](https://github.com/buidler-labs/hedera-strato-js/issues/26))
✔️ Browser bundle-able via a custom made Rollup plugin ([webpack pending](https://github.com/buidler-labs/hedera-venin-js/issues/26))
✔️ Using Hedera File Storage as a place to store generic files and JSONs
✔️ Create token via the Hedera Token Service (HTS)
✔️ Create a Hedera account
Expand All @@ -48,7 +48,7 @@ Strato already is packed with a lot of stuff:

## The drive

As any good-striving, long-lasting, endeavour, we are using Strato to hopefully fuel everything that we, here at BuiDler Labs, build on Hedera. Our Hedera portfolio currently consists of:
As any good-striving, long-lasting, endeavour, we are using Venin to hopefully fuel everything that we, here at BuiDler Labs, build on Hedera. Our Hedera portfolio currently consists of:

- [FileCoin-Hedera Grant](https://github.com/taskbar-team/hedera-filecoin-devgrant) - a development grant used to put the foundations of [MyTaskbar](https://mytaskbar.io/) v2, the more decentralized version
- [HeadStarter](headstarter.org) - the first Hedera IDO platform
Expand Down Expand Up @@ -82,7 +82,7 @@ HEDERAS_OPERATOR_KEY=...
pragma solidity ^0.8.3;
contract HelloWorld {
string public greet = "Hello Hedera Strato!";
string public greet = "Hello Hedera Venin!";
}
```

Expand All @@ -98,7 +98,7 @@ const liveContract = await session.upload(helloWorldContract);
console.log(await liveContract.greet());
```

If all goes well, you should see the expected `Hello Hedera Strato!` logged inside your console signifying that the contract was successfully compiled, uploaded and executed.
If all goes well, you should see the expected `Hello Hedera Venin!` logged inside your console signifying that the contract was successfully compiled, uploaded and executed.

Also, if you want a quick play-through a similar example, please have a look at [our minimum-working code](https://github.com/buidler-labs/hsj-example) repo.

Expand All @@ -114,7 +114,7 @@ $ npm test
## Contributions

Do you think we missed anything? Want some feature badly? Do you have an idea of something that we might improve? Head over to [our issues page](https://github.com/buidler-labs/hedera-strato-js/issues) and let us know! We want Strato to be a community-lead initiative. This means that any opinion or critic is encouraged (and even welcomed)!
Do you think we missed anything? Want some feature badly? Do you have an idea of something that we might improve? Head over to [our issues page](https://github.com/buidler-labs/hedera-venin-js/issues) and let us know! We want Venin to be a community-lead initiative. This means that any opinion or critic is encouraged (and even welcomed)!

Of course, if you're eager to write it yourself, that's also fine and dandy! Just fork us, add your changes and open a pull request. We'll take it from there ...

Expand Down
2 changes: 1 addition & 1 deletion jest.common.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = {
collectCoverage: true,
coveragePathIgnorePatterns: ["test/*", "lib.cjs/*", "lib.esm/*"],
displayName: "hedera-strato",
displayName: "hedera-venin",
moduleFileExtensions: ["js", "ts"],
preset: "ts-jest",
setupFiles: ["dotenv/config"],
Expand Down
2 changes: 1 addition & 1 deletion lib/ContractRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ContractRegistry {
) {
// No-op
console.error(
"ContractRegistry could not load a Contract due to library linking not currently being supported. This will be supported once https://github.com/buidler-labs/hedera-strato-js/issues/38 is resolved."
"ContractRegistry could not load a Contract due to library linking not currently being supported. This will be supported once https://github.com/buidler-labs/hedera-venin-js/issues/38 is resolved."
);
} else {
// no mercy
Expand Down
2 changes: 1 addition & 1 deletion lib/HederaNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export type NetworkDefaults = {
};

/**
* The main entry-class for the Hedera Strato library.
* The main entry-class for the Hedera Venin library.
*
* It starts out by referencing a Hedera Network (being it [official](https://docs.hedera.com/guides/mirrornet/hedera-mirror-node#mainnet) or {@link HEDERA_CUSTOM_NET_NAME | custom})
* client before allowing to generate an {@link ApiSession} through the {@link HederaNetwork.login} method call.
Expand Down
8 changes: 4 additions & 4 deletions lib/compiler/SolidityCompiler.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Wrapper around the Solidity solc-js compiler meant for Node runtime consumption
// Browser variants do not use this and instead polyfill it
// Please see the rollup-strato plugin implementation for more info.
// Please see the rollup-venin plugin implementation for more info.
//
// NOTE: We have to keep this module as light as possible (least dependencies as possible) so that
// we can polyfill this easily (eg. strato-rollup-plugin).
// we can polyfill this easily (eg. venin-rollup-plugin).
// This means no @hashgraph/sdk here.
import * as fs from "fs";
import * as sdkPath from "path";
Expand All @@ -25,7 +25,7 @@ export interface CompilationResult {

export const VIRTUAL_SOURCE_CONTRACT_FILE_NAME = "__contract__.sol";

// Fix for https://github.com/buidler-labs/hedera-strato-js/issues/81
// Fix for https://github.com/buidler-labs/hedera-venin-js/issues/81
// as initially reported by https://github.com/ethereum/solidity/issues/12228
const listeners = process.listeners("unhandledRejection");
if (undefined !== listeners[listeners.length - 1]) {
Expand Down Expand Up @@ -124,7 +124,7 @@ export class SolidityCompiler {
/**
* Given the path of a solidity file, reads and returns its source code following any necessary preprocessing.
*
* Note: This provides fix for #114 (https://github.com/buidler-labs/hedera-strato-js/issues/114)
* Note: This provides fix for #114 (https://github.com/buidler-labs/hedera-venin-js/issues/114)
* We need to replace all relative imports (. and .. alike) otherwise the VFS could load the same identifier into multiple references which would end up
* erroring out with "Identifier already declared." error messages.
*
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"main": "./lib.cjs/index.cjs",
"module": "./lib.esm/index.mjs",
"name": "@buidlerlabs/hedera-strato-js",
"name": "@buidlerlabs/hedera-venin-js",
"scripts": {
"build:4-publish": "run-p build:cjs build:esm build:declarations",
"build:cjs": "babel --env-name cjs lib --extensions .ts --out-dir lib.cjs --out-file-extension .cjs",
Expand Down Expand Up @@ -81,7 +81,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/buidler-labs/hedera-strato-js"
"url": "https://github.com/buidler-labs/hedera-venin-js"
},
"types": "./types/index.d.ts",
"version": "0.8.0",
Expand Down

0 comments on commit 817e543

Please sign in to comment.