Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

feat: add --flavor feature (ganache chain plugins) #4362

Merged
merged 67 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3f2d655
delete tezos and refactor plugins
davidmurdoch Sep 16, 2022
c9bdc9a
oops
davidmurdoch Apr 15, 2023
28eed02
oops2
davidmurdoch Apr 15, 2023
e3fe9af
oops3
davidmurdoch Apr 15, 2023
328abc9
import type
davidmurdoch Apr 15, 2023
82f0330
revert
davidmurdoch Apr 15, 2023
d40f30a
Update src/chains/filecoin/filecoin/src/connector.ts
davidmurdoch Apr 15, 2023
9912275
Null
davidmurdoch Apr 15, 2023
19765e7
You
davidmurdoch Apr 15, 2023
a9a4e68
Sigh
davidmurdoch Apr 15, 2023
9edce5a
quick ci test
davidmurdoch Apr 15, 2023
db54103
Merge branch 'flavor2' of github.com:trufflesuite/ganache into flavor2
davidmurdoch Apr 15, 2023
6ba2798
oops_
davidmurdoch Apr 15, 2023
986a281
sfsfdsdf
davidmurdoch Apr 15, 2023
b74032a
lazy
davidmurdoch Apr 16, 2023
40b8f4c
make example work
davidmurdoch Apr 24, 2023
b4875b3
more examples and things
davidmurdoch Apr 25, 2023
79a371d
typo fixes
davidmurdoch Apr 25, 2023
9d235e6
ReturnType<Api[KnownKeys<Api>]> resolved to unknown anyway
davidmurdoch Apr 28, 2023
3d7fbd0
more flavor tweaks and examples
davidmurdoch Apr 28, 2023
160f13b
Merge branch 'develop' into flavor2
davidmurdoch Apr 28, 2023
1fadb7c
polish
davidmurdoch May 2, 2023
05da030
d
davidmurdoch May 2, 2023
fc3ff3a
polish
davidmurdoch May 2, 2023
71e9790
add default options and note
davidmurdoch May 2, 2023
249e43e
back compat, maybe
davidmurdoch May 3, 2023
4e9c01b
.
davidmurdoch May 3, 2023
2514d70
things
davidmurdoch May 3, 2023
39e973e
revert change
davidmurdoch May 3, 2023
078cc0b
revert
davidmurdoch May 3, 2023
504de6a
types
davidmurdoch May 3, 2023
879f26b
add chalk
davidmurdoch May 3, 2023
ae66e80
more filecoin removal
davidmurdoch May 4, 2023
d96d35e
remove change
davidmurdoch May 4, 2023
5ff2e05
clean up dependencies
davidmurdoch May 4, 2023
5b6d3e9
maybe this time
davidmurdoch May 5, 2023
225491f
why you no install on node 14?
davidmurdoch May 5, 2023
fea1248
fix out of date dep
davidmurdoch May 5, 2023
9a1163d
deps
davidmurdoch May 5, 2023
2388cb6
types
davidmurdoch May 5, 2023
6e0449c
this doesn't need to be exported
davidmurdoch May 5, 2023
b8b9d31
we don't allow old flavors anymore, so only support `ready`
davidmurdoch May 5, 2023
2728355
ready note
davidmurdoch May 5, 2023
0d119e0
change interface
davidmurdoch May 5, 2023
9943157
some things
davidmurdoch May 5, 2023
cc62012
remove change
davidmurdoch May 5, 2023
e0d4337
get lazier
davidmurdoch May 5, 2023
861d6bb
i said lazy!
davidmurdoch May 5, 2023
7b04571
lazy
davidmurdoch May 5, 2023
565706d
comment
davidmurdoch May 5, 2023
ea81e2c
remove some changes
davidmurdoch May 5, 2023
928e984
better comment
davidmurdoch May 5, 2023
ed8d2e9
add example test
davidmurdoch May 5, 2023
694496e
update comment
davidmurdoch May 5, 2023
b1fdaf3
naming
davidmurdoch May 5, 2023
899dca4
better?
davidmurdoch May 5, 2023
2d6deab
refactor
davidmurdoch May 5, 2023
12122c9
i don't know why
davidmurdoch May 5, 2023
e351cae
preload
davidmurdoch May 5, 2023
60192de
:-(
davidmurdoch May 5, 2023
78bbafc
typessss
davidmurdoch May 5, 2023
195a914
Merge branch 'develop' into flavor2
davidmurdoch Jul 7, 2023
82dbb01
fix deps and lock files
davidmurdoch Jul 11, 2023
3097f8e
Import from '../index' rather than '..' to resolve tsc issues
jeffsmale90 Jul 25, 2023
b42258c
Merge ganache configuration with flavor configuration to avoid duplic…
jeffsmale90 Jul 26, 2023
809891c
Fix issues with yargs configuration. Remove duplicate 'instances' com…
jeffsmale90 Jul 26, 2023
7cf6285
remove port/host hack
davidmurdoch Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ Where `<module>` is the npm-module you want to add and `<package>` is where you
Example:

```bash
npx lerna add @ganache/options -E --scope=@ganache/filecoin
npx lerna add @ganache/options -E --scope=@ganache/ethereum
```

will add our local `@ganache/options` package to the `@ganache/filecoin` package.
will add our local `@ganache/options` package to the `@ganache/ethereum` package.

## To remove a module from another package:

Expand Down
12 changes: 9 additions & 3 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@types/fs-extra": "9.0.13",
"@types/marked": "4.0.8",
"@types/mocha": "9.0.0",
"@types/node": "17.0.0",
"@types/prettier": "2.4.2",
Expand All @@ -39,7 +40,7 @@
"husky": "5.2.0",
"into-stream": "6.0.0",
"lerna": "4.0.0",
"marked": "2.1.3",
"marked": "4.3.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aligning the versions of marked we are using elsewhere.

"mocha": "9.1.3",
"monaco-editor": "0.22.3",
"nyc": "15.1.0",
Expand Down
6 changes: 3 additions & 3 deletions scripts/build-docs/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { join } from "path";
import { readFileSync, writeFileSync } from "fs";
const { execSync } = require("child_process");
const marked = require("marked");
const hljs = require("highlight.js");
import { execSync } from "child_process";
import { marked } from "marked";
import hljs from "highlight.js";

const highlight = () => {
const raw = {} as any;
Expand Down
145 changes: 4 additions & 141 deletions src/chains/ethereum/console.log/package-lock.json

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

3 changes: 1 addition & 2 deletions src/chains/ethereum/console.log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"typescript": "4.7.4"
},
"dependencies": {
"@ethereumjs/util": "8.0.5",
"@ganache/utils": "0.3.0"
"@ganache/utils": "0.9.0"
}
}
1 change: 1 addition & 0 deletions src/chains/ethereum/console.log/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe("@ganache/console.log", () => {
let from: string;

before("set up a ganache provider", function () {
this.timeout(10000);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Ethereum ganache is lazy loaded, the first time we run it it might take a while, so I added this timeout. Previously it would take the same about of time, but it was just doing it before the tests started running.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding this as a comment in code?

provider = Ganache.provider({
wallet: { deterministic: true, totalAccounts: 1 },
miner: { blockGasLimit: "0xfffffffff" },
Expand Down
Loading