Compare commits
No commits in common. "19825d55613dee10f08934f788a8798c8356681f" and "ba94d1563d14469057f842c85ea8e9dee273d24d" have entirely different histories.
19825d5561
...
ba94d1563d
@ -6,17 +6,13 @@
|
|||||||
"chain": {
|
"chain": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"trail_head_blocks": 0,
|
"trail_head_blocks": 0,
|
||||||
"rpc_url": "https://base-rpc.publicnode.com",
|
"rpc_url": "http://host.docker.internal:8545",
|
||||||
"registry_address": "0x8D871Ef2826ac9001fB2e33fDD6379b6aaBF449c",
|
"registry_address": "0x663F3ad617193148711d28f5334eE4Ed07016602",
|
||||||
"wallet": {
|
"wallet": {
|
||||||
"max_gas_limit": 4000000,
|
"max_gas_limit": 4000000,
|
||||||
"private_key": "###PRIVATE_KEY###"
|
"private_key": "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"snapshot_sync": {
|
|
||||||
"sleep": 5,
|
|
||||||
"batch_size": 100
|
|
||||||
},
|
|
||||||
"startup_wait": 1.0,
|
"startup_wait": 1.0,
|
||||||
"docker": {
|
"docker": {
|
||||||
"username": "your-username",
|
"username": "your-username",
|
||||||
@ -38,7 +34,7 @@
|
|||||||
"external": true,
|
"external": true,
|
||||||
"port": "3000",
|
"port": "3000",
|
||||||
"allowed_delegate_addresses": [],
|
"allowed_delegate_addresses": [],
|
||||||
"allowed_addresses": ["###WALLET_ADDRESS###"],
|
"allowed_addresses": [],
|
||||||
"allowed_ips": [],
|
"allowed_ips": [],
|
||||||
"command": "--bind=0.0.0.0:3000 --workers=2",
|
"command": "--bind=0.0.0.0:3000 --workers=2",
|
||||||
"env": {},
|
"env": {},
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
.phony: deploy
|
.phony: deploy
|
||||||
|
|
||||||
# anvil's third default address
|
# anvil's third default address
|
||||||
sender := ###PRIVATE_KEY###
|
sender := 0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
|
||||||
RPC_URL := https://base-rpc.publicnode.com
|
RPC_URL := http://localhost:8545
|
||||||
|
|
||||||
# deploying the contract
|
# deploying the contract
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -14,7 +14,7 @@ contract Deploy is Script {
|
|||||||
address deployerAddress = vm.addr(deployerPrivateKey);
|
address deployerAddress = vm.addr(deployerPrivateKey);
|
||||||
console2.log("Loaded deployer: ", deployerAddress);
|
console2.log("Loaded deployer: ", deployerAddress);
|
||||||
|
|
||||||
address registry = 0x8D871Ef2826ac9001fB2e33fDD6379b6aaBF449c;
|
address registry = 0x663F3ad617193148711d28f5334eE4Ed07016602;
|
||||||
// Create consumer
|
// Create consumer
|
||||||
SaysGM saysGm = new SaysGM(registry);
|
SaysGM saysGm = new SaysGM(registry);
|
||||||
console2.log("Deployed SaysHello: ", address(saysGm));
|
console2.log("Deployed SaysHello: ", address(saysGm));
|
||||||
|
21
update.sh
21
update.sh
@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$#" -ne 2 ]; then
|
|
||||||
echo "Usage: $0 <wallet_address> <private_key>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
WALLET_ADDRESS=$1
|
|
||||||
PRIVATE_KEY=$2
|
|
||||||
|
|
||||||
# Список файлов
|
|
||||||
FILES=(
|
|
||||||
"./projects/hello-world/container/config.json"
|
|
||||||
"./projects/hello-world/contracts/Makefile"
|
|
||||||
)
|
|
||||||
|
|
||||||
for FILE in "${FILES[@]}"; do
|
|
||||||
EXPANDED_FILE=$(eval echo "$FILE")
|
|
||||||
sed -i "s/###WALLET_ADDRESS###/$WALLET_ADDRESS/g" "$EXPANDED_FILE"
|
|
||||||
sed -i "s/###PRIVATE_KEY###/$PRIVATE_KEY/g" "$EXPANDED_FILE"
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user