Listens for Bridge In events.
Checks the balance of the address performing a Bridge In.
Fund that account if the balance is under a set limit with the native gas token so they can perform a basic swap. Usual case is bridging in the wrapped native token.
Use the Foundry tool Cast to generate a wallet to perform the funding.
$ cast wallet new
Successfully created new keypair.
Address: 0xAA15c5cD2005A4534b8593a3e575d8539b9A17dc
Private key: 0x1234
Ubiq Bridge Funder address: 0xAA15c5cD2005A4534b8593a3e575d8539b9A17dc
Copy the sample file and modify
cp env.sample env
Use Docker or a wrapper run script.