-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.33 KB
/
fund_funding_account.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Fund funding account
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- id: 0
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare funding
run: |
wget https://github.com/golemfactory/erc20_payment_lib/releases/download/pre-rel-v0.4.8-nightly/erc20_processor-linux-x86_64.tar.xz
tar -xf erc20_processor-linux-x86_64.tar.xz
sudo cp erc20_processor /usr/bin/erc20_processor
erc20_processor --version
- name: Generate ethereum accounts
run: |
mkdir funding && cd funding
erc20_processor generate-key -n 5 > .env
erc20_processor get-dev-eth
erc20_processor mint-test-tokens
erc20_processor run
erc20_processor transfer --recipient 0x9939f9a566768fbc8f13744a620ea400f71f157b --token glm --all
erc20_processor run
erc20_processor transfer --recipient 0x9939f9a566768fbc8f13744a620ea400f71f157b --token eth --all
erc20_processor run
cat .env | grep ETH_ADDRESS | sed "s/#\s//g" | sed "s/:\s/=/g" >> $GITHUB_ENV
cat .env | grep ETH_PRIVATE_KEY | sed "s/#\s//g" | sed "s/:\s/=/g" >> $GITHUB_ENV