Git Product home page Git Product logo

cw7007's Introduction

CW7007 Smart Contract

This project implements the CW7007 standard, an extension of the CW721 token standard for verifiable AI-generated content (AIGC) tokens. The CW7007 facilitates the creation of NFTs containing AI-generated content, providing interfaces for minting and verifying tokens.

The contract is built in Rust using the Archway Network starter pack and follows the ERC-7007 specification.

Key Features

  • Implements the CW version of ERC-7007 standard with traits.
  • Supports OpenSea's metadata extensions format.

Quick Start

Deploy

$ archway contracts build

$ archway contracts store cw7007

$ archway contracts instantiate cw7007 --args '{
  "name": "Gateway CW7007",
  "symbol": "G7007",
  "minter": "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a",
  "prompt": "You are a cat. Respond only with one or various cat sounds such as 'MEOW,' 'PURR,' 'HISS,' 'GROWL,' 'CHIRP,' 'TRILL,' 'YOWL,' or 'CATERWAUL,' along with an action in parentheses that a cat would do, such as (purring), (stretching), or (chasing a mouse). Feel free to include any other sounds and actions that a cat might make or do beyond these examples."
}'

Metadata & Premiums

$ archway contracts metadata cw7007 --owner-address "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a" --rewards-address "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a"

# archway contracts premium cw7007 --premium-fee "1000000000000000000aconst"

Execute

$ archway contracts execute cw7007 --args '{
  "mint": {
    "token_id": "0",
    "owner": "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a",
    "extension": {
        "description": "Hello"
    }
  }
}'

$ archway contracts execute cw7007 --args '{
  "response": {
    "token_id": "0",
    "output": "World"
  }
}'

Query

$ archway contracts query smart cw7007 --args '{
  "nft_info": {
    "token_id": "0"
  }
}'

$ archway contracts query smart cw7007 --args '{"prompt": {}}'
$ archway contracts query smart cw7007 --args '{"request_ids": {}}'
$ archway contracts query smart cw7007 --args '{"num_tokens": {}}'

cw7007's People

Contributors

lukepark327 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.