Skip to content

Commit b0219d3

Browse files
committed
docs: Remove kiss/diss from docs and update deploy script
1 parent 56472a7 commit b0219d3

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

docs/Deployment.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ $ env | grep -e "RPC_URL" -e "PRIVATE_KEY" -e "ETHERSCAN_API_URL" -e "ETHERSCAN_
3030
## Configuration Setting
3131

3232
The following variables inside `script/Aggor.s.sol` need to be set:
33+
- `bud`: The address allowed to read Aggor
3334
- `chronicle`: The Chronicle oracle
3435
- `chainlink`: The Chainlink oracle
3536
- `uniswapPool`: The Uniswap pool to use as TWAP
@@ -75,7 +76,7 @@ $ forge verify-contract \
7576
--etherscan-api-key "$ETHERSCAN_API_KEY" \
7677
--watch \
7778
--constructor-args \
78-
"$(cast abi-encode "constructor(address,address,address,address,address,address,uint8,uint32,uint128,uint32)" \
79-
"$INITIAL_AUTHED" "$CHRONICLE" "$CHAINLINK" "$UNISWAP_POOL" "$UNISWAP_BASE_TOKEN" "$UNISWAP_QUOTE_TOKEN" "$UNISWAP_BASE_TOKEN_DECIMALS" "$UNISWAP_LOOKBACK" "$AGREEMENT_DISTANCE" "$AGE_THRESHOLD")" \
79+
"$(cast abi-encode "constructor(address,address,address,address,address,address,address,uint8,uint32,uint128,uint32)" \
80+
"$INITIAL_AUTHED" "$BUD" "$CHRONICLE" "$CHAINLINK" "$UNISWAP_POOL" "$UNISWAP_BASE_TOKEN" "$UNISWAP_QUOTE_TOKEN" "$UNISWAP_BASE_TOKEN_DECIMALS" "$UNISWAP_LOOKBACK" "$AGREEMENT_DISTANCE" "$AGE_THRESHOLD")" \
8081
src/Aggor.sol:"$SALT"
8182
```

docs/Management.md

-37
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ This document describes how to manage deployed `Aggor` instances.
1212
- [`IAggor::setAgeThreshold`](#iaggorsetagethreshold)
1313
- [`IAuth::rely`](#iauthrely)
1414
- [`IAuth::deny`](#iauthdeny)
15-
- [`IToll::kiss`](#itollkiss)
16-
- [`IToll::diss`](#itolldiss)
1715

1816
## Environment Variables
1917

@@ -105,38 +103,3 @@ $ forge script \
105103
script/Aggor.s.sol:AggorScript
106104
```
107105

108-
### `IToll::kiss`
109-
110-
Set the following environment variables:
111-
112-
- `WHO`: The address to grant toll to
113-
114-
Run:
115-
116-
```bash
117-
$ forge script \
118-
--private-key $PRIVATE_KEY \
119-
--broadcast \
120-
--rpc-url $RPC_URL \
121-
--sig $(cast calldata "kiss(address,address)" $SCRIBE $WHO) \
122-
-vvv \
123-
script/Aggor.s.sol:AggorScript
124-
```
125-
126-
### `IToll::diss`
127-
128-
Set the following environment variables:
129-
130-
- `WHO`: The address to renounce toll from
131-
132-
Run:
133-
134-
```bash
135-
$ forge script \
136-
--private-key $PRIVATE_KEY \
137-
--broadcast \
138-
--rpc-url $RPC_URL \
139-
--sig $(cast calldata "diss(address,address)" $SCRIBE $WHO) \
140-
-vvv \
141-
script/Aggor.s.sol:AggorScript
142-
```

script/Aggor.s.sol

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ contract AggorScript is Script {
2020

2121
// -- Immutable
2222

23+
address bud;
2324
address chronicle;
2425
address chainlink;
2526
address uniswapPool;
@@ -46,6 +47,7 @@ contract AggorScript is Script {
4647
type(Aggor).creationCode,
4748
abi.encode(
4849
initialAuthed,
50+
bud,
4951
chronicle,
5052
chainlink,
5153
uniswapPool,

0 commit comments

Comments
 (0)