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

add: weight update functionality #1

Merged
merged 17 commits into from
Oct 20, 2024
Merged

add: weight update functionality #1

merged 17 commits into from
Oct 20, 2024

Conversation

Jabolol
Copy link
Collaborator

@Jabolol Jabolol commented Oct 20, 2024

This pull request introduces a new workflow for updating split weights, along with several other changes to the project configuration and SDK. The most important changes include adding a GitHub Actions workflow, updating package configurations, and implementing new functionalities in the SDK for computing and updating funding weights.

GitHub Actions Workflow:

  • .github/workflows/distribution.yml: Added a new workflow to update split weights on push, pull request, and a weekly schedule. This workflow sets up the environment, builds the SDK, and runs the update:weights script.

Package Configuration:

  • package.json: Added project metadata, scripts for building, linting, and testing, and dependencies for development and runtime.
  • packages/sdk/package.json: Added SDK-specific configurations, including build scripts and dependencies for TypeScript, Prettier, and various APIs.

Environment Variables:

  • packages/sdk/.env.example: Added example environment variables required for the SDK operations, such as Supabase, GitHub, Infura, and Splits API keys.

SDK Functionalities:

Utility and Type Definitions:

  • packages/sdk/src/types.ts: Defined types for database interactions and utility functions to ensure type safety and consistency across the SDK.
  • packages/sdk/src/utils/client.ts: Set up clients for Supabase, GitHub, Infura, and Splits API, along with environment variable assertions for secure configurations.

@Jabolol Jabolol merged commit e98b886 into main Oct 20, 2024
1 check failed
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.

1 participant