Skip to content

Commit

Permalink
new sepolia deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Sep 13, 2024
1 parent 1941972 commit 3df670c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions configs/sepolia-contracts.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"usernameStore": "0x073128a9f7b38d2bcdb6c1f9ef4fea357de4dfe2fab5832c1e7b51e9aae97c51",
"artPeace": "0x04d88b27976e74363163d97d6eb4505007c102b7c7cdb8b7bac5ea75fec6e998",
"canvasNFT": "0x040d7f7a6ec27d8ffc9e993ac9b307007356c3b3c6d5b12717953659ccd3df51",
"usernameStore": "0x051cf8214d781f5ee503cb668505e58f0374bfd602145560ba1b897eb98f2e1a",
"artPeace": "0x06fde2e43914b859e7e554585d3bc0dbf93d3b0187096a7bdb2c4fe1d4e1547d",
"canvasNFT": "0x01adf4e09484800190e50e597df40a94611c2c8a2277f536e448f0c0dc82930f",

"pixelQuest": "0x0715004f8805f938b1d42b0bce12a9b1dc49ec55bb2c401ea9c4695461960576"
}
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function App() {

const updateInterval = 1000; // 1 second
// TODO: make this a config
const timeBetweenPlacements = 120000; // 2 minutes
const timeBetweenPlacements = 30000; // 30 seconds
const [basePixelTimer, setBasePixelTimer] = useState('XX:XX');
useEffect(() => {
const updateBasePixelTimer = () => {
Expand Down
2 changes: 1 addition & 1 deletion infra/art-peace-infra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: Helm charts for the art/peace infrastructure

type: application
version: 0.1.0
appVersion: "v1.0.0"
appVersion: "v1.1.0"
10 changes: 5 additions & 5 deletions infra/art-peace-infra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ apibara:
authToken: dna_aabbcc

contracts:
artPeace: 0x0384e5fa826e1151715dbc3df0bd1b3aaec234dfc344394d02c39b670e354c48
usernameStore: 0x03d9ac2a08d83dcbcf7a05358dd77e05d2b094d3c13232611fe86ee957c34d02
nft: 0x009835b97a6756aca76edfd603aacb386d81fc5c34148912a306e9c22a61b748
host: "05bd7adfe8afaa58300adc72bf5584b191e236987fe16a217b1a3e067869a0aa"
end: "1720776600"
artPeace: 0x06fde2e43914b859e7e554585d3bc0dbf93d3b0187096a7bdb2c4fe1d4e1547d
usernameStore: 0x051cf8214d781f5ee503cb668505e58f0374bfd602145560ba1b897eb98f2e1a
nft: 0x01adf4e09484800190e50e597df40a94611c2c8a2277f536e448f0c0dc82930f
host: "07C313Ea8b45044c2272B77eC7332B65bdFef089c4De0FFfaB3De3FD6b85d124"
end: "1727483400"
2 changes: 1 addition & 1 deletion onchain/src/art_peace.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ pub mod ArtPeace {
let block_timestamp = starknet::get_block_timestamp();
// TODO: To config?
let leanience_margin = 20; // 20 seconds
let expected_block_time = 6 * 60; // 6 minutes
let expected_block_time = 30; // 30 seconds
assert(now >= block_timestamp - leanience_margin, 'Timestamp too far behind');
assert(now <= block_timestamp + 2 * expected_block_time, 'Timestamp too far ahead');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/docker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CANVAS_CONFIG=$WORK_DIR/configs/canvas.config.json
QUESTS_CONFIG=$WORK_DIR/configs/quests.config.json
WIDTH=$(jq -r '.canvas.width' $CANVAS_CONFIG)
HEIGHT=$(jq -r '.canvas.height' $CANVAS_CONFIG)
PLACE_DELAY=120
PLACE_DELAY=30
COLOR_COUNT=$(jq -r '.colors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
COLORS=$(jq -r '.colors[]' $CANVAS_CONFIG | sed 's/^/0x/')
VOTABLE_COLOR_COUNT=$(jq -r '.votableColors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/docker/update_devnet.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

# Start a new block every 6 minutes
# Start a new block every 30 seconds
echo "Starting the block producer"

INTERVAL=360
INTERVAL=30

while true
do
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/mainnet/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ QUESTS_CONFIG=$PROJECT_ROOT/configs/production-quests.config.json
ACCOUNT_ADDRESS=$(cat $STARKNET_ACCOUNT | jq -r '.deployment.address')
WIDTH=$(jq -r '.canvas.width' $CANVAS_CONFIG)
HEIGHT=$(jq -r '.canvas.height' $CANVAS_CONFIG)
PLACE_DELAY=0x78
PLACE_DELAY=0x1E
COLOR_COUNT=$(jq -r '.colors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
COLORS=$(jq -r '.colors[]' $CANVAS_CONFIG | sed 's/^/0x/')
VOTABLE_COLOR_COUNT=$(jq -r '.votableColors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/sepolia/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ QUESTS_CONFIG=$PROJECT_ROOT/configs/production-quests.config.json
ACCOUNT_ADDRESS=$(cat $STARKNET_ACCOUNT | jq -r '.deployment.address')
WIDTH=$(jq -r '.canvas.width' $CANVAS_CONFIG)
HEIGHT=$(jq -r '.canvas.height' $CANVAS_CONFIG)
PLACE_DELAY=0x78
PLACE_DELAY=0x1E
COLOR_COUNT=$(jq -r '.colors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
COLORS=$(jq -r '.colors[]' $CANVAS_CONFIG | sed 's/^/0x/')
VOTABLE_COLOR_COUNT=$(jq -r '.votableColors[]' $CANVAS_CONFIG | wc -l | tr -d ' ')
VOTABLE_COLORS=$(jq -r '.votableColors[]' $CANVAS_CONFIG | sed 's/^/0x/')
DAILY_NEW_COLORS_COUNT=3
START_TIME=1720399517
END_TIME=1721399517
START_TIME=1726192577
END_TIME=1727483400
DEVNET_MODE=0

DAILY_QUESTS_COUNT=$(jq -r '.daily.dailyQuestsCount' $QUESTS_CONFIG)
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/sepolia/deploy_quests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ elif [ -z "$STARKNET_ACCOUNT" ]; then
exit 1
fi

ART_PEACE_CONTRACT_ADDRESS=0x04d88b27976e74363163d97d6eb4505007c102b7c7cdb8b7bac5ea75fec6e998
CANVAS_NFT_CONTRACT=0x040d7f7a6ec27d8ffc9e993ac9b307007356c3b3c6d5b12717953659ccd3df51
USERNAME_STORE_CONTRACT=0x073128a9f7b38d2bcdb6c1f9ef4fea357de4dfe2fab5832c1e7b51e9aae97c51
ART_PEACE_CONTRACT_ADDRESS=0x06fde2e43914b859e7e554585d3bc0dbf93d3b0187096a7bdb2c4fe1d4e1547d
CANVAS_NFT_CONTRACT=0x01adf4e09484800190e50e597df40a94611c2c8a2277f536e448f0c0dc82930f
USERNAME_STORE_CONTRACT=0x051cf8214d781f5ee503cb668505e58f0374bfd602145560ba1b897eb98f2e1a

CONTRACT_DIR=$WORK_DIR/onchain

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/sepolia/setup_factions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ elif [ -z "$STARKNET_ACCOUNT" ]; then
exit 1
fi

ART_PEACE_CONTRACT_ADDRESS=0x04d88b27976e74363163d97d6eb4505007c102b7c7cdb8b7bac5ea75fec6e998
ART_PEACE_CONTRACT_ADDRESS=0x06fde2e43914b859e7e554585d3bc0dbf93d3b0187096a7bdb2c4fe1d4e1547d

FACTIONS_CONFIG_FILE=$WORK_DIR/configs/factions.config.json

Expand Down

0 comments on commit 3df670c

Please sign in to comment.