Graffiti
Heroglyph Graffiti is constructed with the following format:
#
precedes the tickers' names, separated by commas.@
precedes the Graffiti Id's name.-
precedes the global chain to execute all tickers on.
If -
is missing, the default chain will automatically be used as global. If #
or @
are missing, the graffiti is invalid and won't be executed by Heroglyphs.
Note: You will have to pay the LayerZero fee on the target chain if you are not minting on Arbitrum.
Example of a valid graffiti: #lueygi,69@atum-a
#lueygi,69@atum
#@atum
Examples of invalid graffiti: @atum-a
#lueygi-a
#lueygi@-a
lueygi@atum
Advanced
You can override a specific ticker's execution chain by adding it after the ticker name: #TickerNameA:OverriddenChain,TickerNameB@0xAtum
For example: #lueygi:h,69@atum
In this example, lueygi
will be minted on Base, and 69
on Arbitrum.
Cross-chain fee & claiming
When minting from another chain, you'll need to pay the layer-zero fee on the target chain, requiring extra steps.
For simplification, let's consider minting lueygi
on base
:
Switch to Base.
Approve WETH for
lueygi
.Execute
lueygi.claimAction(srcChainLzEndpoint, [0])
.[0]
is the id of the minting, for simplification, we will say this is our first time doing so
You'll pay the layer-zero fee with WETH and receive your token on the base chain
Cross-chain graffiti's code
Last updated