Skip to content

Commit

Permalink
fix(playground): upgrade to a modern tech stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ARyaskov committed Jun 9, 2024
1 parent 3fc8259 commit 11418c8
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 94 deletions.
19 changes: 10 additions & 9 deletions packages/playground/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Machinomy Playground
# Machinomy Berry Playground

[Machinomy](https://github.com/machinomy/machinomy/tree/master/packages/machinomy) examples.
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)]()
[![Module type: NodeVersion](https://img.shields.io/badge/Node.js->=21-brightgreen)]()

Web site: [machinomy.com](http://machinomy.com).
Twitter: [@machinomy](http://twitter.com/machinomy).
Support/Discussion: [Gitter](https://gitter.im/machinomy/machinomy).
[Machinomy](https://github.com/ARyaskov/machinomy/tree/master/packages/machinomy) examples.

### ! Upgrading to v2 is in progress! Expect bugs !

:exclamation:
Please, pay attention, this package is the part of [Machinomy Monorepo](https://github.com/machinomy/machinomy) and it's intended to use with other monorepo's packages.
Please, pay attention, this package is the part of [Machinomy Monorepo](https://github.com/ARyaskov/machinomy) and it's intended to use with other monorepo's packages.

:no_entry: You **should not** git clone this repository alone

:white_check_mark: You **should** git clone the main repository via
```
git clone https://github.com/machinomy/machinomy.git
git clone https://github.com/ARyaskov/machinomy.git
or
git clone git@github.com:machinomy/machinomy.git
git clone git@github.com:ARyaskov/machinomy.git
```

**For documentation, usage and contributing please see [Machinomy Monorepo](https://github.com/machinomy/machinomy).**
**For documentation, usage and contributing please see [Machinomy Monorepo](https://github.com/ARyaskov/machinomy).**
17 changes: 17 additions & 0 deletions packages/playground/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
HOST=
PORT=
GATEWAY_URL=
# Available values: Ethereum, BNB Smart Chain, Polygon, Sepolia, Binance Smart Chain Testnet, Polygon Amoy
NETWORK=
# /* You may generate it on https://iancoleman.io/bip39/, but use it just for testing purposes, no real money!
ACCOUNT_MNEMONIC=
ACCOUNT_PRIVATE_KEY_0=
ACCOUNT_PUBLIC_KEY_0=
ACCOUNT_ADDRESS_0=
# */ You may generate it on https://iancoleman.io/bip39/, but use it just for testing purposes, no real money!
# Use any ETH RPC to get your API key (e.g. Alchemy or Infura). Use https-version of URL.
RPC_URL=
POLYGON_RPC_URL=
POLYGON_AMOY_RPC_URL=
# Use https://amoy.polygonscan.com/ to get your API key
POLYGONSCAN_API_KEY=
13 changes: 9 additions & 4 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
],
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project tsconfig.json",
"build": "yarn format && tsc --project tsconfig.json",
"clean": "rm -rf dist/",
"lint": "tslint --format stylish --project . --exclude './node_modules/**/*.ts'",
"format": "prettier --write \"src/**/*.ts\"",
"test": "exit 0",
"coverage": "exit 0"
"coverage": "exit 0",
"start": "yarn format && tsx src/index.ts"
},
"dependencies": {
"@machinomy/types-ethereumjs-util": "^0.0.12",
Expand All @@ -36,7 +37,11 @@
"morgan": "^1.10.0",
"sqlite3": "^5.1.7",
"typescript": "*",
"url-join": "^4.0.1"
"url-join": "^4.0.1",
"viem": "*"
},
"devDependencies": {
"tsx": "*"
},
"resolutions": {
"sqlite3": "^5.1.7"
Expand Down
Loading

0 comments on commit 11418c8

Please sign in to comment.