crossr
Build on crossr

@crossr/shared

  • Chains: CHAINS, chainMeta(id) (viem chain, LayerZero eid, Uniswap v4 addresses, explorer), SOLANA_CHAINS, isSolanaChain, chainLabel / chainColor / nativeCurrency / tokenDecimals for either kind, chainIdByEid, rpcUrl, solanaRpcUrl, explorerTx.
  • Manifest: hashManifest, encodeManifest, validateManifest, NATIVE, TOTAL_SUPPLY, MAX_LEGS.
  • Curve: quoteBuy, quoteSell, quoteForTokens, spotPrice, sellable, progress, reservedTokens over a CurveState that is exactly the on-chain Curve struct.
  • LayerZero: lzReceiveOptions(gas, value), RELAY_LEG_GAS, BRIDGE_RECEIVE_GAS. Deployments: deployment(chainId), deployedChainIds(). ABIs: launchpadAbi, launchTokenAbi, tokenBridgeAbi, launchRelayAbi, feeEscrowAbi, liquidityLockerAbi, launchHookAbi.