Skip to main content

Constants

Chain Identifiers

The chain identifier is used to uniquely identify the chain and is entered as a parameter when setting the remote endpoint.

bytes4 constant _DARWINIA_CHAIN_ID = 0x64617277; // darw
bytes4 constant _CRAB_CHAIN_ID = 0x63726162; // crab
bytes4 constant _PANGORO_CHAIN_ID = 0x70616772; // pagr
bytes4 constant _PANGOLIN_CHAIN_ID = 0x7061676c; // pagl
bytes4 constant _PANGOLIN_PARACHAIN_CHAIN_ID = 0x70676c70; // pglp
bytes4 constant _CRAB_PARACHAIN_CHAIN_ID = 0x63726170; // crap

Lane Identifiers

The lane identifier identify the channel used to send and receive messages. Go to Glossary to see more info.

bytes4 constant _DARWINIA_CRAB_LANE_ID = 0x00000000;
bytes4 constant _PANGORO_PANGOLIN_LANE_ID = 0x726f6c69; // roli
bytes4 constant _PANGOLIN_PANGOLIN_PARACHAIN_LANE_ID = 0x70616c69; // pali
bytes4 constant _CRAB_CRAB_PARACHAIN_LANE_ID = 0x70616372; // pali