Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 30118b3

Browse files
committed
init: polymarket agents
0 parents  commit 30118b3

37 files changed

Lines changed: 2755 additions & 0 deletions

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
POLYGON_WALLET_PRIVATE_KEY=""
2+
OPENAI_API_KEY=""
3+
TAVILY_API_KEY=""
4+
NEWSAPI_API_KEY=""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "Bug report \U0001F41E"
3+
about: Create a bug report
4+
labels: bug
5+
6+
---
7+
8+
## Describe the bug
9+
A clear and concise description of what the bug is.
10+
11+
### Steps to reproduce
12+
Steps to reproduce the behavior.
13+
14+
### Expected behavior
15+
A clear and concise description of what you expected to happen.
16+
17+
### Environment
18+
- OS: [e.g. Arch Linux]
19+
- Other details that you think may affect.
20+
21+
### Additional context
22+
Add any other context about the problem here
23+
.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: "Feature request \U0001F680"
3+
about: Suggest an idea
4+
labels: enhancement
5+
6+
---
7+
8+
## Summary
9+
Brief explanation of the feature.
10+
11+
### Basic example
12+
Include a basic example or links here.
13+
14+
### Motivation
15+
Why are we doing this? What use cases does it support? What is the expected outcome
16+
?
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
6+
# packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
10+
name: 'Dependency review'
11+
on:
12+
pull_request:
13+
branches: [ "main" ]
14+
15+
# If using a dependency submission action in this workflow this permission will need to be set to:
16+
#
17+
# permissions:
18+
# contents: write
19+
#
20+
# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
21+
permissions:
22+
contents: read
23+
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
24+
pull-requests: write
25+
26+
jobs:
27+
dependency-review:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: 'Checkout repository'
31+
uses: actions/checkout@v4
32+
- name: 'Dependency Review'
33+
uses: actions/dependency-review-action@v4
34+
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
35+
with:
36+
comment-summary-in-pr: always
37+
# fail-on-severity: moderate
38+
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
39+
# retry-on-snapshot-warnings: true

.github/workflows/docker-image.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build the Docker image
18+
run: docker build . --file Dockerfile --tag polymarket-agents:$(date +%s)

.github/workflows/greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Welcome to Polymarket Agents. Thank you for filing your first issue."
16+
pr-message: "Welcome to Polymarket Agents. Thank you for creating your first PR. Cheers!"

.github/workflows/python-app.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python 3.9
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: "3.9"
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install black pytest
30+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
- name: Lint with black
32+
run: |
33+
black .
34+
- name: Test with unittest
35+
run: |
36+
python -m unittest discover

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.venv
2+
.env
3+
.idea
4+
.ipynb_checkpoints
5+
.mypy_cache
6+
.vscode
7+
__pycache__
8+
.pytest_cache
9+
htmlcov
10+
dist
11+
site
12+
.coverage
13+
coverage.xml
14+
.netlify
15+
test.db
16+
log.txt
17+
Pipfile.lock
18+
env3.*
19+
env
20+
docs_build
21+
site_build
22+
venv
23+
docs.zip
24+
archive.zip
25+
*~
26+
.*.sw?
27+
.cache
28+
.DS_Store
29+
local_db*

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 24.4.2
4+
hooks:
5+
- id: black
6+
language_version: python3.9

CONTRIBUTING.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Introduction
2+
3+
### Welcome and Thanks!
4+
5+
> First off, thank you for considering contributing to our Decentralized AI Agent for Polymarket! It's contributors like you that help make this project a powerful tool for prediction markets.
6+
7+
### Why Follow These Guidelines?
8+
9+
> Following these guidelines shows that you respect the time and effort of the developers working on this project. In return, we’ll address your contributions efficiently, review your changes, and help you finalize your pull requests.
10+
11+
### Types of Contributions We Welcome
12+
13+
We value all kinds of contributions! Whether it’s improving our documentation, triaging bugs, or enhancing our algorithms, your contributions are greatly appreciated.
14+
15+
> This project is open source, and we’re thrilled to receive contributions from the community. You can help by writing tutorials, reporting bugs, suggesting new features, or contributing code to improve our AI agent.
16+
17+
### Contributions We Do Not Seek
18+
19+
To streamline the process, please avoid these types of contributions:
20+
21+
> Please do not use the issue tracker for general support questions. For help, consider joining our the Polymarket Discord or referring to the [Polymarket API documentation](https://polymarket.com/docs).
22+
23+
# Ground Rules
24+
25+
### Setting Expectations
26+
27+
We ask that all contributors adhere to the following standards:
28+
29+
> Responsibilities
30+
> * Ensure compatibility with multiple environments where our AI agent operates.
31+
> * Create issues for significant changes and gather community feedback.
32+
> * Keep changes modular and focused.
33+
> * Foster an inclusive environment and welcome contributors from diverse backgrounds.
34+
35+
# Your First Contribution
36+
37+
### Getting Started
38+
39+
New to contributing? Here’s how you can start:
40+
41+
> Begin by exploring our beginner-friendly issues, which are tagged as [good first issue](#). These are smaller tasks that are great for newcomers.
42+
43+
### Bonus: Helpful Resources
44+
45+
Here are some tutorials to guide you through your first open source contribution:
46+
47+
> New to open source? Check out [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
48+
49+
### Next Steps?
50+
51+
> At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first :smile_cat:
52+
>
53+
> If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
54+
55+
# Getting Started
56+
57+
### Submitting Your Contribution
58+
59+
Follow these steps to submit your contributions:
60+
61+
* Fork the repository and make changes in your fork.
62+
* Ensure your code follows our [style guide](#) and passes all tests.
63+
* Sign the Contributor License Agreement (CLA), if required.
64+
* Submit a pull request with a detailed description of your changes.
65+
66+
> For significant changes:
67+
> 1. Fork the repo and make your changes.
68+
> 2. Ensure your changes align with the project’s coding standards.
69+
> 3. Sign the Contributor License Agreement if applicable.
70+
> 4. Open a pull request and describe the changes you’ve made.
71+
72+
### For Small or “Obvious” Fixes
73+
74+
For minor fixes, such as typos or documentation improvements, you can:
75+
76+
> Submit a simple patch without a CLA if the change does not involve significant new functionality. Examples include:
77+
> * Typographical corrections
78+
> * Simple formatting changes
79+
> * Non-functional code adjustments
80+
81+
# How to Report a Bug
82+
83+
### Security Disclosures
84+
85+
If you discover a security issue, please report it privately:
86+
87+
> If you find a security vulnerability, do NOT open an issue. Instead, email Polymarket directly.
88+
89+
### Filing a Bug Report
90+
91+
When reporting a bug, please provide the following details:
92+
93+
> When filing a bug, include:
94+
> 1. The version of the AI agent you are using.
95+
> 2. Your operating system and environment.
96+
> 3. Steps to reproduce the issue.
97+
> 4. Expected behavior.
98+
> 5. Actual behavior observed.
99+
100+
# How to Suggest a Feature or Enhancement
101+
102+
### Project Goals and Philosophy
103+
104+
Before suggesting a feature, understand our project goals:
105+
106+
> Our AI agent aims to leverage decentralized mechanisms to provide accurate predictions within Polymarket's markets. We are focused on enhancing market analysis and prediction accuracy.
107+
108+
### Suggesting a Feature
109+
110+
If you have an idea for a new feature:
111+
112+
> Open an issue on GitHub with a detailed description of the feature, including its purpose, benefits, and any proposed implementation details.
113+
114+
# Code Review Process
115+
116+
### Review and Acceptance
117+
118+
Our review process is as follows:
119+
120+
> The core team must approve the PR.

0 commit comments

Comments
 (0)