You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 캐릭터 NFT 민트function mint(stringcalldatametadataURI) externalreturns (uint256tokenId)
// 캐릭터 NFT ID 조회function tokenIdOf(addressowner) externalviewreturns (uint256)
MONCharacterVault 주요 함수
// 캐릭터 NFT Vault에 입금function deposit() externalpayable// 캐릭터 NFT Vault에서 출금function withdraw(uint256amount) external nonReentrant
// 캐릭터 배틀 후 정산function settle(uint256winnerNftId,uint256loserNftId,uint256amount) external onlyColosseum returns (uint256)
MONColosseum 주요 함수
// 콜로세움 생성 (판돈 설정)function createNewColosseum(uint256buyIn) external onlyGameMaster
// 콜로세움 압장function enterColosseum(uint256nftId, uint256colosseumId) external// 콜로세움 퇴장function exitColosseum(uint256nftId, uint256colosseumId) external// 라운드 시작function triggerRound(uint256colosseumId) external onlyGameMaster
// 캐릭터 배틀 후 정산function submitBattleResults(uint256colosseumId,uint256roundId,
uint256[] calldatawinners,uint256[] calldatalosers) external onlyGameMaster nonReentrant
Next steps: Take a moment to review the security alert
above. Review the linked package source code to understand the potential
risk. Ensure the package is not malicious before proceeding. If you're
unsure how to proceed, reach out to your security team or ask the Socket
team for help at support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/safer-buffer@2.1.2. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Monad Blitz - 자동 매칭 캐릭터 배틀 AI 게임
MONstar는 사용자가 프롬프트 작성을 통해 자신의 캐릭터를 설정하고 해당 캐릭터를 Battle Pool(콜로세움)에 넣고 다른 무작위 플레이어와 싸우게 하고, 결과에 따라 해당 Battle Pool에 맞는 배당을 얻고 잃게 되는 AI 자동 전투 게임이다.
게임 규칙
캐릭터 생성
캐릭터 Vault
콜로세움 입장
전투 시작
전투 후
📋 USER scenario
🏗️ 아키텍처
MONCharacter.sol
MONCharacterVault.sol
MONColosseum.sol
🔧 기술 스택
네트워크: Monad Testnet
RPC URL: https://testnet-rpc.monad.xyz
Chain ID: 10143 (0x279F)
Explorer: https://testnet.monadexplorer.com/
wallet solution: privy
fullstack : nextJs, typescript
CSS: tailwind
📋 컨트랙트 인터페이스
MONCharacter 주요 함수
MONCharacterVault 주요 함수
MONColosseum 주요 함수
📊 Future Task