Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1010 Bytes

File metadata and controls

55 lines (38 loc) · 1010 Bytes

A tool to deploy AI associated schemas on chain

Use to Deploy Schemas

Setup

  1. Pull the repository
  2. Install dependencies npm install

Usage

The script now expects the input JSON filename as the first argument. By default, use:

intents-and-schemas-to-publish.json

You can run one of the following commands based on the targeted chain.

npm run deploy:mainnet:intent
npm run deploy:mainnet:schema

or

npm run deploy:paseo

or

npm run deploy:local

Or run directly:

node index.mjs intents-and-schemas-to-publish.json PASEO
node index.mjs intents-and-schemas-to-publish.json LOCAL
node index.mjs intents-and-schemas-to-publish.json MAINNET INTENT
node index.mjs intents-and-schemas-to-publish.json MAINNET SCHEMA

The following environment variable allows you to change the default Alice sudo account used for deploying:

DEPLOY_SCHEMA_ACCOUNT_URI="//Alice"

e.g.

DEPLOY_SCHEMA_ACCOUNT_URI="//Bob" npm run deploy:paseo