Skip to content

barry-en/avatar-assets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decentraland Avatar Assets

This repository contains the supporting assets for avatars in the Decentraland world.

Getting Started

  • Install Node dependencies
npm install
  • Create a file containing a keypair of the Ethereum address and private key to deploy to the content server.
{
    "ethAddress": "...",
    "privateKey": "..."
}

Deploy to Content Server

ℹ️ This script will generate a new entity every time the script is run

⚠️ If you are deploying new base wearables please be sure that its urn is in https://github.com/decentraland/catalyst/blob/master/lambdas/src/apis/collections/off-chain/base-avatars.ts

How to Use

npm run deploy generates the new assets and deploys them to the specified content server.

It needs the following arguments to be passed:

  • --identityFilePath: file path to the key/address pair to sign the messages for the content server validation.
  • --target: the target URL of the content server where the assets will be deployed.
  • --id: id of the assets to be deployed. It allows wildcards to specify multiple assets. Examples: * or dcl://base-avatars/*.

Examples

Deploy a Specific Asset to a Content Server

npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/BaseMale"

Deploy Multiple Assets to a Content Server

npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/BaseFemale" --id "dcl://base-avatars/BaseMale"

Deploy all Base Avatars to a Content Server

npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "https://peer.decentraland.zone" --id "dcl://base-avatars/*"

Deploy all Files to a Local Server

ℹ️ A running local server is necessary to test this.

npm run deploy -- --identityFilePath "/path/to/admin/key/file" --target "http://localhost:6969" --id "*"

About

👔 Collection of 3D models for Decentraland avatars

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%