Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: PR#69 adjustments #81

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
25932b2
feat: add the permit-generator github action
hhio618 Sep 15, 2024
f0b5b9d
feat: add permit-generator script [WIP]
hhio618 Sep 23, 2024
36e3245
feat: add the permit-generator script
hhio618 Sep 24, 2024
b2038b0
feat: post permits to github issues
hhio618 Sep 27, 2024
c3b3c8d
fix: few adjustments
hhio618 Sep 27, 2024
798aa5c
fix: add missing envs
hhio618 Sep 29, 2024
e397fe0
refactor: downgrade to ethers@v5
obeys Sep 15, 2024
787979f
fix: add yarnrc file back
obeys Sep 15, 2024
2e61614
chore: change yarn version
obeys Sep 16, 2024
ba0d046
chore: remove packageManager
obeys Sep 16, 2024
a225135
fix: remove the env decoder
hhio618 Sep 29, 2024
f926e74
fix: type/typo fix
hhio618 Sep 29, 2024
1620035
chore: add logs
hhio618 Sep 29, 2024
0ac5357
fix: extend context env type
hhio618 Sep 29, 2024
917ae26
refactor: switch over action core lib
hhio618 Sep 29, 2024
f828cb3
chore: add log
hhio618 Sep 29, 2024
8540751
refactor: add USERS_AMOUNTS env
hhio618 Sep 29, 2024
133090e
chore: add more logs
hhio618 Sep 29, 2024
f4fb78c
Merge branch 'ubiquity-os:development' into development
hhio618 Sep 30, 2024
a7c05c9
fix: supabase wallets query
hhio618 Oct 3, 2024
7191ee8
feat: use workflow_dispatch runId as issueNodeId
hhio618 Oct 3, 2024
011e368
chore: cleanup
hhio618 Oct 3, 2024
81884f6
fix: add missing env X25519_PRIVATE_KEY
hhio618 Oct 3, 2024
04ecb36
test: hard-code fastest provider
hhio618 Oct 3, 2024
f31251d
fix: pipeline data flow
hhio618 Oct 3, 2024
203433f
fix: report request
hhio618 Oct 3, 2024
153dfe4
fix: report request
hhio618 Oct 3, 2024
55423fb
refactor: runId type
hhio618 Oct 8, 2024
52cb2c3
Merge branch 'ubiquity-os:development' into development
hhio618 Oct 8, 2024
d5f79bc
fix: unit-tests
hhio618 Oct 8, 2024
479ce93
chore: cleanup
hhio618 Oct 8, 2024
663e0de
feat: use precompiled script
hhio618 Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/permit-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Permit Generator

on:
workflow_dispatch:
inputs:
users_amounts:
description: "A JSON array containing usernames and associated amounts"
required: true
# example: '[{"user1": 100}, {"user2": 150}]'

jobs:
run:
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"

- name: Process permit requests
id: parse
run: |
echo "Received input: ${{ github.event.inputs.users_amounts }}"
node scripts/compiled/index.js permits.txt
shell: bash
env:
X25519_PRIVATE_KEY: ${{ secrets.X25519_PRIVATE_KEY }}
EVM_NETWORK_ID: ${{ secrets.EVM_NETWORK_ID }}
EVM_PRIVATE_KEY: ${{ secrets.EVM_PRIVATE_KEY }}
EVM_TOKEN_ADDRESS: ${{ secrets.EVM_TOKEN_ADDRESS }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL}}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERS_AMOUNTS: ${{ github.event.inputs.users_amounts }}

- name: Report by opening an issue
run: |
export PERMITS=$(cat permits.txt)
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"title\": \"Workflow Dispatch Report\", \"body\": \"$PERMITS\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@types/node": "^20.11.19",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@vercel/ncc": "^0.38.2",
"cspell": "^8.4.0",
"eslint": "^8.56.0",
"eslint-plugin-sonarjs": "^0.24.0",
Expand Down
Loading
Loading