CARV 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 21쪽 중 11쪽

proof of participation, verifiable and interoperable in gaming ecosystem. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FCYkXUujthIkz4xI7WldO%2F%E7%99%BD%E7%9A%AE%E4%B9%A6Event%20pageEvent.jpg?alt=media&amp;token=be03e8cd-f7e7-4716-837b-ee24516fe294" alt="CARV Events Page"><figcaption><p>CARV Events Page</p></figcaption></figure> * **What's GEM after all?** GEM serves as a kind of incentive on CARV Play. You can accumulate GEM through various means: * Participating in events with GEM prize pools * Unlocking mystery boxes in CARV Pass * Reaping level-up rewards in CARV Pass * Securing a position within the top 300 on the CARV Pass seasonal leaderboard * Exploring other opportunities GEM is your ticket to redeeming various rewards, including in-game items, cash, $CARV rewards, physical prizes from CARV Shop, and more! #### [**CARV Shop**](https://carv.io/shop/all) **- Where Reward Redemption Happens!** CARV Shop provides diverse real-world and virtual rewards, such as game consoles, computers, gift cards, in-game NFT, profile frames, etc. You can purchase them or join raffles using your GEMs to win these prizes. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FBhMUzuy9PiJdA98e3h1V%2Fimage.png?alt=media&amp;token=13ee90ff-9257-4a7f-bf00-dcd76620df25" alt="CARV Shop"><figcaption><p>CARV Shop</p></figcaption></figure> #### [**Game Discovery**](https://carv.io/discovery) **by All Means** CARV lists 600+ top notch Web2 and Web3 games, mostly though official partnerships, offering our gamer community exclusive events and rewards. Discovery games might interest you driven by data and authentic reviews (credential-gated, with real players) from gamers alike. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FMX4oLncGDixxQQgoPPZS%2Fimage.png?alt=media&amp;token=2be11e45-cb19-4837-8178-e62005ffa55f" alt="CARV Discovery Page"><figcaption><p>CARV Discovery Page</p></figcaption></figure> <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fh37LHfRmGvRSKtdlBXTK%2Fimage.png?alt=media&amp;token=07066441-82de-4335-a116-edbfc7290eb4" alt="CARV Games Page"><figcaption><p>CARV Games Page</p></figcaption></figure> * **Game Details with Game's Mission Board, Analytics and Progression & Portfolio Overview** * **Missions:** Various, on-demand in-game or community missions launched by the game, with mission points offered. These missions not only guide you through the game but also bids you onto leaderboard and redeems rewards. * Use case: [CARV Mission Board Spotlight: Apeiron, Tearing Space, and Genopets](https://medium.com/carv-official/carv-mission-board-spotlight-activating-communities-through-customizable-events-ffd82fb5456f) * **Insights:** Go-to analysis of the game token performance and social trends. * **Reviews:** Rate the game on gameplay and whether 'bullish' with authentic reviews during or post play. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FDYZDOeWTHzz44dDKoZEN%2Fimage.png?alt=media&amp;token=a811a8b9-14db-4fb9-9cbc-5be6908d8bf0" alt="CARV Game Detail Page - Overview"><figcaption><p>CARV Game Detail Page - Overview</p></figcaption></figure> #### [**CARV Pass**](https://carv.io/carvpass) **- Elevate Your Play Experience** CARV Pass marks the pioneering project on the CARV platform, where players can earn GEM and unlock rewards directly. It offers a thrilling journey with critical levels, packed with opportunities, rewards, and surprises. There are four distinct types of quests in CARV Pass each season: * **Time Limited**: Only available for a specified period - race against the clock! * **Weekly**: Enjoy recurring weekly quests, e.g., daily check-ins and say hi to CARV community. * **Monthly**: On a monthly basis. Riding your play, signature activity quests might include writing game reviews on CARV Play or CARV game achievement SBTs. * **Seasonal**: Get into the spirit of the season! Upon completing quests, EXP will be collected. Level up with EXP, and unlock a host of rewards, including Power, GEMs, mystery boxes, SBTs, Titles, lottery entries, and more!&#x20; <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fmyi7wsIFHQm2CYkHU7ra%2Fimage.png?alt=media&amp;token=226eda62-8499-4764-94ac-5d222a0cec76" alt="CARV Pass Level Up Rule"><figcaption><p>CARV Pass Level Up Rule</p></figcaption></figure> * **What’s Power?** Power dictates how effectively you can benefit from the GEM prize pool. The higher power, the bigger share of GEM rewards you will get from total prize pool. Base power starts at 1.0, your power can go up to 3.0. Boost your power by: * Leveling up your Pass&#x20; * Equipping the Dragon Treasure NFT.[Learn more about Dragon Treasure NFT](https://medium.com/@Carv/carvers-did-arise-dragonball-in-a-nutshell-34ea58923af5) and acquire one on [OpenSea](https://opensea.io/collection/dragontreasure)! Note that if you own multiple Dragon Treasure NFTs, only the highest-level one will be used for power enhancemen&#x74;*.* <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fy7YxWeqOimMbMIRiP3gT%2Fimage.png?alt=media&amp;token=0b9429ee-9af7-4ebe-9618-302550db2bac" alt="CARV Pass Power Explanation"><figcaption><p>CARV Pass Power Explanation</p></figcaption></figure> * **Seasonal Leaderboard** The leaderboard hinges on your Pass Level and EXP. CARV will take a snapshot of the Top 300 on the leaderboard at the end of each season. A sneak peek at the leaderboard's rewards: <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FNRcUeRO3ro7hyqK0NSLU%2Fimage.png?alt=media&amp;token=21dec335-de45-4f07-9d6f-df183f623c7c" alt="CARV Pass Leaderboard Reward"><figcaption><p>CARV Pass Leaderboard Reward</p></figcaption></figure> # Portal Access Reach passionate gamers worldwide with intuitive onboarding and interactive campaigns built with off-the-shelf modules! CARV Portal is the game distribution and data analytics tooling for games, helps game partners to acquire, onboard, retain gamers on CARV Play and learn users' insights from the large quantity and high quality first\&zero party data. ### **Game Listing** Listing games on CARV is the first step to unlocking a comprehensive range of features and services provided by CARV. By building dedicated gamezones, developers can get exposure to millions of gamers and start to launch events, missions, rewards to onboard and retain gamers.Learn more: <https://carv-official.notion.site/Game-Listing-f03aa8bc342848e19ce5dc200f1a9219> ### **Events** With CARV's event launcher module, game developers can create incentive campaigns to gain exposure to real gamers in both the Web2 and Web3 gaming space. CARV offers highly customizable qualification criteria and rewards tailored to your specific goals.[Learn more: https://carv-official.notion.site/Event-Launcher-a8b9664ce751469092e978b3e9724b86](https://carv-official.notion.site/Event-Launcher-a8b9664ce751469092e978b3e9724b86) ### **Mission integrations** Missions offer a complete solution for projects seeking to acquire, activate, engage, and retain your community and players. Games can create recurring quests designed to span extended periods. Players earn rewards points as they complete these quests, which can be redeemed for in-game rewards.[Learn more: https://carv-official.notion.site/Missions-System-3e05da5f70084af28798164fb9c104a7](https://docs.carv.io/resources/for-developer) ### **SBT membership** Unique, non-transferable digital profile pictures created using AI, each linked to a soulbound token that signifies the owner's permanent and exclusive membership, reinforcing their identity and belonging within the Wolves DAO community. ### **MOFF integrations** Moff is the Discord bot that empowers game community managers and supercharges the Discord servers. It was a winning project from BNBChain's Zero2Hero Hackathon and will help games grow the community, gain deeper insights into users, and streamline the day-to-day tasks.[Learn more: https://moff-bot.notion.site/Moff-Guide-2084f6f6c855436ba0b25fc7b8611779?pvs=4](https://moff-bot.notion.site/Moff-Guide-2084f6f6c855436ba0b25fc7b8611779?pvs=4) ### **Data Analytics** Based on the on-chain and off-chain zero & first-party data from over 2.4M users across various platforms, along with user behavior within CARV and CARV-partnered games, CARV offers its partners data analysis capabilities not limited to the following, to help games better understand their users: 1. Based on user on-chain and off-chain account bindings and data authorizations, generate over 200 user tags, providing games with data query capabilities, targeted advertising, and user attribute analysis based on tags. 2. Based on user participation in events, provide game projects with post-event data and participant profiles. 3. Based on user behavior in partnership games (through CARV ID Oauth or CARV API), provide game projects with user behavior data analysis and user profiling. 4. Based on game’s target user profiles, provide similar target audience group analysis and competitive analysis to partnered games. 5. Discord growth, engagement, retention, event data, and regional data analysis 6. Twitter data monitoring and analysis and sentiment analysis (in alpha testing). After verification, you will be able to list your game, launch campaign, and engage your community through [here](https://portal.carv.io/).&#x20; # Integration Guide #### .Play Name Service&#x20; For dApps to integrate the .Play Name Service (PNS) into your application. It allows your dApp to resolve domain names to Ethereum Virtual Machine (EVM) wallet addresses and to retrieve domain names associated with a user's EVM wallet address. {% content-ref url="/pages/oIA7NQp98ZprIFQ0GJUy" %} [.Play Name Service Integration](/carv-ecosystem/carv-play/carv-intro/.play-name-service-integration) {% endcontent-ref %} #### API-Verifed Quest For games who wish to create their own quest in Events or Missions on CARV Play, such as instructing users to complete specific in-game tasks where data is not publicly available, CARV made it possible by allowing games to provide their own verification API to check user completion status. CARV supports both RESTful API and GraphQL API for maximum compatibility with your current system. {% content-ref url="/pages/Ojaa4PdNU0m7nwz8FnIq" %} [API-Verified Quest (RESTFUL)](/carv-ecosystem/carv-play/carv-intro/api-verified-quest-restful) {% endcontent-ref %} {% content-ref url="/pages/shxbbpWXHatKDwK5iThp" %} [API-Verified Quest (GraphQL)](/carv-ecosystem/carv-play/carv-intro/api-verified-quest-graphql) {% endcontent-ref %} # .Play Name Service Integration ### Overview This guide provides instructions for integrating the .Play Name Service (PNS) into your application using our JavaScript SDK. It allows your app to resolve domain names to Ethereum Virtual Machine (EVM) wallet addresses and to retrieve domain names associated with a user's EVM wallet address. ### Use Cases In any scenario where a user would normally encounter an EVM wallet address, your application can now present a more user-friendly PNS name. This integration primarily enhances your app in two ways: 1. Displaying PNS Names Instead of EVM Wallet Addresses: In the user interface of your application, replace the raw display of EVM wallet addresses with corresponding PNS names. This substitution can occur wherever an address typically appears, making the interface more intuitive and user-friendly. 2. Enabling PNS Name Entry in Input Fields: Modify input fields that traditionally require an EVM wallet address, allowing users to input PNS names instead. This feature simplifies user interactions, particularly in situations where memorizing or copying lengthy EVM wallet addresses can be cumbersome. ### Getting Started #### Install ```Python npm install @carv-protocol/pns-js ``` #### Set up ```Python import { getNames, getAddress} from '@carv-protocol/pns-js' ``` #### Forward Resolution You can get address from domain name using the following method. ```Python const testDomain = "carv-engineer.play" const address = await getAddress(testDomain); ``` #### Reverse Resolution You can get a list of domain names associated with an address. Note that the 'Primary Domain' feature is not yet released where a user can choose one domain name (from multiple) an address resolves to. This method will simply return all the associated domain names in ascending order by length. ```Python const testAddress = "0x25dC11C90349024C083e34f3f749ffAb7AEd0e48"; const names = await getNames(testAddress); ``` # API-Verified Quest (RESTFUL) How to set up custom quest using RESTful API. ## Introduction CARV allows the use of OpenAPI to verify whether a user has completed a quest.&#x20; ## Sequence Digram <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2F0nGZz2JzFrKPMDWeWbRz%2Fimage.png?alt=media&amp;token=db4b3af0-b618-4d6c-959c-c371cd7692a3" alt=""><figcaption></figcaption></figure> ## Specifications&#x20; **Request** The API used for verification must be an open API. \ You can choose to use either **email** or **wallet address** or **user ID of third-party platforms** as the identifier to verify a user. \ You can choose *optionally* to add custom headers to the request, such as an API key.\ We will also include **begin time** and **end time** (timestamp in milliseconds) for a quest in case this information is required for verification.&#x20; So a GET Request will look like the followings: {% code overflow="wrap" %} ```sh # wallet address curl https://<domain>/<serverpath>?address=<userAddress>&begin_time=<timestamp>&end_time=<timestamp> ``` {% endcode %} OR {% code overflow="wrap" %} ```sh # email curl https://<domain>/<serverpath>?email=<userEmail>&begin_time=<timestamp>&end_time=<timestamp> ``` {% endcode %} OR {% code overflow="wrap" %} ```sh # Telegram id curl https://<domain>/<serverpath>?telegram_id=<userTelegramId>&begin_time=<timestamp>&end_time=<timestamp> ``` {% endcode %} OR {% code overflow="wrap" %} ```sh # Line id curl https://<domain>/<serverpath>?line_id=<userTelegramId>&begin_time=<timestamp>&end_time=<timestamp> ``` {% endcode %} #### Response Format {% code overflow="wrap" %} ```json { "result":{ //required on success "isValid":<true | false> //boolean: whether the user completed the quest. }, "error":{ //required on error, this field MUST NOT exist if there was no error triggered during invocation. "code":<error code>, //number "message":"<error message>" } } ``` {% endcode %} # API-Verified Quest (GraphQL) How to set up custom quest using GraphQL API. ## Introduction GraphQL verification takes a single wallet address or email as input and outputs 0(false)/1(true) to indicate whether the wallet address is eligible. It requires 3 fields to be filled in: **GraphQL Endpoint (HTTPs)**, **Query** and **Expression**. ## Sequence Diagram <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2F6DyBO2kWzy7gudpots69%2Fimage.png?alt=media&amp;token=e06e8f8e-81ba-40c6-97b3-25ebafb4e250" alt=""><figcaption></figcaption></figure> ## GraphQL Endpoint (HTTPs) It's the HTTPs endpoint where Subgraph queries go to, see the example below.&#x20; {% hint style="warning" %} NOTE: If you saw an error when testing the API, check if the endpoint is a valid GraphQL API endpoint. Common misconfigurations include: * &#x20;Incorrectly used a GraphQL *playground* url, that usually ends with `/graph` * &#x20;The GraphQL endpoint does now allow CORS from carv.io. {% endhint %} ## Query The GraphQL query requires a single wallet address as input. In the dashboard, once you finish your query, fill in a test address and click 'Run' button to check if the query's return is good. ## Expression A JavaScript (ES6) function with this type signature: `(object) => int`. The function must be anonymous, which means that the first line of the expression should be like `function(data) {`, instead of `let expression = (data) => {`. The function should return either number 1 or 0, representing if the address has completed the quest. Behind the scenes, first, we send the query with the user's address to the GraphQL endpoint, and then we will apply the function against the 'data' field of the response. If the returned value is 1, then user is considered to have completed this quest, otherwise not. Once the query's output is good, click 'Run' button to check if expression processes the query's output correctly. ## Subgraph Examples **Endpoint** ``` https://api.thegraph.com/subgraphs/name/carv-protocol/carvachievementsonbnb ``` **Query** ```graphql query info($address: String!) { # write you query here erc1155Balances( first: 1 where: {token_: {identifier: "1"}, account_: {id: $address}} ) { account { id } token { id identifier } } } # test address: 0x357A5eE000B5cA0935Aad7bb4Cb96E8AcAf46727 ``` **Query Output** ```json { "erc1155Balances": [ { "account": { "id": "0x357a5ee000b5ca0935aad7bb4cb96e8acaf46727" }, "token": { "id": "0xc2f24ffe96a69e381a747dc73fcd51492e29a0a4/0x1", "identifier": "1" } } ] } ``` **Expression** ```javascript function verify(data){ if (data.erc1155Balances.length > 0){ return true } else { return false } } ``` **Expression Output** ``` true ``` # CARV ID OAuth 2.0 ## Overview This guide is intended for developers looking to integrate CARV ID authentication into their applications using OAuth 2.0. OAuth 2.0 is a standard for authorization that enables third-party applications to obtain limited access to an HTTP service. By integrating CARV ID OAuth 2.0, users can securely and conveniently log in to your application using their CARV ID credentials. ## Prerequisites Before you begin, ensure you have the following: * A registered application with CARV and your `Client ID` and `Client Secret`.&#x20; * An understanding of OAuth 2.0 flow. ### Step 1: Register Your Application 1. **Determining Necessary Permissions**: Begin by reviewing the [application scopes available](#scopes) to identify the permissions your application will need. 2. Provide Application Information: Share your application's **Redirect URL** and the **scopes** you've selected based on your needs. Additionally, provide the following information: * **Name Displayed on OAuth Screen**: The name of your application as it will appear during the authentication process. * **Home Page URL**: The main URL of your application, where users can learn more about your service. * **Logo Image URL**: A URL pointing to your logo image, which will be displayed during the authentication process. * **Privacy Policy URL**: The URL of your privacy policy page. * **Terms of Service URL**: The URL of your terms of service page. 3. After we receive this information, we will set up your OAuth configuration and provide you with a Client ID and Client Secret. Keep these confidential. ### Step 2: Implement the OAuth 2.0 Flow {% hint style="info" %} &#x20;OAuth 2.0 flow at a very high level: * The application renders a “Sign in with CARV ID” link or button. * The user clicks the sign in button. * The current web browser is redirected to CARV (or a new browse
프로젝트로 돌아가기