Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): merge in cli-2.0 (v4.0.0) #3981

Merged
merged 72 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 65 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
5e5886f
feat: Create EvmIcaModule (#3729)
ltyu May 16, 2024
92bcb6f
chore: Merge branch 'main' into noah/cli-2.0 (#3809)
nbayindirli May 18, 2024
3dabcbd
chore(sdk): add zod validation on submitter/transformers popTx + refa…
nbayindirli May 20, 2024
eb23e77
feat: Create EvmCoreModule with create() (#3737)
ltyu May 27, 2024
49f41d9
chore: Merge branch 'main' into cli-2.0 (#3863)
yorhodes May 29, 2024
a0c4629
fix: typo in core module (#3865)
yorhodes May 29, 2024
876e1cf
chore: run cli-e2e on cli-2.0 branch (#3864)
yorhodes May 29, 2024
1ec61de
feat: support hook config objects in warp config (#3859)
yorhodes May 30, 2024
6c36f9b
fix: cli e2e was inadvertently broken (#3873)
yorhodes May 31, 2024
b560bfc
feat(cli): add 'hyperlane core config' command (#3857)
nbayindirli May 31, 2024
84bc0bd
feat(cli): add 'hyperlane warp config' command (#3866)
nbayindirli May 31, 2024
341b8af
feat: implement `update()` for `EvmIsmModule` (#3759)
paulbalaji May 31, 2024
44a2ffa
feat(cli): add 'hyperlane core read' command (#3867)
nbayindirli May 31, 2024
7089c91
feat(cli): add 'hyperlane warp read' command (#3868)
nbayindirli May 31, 2024
1d0d1bb
feat: implement hyperlane core deploy (#3869)
ltyu Jun 3, 2024
4663018
feat: implement hyperlane core config to return CoreConfig (#3879)
ltyu Jun 3, 2024
ee28c0e
feat: implement hyperlane core read to return CoreConfig (#3881)
ltyu Jun 4, 2024
4bf7301
chore(sdk): add further zod support to SDK (#3834)
nbayindirli Jun 4, 2024
ba4c9a7
feat(cli): add 'hyperlane warp send' command (#3884)
nbayindirli Jun 4, 2024
642bc68
refactor: rename chain and config commands (#3883)
ltyu Jun 4, 2024
fa237e0
chore(cli,sdk,core,utils): release 4.0.0-alpha (#3892)
nbayindirli Jun 4, 2024
cc65ee8
fix(cli): remove domainRoutingHook & interchainGasPaymaster(Hook) fro…
nbayindirli Jun 5, 2024
bdcbe1d
feat: WarpModule with create() (#3838)
ltyu Jun 6, 2024
c38f799
ci: cherry-pick merge queue update (#3914)
paulbalaji Jun 6, 2024
845ed57
feat(cli): add 'source' to detectAndConfirmOrPrompt (#3906)
nbayindirli Jun 6, 2024
63367c5
fix(cli): remove opStackIsm & pausableIsm from hyperlane core configu…
nbayindirli Jun 6, 2024
6db9fa9
feat: implement `hyperlane warp deploy` (#3920)
ltyu Jun 6, 2024
0df77ad
build: 4.0.0-alpha.0
cmcewen Jun 6, 2024
20571c2
fix: version string
cmcewen Jun 6, 2024
4b29717
fix(cli): no prompt on default hooks in hyperlane core configure (#3912)
nbayindirli Jun 7, 2024
0e8374f
fix(cli): set default fallback owner to empty instead of prompting fo…
nbayindirli Jun 7, 2024
3283eef
fix(cli): remove default for chain name (#3909)
nbayindirli Jun 9, 2024
4040db7
fix: warp configure infinite loop (#3929)
ltyu Jun 10, 2024
6b63c5d
feat: add deploy support for IsmConfig in WarpConfig (#3939)
ltyu Jun 11, 2024
5ed86c6
chore: new alpha build
cmcewen Jun 11, 2024
6d30eed
chore: alpha.2
cmcewen Jun 11, 2024
35f8699
feat(cli): Support creating agent configs from CLI (#3938)
Mo-Hussain Jun 13, 2024
9304fe2
feat(cli): support more ISM types in CLI self-relay (#3954)
nbayindirli Jun 13, 2024
129bd87
feat: `hyperlane config create chain` prompts for `displayName` (#3969)
ltyu Jun 16, 2024
ec5d43c
chore: merge main to cli-2.0 (#3964)
cmcewen Jun 17, 2024
70c4c28
Merge branch 'main' into cli-2.0
cmcewen Jun 17, 2024
897f627
fix: remove extra rust code from merge
cmcewen Jun 17, 2024
b0828b3
feat: reintroduce `ism read` and `hook read` commands (#3990)
paulbalaji Jun 18, 2024
cd419c9
feat(cli): CLI command with pre-flight checks for a validator (#3966)
Mo-Hussain Jun 19, 2024
e0f2268
feat: implement `create()` for `EvmHookModule` (#3861)
paulbalaji Jun 19, 2024
bf7ad09
feat(cli): add `warp --symbol` flag (#3992)
yorhodes Jun 19, 2024
b7003cf
feat: add stdout.rows to pagesize calculation with DEFAULT_PAGE_SIZE …
ltyu Jun 19, 2024
290c8cb
feat: Script to generate Renzo Warp Route Configuration (#3983)
nambrot Jun 19, 2024
28f0477
fix(cli): make native token required in chain config (#3944)
nbayindirli Jun 19, 2024
5c8ba0b
fix(cli): Rename `hyperlane config create chain` -> `hyperlane regist…
ltyu Jun 19, 2024
bd3ca91
chore(cli): update ci-test to ci-advanced-test (#4011)
nbayindirli Jun 19, 2024
39f66df
feat(ci): rust caching in `test` workflow (#4021)
paulbalaji Jun 21, 2024
e38d316
feat: Add smart provider log setter (#4007)
ltyu Jun 21, 2024
bb0c7af
fix(cli): add units and explanation to protocol fee input (#4024)
nbayindirli Jun 21, 2024
7add7bf
chore(cli): format message stdout during hl send message (#4025)
nbayindirli Jun 22, 2024
91d2f6d
chore: include 10% gas estimate bump in EvmIsmModule (#3957)
paulbalaji Jun 24, 2024
3941c99
chore(cli): display new chain config after registry init (#4038)
nbayindirli Jun 24, 2024
cc0ea73
feat: pin monorepo to a specific registry version (#4041)
paulbalaji Jun 24, 2024
47cba13
chore: Upgrade registry to 2.1.1 (#4035)
jmrossy Jun 24, 2024
c81721e
feat(cli): display formatted deployment plan to confirm core deploy (…
nbayindirli Jun 25, 2024
4dd2651
feat: add xerc20 limit lookups to warp read (#4020)
yorhodes Jun 25, 2024
b05ae38
fix(cli): RPC errors while sending test messages (#4055)
ltyu Jun 26, 2024
2de63aa
fix(cli): add hook/ism commands (#4060)
paulbalaji Jun 26, 2024
a2a633b
Merge branch 'main' into noah/merge
nbayindirli Jun 26, 2024
66ec15a
chore(cli): merge branch 'main' into cli-2.0 (#4063)
nbayindirli Jun 26, 2024
78b2eb8
update retreive ==> retrieve
nbayindirli Jun 26, 2024
df6a180
add changeset
nbayindirli Jun 26, 2024
45dc4f9
use clean rust cache for e2e
paulbalaji Jun 26, 2024
cf25332
Update e2e-non-cosmwasm ci timeout
paulbalaji Jun 26, 2024
a23cf64
tidy up test.yml branch triggers
paulbalaji Jun 26, 2024
d51813a
bump E2E_CI_TIMEOUT_SEC on non-cosmwasm test to 1hr
paulbalaji Jun 26, 2024
653bbcf
fix(e2e): hardcode kathy chains for e2e in send-test-messages.ts (#4067)
paulbalaji Jun 27, 2024
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
5 changes: 5 additions & 0 deletions .changeset/bright-emus-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': patch
---

Removes default pattern for chain name when creating a new chain.
6 changes: 6 additions & 0 deletions .changeset/calm-eels-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Gracefully handle RPC failures during warp send & fix deriving hook error that prevents warp and core test messages on the cli.
6 changes: 6 additions & 0 deletions .changeset/clean-bees-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Use metadata builders in message relaying
5 changes: 5 additions & 0 deletions .changeset/five-baboons-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Add EvmWarpModule with create()
5 changes: 5 additions & 0 deletions .changeset/five-owls-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperlane-xyz/cli": patch
---

Add xerc20 limit lookups to warp read
5 changes: 5 additions & 0 deletions .changeset/giant-lies-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Rename hyperlane config create chain -> hyperlane registry init. Rename all `configure` to `init`
5 changes: 5 additions & 0 deletions .changeset/hip-melons-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Add a validator preFlightCheck command verifying that the validator has been announced for a given chain
6 changes: 6 additions & 0 deletions .changeset/late-rings-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': patch
'@hyperlane-xyz/sdk': patch
---

Adds deployment support for IsmConfig within a WarpRouteConfig
5 changes: 5 additions & 0 deletions .changeset/lovely-boxes-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Add command to support creating agent configs
7 changes: 7 additions & 0 deletions .changeset/mean-books-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@hyperlane-xyz/cli": minor
"@hyperlane-xyz/helloworld": minor
"@hyperlane-xyz/infra": minor
---

feat(cli): add `warp --symbol` flag
5 changes: 5 additions & 0 deletions .changeset/new-taxis-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Reintroduce `ism read` and `hook read` commands
5 changes: 5 additions & 0 deletions .changeset/new-timers-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Add chain displayName prompt with default
5 changes: 5 additions & 0 deletions .changeset/sharp-geckos-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Fix createDefaultWarpIsmConfig to default to trusted relayer and fallback routing without prompts
5 changes: 5 additions & 0 deletions .changeset/shiny-cups-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Add logic to set smart provider log level to disable provider logs during Warp TokenType derive
6 changes: 6 additions & 0 deletions .changeset/shy-countries-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/sdk': minor
---

- Enables creation of new Hooks through the `EvmHookModule`.
- Introduces an `EvmModuleDeployer` to perform the barebones tasks of deploying contracts/proxies.
6 changes: 6 additions & 0 deletions .changeset/slimy-toys-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperlane-xyz/cli': minor
'@hyperlane-xyz/sdk': minor
---

Implement hyperlane warp deploy
5 changes: 5 additions & 0 deletions .changeset/sour-squids-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Updates ci-test.sh to ci-advanced-test.sh.
5 changes: 5 additions & 0 deletions .changeset/wise-cobras-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': minor
---

Add stdout.rows to pagesize calculation with DEFAULT_PAGE_SIZE
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"no-extra-boolean-cast": ["error"],
"no-ex-assign": ["error"],
"no-constant-condition": ["off"],
"no-return-await": ["error"],
"guard-for-in": ["error"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-skipped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Instant pass
run: echo "e2e job passed"

cli-e2e:
cli-advanced-e2e:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main') || github.event_name == 'merge_group'
strategy:
Expand All @@ -81,7 +81,7 @@ jobs:
- test-type: pi_with_core_chain
steps:
- name: Instant pass
run: echo "cli-e2e job passed"
run: echo "cli-advanced-e2e job passed"

env-test:
runs-on: ubuntu-latest
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: test

on:
# Triggers the workflow on push or pull request against main
# Triggers the workflow on pushes to main & cli-2.0 branches
push:
branches: [main]
branches: [main, cli-2.0]
nbayindirli marked this conversation as resolved.
Show resolved Hide resolved
paths-ignore:
- '*.md'
# Triggers on pull requests ignoring md files
pull_request:
branches:
- '*' # run against all branches
Expand Down Expand Up @@ -281,7 +282,7 @@ jobs:

prebuild-cli-e2e:
runs-on: larger-runner
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main') || github.event_name == 'merge_group'
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main' || github.base_ref == 'cli-2.0') || github.event_name == 'merge_group'
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -328,9 +329,9 @@ jobs:
env:
RUST_BACKTRACE: 'full'

cli-e2e:
cli-advanced-e2e:
runs-on: larger-runner
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main') || github.event_name == 'merge_group'
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main' || github.base_ref == 'cli-2.0') || github.event_name == 'merge_group'
needs: [yarn-build, prebuild-cli-e2e]
strategy:
matrix:
Expand Down Expand Up @@ -399,7 +400,7 @@ jobs:
uses: ./.github/actions/checkout-registry

- name: cli e2e tests
run: ./typescript/cli/ci-test.sh ${{ matrix.test-type }}
run: ./typescript/cli/ci-advanced-test.sh ${{ matrix.test-type }}

env-test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This CoC applies to all members of the Hyperlane Network's community including,
1. Never harass or bully anyone. Not verbally, not physically, not sexually. Harassment will not be tolerated.
2. Never discriminate on the basis of personal characteristics or group membership.
3. Treat your fellow contributors with respect, fairness, and professionalism, especially in situations of high pressure.
4. Seek, offer, and accept objective criticism of yours and others work, strive to acknowledge the contributions of others.
4. Seek, offer, and accept objective criticism of yours and others work, strive to acknowledge the contributions of others.
5. Be transparent and honest about your qualifications and any potential conflicts of interest. Transparency is a key tenet of the Hyperlane project and we expect it from all contributors.
6. Bring an open and curious mind, the Hyperlane project is designed to enable developers to express their curiosity, experiment, and build things we couldn't have imagined ourselves.
7. Stay on track - Do your best to avoid off-topic discussion and make sure you are posting to the correct channel and repositories. Distractions are costly and it is far too easy for work to go off track.
Expand Down
43 changes: 25 additions & 18 deletions typescript/cli/ci-test.sh → typescript/cli/ci-advanced-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _main() {
# with the routing over igp hook (which is closer to production deployment)
TEST_TYPE=$1
if [ -z "$TEST_TYPE" ]; then
echo "Usage: ci-test.sh <$TEST_TYPE_PRESET_HOOK | $TEST_TYPE_CONFIGURED_HOOK | $TEST_TYPE_PI_CORE>"
echo "Usage: ci-advanced-test.sh <$TEST_TYPE_PRESET_HOOK | $TEST_TYPE_CONFIGURED_HOOK | $TEST_TYPE_PI_CORE>"
exit 1
fi

Expand All @@ -34,11 +34,11 @@ _main() {
run_hyperlane_deploy_warp;
run_hyperlane_send_message;

cd ./rust;
# cd ./rust;

run_validator;
run_relayer;
run_hyperlane_status;
# run_validator;
# run_relayer;
# run_hyperlane_status;

kill_anvil;

Expand Down Expand Up @@ -75,6 +75,7 @@ prepare_environment_vars() {
}

prepare_anvil() {

CHAIN1_PORT=8545
CHAIN2_PORT=8555

Expand Down Expand Up @@ -142,12 +143,11 @@ run_hyperlane_deploy_core_dry_run() {
update_deployer_balance;

echo -e "\nDry-running contract deployments to Alfajores"
yarn workspace @hyperlane-xyz/cli run hyperlane deploy core \
yarn workspace @hyperlane-xyz/cli run hyperlane core deploy \
--dry-run alfajores \
--registry ${TEST_CONFIGS_PATH}/dry-run \
--overrides " " \
$(if [ "$HOOK_FLAG" == "true" ]; then echo "--hook ${EXAMPLES_PATH}/hooks.yaml"; fi) \
--ism ${TEST_CONFIGS_PATH}/dry-run/ism.yaml \
--config ${EXAMPLES_PATH}/core-config.yaml \
--from-address 0xfaD1C94469700833717Fa8a3017278BC1cA8031C \
--yes

Expand All @@ -162,7 +162,7 @@ run_hyperlane_deploy_warp_dry_run() {
update_deployer_balance;

echo -e "\nDry-running warp route deployments to Alfajores"
yarn workspace @hyperlane-xyz/cli run hyperlane deploy warp \
yarn workspace @hyperlane-xyz/cli run hyperlane warp deploy \
--dry-run alfajores \
--overrides ${TEST_CONFIGS_PATH}/dry-run \
--config ${TEST_CONFIGS_PATH}/dry-run/warp-route-deployment.yaml \
Expand All @@ -175,14 +175,21 @@ run_hyperlane_deploy_warp_dry_run() {
run_hyperlane_deploy_core() {
update_deployer_balance;

echo -e "\nDeploying contracts to ${CHAIN1} and ${CHAIN2}"
yarn workspace @hyperlane-xyz/cli run hyperlane deploy core \
echo -e "\nDeploying contracts to ${CHAIN1}"
yarn workspace @hyperlane-xyz/cli run hyperlane core deploy \
--registry $REGISTRY_PATH \
--overrides " " \
--config ${EXAMPLES_PATH}/core-config.yaml \
--chain $CHAIN1 \
--key $ANVIL_KEY \
--yes

echo -e "\nDeploying contracts to ${CHAIN2}"
yarn workspace @hyperlane-xyz/cli run hyperlane core deploy \
--registry $REGISTRY_PATH \
--overrides " " \
--targets ${CHAIN1},${CHAIN2} \
$(if [ "$HOOK_FLAG" == "true" ]; then echo "--hook ${EXAMPLES_PATH}/hooks.yaml"; fi) \
--ism $CORE_ISM_PATH \
--agent /tmp/agent-config.json \
--config ${EXAMPLES_PATH}/core-config.yaml \
--chain $CHAIN2 \
--key $ANVIL_KEY \
--yes

Expand All @@ -193,7 +200,7 @@ run_hyperlane_deploy_warp() {
update_deployer_balance;

echo -e "\nDeploying hypNative warp route"
yarn workspace @hyperlane-xyz/cli run hyperlane deploy warp \
yarn workspace @hyperlane-xyz/cli run hyperlane warp deploy \
--registry $REGISTRY_PATH \
--overrides " " \
--config $WARP_DEPLOY_CONFIG_PATH \
Expand All @@ -206,7 +213,7 @@ run_hyperlane_deploy_warp() {
/tmp/warp-collateral-deployment.json \

echo "Deploying hypCollateral warp route"
yarn workspace @hyperlane-xyz/cli run hyperlane deploy warp \
yarn workspace @hyperlane-xyz/cli run hyperlane warp deploy \
--registry $REGISTRY_PATH \
--overrides " " \
--config /tmp/warp-collateral-deployment.json \
Expand Down Expand Up @@ -238,7 +245,7 @@ run_hyperlane_send_message() {
WARP_CONFIG_FILE="$REGISTRY_PATH/deployments/warp_routes/FAKE/${CHAIN1}-${CHAIN2}-config.yaml"

echo -e "\nSending test warp transfer"
yarn workspace @hyperlane-xyz/cli run hyperlane send transfer \
yarn workspace @hyperlane-xyz/cli run hyperlane warp send \
--registry $REGISTRY_PATH \
--overrides " " \
--origin ${CHAIN1} \
Expand Down
8 changes: 6 additions & 2 deletions typescript/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { LogFormat, LogLevel } from '@hyperlane-xyz/utils';

import './env.js';
import { avsCommand } from './src/commands/avs.js';
import { chainsCommand } from './src/commands/chains.js';
import { configCommand } from './src/commands/config.js';
import { coreCommand } from './src/commands/core.js';
import { deployCommand } from './src/commands/deploy.js';
import { hookCommand } from './src/commands/hook.js';
import { ismCommand } from './src/commands/ism.js';
Expand All @@ -19,9 +19,11 @@ import {
registryUriCommandOption,
skipConfirmationOption,
} from './src/commands/options.js';
import { registryCommand } from './src/commands/registry.js';
import { sendCommand } from './src/commands/send.js';
import { statusCommand } from './src/commands/status.js';
import { validatorCommand } from './src/commands/validator.js';
import { warpCommand } from './src/commands/warp.js';
import { contextMiddleware } from './src/context/context.js';
import { configureLogger, errorRed } from './src/logger.js';
import { checkVersion } from './src/utils/version-check.js';
Expand Down Expand Up @@ -51,14 +53,16 @@ try {
contextMiddleware,
])
.command(avsCommand)
.command(chainsCommand)
.command(configCommand)
.command(coreCommand)
.command(deployCommand)
.command(hookCommand)
.command(ismCommand)
.command(registryCommand)
.command(sendCommand)
.command(statusCommand)
.command(validatorCommand)
.command(warpCommand)
.version(VERSION)
.demandCommand()
.strict()
Expand Down
19 changes: 19 additions & 0 deletions typescript/cli/examples/core-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# A config to define the core contract deployments
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
defaultIsm:
type: 'testIsm'
threshold: 1 # Number: Signatures required to approve a message
validators: # Array: List of validator addresses
- '0xa0ee7a142d267c1f36714e4a8f75612f20a79720'
defaultHook:
type: protocolFee
maxProtocolFee: '1000000000000000000' # in wei (string)
protocolFee: '200000000000000' # in wei (string)
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
requiredHook:
type: protocolFee
maxProtocolFee: '1000000000000000000' # in wei (string)
protocolFee: '200000000000000' # in wei (string)
beneficiary: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
owner: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
12 changes: 8 additions & 4 deletions typescript/cli/examples/hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ anvil1:
oracleKey: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
overhead:
anvil2: 50000 # gas amount (number)
gasOracleType:
anvil2: StorageGasOracle
oracleConfig:
anvil2:
gasPrice: '100'
tokenExchangeRate: '100'
anvil2:
required:
type: protocolFee
Expand All @@ -62,5 +64,7 @@ anvil2:
oracleKey: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
overhead:
anvil1: 50000
gasOracleType:
anvil1: StorageGasOracle
oracleConfig:
anvil1:
gasPrice: '100'
tokenExchangeRate: '100'
3 changes: 2 additions & 1 deletion typescript/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"tsx": "^4.7.1",
"yaml": "^2.4.1",
"yargs": "^17.7.2",
"zod": "^3.21.2"
"zod": "^3.21.2",
"zod-validation-error": "^3.3.0"
},
"devDependencies": {
"@ethersproject/abi": "*",
Expand Down
Loading
Loading