licaomeng commited on
Commit
88d2f2a
·
0 Parent(s):

deploy: main@8970ffb → HF Spaces (2026-05-27T05:19Z)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .dockerignore +58 -0
  2. .env.example +172 -0
  3. .github/COMMERCIAL_LICENSE_INQUIRY.md +40 -0
  4. .gitignore +89 -0
  5. .pre-commit-config.yaml +16 -0
  6. Dockerfile +142 -0
  7. LICENSE +74 -0
  8. LICENSING.md +56 -0
  9. NOTICE.md +24 -0
  10. README.md +60 -0
  11. conftest.py +14 -0
  12. contracts/.git.deploy-tmp/HEAD +1 -0
  13. contracts/.git.deploy-tmp/config +10 -0
  14. contracts/.git.deploy-tmp/description +1 -0
  15. contracts/.git.deploy-tmp/hooks/applypatch-msg.sample +15 -0
  16. contracts/.git.deploy-tmp/hooks/commit-msg.sample +24 -0
  17. contracts/.git.deploy-tmp/hooks/fsmonitor-watchman.sample +174 -0
  18. contracts/.git.deploy-tmp/hooks/post-update.sample +8 -0
  19. contracts/.git.deploy-tmp/hooks/pre-applypatch.sample +14 -0
  20. contracts/.git.deploy-tmp/hooks/pre-commit.sample +49 -0
  21. contracts/.git.deploy-tmp/hooks/pre-merge-commit.sample +13 -0
  22. contracts/.git.deploy-tmp/hooks/pre-push.sample +53 -0
  23. contracts/.git.deploy-tmp/hooks/pre-rebase.sample +169 -0
  24. contracts/.git.deploy-tmp/hooks/pre-receive.sample +24 -0
  25. contracts/.git.deploy-tmp/hooks/prepare-commit-msg.sample +42 -0
  26. contracts/.git.deploy-tmp/hooks/push-to-checkout.sample +78 -0
  27. contracts/.git.deploy-tmp/hooks/sendemail-validate.sample +77 -0
  28. contracts/.git.deploy-tmp/hooks/update.sample +128 -0
  29. contracts/.git.deploy-tmp/index +0 -0
  30. contracts/.git.deploy-tmp/info/exclude +6 -0
  31. contracts/.git.deploy-tmp/objects/14/0ea9eed12de6597b846d5ed3fc2aa71ec683a8 +0 -0
  32. contracts/.gitignore +17 -0
  33. contracts/.gitmodules +3 -0
  34. contracts/LICENSE +9 -0
  35. contracts/README.md +66 -0
  36. contracts/foundry.lock +8 -0
  37. contracts/foundry.toml +6 -0
  38. contracts/out/Base.sol/CommonBase.json +1 -0
  39. contracts/out/Base.sol/ScriptBase.json +1 -0
  40. contracts/out/Base.sol/TestBase.json +1 -0
  41. contracts/out/BuilderFeeRouter.sol/BuilderFeeRouter.json +1 -0
  42. contracts/out/BuilderFeeRouter.sol/IERC20.json +1 -0
  43. contracts/out/BuilderFeeRouter.sol/IReputationRegistry.json +1 -0
  44. contracts/out/Fuzz.t.sol/FuzzTests.json +0 -0
  45. contracts/out/IMulticall3.sol/IMulticall3.json +1 -0
  46. contracts/out/Invariants.t.sol/AuctionHandler.json +0 -0
  47. contracts/out/Invariants.t.sol/InvariantsTest.json +0 -0
  48. contracts/out/JudgePanel.sol/IERC20.json +1 -0
  49. contracts/out/JudgePanel.sol/JudgePanel.json +1 -0
  50. contracts/out/Math.sol/Math.json +1 -0
.dockerignore ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # W23 — keep the Docker build context lean. Without this file the COPY
2
+ # instructions would pull in 173-package venvs, multi-GB log directories,
3
+ # and the existing SQLite WAL files — none of which belong in the image.
4
+
5
+ # Python
6
+ .venv/
7
+ **/__pycache__/
8
+ **/*.pyc
9
+ **/*.pyo
10
+ .pytest_cache/
11
+ .mypy_cache/
12
+ .coverage
13
+ htmlcov/
14
+
15
+ # Node — stage 1 reinstalls from the lockfile, so the host node_modules
16
+ # would only slow the COPY down (and risk arch mismatch on Apple Silicon).
17
+ ui/node_modules/
18
+ ui/.next/
19
+ ui/out/
20
+
21
+ # Local dev / runtime artifacts
22
+ .env
23
+ .env.local
24
+ .env.*.local
25
+ logs/
26
+ outputs/
27
+ screenshots/
28
+ submission/
29
+ *.log
30
+
31
+ # DB (we re-seed inside the build via init_db / ingest_few_shots)
32
+ polyglot_alpha.db
33
+ polyglot_alpha.db-shm
34
+ polyglot_alpha.db-wal
35
+
36
+ # Git / IDE
37
+ .git/
38
+ .github/
39
+ .idea/
40
+ .vscode/
41
+
42
+ # Tests are not needed in the production image
43
+ tests/
44
+
45
+ # Build artifacts from Foundry that aren't shipped to runtime
46
+ contracts/cache/
47
+ contracts/lib/
48
+ contracts/broadcast/
49
+
50
+ # Top-level corpus dir (1.2 GB of polymarket dumps + faiss index) — the
51
+ # mock-only deploy doesn't reach the RAG path, so omit the bulk.
52
+ corpus/
53
+
54
+ # Misc large-ish artifacts that shouldn't ship
55
+ *.faiss
56
+ *.parquet
57
+ *.csv
58
+
.env.example ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================================================
2
+ # PolyglotAlpha — Environment Variables (open-source template)
3
+ # ============================================================
4
+ # Copy this file to `.env` and replace placeholders with real values.
5
+ # `.env` is gitignored; never commit real keys.
6
+ #
7
+ # Legend: REQUIRED = backend will not work without it
8
+ # OPTIONAL = sensible default applied if unset
9
+
10
+ # ============================================================
11
+ # LLM Provider (currently Anthropic — see README "Swap provider")
12
+ # ============================================================
13
+ ANTHROPIC_API_KEY=your-anthropic-key-here # REQUIRED. https://console.anthropic.com/
14
+ LLM_BACKEND=anthropic # OPTIONAL. Default: anthropic. Future: openai (see README).
15
+ ANTHROPIC_MAX_CONCURRENCY=5 # OPTIONAL. Concurrent semaphore. Default: 5.
16
+ ANTHROPIC_TIMEOUT_MULTIPLIER=1.0 # OPTIONAL. Boost timeouts under load.
17
+ SYNTHESIZER_MODEL= # OPTIONAL. Legacy override; superseded by MODEL_SYNTHESIZER below.
18
+
19
+ # ============================================================
20
+ # Model versions per role (single source of truth — polyglot_alpha/models.py)
21
+ # ============================================================
22
+ # All model snapshots are externalized so ops can pin per environment without
23
+ # touching code. Two base snapshots feed every per-role assignment below; set
24
+ # a per-role var to override one stage independently. To swap providers
25
+ # entirely (e.g. OpenAI), write a new factory in polyglot_alpha/llm.py and
26
+ # point MODEL_HAIKU / MODEL_SONNET at the target snapshots — no source edits.
27
+ MODEL_HAIKU=claude-haiku-4-5-20251001 # OPTIONAL. Cheap workhorse snapshot. Default shown.
28
+ MODEL_SONNET=claude-sonnet-4-5-20250929 # OPTIONAL. Strong-reasoning snapshot. Default shown.
29
+ MODEL_TRANSLATOR= # OPTIONAL. Defaults to MODEL_HAIKU.
30
+ MODEL_CRITIC= # OPTIONAL. Defaults to MODEL_HAIKU.
31
+ MODEL_MODERATOR= # OPTIONAL. Defaults to MODEL_SONNET.
32
+ MODEL_REFINE= # OPTIONAL. Defaults to MODEL_HAIKU.
33
+ MODEL_SYNTHESIZER= # OPTIONAL. Defaults to MODEL_HAIKU.
34
+ MODEL_MQM_JUDGE= # OPTIONAL. Defaults to MODEL_HAIKU.
35
+ MODEL_STYLE_JUDGE= # OPTIONAL. Defaults to MODEL_HAIKU.
36
+ MODEL_NEWS_SCORER= # OPTIONAL. Defaults to MODEL_HAIKU.
37
+
38
+ # ============================================================
39
+ # Arc Testnet (chain ID 5042002, https://testnet.arcscan.app)
40
+ # ============================================================
41
+ ARC_TESTNET_RPC=https://rpc.testnet.arc.network # OPTIONAL. Default shown.
42
+ ARC_CHAIN_ID=5042002 # OPTIONAL. Default: 5042002.
43
+
44
+ # ------------------------------------------------------------
45
+ # Deployed contracts (the demo uses our already-deployed instances —
46
+ # fork/redeploy with `./scripts/deploy_arc.sh` if you want your own)
47
+ # ------------------------------------------------------------
48
+ TRANSLATION_AUCTION_ADDRESS=0xE046Ea8478855A653bAdc9Fbd12ae4B8A429907a # OPTIONAL.
49
+ QUESTION_REGISTRY_ADDRESS=0x9b7D81064E76E6E70e238A6EA361A9E2da2a81B1 # OPTIONAL.
50
+ BUILDER_FEE_ROUTER_ADDRESS=0xcE7596d9b21333Eae441E912699514F6fBD150e5 # OPTIONAL.
51
+ REPUTATION_REGISTRY_ADDRESS=0x00267FD2FFabDDB48bBF16e3a91C15DE260eF9F1 # OPTIONAL.
52
+ REPUTATION_REGISTRY_V2_ADDRESS= # OPTIONAL. Set after running scripts/deploy_reputation_registry_v2.py --confirm.
53
+ # v2 fixes the W14-C β unit-scale bug (USDC 6-dec rescaled to 1e18 before ln)
54
+ # plus the α init bug (initial score 1.0 -> 0.5). v1 above remains live until
55
+ # cutover; v2 deployment is pending user approval.
56
+ JUDGE_PANEL_ADDRESS=0x1eE7BADc48b52B36e086adb4a98E00cbff4efd9a # OPTIONAL.
57
+ ARC_TESTNET_USDC_ADDRESS=0x477fC4C3DcC87C3Ceb13adc931F6bBeDAcCa391D # OPTIONAL.
58
+
59
+ # ============================================================
60
+ # Wallets — generate fresh, NEVER commit real keys
61
+ # Generate with: `cast wallet new` (foundry) or any web3 wallet.
62
+ # Fund with Arc testnet faucet + ~100 USDC for anti-Sybil stake.
63
+ # ============================================================
64
+ HACKATHON_WALLET_ADDRESS=0x0000000000000000000000000000000000000001 # REQUIRED. Operator wallet pubkey.
65
+ HACKATHON_WALLET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001 # REQUIRED. Operator wallet privkey.
66
+ OPERATOR_WALLET_PRIVATE_KEY= # OPTIONAL. Defaults to HACKATHON_WALLET_PRIVATE_KEY.
67
+ PLATFORM_TREASURY_ADDRESS= # OPTIONAL. Default: operator wallet (HACKATHON_WALLET_ADDRESS).
68
+
69
+ # ------------------------------------------------------------
70
+ # Seeder agent wallets (3 reference agents — Alpha, Bravo, Charlie)
71
+ # Each must be funded via `scripts/faucet_agents.py` (legacy slot names)
72
+ # or `scripts/fund_seeder_wallets_v2.py` (current "-v2" rotation) before
73
+ # lifecycle runs.
74
+ #
75
+ # Convention: <SLOT_NAME_UPPER>_WALLET_PRIVATE_KEY with hyphens normalised
76
+ # to underscores. Wallets are derived deterministically from the operator
77
+ # PK by default (sha256(operator_pk + ":" + slot_name)) so these are
78
+ # optional; populate only if you want to override the derivation.
79
+ #
80
+ # AGENT-NAME ROTATION
81
+ # -------------------
82
+ # Seeder slots ship as the "-v2" rotation (gemini-v2 / deepseek-v2 /
83
+ # qwen-v2) because TranslationAuction's 0.7 reputation gate combined with
84
+ # the W14-C EMA decay bug means each wallet eventually drops below the
85
+ # gate and starts reverting on submitBid. To recover, rename the slots in
86
+ # polyglot_alpha/agents/wallets.py (AGENT_NAMES), agents/__init__.py
87
+ # (AGENT_REGISTRY), and orchestrator.py (agent_names tuple) — any new
88
+ # string derives a new wallet with reputation 1.0 — then run:
89
+ #
90
+ # .venv/bin/python scripts/fund_seeder_wallets_v2.py
91
+ #
92
+ # The script is idempotent (skips already-funded + already-registered
93
+ # wallets). See README "Recovering from the reputation gate".
94
+ # ------------------------------------------------------------
95
+ GEMINI_V2_WALLET_PRIVATE_KEY= # OPTIONAL. Seeder Alpha override (otherwise derived from operator PK).
96
+ DEEPSEEK_V2_WALLET_PRIVATE_KEY= # OPTIONAL. Seeder Bravo override.
97
+ QWEN_V2_WALLET_PRIVATE_KEY= # OPTIONAL. Seeder Charlie override.
98
+
99
+ # ============================================================
100
+ # Polymarket Builder (CCTP V2 + Gamma API submission)
101
+ # Register at https://polymarket.com/settings?tab=builder
102
+ # ============================================================
103
+ POLYMARKET_BUILDER_CODE= # REQUIRED for `real` mode. 32-byte builder code.
104
+ POLYMARKET_BUILDER_NAME=your-builder-name # OPTIONAL. Display name in builder dashboard.
105
+ POLYMARKET_BUILDER_ADDRESS=0x0000000000000000000000000000000000000003 # OPTIONAL. Builder fee recipient.
106
+ POLYMARKET_BUILDER_API_KEY= # REQUIRED for `real` mode.
107
+ POLYMARKET_BUILDER_API_SECRET= # REQUIRED for `real` mode.
108
+ POLYMARKET_BUILDER_API_PASSPHRASE= # REQUIRED for `real` mode.
109
+ POLYMARKET_MODE=dry_run # OPTIONAL. mock | dry_run | real. Default: dry_run.
110
+ POLYMARKET_REAL_QUALITY_GATE=0.80 # OPTIONAL. Min overall_score to allow real submission.
111
+ POLYMARKET_REAL_DAILY_LIMIT=5 # OPTIONAL. Per-process real-submission cap.
112
+
113
+ # ------------------------------------------------------------
114
+ # Polygon RPC — needed for fill indexer when POLYMARKET_MODE=real
115
+ # ------------------------------------------------------------
116
+ POLYGON_RPC=https://polygon-mainnet.g.alchemy.com/v2/your-alchemy-key # OPTIONAL. Alchemy or any Polygon RPC.
117
+ ALCHEMY_API_KEY=your-alchemy-key # OPTIONAL.
118
+ ALCHEMY_APP_ID= # OPTIONAL.
119
+ CTF_EXCHANGE_V2_ADDRESS= # OPTIONAL. Override CTF Exchange V2 address.
120
+
121
+ # ============================================================
122
+ # Orchestrator tuning (D5 perf profile)
123
+ # ============================================================
124
+ LIFECYCLE_MAX_CONCURRENCY=2 # OPTIONAL. Default 2 (FAISS+SBert cached). Drop to 1 if OOM-kill recurs.
125
+ AUCTION_WINDOW_SECONDS=60 # OPTIONAL. Auction open window. Default: 60s.
126
+ AUCTION_MODE= # OPTIONAL. real | mock. Default: real if mock_bids unset.
127
+ QUALITY_PASS_THRESHOLD=0.7 # OPTIONAL. Panel verdict gate. Default: 0.7.
128
+ PER_JUDGE_TIMEOUT_S=60 # OPTIONAL. Per-judge call timeout.
129
+ PER_JUDGE_TIMEOUT_RETRY_S=90 # OPTIONAL. Retry timeout for slow judges.
130
+ PANEL_TIMEOUT_SECONDS=120 # OPTIONAL. Full 11-judge panel timeout.
131
+ DEFAULT_STAKE_USDC=5.0 # OPTIONAL. Bid stake. Default: 5 USDC.
132
+ MIN_SEEDER_GAS_WEI=5500000000000000 # OPTIONAL. Min wei balance (default 0.0055 ETH) a seeder wallet must hold before the orchestrator will attempt submit_bid. Below threshold the agent is marked low_gas and skipped — the auction still settles on whichever seeders have gas. Set to 0 to disable the pre-flight check.
133
+
134
+ # ============================================================
135
+ # Persistence + transport
136
+ # ============================================================
137
+ DATABASE_URL=sqlite:///./polyglot_alpha.db # OPTIONAL. SQLite default; Postgres URL supported.
138
+ REDIS_URL= # OPTIONAL. Enables Redis pub/sub for SSE multi-process.
139
+ REDIS_CHANNEL=polyglot_alpha.events # OPTIONAL. Pub/sub channel name.
140
+ CORS_ORIGINS= # OPTIONAL. Comma-separated origins; defaults to localhost.
141
+ SKIP_AUTO_INGEST_FEW_SHOTS= # OPTIONAL. Set to true/1 to skip the startup few-shot exemplar auto-seed (when few_shot_exemplars is empty).
142
+
143
+ # ============================================================
144
+ # Optional IPFS pinning (Pinata or web3.storage)
145
+ # When neither is set, IPFS falls back to local-file storage.
146
+ # ============================================================
147
+ PINATA_JWT= # OPTIONAL. If set, candidates pinned to public IPFS.
148
+ W3S_TOKEN= # OPTIONAL. Fallback if Pinata unset.
149
+
150
+ # ───────────────────────────────────────────────
151
+ # Demo mode defaults
152
+ # ───────────────────────────────────────────────
153
+ # Mode used when /trigger/event request omits explicit "mode"
154
+ # Options: live | mock
155
+ DEFAULT_EVENT_MODE=live
156
+
157
+ # ============================================================
158
+ # Demo / debug toggles
159
+ # ============================================================
160
+ POLYGLOT_DEMO_MODE= # OPTIONAL. Truthy to expose judge weights via API.
161
+ POLYGLOT_BUILDER_REGISTRY_PATH= # OPTIONAL. Override builder registry JSON path.
162
+
163
+ # ============================================================
164
+ # D8 duplicate-detection model (SBert + FAISS)
165
+ # ============================================================
166
+ # D8 embeds the candidate title with sentence-transformers/all-MiniLM-L6-v2
167
+ # and queries corpus/polymarket_index.faiss (75,897 Polymarket markets).
168
+ # The model is ~90 MB and downloaded on first use from Hugging Face.
169
+ # When unavailable, D8 reports INSUFFICIENT_DATA (panelBudgetExceeded +
170
+ # softSkip) — it does NOT silently report PASS. See W13-D.
171
+ D8_PREWARM=true # OPTIONAL. Pre-load the SBert model on backend startup so the first event doesn't pay the ~60s cold load. Set to false in test envs that should skip the download.
172
+ HF_HOME= # OPTIONAL. Hugging Face cache root. Defaults to ~/.cache/huggingface. Set this to relocate the model cache (e.g. to a larger disk).
.github/COMMERCIAL_LICENSE_INQUIRY.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Commercial License Inquiry
3
+ about: Request a commercial license for PolyglotAlpha v2 beyond the BSL 1.1 free tier
4
+ title: "[Commercial] <Company name>"
5
+ labels: ["licensing", "commercial"]
6
+ ---
7
+
8
+ ## Company
9
+
10
+ - Legal name:
11
+ - Jurisdiction (country / state):
12
+ - Website:
13
+
14
+ ## Intended Use
15
+
16
+ - [ ] Production deployment of prediction market translation
17
+ - [ ] SaaS / hosted offering to third parties
18
+ - [ ] On-prem deployment for internal users
19
+ - [ ] Embedding in another product
20
+ - [ ] Custom evaluator (judges/) access under NDA
21
+ - [ ] Corpus license
22
+
23
+ ## Scale
24
+
25
+ - Estimated markets per calendar month:
26
+ - Estimated number of concurrent agents:
27
+ - Target regions:
28
+
29
+ ## Timeline
30
+
31
+ - Target signing date:
32
+ - Target production launch date:
33
+
34
+ ## Contact
35
+
36
+ - Primary contact name:
37
+ - Email:
38
+ - Preferred response channel (email / video call):
39
+
40
+ Please send a copy of this inquiry to `licaomeng@gmail.com`.
.gitignore ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ .pytest_cache/
8
+ .mypy_cache/
9
+ .ruff_cache/
10
+ *.egg-info/
11
+ .venv/
12
+
13
+ # Environment
14
+ .env
15
+ .env.local
16
+ .env.*.local
17
+ !.env.example
18
+
19
+ # Polyglot corpus artifacts — re-buildable, not version-controlled.
20
+ corpus/polymarket_questions.parquet
21
+ corpus/polymarket_index.faiss
22
+ corpus/index_meta.json
23
+ corpus/style_guide.md
24
+ corpus/few_shots.json
25
+ corpus/patterns_report.md
26
+ corpus/*.parquet
27
+ corpus/*.faiss
28
+ corpus/*.csv
29
+ corpus/*.jsonl
30
+
31
+ # Full Polymarket corpus (T6) — big files re-buildable from full_scraper.py.
32
+ # Keep stats JSONs, the 1000-row sample CSV, and full_summary.md in version control.
33
+ corpus/full/*.parquet
34
+ corpus/full/*.jsonl
35
+ corpus/full/polymarket_all_markets.csv
36
+ corpus/full/scrape.log
37
+
38
+ # Local dev DB
39
+ *.db
40
+ *.db-journal
41
+ *.db-shm
42
+ *.db-wal
43
+
44
+ # Logs / scratch
45
+ *.log
46
+ .scratch/
47
+
48
+ # Test coverage artifacts
49
+ .coverage
50
+ htmlcov/
51
+
52
+ # Perf benchmark outputs may contain API keys from 429 error URLs
53
+ outputs/perf_*.json
54
+ outputs/perf_resource.jsonl
55
+
56
+ # SQLite WAL/SHM (runtime garbage, recreated on backend boot)
57
+ *.db-wal
58
+ *.db-shm
59
+
60
+ # Screenshot artifacts — W4-W16 agent test snapshots, never read at runtime.
61
+ # Local copies stay; only stop tracking in git.
62
+ screenshots/
63
+ ui/screenshots/
64
+ outputs/*_screenshots/
65
+ outputs/loop_screenshots/
66
+
67
+ # Recording artifacts — videos live in agora-agents-hackathon, not here.
68
+ outputs/demo/
69
+ *.mp4
70
+ *.webm
71
+
72
+ # Audit/test dump artifacts — generated by W4-W16 testing waves and
73
+ # stress-test scripts. Local copies stay; not version-controlled.
74
+ # Excludes: MASTER_REPORT.md (kept), submission/* (kept), corpus/full/*summary.md (kept).
75
+ outputs/E1_stress_audit/
76
+ outputs/E2_stress_audit/
77
+ outputs/E3_stress_audit/
78
+ outputs/**/audit_event_*.json
79
+ outputs/**/audit_event_*.jsonl
80
+ outputs/**/*.jsonl
81
+ outputs/**/*_findings.md
82
+ outputs/**/*_audit.md
83
+ outputs/**/*_audit_summary.json
84
+ outputs/**/cost_log*.json
85
+ outputs/**/quality_scores*.json
86
+ outputs/**/weight_access_log*.json
87
+ outputs/**/backtest_*.json
88
+ outputs/**/loop_*.json
89
+ outputs/**/*-findings.md
.pre-commit-config.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ repos:
2
+ - repo: https://github.com/psf/black
3
+ rev: 24.4.2
4
+ hooks:
5
+ - id: black
6
+ language_version: python3.11
7
+ - repo: https://github.com/astral-sh/ruff-pre-commit
8
+ rev: v0.4.7
9
+ hooks:
10
+ - id: ruff
11
+ args: [--fix]
12
+ - repo: https://github.com/Yelp/detect-secrets
13
+ rev: v1.5.0
14
+ hooks:
15
+ - id: detect-secrets
16
+ args: ['--baseline', '.secrets.baseline']
Dockerfile ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # =============================================================================
2
+ # PolyglotAlpha — Hugging Face Spaces deploy image (W23, mock-only)
3
+ # =============================================================================
4
+ # Single container that ships the FastAPI backend + Next.js production build
5
+ # behind a tiny nginx reverse proxy on port 7860 (HF Spaces only exposes one
6
+ # port externally). DISABLE_LIVE is hard-set so reviewers can't trip an empty
7
+ # API key path; the W5 mock-mode fixtures drive the entire demo lifecycle.
8
+ # -----------------------------------------------------------------------------
9
+
10
+ # -----------------------------------------------------------------------------
11
+ # Stage 1: build the Next.js production bundle
12
+ # -----------------------------------------------------------------------------
13
+ FROM node:20-alpine AS ui-build
14
+ WORKDIR /app/ui
15
+
16
+ # Install deps. NOTE: the repo's `package-lock.json` was generated against
17
+ # Indeed's internal npm proxy (`npm.artifacts.indeed.tech`) and `npm ci`
18
+ # fails with E401 outside that VPN. We deliberately drop the lockfile and
19
+ # regenerate it against the public registry so the HF builder (which has
20
+ # no Indeed access) succeeds. For a mock-only demo the small version drift
21
+ # is acceptable; switch to `npm ci` once a clean public lockfile lands.
22
+ # Cold installs take 5-10 min (network bound on 537 MB of node_modules);
23
+ # layer caching makes incremental rebuilds <30 s as long as
24
+ # `ui/package.json` doesn't change.
25
+ COPY ui/package.json ./
26
+ RUN npm install --no-audit --no-fund \
27
+ --registry=https://registry.npmjs.org/ \
28
+ --legacy-peer-deps
29
+
30
+ # Copy the rest of the UI source and build. `NEXT_PUBLIC_DISABLE_LIVE` is
31
+ # inlined into the client bundle at build time, so this MUST be set here —
32
+ # changing it later via runtime env has no effect on the compiled JS.
33
+ COPY ui/ ./
34
+
35
+ # `next.config.mjs` AND `lib/api.ts` both hardcode a `|| "http://localhost:8000"`
36
+ # fallback for `NEXT_PUBLIC_API_BASE`, which would break in the browser when
37
+ # the page is served from huggingface.co (the fallback would point at the
38
+ # reviewer's own laptop, not the HF Space). Patch both to fall back to an
39
+ # empty string so api.ts produces same-origin URLs (`/events`,
40
+ # `/trigger/event`, ...) that nginx routes to uvicorn :8000.
41
+ # Use `,` as sed delimiter to avoid clashing with the JS `||` operator
42
+ # (using `|` here causes sed to see four separator chars in one expression).
43
+ RUN sed -i 's,http://localhost:8000,,g' next.config.mjs lib/api.ts
44
+
45
+ # IMPORTANT: nginx routes `/api/*` to FastAPI (stripping the `/api` prefix);
46
+ # everything else goes to Next.js. So all client-side fetches must be
47
+ # prefixed `/api/...` to hit the backend instead of being captured by
48
+ # the Next.js page router (which has its own `/events/[id]`, `/trigger`,
49
+ # `/operators`, etc. routes that would otherwise collide with the API).
50
+ ENV NEXT_PUBLIC_API_BASE=/api
51
+ ENV NEXT_PUBLIC_DISABLE_LIVE=true
52
+ ENV NODE_ENV=production
53
+ RUN npm run build
54
+
55
+ # -----------------------------------------------------------------------------
56
+ # Stage 2: runtime image
57
+ # -----------------------------------------------------------------------------
58
+ FROM python:3.12-slim AS runtime
59
+ WORKDIR /app
60
+
61
+ # System packages: nginx (reverse proxy), curl (entrypoint pre-seed), nodejs
62
+ # (Next.js `next start`). `ca-certificates` keeps outbound HTTPS happy if a
63
+ # reviewer pokes a live-mode endpoint we forgot to lock down.
64
+ RUN apt-get update && apt-get install -y --no-install-recommends \
65
+ nginx \
66
+ curl \
67
+ ca-certificates \
68
+ gnupg \
69
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
70
+ && apt-get install -y --no-install-recommends nodejs \
71
+ && apt-get clean \
72
+ && rm -rf /var/lib/apt/lists/*
73
+
74
+ # Backend Python deps — install BEFORE copying the app so layer cache survives
75
+ # a code edit. We use the pruned mock-only requirements (no torch / comet /
76
+ # sentence-transformers) so the HF builder doesn't OOM on the ML wheels.
77
+ COPY deploy/requirements-mock.txt /tmp/requirements-mock.txt
78
+ RUN pip install --no-cache-dir --upgrade pip \
79
+ && pip install --no-cache-dir -r /tmp/requirements-mock.txt
80
+
81
+ # Backend code. `pip install -e .` registers the package on the import path;
82
+ # pyproject.toml carries no `dependencies` so this is essentially `develop`
83
+ # mode without re-installing anything heavy.
84
+ COPY pyproject.toml ./
85
+ COPY polyglot_alpha/ ./polyglot_alpha/
86
+ COPY scripts/ ./scripts/
87
+ COPY contracts/out/ ./contracts/out/
88
+ # NOTE: the top-level `corpus/` directory (faiss index, polymarket dumps,
89
+ # 1.1 GB of training data) is intentionally NOT copied — it's only consumed
90
+ # by the live RAG / pattern-analysis paths which are dead code in
91
+ # DISABLE_LIVE mode. The bundled few-shot exemplars live in the
92
+ # `polyglot_alpha.corpus` PYTHON package and ship via the polyglot_alpha
93
+ # copy above.
94
+ RUN pip install --no-cache-dir --no-deps -e .
95
+
96
+ # Frontend artifact — copy the .next build + node_modules from stage 1. We
97
+ # pull node_modules whole because `next start` needs the runtime deps to
98
+ # resolve at request time (Next 15 + react-server bundling).
99
+ COPY --from=ui-build /app/ui/.next ./ui/.next
100
+ # Skip /app/ui/public — repo doesn't have one; Next.js handles missing dir fine.
101
+ COPY --from=ui-build /app/ui/package.json ./ui/package.json
102
+ COPY --from=ui-build /app/ui/node_modules ./ui/node_modules
103
+ COPY --from=ui-build /app/ui/next.config.mjs ./ui/next.config.mjs
104
+
105
+ # Pre-seed SQLite with empty tables + the few-shot exemplars so the first
106
+ # reviewer click doesn't hit an empty `events` / `few_shot_exemplars` table.
107
+ # `init_db()` is idempotent; the ingest script is too (skips on conflict).
108
+ RUN python -c "from polyglot_alpha.persistence import init_db; init_db()" \
109
+ && (python scripts/ingest_few_shots.py || true)
110
+
111
+ # Reverse-proxy + process supervisor configs.
112
+ COPY deploy/nginx.conf /etc/nginx/nginx.conf
113
+ COPY deploy/entrypoint.sh /usr/local/bin/entrypoint.sh
114
+ RUN chmod +x /usr/local/bin/entrypoint.sh
115
+
116
+ # Runtime env: lock the deploy to mock-only and keep concurrency tame so the
117
+ # 2 vCPU HF free tier doesn't thrash under a small audience.
118
+ ENV DISABLE_LIVE=true
119
+ ENV DEFAULT_EVENT_MODE=mock
120
+ ENV LLM_BACKEND=mock
121
+ # Dummy operator key so the judge_panel_client + chain modules pass their
122
+ # module-level import-time validation. Mock mode short-circuits BEFORE any
123
+ # real tx is sent, so this key is NEVER used to sign anything. We pick the
124
+ # secp256k1 generator-point private key (literally "1") which is publicly
125
+ # known — making it OBVIOUS to any auditor that this is a placeholder.
126
+ ENV HACKATHON_WALLET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000001
127
+ ENV ARC_TESTNET_RPC=https://rpc.testnet.arc.network
128
+ # Same fake-key idempotency for the seeder slot derivation
129
+ ENV ALPHA_WALLET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000002
130
+ ENV BRAVO_WALLET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000003
131
+ ENV CHARLIE_WALLET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000004
132
+ ENV LIFECYCLE_MAX_CONCURRENCY=2
133
+ ENV PYTHONUNBUFFERED=1
134
+ ENV PORT=7860
135
+ # DB lives next to the app by default. If HF persistent storage is enabled
136
+ # in the Space settings, the entrypoint moves the seeded DB to `/data` and
137
+ # overrides `DATABASE_URL` at boot so the events table survives sleeps.
138
+ ENV PYTHONDONTWRITEBYTECODE=1
139
+
140
+ EXPOSE 7860
141
+
142
+ CMD ["/usr/local/bin/entrypoint.sh"]
LICENSE ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
3
+
4
+ Parameters
5
+
6
+ Licensor: licaomeng (a developer pseudonym), licaomeng@gmail.com
7
+ Licensed Work: PolyglotAlpha v2
8
+ The Licensed Work is (c) 2026 licaomeng.
9
+ Additional Use Grant: You may make use of the Licensed Work for the following purposes:
10
+
11
+ 1. Non-production purposes, including development, testing,
12
+ evaluation, academic research, security audit, and personal
13
+ experimentation.
14
+ 2. Internal business operations not involving the production
15
+ deployment of prediction market translation services, capped
16
+ at 100 markets per calendar month.
17
+
18
+ Production deployment beyond the above threshold, or any
19
+ provision of the Licensed Work as part of a commercial service
20
+ offered to third parties, requires a separate commercial license
21
+ from the Licensor. Contact licaomeng@gmail.com to obtain a
22
+ commercial license.
23
+
24
+ Change Date: 2030-05-26
25
+
26
+ Change License: Apache License, Version 2.0
27
+
28
+ For information about alternative licensing arrangements for the Licensed Work,
29
+ please contact licaomeng@gmail.com.
30
+
31
+ Notice
32
+
33
+ Business Source License 1.1
34
+
35
+ Terms
36
+
37
+ The Licensor hereby grants you the right to copy, modify, create derivative
38
+ works, redistribute, and make non-production use of the Licensed Work. The
39
+ Licensor may make an Additional Use Grant, above, permitting limited production use.
40
+
41
+ Effective on the Change Date, or the fourth anniversary of the first publicly
42
+ available distribution of a specific version of the Licensed Work under this
43
+ License, whichever comes first, the Licensor hereby grants you rights under
44
+ the terms of the Change License, and the rights granted in the paragraph
45
+ above terminate.
46
+
47
+ If your use of the Licensed Work does not comply with the requirements
48
+ currently in effect as described in this License, you must purchase a
49
+ commercial license from the Licensor, its affiliated entities, or authorized
50
+ resellers, or you must refrain from using the Licensed Work.
51
+
52
+ All copies of the original and modified Licensed Work, and derivative works
53
+ of the Licensed Work, are subject to this License. This License applies
54
+ separately for each version of the Licensed Work and the Change Date may vary
55
+ for each version of the Licensed Work released by Licensor.
56
+
57
+ You must conspicuously display this License on each original or modified copy
58
+ of the Licensed Work. If you receive the Licensed Work in original or
59
+ modified form from a third party, the terms and conditions set forth in this
60
+ License apply to your use of that work.
61
+
62
+ Any use of the Licensed Work in violation of this License will automatically
63
+ terminate your rights under this License for the current and all other
64
+ versions of the Licensed Work.
65
+
66
+ This License does not grant you any right in any trademark or logo of
67
+ Licensor or its affiliates (provided that you may use a trademark or logo of
68
+ Licensor as expressly required by this License).
69
+
70
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
71
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
72
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
73
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
74
+ TITLE.
LICENSING.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Licensing
2
+
3
+ PolyglotAlpha v2 uses a tiered, source-available license model.
4
+
5
+ ## Why BSL 1.1
6
+
7
+ The Business Source License 1.1 keeps the backend and frontend source code public and inspectable while protecting commercial interests during the build-out phase. It is widely adopted (HashiCorp, MariaDB, CockroachDB, Sentry, Materialize) and converts automatically to a permissive OSI license after a fixed time window.
8
+
9
+ ## Free Tier (no fee, no contract)
10
+
11
+ - Development, testing, evaluation, benchmarking
12
+ - Academic research and publication
13
+ - Security audit and responsible disclosure
14
+ - Personal experimentation
15
+ - Internal business operations capped at **100 markets / calendar month**
16
+
17
+ ## Commercial Tiers
18
+
19
+ | Tier | Annual fee | Suitable for |
20
+ | --- | --- | --- |
21
+ | Startup | $10,000 / yr | Up to 1,000 markets / month, 1 production env |
22
+ | Growth | $50,000 / yr | Up to 25,000 markets / month, multi-region |
23
+ | Enterprise | Custom | Unlimited markets, SLA, dedicated support, on-prem |
24
+
25
+ Contact `licaomeng@gmail.com` to negotiate a commercial license.
26
+
27
+ ## Source-Available Components
28
+
29
+ The following subtrees are public and covered by BSL 1.1:
30
+
31
+ - `polyglot_alpha/` (Python backend) excluding proprietary marker directories
32
+ - `ui/` (frontend)
33
+ - `scripts/`, `tests/`, `corpus/` shared infrastructure
34
+
35
+ Smart contracts under `contracts/` are MIT-licensed for ecosystem reuse.
36
+
37
+ ## Proprietary Components (not in public repo)
38
+
39
+ These directories contain closed evaluator IP and are excluded from public distribution:
40
+
41
+ - `polyglot_alpha/judges/` - evaluator weights, anti-patterns, scoring rubrics
42
+ - `polyglot_alpha/corpus/` - proprietary corpus and gold references
43
+ - `polyglot_alpha/style_align/` - style alignment models
44
+
45
+ Any inadvertent appearance of these directories in a public mirror does not constitute a grant of license. Contact `licaomeng@gmail.com` for source access under NDA.
46
+
47
+ ## 4-Year Auto-Conversion
48
+
49
+ On **2030-05-26** (or four years after first public distribution, whichever is earlier), the Licensed Work converts to **Apache License, Version 2.0** for the version of the work released at that date.
50
+
51
+ ## Contact
52
+
53
+ - General and commercial licensing: `licaomeng@gmail.com`
54
+ - GitHub issue template: `.github/COMMERCIAL_LICENSE_INQUIRY.md`
55
+
56
+ > Note: Commercial entity (LLC) transition in progress. Until incorporation, licenses are issued by licaomeng as a natural person under the pseudonym above.
NOTICE.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTICE
2
+
3
+ Copyright (c) 2026 licaomeng. All rights reserved.
4
+
5
+ PolyglotAlpha v2 is distributed under the Business Source License 1.1.
6
+ See `LICENSE` at the repository root for the full text and parameters.
7
+
8
+ ## Third-party software
9
+
10
+ This project bundles or depends on third-party components. Each retains its
11
+ upstream license. Notable licenses include MIT, Apache-2.0, BSD-3-Clause, and
12
+ ISC. Refer to upstream package metadata (`pyproject.toml`, `ui/package.json`,
13
+ `contracts/foundry.toml` lib entries) for authoritative attribution.
14
+
15
+ ## Modifications
16
+
17
+ Modifications to upstream third-party code track the upstream license and are
18
+ recorded in `git log` and the per-vendor `NOTICE` or `LICENSE` files where
19
+ present.
20
+
21
+ ## Trademarks
22
+
23
+ "Business Source License" is a trademark of MariaDB Corporation Ab. This
24
+ project's use of BSL 1.1 does not imply endorsement by MariaDB.
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: PolyglotAlpha Demo
3
+ emoji: 🌍
4
+ colorFrom: blue
5
+ colorTo: pink
6
+ sdk: docker
7
+ app_port: 7860
8
+ suggested_hardware: cpu-basic
9
+ suggested_storage: small
10
+ pinned: false
11
+ license: other
12
+ short_description: Multilingual demo (mock-only) for Polymarket builders
13
+ ---
14
+
15
+ # PolyglotAlpha · α (Hugging Face Spaces demo)
16
+
17
+ > A multilingual translation auction marketplace that prices non-English
18
+ > news headlines into English binary questions, runs an 11-judge quality
19
+ > panel over the translation, and anchors the verdict on Arc testnet
20
+ > before submitting the question to Polymarket.
21
+
22
+ This Space is the **mock-only review build** — every lifecycle is driven by
23
+ 5 canned multi-language news clusters and deterministic seeder agents.
24
+ No API keys, no on-chain transactions, no Polymarket submissions. The
25
+ toggle between **LIVE** and **MOCK** is replaced with a static
26
+ `MOCK · demo mode` badge in the header.
27
+
28
+ ## What you can try
29
+
30
+ - **Trigger an event** — the big button on `/` fires a fresh lifecycle
31
+ every click. Watch the timeline animate through auction → translation →
32
+ judge panel → on-chain anchor → Polymarket dry-run in ~10–15 s.
33
+ - **Events** — `/events` lists every lifecycle. Click any row to drill into
34
+ the per-phase SSE timeline, the 11-judge breakdown, and the winning
35
+ agent's bid.
36
+ - **Leaderboard** — `/leaderboard` ranks the 4 reference agents by win-rate
37
+ and average reputation across the events you've triggered.
38
+ - **Operators** — `/operators` shows the staking + fee-claim flow per
39
+ agent address.
40
+
41
+ ## Limitations
42
+
43
+ - **No live mode** — `DISABLE_LIVE=true` is baked into the image. Any
44
+ attempt to trigger `mode=live` is silently rewritten server-side to
45
+ `mock` and the response carries `X-Live-Disabled: true`.
46
+ - **Mock-only judges** — the 11-judge panel (COMET, BLEU, MQM, D1–D8
47
+ style judges) is replaced with a deterministic 0.85 verdict. The full
48
+ ML stack (torch, unbabel-comet, sentence-transformers, ~3 GB) is
49
+ intentionally omitted from this image.
50
+ - **Sleeps after 48 h idle** — HF Spaces free tier. First visit after a
51
+ sleep wakes the container in ~10 s.
52
+
53
+ ## Source
54
+
55
+ - GitHub: <https://github.com/licaomeng/polyglot-alpha>
56
+ - Hackathon submission: <https://github.com/licaomeng/agora-agents-hackathon>
57
+
58
+ ## License
59
+
60
+ BUSL-1.1 — see `LICENSING.md` in the source repo.
conftest.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Top-level conftest that puts the project root on sys.path.
2
+
3
+ This avoids a `pip install -e .` requirement for the bare-bones venv
4
+ that ships with the repo. Pytest auto-discovers this file when invoked
5
+ from the project root.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import sys
10
+ from pathlib import Path
11
+
12
+ ROOT = Path(__file__).parent.resolve()
13
+ if str(ROOT) not in sys.path:
14
+ sys.path.insert(0, str(ROOT))
contracts/.git.deploy-tmp/HEAD ADDED
@@ -0,0 +1 @@
 
 
1
+ ref: refs/heads/master
contracts/.git.deploy-tmp/config ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ [core]
2
+ repositoryformatversion = 0
3
+ filemode = true
4
+ bare = false
5
+ logallrefupdates = true
6
+ ignorecase = true
7
+ precomposeunicode = true
8
+ [submodule "lib/openzeppelin-contracts"]
9
+ url = https://github.com/OpenZeppelin/openzeppelin-contracts
10
+ active = true
contracts/.git.deploy-tmp/description ADDED
@@ -0,0 +1 @@
 
 
1
+ Unnamed repository; edit this file 'description' to name the repository.
contracts/.git.deploy-tmp/hooks/applypatch-msg.sample ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message taken by
4
+ # applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit. The hook is
8
+ # allowed to edit the commit message file.
9
+ #
10
+ # To enable this hook, rename this file to "applypatch-msg".
11
+
12
+ . git-sh-setup
13
+ commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
14
+ test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
15
+ :
contracts/.git.deploy-tmp/hooks/commit-msg.sample ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message.
4
+ # Called by "git commit" with one argument, the name of the file
5
+ # that has the commit message. The hook should exit with non-zero
6
+ # status after issuing an appropriate message if it wants to stop the
7
+ # commit. The hook is allowed to edit the commit message file.
8
+ #
9
+ # To enable this hook, rename this file to "commit-msg".
10
+
11
+ # Uncomment the below to add a Signed-off-by line to the message.
12
+ # Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13
+ # hook is more suited to it.
14
+ #
15
+ # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16
+ # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17
+
18
+ # This example catches duplicate Signed-off-by lines.
19
+
20
+ test "" = "$(grep '^Signed-off-by: ' "$1" |
21
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22
+ echo >&2 Duplicate Signed-off-by lines.
23
+ exit 1
24
+ }
contracts/.git.deploy-tmp/hooks/fsmonitor-watchman.sample ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/perl
2
+
3
+ use strict;
4
+ use warnings;
5
+ use IPC::Open2;
6
+
7
+ # An example hook script to integrate Watchman
8
+ # (https://facebook.github.io/watchman/) with git to speed up detecting
9
+ # new and modified files.
10
+ #
11
+ # The hook is passed a version (currently 2) and last update token
12
+ # formatted as a string and outputs to stdout a new update token and
13
+ # all files that have been modified since the update token. Paths must
14
+ # be relative to the root of the working tree and separated by a single NUL.
15
+ #
16
+ # To enable this hook, rename this file to "query-watchman" and set
17
+ # 'git config core.fsmonitor .git/hooks/query-watchman'
18
+ #
19
+ my ($version, $last_update_token) = @ARGV;
20
+
21
+ # Uncomment for debugging
22
+ # print STDERR "$0 $version $last_update_token\n";
23
+
24
+ # Check the hook interface version
25
+ if ($version ne 2) {
26
+ die "Unsupported query-fsmonitor hook version '$version'.\n" .
27
+ "Falling back to scanning...\n";
28
+ }
29
+
30
+ my $git_work_tree = get_working_dir();
31
+
32
+ my $retry = 1;
33
+
34
+ my $json_pkg;
35
+ eval {
36
+ require JSON::XS;
37
+ $json_pkg = "JSON::XS";
38
+ 1;
39
+ } or do {
40
+ require JSON::PP;
41
+ $json_pkg = "JSON::PP";
42
+ };
43
+
44
+ launch_watchman();
45
+
46
+ sub launch_watchman {
47
+ my $o = watchman_query();
48
+ if (is_work_tree_watched($o)) {
49
+ output_result($o->{clock}, @{$o->{files}});
50
+ }
51
+ }
52
+
53
+ sub output_result {
54
+ my ($clockid, @files) = @_;
55
+
56
+ # Uncomment for debugging watchman output
57
+ # open (my $fh, ">", ".git/watchman-output.out");
58
+ # binmode $fh, ":utf8";
59
+ # print $fh "$clockid\n@files\n";
60
+ # close $fh;
61
+
62
+ binmode STDOUT, ":utf8";
63
+ print $clockid;
64
+ print "\0";
65
+ local $, = "\0";
66
+ print @files;
67
+ }
68
+
69
+ sub watchman_clock {
70
+ my $response = qx/watchman clock "$git_work_tree"/;
71
+ die "Failed to get clock id on '$git_work_tree'.\n" .
72
+ "Falling back to scanning...\n" if $? != 0;
73
+
74
+ return $json_pkg->new->utf8->decode($response);
75
+ }
76
+
77
+ sub watchman_query {
78
+ my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty')
79
+ or die "open2() failed: $!\n" .
80
+ "Falling back to scanning...\n";
81
+
82
+ # In the query expression below we're asking for names of files that
83
+ # changed since $last_update_token but not from the .git folder.
84
+ #
85
+ # To accomplish this, we're using the "since" generator to use the
86
+ # recency index to select candidate nodes and "fields" to limit the
87
+ # output to file names only. Then we're using the "expression" term to
88
+ # further constrain the results.
89
+ my $last_update_line = "";
90
+ if (substr($last_update_token, 0, 1) eq "c") {
91
+ $last_update_token = "\"$last_update_token\"";
92
+ $last_update_line = qq[\n"since": $last_update_token,];
93
+ }
94
+ my $query = <<" END";
95
+ ["query", "$git_work_tree", {$last_update_line
96
+ "fields": ["name"],
97
+ "expression": ["not", ["dirname", ".git"]]
98
+ }]
99
+ END
100
+
101
+ # Uncomment for debugging the watchman query
102
+ # open (my $fh, ">", ".git/watchman-query.json");
103
+ # print $fh $query;
104
+ # close $fh;
105
+
106
+ print CHLD_IN $query;
107
+ close CHLD_IN;
108
+ my $response = do {local $/; <CHLD_OUT>};
109
+
110
+ # Uncomment for debugging the watch response
111
+ # open ($fh, ">", ".git/watchman-response.json");
112
+ # print $fh $response;
113
+ # close $fh;
114
+
115
+ die "Watchman: command returned no output.\n" .
116
+ "Falling back to scanning...\n" if $response eq "";
117
+ die "Watchman: command returned invalid output: $response\n" .
118
+ "Falling back to scanning...\n" unless $response =~ /^\{/;
119
+
120
+ return $json_pkg->new->utf8->decode($response);
121
+ }
122
+
123
+ sub is_work_tree_watched {
124
+ my ($output) = @_;
125
+ my $error = $output->{error};
126
+ if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) {
127
+ $retry--;
128
+ my $response = qx/watchman watch "$git_work_tree"/;
129
+ die "Failed to make watchman watch '$git_work_tree'.\n" .
130
+ "Falling back to scanning...\n" if $? != 0;
131
+ $output = $json_pkg->new->utf8->decode($response);
132
+ $error = $output->{error};
133
+ die "Watchman: $error.\n" .
134
+ "Falling back to scanning...\n" if $error;
135
+
136
+ # Uncomment for debugging watchman output
137
+ # open (my $fh, ">", ".git/watchman-output.out");
138
+ # close $fh;
139
+
140
+ # Watchman will always return all files on the first query so
141
+ # return the fast "everything is dirty" flag to git and do the
142
+ # Watchman query just to get it over with now so we won't pay
143
+ # the cost in git to look up each individual file.
144
+ my $o = watchman_clock();
145
+ $error = $output->{error};
146
+
147
+ die "Watchman: $error.\n" .
148
+ "Falling back to scanning...\n" if $error;
149
+
150
+ output_result($o->{clock}, ("/"));
151
+ $last_update_token = $o->{clock};
152
+
153
+ eval { launch_watchman() };
154
+ return 0;
155
+ }
156
+
157
+ die "Watchman: $error.\n" .
158
+ "Falling back to scanning...\n" if $error;
159
+
160
+ return 1;
161
+ }
162
+
163
+ sub get_working_dir {
164
+ my $working_dir;
165
+ if ($^O =~ 'msys' || $^O =~ 'cygwin') {
166
+ $working_dir = Win32::GetCwd();
167
+ $working_dir =~ tr/\\/\//;
168
+ } else {
169
+ require Cwd;
170
+ $working_dir = Cwd::cwd();
171
+ }
172
+
173
+ return $working_dir;
174
+ }
contracts/.git.deploy-tmp/hooks/post-update.sample ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to prepare a packed repository for use over
4
+ # dumb transports.
5
+ #
6
+ # To enable this hook, rename this file to "post-update".
7
+
8
+ exec git update-server-info
contracts/.git.deploy-tmp/hooks/pre-applypatch.sample ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed
4
+ # by applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit.
8
+ #
9
+ # To enable this hook, rename this file to "pre-applypatch".
10
+
11
+ . git-sh-setup
12
+ precommit="$(git rev-parse --git-path hooks/pre-commit)"
13
+ test -x "$precommit" && exec "$precommit" ${1+"$@"}
14
+ :
contracts/.git.deploy-tmp/hooks/pre-commit.sample ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git commit" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message if
6
+ # it wants to stop the commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-commit".
9
+
10
+ if git rev-parse --verify HEAD >/dev/null 2>&1
11
+ then
12
+ against=HEAD
13
+ else
14
+ # Initial commit: diff against an empty tree object
15
+ against=$(git hash-object -t tree /dev/null)
16
+ fi
17
+
18
+ # If you want to allow non-ASCII filenames set this variable to true.
19
+ allownonascii=$(git config --type=bool hooks.allownonascii)
20
+
21
+ # Redirect output to stderr.
22
+ exec 1>&2
23
+
24
+ # Cross platform projects tend to avoid non-ASCII filenames; prevent
25
+ # them from being added to the repository. We exploit the fact that the
26
+ # printable range starts at the space character and ends with tilde.
27
+ if [ "$allownonascii" != "true" ] &&
28
+ # Note that the use of brackets around a tr range is ok here, (it's
29
+ # even required, for portability to Solaris 10's /usr/bin/tr), since
30
+ # the square bracket bytes happen to fall in the designated range.
31
+ test $(git diff-index --cached --name-only --diff-filter=A -z $against |
32
+ LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
33
+ then
34
+ cat <<\EOF
35
+ Error: Attempt to add a non-ASCII file name.
36
+
37
+ This can cause problems if you want to work with people on other platforms.
38
+
39
+ To be portable it is advisable to rename the file.
40
+
41
+ If you know what you are doing you can disable this check using:
42
+
43
+ git config hooks.allownonascii true
44
+ EOF
45
+ exit 1
46
+ fi
47
+
48
+ # If there are whitespace errors, print the offending file names and fail.
49
+ exec git diff-index --check --cached $against --
contracts/.git.deploy-tmp/hooks/pre-merge-commit.sample ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git merge" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message to
6
+ # stderr if it wants to stop the merge commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-merge-commit".
9
+
10
+ . git-sh-setup
11
+ test -x "$GIT_DIR/hooks/pre-commit" &&
12
+ exec "$GIT_DIR/hooks/pre-commit"
13
+ :
contracts/.git.deploy-tmp/hooks/pre-push.sample ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # An example hook script to verify what is about to be pushed. Called by "git
4
+ # push" after it has checked the remote status, but before anything has been
5
+ # pushed. If this script exits with a non-zero status nothing will be pushed.
6
+ #
7
+ # This hook is called with the following parameters:
8
+ #
9
+ # $1 -- Name of the remote to which the push is being done
10
+ # $2 -- URL to which the push is being done
11
+ #
12
+ # If pushing without using a named remote those arguments will be equal.
13
+ #
14
+ # Information about the commits which are being pushed is supplied as lines to
15
+ # the standard input in the form:
16
+ #
17
+ # <local ref> <local oid> <remote ref> <remote oid>
18
+ #
19
+ # This sample shows how to prevent push of commits where the log message starts
20
+ # with "WIP" (work in progress).
21
+
22
+ remote="$1"
23
+ url="$2"
24
+
25
+ zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
26
+
27
+ while read local_ref local_oid remote_ref remote_oid
28
+ do
29
+ if test "$local_oid" = "$zero"
30
+ then
31
+ # Handle delete
32
+ :
33
+ else
34
+ if test "$remote_oid" = "$zero"
35
+ then
36
+ # New branch, examine all commits
37
+ range="$local_oid"
38
+ else
39
+ # Update to existing branch, examine new commits
40
+ range="$remote_oid..$local_oid"
41
+ fi
42
+
43
+ # Check for WIP commit
44
+ commit=$(git rev-list -n 1 --grep '^WIP' "$range")
45
+ if test -n "$commit"
46
+ then
47
+ echo >&2 "Found WIP commit in $local_ref, not pushing"
48
+ exit 1
49
+ fi
50
+ fi
51
+ done
52
+
53
+ exit 0
contracts/.git.deploy-tmp/hooks/pre-rebase.sample ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # Copyright (c) 2006, 2008 Junio C Hamano
4
+ #
5
+ # The "pre-rebase" hook is run just before "git rebase" starts doing
6
+ # its job, and can prevent the command from running by exiting with
7
+ # non-zero status.
8
+ #
9
+ # The hook is called with the following parameters:
10
+ #
11
+ # $1 -- the upstream the series was forked from.
12
+ # $2 -- the branch being rebased (or empty when rebasing the current branch).
13
+ #
14
+ # This sample shows how to prevent topic branches that are already
15
+ # merged to 'next' branch from getting rebased, because allowing it
16
+ # would result in rebasing already published history.
17
+
18
+ publish=next
19
+ basebranch="$1"
20
+ if test "$#" = 2
21
+ then
22
+ topic="refs/heads/$2"
23
+ else
24
+ topic=`git symbolic-ref HEAD` ||
25
+ exit 0 ;# we do not interrupt rebasing detached HEAD
26
+ fi
27
+
28
+ case "$topic" in
29
+ refs/heads/??/*)
30
+ ;;
31
+ *)
32
+ exit 0 ;# we do not interrupt others.
33
+ ;;
34
+ esac
35
+
36
+ # Now we are dealing with a topic branch being rebased
37
+ # on top of master. Is it OK to rebase it?
38
+
39
+ # Does the topic really exist?
40
+ git show-ref -q "$topic" || {
41
+ echo >&2 "No such branch $topic"
42
+ exit 1
43
+ }
44
+
45
+ # Is topic fully merged to master?
46
+ not_in_master=`git rev-list --pretty=oneline ^master "$topic"`
47
+ if test -z "$not_in_master"
48
+ then
49
+ echo >&2 "$topic is fully merged to master; better remove it."
50
+ exit 1 ;# we could allow it, but there is no point.
51
+ fi
52
+
53
+ # Is topic ever merged to next? If so you should not be rebasing it.
54
+ only_next_1=`git rev-list ^master "^$topic" ${publish} | sort`
55
+ only_next_2=`git rev-list ^master ${publish} | sort`
56
+ if test "$only_next_1" = "$only_next_2"
57
+ then
58
+ not_in_topic=`git rev-list "^$topic" master`
59
+ if test -z "$not_in_topic"
60
+ then
61
+ echo >&2 "$topic is already up to date with master"
62
+ exit 1 ;# we could allow it, but there is no point.
63
+ else
64
+ exit 0
65
+ fi
66
+ else
67
+ not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
68
+ /usr/bin/perl -e '
69
+ my $topic = $ARGV[0];
70
+ my $msg = "* $topic has commits already merged to public branch:\n";
71
+ my (%not_in_next) = map {
72
+ /^([0-9a-f]+) /;
73
+ ($1 => 1);
74
+ } split(/\n/, $ARGV[1]);
75
+ for my $elem (map {
76
+ /^([0-9a-f]+) (.*)$/;
77
+ [$1 => $2];
78
+ } split(/\n/, $ARGV[2])) {
79
+ if (!exists $not_in_next{$elem->[0]}) {
80
+ if ($msg) {
81
+ print STDERR $msg;
82
+ undef $msg;
83
+ }
84
+ print STDERR " $elem->[1]\n";
85
+ }
86
+ }
87
+ ' "$topic" "$not_in_next" "$not_in_master"
88
+ exit 1
89
+ fi
90
+
91
+ <<\DOC_END
92
+
93
+ This sample hook safeguards topic branches that have been
94
+ published from being rewound.
95
+
96
+ The workflow assumed here is:
97
+
98
+ * Once a topic branch forks from "master", "master" is never
99
+ merged into it again (either directly or indirectly).
100
+
101
+ * Once a topic branch is fully cooked and merged into "master",
102
+ it is deleted. If you need to build on top of it to correct
103
+ earlier mistakes, a new topic branch is created by forking at
104
+ the tip of the "master". This is not strictly necessary, but
105
+ it makes it easier to keep your history simple.
106
+
107
+ * Whenever you need to test or publish your changes to topic
108
+ branches, merge them into "next" branch.
109
+
110
+ The script, being an example, hardcodes the publish branch name
111
+ to be "next", but it is trivial to make it configurable via
112
+ $GIT_DIR/config mechanism.
113
+
114
+ With this workflow, you would want to know:
115
+
116
+ (1) ... if a topic branch has ever been merged to "next". Young
117
+ topic branches can have stupid mistakes you would rather
118
+ clean up before publishing, and things that have not been
119
+ merged into other branches can be easily rebased without
120
+ affecting other people. But once it is published, you would
121
+ not want to rewind it.
122
+
123
+ (2) ... if a topic branch has been fully merged to "master".
124
+ Then you can delete it. More importantly, you should not
125
+ build on top of it -- other people may already want to
126
+ change things related to the topic as patches against your
127
+ "master", so if you need further changes, it is better to
128
+ fork the topic (perhaps with the same name) afresh from the
129
+ tip of "master".
130
+
131
+ Let's look at this example:
132
+
133
+ o---o---o---o---o---o---o---o---o---o "next"
134
+ / / / /
135
+ / a---a---b A / /
136
+ / / / /
137
+ / / c---c---c---c B /
138
+ / / / \ /
139
+ / / / b---b C \ /
140
+ / / / / \ /
141
+ ---o---o---o---o---o---o---o---o---o---o---o "master"
142
+
143
+
144
+ A, B and C are topic branches.
145
+
146
+ * A has one fix since it was merged up to "next".
147
+
148
+ * B has finished. It has been fully merged up to "master" and "next",
149
+ and is ready to be deleted.
150
+
151
+ * C has not merged to "next" at all.
152
+
153
+ We would want to allow C to be rebased, refuse A, and encourage
154
+ B to be deleted.
155
+
156
+ To compute (1):
157
+
158
+ git rev-list ^master ^topic next
159
+ git rev-list ^master next
160
+
161
+ if these match, topic has not merged in next at all.
162
+
163
+ To compute (2):
164
+
165
+ git rev-list master..topic
166
+
167
+ if this is empty, it is fully merged to "master".
168
+
169
+ DOC_END
contracts/.git.deploy-tmp/hooks/pre-receive.sample ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to make use of push options.
4
+ # The example simply echoes all push options that start with 'echoback='
5
+ # and rejects all pushes when the "reject" push option is used.
6
+ #
7
+ # To enable this hook, rename this file to "pre-receive".
8
+
9
+ if test -n "$GIT_PUSH_OPTION_COUNT"
10
+ then
11
+ i=0
12
+ while test "$i" -lt "$GIT_PUSH_OPTION_COUNT"
13
+ do
14
+ eval "value=\$GIT_PUSH_OPTION_$i"
15
+ case "$value" in
16
+ echoback=*)
17
+ echo "echo from the pre-receive-hook: ${value#*=}" >&2
18
+ ;;
19
+ reject)
20
+ exit 1
21
+ esac
22
+ i=$((i + 1))
23
+ done
24
+ fi
contracts/.git.deploy-tmp/hooks/prepare-commit-msg.sample ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to prepare the commit log message.
4
+ # Called by "git commit" with the name of the file that has the
5
+ # commit message, followed by the description of the commit
6
+ # message's source. The hook's purpose is to edit the commit
7
+ # message file. If the hook fails with a non-zero status,
8
+ # the commit is aborted.
9
+ #
10
+ # To enable this hook, rename this file to "prepare-commit-msg".
11
+
12
+ # This hook includes three examples. The first one removes the
13
+ # "# Please enter the commit message..." help message.
14
+ #
15
+ # The second includes the output of "git diff --name-status -r"
16
+ # into the message, just before the "git status" output. It is
17
+ # commented because it doesn't cope with --amend or with squashed
18
+ # commits.
19
+ #
20
+ # The third example adds a Signed-off-by line to the message, that can
21
+ # still be edited. This is rarely a good idea.
22
+
23
+ COMMIT_MSG_FILE=$1
24
+ COMMIT_SOURCE=$2
25
+ SHA1=$3
26
+
27
+ /usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE"
28
+
29
+ # case "$COMMIT_SOURCE,$SHA1" in
30
+ # ,|template,)
31
+ # /usr/bin/perl -i.bak -pe '
32
+ # print "\n" . `git diff --cached --name-status -r`
33
+ # if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;;
34
+ # *) ;;
35
+ # esac
36
+
37
+ # SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
38
+ # git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
39
+ # if test -z "$COMMIT_SOURCE"
40
+ # then
41
+ # /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
42
+ # fi
contracts/.git.deploy-tmp/hooks/push-to-checkout.sample ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # An example hook script to update a checked-out tree on a git push.
4
+ #
5
+ # This hook is invoked by git-receive-pack(1) when it reacts to git
6
+ # push and updates reference(s) in its repository, and when the push
7
+ # tries to update the branch that is currently checked out and the
8
+ # receive.denyCurrentBranch configuration variable is set to
9
+ # updateInstead.
10
+ #
11
+ # By default, such a push is refused if the working tree and the index
12
+ # of the remote repository has any difference from the currently
13
+ # checked out commit; when both the working tree and the index match
14
+ # the current commit, they are updated to match the newly pushed tip
15
+ # of the branch. This hook is to be used to override the default
16
+ # behaviour; however the code below reimplements the default behaviour
17
+ # as a starting point for convenient modification.
18
+ #
19
+ # The hook receives the commit with which the tip of the current
20
+ # branch is going to be updated:
21
+ commit=$1
22
+
23
+ # It can exit with a non-zero status to refuse the push (when it does
24
+ # so, it must not modify the index or the working tree).
25
+ die () {
26
+ echo >&2 "$*"
27
+ exit 1
28
+ }
29
+
30
+ # Or it can make any necessary changes to the working tree and to the
31
+ # index to bring them to the desired state when the tip of the current
32
+ # branch is updated to the new commit, and exit with a zero status.
33
+ #
34
+ # For example, the hook can simply run git read-tree -u -m HEAD "$1"
35
+ # in order to emulate git fetch that is run in the reverse direction
36
+ # with git push, as the two-tree form of git read-tree -u -m is
37
+ # essentially the same as git switch or git checkout that switches
38
+ # branches while keeping the local changes in the working tree that do
39
+ # not interfere with the difference between the branches.
40
+
41
+ # The below is a more-or-less exact translation to shell of the C code
42
+ # for the default behaviour for git's push-to-checkout hook defined in
43
+ # the push_to_deploy() function in builtin/receive-pack.c.
44
+ #
45
+ # Note that the hook will be executed from the repository directory,
46
+ # not from the working tree, so if you want to perform operations on
47
+ # the working tree, you will have to adapt your code accordingly, e.g.
48
+ # by adding "cd .." or using relative paths.
49
+
50
+ if ! git update-index -q --ignore-submodules --refresh
51
+ then
52
+ die "Up-to-date check failed"
53
+ fi
54
+
55
+ if ! git diff-files --quiet --ignore-submodules --
56
+ then
57
+ die "Working directory has unstaged changes"
58
+ fi
59
+
60
+ # This is a rough translation of:
61
+ #
62
+ # head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX
63
+ if git cat-file -e HEAD 2>/dev/null
64
+ then
65
+ head=HEAD
66
+ else
67
+ head=$(git hash-object -t tree --stdin </dev/null)
68
+ fi
69
+
70
+ if ! git diff-index --quiet --cached --ignore-submodules $head --
71
+ then
72
+ die "Working directory has staged changes"
73
+ fi
74
+
75
+ if ! git read-tree -u -m "$commit"
76
+ then
77
+ die "Could not update working tree to new HEAD"
78
+ fi
contracts/.git.deploy-tmp/hooks/sendemail-validate.sample ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ # An example hook script to validate a patch (and/or patch series) before
4
+ # sending it via email.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an appropriate
7
+ # message if it wants to prevent the email(s) from being sent.
8
+ #
9
+ # To enable this hook, rename this file to "sendemail-validate".
10
+ #
11
+ # By default, it will only check that the patch(es) can be applied on top of
12
+ # the default upstream branch without conflicts in a secondary worktree. After
13
+ # validation (successful or not) of the last patch of a series, the worktree
14
+ # will be deleted.
15
+ #
16
+ # The following config variables can be set to change the default remote and
17
+ # remote ref that are used to apply the patches against:
18
+ #
19
+ # sendemail.validateRemote (default: origin)
20
+ # sendemail.validateRemoteRef (default: HEAD)
21
+ #
22
+ # Replace the TODO placeholders with appropriate checks according to your
23
+ # needs.
24
+
25
+ validate_cover_letter () {
26
+ file="$1"
27
+ # TODO: Replace with appropriate checks (e.g. spell checking).
28
+ true
29
+ }
30
+
31
+ validate_patch () {
32
+ file="$1"
33
+ # Ensure that the patch applies without conflicts.
34
+ git am -3 "$file" || return
35
+ # TODO: Replace with appropriate checks for this patch
36
+ # (e.g. checkpatch.pl).
37
+ true
38
+ }
39
+
40
+ validate_series () {
41
+ # TODO: Replace with appropriate checks for the whole series
42
+ # (e.g. quick build, coding style checks, etc.).
43
+ true
44
+ }
45
+
46
+ # main -------------------------------------------------------------------------
47
+
48
+ if test "$GIT_SENDEMAIL_FILE_COUNTER" = 1
49
+ then
50
+ remote=$(git config --default origin --get sendemail.validateRemote) &&
51
+ ref=$(git config --default HEAD --get sendemail.validateRemoteRef) &&
52
+ worktree=$(mktemp --tmpdir -d sendemail-validate.XXXXXXX) &&
53
+ git worktree add -fd --checkout "$worktree" "refs/remotes/$remote/$ref" &&
54
+ git config --replace-all sendemail.validateWorktree "$worktree"
55
+ else
56
+ worktree=$(git config --get sendemail.validateWorktree)
57
+ fi || {
58
+ echo "sendemail-validate: error: failed to prepare worktree" >&2
59
+ exit 1
60
+ }
61
+
62
+ unset GIT_DIR GIT_WORK_TREE
63
+ cd "$worktree" &&
64
+
65
+ if grep -q "^diff --git " "$1"
66
+ then
67
+ validate_patch "$1"
68
+ else
69
+ validate_cover_letter "$1"
70
+ fi &&
71
+
72
+ if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL"
73
+ then
74
+ git config --unset-all sendemail.validateWorktree &&
75
+ trap 'git worktree remove -ff "$worktree"' EXIT &&
76
+ validate_series
77
+ fi
contracts/.git.deploy-tmp/hooks/update.sample ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to block unannotated tags from entering.
4
+ # Called by "git receive-pack" with arguments: refname sha1-old sha1-new
5
+ #
6
+ # To enable this hook, rename this file to "update".
7
+ #
8
+ # Config
9
+ # ------
10
+ # hooks.allowunannotated
11
+ # This boolean sets whether unannotated tags will be allowed into the
12
+ # repository. By default they won't be.
13
+ # hooks.allowdeletetag
14
+ # This boolean sets whether deleting tags will be allowed in the
15
+ # repository. By default they won't be.
16
+ # hooks.allowmodifytag
17
+ # This boolean sets whether a tag may be modified after creation. By default
18
+ # it won't be.
19
+ # hooks.allowdeletebranch
20
+ # This boolean sets whether deleting branches will be allowed in the
21
+ # repository. By default they won't be.
22
+ # hooks.denycreatebranch
23
+ # This boolean sets whether remotely creating branches will be denied
24
+ # in the repository. By default this is allowed.
25
+ #
26
+
27
+ # --- Command line
28
+ refname="$1"
29
+ oldrev="$2"
30
+ newrev="$3"
31
+
32
+ # --- Safety check
33
+ if [ -z "$GIT_DIR" ]; then
34
+ echo "Don't run this script from the command line." >&2
35
+ echo " (if you want, you could supply GIT_DIR then run" >&2
36
+ echo " $0 <ref> <oldrev> <newrev>)" >&2
37
+ exit 1
38
+ fi
39
+
40
+ if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
41
+ echo "usage: $0 <ref> <oldrev> <newrev>" >&2
42
+ exit 1
43
+ fi
44
+
45
+ # --- Config
46
+ allowunannotated=$(git config --type=bool hooks.allowunannotated)
47
+ allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch)
48
+ denycreatebranch=$(git config --type=bool hooks.denycreatebranch)
49
+ allowdeletetag=$(git config --type=bool hooks.allowdeletetag)
50
+ allowmodifytag=$(git config --type=bool hooks.allowmodifytag)
51
+
52
+ # check for no description
53
+ projectdesc=$(sed -e '1q' "$GIT_DIR/description")
54
+ case "$projectdesc" in
55
+ "Unnamed repository"* | "")
56
+ echo "*** Project description file hasn't been set" >&2
57
+ exit 1
58
+ ;;
59
+ esac
60
+
61
+ # --- Check types
62
+ # if $newrev is 0000...0000, it's a commit to delete a ref.
63
+ zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
64
+ if [ "$newrev" = "$zero" ]; then
65
+ newrev_type=delete
66
+ else
67
+ newrev_type=$(git cat-file -t $newrev)
68
+ fi
69
+
70
+ case "$refname","$newrev_type" in
71
+ refs/tags/*,commit)
72
+ # un-annotated tag
73
+ short_refname=${refname##refs/tags/}
74
+ if [ "$allowunannotated" != "true" ]; then
75
+ echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
76
+ echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
77
+ exit 1
78
+ fi
79
+ ;;
80
+ refs/tags/*,delete)
81
+ # delete tag
82
+ if [ "$allowdeletetag" != "true" ]; then
83
+ echo "*** Deleting a tag is not allowed in this repository" >&2
84
+ exit 1
85
+ fi
86
+ ;;
87
+ refs/tags/*,tag)
88
+ # annotated tag
89
+ if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
90
+ then
91
+ echo "*** Tag '$refname' already exists." >&2
92
+ echo "*** Modifying a tag is not allowed in this repository." >&2
93
+ exit 1
94
+ fi
95
+ ;;
96
+ refs/heads/*,commit)
97
+ # branch
98
+ if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
99
+ echo "*** Creating a branch is not allowed in this repository" >&2
100
+ exit 1
101
+ fi
102
+ ;;
103
+ refs/heads/*,delete)
104
+ # delete branch
105
+ if [ "$allowdeletebranch" != "true" ]; then
106
+ echo "*** Deleting a branch is not allowed in this repository" >&2
107
+ exit 1
108
+ fi
109
+ ;;
110
+ refs/remotes/*,commit)
111
+ # tracking branch
112
+ ;;
113
+ refs/remotes/*,delete)
114
+ # delete tracking branch
115
+ if [ "$allowdeletebranch" != "true" ]; then
116
+ echo "*** Deleting a tracking branch is not allowed in this repository" >&2
117
+ exit 1
118
+ fi
119
+ ;;
120
+ *)
121
+ # Anything else (is there anything else?)
122
+ echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
123
+ exit 1
124
+ ;;
125
+ esac
126
+
127
+ # --- Finished
128
+ exit 0
contracts/.git.deploy-tmp/index ADDED
Binary file (208 Bytes). View file
 
contracts/.git.deploy-tmp/info/exclude ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # git ls-files --others --exclude-from=.git/info/exclude
2
+ # Lines that start with '#' are comments.
3
+ # For a project mostly in C, the following would be a good set of
4
+ # exclude patterns (uncomment them if you want to use them):
5
+ # *.[oa]
6
+ # *~
contracts/.git.deploy-tmp/objects/14/0ea9eed12de6597b846d5ed3fc2aa71ec683a8 ADDED
Binary file (104 Bytes). View file
 
contracts/.gitignore ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Compiler files
2
+ cache/
3
+ out/
4
+
5
+ # Ignores development broadcast logs
6
+ !/broadcast
7
+ /broadcast/*/31337/
8
+ /broadcast/**/dry-run/
9
+
10
+ # Docs
11
+ docs/
12
+
13
+ # Dotenv file
14
+ .env
15
+
16
+ # Submodules (vendored as git clones, do not commit upstream code)
17
+ lib/
contracts/.gitmodules ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [submodule "lib/openzeppelin-contracts"]
2
+ path = lib/openzeppelin-contracts
3
+ url = https://github.com/OpenZeppelin/openzeppelin-contracts
contracts/LICENSE ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 licaomeng
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
contracts/README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Foundry
2
+
3
+ **Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
4
+
5
+ Foundry consists of:
6
+
7
+ - **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
8
+ - **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
9
+ - **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
10
+ - **Chisel**: Fast, utilitarian, and verbose solidity REPL.
11
+
12
+ ## Documentation
13
+
14
+ https://book.getfoundry.sh/
15
+
16
+ ## Usage
17
+
18
+ ### Build
19
+
20
+ ```shell
21
+ $ forge build
22
+ ```
23
+
24
+ ### Test
25
+
26
+ ```shell
27
+ $ forge test
28
+ ```
29
+
30
+ ### Format
31
+
32
+ ```shell
33
+ $ forge fmt
34
+ ```
35
+
36
+ ### Gas Snapshots
37
+
38
+ ```shell
39
+ $ forge snapshot
40
+ ```
41
+
42
+ ### Anvil
43
+
44
+ ```shell
45
+ $ anvil
46
+ ```
47
+
48
+ ### Deploy
49
+
50
+ ```shell
51
+ $ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
52
+ ```
53
+
54
+ ### Cast
55
+
56
+ ```shell
57
+ $ cast <subcommand>
58
+ ```
59
+
60
+ ### Help
61
+
62
+ ```shell
63
+ $ forge --help
64
+ $ anvil --help
65
+ $ cast --help
66
+ ```
contracts/foundry.lock ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lib/openzeppelin-contracts": {
3
+ "tag": {
4
+ "name": "v5.6.1",
5
+ "rev": "5fd1781b1454fd1ef8e722282f86f9293cacf256"
6
+ }
7
+ }
8
+ }
contracts/foundry.toml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [profile.default]
2
+ src = "src"
3
+ out = "out"
4
+ libs = ["lib"]
5
+
6
+ # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
contracts/out/Base.sol/CommonBase.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"CONSOLE\":{\"details\":\"console.sol and console2.sol work by executing a staticcall to this address. Calculated as `address(uint160(uint88(bytes11(\\\"console.log\\\"))))`.\"},\"CREATE2_FACTORY\":{\"details\":\"Used when deploying with create2. Taken from https://github.com/Arachnid/deterministic-deployment-proxy.\"},\"DEFAULT_SENDER\":{\"details\":\"The default address for tx.origin and msg.sender. Calculated as `address(uint160(uint256(keccak256(\\\"foundry default caller\\\"))))`.\"},\"DEFAULT_TEST_CONTRACT\":{\"details\":\"The address of the first contract `CREATE`d by a running test contract. When running tests, each test contract is `CREATE`d by `DEFAULT_SENDER` with nonce 1. Calculated as `VM.computeCreateAddress(VM.computeCreateAddress(DEFAULT_SENDER, 1), 1)`.\"},\"MULTICALL3_ADDRESS\":{\"details\":\"Deterministic deployment address of the Multicall3 contract. Taken from https://www.multicall3.com.\"},\"SECP256K1_ORDER\":{\"details\":\"The order of the secp256k1 curve.\"},\"VM_ADDRESS\":{\"details\":\"Cheat code address. Calculated as `address(uint160(uint256(keccak256(\\\"hevm cheat code\\\"))))`.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/forge-std/src/Base.sol\":\"CommonBase\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/forge-std/src/Base.sol\":{\"keccak256\":\"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710\",\"dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp\"]},\"lib/forge-std/src/StdStorage.sol\":{\"keccak256\":\"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1\",\"dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW\"]},\"lib/forge-std/src/Vm.sol\":{\"keccak256\":\"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4\",\"dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/forge-std/src/Base.sol":"CommonBase"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/forge-std/src/Base.sol":{"keccak256":"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa","urls":["bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710","dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/StdStorage.sol":{"keccak256":"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa","urls":["bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1","dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/Vm.sol":{"keccak256":"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d","urls":["bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4","dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn"],"license":"MIT OR Apache-2.0"}},"version":1},"id":0}
contracts/out/Base.sol/ScriptBase.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/forge-std/src/Base.sol\":\"ScriptBase\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/forge-std/src/Base.sol\":{\"keccak256\":\"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710\",\"dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp\"]},\"lib/forge-std/src/StdStorage.sol\":{\"keccak256\":\"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1\",\"dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW\"]},\"lib/forge-std/src/Vm.sol\":{\"keccak256\":\"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4\",\"dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/forge-std/src/Base.sol":"ScriptBase"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/forge-std/src/Base.sol":{"keccak256":"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa","urls":["bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710","dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/StdStorage.sol":{"keccak256":"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa","urls":["bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1","dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/Vm.sol":{"keccak256":"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d","urls":["bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4","dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn"],"license":"MIT OR Apache-2.0"}},"version":1},"id":0}
contracts/out/Base.sol/TestBase.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/forge-std/src/Base.sol\":\"TestBase\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/forge-std/src/Base.sol\":{\"keccak256\":\"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710\",\"dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp\"]},\"lib/forge-std/src/StdStorage.sol\":{\"keccak256\":\"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1\",\"dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW\"]},\"lib/forge-std/src/Vm.sol\":{\"keccak256\":\"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4\",\"dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/forge-std/src/Base.sol":"TestBase"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/forge-std/src/Base.sol":{"keccak256":"0x926f1c9907b7dadb56dc920ae80dc473070989ab1f09b63e207ddc2d37110faa","urls":["bzz-raw://8a470cde3eb7aa7ff3ac0d71c6b8e06f394609b937a7edbc7b5fdfab18c2b710","dweb:/ipfs/QmUgmpmVzLXfmxhmnPjx9TUc2WdgNdBuucFZfh6fSciaFp"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/StdStorage.sol":{"keccak256":"0x15972e480f9a3fc9d104a5fe981580c613fa625a5b3cd412b3540c3e927b60aa","urls":["bzz-raw://cd1a221b35acd58f6d10fb19468b1281b744f3fac10097ae9c103d7ee89e0aa1","dweb:/ipfs/QmbUD1p4b4Vkq6EsZqoKYnkuRETDQiJgt5KSuTvQFn3HfW"],"license":"MIT OR Apache-2.0"},"lib/forge-std/src/Vm.sol":{"keccak256":"0x0b50ffdf244156d98d50b6b3c37cdb982edf843bba0916f09455611d9830588d","urls":["bzz-raw://6133428f8cf753fab357f2f97efd474fedd9263d0b0c6c2e47363f3392e15ff4","dweb:/ipfs/QmSrgd4byLu16hfUjZHwdq3zDHnCDHpXQgKSYrXQ68yybn"],"license":"MIT OR Apache-2.0"}},"version":1},"id":0}
contracts/out/BuilderFeeRouter.sol/BuilderFeeRouter.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"constructor","inputs":[{"name":"_usdc","type":"address","internalType":"address"},{"name":"_reputation","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"LEADERBOARD_SIZE","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"claimFees","inputs":[{"name":"translator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"claimable","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"cumulativeFees","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"fillCount","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"fund","inputs":[{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getCumulativeFees","inputs":[{"name":"translator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getLeaderboard","inputs":[],"outputs":[{"name":"topAddrs","type":"address[]","internalType":"address[]"},{"name":"topFees","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"getTranslatorCount","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"operator","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"recordFill","inputs":[{"name":"marketId","type":"string","internalType":"string"},{"name":"fillAmount","type":"uint256","internalType":"uint256"},{"name":"translator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"reputation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IReputationRegistry"}],"stateMutability":"view"},{"type":"function","name":"setReputationRegistry","inputs":[{"name":"_reputation","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferOperator","inputs":[{"name":"newOperator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"translators","inputs":[{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"usdc","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"type":"event","name":"FeesClaimed","inputs":[{"name":"translator","type":"address","indexed":true,"internalType":"address"},{"name":"totalAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Funded","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"PayoutAccrued","inputs":[{"name":"translator","type":"address","indexed":true,"internalType":"address"},{"name":"marketId","type":"string","indexed":false,"internalType":"string"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"newCumulative","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ReputationRegistrySet","inputs":[{"name":"registry","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]}],"bytecode":{"object":"0x60a060405234801561000f575f5ffd5b506040516120d63803806120d683398181016040528101906100319190610241565b600161004f6100446101b160201b60201c565b6101da60201b60201c565b5f01819055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036100c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100ba906102d9565b60405180910390fd5b335f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146101aa578060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50506102f7565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610210826101e7565b9050919050565b61022081610206565b811461022a575f5ffd5b50565b5f8151905061023b81610217565b92915050565b5f5f60408385031215610257576102566101e3565b5b5f6102648582860161022d565b92505060206102758582860161022d565b9150509250929050565b5f82825260208201905092915050565b7f75736463207a65726f00000000000000000000000000000000000000000000005f82015250565b5f6102c360098361027f565b91506102ce8261028f565b602082019050919050565b5f6020820190508181035f8301526102f0816102b7565b9050919050565b608051611db961031d5f395f818161043d01528181610b6401526111590152611db95ff3fe608060405234801561000f575f5ffd5b50600436106100fd575f3560e01c8063570ca735116100955780639f5ce378116100645780639f5ce37814610298578063c52164c6146102c8578063ca1d209d146102e6578063dc13fea614610302576100fd565b8063570ca7351461020d57806369c8b95a1461022b5780636ab429441461025b5780636d763a6e14610279576100fd565b80633e413bee116100d15780633e413bee146101855780633f0ce714146101a3578063402914f5146101bf5780634f085f42146101ef576100fd565b80628b6c821461010157806315a0ea6a146101315780632200fdbb1461014d57806329605e7714610169575b5f5ffd5b61011b600480360381019061011691906113ab565b610332565b6040516101289190611415565b60405180910390f35b61014b60048036038101906101469190611458565b61036d565b005b610167600480360381019061016291906114e4565b610573565b005b610183600480360381019061017e9190611458565b610a24565b005b61018d610b62565b60405161019a91906115b0565b60405180910390f35b6101bd60048036038101906101b89190611458565b610b86565b005b6101d960048036038101906101d49190611458565b610d08565b6040516101e691906115d8565b60405180910390f35b6101f7610d1d565b60405161020491906115d8565b60405180910390f35b610215610d22565b6040516102229190611415565b60405180910390f35b61024560048036038101906102409190611458565b610d46565b60405161025291906115d8565b60405180910390f35b610263610d8c565b60405161027091906115d8565b60405180910390f35b610281610d98565b60405161028f92919061175f565b60405180910390f35b6102b260048036038101906102ad9190611458565b6110d2565b6040516102bf91906115d8565b60405180910390f35b6102d06110e7565b6040516102dd91906117b4565b60405180910390f35b61030060048036038101906102fb91906113ab565b61110c565b005b61031c60048036038101906103179190611458565b611290565b60405161032991906115d8565b60405180910390f35b60058181548110610341575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103756112a5565b5f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f81116103f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ef90611827565b60405180910390fd5b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401610496929190611845565b6020604051808303815f875af11580156104b2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d691906118a1565b905080610518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050f90611916565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f9493e5bbe4e8e0ac67284469a2d677403d0378a85a59e341d3abc433d0d9a2098360405161055e91906115d8565b60405180910390a250506105706112c7565b50565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f89061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361066f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610666906119e6565b60405180910390fd5b5f82116106b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a890611a4e565b60405180910390fd5b8160025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546106fd9190611a99565b925050819055508160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546107509190611a99565b92505081905550600160045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546107a49190611a99565b9250508190555060065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166108af57600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5f73ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461098d5760015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c53214b382846040518363ffffffff1660e01b815260040161095f929190611845565b5f604051808303815f87803b158015610976575f5ffd5b505af1158015610988573d5f5f3e3d5ffd5b505050505b8073ffffffffffffffffffffffffffffffffffffffff167f12c43727314a2d3a05dda49b0aa38003c29fc4ffd71ec2ff672966e69c15073885858560025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054604051610a169493929190611b16565b60405180910390a250505050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa99061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1790611b9e565b60405180910390fd5b805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b9061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7990611c06565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fe5563a9cbabd23ef14392047f9e96c6888136561dbd665a0673a98375cbedcf960405160405180910390a250565b6003602052805f5260405f205f915090505481565b600a81565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f600580549050905090565b6060805f60058054905090505f600a905081811115610db5578190505b8067ffffffffffffffff811115610dcf57610dce611c24565b5b604051908082528060200260200182016040528015610dfd5781602001602082028036833780820191505090505b5093508067ffffffffffffffff811115610e1a57610e19611c24565b5b604051908082528060200260200182016040528015610e485781602001602082028036833780820191505090505b5092505f8267ffffffffffffffff811115610e6657610e65611c24565b5b604051908082528060200260200182016040528015610e945781602001602082028036833780820191505090505b5090505f5f90505b828110156110ca575f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90505f5f90505f5f90505b86811015610fbc57848181518110610eec57610eeb611c51565b5b6020026020010151610faf575f60025f60058481548110610f1057610f0f611c51565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841480610fa157508281115b15610fad578193508092505b505b8080600101915050610ed1565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610feb5750506110ca565b600184838151811061100057610fff611c51565b5b6020026020010190151590811515815250506005828154811061102657611025611c51565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688848151811061106157611060611c51565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808784815181106110af576110ae611c51565b5b60200260200101818152505050508080600101915050610e9c565b505050509091565b6004602052805f5260405f205f915090505481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111146112a5565b5f8111611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90611cc8565b60405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016111b493929190611ce6565b6020604051808303815f875af11580156111d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111f491906118a1565b905080611236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122d90611d65565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5248360405161127c91906115d8565b60405180910390a25061128d6112c7565b50565b6002602052805f5260405f205f915090505481565b6112ad6112e1565b60026112bf6112ba611322565b61134b565b5f0181905550565b60016112d96112d4611322565b61134b565b5f0181905550565b6112e9611354565b15611320576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f6002611367611362611322565b61134b565b5f015414905090565b5f5ffd5b5f5ffd5b5f819050919050565b61138a81611378565b8114611394575f5ffd5b50565b5f813590506113a581611381565b92915050565b5f602082840312156113c0576113bf611370565b5b5f6113cd84828501611397565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6113ff826113d6565b9050919050565b61140f816113f5565b82525050565b5f6020820190506114285f830184611406565b92915050565b611437816113f5565b8114611441575f5ffd5b50565b5f813590506114528161142e565b92915050565b5f6020828403121561146d5761146c611370565b5b5f61147a84828501611444565b91505092915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126114a4576114a3611483565b5b8235905067ffffffffffffffff8111156114c1576114c0611487565b5b6020830191508360018202830111156114dd576114dc61148b565b5b9250929050565b5f5f5f5f606085870312156114fc576114fb611370565b5b5f85013567ffffffffffffffff81111561151957611518611374565b5b6115258782880161148f565b9450945050602061153887828801611397565b925050604061154987828801611444565b91505092959194509250565b5f819050919050565b5f61157861157361156e846113d6565b611555565b6113d6565b9050919050565b5f6115898261155e565b9050919050565b5f61159a8261157f565b9050919050565b6115aa81611590565b82525050565b5f6020820190506115c35f8301846115a1565b92915050565b6115d281611378565b82525050565b5f6020820190506115eb5f8301846115c9565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611623816113f5565b82525050565b5f611634838361161a565b60208301905092915050565b5f602082019050919050565b5f611656826115f1565b61166081856115fb565b935061166b8361160b565b805f5b8381101561169b5781516116828882611629565b975061168d83611640565b92505060018101905061166e565b5085935050505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6116da81611378565b82525050565b5f6116eb83836116d1565b60208301905092915050565b5f602082019050919050565b5f61170d826116a8565b61171781856116b2565b9350611722836116c2565b805f5b8381101561175257815161173988826116e0565b9750611744836116f7565b925050600181019050611725565b5085935050505092915050565b5f6040820190508181035f830152611777818561164c565b9050818103602083015261178b8184611703565b90509392505050565b5f61179e8261157f565b9050919050565b6117ae81611794565b82525050565b5f6020820190506117c75f8301846117a5565b92915050565b5f82825260208201905092915050565b7f6e6f7468696e6720746f20636c61696d000000000000000000000000000000005f82015250565b5f6118116010836117cd565b915061181c826117dd565b602082019050919050565b5f6020820190508181035f83015261183e81611805565b9050919050565b5f6040820190506118585f830185611406565b61186560208301846115c9565b9392505050565b5f8115159050919050565b6118808161186c565b811461188a575f5ffd5b50565b5f8151905061189b81611877565b92915050565b5f602082840312156118b6576118b5611370565b5b5f6118c38482850161188d565b91505092915050565b7f75736463207472616e73666572206661696c65640000000000000000000000005f82015250565b5f6119006014836117cd565b915061190b826118cc565b602082019050919050565b5f6020820190508181035f83015261192d816118f4565b9050919050565b7f6e6f74206f70657261746f7200000000000000000000000000000000000000005f82015250565b5f611968600c836117cd565b915061197382611934565b602082019050919050565b5f6020820190508181035f8301526119958161195c565b9050919050565b7f7a65726f207472616e736c61746f7200000000000000000000000000000000005f82015250565b5f6119d0600f836117cd565b91506119db8261199c565b602082019050919050565b5f6020820190508181035f8301526119fd816119c4565b9050919050565b7f7a65726f2066696c6c00000000000000000000000000000000000000000000005f82015250565b5f611a386009836117cd565b9150611a4382611a04565b602082019050919050565b5f6020820190508181035f830152611a6581611a2c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611aa382611378565b9150611aae83611378565b9250828201905080821115611ac657611ac5611a6c565b5b92915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f611af583856117cd565b9350611b02838584611acc565b611b0b83611ada565b840190509392505050565b5f6060820190508181035f830152611b2f818688611aea565b9050611b3e60208301856115c9565b611b4b60408301846115c9565b95945050505050565b7f7a65726f206f70000000000000000000000000000000000000000000000000005f82015250565b5f611b886007836117cd565b9150611b9382611b54565b602082019050919050565b5f6020820190508181035f830152611bb581611b7c565b9050919050565b7f72657075746174696f6e207a65726f00000000000000000000000000000000005f82015250565b5f611bf0600f836117cd565b9150611bfb82611bbc565b602082019050919050565b5f6020820190508181035f830152611c1d81611be4565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f7a65726f2066756e6400000000000000000000000000000000000000000000005f82015250565b5f611cb26009836117cd565b9150611cbd82611c7e565b602082019050919050565b5f6020820190508181035f830152611cdf81611ca6565b9050919050565b5f606082019050611cf95f830186611406565b611d066020830185611406565b611d1360408301846115c9565b949350505050565b7f75736463207472616e7366657246726f6d206661696c656400000000000000005f82015250565b5f611d4f6018836117cd565b9150611d5a82611d1b565b602082019050919050565b5f6020820190508181035f830152611d7c81611d43565b905091905056fea2646970667358221220b4dba9a6c5cd584362d77f1bdd01e072d3960bfe2ce3d373b35259e36582287c64736f6c63430008230033","sourceMap":"1074:7091:24:-:0;;;3134:277;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2365:1:20;2539:46;:29;:27;;;:29;;:::i;:::-;:44;;;:46;;:::i;:::-;:52;;:66;;;;3217:1:24;3200:19;;:5;:19;;;3192:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;3254:10;3243:8;;:21;;;;;;;;;;;;;;;;;;3288:5;3274:20;;;;;;;;;;3331:1;3308:25;;:11;:25;;;3304:101;;3382:11;3349:10;;:45;;;;;;;;;;;;;;;;;;3304:101;3134:277;;1074:7091;;4636:127:20;4706:7;1505:66;4732:24;;4725:31;;4636:127;:::o;2679:163:21:-;2740:21;2822:4;2812:14;;2679:163;;;:::o;88:117:33:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:143::-;753:5;784:6;778:13;769:22;;800:33;827:5;800:33;:::i;:::-;696:143;;;;:::o;845:507::-;924:6;932;981:2;969:9;960:7;956:23;952:32;949:119;;;987:79;;:::i;:::-;949:119;1107:1;1132:64;1188:7;1179:6;1168:9;1164:22;1132:64;:::i;:::-;1122:74;;1078:128;1245:2;1271:64;1327:7;1318:6;1307:9;1303:22;1271:64;:::i;:::-;1261:74;;1216:129;845:507;;;;;:::o;1358:169::-;1442:11;1476:6;1471:3;1464:19;1516:4;1511:3;1507:14;1492:29;;1358:169;;;;:::o;1533:159::-;1673:11;1669:1;1661:6;1657:14;1650:35;1533:159;:::o;1698:365::-;1840:3;1861:66;1925:1;1920:3;1861:66;:::i;:::-;1854:73;;1936:93;2025:3;1936:93;:::i;:::-;2054:2;2049:3;2045:12;2038:19;;1698:365;;;:::o;2069:419::-;2235:4;2273:2;2262:9;2258:18;2250:26;;2322:9;2316:4;2312:20;2308:1;2297:9;2293:17;2286:47;2350:131;2476:4;2350:131;:::i;:::-;2342:139;;2069:419;;;:::o;1074:7091:24:-;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f5ffd5b50600436106100fd575f3560e01c8063570ca735116100955780639f5ce378116100645780639f5ce37814610298578063c52164c6146102c8578063ca1d209d146102e6578063dc13fea614610302576100fd565b8063570ca7351461020d57806369c8b95a1461022b5780636ab429441461025b5780636d763a6e14610279576100fd565b80633e413bee116100d15780633e413bee146101855780633f0ce714146101a3578063402914f5146101bf5780634f085f42146101ef576100fd565b80628b6c821461010157806315a0ea6a146101315780632200fdbb1461014d57806329605e7714610169575b5f5ffd5b61011b600480360381019061011691906113ab565b610332565b6040516101289190611415565b60405180910390f35b61014b60048036038101906101469190611458565b61036d565b005b610167600480360381019061016291906114e4565b610573565b005b610183600480360381019061017e9190611458565b610a24565b005b61018d610b62565b60405161019a91906115b0565b60405180910390f35b6101bd60048036038101906101b89190611458565b610b86565b005b6101d960048036038101906101d49190611458565b610d08565b6040516101e691906115d8565b60405180910390f35b6101f7610d1d565b60405161020491906115d8565b60405180910390f35b610215610d22565b6040516102229190611415565b60405180910390f35b61024560048036038101906102409190611458565b610d46565b60405161025291906115d8565b60405180910390f35b610263610d8c565b60405161027091906115d8565b60405180910390f35b610281610d98565b60405161028f92919061175f565b60405180910390f35b6102b260048036038101906102ad9190611458565b6110d2565b6040516102bf91906115d8565b60405180910390f35b6102d06110e7565b6040516102dd91906117b4565b60405180910390f35b61030060048036038101906102fb91906113ab565b61110c565b005b61031c60048036038101906103179190611458565b611290565b60405161032991906115d8565b60405180910390f35b60058181548110610341575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103756112a5565b5f60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f81116103f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ef90611827565b60405180910390fd5b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401610496929190611845565b6020604051808303815f875af11580156104b2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d691906118a1565b905080610518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050f90611916565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f9493e5bbe4e8e0ac67284469a2d677403d0378a85a59e341d3abc433d0d9a2098360405161055e91906115d8565b60405180910390a250506105706112c7565b50565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f89061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361066f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610666906119e6565b60405180910390fd5b5f82116106b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a890611a4e565b60405180910390fd5b8160025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546106fd9190611a99565b925050819055508160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546107509190611a99565b92505081905550600160045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546107a49190611a99565b9250508190555060065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166108af57600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5f73ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461098d5760015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c53214b382846040518363ffffffff1660e01b815260040161095f929190611845565b5f604051808303815f87803b158015610976575f5ffd5b505af1158015610988573d5f5f3e3d5ffd5b505050505b8073ffffffffffffffffffffffffffffffffffffffff167f12c43727314a2d3a05dda49b0aa38003c29fc4ffd71ec2ff672966e69c15073885858560025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054604051610a169493929190611b16565b60405180910390a250505050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa99061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1790611b9e565b60405180910390fd5b805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b9061197e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7990611c06565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fe5563a9cbabd23ef14392047f9e96c6888136561dbd665a0673a98375cbedcf960405160405180910390a250565b6003602052805f5260405f205f915090505481565b600a81565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b5f600580549050905090565b6060805f60058054905090505f600a905081811115610db5578190505b8067ffffffffffffffff811115610dcf57610dce611c24565b5b604051908082528060200260200182016040528015610dfd5781602001602082028036833780820191505090505b5093508067ffffffffffffffff811115610e1a57610e19611c24565b5b604051908082528060200260200182016040528015610e485781602001602082028036833780820191505090505b5092505f8267ffffffffffffffff811115610e6657610e65611c24565b5b604051908082528060200260200182016040528015610e945781602001602082028036833780820191505090505b5090505f5f90505b828110156110ca575f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90505f5f90505f5f90505b86811015610fbc57848181518110610eec57610eeb611c51565b5b6020026020010151610faf575f60025f60058481548110610f1057610f0f611c51565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff841480610fa157508281115b15610fad578193508092505b505b8080600101915050610ed1565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610feb5750506110ca565b600184838151811061100057610fff611c51565b5b6020026020010190151590811515815250506005828154811061102657611025611c51565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688848151811061106157611060611c51565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808784815181106110af576110ae611c51565b5b60200260200101818152505050508080600101915050610e9c565b505050509091565b6004602052805f5260405f205f915090505481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111146112a5565b5f8111611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90611cc8565b60405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016111b493929190611ce6565b6020604051808303815f875af11580156111d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111f491906118a1565b905080611236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122d90611d65565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f5af8184bef8e4b45eb9f6ed7734d04da38ced226495548f46e0c8ff8d7d9a5248360405161127c91906115d8565b60405180910390a25061128d6112c7565b50565b6002602052805f5260405f205f915090505481565b6112ad6112e1565b60026112bf6112ba611322565b61134b565b5f0181905550565b60016112d96112d4611322565b61134b565b5f0181905550565b6112e9611354565b15611320576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f6002611367611362611322565b61134b565b5f015414905090565b5f5ffd5b5f5ffd5b5f819050919050565b61138a81611378565b8114611394575f5ffd5b50565b5f813590506113a581611381565b92915050565b5f602082840312156113c0576113bf611370565b5b5f6113cd84828501611397565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6113ff826113d6565b9050919050565b61140f816113f5565b82525050565b5f6020820190506114285f830184611406565b92915050565b611437816113f5565b8114611441575f5ffd5b50565b5f813590506114528161142e565b92915050565b5f6020828403121561146d5761146c611370565b5b5f61147a84828501611444565b91505092915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126114a4576114a3611483565b5b8235905067ffffffffffffffff8111156114c1576114c0611487565b5b6020830191508360018202830111156114dd576114dc61148b565b5b9250929050565b5f5f5f5f606085870312156114fc576114fb611370565b5b5f85013567ffffffffffffffff81111561151957611518611374565b5b6115258782880161148f565b9450945050602061153887828801611397565b925050604061154987828801611444565b91505092959194509250565b5f819050919050565b5f61157861157361156e846113d6565b611555565b6113d6565b9050919050565b5f6115898261155e565b9050919050565b5f61159a8261157f565b9050919050565b6115aa81611590565b82525050565b5f6020820190506115c35f8301846115a1565b92915050565b6115d281611378565b82525050565b5f6020820190506115eb5f8301846115c9565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611623816113f5565b82525050565b5f611634838361161a565b60208301905092915050565b5f602082019050919050565b5f611656826115f1565b61166081856115fb565b935061166b8361160b565b805f5b8381101561169b5781516116828882611629565b975061168d83611640565b92505060018101905061166e565b5085935050505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6116da81611378565b82525050565b5f6116eb83836116d1565b60208301905092915050565b5f602082019050919050565b5f61170d826116a8565b61171781856116b2565b9350611722836116c2565b805f5b8381101561175257815161173988826116e0565b9750611744836116f7565b925050600181019050611725565b5085935050505092915050565b5f6040820190508181035f830152611777818561164c565b9050818103602083015261178b8184611703565b90509392505050565b5f61179e8261157f565b9050919050565b6117ae81611794565b82525050565b5f6020820190506117c75f8301846117a5565b92915050565b5f82825260208201905092915050565b7f6e6f7468696e6720746f20636c61696d000000000000000000000000000000005f82015250565b5f6118116010836117cd565b915061181c826117dd565b602082019050919050565b5f6020820190508181035f83015261183e81611805565b9050919050565b5f6040820190506118585f830185611406565b61186560208301846115c9565b9392505050565b5f8115159050919050565b6118808161186c565b811461188a575f5ffd5b50565b5f8151905061189b81611877565b92915050565b5f602082840312156118b6576118b5611370565b5b5f6118c38482850161188d565b91505092915050565b7f75736463207472616e73666572206661696c65640000000000000000000000005f82015250565b5f6119006014836117cd565b915061190b826118cc565b602082019050919050565b5f6020820190508181035f83015261192d816118f4565b9050919050565b7f6e6f74206f70657261746f7200000000000000000000000000000000000000005f82015250565b5f611968600c836117cd565b915061197382611934565b602082019050919050565b5f6020820190508181035f8301526119958161195c565b9050919050565b7f7a65726f207472616e736c61746f7200000000000000000000000000000000005f82015250565b5f6119d0600f836117cd565b91506119db8261199c565b602082019050919050565b5f6020820190508181035f8301526119fd816119c4565b9050919050565b7f7a65726f2066696c6c00000000000000000000000000000000000000000000005f82015250565b5f611a386009836117cd565b9150611a4382611a04565b602082019050919050565b5f6020820190508181035f830152611a6581611a2c565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611aa382611378565b9150611aae83611378565b9250828201905080821115611ac657611ac5611a6c565b5b92915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f611af583856117cd565b9350611b02838584611acc565b611b0b83611ada565b840190509392505050565b5f6060820190508181035f830152611b2f818688611aea565b9050611b3e60208301856115c9565b611b4b60408301846115c9565b95945050505050565b7f7a65726f206f70000000000000000000000000000000000000000000000000005f82015250565b5f611b886007836117cd565b9150611b9382611b54565b602082019050919050565b5f6020820190508181035f830152611bb581611b7c565b9050919050565b7f72657075746174696f6e207a65726f00000000000000000000000000000000005f82015250565b5f611bf0600f836117cd565b9150611bfb82611bbc565b602082019050919050565b5f6020820190508181035f830152611c1d81611be4565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f7a65726f2066756e6400000000000000000000000000000000000000000000005f82015250565b5f611cb26009836117cd565b9150611cbd82611c7e565b602082019050919050565b5f6020820190508181035f830152611cdf81611ca6565b9050919050565b5f606082019050611cf95f830186611406565b611d066020830185611406565b611d1360408301846115c9565b949350505050565b7f75736463207472616e7366657246726f6d206661696c656400000000000000005f82015250565b5f611d4f6018836117cd565b9150611d5a82611d1b565b602082019050919050565b5f6020820190508181035f830152611d7c81611d43565b905091905056fea2646970667358221220b4dba9a6c5cd584362d77f1bdd01e072d3960bfe2ce3d373b35259e36582287c64736f6c63430008230033","sourceMap":"1074:7091:24:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2123:28;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5917:344;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;4967:745;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3671:163;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1600:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3417:248;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1887:44;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1361:45;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1571:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6423:129;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6558:104;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6987:1176;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;1997:44;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1634:37;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4183:263;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1766:49;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2123:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5917:344::-;3023:21:20;:19;:21::i;:::-;5988:14:24::1;6005:9;:21;6015:10;6005:21;;;;;;;;;;;;;;;;5988:38;;6053:1;6044:6;:10;6036:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;6109:1;6085:9;:21;6095:10;6085:21;;;;;;;;;;;;;;;:25;;;;6120:7;6130:4;:13;;;6144:10;6156:6;6130:33;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6120:43;;6181:2;6173:35;;;;;;;;;;;;:::i;:::-;;;;;;;;;6235:10;6223:31;;;6247:6;6223:31;;;;;;:::i;:::-;;;;;;;;5978:283;;3065:20:20::0;:18;:20::i;:::-;5917:344:24;:::o;4967:745::-;2923:8;;;;;;;;;;;2909:22;;:10;:22;;;2901:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;5145:1:::1;5123:24;;:10;:24;;::::0;5115:52:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;5198:1;5185:10;:14;5177:36;;;;;;;;;;;;:::i;:::-;;;;;;;;;5254:10;5224:14;:26;5239:10;5224:26;;;;;;;;;;;;;;;;:40;;;;;;;:::i;:::-;;;;;;;;5299:10;5274:9;:21;5284:10;5274:21;;;;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;;;;;;;;5344:1;5319:9;:21;5329:10;5319:21;;;;;;;;;;;;;;;;:26;;;;;;;:::i;:::-;;;;;;;;5361:17;:29;5379:10;5361:29;;;;;;;;;;;;;;;;;;;;;;;;;5356:139;;5438:4;5406:17;:29;5424:10;5406:29;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;5456:11;5473:10;5456:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5356:139;5540:1;5509:33;;5517:10;;;;;;;;;;;5509:33;;;5505:110;;5558:10;;;;;;;;;;;:22;;;5581:10;5593;5558:46;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5505:110;5644:10;5630:75;;;5656:8;;5666:10;5678:14;:26;5693:10;5678:26;;;;;;;;;;;;;;;;5630:75;;;;;;;;;:::i;:::-;;;;;;;;4967:745:::0;;;;:::o;3671:163::-;2923:8;;;;;;;;;;;2909:22;;:10;:22;;;2901:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;3781:1:::1;3758:25;;:11;:25;;::::0;3750:45:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;3816:11;3805:8;;:22;;;;;;;;;;;;;;;;;;3671:163:::0;:::o;1600:28::-;;;:::o;3417:248::-;2923:8;;;;;;;;;;;2909:22;;:10;:22;;;2901:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;3532:1:::1;3509:25;;:11;:25;;::::0;3501:53:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;3597:11;3564:10;;:45;;;;;;;;;;;;;;;;;;3646:11;3624:34;;;;;;;;;;;;3417:248:::0;:::o;1887:44::-;;;;;;;;;;;;;;;;;:::o;1361:45::-;1404:2;1361:45;:::o;1571:23::-;;;;;;;;;;;;;:::o;6423:129::-;6493:7;6519:14;:26;6534:10;6519:26;;;;;;;;;;;;;;;;6512:33;;6423:129;;;:::o;6558:104::-;6611:7;6637:11;:18;;;;6630:25;;6558:104;:::o;6987:1176::-;7060:25;7087:24;7127:9;7139:11;:18;;;;7127:30;;7167:9;1404:2;7167:28;;7213:1;7209;:5;7205:41;;;7234:1;7230:5;;7205:41;7280:1;7266:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7255:27;;7316:1;7302:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7292:26;;7398:18;7430:1;7419:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7398:34;;7448:12;7463:1;7448:16;;7443:714;7473:1;7466:4;:8;7443:714;;;7498:15;7516:17;7498:35;;7547:15;7565:1;7547:19;;7585:9;7597:1;7585:13;;7580:297;7604:1;7600;:5;7580:297;;;7634:4;7639:1;7634:7;;;;;;;;:::i;:::-;;;;;;;;7643:8;7630:21;7669:9;7681:14;:30;7696:11;7708:1;7696:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;7681:30;;;;;;;;;;;;;;;;7669:42;;7744:17;7733:7;:28;:43;;;;7769:7;7765:1;:11;7733:43;7729:134;;;7810:1;7800:11;;7843:1;7833:11;;7729:134;7612:265;7580:297;7607:3;;;;;;;7580:297;;;;7905:17;7894:7;:28;7890:135;;8005:5;;;;7890:135;8054:4;8038;8043:7;8038:13;;;;;;;;:::i;:::-;;;;;;;:20;;;;;;;;;;;8089:11;8101:7;8089:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8072:8;8081:4;8072:14;;;;;;;;:::i;:::-;;;;;;;:37;;;;;;;;;;;8139:7;8123;8131:4;8123:13;;;;;;;;:::i;:::-;;;;;;;:23;;;;;7484:673;;7476:6;;;;;;;7443:714;;;;7117:1046;;;6987:1176;;:::o;1997:44::-;;;;;;;;;;;;;;;;;:::o;1634:37::-;;;;;;;;;;;;;:::o;4183:263::-;3023:21:20;:19;:21::i;:::-;4262:1:24::1;4253:6;:10;4245:32;;;;;;;;;;;;:::i;:::-;;;;;;;;;4287:7;4297:4;:17;;;4315:10;4335:4;4342:6;4297:52;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4287:62;;4367:2;4359:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;4420:10;4413:26;;;4432:6;4413:26;;;;;;:::i;:::-;;;;;;;;4235:211;3065:20:20::0;:18;:20::i;:::-;4183:263:24;:::o;1766:49::-;;;;;;;;;;;;;;;;;:::o;3749:292:20:-;3872:25;:23;:25::i;:::-;2407:1;3972:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;:62;;;;3749:292::o;4047:253::-;2365:1;4227:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;:66;;;;4047:253::o;3586:157::-;3648:25;:23;:25::i;:::-;3644:93;;;3696:30;;;;;;;;;;;;;;3644:93;3586:157::o;4636:127::-;4706:7;1505:66;4732:24;;4725:31;;4636:127;:::o;2679:163:21:-;2740:21;2822:4;2812:14;;2679:163;;;:::o;4479:151:20:-;4537:4;2407:1;4560:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;;:63;4553:70;;4479:151;:::o;88:117:33:-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:126::-;1062:7;1102:42;1095:5;1091:54;1080:65;;1025:126;;;:::o;1157:96::-;1194:7;1223:24;1241:5;1223:24;:::i;:::-;1212:35;;1157:96;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:122::-;1684:24;1702:5;1684:24;:::i;:::-;1677:5;1674:35;1664:63;;1723:1;1720;1713:12;1664:63;1611:122;:::o;1739:139::-;1785:5;1823:6;1810:20;1801:29;;1839:33;1866:5;1839:33;:::i;:::-;1739:139;;;;:::o;1884:329::-;1943:6;1992:2;1980:9;1971:7;1967:23;1963:32;1960:119;;;1998:79;;:::i;:::-;1960:119;2118:1;2143:53;2188:7;2179:6;2168:9;2164:22;2143:53;:::i;:::-;2133:63;;2089:117;1884:329;;;;:::o;2219:117::-;2328:1;2325;2318:12;2342:117;2451:1;2448;2441:12;2465:117;2574:1;2571;2564:12;2602:553;2660:8;2670:6;2720:3;2713:4;2705:6;2701:17;2697:27;2687:122;;2728:79;;:::i;:::-;2687:122;2841:6;2828:20;2818:30;;2871:18;2863:6;2860:30;2857:117;;;2893:79;;:::i;:::-;2857:117;3007:4;2999:6;2995:17;2983:29;;3061:3;3053:4;3045:6;3041:17;3031:8;3027:32;3024:41;3021:128;;;3068:79;;:::i;:::-;3021:128;2602:553;;;;;:::o;3161:819::-;3250:6;3258;3266;3274;3323:2;3311:9;3302:7;3298:23;3294:32;3291:119;;;3329:79;;:::i;:::-;3291:119;3477:1;3466:9;3462:17;3449:31;3507:18;3499:6;3496:30;3493:117;;;3529:79;;:::i;:::-;3493:117;3642:65;3699:7;3690:6;3679:9;3675:22;3642:65;:::i;:::-;3624:83;;;;3420:297;3756:2;3782:53;3827:7;3818:6;3807:9;3803:22;3782:53;:::i;:::-;3772:63;;3727:118;3884:2;3910:53;3955:7;3946:6;3935:9;3931:22;3910:53;:::i;:::-;3900:63;;3855:118;3161:819;;;;;;;:::o;3986:60::-;4014:3;4035:5;4028:12;;3986:60;;;:::o;4052:142::-;4102:9;4135:53;4153:34;4162:24;4180:5;4162:24;:::i;:::-;4153:34;:::i;:::-;4135:53;:::i;:::-;4122:66;;4052:142;;;:::o;4200:126::-;4250:9;4283:37;4314:5;4283:37;:::i;:::-;4270:50;;4200:126;;;:::o;4332:142::-;4398:9;4431:37;4462:5;4431:37;:::i;:::-;4418:50;;4332:142;;;:::o;4480:163::-;4583:53;4630:5;4583:53;:::i;:::-;4578:3;4571:66;4480:163;;:::o;4649:254::-;4758:4;4796:2;4785:9;4781:18;4773:26;;4809:87;4893:1;4882:9;4878:17;4869:6;4809:87;:::i;:::-;4649:254;;;;:::o;4909:118::-;4996:24;5014:5;4996:24;:::i;:::-;4991:3;4984:37;4909:118;;:::o;5033:222::-;5126:4;5164:2;5153:9;5149:18;5141:26;;5177:71;5245:1;5234:9;5230:17;5221:6;5177:71;:::i;:::-;5033:222;;;;:::o;5261:114::-;5328:6;5362:5;5356:12;5346:22;;5261:114;;;:::o;5381:184::-;5480:11;5514:6;5509:3;5502:19;5554:4;5549:3;5545:14;5530:29;;5381:184;;;;:::o;5571:132::-;5638:4;5661:3;5653:11;;5691:4;5686:3;5682:14;5674:22;;5571:132;;;:::o;5709:108::-;5786:24;5804:5;5786:24;:::i;:::-;5781:3;5774:37;5709:108;;:::o;5823:179::-;5892:10;5913:46;5955:3;5947:6;5913:46;:::i;:::-;5991:4;5986:3;5982:14;5968:28;;5823:179;;;;:::o;6008:113::-;6078:4;6110;6105:3;6101:14;6093:22;;6008:113;;;:::o;6157:732::-;6276:3;6305:54;6353:5;6305:54;:::i;:::-;6375:86;6454:6;6449:3;6375:86;:::i;:::-;6368:93;;6485:56;6535:5;6485:56;:::i;:::-;6564:7;6595:1;6580:284;6605:6;6602:1;6599:13;6580:284;;;6681:6;6675:13;6708:63;6767:3;6752:13;6708:63;:::i;:::-;6701:70;;6794:60;6847:6;6794:60;:::i;:::-;6784:70;;6640:224;6627:1;6624;6620:9;6615:14;;6580:284;;;6584:14;6880:3;6873:10;;6281:608;;;6157:732;;;;:::o;6895:114::-;6962:6;6996:5;6990:12;6980:22;;6895:114;;;:::o;7015:184::-;7114:11;7148:6;7143:3;7136:19;7188:4;7183:3;7179:14;7164:29;;7015:184;;;;:::o;7205:132::-;7272:4;7295:3;7287:11;;7325:4;7320:3;7316:14;7308:22;;7205:132;;;:::o;7343:108::-;7420:24;7438:5;7420:24;:::i;:::-;7415:3;7408:37;7343:108;;:::o;7457:179::-;7526:10;7547:46;7589:3;7581:6;7547:46;:::i;:::-;7625:4;7620:3;7616:14;7602:28;;7457:179;;;;:::o;7642:113::-;7712:4;7744;7739:3;7735:14;7727:22;;7642:113;;;:::o;7791:732::-;7910:3;7939:54;7987:5;7939:54;:::i;:::-;8009:86;8088:6;8083:3;8009:86;:::i;:::-;8002:93;;8119:56;8169:5;8119:56;:::i;:::-;8198:7;8229:1;8214:284;8239:6;8236:1;8233:13;8214:284;;;8315:6;8309:13;8342:63;8401:3;8386:13;8342:63;:::i;:::-;8335:70;;8428:60;8481:6;8428:60;:::i;:::-;8418:70;;8274:224;8261:1;8258;8254:9;8249:14;;8214:284;;;8218:14;8514:3;8507:10;;7915:608;;;7791:732;;;;:::o;8529:634::-;8750:4;8788:2;8777:9;8773:18;8765:26;;8837:9;8831:4;8827:20;8823:1;8812:9;8808:17;8801:47;8865:108;8968:4;8959:6;8865:108;:::i;:::-;8857:116;;9020:9;9014:4;9010:20;9005:2;8994:9;8990:18;8983:48;9048:108;9151:4;9142:6;9048:108;:::i;:::-;9040:116;;8529:634;;;;;:::o;9169:155::-;9248:9;9281:37;9312:5;9281:37;:::i;:::-;9268:50;;9169:155;;;:::o;9330:189::-;9446:66;9506:5;9446:66;:::i;:::-;9441:3;9434:79;9330:189;;:::o;9525:280::-;9647:4;9685:2;9674:9;9670:18;9662:26;;9698:100;9795:1;9784:9;9780:17;9771:6;9698:100;:::i;:::-;9525:280;;;;:::o;9811:169::-;9895:11;9929:6;9924:3;9917:19;9969:4;9964:3;9960:14;9945:29;;9811:169;;;;:::o;9986:166::-;10126:18;10122:1;10114:6;10110:14;10103:42;9986:166;:::o;10158:366::-;10300:3;10321:67;10385:2;10380:3;10321:67;:::i;:::-;10314:74;;10397:93;10486:3;10397:93;:::i;:::-;10515:2;10510:3;10506:12;10499:19;;10158:366;;;:::o;10530:419::-;10696:4;10734:2;10723:9;10719:18;10711:26;;10783:9;10777:4;10773:20;10769:1;10758:9;10754:17;10747:47;10811:131;10937:4;10811:131;:::i;:::-;10803:139;;10530:419;;;:::o;10955:332::-;11076:4;11114:2;11103:9;11099:18;11091:26;;11127:71;11195:1;11184:9;11180:17;11171:6;11127:71;:::i;:::-;11208:72;11276:2;11265:9;11261:18;11252:6;11208:72;:::i;:::-;10955:332;;;;;:::o;11293:90::-;11327:7;11370:5;11363:13;11356:21;11345:32;;11293:90;;;:::o;11389:116::-;11459:21;11474:5;11459:21;:::i;:::-;11452:5;11449:32;11439:60;;11495:1;11492;11485:12;11439:60;11389:116;:::o;11511:137::-;11565:5;11596:6;11590:13;11581:22;;11612:30;11636:5;11612:30;:::i;:::-;11511:137;;;;:::o;11654:345::-;11721:6;11770:2;11758:9;11749:7;11745:23;11741:32;11738:119;;;11776:79;;:::i;:::-;11738:119;11896:1;11921:61;11974:7;11965:6;11954:9;11950:22;11921:61;:::i;:::-;11911:71;;11867:125;11654:345;;;;:::o;12005:170::-;12145:22;12141:1;12133:6;12129:14;12122:46;12005:170;:::o;12181:366::-;12323:3;12344:67;12408:2;12403:3;12344:67;:::i;:::-;12337:74;;12420:93;12509:3;12420:93;:::i;:::-;12538:2;12533:3;12529:12;12522:19;;12181:366;;;:::o;12553:419::-;12719:4;12757:2;12746:9;12742:18;12734:26;;12806:9;12800:4;12796:20;12792:1;12781:9;12777:17;12770:47;12834:131;12960:4;12834:131;:::i;:::-;12826:139;;12553:419;;;:::o;12978:162::-;13118:14;13114:1;13106:6;13102:14;13095:38;12978:162;:::o;13146:366::-;13288:3;13309:67;13373:2;13368:3;13309:67;:::i;:::-;13302:74;;13385:93;13474:3;13385:93;:::i;:::-;13503:2;13498:3;13494:12;13487:19;;13146:366;;;:::o;13518:419::-;13684:4;13722:2;13711:9;13707:18;13699:26;;13771:9;13765:4;13761:20;13757:1;13746:9;13742:17;13735:47;13799:131;13925:4;13799:131;:::i;:::-;13791:139;;13518:419;;;:::o;13943:165::-;14083:17;14079:1;14071:6;14067:14;14060:41;13943:165;:::o;14114:366::-;14256:3;14277:67;14341:2;14336:3;14277:67;:::i;:::-;14270:74;;14353:93;14442:3;14353:93;:::i;:::-;14471:2;14466:3;14462:12;14455:19;;14114:366;;;:::o;14486:419::-;14652:4;14690:2;14679:9;14675:18;14667:26;;14739:9;14733:4;14729:20;14725:1;14714:9;14710:17;14703:47;14767:131;14893:4;14767:131;:::i;:::-;14759:139;;14486:419;;;:::o;14911:159::-;15051:11;15047:1;15039:6;15035:14;15028:35;14911:159;:::o;15076:365::-;15218:3;15239:66;15303:1;15298:3;15239:66;:::i;:::-;15232:73;;15314:93;15403:3;15314:93;:::i;:::-;15432:2;15427:3;15423:12;15416:19;;15076:365;;;:::o;15447:419::-;15613:4;15651:2;15640:9;15636:18;15628:26;;15700:9;15694:4;15690:20;15686:1;15675:9;15671:17;15664:47;15728:131;15854:4;15728:131;:::i;:::-;15720:139;;15447:419;;;:::o;15872:180::-;15920:77;15917:1;15910:88;16017:4;16014:1;16007:15;16041:4;16038:1;16031:15;16058:191;16098:3;16117:20;16135:1;16117:20;:::i;:::-;16112:25;;16151:20;16169:1;16151:20;:::i;:::-;16146:25;;16194:1;16191;16187:9;16180:16;;16215:3;16212:1;16209:10;16206:36;;;16222:18;;:::i;:::-;16206:36;16058:191;;;;:::o;16255:148::-;16353:6;16348:3;16343;16330:30;16394:1;16385:6;16380:3;16376:16;16369:27;16255:148;;;:::o;16409:102::-;16450:6;16501:2;16497:7;16492:2;16485:5;16481:14;16477:28;16467:38;;16409:102;;;:::o;16541:317::-;16639:3;16660:71;16724:6;16719:3;16660:71;:::i;:::-;16653:78;;16741:56;16790:6;16785:3;16778:5;16741:56;:::i;:::-;16822:29;16844:6;16822:29;:::i;:::-;16817:3;16813:39;16806:46;;16541:317;;;;;:::o;16864:553::-;17043:4;17081:2;17070:9;17066:18;17058:26;;17130:9;17124:4;17120:20;17116:1;17105:9;17101:17;17094:47;17158:88;17241:4;17232:6;17224;17158:88;:::i;:::-;17150:96;;17256:72;17324:2;17313:9;17309:18;17300:6;17256:72;:::i;:::-;17338;17406:2;17395:9;17391:18;17382:6;17338:72;:::i;:::-;16864:553;;;;;;;:::o;17423:157::-;17563:9;17559:1;17551:6;17547:14;17540:33;17423:157;:::o;17586:365::-;17728:3;17749:66;17813:1;17808:3;17749:66;:::i;:::-;17742:73;;17824:93;17913:3;17824:93;:::i;:::-;17942:2;17937:3;17933:12;17926:19;;17586:365;;;:::o;17957:419::-;18123:4;18161:2;18150:9;18146:18;18138:26;;18210:9;18204:4;18200:20;18196:1;18185:9;18181:17;18174:47;18238:131;18364:4;18238:131;:::i;:::-;18230:139;;17957:419;;;:::o;18382:165::-;18522:17;18518:1;18510:6;18506:14;18499:41;18382:165;:::o;18553:366::-;18695:3;18716:67;18780:2;18775:3;18716:67;:::i;:::-;18709:74;;18792:93;18881:3;18792:93;:::i;:::-;18910:2;18905:3;18901:12;18894:19;;18553:366;;;:::o;18925:419::-;19091:4;19129:2;19118:9;19114:18;19106:26;;19178:9;19172:4;19168:20;19164:1;19153:9;19149:17;19142:47;19206:131;19332:4;19206:131;:::i;:::-;19198:139;;18925:419;;;:::o;19350:180::-;19398:77;19395:1;19388:88;19495:4;19492:1;19485:15;19519:4;19516:1;19509:15;19536:180;19584:77;19581:1;19574:88;19681:4;19678:1;19671:15;19705:4;19702:1;19695:15;19722:159;19862:11;19858:1;19850:6;19846:14;19839:35;19722:159;:::o;19887:365::-;20029:3;20050:66;20114:1;20109:3;20050:66;:::i;:::-;20043:73;;20125:93;20214:3;20125:93;:::i;:::-;20243:2;20238:3;20234:12;20227:19;;19887:365;;;:::o;20258:419::-;20424:4;20462:2;20451:9;20447:18;20439:26;;20511:9;20505:4;20501:20;20497:1;20486:9;20482:17;20475:47;20539:131;20665:4;20539:131;:::i;:::-;20531:139;;20258:419;;;:::o;20683:442::-;20832:4;20870:2;20859:9;20855:18;20847:26;;20883:71;20951:1;20940:9;20936:17;20927:6;20883:71;:::i;:::-;20964:72;21032:2;21021:9;21017:18;21008:6;20964:72;:::i;:::-;21046;21114:2;21103:9;21099:18;21090:6;21046:72;:::i;:::-;20683:442;;;;;;:::o;21131:174::-;21271:26;21267:1;21259:6;21255:14;21248:50;21131:174;:::o;21311:366::-;21453:3;21474:67;21538:2;21533:3;21474:67;:::i;:::-;21467:74;;21550:93;21639:3;21550:93;:::i;:::-;21668:2;21663:3;21659:12;21652:19;;21311:366;;;:::o;21683:419::-;21849:4;21887:2;21876:9;21872:18;21864:26;;21936:9;21930:4;21926:20;21922:1;21911:9;21907:17;21900:47;21964:131;22090:4;21964:131;:::i;:::-;21956:139;;21683:419;;;:::o","linkReferences":{},"immutableReferences":{"44548":[{"start":1085,"length":32},{"start":2916,"length":32},{"start":4441,"length":32}]}},"methodIdentifiers":{"LEADERBOARD_SIZE()":"4f085f42","claimFees(address)":"15a0ea6a","claimable(address)":"402914f5","cumulativeFees(address)":"dc13fea6","fillCount(address)":"9f5ce378","fund(uint256)":"ca1d209d","getCumulativeFees(address)":"69c8b95a","getLeaderboard()":"6d763a6e","getTranslatorCount()":"6ab42944","operator()":"570ca735","recordFill(string,uint256,address)":"2200fdbb","reputation()":"c52164c6","setReputationRegistry(address)":"3f0ce714","transferOperator(address)":"29605e77","translators(uint256)":"008b6c82","usdc()":"3e413bee"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_usdc\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_reputation\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"translator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"}],\"name\":\"FeesClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Funded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"translator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"marketId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newCumulative\",\"type\":\"uint256\"}],\"name\":\"PayoutAccrued\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"ReputationRegistrySet\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"LEADERBOARD_SIZE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"translator\",\"type\":\"address\"}],\"name\":\"claimFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"cumulativeFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"fillCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"fund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"translator\",\"type\":\"address\"}],\"name\":\"getCumulativeFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLeaderboard\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"topAddrs\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"topFees\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTranslatorCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"marketId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"fillAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"translator\",\"type\":\"address\"}],\"name\":\"recordFill\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reputation\",\"outputs\":[{\"internalType\":\"contract IReputationRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_reputation\",\"type\":\"address\"}],\"name\":\"setReputationRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOperator\",\"type\":\"address\"}],\"name\":\"transferOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"translators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdc\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The operator (Polymarket fill listener service) is the sole address allowed to invoke recordFill. recordFill assumes the corresponding USDC has already been deposited into this contract (e.g. via the builder-fee payout). For convenience there is also `fund()` so the operator can pre-deposit USDC tokens.\",\"errors\":{\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}]},\"kind\":\"dev\",\"methods\":{\"recordFill(string,uint256,address)\":{\"params\":{\"fillAmount\":\"USDC amount in the token's base units to credit to translator.\",\"marketId\":\"Off-chain Polymarket market identifier (passed through in event).\",\"translator\":\"Address of the winning translator entitled to the fee.\"}}},\"title\":\"BuilderFeeRouter\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"LEADERBOARD_SIZE()\":{\"notice\":\"Number of leaderboard entries returned by getLeaderboard().\"},\"claimFees(address)\":{\"notice\":\"Claim all currently-claimable USDC for `translator`. Anyone may trigger this on behalf of the translator; funds always flow to the translator address.\"},\"claimable(address)\":{\"notice\":\"Currently claimable USDC balance per translator.\"},\"cumulativeFees(address)\":{\"notice\":\"Total fees earned (lifetime) per translator, including already-claimed.\"},\"fillCount(address)\":{\"notice\":\"Number of fills recorded for a translator.\"},\"fund(uint256)\":{\"notice\":\"Pull USDC from caller into the router. Operator usually calls this after withdrawing builder fees from Polymarket.\"},\"getLeaderboard()\":{\"notice\":\"Returns the top-LEADERBOARD_SIZE translators by lifetime fees. Performs an O(N*K) in-memory selection where N=translators.length and K=LEADERBOARD_SIZE. Suitable for hackathon-scale leaderboards; if N grows past ~1000 consider a paginated off-chain sort.\"},\"recordFill(string,uint256,address)\":{\"notice\":\"Record a Polymarket fill that credits builder fees to a translator.\"},\"translators(uint256)\":{\"notice\":\"All translators ever credited (for leaderboard iteration).\"}},\"notice\":\"Records builder-fee accrual to winning translators per Polymarket fill event, lets translators claim their accumulated USDC, and exposes a top-10 leaderboard view.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/BuilderFeeRouter.sol\":\"BuilderFeeRouter\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"src/BuilderFeeRouter.sol\":{\"keccak256\":\"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d\",\"dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_reputation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"type":"error","name":"ReentrancyGuardReentrantCall"},{"inputs":[{"internalType":"address","name":"translator","type":"address","indexed":true},{"internalType":"uint256","name":"totalAmount","type":"uint256","indexed":false}],"type":"event","name":"FeesClaimed","anonymous":false},{"inputs":[{"internalType":"address","name":"from","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false}],"type":"event","name":"Funded","anonymous":false},{"inputs":[{"internalType":"address","name":"translator","type":"address","indexed":true},{"internalType":"string","name":"marketId","type":"string","indexed":false},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false},{"internalType":"uint256","name":"newCumulative","type":"uint256","indexed":false}],"type":"event","name":"PayoutAccrued","anonymous":false},{"inputs":[{"internalType":"address","name":"registry","type":"address","indexed":true}],"type":"event","name":"ReputationRegistrySet","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"LEADERBOARD_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"translator","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"claimFees"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"cumulativeFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"fillCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"fund"},{"inputs":[{"internalType":"address","name":"translator","type":"address"}],"stateMutability":"view","type":"function","name":"getCumulativeFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getLeaderboard","outputs":[{"internalType":"address[]","name":"topAddrs","type":"address[]"},{"internalType":"uint256[]","name":"topFees","type":"uint256[]"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getTranslatorCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"string","name":"marketId","type":"string"},{"internalType":"uint256","name":"fillAmount","type":"uint256"},{"internalType":"address","name":"translator","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"recordFill"},{"inputs":[],"stateMutability":"view","type":"function","name":"reputation","outputs":[{"internalType":"contract IReputationRegistry","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"_reputation","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"setReputationRegistry"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"transferOperator"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function","name":"translators","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}]}],"devdoc":{"kind":"dev","methods":{"recordFill(string,uint256,address)":{"params":{"fillAmount":"USDC amount in the token's base units to credit to translator.","marketId":"Off-chain Polymarket market identifier (passed through in event).","translator":"Address of the winning translator entitled to the fee."}}},"version":1},"userdoc":{"kind":"user","methods":{"LEADERBOARD_SIZE()":{"notice":"Number of leaderboard entries returned by getLeaderboard()."},"claimFees(address)":{"notice":"Claim all currently-claimable USDC for `translator`. Anyone may trigger this on behalf of the translator; funds always flow to the translator address."},"claimable(address)":{"notice":"Currently claimable USDC balance per translator."},"cumulativeFees(address)":{"notice":"Total fees earned (lifetime) per translator, including already-claimed."},"fillCount(address)":{"notice":"Number of fills recorded for a translator."},"fund(uint256)":{"notice":"Pull USDC from caller into the router. Operator usually calls this after withdrawing builder fees from Polymarket."},"getLeaderboard()":{"notice":"Returns the top-LEADERBOARD_SIZE translators by lifetime fees. Performs an O(N*K) in-memory selection where N=translators.length and K=LEADERBOARD_SIZE. Suitable for hackathon-scale leaderboards; if N grows past ~1000 consider a paginated off-chain sort."},"recordFill(string,uint256,address)":{"notice":"Record a Polymarket fill that credits builder fees to a translator."},"translators(uint256)":{"notice":"All translators ever credited (for leaderboard iteration)."}},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/BuilderFeeRouter.sol":"BuilderFeeRouter"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"src/BuilderFeeRouter.sol":{"keccak256":"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a","urls":["bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d","dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ"],"license":"MIT"}},"version":1},"id":24}
contracts/out/BuilderFeeRouter.sol/IERC20.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transfer","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"balanceOf(address)":"70a08231","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/BuilderFeeRouter.sol\":\"IERC20\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"src/BuilderFeeRouter.sol\":{\"keccak256\":\"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d\",\"dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function","name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/BuilderFeeRouter.sol":"IERC20"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"src/BuilderFeeRouter.sol":{"keccak256":"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a","urls":["bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d","dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ"],"license":"MIT"}},"version":1},"id":24}
contracts/out/BuilderFeeRouter.sol/IReputationRegistry.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"function","name":"updateOnFee","inputs":[{"name":"agent","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"updateOnFee(address,uint256)":"c53214b3"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"agent\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"updateOnFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/BuilderFeeRouter.sol\":\"IReputationRegistry\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"src/BuilderFeeRouter.sol\":{\"keccak256\":\"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d\",\"dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"agent","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"updateOnFee"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/BuilderFeeRouter.sol":"IReputationRegistry"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"src/BuilderFeeRouter.sol":{"keccak256":"0xed12af4bf07884917ff28f47e74caa1d1bde54408e0a8a3245a89bdf4e0da68a","urls":["bzz-raw://2feaaadd8b16c645af61af97b57def3c43df599af0e55e3fe12c889685e76b2d","dweb:/ipfs/QmZVDkgcxzAy53xBUEzPmgmu1GH5b41t5u5v6Yz1a98UhJ"],"license":"MIT"}},"version":1},"id":24}
contracts/out/Fuzz.t.sol/FuzzTests.json ADDED
The diff for this file is too large to render. See raw diff
 
contracts/out/IMulticall3.sol/IMulticall3.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"function","name":"aggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"returnData","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"payable"},{"type":"function","name":"aggregate3","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"aggregate3Value","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call3Value[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"allowFailure","type":"bool","internalType":"bool"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"blockAndAggregate","inputs":[{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"getBasefee","inputs":[],"outputs":[{"name":"basefee","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getBlockHash","inputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getBlockNumber","inputs":[],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getChainId","inputs":[],"outputs":[{"name":"chainid","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockCoinbase","inputs":[],"outputs":[{"name":"coinbase","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockDifficulty","inputs":[],"outputs":[{"name":"difficulty","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockGasLimit","inputs":[],"outputs":[{"name":"gaslimit","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getCurrentBlockTimestamp","inputs":[],"outputs":[{"name":"timestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getEthBalance","inputs":[{"name":"addr","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getLastBlockHash","inputs":[],"outputs":[{"name":"blockHash","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"tryAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"},{"type":"function","name":"tryBlockAndAggregate","inputs":[{"name":"requireSuccess","type":"bool","internalType":"bool"},{"name":"calls","type":"tuple[]","internalType":"struct IMulticall3.Call[]","components":[{"name":"target","type":"address","internalType":"address"},{"name":"callData","type":"bytes","internalType":"bytes"}]}],"outputs":[{"name":"blockNumber","type":"uint256","internalType":"uint256"},{"name":"blockHash","type":"bytes32","internalType":"bytes32"},{"name":"returnData","type":"tuple[]","internalType":"struct IMulticall3.Result[]","components":[{"name":"success","type":"bool","internalType":"bool"},{"name":"returnData","type":"bytes","internalType":"bytes"}]}],"stateMutability":"payable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"aggregate((address,bytes)[])":"252dba42","aggregate3((address,bool,bytes)[])":"82ad56cb","aggregate3Value((address,bool,uint256,bytes)[])":"174dea71","blockAndAggregate((address,bytes)[])":"c3077fa9","getBasefee()":"3e64a696","getBlockHash(uint256)":"ee82ac5e","getBlockNumber()":"42cbb15c","getChainId()":"3408e470","getCurrentBlockCoinbase()":"a8b0574e","getCurrentBlockDifficulty()":"72425d9d","getCurrentBlockGasLimit()":"86d516e8","getCurrentBlockTimestamp()":"0f28c97d","getEthBalance(address)":"4d2301cc","getLastBlockHash()":"27e86d6e","tryAggregate(bool,(address,bytes)[])":"bce38bd7","tryBlockAndAggregate(bool,(address,bytes)[])":"399542e9"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"struct IMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/forge-std/src/interfaces/IMulticall3.sol\":\"IMulticall3\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/forge-std/src/interfaces/IMulticall3.sol\":{\"keccak256\":\"0x946a8ca9f2e2c69d9d70280de4b599b6396c18770d290bc0506572e66a316e42\",\"license\":\"MIT OR Apache-2.0\",\"urls\":[\"bzz-raw://6ba843a261e1c249858a0ebd81eb52e1519dc21ab630ca815697cf358375aceb\",\"dweb:/ipfs/QmeJoNPhPD4oRwnirwDzzakapZrFQwsA7pQqQYwyDmGq42\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}]},{"inputs":[{"internalType":"struct IMulticall3.Call3[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call3Value[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"allowFailure","type":"bool"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"aggregate3Value","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"blockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBasefee","outputs":[{"internalType":"uint256","name":"basefee","type":"uint256"}]},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"view","type":"function","name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getBlockNumber","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getChainId","outputs":[{"internalType":"uint256","name":"chainid","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"stateMutability":"view","type":"function","name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryAggregate","outputs":[{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]},{"inputs":[{"internalType":"bool","name":"requireSuccess","type":"bool"},{"internalType":"struct IMulticall3.Call[]","name":"calls","type":"tuple[]","components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"tryBlockAndAggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes32","name":"blockHash","type":"bytes32"},{"internalType":"struct IMulticall3.Result[]","name":"returnData","type":"tuple[]","components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}]}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/forge-std/src/interfaces/IMulticall3.sol":"IMulticall3"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/forge-std/src/interfaces/IMulticall3.sol":{"keccak256":"0x946a8ca9f2e2c69d9d70280de4b599b6396c18770d290bc0506572e66a316e42","urls":["bzz-raw://6ba843a261e1c249858a0ebd81eb52e1519dc21ab630ca815697cf358375aceb","dweb:/ipfs/QmeJoNPhPD4oRwnirwDzzakapZrFQwsA7pQqQYwyDmGq42"],"license":"MIT OR Apache-2.0"}},"version":1},"id":17}
contracts/out/Invariants.t.sol/AuctionHandler.json ADDED
The diff for this file is too large to render. See raw diff
 
contracts/out/Invariants.t.sol/InvariantsTest.json ADDED
The diff for this file is too large to render. See raw diff
 
contracts/out/JudgePanel.sol/IERC20.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transfer","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"balanceOf(address)":"70a08231","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Minimal ERC20 surface used by JudgePanel.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/JudgePanel.sol\":\"IERC20\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"src/JudgePanel.sol\":{\"keccak256\":\"0x3e529fef31d37d1a7836c25d881d8667682c45e6db87eb31be21b3368c13d737\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e76ca3d0dbb3a0977f875b30339d9046362ba7b711744609f1c64c52d49bcbd9\",\"dweb:/ipfs/QmUuMkujLQg7LCejaVc69opf2TANKJANRUGXxnWwNjwFUN\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function","name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function","name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/JudgePanel.sol":"IERC20"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"src/JudgePanel.sol":{"keccak256":"0x3e529fef31d37d1a7836c25d881d8667682c45e6db87eb31be21b3368c13d737","urls":["bzz-raw://e76ca3d0dbb3a0977f875b30339d9046362ba7b711744609f1c64c52d49bcbd9","dweb:/ipfs/QmUuMkujLQg7LCejaVc69opf2TANKJANRUGXxnWwNjwFUN"],"license":"MIT"}},"version":1},"id":25}
contracts/out/JudgePanel.sol/JudgePanel.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[{"type":"constructor","inputs":[{"name":"_usdc","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"JUDGE_TYPE_STYLE","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"JUDGE_TYPE_TRANSLATION","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"STYLE_JUDGE_STAKE","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"TRANSLATION_JUDGE_STAKE","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"attestationCount","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getJudgeInfo","inputs":[{"name":"judge","type":"address","internalType":"address"}],"outputs":[{"name":"stake","type":"uint256","internalType":"uint256"},{"name":"translation","type":"bool","internalType":"bool"},{"name":"style","type":"bool","internalType":"bool"},{"name":"attestations","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"isStyleJudge","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isTranslationJudge","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"judgeStakes","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"operator","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"recordAttestation","inputs":[{"name":"eventId","type":"bytes32","internalType":"bytes32"},{"name":"judge","type":"address","internalType":"address"},{"name":"score","type":"uint256","internalType":"uint256"},{"name":"attestationHash","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"registerStyleJudge","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"registerTranslationJudge","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"slashJudge","inputs":[{"name":"judge","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"reason","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferOperator","inputs":[{"name":"newOperator","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"usdc","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"type":"function","name":"withdrawJudge","inputs":[{"name":"judge","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"AttestationRecorded","inputs":[{"name":"eventId","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"judge","type":"address","indexed":true,"internalType":"address"},{"name":"score","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"attestationHash","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"JudgeRegistered","inputs":[{"name":"judge","type":"address","indexed":true,"internalType":"address"},{"name":"judgeType","type":"string","indexed":false,"internalType":"string"},{"name":"stake","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"JudgeSlashed","inputs":[{"name":"judge","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"reason","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"JudgeWithdrew","inputs":[{"name":"judge","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]}],"bytecode":{"object":"0x60a060405234801561000f575f5ffd5b50604051612077380380612077833981810160405281019061003191906101cc565b600161004f61004461013c60201b60201c565b61016560201b60201c565b5f01819055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016100ba90610251565b60405180910390fd5b335f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505061026f565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61019b82610172565b9050919050565b6101ab81610191565b81146101b5575f5ffd5b50565b5f815190506101c6816101a2565b92915050565b5f602082840312156101e1576101e061016e565b5b5f6101ee848285016101b8565b91505092915050565b5f82825260208201905092915050565b7f75736463207a65726f00000000000000000000000000000000000000000000005f82015250565b5f61023b6009836101f7565b915061024682610207565b602082019050919050565b5f6020820190508181035f8301526102688161022f565b9050919050565b608051611ddb61029c5f395f81816105b60152818161077901528181610e8e01526111ff0152611ddb5ff3fe608060405234801561000f575f5ffd5b5060043610610109575f3560e01c80636789a2be116100a0578063ba04c7e71161006f578063ba04c7e714610293578063d119d82e146102c6578063e8343598146102f6578063ed70e59114610312578063f95737b11461031c57610109565b80636789a2be146102095780636dd2a25914610227578063acdfba9314610245578063b71b8c431461027557610109565b80633e413bee116100dc5780633e413bee1461018157806344bb1cbf1461019f578063460b3236146101cf578063570ca735146101eb57610109565b806329605e771461010d5780632d645e19146101295780632d81f2cf14610133578063383ff02914610151575b5f5ffd5b6101276004803603810190610122919061145a565b610338565b005b610131610476565b005b61013b610729565b60405161014891906114f5565b60405180910390f35b61016b6004803603810190610166919061145a565b610762565b604051610178919061152d565b60405180910390f35b610189610777565b60405161019691906115a1565b60405180910390f35b6101b960048036038101906101b4919061145a565b61079b565b6040516101c6919061152d565b60405180910390f35b6101e960048036038101906101e49190611645565b6107b0565b005b6101f3610973565b60405161020091906116c5565b60405180910390f35b610211610997565b60405161021e919061152d565b60405180910390f35b61022f61099e565b60405161023c91906114f5565b60405180910390f35b61025f600480360381019061025a919061145a565b6109d7565b60405161026c91906116f8565b60405180910390f35b61027d6109f4565b60405161028a919061152d565b60405180910390f35b6102ad60048036038101906102a8919061145a565b6109fb565b6040516102bd9493929190611711565b60405180910390f35b6102e060048036038101906102db919061145a565b610b1e565b6040516102ed91906116f8565b60405180910390f35b610310600480360381019061030b9190611787565b610b3b565b005b61031a610d4e565b005b6103366004803603810190610331919061145a565b611001565b005b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bd90611835565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042b9061189d565b60405180910390fd5b805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61047e61132d565b60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ff90611905565b60405180910390fd5b620f424060015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546105579190611950565b92505081905550600160035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330620f42406040518463ffffffff1660e01b815260040161061493929190611983565b6020604051808303815f875af1158015610630573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061065491906119e2565b905080610696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068d90611a57565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f985cf908467605a35ba80b49d65db63988891884d6c8cff8a233d190d1ba8d956040518060400160405280600581526020017f7374796c65000000000000000000000000000000000000000000000000000000815250620f4240604051610716929190611a75565b60405180910390a25061072761134f565b565b6040518060400160405280600b81526020017f7472616e736c6174696f6e00000000000000000000000000000000000000000081525081565b6001602052805f5260405f205f915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6004602052805f5260405f205f915090505481565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461083e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083590611835565b60405180910390fd5b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8411801561088e5750808411155b6108cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c490611aed565b60405180910390fd5b83816108d99190611b0b565b60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508473ffffffffffffffffffffffffffffffffffffffff167f09efceaa07cf64b1ca092fbc0ac25e347f17ff67d5e8d130ed8cf608f70508a185858560405161096493929190611b78565b60405180910390a25050505050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b621e848081565b6040518060400160405280600581526020017f7374796c6500000000000000000000000000000000000000000000000000000081525081565b6003602052805f5260405f205f915054906101000a900460ff1681565b620f424081565b5f5f5f5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660035f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660045f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205493509350935093509193509193565b6002602052805f5260405f205f915054906101000a900460ff1681565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc090611835565b60405180910390fd5b60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680610c64575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90611bf2565b60405180910390fd5b600160045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610cf09190611950565b925050819055508273ffffffffffffffffffffffffffffffffffffffff16847f1ef435a452a6ea16f75367f8d0db466f2a6634b3f822f43a67c4345908f44c688484604051610d40929190611c1f565b60405180910390a350505050565b610d5661132d565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd790611c90565b60405180910390fd5b621e848060015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610e2f9190611950565b92505081905550600160025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330621e84806040518463ffffffff1660e01b8152600401610eec93929190611983565b6020604051808303815f875af1158015610f08573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f2c91906119e2565b905080610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6590611a57565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f985cf908467605a35ba80b49d65db63988891884d6c8cff8a233d190d1ba8d956040518060400160405280600b81526020017f7472616e736c6174696f6e000000000000000000000000000000000000000000815250621e8480604051610fee929190611a75565b60405180910390a250610fff61134f565b565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690611835565b60405180910390fd5b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111611112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110990611cf8565b60405180910390fd5b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401611258929190611d16565b6020604051808303815f875af1158015611274573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129891906119e2565b9050806112da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d190611d87565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f6ff919a987a0f838f27b922cbc3c72013eb35157bb1b0590cb1969c39ef369f883604051611320919061152d565b60405180910390a2505050565b611335611369565b60026113476113426113aa565b6113d3565b5f0181905550565b600161136161135c6113aa565b6113d3565b5f0181905550565b6113716113dc565b156113a8576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f60026113ef6113ea6113aa565b6113d3565b5f015414905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61142982611400565b9050919050565b6114398161141f565b8114611443575f5ffd5b50565b5f8135905061145481611430565b92915050565b5f6020828403121561146f5761146e6113f8565b5b5f61147c84828501611446565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114c782611485565b6114d1818561148f565b93506114e181856020860161149f565b6114ea816114ad565b840191505092915050565b5f6020820190508181035f83015261150d81846114bd565b905092915050565b5f819050919050565b61152781611515565b82525050565b5f6020820190506115405f83018461151e565b92915050565b5f819050919050565b5f61156961156461155f84611400565b611546565b611400565b9050919050565b5f61157a8261154f565b9050919050565b5f61158b82611570565b9050919050565b61159b81611581565b82525050565b5f6020820190506115b45f830184611592565b92915050565b6115c381611515565b81146115cd575f5ffd5b50565b5f813590506115de816115ba565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112611605576116046115e4565b5b8235905067ffffffffffffffff811115611622576116216115e8565b5b60208301915083600182028301111561163e5761163d6115ec565b5b9250929050565b5f5f5f5f6060858703121561165d5761165c6113f8565b5b5f61166a87828801611446565b945050602061167b878288016115d0565b935050604085013567ffffffffffffffff81111561169c5761169b6113fc565b5b6116a8878288016115f0565b925092505092959194509250565b6116bf8161141f565b82525050565b5f6020820190506116d85f8301846116b6565b92915050565b5f8115159050919050565b6116f2816116de565b82525050565b5f60208201905061170b5f8301846116e9565b92915050565b5f6080820190506117245f83018761151e565b61173160208301866116e9565b61173e60408301856116e9565b61174b606083018461151e565b95945050505050565b5f819050919050565b61176681611754565b8114611770575f5ffd5b50565b5f813590506117818161175d565b92915050565b5f5f5f5f6080858703121561179f5761179e6113f8565b5b5f6117ac87828801611773565b94505060206117bd87828801611446565b93505060406117ce878288016115d0565b92505060606117df87828801611773565b91505092959194509250565b7f6e6f74206f70657261746f7200000000000000000000000000000000000000005f82015250565b5f61181f600c8361148f565b915061182a826117eb565b602082019050919050565b5f6020820190508181035f83015261184c81611813565b9050919050565b7f7a65726f206f70000000000000000000000000000000000000000000000000005f82015250565b5f61188760078361148f565b915061189282611853565b602082019050919050565b5f6020820190508181035f8301526118b48161187b565b9050919050565b7f616c7265616479207374796c65206a75646765000000000000000000000000005f82015250565b5f6118ef60138361148f565b91506118fa826118bb565b602082019050919050565b5f6020820190508181035f83015261191c816118e3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61195a82611515565b915061196583611515565b925082820190508082111561197d5761197c611923565b5b92915050565b5f6060820190506119965f8301866116b6565b6119a360208301856116b6565b6119b0604083018461151e565b949350505050565b6119c1816116de565b81146119cb575f5ffd5b50565b5f815190506119dc816119b8565b92915050565b5f602082840312156119f7576119f66113f8565b5b5f611a04848285016119ce565b91505092915050565b7f75736463207472616e7366657246726f6d206661696c656400000000000000005f82015250565b5f611a4160188361148f565b9150611a4c82611a0d565b602082019050919050565b5f6020820190508181035f830152611a6e81611a35565b9050919050565b5f6040820190508181035f830152611a8d81856114bd565b9050611a9c602083018461151e565b9392505050565b7f62616420736c61736820616d6f756e74000000000000000000000000000000005f82015250565b5f611ad760108361148f565b9150611ae282611aa3565b602082019050919050565b5f6020820190508181035f830152611b0481611acb565b9050919050565b5f611b1582611515565b9150611b2083611515565b9250828203905081811115611b3857611b37611923565b5b92915050565b828183375f83830152505050565b5f611b57838561148f565b9350611b64838584611b3e565b611b6d836114ad565b840190509392505050565b5f604082019050611b8b5f83018661151e565b8181036020830152611b9e818486611b4c565b9050949350505050565b7f6e6f7420612072656769737465726564206a75646765000000000000000000005f82015250565b5f611bdc60168361148f565b9150611be782611ba8565b602082019050919050565b5f6020820190508181035f830152611c0981611bd0565b9050919050565b611c1981611754565b82525050565b5f604082019050611c325f83018561151e565b611c3f6020830184611c10565b9392505050565b7f616c7265616479207472616e736c6174696f6e206a75646765000000000000005f82015250565b5f611c7a60198361148f565b9150611c8582611c46565b602082019050919050565b5f6020820190508181035f830152611ca781611c6e565b9050919050565b7f6e6f207374616b650000000000000000000000000000000000000000000000005f82015250565b5f611ce260088361148f565b9150611ced82611cae565b602082019050919050565b5f6020820190508181035f830152611d0f81611cd6565b9050919050565b5f604082019050611d295f8301856116b6565b611d36602083018461151e565b9392505050565b7f75736463207472616e73666572206661696c65640000000000000000000000005f82015250565b5f611d7160148361148f565b9150611d7c82611d3d565b602082019050919050565b5f6020820190508181035f830152611d9e81611d65565b905091905056fea264697066735822122060ba06a5dc3fdfed6bbf2c3180361fd6adae3fc5aa8664e467af1ad113738ee264736f6c63430008230033","sourceMap":"1205:7175:25:-:0;;;3512:146;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2365:1:20;2539:46;:29;:27;;;:29;;:::i;:::-;:44;;;:46;;:::i;:::-;:52;;:66;;;;3574:1:25;3557:19;;:5;:19;;;3549:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;3611:10;3600:8;;:21;;;;;;;;;;;;;;;;;;3645:5;3631:20;;;;;;;;;;3512:146;1205:7175;;4636:127:20;4706:7;1505:66;4732:24;;4725:31;;4636:127;:::o;2679:163:21:-;2740:21;2822:4;2812:14;;2679:163;;;:::o;88:117:33:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:143::-;753:5;784:6;778:13;769:22;;800:33;827:5;800:33;:::i;:::-;696:143;;;;:::o;845:351::-;915:6;964:2;952:9;943:7;939:23;935:32;932:119;;;970:79;;:::i;:::-;932:119;1090:1;1115:64;1171:7;1162:6;1151:9;1147:22;1115:64;:::i;:::-;1105:74;;1061:128;845:351;;;;:::o;1202:169::-;1286:11;1320:6;1315:3;1308:19;1360:4;1355:3;1351:14;1336:29;;1202:169;;;;:::o;1377:159::-;1517:11;1513:1;1505:6;1501:14;1494:35;1377:159;:::o;1542:365::-;1684:3;1705:66;1769:1;1764:3;1705:66;:::i;:::-;1698:73;;1780:93;1869:3;1780:93;:::i;:::-;1898:2;1893:3;1889:12;1882:19;;1542:365;;;:::o;1913:419::-;2079:4;2117:2;2106:9;2102:18;2094:26;;2166:9;2160:4;2156:20;2152:1;2141:9;2137:17;2130:47;2194:131;2320:4;2194:131;:::i;:::-;2186:139;;1913:419;;;:::o;1205:7175:25:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f5ffd5b5060043610610109575f3560e01c80636789a2be116100a0578063ba04c7e71161006f578063ba04c7e714610293578063d119d82e146102c6578063e8343598146102f6578063ed70e59114610312578063f95737b11461031c57610109565b80636789a2be146102095780636dd2a25914610227578063acdfba9314610245578063b71b8c431461027557610109565b80633e413bee116100dc5780633e413bee1461018157806344bb1cbf1461019f578063460b3236146101cf578063570ca735146101eb57610109565b806329605e771461010d5780632d645e19146101295780632d81f2cf14610133578063383ff02914610151575b5f5ffd5b6101276004803603810190610122919061145a565b610338565b005b610131610476565b005b61013b610729565b60405161014891906114f5565b60405180910390f35b61016b6004803603810190610166919061145a565b610762565b604051610178919061152d565b60405180910390f35b610189610777565b60405161019691906115a1565b60405180910390f35b6101b960048036038101906101b4919061145a565b61079b565b6040516101c6919061152d565b60405180910390f35b6101e960048036038101906101e49190611645565b6107b0565b005b6101f3610973565b60405161020091906116c5565b60405180910390f35b610211610997565b60405161021e919061152d565b60405180910390f35b61022f61099e565b60405161023c91906114f5565b60405180910390f35b61025f600480360381019061025a919061145a565b6109d7565b60405161026c91906116f8565b60405180910390f35b61027d6109f4565b60405161028a919061152d565b60405180910390f35b6102ad60048036038101906102a8919061145a565b6109fb565b6040516102bd9493929190611711565b60405180910390f35b6102e060048036038101906102db919061145a565b610b1e565b6040516102ed91906116f8565b60405180910390f35b610310600480360381019061030b9190611787565b610b3b565b005b61031a610d4e565b005b6103366004803603810190610331919061145a565b611001565b005b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bd90611835565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042b9061189d565b60405180910390fd5b805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61047e61132d565b60035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104ff90611905565b60405180910390fd5b620f424060015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546105579190611950565b92505081905550600160035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330620f42406040518463ffffffff1660e01b815260040161061493929190611983565b6020604051808303815f875af1158015610630573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061065491906119e2565b905080610696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068d90611a57565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f985cf908467605a35ba80b49d65db63988891884d6c8cff8a233d190d1ba8d956040518060400160405280600581526020017f7374796c65000000000000000000000000000000000000000000000000000000815250620f4240604051610716929190611a75565b60405180910390a25061072761134f565b565b6040518060400160405280600b81526020017f7472616e736c6174696f6e00000000000000000000000000000000000000000081525081565b6001602052805f5260405f205f915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6004602052805f5260405f205f915090505481565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461083e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083590611835565b60405180910390fd5b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8411801561088e5750808411155b6108cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c490611aed565b60405180910390fd5b83816108d99190611b0b565b60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508473ffffffffffffffffffffffffffffffffffffffff167f09efceaa07cf64b1ca092fbc0ac25e347f17ff67d5e8d130ed8cf608f70508a185858560405161096493929190611b78565b60405180910390a25050505050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b621e848081565b6040518060400160405280600581526020017f7374796c6500000000000000000000000000000000000000000000000000000081525081565b6003602052805f5260405f205f915054906101000a900460ff1681565b620f424081565b5f5f5f5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660035f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1660045f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205493509350935093509193509193565b6002602052805f5260405f205f915054906101000a900460ff1681565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc090611835565b60405180910390fd5b60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680610c64575060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90611bf2565b60405180910390fd5b600160045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610cf09190611950565b925050819055508273ffffffffffffffffffffffffffffffffffffffff16847f1ef435a452a6ea16f75367f8d0db466f2a6634b3f822f43a67c4345908f44c688484604051610d40929190611c1f565b60405180910390a350505050565b610d5661132d565b60025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd790611c90565b60405180910390fd5b621e848060015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610e2f9190611950565b92505081905550600160025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330621e84806040518463ffffffff1660e01b8152600401610eec93929190611983565b6020604051808303815f875af1158015610f08573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f2c91906119e2565b905080610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6590611a57565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f985cf908467605a35ba80b49d65db63988891884d6c8cff8a233d190d1ba8d956040518060400160405280600b81526020017f7472616e736c6174696f6e000000000000000000000000000000000000000000815250621e8480604051610fee929190611a75565b60405180910390a250610fff61134f565b565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690611835565b60405180910390fd5b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f8111611112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110990611cf8565b60405180910390fd5b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401611258929190611d16565b6020604051808303815f875af1158015611274573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129891906119e2565b9050806112da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d190611d87565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f6ff919a987a0f838f27b922cbc3c72013eb35157bb1b0590cb1969c39ef369f883604051611320919061152d565b60405180910390a2505050565b611335611369565b60026113476113426113aa565b6113d3565b5f0181905550565b600161136161135c6113aa565b6113d3565b5f0181905550565b6113716113dc565b156113a8576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b5f7f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005f1b905090565b5f819050919050565b5f60026113ef6113ea6113aa565b6113d3565b5f015414905090565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61142982611400565b9050919050565b6114398161141f565b8114611443575f5ffd5b50565b5f8135905061145481611430565b92915050565b5f6020828403121561146f5761146e6113f8565b5b5f61147c84828501611446565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114c782611485565b6114d1818561148f565b93506114e181856020860161149f565b6114ea816114ad565b840191505092915050565b5f6020820190508181035f83015261150d81846114bd565b905092915050565b5f819050919050565b61152781611515565b82525050565b5f6020820190506115405f83018461151e565b92915050565b5f819050919050565b5f61156961156461155f84611400565b611546565b611400565b9050919050565b5f61157a8261154f565b9050919050565b5f61158b82611570565b9050919050565b61159b81611581565b82525050565b5f6020820190506115b45f830184611592565b92915050565b6115c381611515565b81146115cd575f5ffd5b50565b5f813590506115de816115ba565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112611605576116046115e4565b5b8235905067ffffffffffffffff811115611622576116216115e8565b5b60208301915083600182028301111561163e5761163d6115ec565b5b9250929050565b5f5f5f5f6060858703121561165d5761165c6113f8565b5b5f61166a87828801611446565b945050602061167b878288016115d0565b935050604085013567ffffffffffffffff81111561169c5761169b6113fc565b5b6116a8878288016115f0565b925092505092959194509250565b6116bf8161141f565b82525050565b5f6020820190506116d85f8301846116b6565b92915050565b5f8115159050919050565b6116f2816116de565b82525050565b5f60208201905061170b5f8301846116e9565b92915050565b5f6080820190506117245f83018761151e565b61173160208301866116e9565b61173e60408301856116e9565b61174b606083018461151e565b95945050505050565b5f819050919050565b61176681611754565b8114611770575f5ffd5b50565b5f813590506117818161175d565b92915050565b5f5f5f5f6080858703121561179f5761179e6113f8565b5b5f6117ac87828801611773565b94505060206117bd87828801611446565b93505060406117ce878288016115d0565b92505060606117df87828801611773565b91505092959194509250565b7f6e6f74206f70657261746f7200000000000000000000000000000000000000005f82015250565b5f61181f600c8361148f565b915061182a826117eb565b602082019050919050565b5f6020820190508181035f83015261184c81611813565b9050919050565b7f7a65726f206f70000000000000000000000000000000000000000000000000005f82015250565b5f61188760078361148f565b915061189282611853565b602082019050919050565b5f6020820190508181035f8301526118b48161187b565b9050919050565b7f616c7265616479207374796c65206a75646765000000000000000000000000005f82015250565b5f6118ef60138361148f565b91506118fa826118bb565b602082019050919050565b5f6020820190508181035f83015261191c816118e3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61195a82611515565b915061196583611515565b925082820190508082111561197d5761197c611923565b5b92915050565b5f6060820190506119965f8301866116b6565b6119a360208301856116b6565b6119b0604083018461151e565b949350505050565b6119c1816116de565b81146119cb575f5ffd5b50565b5f815190506119dc816119b8565b92915050565b5f602082840312156119f7576119f66113f8565b5b5f611a04848285016119ce565b91505092915050565b7f75736463207472616e7366657246726f6d206661696c656400000000000000005f82015250565b5f611a4160188361148f565b9150611a4c82611a0d565b602082019050919050565b5f6020820190508181035f830152611a6e81611a35565b9050919050565b5f6040820190508181035f830152611a8d81856114bd565b9050611a9c602083018461151e565b9392505050565b7f62616420736c61736820616d6f756e74000000000000000000000000000000005f82015250565b5f611ad760108361148f565b9150611ae282611aa3565b602082019050919050565b5f6020820190508181035f830152611b0481611acb565b9050919050565b5f611b1582611515565b9150611b2083611515565b9250828203905081811115611b3857611b37611923565b5b92915050565b828183375f83830152505050565b5f611b57838561148f565b9350611b64838584611b3e565b611b6d836114ad565b840190509392505050565b5f604082019050611b8b5f83018661151e565b8181036020830152611b9e818486611b4c565b9050949350505050565b7f6e6f7420612072656769737465726564206a75646765000000000000000000005f82015250565b5f611bdc60168361148f565b9150611be782611ba8565b602082019050919050565b5f6020820190508181035f830152611c0981611bd0565b9050919050565b611c1981611754565b82525050565b5f604082019050611c325f83018561151e565b611c3f6020830184611c10565b9392505050565b7f616c7265616479207472616e736c6174696f6e206a75646765000000000000005f82015250565b5f611c7a60198361148f565b9150611c8582611c46565b602082019050919050565b5f6020820190508181035f830152611ca781611c6e565b9050919050565b7f6e6f207374616b650000000000000000000000000000000000000000000000005f82015250565b5f611ce260088361148f565b9150611ced82611cae565b602082019050919050565b5f6020820190508181035f830152611d0f81611cd6565b9050919050565b5f604082019050611d295f8301856116b6565b611d36602083018461151e565b9392505050565b7f75736463207472616e73666572206661696c65640000000000000000000000005f82015250565b5f611d7160148361148f565b9150611d7c82611d3d565b602082019050919050565b5f6020820190508181035f830152611d9e81611d65565b905091905056fea264697066735822122060ba06a5dc3fdfed6bbf2c3180361fd6adae3fc5aa8664e467af1ad113738ee264736f6c63430008230033","sourceMap":"1205:7175:25:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3664:163;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;5026:508;;;:::i;:::-;;1724:61;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2130:46;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2034:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2487:51;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6930:337;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2005:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1516:59;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1791:49;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2238:44;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1664:53;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7990:388;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;2182:50;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6196:405;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;4155:712;;;:::i;:::-;;7427:401;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3664:163;3301:8;;;;;;;;;;;3287:22;;:10;:22;;;3279:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;3774:1:::1;3751:25;;:11;:25;;::::0;3743:45:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;3809:11;3798:8;;:22;;;;;;;;;;;;;;;;;;3664:163:::0;:::o;5026:508::-;3023:21:20;:19;:21::i;:::-;5097:12:25::1;:24;5110:10;5097:24;;;;;;;;;;;;;;;;;;;;;;;;;5096:25;5088:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;1708:9;5231:11;:23;5243:10;5231:23;;;;;;;;;;;;;;;;:44;;;;;;;:::i;:::-;;;;;;;;5312:4;5285:12;:24;5298:10;5285:24;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;5326:7;5336:4;:17;;;5354:10;5374:4;1708:9;5336:63;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5326:73;;5417:2;5409:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;5479:10;5463:64;;;5491:16;;;;;;;;;;;;;;;;::::0;1708:9:::1;5463:64;;;;;;;:::i;:::-;;;;;;;;5078:456;3065:20:20::0;:18;:20::i;:::-;5026:508:25:o;1724:61::-;;;;;;;;;;;;;;;;;;;:::o;2130:46::-;;;;;;;;;;;;;;;;;:::o;2034:28::-;;;:::o;2487:51::-;;;;;;;;;;;;;;;;;:::o;6930:337::-;3301:8;;;;;;;;;;;3287:22;;:10;:22;;;3279:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;7057:15:::1;7075:11;:18;7087:5;7075:18;;;;;;;;;;;;;;;;7057:36;;7120:1;7111:6;:10;:31;;;;;7135:7;7125:6;:17;;7111:31;7103:60;;;;;;;;;;;;:::i;:::-;;;;;;;;;7204:6;7194:7;:16;;;;:::i;:::-;7173:11;:18;7185:5;7173:18;;;;;;;;;;;;;;;:37;;;;7238:5;7225:35;;;7245:6;7253;;7225:35;;;;;;;;:::i;:::-;;;;;;;;7047:220;6930:337:::0;;;;:::o;2005:23::-;;;;;;;;;;;;;:::o;1516:59::-;1566:9;1516:59;:::o;1791:49::-;;;;;;;;;;;;;;;;;;;:::o;2238:44::-;;;;;;;;;;;;;;;;;;;;;;:::o;1664:53::-;1708:9;1664:53;:::o;7990:388::-;8087:13;8114:16;8144:10;8168:20;8234:11;:18;8246:5;8234:18;;;;;;;;;;;;;;;;8266;:25;8285:5;8266:25;;;;;;;;;;;;;;;;;;;;;;;;;8305:12;:19;8318:5;8305:19;;;;;;;;;;;;;;;;;;;;;;;;;8338:16;:23;8355:5;8338:23;;;;;;;;;;;;;;;;8213:158;;;;;;;;7990:388;;;;;:::o;2182:50::-;;;;;;;;;;;;;;;;;;;;;;:::o;6196:405::-;3301:8;;;;;;;;;;;3287:22;;:10;:22;;;3279:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;6386:18:::1;:25;6405:5;6386:25;;;;;;;;;;;;;;;;;;;;;;;;;:48;;;;6415:12;:19;6428:5;6415:19;;;;;;;;;;;;;;;;;;;;;;;;;6386:48;6365:117;;;;;;;;;;;;:::i;:::-;;;;;;;;;6519:1;6492:16;:23;6509:5;6492:23;;;;;;;;;;;;;;;;:28;;;;;;;:::i;:::-;;;;;;;;6564:5;6535:59;;6555:7;6535:59;6571:5;6578:15;6535:59;;;;;;;:::i;:::-;;;;;;;;6196:405:::0;;;;:::o;4155:712::-;3023:21:20;:19;:21::i;:::-;4232:18:25::1;:30;4251:10;4232:30;;;;;;;;;;;;;;;;;;;;;;;;;4231:31;4223:69;;;;;;;;;;;;:::i;:::-;;;;;;;;;1566:9;4534:11;:23;4546:10;4534:23;;;;;;;;;;;;;;;;:50;;;;;;;:::i;:::-;;;;;;;;4627:4;4594:18;:30;4613:10;4594:30;;;;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;4641:7;4651:4;:17;;;4669:10;4689:4;1566:9;4651:69;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4641:79;;4738:2;4730:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;4800:10;4784:76;;;4812:22;;;;;;;;;;;;;;;;::::0;1566:9:::1;4784:76;;;;;;;:::i;:::-;;;;;;;;4213:654;3065:20:20::0;:18;:20::i;:::-;4155:712:25:o;7427:401::-;3301:8;;;;;;;;;;;3287:22;;:10;:22;;;3279:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;7497:14:::1;7514:11;:18;7526:5;7514:18;;;;;;;;;;;;;;;;7497:35;;7559:1;7550:6;:10;7542:31;;;;;;;;;;;;:::i;:::-;;;;;;;;;7604:1;7583:11;:18;7595:5;7583:18;;;;;;;;;;;;;;;:22;;;;7643:5;7615:18;:25;7634:5;7615:25;;;;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;7680:5;7658:12;:19;7671:5;7658:19;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;7695:7;7705:4;:13;;;7719:5;7726:6;7705:28;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7695:38;;7751:2;7743:35;;;;;;;;;;;;:::i;:::-;;;;;;;;;7807:5;7793:28;;;7814:6;7793:28;;;;;;:::i;:::-;;;;;;;;7487:341;;7427:401:::0;:::o;3749:292:20:-;3872:25;:23;:25::i;:::-;2407:1;3972:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;:62;;;;3749:292::o;4047:253::-;2365:1;4227:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;:66;;;;4047:253::o;3586:157::-;3648:25;:23;:25::i;:::-;3644:93;;;3696:30;;;;;;;;;;;;;;3644:93;3586:157::o;4636:127::-;4706:7;1505:66;4732:24;;4725:31;;4636:127;:::o;2679:163:21:-;2740:21;2822:4;2812:14;;2679:163;;;:::o;4479:151:20:-;4537:4;2407:1;4560:46;:29;:27;:29::i;:::-;:44;:46::i;:::-;:52;;;:63;4553:70;;4479:151;:::o;88:117:33:-;197:1;194;187:12;211:117;320:1;317;310:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:99::-;1228:6;1262:5;1256:12;1246:22;;1176:99;;;:::o;1281:169::-;1365:11;1399:6;1394:3;1387:19;1439:4;1434:3;1430:14;1415:29;;1281:169;;;;:::o;1456:139::-;1545:6;1540:3;1535;1529:23;1586:1;1577:6;1572:3;1568:16;1561:27;1456:139;;;:::o;1601:102::-;1642:6;1693:2;1689:7;1684:2;1677:5;1673:14;1669:28;1659:38;;1601:102;;;:::o;1709:377::-;1797:3;1825:39;1858:5;1825:39;:::i;:::-;1880:71;1944:6;1939:3;1880:71;:::i;:::-;1873:78;;1960:65;2018:6;2013:3;2006:4;1999:5;1995:16;1960:65;:::i;:::-;2050:29;2072:6;2050:29;:::i;:::-;2045:3;2041:39;2034:46;;1801:285;1709:377;;;;:::o;2092:313::-;2205:4;2243:2;2232:9;2228:18;2220:26;;2292:9;2286:4;2282:20;2278:1;2267:9;2263:17;2256:47;2320:78;2393:4;2384:6;2320:78;:::i;:::-;2312:86;;2092:313;;;;:::o;2411:77::-;2448:7;2477:5;2466:16;;2411:77;;;:::o;2494:118::-;2581:24;2599:5;2581:24;:::i;:::-;2576:3;2569:37;2494:118;;:::o;2618:222::-;2711:4;2749:2;2738:9;2734:18;2726:26;;2762:71;2830:1;2819:9;2815:17;2806:6;2762:71;:::i;:::-;2618:222;;;;:::o;2846:60::-;2874:3;2895:5;2888:12;;2846:60;;;:::o;2912:142::-;2962:9;2995:53;3013:34;3022:24;3040:5;3022:24;:::i;:::-;3013:34;:::i;:::-;2995:53;:::i;:::-;2982:66;;2912:142;;;:::o;3060:126::-;3110:9;3143:37;3174:5;3143:37;:::i;:::-;3130:50;;3060:126;;;:::o;3192:142::-;3258:9;3291:37;3322:5;3291:37;:::i;:::-;3278:50;;3192:142;;;:::o;3340:163::-;3443:53;3490:5;3443:53;:::i;:::-;3438:3;3431:66;3340:163;;:::o;3509:254::-;3618:4;3656:2;3645:9;3641:18;3633:26;;3669:87;3753:1;3742:9;3738:17;3729:6;3669:87;:::i;:::-;3509:254;;;;:::o;3769:122::-;3842:24;3860:5;3842:24;:::i;:::-;3835:5;3832:35;3822:63;;3881:1;3878;3871:12;3822:63;3769:122;:::o;3897:139::-;3943:5;3981:6;3968:20;3959:29;;3997:33;4024:5;3997:33;:::i;:::-;3897:139;;;;:::o;4042:117::-;4151:1;4148;4141:12;4165:117;4274:1;4271;4264:12;4288:117;4397:1;4394;4387:12;4425:553;4483:8;4493:6;4543:3;4536:4;4528:6;4524:17;4520:27;4510:122;;4551:79;;:::i;:::-;4510:122;4664:6;4651:20;4641:30;;4694:18;4686:6;4683:30;4680:117;;;4716:79;;:::i;:::-;4680:117;4830:4;4822:6;4818:17;4806:29;;4884:3;4876:4;4868:6;4864:17;4854:8;4850:32;4847:41;4844:128;;;4891:79;;:::i;:::-;4844:128;4425:553;;;;;:::o;4984:819::-;5073:6;5081;5089;5097;5146:2;5134:9;5125:7;5121:23;5117:32;5114:119;;;5152:79;;:::i;:::-;5114:119;5272:1;5297:53;5342:7;5333:6;5322:9;5318:22;5297:53;:::i;:::-;5287:63;;5243:117;5399:2;5425:53;5470:7;5461:6;5450:9;5446:22;5425:53;:::i;:::-;5415:63;;5370:118;5555:2;5544:9;5540:18;5527:32;5586:18;5578:6;5575:30;5572:117;;;5608:79;;:::i;:::-;5572:117;5721:65;5778:7;5769:6;5758:9;5754:22;5721:65;:::i;:::-;5703:83;;;;5498:298;4984:819;;;;;;;:::o;5809:118::-;5896:24;5914:5;5896:24;:::i;:::-;5891:3;5884:37;5809:118;;:::o;5933:222::-;6026:4;6064:2;6053:9;6049:18;6041:26;;6077:71;6145:1;6134:9;6130:17;6121:6;6077:71;:::i;:::-;5933:222;;;;:::o;6161:90::-;6195:7;6238:5;6231:13;6224:21;6213:32;;6161:90;;;:::o;6257:109::-;6338:21;6353:5;6338:21;:::i;:::-;6333:3;6326:34;6257:109;;:::o;6372:210::-;6459:4;6497:2;6486:9;6482:18;6474:26;;6510:65;6572:1;6561:9;6557:17;6548:6;6510:65;:::i;:::-;6372:210;;;;:::o;6588:529::-;6753:4;6791:3;6780:9;6776:19;6768:27;;6805:71;6873:1;6862:9;6858:17;6849:6;6805:71;:::i;:::-;6886:66;6948:2;6937:9;6933:18;6924:6;6886:66;:::i;:::-;6962;7024:2;7013:9;7009:18;7000:6;6962:66;:::i;:::-;7038:72;7106:2;7095:9;7091:18;7082:6;7038:72;:::i;:::-;6588:529;;;;;;;:::o;7123:77::-;7160:7;7189:5;7178:16;;7123:77;;;:::o;7206:122::-;7279:24;7297:5;7279:24;:::i;:::-;7272:5;7269:35;7259:63;;7318:1;7315;7308:12;7259:63;7206:122;:::o;7334:139::-;7380:5;7418:6;7405:20;7396:29;;7434:33;7461:5;7434:33;:::i;:::-;7334:139;;;;:::o;7479:765::-;7565:6;7573;7581;7589;7638:3;7626:9;7617:7;7613:23;7609:33;7606:120;;;7645:79;;:::i;:::-;7606:120;7765:1;7790:53;7835:7;7826:6;7815:9;7811:22;7790:53;:::i;:::-;7780:63;;7736:117;7892:2;7918:53;7963:7;7954:6;7943:9;7939:22;7918:53;:::i;:::-;7908:63;;7863:118;8020:2;8046:53;8091:7;8082:6;8071:9;8067:22;8046:53;:::i;:::-;8036:63;;7991:118;8148:2;8174:53;8219:7;8210:6;8199:9;8195:22;8174:53;:::i;:::-;8164:63;;8119:118;7479:765;;;;;;;:::o;8250:162::-;8390:14;8386:1;8378:6;8374:14;8367:38;8250:162;:::o;8418:366::-;8560:3;8581:67;8645:2;8640:3;8581:67;:::i;:::-;8574:74;;8657:93;8746:3;8657:93;:::i;:::-;8775:2;8770:3;8766:12;8759:19;;8418:366;;;:::o;8790:419::-;8956:4;8994:2;8983:9;8979:18;8971:26;;9043:9;9037:4;9033:20;9029:1;9018:9;9014:17;9007:47;9071:131;9197:4;9071:131;:::i;:::-;9063:139;;8790:419;;;:::o;9215:157::-;9355:9;9351:1;9343:6;9339:14;9332:33;9215:157;:::o;9378:365::-;9520:3;9541:66;9605:1;9600:3;9541:66;:::i;:::-;9534:73;;9616:93;9705:3;9616:93;:::i;:::-;9734:2;9729:3;9725:12;9718:19;;9378:365;;;:::o;9749:419::-;9915:4;9953:2;9942:9;9938:18;9930:26;;10002:9;9996:4;9992:20;9988:1;9977:9;9973:17;9966:47;10030:131;10156:4;10030:131;:::i;:::-;10022:139;;9749:419;;;:::o;10174:169::-;10314:21;10310:1;10302:6;10298:14;10291:45;10174:169;:::o;10349:366::-;10491:3;10512:67;10576:2;10571:3;10512:67;:::i;:::-;10505:74;;10588:93;10677:3;10588:93;:::i;:::-;10706:2;10701:3;10697:12;10690:19;;10349:366;;;:::o;10721:419::-;10887:4;10925:2;10914:9;10910:18;10902:26;;10974:9;10968:4;10964:20;10960:1;10949:9;10945:17;10938:47;11002:131;11128:4;11002:131;:::i;:::-;10994:139;;10721:419;;;:::o;11146:180::-;11194:77;11191:1;11184:88;11291:4;11288:1;11281:15;11315:4;11312:1;11305:15;11332:191;11372:3;11391:20;11409:1;11391:20;:::i;:::-;11386:25;;11425:20;11443:1;11425:20;:::i;:::-;11420:25;;11468:1;11465;11461:9;11454:16;;11489:3;11486:1;11483:10;11480:36;;;11496:18;;:::i;:::-;11480:36;11332:191;;;;:::o;11529:442::-;11678:4;11716:2;11705:9;11701:18;11693:26;;11729:71;11797:1;11786:9;11782:17;11773:6;11729:71;:::i;:::-;11810:72;11878:2;11867:9;11863:18;11854:6;11810:72;:::i;:::-;11892;11960:2;11949:9;11945:18;11936:6;11892:72;:::i;:::-;11529:442;;;;;;:::o;11977:116::-;12047:21;12062:5;12047:21;:::i;:::-;12040:5;12037:32;12027:60;;12083:1;12080;12073:12;12027:60;11977:116;:::o;12099:137::-;12153:5;12184:6;12178:13;12169:22;;12200:30;12224:5;12200:30;:::i;:::-;12099:137;;;;:::o;12242:345::-;12309:6;12358:2;12346:9;12337:7;12333:23;12329:32;12326:119;;;12364:79;;:::i;:::-;12326:119;12484:1;12509:61;12562:7;12553:6;12542:9;12538:22;12509:61;:::i;:::-;12499:71;;12455:125;12242:345;;;;:::o;12593:174::-;12733:26;12729:1;12721:6;12717:14;12710:50;12593:174;:::o;12773:366::-;12915:3;12936:67;13000:2;12995:3;12936:67;:::i;:::-;12929:74;;13012:93;13101:3;13012:93;:::i;:::-;13130:2;13125:3;13121:12;13114:19;;12773:366;;;:::o;13145:419::-;13311:4;13349:2;13338:9;13334:18;13326:26;;13398:9;13392:4;13388:20;13384:1;13373:9;13369:17;13362:47;13426:131;13552:4;13426:131;:::i;:::-;13418:139;;13145:419;;;:::o;13570:423::-;13711:4;13749:2;13738:9;13734:18;13726:26;;13798:9;13792:4;13788:20;13784:1;13773:9;13769:17;13762:47;13826:78;13899:4;13890:6;13826:78;:::i;:::-;13818:86;;13914:72;13982:2;13971:9;13967:18;13958:6;13914:72;:::i;:::-;13570:423;;;;;:::o;13999:166::-;14139:18;14135:1;14127:6;14123:14;14116:42;13999:166;:::o;14171:366::-;14313:3;14334:67;14398:2;14393:3;14334:67;:::i;:::-;14327:74;;14410:93;14499:3;14410:93;:::i;:::-;14528:2;14523:3;14519:12;14512:19;;14171:366;;;:::o;14543:419::-;14709:4;14747:2;14736:9;14732:18;14724:26;;14796:9;14790:4;14786:20;14782:1;14771:9;14767:17;14760:47;14824:131;14950:4;14824:131;:::i;:::-;14816:139;;14543:419;;;:::o;14968:194::-;15008:4;15028:20;15046:1;15028:20;:::i;:::-;15023:25;;15062:20;15080:1;15062:20;:::i;:::-;15057:25;;15106:1;15103;15099:9;15091:17;;15130:1;15124:4;15121:11;15118:37;;;15135:18;;:::i;:::-;15118:37;14968:194;;;;:::o;15168:148::-;15266:6;15261:3;15256;15243:30;15307:1;15298:6;15293:3;15289:16;15282:27;15168:148;;;:::o;15346:317::-;15444:3;15465:71;15529:6;15524:3;15465:71;:::i;:::-;15458:78;;15546:56;15595:6;15590:3;15583:5;15546:56;:::i;:::-;15627:29;15649:6;15627:29;:::i;:::-;15622:3;15618:39;15611:46;;15346:317;;;;;:::o;15669:443::-;15820:4;15858:2;15847:9;15843:18;15835:26;;15871:71;15939:1;15928:9;15924:17;15915:6;15871:71;:::i;:::-;15989:9;15983:4;15979:20;15974:2;15963:9;15959:18;15952:48;16017:88;16100:4;16091:6;16083;16017:88;:::i;:::-;16009:96;;15669:443;;;;;;:::o;16118:172::-;16258:24;16254:1;16246:6;16242:14;16235:48;16118:172;:::o;16296:366::-;16438:3;16459:67;16523:2;16518:3;16459:67;:::i;:::-;16452:74;;16535:93;16624:3;16535:93;:::i;:::-;16653:2;16648:3;16644:12;16637:19;;16296:366;;;:::o;16668:419::-;16834:4;16872:2;16861:9;16857:18;16849:26;;16921:9;16915:4;16911:20;16907:1;16896:9;16892:17;16885:47;16949:131;17075:4;16949:131;:::i;:::-;16941:139;;16668:419;;;:::o;17093:118::-;17180:24;17198:5;17180:24;:::i;:::-;17175:3;17168:37;17093:118;;:::o;17217:332::-;17338:4;17376:2;17365:9;17361:18;17353:26;;17389:71;17457:1;17446:9;17442:17;17433:6;17389:71;:::i;:::-;17470:72;17538:2;17527:9;17523:18;17514:6;17470:72;:::i;:::-;17217:332;;;;;:::o;17555:175::-;17695:27;17691:1;17683:6;17679:14;17672:51;17555:175;:::o;17736:366::-;17878:3;17899:67;17963:2;17958:3;17899:67;:::i;:::-;17892:74;;17975:93;18064:3;17975:93;:::i;:::-;18093:2;18088:3;18084:12;18077:19;;17736:366;;;:::o;18108:419::-;18274:4;18312:2;18301:9;18297:18;18289:26;;18361:9;18355:4;18351:20;18347:1;18336:9;18332:17;18325:47;18389:131;18515:4;18389:131;:::i;:::-;18381:139;;18108:419;;;:::o;18533:158::-;18673:10;18669:1;18661:6;18657:14;18650:34;18533:158;:::o;18697:365::-;18839:3;18860:66;18924:1;18919:3;18860:66;:::i;:::-;18853:73;;18935:93;19024:3;18935:93;:::i;:::-;19053:2;19048:3;19044:12;19037:19;;18697:365;;;:::o;19068:419::-;19234:4;19272:2;19261:9;19257:18;19249:26;;19321:9;19315:4;19311:20;19307:1;19296:9;19292:17;19285:47;19349:131;19475:4;19349:131;:::i;:::-;19341:139;;19068:419;;;:::o;19493:332::-;19614:4;19652:2;19641:9;19637:18;19629:26;;19665:71;19733:1;19722:9;19718:17;19709:6;19665:71;:::i;:::-;19746:72;19814:2;19803:9;19799:18;19790:6;19746:72;:::i;:::-;19493:332;;;;;:::o;19831:170::-;19971:22;19967:1;19959:6;19955:14;19948:46;19831:170;:::o;20007:366::-;20149:3;20170:67;20234:2;20229:3;20170:67;:::i;:::-;20163:74;;20246:93;20335:3;20246:93;:::i;:::-;20364:2;20359:3;20355:12;20348:19;;20007:366;;;:::o;20379:419::-;20545:4;20583:2;20572:9;20568:18;20560:26;;20632:9;20626:4;20622:20;20618:1;20607:9;20603:17;20596:47;20660:131;20786:4;20660:131;:::i;:::-;20652:139;;20379:419;;;:::o","linkReferences":{},"immutableReferences":{"45116":[{"start":1462,"length":32},{"start":1913,"length":32},{"start":3726,"length":32},{"start":4607,"length":32}]}},"methodIdentifiers":{"JUDGE_TYPE_STYLE()":"6dd2a259","JUDGE_TYPE_TRANSLATION()":"2d81f2cf","STYLE_JUDGE_STAKE()":"b71b8c43","TRANSLATION_JUDGE_STAKE()":"6789a2be","attestationCount(address)":"44bb1cbf","getJudgeInfo(address)":"ba04c7e7","isStyleJudge(address)":"acdfba93","isTranslationJudge(address)":"d119d82e","judgeStakes(address)":"383ff029","operator()":"570ca735","recordAttestation(bytes32,address,uint256,bytes32)":"e8343598","registerStyleJudge()":"2d645e19","registerTranslationJudge()":"ed70e591","slashJudge(address,uint256,string)":"460b3236","transferOperator(address)":"29605e77","usdc()":"3e413bee","withdrawJudge(address)":"f95737b1"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_usdc\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"eventId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"attestationHash\",\"type\":\"bytes32\"}],\"name\":\"AttestationRecorded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"judgeType\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"}],\"name\":\"JudgeRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"JudgeSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"JudgeWithdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"JUDGE_TYPE_STYLE\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"JUDGE_TYPE_TRANSLATION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STYLE_JUDGE_STAKE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSLATION_JUDGE_STAKE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"attestationCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"}],\"name\":\"getJudgeInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"translation\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"style\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"attestations\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isStyleJudge\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isTranslationJudge\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"judgeStakes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"eventId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"score\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"attestationHash\",\"type\":\"bytes32\"}],\"name\":\"recordAttestation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registerStyleJudge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registerTranslationJudge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"slashJudge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOperator\",\"type\":\"address\"}],\"name\":\"transferOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdc\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"judge\",\"type\":\"address\"}],\"name\":\"withdrawJudge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Two judge classes: - Translation judge: 2 USDC stake (BLEU/COMET/MQM scoring). - Style-alignment judge: 1 USDC stake (D1-D8 dimensions). Stake constants assume the live USDC token uses 6 decimals (Arc-testnet MockUSDC). If the deploy target uses 18-dec USDC, redeploy with adjusted constants.\",\"errors\":{\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}]},\"kind\":\"dev\",\"methods\":{\"recordAttestation(bytes32,address,uint256,bytes32)\":{\"params\":{\"attestationHash\":\"keccak256 of the off-chain JSON attestation.\",\"eventId\":\"The auction / event identifier.\",\"judge\":\"Judge wallet (must be registered).\",\"score\":\"Score in the judge's natural units (e.g. MQM 0-100).\"}}},\"title\":\"JudgePanel\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"STYLE_JUDGE_STAKE()\":{\"notice\":\"Style-alignment-judge USDC stake (1 USDC at 6-decimal precision).\"},\"TRANSLATION_JUDGE_STAKE()\":{\"notice\":\"Translation-judge USDC stake (2 USDC at 6-decimal precision).\"},\"attestationCount(address)\":{\"notice\":\"Number of attestations recorded for a judge (for collusion analysis off-chain \\u2014 the on-chain stake-slash decision still requires an operator call).\"},\"judgeStakes(address)\":{\"notice\":\"Currently held USDC stake per judge address.\"},\"recordAttestation(bytes32,address,uint256,bytes32)\":{\"notice\":\"Record an attestation produced by a judge for a specific event.\"},\"registerStyleJudge()\":{\"notice\":\"Stake 1 USDC and join the style-alignment sub-panel. Caller must have approved this contract for the stake amount first.\"},\"registerTranslationJudge()\":{\"notice\":\"Stake 2 USDC and join the translation-MQM sub-panel. Caller must have approved this contract for the stake amount first.\"},\"slashJudge(address,uint256,string)\":{\"notice\":\"Operator slashes a judge's stake for systemic bias or collusion. Slashed USDC stays in the contract treasury (operator-controlled).\"},\"withdrawJudge(address)\":{\"notice\":\"Operator-triggered exit: refund a judge's remaining stake and remove them from the panel. Useful for graceful retirement.\"}},\"notice\":\"On-chain registry + attestation store for the 11-judge ensemble described in README \\u00a75.6 / \\u00a75.22 (3 translation MQM judges + 8 style-alignment judges). Each judge stakes USDC; bias / collusion is punished by `slashJudge`. Verdicts are stamped to chain via `recordAttestation` so any party can audit \\\"who judged what.\\\"\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/JudgePanel.sol\":\"JudgePanel\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"src/JudgePanel.sol\":{\"keccak256\":\"0x3e529fef31d37d1a7836c25d881d8667682c45e6db87eb31be21b3368c13d737\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e76ca3d0dbb3a0977f875b30339d9046362ba7b711744609f1c64c52d49bcbd9\",\"dweb:/ipfs/QmUuMkujLQg7LCejaVc69opf2TANKJANRUGXxnWwNjwFUN\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"_usdc","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"type":"error","name":"ReentrancyGuardReentrantCall"},{"inputs":[{"internalType":"bytes32","name":"eventId","type":"bytes32","indexed":true},{"internalType":"address","name":"judge","type":"address","indexed":true},{"internalType":"uint256","name":"score","type":"uint256","indexed":false},{"internalType":"bytes32","name":"attestationHash","type":"bytes32","indexed":false}],"type":"event","name":"AttestationRecorded","anonymous":false},{"inputs":[{"internalType":"address","name":"judge","type":"address","indexed":true},{"internalType":"string","name":"judgeType","type":"string","indexed":false},{"internalType":"uint256","name":"stake","type":"uint256","indexed":false}],"type":"event","name":"JudgeRegistered","anonymous":false},{"inputs":[{"internalType":"address","name":"judge","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false},{"internalType":"string","name":"reason","type":"string","indexed":false}],"type":"event","name":"JudgeSlashed","anonymous":false},{"inputs":[{"internalType":"address","name":"judge","type":"address","indexed":true},{"internalType":"uint256","name":"amount","type":"uint256","indexed":false}],"type":"event","name":"JudgeWithdrew","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"JUDGE_TYPE_STYLE","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"JUDGE_TYPE_TRANSLATION","outputs":[{"internalType":"string","name":"","type":"string"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"STYLE_JUDGE_STAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"TRANSLATION_JUDGE_STAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"attestationCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"judge","type":"address"}],"stateMutability":"view","type":"function","name":"getJudgeInfo","outputs":[{"internalType":"uint256","name":"stake","type":"uint256"},{"internalType":"bool","name":"translation","type":"bool"},{"internalType":"bool","name":"style","type":"bool"},{"internalType":"uint256","name":"attestations","type":"uint256"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"isStyleJudge","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"isTranslationJudge","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function","name":"judgeStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}]},{"inputs":[],"stateMutability":"view","type":"function","name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}]},{"inputs":[{"internalType":"bytes32","name":"eventId","type":"bytes32"},{"internalType":"address","name":"judge","type":"address"},{"internalType":"uint256","name":"score","type":"uint256"},{"internalType":"bytes32","name":"attestationHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function","name":"recordAttestation"},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"registerStyleJudge"},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"registerTranslationJudge"},{"inputs":[{"internalType":"address","name":"judge","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"reason","type":"string"}],"stateMutability":"nonpayable","type":"function","name":"slashJudge"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"transferOperator"},{"inputs":[],"stateMutability":"view","type":"function","name":"usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}]},{"inputs":[{"internalType":"address","name":"judge","type":"address"}],"stateMutability":"nonpayable","type":"function","name":"withdrawJudge"}],"devdoc":{"kind":"dev","methods":{"recordAttestation(bytes32,address,uint256,bytes32)":{"params":{"attestationHash":"keccak256 of the off-chain JSON attestation.","eventId":"The auction / event identifier.","judge":"Judge wallet (must be registered).","score":"Score in the judge's natural units (e.g. MQM 0-100)."}}},"version":1},"userdoc":{"kind":"user","methods":{"STYLE_JUDGE_STAKE()":{"notice":"Style-alignment-judge USDC stake (1 USDC at 6-decimal precision)."},"TRANSLATION_JUDGE_STAKE()":{"notice":"Translation-judge USDC stake (2 USDC at 6-decimal precision)."},"attestationCount(address)":{"notice":"Number of attestations recorded for a judge (for collusion analysis off-chain — the on-chain stake-slash decision still requires an operator call)."},"judgeStakes(address)":{"notice":"Currently held USDC stake per judge address."},"recordAttestation(bytes32,address,uint256,bytes32)":{"notice":"Record an attestation produced by a judge for a specific event."},"registerStyleJudge()":{"notice":"Stake 1 USDC and join the style-alignment sub-panel. Caller must have approved this contract for the stake amount first."},"registerTranslationJudge()":{"notice":"Stake 2 USDC and join the translation-MQM sub-panel. Caller must have approved this contract for the stake amount first."},"slashJudge(address,uint256,string)":{"notice":"Operator slashes a judge's stake for systemic bias or collusion. Slashed USDC stays in the contract treasury (operator-controlled)."},"withdrawJudge(address)":{"notice":"Operator-triggered exit: refund a judge's remaining stake and remove them from the panel. Useful for graceful retirement."}},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/JudgePanel.sol":"JudgePanel"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"],"license":"MIT"},"src/JudgePanel.sol":{"keccak256":"0x3e529fef31d37d1a7836c25d881d8667682c45e6db87eb31be21b3368c13d737","urls":["bzz-raw://e76ca3d0dbb3a0977f875b30339d9046362ba7b711744609f1c64c52d49bcbd9","dweb:/ipfs/QmUuMkujLQg7LCejaVc69opf2TANKJANRUGXxnWwNjwFUN"],"license":"MIT"}},"version":1},"id":25}
contracts/out/Math.sol/Math.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"abi":[],"bytecode":{"object":"0x6055604b600b8282823980515f1a607314603f577f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b305f52607381538281f3fe730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212202a5a475d4ad406e0f29cb5784290e5e57a41d487cf239025b77cb815a24b90ab64736f6c63430008230033","sourceMap":"281:32382:22:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x730000000000000000000000000000000000000000301460806040525f5ffdfea26469706673582212202a5a475d4ad406e0f29cb5784290e5e57a41d487cf239025b77cb815a24b90ab64736f6c63430008230033","sourceMap":"281:32382:22:-:0;;;;;;;;","linkReferences":{}},"methodIdentifiers":{},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Standard math utilities missing in the Solidity language.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":\"Math\"},\"evmVersion\":\"osaka\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[\":@openzeppelin/=lib/openzeppelin-contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/utils/Panic.sol\":{\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a\",\"dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG\"]},\"lib/openzeppelin-contracts/contracts/utils/math/Math.sol\":{\"keccak256\":\"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5\",\"dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y\"]},\"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol\":{\"keccak256\":\"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9\",\"dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@openzeppelin/=lib/openzeppelin-contracts/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"optimizer":{"enabled":false,"runs":200},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":"Math"},"evmVersion":"osaka","libraries":{}},"sources":{"lib/openzeppelin-contracts/contracts/utils/Panic.sol":{"keccak256":"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a","urls":["bzz-raw://c6a5ff4f9fd8649b7ee20800b7fa387d3465bd77cf20c2d1068cd5c98e1ed57a","dweb:/ipfs/QmVSaVJf9FXFhdYEYeCEfjMVHrxDh5qL4CGkxdMWpQCrqG"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/math/Math.sol":{"keccak256":"0x59973a93b1f983f94e10529f46ca46544a9fec2b5f56fb1390bbe9e0dc79f857","urls":["bzz-raw://c55ef8f0b9719790c2ae6f81d80a59ffb89f2f0abe6bc065585bd79edce058c5","dweb:/ipfs/QmNNmCbX9NjPXKqHJN8R1WC2rNeZSQrPZLd6FF6AKLyH5Y"],"license":"MIT"},"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol":{"keccak256":"0xc8cae21c9ae4a46e5162ff9bf5b351d6fa6a6eba72d515f3bc1bdfeda7fdf083","urls":["bzz-raw://ce830ebcf28e31643caba318996db3763c36d52cd0f23798ba83c135355d45e9","dweb:/ipfs/QmdGPcvptHN7UBCbUYBbRX3hiRVRFLRwno8b4uga6uFNif"],"license":"MIT"}},"version":1},"id":22}