This directory contains examples for interacting with the Native Bridge contract, which handles native token (GAS/NEO) bridging operations.
nativeBridgeOperations.ts- Native bridge management operations (set, deposit, claim, pause/unpause, fee management)pauseOperations.ts- Bridge and deposits pause/unpause operations testingreadOnlyMethods.ts- Comprehensive read-only queries for bridge state, configuration, and NEP-17 token balances
npm run neo:nb:operations- Interactive operations based on NATIVE_OPERATION env varnpm run neo:nb:readonly- Display comprehensive bridge state, configuration, and NEP-17 token balancesnpm run neo:nb:pause- Test pause/unpause operations
npm run neo:nb:set- Set native bridge configurationnpm run neo:nb:deposit- Deposit native tokensnpm run neo:nb:claim- Claim native tokensnpm run neo:nb:pause-bridge- Pause the native bridgenpm run neo:nb:unpause-bridge- Unpause the native bridgenpm run neo:nb:set-fee- Set native deposit feenpm run neo:nb:set-min- Set minimum native deposit amountnpm run neo:nb:set-max- Set maximum native deposit amountnpm run neo:nb:set-total- Set maximum total deposited native amount
NATIVE_BRIDGE_CONTRACT_HASH- Contract hash of the Native BridgeNEO_NODE_URL- RPC URL of the Neo nodeNEO_WALLET_PATH- Path to the wallet fileNEO_WALLET_PASSWORD- Password for the wallet (if encrypted)
See individual files for specific environment variables required for each operation.