Markets and tokens

Token metadata

Every token carries full metadata, like any launch on Montra: a name, a symbol, an image, a description and links. It's fixed at launch, for every template and for every play token, and readable on chain the way Montra tokens are.

What's fixed at launch

Everything a token shows, fixed at launchexample · CoreposProfiles
BL
BTC Long Loop 3x
BTCL3
locked

Buys BTC at 3×, takes profit at +2%, stops at −1%, repeats.

corepos.xyzx.comt.mediscord.gg
getTokenInfo()contractURI()logo()description()socials()deployer()
Name and symbol
What's in it: The token's ERC-20 name and ticker. Styled letters become ordinary ones (full-width BTC is BTC). Characters that don't show are refused in the name and the description: direction marks, zero-width spaces and joiners, so emoji built with a joiner too. A ticker is 1–12 letters A–Z and digits.
Links
What's in it: Website, X, Telegram and Discord: https only, no name before an @, and an address that mixes alphabets (a Cyrillic letter in a Latin name, punycode look-alikes too) is refused.
metadataURI
What's in it: A document { name, symbol, description, image, website, twitter, telegram, discord } at an ipfs:// or https:// URI.
profile
What's in it: { logo, description, socials: { telegram, twitter, discord, website, extra } }

On chain

  • The factory writes the metadata to CoreposProfiles in the launch transaction.
  • It checks the links first: ipfs:// or https:// for images and documents, https:// for links, with length limits.
  • Nothing can change it after launch.
  • On the site, a token's image shows only when Corepos hosts it or it's on IPFS; any other image is hidden and the coin's icon shows instead. Each link shows its host next to its icon (xn-- form for non-Latin hosts), and a name or ticker that looks like another token's gets a “Similar to …” notice.
  • A play token (the CoreposBundle contract) carries the same: CoreposBundles.create(legs, weights, name, symbol, metadataURI, profile) takes it at launch, and each one answers getTokenInfo(), logo(), description(), socials() and deployer() on its own address. See Launch a play token.

The token's calls

Every token answers Montra's calls on its own address (interface ICoreposToken), so terminals and explorers that read Montra tokens read Corepos tokens the same way.

getTokenInfo()
Returns: The token's info in one call, the way Montra tokens answer it
contractURI()
Returns: The metadata document's URI
tokenURI()
Returns: The same URI, for readers that ask for it by this name
metaURI()
Returns: The same URI
logo()
Returns: The logo's URI
description()
Returns: The description
socials()
Returns: Telegram, X, Discord, website and an extra link
deployer()
Returns: The address that launched the token

Uploading

The launch form uploads the image and the document for you, through the Corepos API, mirroring Montra's routes, and only when you launch: right before your wallet signs, the image goes up, then the document. Until then both stay in your tab, so filling in the form sends nothing anywhere.

POST /api/metadata/image
Takes: The raw bytes of a PNG, JPEG, WebP or GIF, checked by their magic bytes
Limits: 2 MB and 4096 × 4096 pixels, 20 an hour per IP
Returns: { uri, url, sha256 }
POST /api/metadata
Takes: { name, symbol, description, image, website?, twitter?, telegram?, discord? }; the rules above
Limits: Name ≤ 64, ticker 1–12, description ≤ 1,000 characters, 30 an hour
Returns: { uri, url }

Each image is re-encoded to a 512 px WebP and its metadata (camera, GPS and the like) is stripped before it's stored; an animated GIF keeps its first frame. Files are stored on IPFS through Pinata, or, without it, by content hash and served from /metadata/{sha}. The same bytes always give the same URI.

  • The form checks an image when you pick it: a PNG, JPEG, WebP or GIF of at most 2 MB that opens as an image. At launch the server can still refuse it (over 4096 × 4096 pixels, or uploads paused for a while: too many at once, or storage full), and the launch says why.
  • Uploads work from corepos.xyz. On any other copy of the site (a test deployment, your own machine) the image stays a local preview in your tab.