온체인 게임 루프를 자동화하세요
Games for Pennies
온체인 자동화에 필요한 모든 것
탈중앙화되고, 권한 제어가 가능하며, 비용 효율적인 스마트 컨트랙트 자동화를 위한 완전한 프로토콜.
탈중앙화 루프 실행
오프체인 워커가 자동으로 컨트랙트 준비 상태를 감지하고 게임 루프를 실행합니다. 중앙화 서버 없음, 단일 장애점 없음.
내장 검증 가능한 무작위성
네이티브 ECVRF 증명 생성 및 온체인 검증. 매 tick마다 주사위 굴리기, 전리품 드롭 등을 위한 증명 가능한 공정한 무작위성 — 외부 오라클 불필요.
Hybrid VRF — 필요할 때만 무작위성
컨트랙트가 요청할 때만 VRF를 사용하는 표준 비용 tick. 게임이 무작위성이 필요한 시점을 결정합니다 — 전리품 드롭, 크리티컬 히트, 스폰 — 해당 tick에서만 VRF gas를 지불합니다. VRF 10% 혼합 시 tick당 ~$0.009.
실행 기반 수수료 모델
루프가 실제로 실행될 때만 지불합니다. Gas 보상에 소액의 기본 수수료가 추가되어 프로토콜과 컨트롤러 간에 분배됩니다. 투명하고 예측 가능합니다.
개발자 친화적
간단한 함수, 직접적인 hook. 샘플 컨트랙트 포함.
멀티 네트워크 지원
Ethereum 메인넷, Sepolia 테스트넷 또는 로컬 Anvil 개발 환경에 배포. 네트워크별 설정 및 자동 배포 도구 지원.
권한 제어 및 보안
역할 기반 접근 제어로 등록된 컨트롤러만 루프를 트리거할 수 있습니다. 온체인 VRF 검증으로 조작을 방지합니다.
Every Loop Here Fails the Self-Trigger Test
Games, agents, DeFi, AI — each for a different structural reason. Not design choices. Proofs.
Inverted self-interest
Every VRF tick picks a random floor and damages it. No floor owner will ever trigger the loop — it might hit their own asset. A neutral keeper is the only viable operator.
Nobody should hold the trigger
A dead man's switch that transfers your vault to a beneficiary if you miss a check-in window. The whole point is that no human should control when it fires.
Front-running attack surface
VRF selects winners from a registered pool on schedule. If player-controlled, the trigger holder knows who wins before calling. AutoLoop fires first, asks questions never.
Timing as attack surface
The high bidder wants the auction closed now. Counter-bidders want an extension. No player-controlled trigger is fair — proving the problem extends far beyond randomness.
4-way coordination failure
Third hop in KaijuLeague → KaijuOracle → ForecasterLeaderboard. Adversarial timing, cross-contract dependency, free-rider gas, prize-pool timing attack — no single player resolves all four.
Neutral on-chain schedule
An LLM agent that runs off-chain and acts on-chain every N blocks. The agent itself shouldn't decide when it fires — its operator, users, and rivals all have conflicting interests.
4단계로 시작 및 실행
컨트랙트에서 자동화 게임 루프까지, 수개월이 아닌 수분 내에.
상속
세 가지 기본 컨트랙트 중 하나를 확장하세요:
- •AutoLoopCompatible — 순수 자동화
- •AutoLoopHybridVRFCompatible — 선택적 무작위성 (전리품, 크리티컬, 스폰)
- •AutoLoopVRFCompatible — 매 tick 무작위성
구현
준비 상태를 알리는 shouldProgressLoop()과 게임 로직을 실행하는 progressLoop()을 추가하세요.
등록 및 충전
온체인에 컨트랙트를 등록하고 gas 및 수수료를 위해 ETH를 입금하세요.
실행하기
워커가 자동으로 루프를 감지하고 실행합니다. 편히 앉아서 게임이 살아나는 것을 지켜보세요.
동전 몇 개로 게임을
세 가지 온체인 자동화 티어 — 순수 실행부터 매 tick Full VRF까지. 현재 gas 가격 기준 각 티어의 비용은 다음과 같습니다.
수수료 내역
설계부터 간단하게
함수 두 개만으로 Autoloop을 통합하세요. 완전한 작동 컨트랙트 예시입니다.
1// SPDX-License-Identifier: MIT2pragma solidity ^0.8.13;34// Import the base contract that makes any5// contract compatible with AutoLoop workers6import {AutoLoopCompatible} from7 "autoloop/AutoLoopCompatible.sol";89// A simple demo: number goes up every interval10contract NumberGoUp is AutoLoopCompatible {11 uint256 public number;12 uint256 public interval;13 uint256 public lastTimeStamp;14 uint256 private _loopID;1516 constructor(uint256 _interval) {17 interval = _interval;18 lastTimeStamp = block.timestamp;19 }2021 // Workers call this every block to check22 // if the contract is ready for an update23 function shouldProgressLoop()24 external view override25 returns (26 bool loopIsReady,27 bytes memory progressWithData28 )29 {30 // Ready when enough time has passed31 loopIsReady =32 (block.timestamp - lastTimeStamp) > interval;33 // Pass loop ID to prevent duplicate runs34 progressWithData = abi.encode(_loopID);35 }3637 // Called by AutoLoop when shouldProgressLoop38 // returns true — this is your update logic39 function progressLoop(40 bytes calldata progressWithData41 ) external override {42 uint256 loopID =43 abi.decode(progressWithData, (uint256));44 // Guard against stale or replayed calls45 require(loopID == _loopID, "stale loop");46 lastTimeStamp = block.timestamp;47 ++number;48 ++_loopID;49 }50}Chainlink과의 비교를 확인하세요
세 가지 자동화 모드 — Standard, Hybrid VRF, Full VRF — 하나의 프로토콜에 모두 포함. 별도 구독 불필요. 모든 티어에서 Chainlink보다 저렴.