Skip to content

rarible/wen-program-library

 
 

Repository files navigation

WEN Program Library

A collection of Solana programs maintained by the WEN developer community.

Contents

Overview

WEN New Standard

WEN New Standard is a specification for representing NFTs using Token Extensions (TE). This specification is enforced and encoded through a program that currently addresses missing features such as token groups and setting up required extensions on TE.

WEN Royalty Distribution

WEN Royalty Distribution is a specification for royalties on WNS assets, which also enforces the payout of royalties through a Token Extension transfer hook.

Building

To build the programs from the root directory of the repository:

yarn install

to install the required libraries, then:

anchor build

This will create program binaries at <ROOT>/target/deploy/<program_name>.so and IDLs at <ROOT>/target/idl/<program_name>.json.

Testing

All program tests are located under the /tests directory:

anchor test

Programs

This project contains the following programs:

wen_new_standard wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM

The packages below can be used to interact with wen_new_standard program.

JavaScript

npm install @wen-community/wen-new-standard

Rust

cargo add wen_new_standard

wen_royalty_distribution diste3nXmK7ddDTs1zb6uday6j4etCa9RChD8fJ1xay

Clients

Each program in the project contains autogenerated Javascript and Rust clients:

wen new standard:

Contributing

Check out the Contributing Guide the learn more about how to contribute to this project.

CLI

The Wen Program Library, now has a CLI allowing users to create collections and asset related operations. Click here to learn more about the commands present.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.9%
  • Rust 46.5%
  • Other 0.6%