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

added crowdloan reward scripts #602

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

asiniscalchi
Copy link
Member

@asiniscalchi asiniscalchi commented May 23, 2024

PR Type

enhancement, configuration changes, documentation


Description

  • Added main script to fetch and process crowdloan contributions, including fetching contributors, calculating contributions, and generating rewards.
  • Implemented a script to map Bifrost addresses to Polkadot addresses, including file parsing and export functionalities.
  • Added various output files including rewards, contributions, and address mappings.
  • Included TypeScript configuration file with strict type-checking options.
  • Added package.json to manage project dependencies and scripts.

Changes walkthrough 📝

Relevant files
Enhancement
index.ts
Add main script for crowdloan rewards processing                 

scripts/crowdloan_rewards/index.ts

  • Added main script to fetch and process crowdloan contributions.
  • Implemented functions to fetch contributors, calculate contributions,
    and generate rewards.
  • Added error handling and file export functionalities.
  • +210/-0 
    bifrostMap.ts
    Add script for Bifrost to Polkadot address mapping             

    scripts/crowdloan_rewards/bifrostMap.ts

  • Added script to map Bifrost addresses to Polkadot addresses.
  • Implemented file parsing and export functionalities.
  • +49/-0   
    Documentation
    rewards.txt
    Add rewards output file                                                                   

    scripts/crowdloan_rewards/rewards.txt

  • Added file containing the calculated LAOS rewards for contributors.
  • +385/-0 
    bifrost_to_polkadot.md
    Add Bifrost to Polkadot address mapping file                         

    scripts/crowdloan_rewards/bifrost_to_polkadot.md

  • Added markdown file mapping Bifrost addresses to Polkadot addresses.
  • +28/-0   
    bifrost_contributors
    Add Bifrost contributors file                                                       

    scripts/crowdloan_rewards/bifrost_contributors

    • Added file listing Bifrost contributors and their contributions.
    +30/-0   
    Configuration changes
    tsconfig.json
    Add TypeScript configuration file                                               

    scripts/crowdloan_rewards/tsconfig.json

  • Added TypeScript configuration file with strict type-checking options.

  • +109/-0 
    package.json
    Add package.json for project dependencies and scripts       

    scripts/crowdloan_rewards/package.json

    • Added package.json with dependencies and scripts for the project.
    +22/-0   

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @asiniscalchi
    Copy link
    Member Author

    /describe

    Copy link

    PR Description updated to latest commit (cc66548)

    @asiniscalchi asiniscalchi merged commit e813d3e into main May 23, 2024
    8 checks passed
    @asiniscalchi asiniscalchi deleted the feature/crowdloan_rewards branch May 23, 2024 09:43
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    Generate Crowdloan Markdown publishable file & move code to LAOS repo
    2 participants