Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ jobs:
echo "✓ Anvil ready"
yarn deploy

- name: Start Ponder indexer
env:
PONDER_NETWORK: hardhat
PONDER_RPC_URL_31337: http://127.0.0.1:8545
run: yarn ponder:dev &

- name: Build Next.js
env:
RATELOOP_E2E_PRODUCTION_BUILD: "true"
Expand All @@ -137,6 +131,14 @@ jobs:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: 3a8170812b534d0ff9d794f19a901d64
run: yarn workspace @rateloop/nextjs build

- name: Start Ponder indexer
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/rateloop_app
RATELOOP_PONDER_DATABASE_SCHEMA: rateloop_ponder_ci
PONDER_NETWORK: hardhat
PONDER_RPC_URL_31337: http://127.0.0.1:8545
run: yarn workspace @rateloop/ponder start:built-contracts --port 42069 &

- name: Start Next.js (production)
env:
RATELOOP_E2E_PRODUCTION_BUILD: "true"
Expand All @@ -155,7 +157,7 @@ jobs:
echo "✓ Next.js ready"

# Wait for Ponder
timeout 120 bash -c 'until curl -sf http://127.0.0.1:42069/status > /dev/null 2>&1; do sleep 2; done'
timeout 300 bash -c 'until curl -sf http://127.0.0.1:42069/status > /dev/null 2>&1; do sleep 2; done'
echo "✓ Ponder ready"

- name: Warm critical Next.js routes
Expand Down Expand Up @@ -280,12 +282,6 @@ jobs:
echo "✓ Anvil ready"
yarn deploy

- name: Start Ponder indexer
env:
PONDER_NETWORK: hardhat
PONDER_RPC_URL_31337: http://127.0.0.1:8545
run: yarn ponder:dev &

- name: Build Next.js
env:
RATELOOP_E2E_PRODUCTION_BUILD: "true"
Expand All @@ -297,6 +293,14 @@ jobs:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: 3a8170812b534d0ff9d794f19a901d64
run: yarn workspace @rateloop/nextjs build

- name: Start Ponder indexer
env:
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/rateloop_app
RATELOOP_PONDER_DATABASE_SCHEMA: rateloop_ponder_ci
PONDER_NETWORK: hardhat
PONDER_RPC_URL_31337: http://127.0.0.1:8545
run: yarn workspace @rateloop/ponder start:built-contracts --port 42069 &

- name: Start Next.js (production)
env:
RATELOOP_E2E_PRODUCTION_BUILD: "true"
Expand All @@ -315,7 +319,7 @@ jobs:
echo "✓ Next.js ready"

# Wait for Ponder
timeout 120 bash -c 'until curl -sf http://127.0.0.1:42069/status > /dev/null 2>&1; do sleep 2; done'
timeout 300 bash -c 'until curl -sf http://127.0.0.1:42069/status > /dev/null 2>&1; do sleep 2; done'
echo "✓ Ponder ready"

- name: Warm critical Next.js routes
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"chain": "yarn foundry:chain",
"compile": "yarn foundry:compile",
"deploy": "yarn workspace @rateloop/foundry deploy",
"build:workspace-deps": "yarn workspace @rateloop/contracts build && yarn workspace @rateloop/sdk build && yarn workspace @rateloop/agents build",
"dead-code": "yarn dead-code:scan",
"dead-code:scan": "knip --no-progress --no-exit-code",
"dev:db": "node scripts/dev-db.mjs up",
Expand Down Expand Up @@ -77,7 +78,7 @@
"ponder:check-types": "yarn workspace @rateloop/ponder check-types",
"agents:ask": "yarn workspace @rateloop/agents ask",
"agents:check-types": "yarn workspace @rateloop/agents check-types",
"agents:lint": "yarn workspace @rateloop/agents lint:questions",
"agents:lint": "yarn build:workspace-deps && yarn workspace @rateloop/agents lint:questions",
"agents:quote": "yarn workspace @rateloop/agents quote",
"agents:result": "yarn workspace @rateloop/agents result",
"agents:sandbox": "yarn workspace @rateloop/agents sandbox",
Expand All @@ -94,7 +95,7 @@
"e2e:ci:app": "yarn workspace @rateloop/nextjs e2e:ci:app",
"e2e:ci:full": "yarn workspace @rateloop/nextjs e2e:ci:full",
"e2e:ui": "yarn workspace @rateloop/nextjs e2e:ui",
"test:ts": "yarn contracts:check-types && yarn node-utils:check-types && yarn sdk:check-types && yarn ponder:check-types && yarn agents:check-types && yarn keeper:check-types && yarn test:node && yarn contracts:test && yarn node-utils:test && yarn sdk:test && yarn next:test && yarn workspace @rateloop/keeper test && yarn workspace @rateloop/agents test && yarn workspace @rateloop/ponder test"
"test:ts": "yarn build:workspace-deps && yarn contracts:check-types && yarn node-utils:check-types && yarn sdk:check-types && yarn ponder:check-types && yarn agents:check-types && yarn keeper:check-types && yarn test:node && yarn contracts:test && yarn node-utils:test && yarn sdk:test && yarn next:test && yarn workspace @rateloop/keeper test && yarn workspace @rateloop/agents test && yarn workspace @rateloop/ponder test"
},
"devDependencies": {
"husky": "~9.1.6",
Expand Down
185 changes: 56 additions & 129 deletions packages/contracts/src/abis/RoundVotingEngineAbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,25 +512,6 @@ export const RoundVotingEngineAbi = [
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleAdmin",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "getRoundCommitKey",
Expand Down Expand Up @@ -560,24 +541,6 @@ export const RoundVotingEngineAbi = [
],
"stateMutability": "view"
},
{
"type": "function",
"name": "grantRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "hasCommits",
Expand Down Expand Up @@ -910,24 +873,6 @@ export const RoundVotingEngineAbi = [
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "callerConfirmation",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "replayBundleObserverNotify",
Expand Down Expand Up @@ -1024,24 +969,6 @@ export const RoundVotingEngineAbi = [
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revokeRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "rewardDistributorConfigShape",
Expand Down Expand Up @@ -1628,62 +1555,6 @@ export const RoundVotingEngineAbi = [
],
"anonymous": false
},
{
"type": "event",
"name": "SettlementCallerIncentivePaid",
"inputs": [
{
"name": "contentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "roundId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SettlementCallerIncentiveSkipped",
"inputs": [
{
"name": "contentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "roundId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RbtsVoteRevealed",
Expand Down Expand Up @@ -1958,6 +1829,62 @@ export const RoundVotingEngineAbi = [
],
"anonymous": false
},
{
"type": "event",
"name": "SettlementCallerIncentivePaid",
"inputs": [
{
"name": "contentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "roundId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "caller",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SettlementCallerIncentiveSkipped",
"inputs": [
{
"name": "contentId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "roundId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TreasuryFeeDistributed",
Expand Down
Loading
Loading