Skip to content

Commit

Permalink
Merge pull request #104 from gnosisguild/sp/evm-release
Browse files Browse the repository at this point in the history
fix publish env vars, better readme
  • Loading branch information
samepant authored Sep 20, 2024
2 parents c60c789 + efc2e36 commit 82effd7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-evm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
types: [created]

env:
HARDHAT_VAR_MNEMONIC: "test test test test test test test test test test test junk"
HARDHAT_VAR_INFURA_API_KEY: "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
MNEMONIC: "test test test test test test test test test test test junk"
INFURA_API_KEY: "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
ETHERSCAN_API_KEY: "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"

jobs:
publish-npm:
Expand Down
46 changes: 44 additions & 2 deletions packages/evm/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Enclave EVM

## Importing the contracts, interfaces or types

To install, run

```
yarn add @gnosis-guild/enclave
```

If writing a new E3 program, you can import the necessary interfaces by writing
something similar to:

```
import {
IE3Program,
IInputValidator,
IDecryptionVerifier
} from "../interfaces/IE3Program.sol";
contract MockE3Program is IE3Program {...}
```

[Check out the E3 mock for an example](./contracts/test/MockE3Program.sol)

## To deploy

```
Expand All @@ -19,8 +42,27 @@ To add a ciphernode to the registry, run
yarn ciphernode:add --network [network] --ciphernode-address [address]
```

To remove a ciphernode, run
To request a new committee, run

```
yarn run hardhat committee:new --network [network] \
```

To publish the public key of a committee, run

```
yarn run hardhat --network [network] committee:publish --e3-id [e3-id] --nodes [node address],
[node address] --public-key [publickey] \
```

To activate an E3, run

```
yarn run hardhat --network [network] e3:activate --e3-id [e3-id] \
```

To publish an input for an active E3, run

```
yarn ciphernode:remove --network [network] --ciphernode-address [address]
yarn run hardhat --network [network] e3:publishInput --e3-id [e3-id] --data [input data]
```

0 comments on commit 82effd7

Please sign in to comment.