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.000046098ETH per GWEI (e.g.0.0023049ETH for 50 GWEI) to your newly generated wallet address.
- Go to your payment token’s
writeContractinterface on Etherscan. - DAI stablecoin
writeContractinterface https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#writeContract
- Approve
Permit2as your spender0x000000000022D473030F116dDEE9F6B43aC78BA3with 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
10000DAI 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
repoandadmin:org
- Click on
Generate tokenand save the token (we will use it later)
Â
Generate Bot Config
- Set
WALLET_PRIVATE_KEYfield with your wallet’s private key
- Set
GITHUB_PATfield with your github personal access token
- Set
ORG_NAMEfield with your organization name
- Click
SETbutton
- 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!