This directory contains examples for interacting with the ExecutionManager contract, which handles message execution and bridge management operations.
executeMessage.ts- Execute messages with specified nonce and codepauseOperations.ts- Pause and unpause operations for the execution managerreadOnlyMethods.ts- Read-only method calls to query execution manager stateserializeCall.ts- Examples of serializing and validating calls
npm run neo:em:execute- Execute a message using MESSAGE_NONCE and EXECUTABLE_CODEnpm run neo:em:readonly- Read all execution manager state informationnpm run neo:em:pause- Test pause/unpause operationsnpm run neo:em:serialize- Test serialization and validation methodsnpm run neo:em:serialize-pause- Test serialization of isPaused method
EXECUTION_MANAGER_CONTRACT_HASH- Contract hash of the ExecutionManagerNEO_NODE_URL- RPC URL of the Neo nodeNEO_WALLET_PATH- Path to the wallet fileNEO_WALLET_PASSWORD- Password for the wallet (if encrypted)
- For
executeMessage.ts:MESSAGE_NONCE(integer),EXECUTABLE_CODE - For
serializeCall.ts:SERIALIZE_TARGET(orMESSAGE_BRIDGE_CONTRACT_HASH),SERIALIZE_METHOD(optional, defaults to 'isPaused') - Optional:
MESSAGE_BRIDGE_CONTRACT_HASH- Used for testing serialization methods