ARBITRUM ONE DEPLOYED
This commit is contained in:
2
backend
2
backend
Submodule backend updated: a4f576d6ec...c60bc219f6
37
bin/arb1/init-deploy
Executable file
37
bin/arb1/init-deploy
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TAG=arb1
|
||||
RPC=${RPC_URL:-arbitrum_alchemy}
|
||||
CHAINID=42161
|
||||
|
||||
cd contract || exit 1
|
||||
|
||||
# force clean build
|
||||
rm -rf out/ broadcast/ cache/
|
||||
bin/build --skip Test || exit 1
|
||||
|
||||
rm -rf deployment/"$TAG"/out
|
||||
mkdir -p deployment/"$TAG"
|
||||
cp -r out deployment/"$TAG"/
|
||||
|
||||
cpbroadcast() {
|
||||
CONTRACT=$1
|
||||
mkdir -p deployment/"$TAG"/broadcast/"$CONTRACT"/"$CHAINID"
|
||||
cp broadcast/"$CONTRACT"/"$CHAINID"/run-latest.json deployment/"$TAG"/broadcast/"$CONTRACT"/"$CHAINID"/run-latest.json
|
||||
}
|
||||
|
||||
if [ "$1" == "broadcast" ]; then
|
||||
BROADCAST=--broadcast
|
||||
else
|
||||
BROADCAST=
|
||||
fi
|
||||
|
||||
# trezor account 0 is the admin account
|
||||
forge script script/DeployArbitrum.sol -vvvv --fork-url "$RPC" --trezor --mnemonic-indexes 0 "$BROADCAST"
|
||||
|
||||
if [ "$1" == 'broadcast' ]; then
|
||||
cpbroadcast DeployArbitrum.sol
|
||||
echo Saved deployment files.
|
||||
else
|
||||
echo Deployment NOT broadcast \(use \'broadcast\' argument\)
|
||||
fi
|
||||
2
contract
2
contract
Submodule contract updated: a91056d232...5ff3e3285c
@@ -3,33 +3,40 @@
|
||||
## Contracts
|
||||
|
||||
| Contract | Address | Cost |
|
||||
|----------------|---------------------------------------------|-----------------------------------------------|
|
||||
| ArbitrumRouter | | |
|
||||
| Dexorder | | |
|
||||
| FeeManager | | |
|
||||
| QueryHelper | | |
|
||||
| VaultFactory | | |
|
||||
| VaultImpl | | |
|
||||
| -------------- | ------------------------------------------- | --------------------------------------------- |
|
||||
|----------------|--------------------------------------------|---------------------------------------------|
|
||||
| ArbitrumRouter | 0x0d1C3Ef315E95f0687dD750d301F90640CFbB538 | 0.00002125181 ETH (2125181 gas * 0.01 gwei) |
|
||||
| Dexorder | 0xcc5465A5f87dd3EE7908610E742159FfaA22a7c3 | 0.00000764635 ETH (764635 gas * 0.01 gwei) |
|
||||
| FeeManager | 0x5610ef201A396DCA9cbEd3cACb21bF786671dF9B | 0.00001492179 ETH (1492179 gas * 0.01 gwei) |
|
||||
| QueryHelper | 0x97b3C3Af43c8d3e7bCCB398C1237a511a8DC42Db | 0.0000097769 ETH (977690 gas * 0.01 gwei) |
|
||||
| VaultFactory | 0xC2D51971aEe76E7498C7FD6D3EBF261f373B622f | 0.000019627 ETH (1962700 gas * 0.01 gwei) |
|
||||
| VaultImpl | 0x679735cEb6b61b6548C901322Dd2B44e1D963B26 | 0.00005813201 ETH (5813201 gas * 0.01 gwei) |
|
||||
| -------------- | ------------------------------------------ | ------------------------------------------- |
|
||||
| Total | | |
|
||||
|
||||
|
||||
VaultFactory
|
||||
VaultImpl 0x679735cEb6b61b6548C901322Dd2B44e1D963B26
|
||||
FeeManager 0x5610ef201A396DCA9cbEd3cACb21bF786671dF9B
|
||||
Dexorder 0xcc5465A5f87dd3EE7908610E742159FfaA22a7c3
|
||||
QueryHelper 0x97b3C3Af43c8d3e7bCCB398C1237a511a8DC42Db
|
||||
|
||||
### Vault Init Code Hash
|
||||
0x...
|
||||
|
||||
|
||||
## Accounts
|
||||
|
||||
| Name | Address | Description |
|
||||
|---------|--------------------------------------------|----------------------------------------------------------------------------|
|
||||
| admin | | deploys contracts, is upgrader, runs mirrorprice, funded from from faucets |
|
||||
| vaulter | | deploys vaults |
|
||||
| place | | receives order placement fees |
|
||||
| gas | | receives gas fees |
|
||||
| fill | | receives fill fees |
|
||||
| Index | Name | Address | Description |
|
||||
|------:|---------|--------------------------------------------|--------------------------------|
|
||||
| 0 | admin | 0x12DB90820DAFed100E40E21128E40Dcd4fF6B331 | deploys contracts, is upgrader |
|
||||
| 1 | vaulter | 0x0E280F5eDA58872d7cDaA8AC0A57A55fD6133AEd | deploys vaults |
|
||||
| 2 | place | 0x078E0C1112262433375b9aaa987BfF09a08e863C | receives order placement fees |
|
||||
| 3 | gas | 0x411c418C005EBDefB551e5E6B734520Ef2591f51 | receives gas fees |
|
||||
| 4 | fill | 0x152a3a04cE063dC77497aA06b6A09FeFD271E716 | receives fill fees |
|
||||
|
||||
|
||||
## Deployment Steps
|
||||
|
||||
1. `kubectl apply -f deploy/k8s/postgres.yaml -f deploy/k8s/redis.yaml`
|
||||
2. `bin/arb1/finaldata-deploy`
|
||||
3.
|
||||
3. `bin/arb1/init-deploy broadcast`
|
||||
|
||||
2
web
2
web
Submodule web updated: dff1a6b635...af17b15314
Reference in New Issue
Block a user