UbiquiBot Setup

UbiquiBot Payments Setup

đź’ˇ
Make sure to set up your bot for automated payments!

Bot Wallet Setup

  1. Generate a new private key. You can go to your MetaMask and create a new wallet.
    1. Any private key generation method is acceptable as long as you can access the private key.
  1. Export the private key.

Allow Permit2 Spender

  1. Deposit 0.000046098 ETH per GWEI (e.g. 0.0023049 ETH for 50 GWEI) to your newly generated wallet address.
  1. Go to your payment token’s writeContract interface on Etherscan.
    1. DAI stablecoin writeContract interface https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#writeContract
  1. Approve Permit2 as your spender 0x000000000022D473030F116dDEE9F6B43aC78BA3 with an intentional amount. For security reasons it is best to not go higher than you can afford to lose. The integer you enter should append 18 zeros after.
    1. For example 10000 DAI should be input as 10000000000000000000000
    2. Reference transaction with 1 DAI approval https://etherscan.io/tx/0xaceeafd1c03c1347f7307b22b2fe89145d3e4a24fdf57abd3c4978a9b4cb2181

Generate Github Personal Access Token (classic)

  1. Open https://github.com/settings/tokens
  1. Click on Generate new token (classic)
  1. Select scopes repo and admin:org
  1. Click on Generate token and save the token (we will use it later)
 

Generate Bot Config

  1. Open https://pay.ubq.fi/onboarding
  1. Set WALLET_PRIVATE_KEY field with your wallet’s private key
  1. Set GITHUB_PAT field with your github personal access token
  1. Set ORG_NAME field with your organization name
  1. Click SET button
  1. Your should find your newly generated bot’s config at https://github.com/[YOUR_ORGANIZATION_NAME]/ubiquibot-config
 
Now your bot can generate permits to automatically pay for completed issues!