UbiquiBot Payments Setup
Make sure to set up your bot for automated payments!
Bot Wallet Setup
- Generate a new private key. You can go to your MetaMask and create a new wallet.
- Any private key generation method is acceptable as long as you can access the private key.
- Export the private key.
Allow Permit2
Spender
- Deposit
0.000046098
ETH per GWEI (e.g.0.0023049
ETH for 50 GWEI) to your newly generated wallet address.
- Go to your payment token’s
writeContract
interface on Etherscan. - DAI stablecoin
writeContract
interface https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#writeContract
- Approve
Permit2
as your spender0x000000000022D473030F116dDEE9F6B43aC78BA3
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. - For example
10000
DAI should be input as10000000000000000000000
- Reference transaction with 1 DAI approval https://etherscan.io/tx/0xaceeafd1c03c1347f7307b22b2fe89145d3e4a24fdf57abd3c4978a9b4cb2181
Generate Github Personal Access Token (classic)
- Click on
Generate new token (classic)
- Select scopes
repo
andadmin:org
- Click on
Generate token
and save the token (we will use it later)
Â
Generate Bot Config
- Set
WALLET_PRIVATE_KEY
field with your wallet’s private key
- Set
GITHUB_PAT
field with your github personal access token
- Set
ORG_NAME
field with your organization name
- Click
SET
button
- 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!