🍯
Jam - Picnic’s Transaction Batcher
  • Jam
  • Smart Contracts
    • Router
    • Deployed contracts
  • API
    • Setting up the API
    • API methods
  • Governance
    • Networks and protocols
    • Roadmap
  • Technical
    • Architectural overview
    • Adding assets
    • Writing new integrations
Powered by GitBook
On this page
  1. Technical

Adding assets

Asset descriptions are made in JSON files located in the /data/assets/{chainId}/{protocolName} directory.

Each file is composed of a JSON array of objects with the following overall structure:

Parameter
Type
Details

id

string

UUIDv4

active

boolean

color

string

decimals

number

name

string

chainId

number

symbol

string

type

string

Must correspond to type of asset strategy

visible

boolean

allowSlot

number

Value returned from the findSlots function

balanceSlot

number

Value returned from the findSlots function

{
    "id": string,
    "active": boolean,
    "address": string,
    "color": string,
    "decimals": number,
    "name": string,
    "chainId": number,
    "symbol": string,
    "type": string,
    "visible": boolean,
    "allowSlot": number,
    "balanceSlot": number
}

PreviousArchitectural overviewNextWriting new integrations

Last updated 1 year ago