From d984ebc1bc79509949df632e9c16220f214101b6 Mon Sep 17 00:00:00 2001 From: fewensa Date: Thu, 25 Apr 2024 04:42:52 +0000 Subject: [PATCH] Add owner --- .editorconfig | 13 +++++++++++++ .gitignore | 2 ++ src/1_Action.s.sol | 6 +++--- src/common/Base.sol | 22 +++++++++++++++------- 4 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..ccab4d6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +max_line_length = 80 + diff --git a/.gitignore b/.gitignore index f0821e9..5701a9c 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ out/ # Node node_modules/ dist/ + +*.local.* diff --git a/src/1_Action.s.sol b/src/1_Action.s.sol index 22b94c7..6184d73 100644 --- a/src/1_Action.s.sol +++ b/src/1_Action.s.sol @@ -6,7 +6,7 @@ import {Base} from "./common/Base.sol"; interface III {} contract Action1 is Base { - function run() public sphinx { - // your script - } + function run() public sphinx { + // your script + } } diff --git a/src/common/Base.sol b/src/common/Base.sol index 5b06ec6..e219ce0 100644 --- a/src/common/Base.sol +++ b/src/common/Base.sol @@ -5,11 +5,19 @@ import {Script} from "forge-std/Script.sol"; import "@sphinx-labs/contracts/SphinxPlugin.sol"; contract Base is Sphinx, Script { - function configureSphinx() public override { - sphinxConfig.owners = []; - sphinxConfig.orgId = "cluanacaw000111jik4xs4wkl"; - sphinxConfig.threshold = 0; - sphinxConfig.projectName = "Relayer-Automation"; - sphinxConfig.mainnets = []; - } + function configureSphinx() public override { + sphinxConfig.owners = [ + 0x570FCA2c6f902949dBb90664Be5680fEc94A84f6, // jane + 0xC5a809900B5BFb46B1B3892e419e69331B8FBC6c, // perror + 0x3f63bCe51d3C6665BfE919816780a2109D42238d // fewensa + ]; + sphinxConfig.orgId = 'cluanacaw000111jik4xs4wkl'; + sphinxConfig.threshold = 2; + sphinxConfig.projectName = 'Relayer-Automation'; + sphinxConfig.mainnets = [ + 'darwinia', + 'ethereum', + 'arbitrum' + ]; + } }