Skip to content

Commit 8d83cfc

Browse files
committed
address drift for local setups
Signed-off-by: Stefan Adolf <[email protected]>
1 parent e080796 commit 8d83cfc

File tree

7 files changed

+28
-13
lines changed

7 files changed

+28
-13
lines changed

.env.example

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ PRICEFEED_ADDRESS=0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6
2626
TERMS_ACCEPTED_PERMISSIONER_ADDRESS=0x8A791620dd6260079BF849Dc5567aDC3F2FdC318
2727

2828
TOKENIZER_ADDRESS=0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e
29-
STAKED_LOCKING_CROWDSALE_ADDRESS=0x0B306BF915C4d645ff596e518fAf3F9669b97016
29+
#iptoken implementation=0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82
3030

31-
USDC6_ADDRESS=0x68B1D87F95878fE05B998F19b66F4baba5De1aed
32-
WETH_ADDRESS=0x4ed7c70F96B99c776995fB64377f0d4aB3B0e1C1
33-
PLAIN_CROWDSALE_ADDRESS=0x7a2088a1bFc9d81c55368AE168C2C02570cB814F
31+
#timelocked token implementation=0x0B306BF915C4d645ff596e518fAf3F9669b97016
32+
STAKED_LOCKING_CROWDSALE_ADDRESS=0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1
3433

35-
#this is created during the tokenizer deployment
36-
IPTOKEN_IMPLEMENTATION_ADDRESS=0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82
34+
USDC6_ADDRESS=0x3Aa5ebB10DC797CAC828524e59A333d0A371443c
35+
WETH_ADDRESS=0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44
36+
PLAIN_CROWDSALE_ADDRESS=0x09635F643e140090A9A8Dcd712eD6285858ceBef
3737

3838
#these are generated when running the fixture scripts
3939
IPTS_ADDRESS=0x8dAF17A20c9DBA35f005b6324F493785D239719d
40-
LOCKED_IPTS_ADDRESS=0x16eBC21B3d38Db5e3EE1a022bEBA8Ec87D4CDbe6
40+
LOCKED_IPTS_ADDRESS=0x24B3c7704709ed1491473F30393FFc93cFB0FC34

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ Deprecated after migrating to Defender 2 (was 0x3D30452c48F2448764d5819a9A2b684A
4646
| Terms Permissioner | 0xC05D649368d8A5e2E98CAa205d47795de5fCB599 | <a href="https://sepolia.etherscan.io/address/0xC05D649368d8A5e2E98CAa205d47795de5fCB599#code" target="_blank"><img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0xC05D649368d8A5e2E98CAa205d47795de5fCB599&theme=dark&chainId=1" alt="View contract" /></a> |
4747
| Tokenizer | 0xca63411FF5187431028d003eD74B57531408d2F9 | <a href="https://sepolia.etherscan.io/address/0xca63411FF5187431028d003eD74B57531408d2F9#code" target="_blank"><img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0xca63411FF5187431028d003eD74B57531408d2F9&theme=dark&chainId=1" alt="View contract" /></a> |
4848
| Crowdsale | 0x8cA737E2cdaE1Ceb332bEf7ba9eA711a3a2f8037 | <a href="https://sepolia.etherscan.io/address/0x8cA737E2cdaE1Ceb332bEf7ba9eA711a3a2f8037#code" target="_blank"><img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0x8cA737E2cdaE1Ceb332bEf7ba9eA711a3a2f8037&theme=dark&chainId=1" alt="View contract" /></a> |
49-
| Staked Crowdsale | 0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7 | <a href="https://sepolia.etherscan.io/address/0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7#code" target="_blank"><img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7&theme=dark&chainId=1" alt="View contract" /></a> |
49+
| Staked Crowdsale | 0x7eeb7113f90893fb95c6666e3930235850f2bc6A | <a href="https://sepolia.etherscan.io/address/0x7eeb7113f90893fb95c6666e3930235850f2bc6A#code" target="_blank"><img width="200" height="45" src="https://badges.thirdweb.com/contract?address=0x7eeb7113f90893fb95c6666e3930235850f2bc6A&theme=dark&chainId=11155111" alt="View contract" /></a> |
50+
| Old Staked Crowdsale | 0xd1cE2EA7d3b0C9cAB025A4aD762FC00315141ad7 | |
51+
52+
timelocked token implementation=0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851
5053

5154
#### Subgraphs
5255

@@ -204,6 +207,9 @@ The crowdsale computation model can be tried out here: <https://docs.google.com/
204207
Deploying and verifying a single contract without the help of any script
205208
`forge create --rpc-url $RPC_URL --private-key $PRIVATE_KEY --chain 5 --etherscan-api-key $ETHERSCAN_API_KEY --verify src/crowdsale/StakedLockingCrowdSale.sol:StakedLockingCrowdSale`
206209

210+
Verifying a the staked crowdsale crowdsale
211+
`forge verify-contract --chain-id=11155111 --etherscan-api-key=$ETHERSCAN_API_KEY --constructor-args $(cast abi-encode "constructor(address)" 0xF8F79c1E02387b0Fc9DE0945cD9A2c06F127D851) 0x7eeb7113f90893fb95c6666e3930235850f2bc6A src/crowdsale/StakedLockingCrowdSale.sol:StakedLockingCrowdSale`
212+
207213
### Deploying (vested) test tokens
208214

209215
To test staked / vested token interactions, you need some test tokens. Here are 2 convenient script to get them running:

script/dev/CrowdSale.s.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ contract DeployStakedCrowdSale is CommonScript {
4343
stakedLockingCrowdSale.trustVestingContract(vestedDaoToken);
4444
vm.stopBroadcast();
4545

46+
console.log("timelocked token implementation=%s", address(lockingCrowdsaleImplementation));
4647
console.log("STAKED_LOCKING_CROWDSALE_ADDRESS=%s", address(stakedLockingCrowdSale));
4748
}
4849
}

script/dev/Tokenizer.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ contract DeployTokenizer is CommonScript {
2525

2626
vm.stopBroadcast();
2727
console.log("TOKENIZER_ADDRESS=%s", address(tokenizer));
28-
console.log("IPTOKEN_IMPLEMENTATION_ADDRESS=%s", address(initialIpTokenImplementation));
28+
console.log("iptoken implementation=%s", address(initialIpTokenImplementation));
2929
}
3030
}
3131

setupLocal.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ set +a
99
fixtures=false
1010
extrafixtures=false
1111

12+
show_help() {
13+
echo "Usage: setupLocal.sh [OPTION]"
14+
echo "Sets up the local environment for the IPNFT contracts."
15+
echo "Options:"
16+
echo " -f also runs basic fixture scripts"
17+
echo " -x also runs extra fixture scripts (crowdsales)"
18+
}
19+
1220
# Parse command-line options
1321
while getopts "fx" opt; do
1422
case ${opt} in

subgraph/networks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
"startBlock": 0
6666
},
6767
"CrowdSale": {
68-
"address": "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
68+
"address": "0x09635F643e140090A9A8Dcd712eD6285858ceBef",
6969
"startBlock": 0
7070
},
7171
"StakedLockingCrowdSale": {
72-
"address": "0x0B306BF915C4d645ff596e518fAf3F9669b97016",
72+
"address": "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1",
7373
"startBlock": 0
7474
},
7575
"TermsAcceptedPermissioner": {

subgraph/subgraph.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ dataSources:
8787
network: foundry
8888
source:
8989
abi: CrowdSale
90-
address: "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F"
90+
address: "0x09635F643e140090A9A8Dcd712eD6285858ceBef"
9191
startBlock: 0
9292
mapping:
9393
kind: ethereum/events
@@ -124,7 +124,7 @@ dataSources:
124124
network: foundry
125125
source:
126126
abi: StakedLockingCrowdSale
127-
address: "0x0B306BF915C4d645ff596e518fAf3F9669b97016"
127+
address: "0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1"
128128
startBlock: 0
129129
mapping:
130130
kind: ethereum/events

0 commit comments

Comments
 (0)