Prompt Wars: NEAR Protocol Recipes
  • NEAR Protocol Recipes
    • NEAR Guest Wallet Widget
    • NEAR and NEP141 Balance Widget
    • Render a Data Table from Contract VIEW Methods
    • Link an Account to Image, Text and Time Metadata with On-Chain Storage
    • Create Time State Machines with Realtime Block Timestamp Comparisons
    • Handle NEP141 Transfer Calls and Track the Target Contract's Balance
    • Handle FunctionCall Transaction Errors
  • Project Setup
    • The User Interface
    • The Rust Contracts
Powered by GitBook
On this page

Project Setup

Launch a Prompt Wars clone, edit the Rust contracts and edit the UI to create your own games.

File Structure

├── app
│   ├── plop-templates
│   │   ├── component
│   │   ├── hook
│   │   └── page
│   ├── public
│   │   ├── brand
│   │   ├── icons
│   │   ├── locales
│   │   ├── market
│   │   ├── prompt-wars
│   │   └── shared
│   └── src
│       ├── app
│       ├── context
│       ├── hooks
│       ├── layouts
│       ├── pages
│       ├── providers
│       ├── theme
│       ├── types
│       └── ui
└── contracts
    ├── market-factory
    │   ├── res
    │   └── src
    ├── prompt-wars
    │   ├── build
    │   └── src

The app/ directory is a NextJS application before the introduction of app router. The contracts directory has the game contract and the game factory contract.

Prompt Wars is open source

git clone git@github.com:aufacicenta/pulsemarkets.git
PreviousHandle FunctionCall Transaction ErrorsNextThe User Interface

Last updated 1 year ago

Follow , or just do:

this link to clone the repo