Skip to content

Commit

Permalink
docs: Remove kiss/diss from docs and update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerkleplant committed Apr 2, 2024
1 parent 56472a7 commit 4179aa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 deletions.
5 changes: 3 additions & 2 deletions docs/Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $ env | grep -e "RPC_URL" -e "PRIVATE_KEY" -e "ETHERSCAN_API_URL" -e "ETHERSCAN_
## Configuration Setting

The following variables inside `script/Aggor.s.sol` need to be set:
- `bud`: The address allowed to read Aggor
- `chronicle`: The Chronicle oracle
- `chainlink`: The Chainlink oracle
- `uniswapPool`: The Uniswap pool to use as TWAP
Expand Down Expand Up @@ -75,7 +76,7 @@ $ forge verify-contract \
--etherscan-api-key "$ETHERSCAN_API_KEY" \
--watch \
--constructor-args \
"$(cast abi-encode "constructor(address,address,address,address,address,address,uint8,uint32,uint128,uint32)" \
"$INITIAL_AUTHED" "$CHRONICLE" "$CHAINLINK" "$UNISWAP_POOL" "$UNISWAP_BASE_TOKEN" "$UNISWAP_QUOTE_TOKEN" "$UNISWAP_BASE_TOKEN_DECIMALS" "$UNISWAP_LOOKBACK" "$AGREEMENT_DISTANCE" "$AGE_THRESHOLD")" \
"$(cast abi-encode "constructor(address,address,address,address,address,address,address,uint8,uint32,uint128,uint32)" \
"$INITIAL_AUTHED" "$BUD" "$CHRONICLE" "$CHAINLINK" "$UNISWAP_POOL" "$UNISWAP_BASE_TOKEN" "$UNISWAP_QUOTE_TOKEN" "$UNISWAP_BASE_TOKEN_DECIMALS" "$UNISWAP_LOOKBACK" "$AGREEMENT_DISTANCE" "$AGE_THRESHOLD")" \
src/Aggor.sol:"$SALT"
```
37 changes: 0 additions & 37 deletions docs/Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ This document describes how to manage deployed `Aggor` instances.
- [`IAggor::setAgeThreshold`](#iaggorsetagethreshold)
- [`IAuth::rely`](#iauthrely)
- [`IAuth::deny`](#iauthdeny)
- [`IToll::kiss`](#itollkiss)
- [`IToll::diss`](#itolldiss)

## Environment Variables

Expand Down Expand Up @@ -105,38 +103,3 @@ $ forge script \
script/Aggor.s.sol:AggorScript
```

### `IToll::kiss`

Set the following environment variables:

- `WHO`: The address to grant toll to

Run:

```bash
$ forge script \
--private-key $PRIVATE_KEY \
--broadcast \
--rpc-url $RPC_URL \
--sig $(cast calldata "kiss(address,address)" $SCRIBE $WHO) \
-vvv \
script/Aggor.s.sol:AggorScript
```

### `IToll::diss`

Set the following environment variables:

- `WHO`: The address to renounce toll from

Run:

```bash
$ forge script \
--private-key $PRIVATE_KEY \
--broadcast \
--rpc-url $RPC_URL \
--sig $(cast calldata "diss(address,address)" $SCRIBE $WHO) \
-vvv \
script/Aggor.s.sol:AggorScript
```
2 changes: 2 additions & 0 deletions script/Aggor.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ contract AggorScript is Script {

// -- Immutable

address bud;
address chronicle;
address chainlink;
address uniswapPool;
Expand All @@ -46,6 +47,7 @@ contract AggorScript is Script {
type(Aggor).creationCode,
abi.encode(
initialAuthed,
bud,
chronicle,
chainlink,
uniswapPool,
Expand Down

0 comments on commit 4179aa0

Please sign in to comment.