Compare commits
	
		
			5 Commits
		
	
	
		
			ba94d1563d
			...
			19825d5561
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 19825d5561 | |||
| f6bcbb181e | |||
| 1fc54cf829 | |||
| d2ae25aaed | |||
| 261871db75 | 
| @ -6,13 +6,17 @@ | |||||||
|     "chain": { |     "chain": { | ||||||
|         "enabled": true, |         "enabled": true, | ||||||
|         "trail_head_blocks": 0, |         "trail_head_blocks": 0, | ||||||
|         "rpc_url": "http://host.docker.internal:8545", |         "rpc_url": "https://base-rpc.publicnode.com", | ||||||
|         "registry_address": "0x663F3ad617193148711d28f5334eE4Ed07016602", |         "registry_address": "0x8D871Ef2826ac9001fB2e33fDD6379b6aaBF449c", | ||||||
|         "wallet": { |         "wallet": { | ||||||
|             "max_gas_limit": 4000000, |             "max_gas_limit": 4000000, | ||||||
|             "private_key": "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" |             "private_key": "###PRIVATE_KEY###" | ||||||
|         } |         } | ||||||
|     }, |     }, | ||||||
|  |     "snapshot_sync": { | ||||||
|  |         "sleep": 5, | ||||||
|  |         "batch_size": 100 | ||||||
|  |     }, | ||||||
|     "startup_wait": 1.0, |     "startup_wait": 1.0, | ||||||
|     "docker": { |     "docker": { | ||||||
|         "username": "your-username", |         "username": "your-username", | ||||||
| @ -34,7 +38,7 @@ | |||||||
|             "external": true, |             "external": true, | ||||||
|             "port": "3000", |             "port": "3000", | ||||||
|             "allowed_delegate_addresses": [], |             "allowed_delegate_addresses": [], | ||||||
|             "allowed_addresses": [], |             "allowed_addresses": ["###WALLET_ADDRESS###"], | ||||||
|             "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 := 0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a | sender := ###PRIVATE_KEY### | ||||||
| RPC_URL := http://localhost:8545 | RPC_URL :=  https://base-rpc.publicnode.com | ||||||
|  |  | ||||||
| # 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 = 0x663F3ad617193148711d28f5334eE4Ed07016602; |         address registry = 0x8D871Ef2826ac9001fB2e33fDD6379b6aaBF449c; | ||||||
|         // 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
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								update.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | |||||||
|  | #!/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 | ||||||
		Reference in New Issue
	
	Block a user
	