From 117890c9a5f77ae53907a7330a14474cee152b7f Mon Sep 17 00:00:00 2001 From: ByeongSu Hong Date: Thu, 29 Feb 2024 01:39:30 +0900 Subject: [PATCH] feat: apply review changes (#97) * docs: add context / example * fix: real instant finality * fix: typo --- README.md | 6 +++++- script/deploy/hook.ts | 4 ++-- script/shared/agent.ts | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 01ff1552..6641eecd 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,11 @@ cargo llvm-cov --workspace --exclude hpl-tests │ ├── pausable │ └── router │ -├── scripts # useful scripts for development (e.g. code uploading. contract deployment) +├── context # predeployed contract information +│ +├── example # example of contract deployment & integration +│ +├── script # useful scripts for development (e.g. code uploading. contract deployment) │ └── ts └── sdk # typescript sdk for contract integration. (auto generated via ts-codegen) diff --git a/script/deploy/hook.ts b/script/deploy/hook.ts index e15f456b..5cfcc4c3 100644 --- a/script/deploy/hook.ts +++ b/script/deploy/hook.ts @@ -120,7 +120,7 @@ const deployCustomRoutingHook = async ( }; }; -const deployFallbackRoitingHook = async ( +const deployFallbackRoutingHook = async ( networkId: string, ctx: Context, client: Client, @@ -244,7 +244,7 @@ export const deployHook = async ( // deploy fallback routing hook case "routing-fallback": - return deployFallbackRoitingHook(networkId, ctx, client, hook); + return deployFallbackRoutingHook(networkId, ctx, client, hook); default: throw new Error("invalid hook type"); diff --git a/script/shared/agent.ts b/script/shared/agent.ts index ea1de653..01866493 100644 --- a/script/shared/agent.ts +++ b/script/shared/agent.ts @@ -22,7 +22,7 @@ export type HplAgentConfig = { chunk: number; }; blocks: { - reorgPeriod: 1; // instant finality ⭐️ + reorgPeriod: 0; // instant finality ⭐️ }; mailbox: string; // hexed