Skip to content

jyap808/bridgeFunder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridge Funder

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.

Set up

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

Set up Environment variables

Copy the sample file and modify

cp env.sample env

Use Docker or a wrapper run script.

About

Bridge funder. It's for onboarding.

Resources

Stars

Watchers

Forks