Create Add Rewards Payload #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Add Reewards Payload | |
on: | |
workflow_dispatch: | |
inputs: | |
token: | |
description: 'Token' | |
required: true | |
destination: | |
description: 'Destination Address(or unqiue addrbook string)' | |
required: true | |
whole_amount: | |
description: 'Whole Amount (provide either whole_amount or wei_amount)' | |
required: false | |
wei_amount: | |
description: 'Wei Amount' | |
required: false | |
multisig: | |
description: 'Source Multisig Address (or unique addrbook string)' | |
required: true | |
chain_name: | |
description: 'Chain Name. Exists in bal_addresses: One of [base, gnosis, zkevm, avalanche, mainnet, arbitrum, optimism, polygon, sepolia]' | |
required: true | |
jobs: | |
run-script-and-create-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install web3 | |
pip install bal_addresses | |
- name: Run script | |
run: | | |
cd action-scripts | |
python erc20_transfer_payload.py | |
env: | |
TOKEN: ${{ github.event.inputs.token }} | |
DESTINATION: ${{ github.event.inputs.destination }} | |
WHOLE_AMOUNT: ${{ github.event.inputs.whole_amount }} | |
WEI_AMOUNT: ${{ github.event.inputs.wei_amount }} | |
MULTISIG: ${{ github.event.inputs.multisig }} | |
CHAIN_NAME: ${{ github.event.inputs.chain_name }} | |
INFURA_KEY: ${{ secrets.INFURA_KEY }} | |
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: ERC-20 transfer payload generated by github action | |
branch: erc20-xfer | |
branch-suffix: timestamp | |
delete-branch: true |